@@ -31,6 +31,7 @@ type DNSDomainBuilder struct {
3131 cloudProvider DnsCloudProvider
3232 cluster * ClusterLinkBuilder
3333 clusterArch ClusterArchitecture
34+ gcp * GcpDnsDomainBuilder
3435 organization * OrganizationLinkBuilder
3536 reservedAtTimestamp time.Time
3637 userDefined bool
@@ -39,14 +40,14 @@ type DNSDomainBuilder struct {
3940// NewDNSDomain creates a new builder of 'DNS_domain' objects.
4041func NewDNSDomain () * DNSDomainBuilder {
4142 return & DNSDomainBuilder {
42- fieldSet_ : make ([]bool , 9 ),
43+ fieldSet_ : make ([]bool , 10 ),
4344 }
4445}
4546
4647// Link sets the flag that indicates if this is a link.
4748func (b * DNSDomainBuilder ) Link (value bool ) * DNSDomainBuilder {
4849 if len (b .fieldSet_ ) == 0 {
49- b .fieldSet_ = make ([]bool , 9 )
50+ b .fieldSet_ = make ([]bool , 10 )
5051 }
5152 b .fieldSet_ [0 ] = true
5253 return b
@@ -55,7 +56,7 @@ func (b *DNSDomainBuilder) Link(value bool) *DNSDomainBuilder {
5556// ID sets the identifier of the object.
5657func (b * DNSDomainBuilder ) ID (value string ) * DNSDomainBuilder {
5758 if len (b .fieldSet_ ) == 0 {
58- b .fieldSet_ = make ([]bool , 9 )
59+ b .fieldSet_ = make ([]bool , 10 )
5960 }
6061 b .id = value
6162 b .fieldSet_ [1 ] = true
@@ -65,7 +66,7 @@ func (b *DNSDomainBuilder) ID(value string) *DNSDomainBuilder {
6566// HREF sets the link to the object.
6667func (b * DNSDomainBuilder ) HREF (value string ) * DNSDomainBuilder {
6768 if len (b .fieldSet_ ) == 0 {
68- b .fieldSet_ = make ([]bool , 9 )
69+ b .fieldSet_ = make ([]bool , 10 )
6970 }
7071 b .href = value
7172 b .fieldSet_ [2 ] = true
@@ -89,7 +90,7 @@ func (b *DNSDomainBuilder) Empty() bool {
8990// CloudProvider sets the value of the 'cloud_provider' attribute to the given value.
9091func (b * DNSDomainBuilder ) CloudProvider (value DnsCloudProvider ) * DNSDomainBuilder {
9192 if len (b .fieldSet_ ) == 0 {
92- b .fieldSet_ = make ([]bool , 9 )
93+ b .fieldSet_ = make ([]bool , 10 )
9394 }
9495 b .cloudProvider = value
9596 b .fieldSet_ [3 ] = true
@@ -101,7 +102,7 @@ func (b *DNSDomainBuilder) CloudProvider(value DnsCloudProvider) *DNSDomainBuild
101102// Definition of a cluster link.
102103func (b * DNSDomainBuilder ) Cluster (value * ClusterLinkBuilder ) * DNSDomainBuilder {
103104 if len (b .fieldSet_ ) == 0 {
104- b .fieldSet_ = make ([]bool , 9 )
105+ b .fieldSet_ = make ([]bool , 10 )
105106 }
106107 b .cluster = value
107108 if value != nil {
@@ -117,46 +118,63 @@ func (b *DNSDomainBuilder) Cluster(value *ClusterLinkBuilder) *DNSDomainBuilder
117118// Possible cluster architectures.
118119func (b * DNSDomainBuilder ) ClusterArch (value ClusterArchitecture ) * DNSDomainBuilder {
119120 if len (b .fieldSet_ ) == 0 {
120- b .fieldSet_ = make ([]bool , 9 )
121+ b .fieldSet_ = make ([]bool , 10 )
121122 }
122123 b .clusterArch = value
123124 b .fieldSet_ [5 ] = true
124125 return b
125126}
126127
128+ // Gcp sets the value of the 'gcp' attribute to the given value.
129+ //
130+ // GcpDnsDomain represents configuration for Google Cloud Platform DNS domain settings
131+ // used in cluster DNS configuration for GCP-hosted clusters.
132+ func (b * DNSDomainBuilder ) Gcp (value * GcpDnsDomainBuilder ) * DNSDomainBuilder {
133+ if len (b .fieldSet_ ) == 0 {
134+ b .fieldSet_ = make ([]bool , 10 )
135+ }
136+ b .gcp = value
137+ if value != nil {
138+ b .fieldSet_ [6 ] = true
139+ } else {
140+ b .fieldSet_ [6 ] = false
141+ }
142+ return b
143+ }
144+
127145// Organization sets the value of the 'organization' attribute to the given value.
128146//
129147// Definition of an organization link.
130148func (b * DNSDomainBuilder ) Organization (value * OrganizationLinkBuilder ) * DNSDomainBuilder {
131149 if len (b .fieldSet_ ) == 0 {
132- b .fieldSet_ = make ([]bool , 9 )
150+ b .fieldSet_ = make ([]bool , 10 )
133151 }
134152 b .organization = value
135153 if value != nil {
136- b .fieldSet_ [6 ] = true
154+ b .fieldSet_ [7 ] = true
137155 } else {
138- b .fieldSet_ [6 ] = false
156+ b .fieldSet_ [7 ] = false
139157 }
140158 return b
141159}
142160
143161// ReservedAtTimestamp sets the value of the 'reserved_at_timestamp' attribute to the given value.
144162func (b * DNSDomainBuilder ) ReservedAtTimestamp (value time.Time ) * DNSDomainBuilder {
145163 if len (b .fieldSet_ ) == 0 {
146- b .fieldSet_ = make ([]bool , 9 )
164+ b .fieldSet_ = make ([]bool , 10 )
147165 }
148166 b .reservedAtTimestamp = value
149- b .fieldSet_ [7 ] = true
167+ b .fieldSet_ [8 ] = true
150168 return b
151169}
152170
153171// UserDefined sets the value of the 'user_defined' attribute to the given value.
154172func (b * DNSDomainBuilder ) UserDefined (value bool ) * DNSDomainBuilder {
155173 if len (b .fieldSet_ ) == 0 {
156- b .fieldSet_ = make ([]bool , 9 )
174+ b .fieldSet_ = make ([]bool , 10 )
157175 }
158176 b .userDefined = value
159- b .fieldSet_ [8 ] = true
177+ b .fieldSet_ [9 ] = true
160178 return b
161179}
162180
@@ -178,6 +196,11 @@ func (b *DNSDomainBuilder) Copy(object *DNSDomain) *DNSDomainBuilder {
178196 b .cluster = nil
179197 }
180198 b .clusterArch = object .clusterArch
199+ if object .gcp != nil {
200+ b .gcp = NewGcpDnsDomain ().Copy (object .gcp )
201+ } else {
202+ b .gcp = nil
203+ }
181204 if object .organization != nil {
182205 b .organization = NewOrganizationLink ().Copy (object .organization )
183206 } else {
@@ -205,6 +228,12 @@ func (b *DNSDomainBuilder) Build() (object *DNSDomain, err error) {
205228 }
206229 }
207230 object .clusterArch = b .clusterArch
231+ if b .gcp != nil {
232+ object .gcp , err = b .gcp .Build ()
233+ if err != nil {
234+ return
235+ }
236+ }
208237 if b .organization != nil {
209238 object .organization , err = b .organization .Build ()
210239 if err != nil {
0 commit comments