external_master.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  // ExternalMaster An external master name server used as the source of zone data.
  21  type ExternalMaster struct {
  22  
  23  	// The server's IP address (IPv4 or IPv6).
  24  	Address *string `mandatory:"true" json:"address"`
  25  
  26  	// The server's port. Port value must be a value of 53, otherwise omit
  27  	// the port value.
  28  	Port *int `mandatory:"false" json:"port"`
  29  
  30  	// The OCID of the TSIG key.
  31  	TsigKeyId *string `mandatory:"false" json:"tsigKeyId"`
  32  }
  33  
  34  func (m ExternalMaster) String() string {
  35  	return common.PointerString(m)
  36  }
  37  
  38  // ValidateEnumValue returns an error when providing an unsupported enum value
  39  // This function is being called during constructing API request process
  40  // Not recommended for calling this function directly
  41  func (m ExternalMaster) ValidateEnumValue() (bool, error) {
  42  	errMessage := []string{}
  43  
  44  	if len(errMessage) > 0 {
  45  		return true, fmt.Errorf("%s", strings.Join(errMessage, "\n"))
  46  	}
  47  	return false, nil
  48  }
  49