-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1020 from AlexVulaj/OCM-13173_update-model-409
Update model to 0.0.409
- Loading branch information
Showing
15 changed files
with
605 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
Copyright (c) 2020 Red Hat, Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all | ||
// your changes will be lost when the file is generated again. | ||
|
||
package v1 // github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1 | ||
|
||
// ClusterMigrationStateBuilder contains the data and logic needed to build 'cluster_migration_state' objects. | ||
// | ||
// Representation of a cluster migration state. | ||
type ClusterMigrationStateBuilder struct { | ||
bitmap_ uint32 | ||
description string | ||
value ClusterMigrationStateValue | ||
} | ||
|
||
// NewClusterMigrationState creates a new builder of 'cluster_migration_state' objects. | ||
func NewClusterMigrationState() *ClusterMigrationStateBuilder { | ||
return &ClusterMigrationStateBuilder{} | ||
} | ||
|
||
// Empty returns true if the builder is empty, i.e. no attribute has a value. | ||
func (b *ClusterMigrationStateBuilder) Empty() bool { | ||
return b == nil || b.bitmap_ == 0 | ||
} | ||
|
||
// Description sets the value of the 'description' attribute to the given value. | ||
func (b *ClusterMigrationStateBuilder) Description(value string) *ClusterMigrationStateBuilder { | ||
b.description = value | ||
b.bitmap_ |= 1 | ||
return b | ||
} | ||
|
||
// Value sets the value of the 'value' attribute to the given value. | ||
// | ||
// The state of the cluster migration. | ||
func (b *ClusterMigrationStateBuilder) Value(value ClusterMigrationStateValue) *ClusterMigrationStateBuilder { | ||
b.value = value | ||
b.bitmap_ |= 2 | ||
return b | ||
} | ||
|
||
// Copy copies the attributes of the given object into this builder, discarding any previous values. | ||
func (b *ClusterMigrationStateBuilder) Copy(object *ClusterMigrationState) *ClusterMigrationStateBuilder { | ||
if object == nil { | ||
return b | ||
} | ||
b.bitmap_ = object.bitmap_ | ||
b.description = object.description | ||
b.value = object.value | ||
return b | ||
} | ||
|
||
// Build creates a 'cluster_migration_state' object using the configuration stored in the builder. | ||
func (b *ClusterMigrationStateBuilder) Build() (object *ClusterMigrationState, err error) { | ||
object = new(ClusterMigrationState) | ||
object.bitmap_ = b.bitmap_ | ||
object.description = b.description | ||
object.value = b.value | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
Copyright (c) 2020 Red Hat, Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
// IMPORTANT: This file has been generated automatically, refrain from modifying it manually as all | ||
// your changes will be lost when the file is generated again. | ||
|
||
package v1 // github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1 | ||
|
||
// ClusterMigrationStateListBuilder contains the data and logic needed to build | ||
// 'cluster_migration_state' objects. | ||
type ClusterMigrationStateListBuilder struct { | ||
items []*ClusterMigrationStateBuilder | ||
} | ||
|
||
// NewClusterMigrationStateList creates a new builder of 'cluster_migration_state' objects. | ||
func NewClusterMigrationStateList() *ClusterMigrationStateListBuilder { | ||
return new(ClusterMigrationStateListBuilder) | ||
} | ||
|
||
// Items sets the items of the list. | ||
func (b *ClusterMigrationStateListBuilder) Items(values ...*ClusterMigrationStateBuilder) *ClusterMigrationStateListBuilder { | ||
b.items = make([]*ClusterMigrationStateBuilder, len(values)) | ||
copy(b.items, values) | ||
return b | ||
} | ||
|
||
// Empty returns true if the list is empty. | ||
func (b *ClusterMigrationStateListBuilder) Empty() bool { | ||
return b == nil || len(b.items) == 0 | ||
} | ||
|
||
// Copy copies the items of the given list into this builder, discarding any previous items. | ||
func (b *ClusterMigrationStateListBuilder) Copy(list *ClusterMigrationStateList) *ClusterMigrationStateListBuilder { | ||
if list == nil || list.items == nil { | ||
b.items = nil | ||
} else { | ||
b.items = make([]*ClusterMigrationStateBuilder, len(list.items)) | ||
for i, v := range list.items { | ||
b.items[i] = NewClusterMigrationState().Copy(v) | ||
} | ||
} | ||
return b | ||
} | ||
|
||
// Build creates a list of 'cluster_migration_state' objects using the | ||
// configuration stored in the builder. | ||
func (b *ClusterMigrationStateListBuilder) Build() (list *ClusterMigrationStateList, err error) { | ||
items := make([]*ClusterMigrationState, len(b.items)) | ||
for i, item := range b.items { | ||
items[i], err = item.Build() | ||
if err != nil { | ||
return | ||
} | ||
} | ||
list = new(ClusterMigrationStateList) | ||
list.items = items | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.