1 // Copyright (c) 2016, 2018, 2025, Oracle and/or its affiliates. All rights reserved.
2 // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3 // Code generated. DO NOT EDIT.
4 5 // DNS API
6 //
7 // API for the DNS service. Use this API to manage DNS zones, records, and other DNS resources.
8 // For more information, see Overview of the DNS Service (https://docs.oracle.com/iaas/Content/DNS/Concepts/dnszonemanagement.htm).
9 //
10 11 package dns
12 13 import (
14 "fmt"
15 "strings"
16 17 "github.com/nrdcg/oci-go-sdk/common/v1065"
18 )
19 20 // UpdateTsigKeyDetails The body for updating a TSIG key.
21 // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
22 type UpdateTsigKeyDetails struct {
23 24 // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
25 // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
26 //
27 // **Example:** `{"Department": "Finance"}`
28 FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
29 30 // Defined tags for this resource. Each key is predefined and scoped to a namespace.
31 // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
32 //
33 // **Example:** `{"Operations": {"CostCenter": "42"}}`
34 DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
35 }
36 37 func (m UpdateTsigKeyDetails) String() string {
38 return common.PointerString(m)
39 }
40 41 // ValidateEnumValue returns an error when providing an unsupported enum value
42 // This function is being called during constructing API request process
43 // Not recommended for calling this function directly
44 func (m UpdateTsigKeyDetails) ValidateEnumValue() (bool, error) {
45 errMessage := []string{}
46 47 if len(errMessage) > 0 {
48 return true, fmt.Errorf("%s", strings.Join(errMessage, "\n"))
49 }
50 return false, nil
51 }
52