update_view_details.go raw

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