-
Notifications
You must be signed in to change notification settings - Fork 126
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 #475 from vkareh/release_v0.1.209
Bump API model and release v0.1.209
- Loading branch information
Showing
13 changed files
with
4,511 additions
and
3,893 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,81 @@ | ||
/* | ||
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 | ||
|
||
// AddOnRequirementStatusBuilder contains the data and logic needed to build 'add_on_requirement_status' objects. | ||
// | ||
// Representation of an add-on requirement status. | ||
type AddOnRequirementStatusBuilder struct { | ||
bitmap_ uint32 | ||
errorMsgs []string | ||
fulfilled bool | ||
} | ||
|
||
// NewAddOnRequirementStatus creates a new builder of 'add_on_requirement_status' objects. | ||
func NewAddOnRequirementStatus() *AddOnRequirementStatusBuilder { | ||
return &AddOnRequirementStatusBuilder{} | ||
} | ||
|
||
// ErrorMsgs sets the value of the 'error_msgs' attribute to the given values. | ||
// | ||
// | ||
func (b *AddOnRequirementStatusBuilder) ErrorMsgs(values ...string) *AddOnRequirementStatusBuilder { | ||
b.errorMsgs = make([]string, len(values)) | ||
copy(b.errorMsgs, values) | ||
b.bitmap_ |= 1 | ||
return b | ||
} | ||
|
||
// Fulfilled sets the value of the 'fulfilled' attribute to the given value. | ||
// | ||
// | ||
func (b *AddOnRequirementStatusBuilder) Fulfilled(value bool) *AddOnRequirementStatusBuilder { | ||
b.fulfilled = value | ||
b.bitmap_ |= 2 | ||
return b | ||
} | ||
|
||
// Copy copies the attributes of the given object into this builder, discarding any previous values. | ||
func (b *AddOnRequirementStatusBuilder) Copy(object *AddOnRequirementStatus) *AddOnRequirementStatusBuilder { | ||
if object == nil { | ||
return b | ||
} | ||
b.bitmap_ = object.bitmap_ | ||
if object.errorMsgs != nil { | ||
b.errorMsgs = make([]string, len(object.errorMsgs)) | ||
copy(b.errorMsgs, object.errorMsgs) | ||
} else { | ||
b.errorMsgs = nil | ||
} | ||
b.fulfilled = object.fulfilled | ||
return b | ||
} | ||
|
||
// Build creates a 'add_on_requirement_status' object using the configuration stored in the builder. | ||
func (b *AddOnRequirementStatusBuilder) Build() (object *AddOnRequirementStatus, err error) { | ||
object = new(AddOnRequirementStatus) | ||
object.bitmap_ = b.bitmap_ | ||
if b.errorMsgs != nil { | ||
object.errorMsgs = make([]string, len(b.errorMsgs)) | ||
copy(object.errorMsgs, b.errorMsgs) | ||
} | ||
object.fulfilled = b.fulfilled | ||
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,66 @@ | ||
/* | ||
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 | ||
|
||
// AddOnRequirementStatusListBuilder contains the data and logic needed to build | ||
// 'add_on_requirement_status' objects. | ||
type AddOnRequirementStatusListBuilder struct { | ||
items []*AddOnRequirementStatusBuilder | ||
} | ||
|
||
// NewAddOnRequirementStatusList creates a new builder of 'add_on_requirement_status' objects. | ||
func NewAddOnRequirementStatusList() *AddOnRequirementStatusListBuilder { | ||
return new(AddOnRequirementStatusListBuilder) | ||
} | ||
|
||
// Items sets the items of the list. | ||
func (b *AddOnRequirementStatusListBuilder) Items(values ...*AddOnRequirementStatusBuilder) *AddOnRequirementStatusListBuilder { | ||
b.items = make([]*AddOnRequirementStatusBuilder, len(values)) | ||
copy(b.items, values) | ||
return b | ||
} | ||
|
||
// Copy copies the items of the given list into this builder, discarding any previous items. | ||
func (b *AddOnRequirementStatusListBuilder) Copy(list *AddOnRequirementStatusList) *AddOnRequirementStatusListBuilder { | ||
if list == nil || list.items == nil { | ||
b.items = nil | ||
} else { | ||
b.items = make([]*AddOnRequirementStatusBuilder, len(list.items)) | ||
for i, v := range list.items { | ||
b.items[i] = NewAddOnRequirementStatus().Copy(v) | ||
} | ||
} | ||
return b | ||
} | ||
|
||
// Build creates a list of 'add_on_requirement_status' objects using the | ||
// configuration stored in the builder. | ||
func (b *AddOnRequirementStatusListBuilder) Build() (list *AddOnRequirementStatusList, err error) { | ||
items := make([]*AddOnRequirementStatus, len(b.items)) | ||
for i, item := range b.items { | ||
items[i], err = item.Build() | ||
if err != nil { | ||
return | ||
} | ||
} | ||
list = new(AddOnRequirementStatusList) | ||
list.items = items | ||
return | ||
} |
72 changes: 72 additions & 0 deletions
72
clustersmgmt/v1/add_on_requirement_status_list_type_json.go
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,72 @@ | ||
/* | ||
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 | ||
|
||
import ( | ||
"io" | ||
|
||
jsoniter "github.com/json-iterator/go" | ||
"github.com/openshift-online/ocm-sdk-go/helpers" | ||
) | ||
|
||
// MarshalAddOnRequirementStatusList writes a list of values of the 'add_on_requirement_status' type to | ||
// the given writer. | ||
func MarshalAddOnRequirementStatusList(list []*AddOnRequirementStatus, writer io.Writer) error { | ||
stream := helpers.NewStream(writer) | ||
writeAddOnRequirementStatusList(list, stream) | ||
stream.Flush() | ||
return stream.Error | ||
} | ||
|
||
// writeAddOnRequirementStatusList writes a list of value of the 'add_on_requirement_status' type to | ||
// the given stream. | ||
func writeAddOnRequirementStatusList(list []*AddOnRequirementStatus, stream *jsoniter.Stream) { | ||
stream.WriteArrayStart() | ||
for i, value := range list { | ||
if i > 0 { | ||
stream.WriteMore() | ||
} | ||
writeAddOnRequirementStatus(value, stream) | ||
} | ||
stream.WriteArrayEnd() | ||
} | ||
|
||
// UnmarshalAddOnRequirementStatusList reads a list of values of the 'add_on_requirement_status' type | ||
// from the given source, which can be a slice of bytes, a string or a reader. | ||
func UnmarshalAddOnRequirementStatusList(source interface{}) (items []*AddOnRequirementStatus, err error) { | ||
iterator, err := helpers.NewIterator(source) | ||
if err != nil { | ||
return | ||
} | ||
items = readAddOnRequirementStatusList(iterator) | ||
err = iterator.Error | ||
return | ||
} | ||
|
||
// readAddOnRequirementStatusList reads list of values of the ''add_on_requirement_status' type from | ||
// the given iterator. | ||
func readAddOnRequirementStatusList(iterator *jsoniter.Iterator) []*AddOnRequirementStatus { | ||
list := []*AddOnRequirementStatus{} | ||
for iterator.ReadArray() { | ||
item := readAddOnRequirementStatus(iterator) | ||
list = append(list, item) | ||
} | ||
return list | ||
} |
Oops, something went wrong.