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 // CreateViewDetails The body for defining a new view.
21 // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
22 type CreateViewDetails struct {
23 24 // The OCID of the owning compartment.
25 CompartmentId *string `mandatory:"true" json:"compartmentId"`
26 27 // The display name of the view.
28 DisplayName *string `mandatory:"false" json:"displayName"`
29 30 // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
31 // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
32 //
33 // **Example:** `{"Department": "Finance"}`
34 FreeformTags map[string]string `mandatory:"false" json:"freeformTags"`
35 36 // Defined tags for this resource. Each key is predefined and scoped to a namespace.
37 // For more information, see Resource Tags (https://docs.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
38 //
39 // **Example:** `{"Operations": {"CostCenter": "42"}}`
40 DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"`
41 }
42 43 func (m CreateViewDetails) String() string {
44 return common.PointerString(m)
45 }
46 47 // ValidateEnumValue returns an error when providing an unsupported enum value
48 // This function is being called during constructing API request process
49 // Not recommended for calling this function directly
50 func (m CreateViewDetails) ValidateEnumValue() (bool, error) {
51 errMessage := []string{}
52 53 if len(errMessage) > 0 {
54 return true, fmt.Errorf("%s", strings.Join(errMessage, "\n"))
55 }
56 return false, nil
57 }
58