Skip to content

Commit

Permalink
chore: bump to ocm-api-model 0.0.378
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasponce committed Jun 24, 2024
1 parent 8646d81 commit b99e02c
Show file tree
Hide file tree
Showing 6 changed files with 6,772 additions and 6,710 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export PATH := $(LOCAL_BIN_PATH):$(PATH)
export CGO_ENABLED=0

# Details of the model to use:
model_version:=v0.0.377
model_version:=v0.0.378
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
66 changes: 38 additions & 28 deletions clustersmgmt/v1/cluster_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ type ClusterBuilder struct {
etcdEncryption bool
managed bool
multiAZ bool
multiArchEnabled bool
}

// NewCluster creates a new builder of 'cluster' objects.
Expand Down Expand Up @@ -568,10 +569,17 @@ func (b *ClusterBuilder) MultiAZ(value bool) *ClusterBuilder {
return b
}

// MultiArchEnabled sets the value of the 'multi_arch_enabled' attribute to the given value.
func (b *ClusterBuilder) MultiArchEnabled(value bool) *ClusterBuilder {
b.multiArchEnabled = value
b.bitmap_ |= 17592186044416
return b
}

// Name sets the value of the 'name' attribute to the given value.
func (b *ClusterBuilder) Name(value string) *ClusterBuilder {
b.name = value
b.bitmap_ |= 17592186044416
b.bitmap_ |= 35184372088832
return b
}

Expand All @@ -581,9 +589,9 @@ func (b *ClusterBuilder) Name(value string) *ClusterBuilder {
func (b *ClusterBuilder) Network(value *NetworkBuilder) *ClusterBuilder {
b.network = value
if value != nil {
b.bitmap_ |= 35184372088832
b.bitmap_ |= 70368744177664
} else {
b.bitmap_ &^= 35184372088832
b.bitmap_ &^= 70368744177664
}
return b
}
Expand Down Expand Up @@ -611,17 +619,17 @@ func (b *ClusterBuilder) Network(value *NetworkBuilder) *ClusterBuilder {
func (b *ClusterBuilder) NodeDrainGracePeriod(value *ValueBuilder) *ClusterBuilder {
b.nodeDrainGracePeriod = value
if value != nil {
b.bitmap_ |= 70368744177664
b.bitmap_ |= 140737488355328
} else {
b.bitmap_ &^= 70368744177664
b.bitmap_ &^= 140737488355328
}
return b
}

// NodePools sets the value of the 'node_pools' attribute to the given values.
func (b *ClusterBuilder) NodePools(value *NodePoolListBuilder) *ClusterBuilder {
b.nodePools = value
b.bitmap_ |= 140737488355328
b.bitmap_ |= 281474976710656
return b
}

Expand All @@ -631,17 +639,17 @@ func (b *ClusterBuilder) NodePools(value *NodePoolListBuilder) *ClusterBuilder {
func (b *ClusterBuilder) Nodes(value *ClusterNodesBuilder) *ClusterBuilder {
b.nodes = value
if value != nil {
b.bitmap_ |= 281474976710656
b.bitmap_ |= 562949953421312
} else {
b.bitmap_ &^= 281474976710656
b.bitmap_ &^= 562949953421312
}
return b
}

// OpenshiftVersion sets the value of the 'openshift_version' attribute to the given value.
func (b *ClusterBuilder) OpenshiftVersion(value string) *ClusterBuilder {
b.openshiftVersion = value
b.bitmap_ |= 562949953421312
b.bitmap_ |= 1125899906842624
return b
}

Expand All @@ -651,9 +659,9 @@ func (b *ClusterBuilder) OpenshiftVersion(value string) *ClusterBuilder {
func (b *ClusterBuilder) Product(value *ProductBuilder) *ClusterBuilder {
b.product = value
if value != nil {
b.bitmap_ |= 1125899906842624
b.bitmap_ |= 2251799813685248
} else {
b.bitmap_ &^= 1125899906842624
b.bitmap_ &^= 2251799813685248
}
return b
}
Expand All @@ -662,9 +670,9 @@ func (b *ClusterBuilder) Product(value *ProductBuilder) *ClusterBuilder {
func (b *ClusterBuilder) Properties(value map[string]string) *ClusterBuilder {
b.properties = value
if value != nil {
b.bitmap_ |= 2251799813685248
b.bitmap_ |= 4503599627370496
} else {
b.bitmap_ &^= 2251799813685248
b.bitmap_ &^= 4503599627370496
}
return b
}
Expand All @@ -675,9 +683,9 @@ func (b *ClusterBuilder) Properties(value map[string]string) *ClusterBuilder {
func (b *ClusterBuilder) ProvisionShard(value *ProvisionShardBuilder) *ClusterBuilder {
b.provisionShard = value
if value != nil {
b.bitmap_ |= 4503599627370496
b.bitmap_ |= 9007199254740992
} else {
b.bitmap_ &^= 4503599627370496
b.bitmap_ &^= 9007199254740992
}
return b
}
Expand All @@ -688,9 +696,9 @@ func (b *ClusterBuilder) ProvisionShard(value *ProvisionShardBuilder) *ClusterBu
func (b *ClusterBuilder) Proxy(value *ProxyBuilder) *ClusterBuilder {
b.proxy = value
if value != nil {
b.bitmap_ |= 9007199254740992
b.bitmap_ |= 18014398509481984
} else {
b.bitmap_ &^= 9007199254740992
b.bitmap_ &^= 18014398509481984
}
return b
}
Expand All @@ -701,9 +709,9 @@ func (b *ClusterBuilder) Proxy(value *ProxyBuilder) *ClusterBuilder {
func (b *ClusterBuilder) Region(value *CloudRegionBuilder) *ClusterBuilder {
b.region = value
if value != nil {
b.bitmap_ |= 18014398509481984
b.bitmap_ |= 36028797018963968
} else {
b.bitmap_ &^= 18014398509481984
b.bitmap_ &^= 36028797018963968
}
return b
}
Expand All @@ -713,7 +721,7 @@ func (b *ClusterBuilder) Region(value *CloudRegionBuilder) *ClusterBuilder {
// Overall state of a cluster.
func (b *ClusterBuilder) State(value ClusterState) *ClusterBuilder {
b.state = value
b.bitmap_ |= 36028797018963968
b.bitmap_ |= 72057594037927936
return b
}

Expand All @@ -723,9 +731,9 @@ func (b *ClusterBuilder) State(value ClusterState) *ClusterBuilder {
func (b *ClusterBuilder) Status(value *ClusterStatusBuilder) *ClusterBuilder {
b.status = value
if value != nil {
b.bitmap_ |= 72057594037927936
b.bitmap_ |= 144115188075855872
} else {
b.bitmap_ &^= 72057594037927936
b.bitmap_ &^= 144115188075855872
}
return b
}
Expand Down Expand Up @@ -753,9 +761,9 @@ func (b *ClusterBuilder) Status(value *ClusterStatusBuilder) *ClusterBuilder {
func (b *ClusterBuilder) StorageQuota(value *ValueBuilder) *ClusterBuilder {
b.storageQuota = value
if value != nil {
b.bitmap_ |= 144115188075855872
b.bitmap_ |= 288230376151711744
} else {
b.bitmap_ &^= 144115188075855872
b.bitmap_ &^= 288230376151711744
}
return b
}
Expand All @@ -766,9 +774,9 @@ func (b *ClusterBuilder) StorageQuota(value *ValueBuilder) *ClusterBuilder {
func (b *ClusterBuilder) Subscription(value *SubscriptionBuilder) *ClusterBuilder {
b.subscription = value
if value != nil {
b.bitmap_ |= 288230376151711744
b.bitmap_ |= 576460752303423488
} else {
b.bitmap_ &^= 288230376151711744
b.bitmap_ &^= 576460752303423488
}
return b
}
Expand All @@ -779,9 +787,9 @@ func (b *ClusterBuilder) Subscription(value *SubscriptionBuilder) *ClusterBuilde
func (b *ClusterBuilder) Version(value *VersionBuilder) *ClusterBuilder {
b.version = value
if value != nil {
b.bitmap_ |= 576460752303423488
b.bitmap_ |= 1152921504606846976
} else {
b.bitmap_ &^= 576460752303423488
b.bitmap_ &^= 1152921504606846976
}
return b
}
Expand Down Expand Up @@ -943,6 +951,7 @@ func (b *ClusterBuilder) Copy(object *Cluster) *ClusterBuilder {
b.managedService = nil
}
b.multiAZ = object.multiAZ
b.multiArchEnabled = object.multiArchEnabled
b.name = object.name
if object.network != nil {
b.network = NewNetwork().Copy(object.network)
Expand Down Expand Up @@ -1199,6 +1208,7 @@ func (b *ClusterBuilder) Build() (object *Cluster, err error) {
}
}
object.multiAZ = b.multiAZ
object.multiArchEnabled = b.multiArchEnabled
object.name = b.name
if b.network != nil {
object.network, err = b.network.Build()
Expand Down
Loading

0 comments on commit b99e02c

Please sign in to comment.