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 // RrSet A collection of DNS records of the same domain and type. For more
21 // information about record types, see Resource Record (RR) TYPEs (https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4).
22 type RrSet struct {
23 Items []Record `mandatory:"true" json:"items"`
24 }
25 26 func (m RrSet) String() string {
27 return common.PointerString(m)
28 }
29 30 // ValidateEnumValue returns an error when providing an unsupported enum value
31 // This function is being called during constructing API request process
32 // Not recommended for calling this function directly
33 func (m RrSet) ValidateEnumValue() (bool, error) {
34 errMessage := []string{}
35 36 if len(errMessage) > 0 {
37 return true, fmt.Errorf("%s", strings.Join(errMessage, "\n"))
38 }
39 return false, nil
40 }
41