dnssec_config.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  // DnssecConfig DNSSEC configuration data.
  21  // A zone may have a maximum of 10 `DnssecKeyVersions`, regardless of signing key type.
  22  type DnssecConfig struct {
  23  
  24  	// A read-only array of key signing key (KSK) versions.
  25  	KskDnssecKeyVersions []KskDnssecKeyVersion `mandatory:"false" json:"kskDnssecKeyVersions"`
  26  
  27  	// A read-only array of zone signing key (ZSK) versions.
  28  	ZskDnssecKeyVersions []ZskDnssecKeyVersion `mandatory:"false" json:"zskDnssecKeyVersions"`
  29  }
  30  
  31  func (m DnssecConfig) String() string {
  32  	return common.PointerString(m)
  33  }
  34  
  35  // ValidateEnumValue returns an error when providing an unsupported enum value
  36  // This function is being called during constructing API request process
  37  // Not recommended for calling this function directly
  38  func (m DnssecConfig) ValidateEnumValue() (bool, error) {
  39  	errMessage := []string{}
  40  
  41  	if len(errMessage) > 0 {
  42  		return true, fmt.Errorf("%s", strings.Join(errMessage, "\n"))
  43  	}
  44  	return false, nil
  45  }
  46