change_view_compartment_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  // ChangeViewCompartmentDetails The representation of ChangeViewCompartmentDetails
  21  type ChangeViewCompartmentDetails struct {
  22  
  23  	// The OCID (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment
  24  	// into which the view should be moved.
  25  	CompartmentId *string `mandatory:"true" json:"compartmentId"`
  26  }
  27  
  28  func (m ChangeViewCompartmentDetails) String() string {
  29  	return common.PointerString(m)
  30  }
  31  
  32  // ValidateEnumValue returns an error when providing an unsupported enum value
  33  // This function is being called during constructing API request process
  34  // Not recommended for calling this function directly
  35  func (m ChangeViewCompartmentDetails) ValidateEnumValue() (bool, error) {
  36  	errMessage := []string{}
  37  
  38  	if len(errMessage) > 0 {
  39  		return true, fmt.Errorf("%s", strings.Join(errMessage, "\n"))
  40  	}
  41  	return false, nil
  42  }
  43