Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare v0.1.392 release #886

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
This document describes the relevant changes between releases of the OCM API
SDK.

## 0.1.392
- Update model version v0.0.346
- Modify notify_details response

## 0.1.391
- Update model version v0.0.345
- Add `validate_credentials` resource to `AwsInquiries`
Expand Down
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.345
model_version:=v0.0.346
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
173 changes: 173 additions & 0 deletions accountsmgmt/v1/generic_notify_details_response_builder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
/*
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/accountsmgmt/v1

// GenericNotifyDetailsResponseBuilder contains the data and logic needed to build 'generic_notify_details_response' objects.
//
// class that defines notify details response in general.
type GenericNotifyDetailsResponseBuilder struct {
bitmap_ uint32
id string
href string
associates []string
items []*NotificationDetailsResponseBuilder
page int
recipients []string
size int
total int
}

// NewGenericNotifyDetailsResponse creates a new builder of 'generic_notify_details_response' objects.
func NewGenericNotifyDetailsResponse() *GenericNotifyDetailsResponseBuilder {
return &GenericNotifyDetailsResponseBuilder{}
}

// Link sets the flag that indicates if this is a link.
func (b *GenericNotifyDetailsResponseBuilder) Link(value bool) *GenericNotifyDetailsResponseBuilder {
b.bitmap_ |= 1
return b
}

// ID sets the identifier of the object.
func (b *GenericNotifyDetailsResponseBuilder) ID(value string) *GenericNotifyDetailsResponseBuilder {
b.id = value
b.bitmap_ |= 2
return b
}

// HREF sets the link to the object.
func (b *GenericNotifyDetailsResponseBuilder) HREF(value string) *GenericNotifyDetailsResponseBuilder {
b.href = value
b.bitmap_ |= 4
return b
}

// Empty returns true if the builder is empty, i.e. no attribute has a value.
func (b *GenericNotifyDetailsResponseBuilder) Empty() bool {
return b == nil || b.bitmap_&^1 == 0
}

// Associates sets the value of the 'associates' attribute to the given values.
func (b *GenericNotifyDetailsResponseBuilder) Associates(values ...string) *GenericNotifyDetailsResponseBuilder {
b.associates = make([]string, len(values))
copy(b.associates, values)
b.bitmap_ |= 8
return b
}

// Items sets the value of the 'items' attribute to the given values.
func (b *GenericNotifyDetailsResponseBuilder) Items(values ...*NotificationDetailsResponseBuilder) *GenericNotifyDetailsResponseBuilder {
b.items = make([]*NotificationDetailsResponseBuilder, len(values))
copy(b.items, values)
b.bitmap_ |= 16
return b
}

// Page sets the value of the 'page' attribute to the given value.
func (b *GenericNotifyDetailsResponseBuilder) Page(value int) *GenericNotifyDetailsResponseBuilder {
b.page = value
b.bitmap_ |= 32
return b
}

// Recipients sets the value of the 'recipients' attribute to the given values.
func (b *GenericNotifyDetailsResponseBuilder) Recipients(values ...string) *GenericNotifyDetailsResponseBuilder {
b.recipients = make([]string, len(values))
copy(b.recipients, values)
b.bitmap_ |= 64
return b
}

// Size sets the value of the 'size' attribute to the given value.
func (b *GenericNotifyDetailsResponseBuilder) Size(value int) *GenericNotifyDetailsResponseBuilder {
b.size = value
b.bitmap_ |= 128
return b
}

// Total sets the value of the 'total' attribute to the given value.
func (b *GenericNotifyDetailsResponseBuilder) Total(value int) *GenericNotifyDetailsResponseBuilder {
b.total = value
b.bitmap_ |= 256
return b
}

// Copy copies the attributes of the given object into this builder, discarding any previous values.
func (b *GenericNotifyDetailsResponseBuilder) Copy(object *GenericNotifyDetailsResponse) *GenericNotifyDetailsResponseBuilder {
if object == nil {
return b
}
b.bitmap_ = object.bitmap_
b.id = object.id
b.href = object.href
if object.associates != nil {
b.associates = make([]string, len(object.associates))
copy(b.associates, object.associates)
} else {
b.associates = nil
}
if object.items != nil {
b.items = make([]*NotificationDetailsResponseBuilder, len(object.items))
for i, v := range object.items {
b.items[i] = NewNotificationDetailsResponse().Copy(v)
}
} else {
b.items = nil
}
b.page = object.page
if object.recipients != nil {
b.recipients = make([]string, len(object.recipients))
copy(b.recipients, object.recipients)
} else {
b.recipients = nil
}
b.size = object.size
b.total = object.total
return b
}

// Build creates a 'generic_notify_details_response' object using the configuration stored in the builder.
func (b *GenericNotifyDetailsResponseBuilder) Build() (object *GenericNotifyDetailsResponse, err error) {
object = new(GenericNotifyDetailsResponse)
object.id = b.id
object.href = b.href
object.bitmap_ = b.bitmap_
if b.associates != nil {
object.associates = make([]string, len(b.associates))
copy(object.associates, b.associates)
}
if b.items != nil {
object.items = make([]*NotificationDetailsResponse, len(b.items))
for i, v := range b.items {
object.items[i], err = v.Build()
if err != nil {
return
}
}
}
object.page = b.page
if b.recipients != nil {
object.recipients = make([]string, len(b.recipients))
copy(object.recipients, b.recipients)
}
object.size = b.size
object.total = b.total
return
}
71 changes: 71 additions & 0 deletions accountsmgmt/v1/generic_notify_details_response_list_builder.go
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/accountsmgmt/v1

// GenericNotifyDetailsResponseListBuilder contains the data and logic needed to build
// 'generic_notify_details_response' objects.
type GenericNotifyDetailsResponseListBuilder struct {
items []*GenericNotifyDetailsResponseBuilder
}

// NewGenericNotifyDetailsResponseList creates a new builder of 'generic_notify_details_response' objects.
func NewGenericNotifyDetailsResponseList() *GenericNotifyDetailsResponseListBuilder {
return new(GenericNotifyDetailsResponseListBuilder)
}

// Items sets the items of the list.
func (b *GenericNotifyDetailsResponseListBuilder) Items(values ...*GenericNotifyDetailsResponseBuilder) *GenericNotifyDetailsResponseListBuilder {
b.items = make([]*GenericNotifyDetailsResponseBuilder, len(values))
copy(b.items, values)
return b
}

// Empty returns true if the list is empty.
func (b *GenericNotifyDetailsResponseListBuilder) 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 *GenericNotifyDetailsResponseListBuilder) Copy(list *GenericNotifyDetailsResponseList) *GenericNotifyDetailsResponseListBuilder {
if list == nil || list.items == nil {
b.items = nil
} else {
b.items = make([]*GenericNotifyDetailsResponseBuilder, len(list.items))
for i, v := range list.items {
b.items[i] = NewGenericNotifyDetailsResponse().Copy(v)
}
}
return b
}

// Build creates a list of 'generic_notify_details_response' objects using the
// configuration stored in the builder.
func (b *GenericNotifyDetailsResponseListBuilder) Build() (list *GenericNotifyDetailsResponseList, err error) {
items := make([]*GenericNotifyDetailsResponse, len(b.items))
for i, item := range b.items {
items[i], err = item.Build()
if err != nil {
return
}
}
list = new(GenericNotifyDetailsResponseList)
list.items = items
return
}
75 changes: 75 additions & 0 deletions accountsmgmt/v1/generic_notify_details_response_list_type_json.go
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/accountsmgmt/v1

import (
"io"

jsoniter "github.com/json-iterator/go"
"github.com/openshift-online/ocm-sdk-go/helpers"
)

// MarshalGenericNotifyDetailsResponseList writes a list of values of the 'generic_notify_details_response' type to
// the given writer.
func MarshalGenericNotifyDetailsResponseList(list []*GenericNotifyDetailsResponse, writer io.Writer) error {
stream := helpers.NewStream(writer)
writeGenericNotifyDetailsResponseList(list, stream)
err := stream.Flush()
if err != nil {
return err
}
return stream.Error
}

// writeGenericNotifyDetailsResponseList writes a list of value of the 'generic_notify_details_response' type to
// the given stream.
func writeGenericNotifyDetailsResponseList(list []*GenericNotifyDetailsResponse, stream *jsoniter.Stream) {
stream.WriteArrayStart()
for i, value := range list {
if i > 0 {
stream.WriteMore()
}
writeGenericNotifyDetailsResponse(value, stream)
}
stream.WriteArrayEnd()
}

// UnmarshalGenericNotifyDetailsResponseList reads a list of values of the 'generic_notify_details_response' type
// from the given source, which can be a slice of bytes, a string or a reader.
func UnmarshalGenericNotifyDetailsResponseList(source interface{}) (items []*GenericNotifyDetailsResponse, err error) {
iterator, err := helpers.NewIterator(source)
if err != nil {
return
}
items = readGenericNotifyDetailsResponseList(iterator)
err = iterator.Error
return
}

// readGenericNotifyDetailsResponseList reads list of values of the ”generic_notify_details_response' type from
// the given iterator.
func readGenericNotifyDetailsResponseList(iterator *jsoniter.Iterator) []*GenericNotifyDetailsResponse {
list := []*GenericNotifyDetailsResponse{}
for iterator.ReadArray() {
item := readGenericNotifyDetailsResponse(iterator)
list = append(list, item)
}
return list
}
Loading
Loading