Skip to content

Commit

Permalink
Merge pull request #884 from gdbranco/feat/ocm-1706
Browse files Browse the repository at this point in the history
OCM-1706 | chore: Release v0.1.391
  • Loading branch information
zgalor committed Jan 3, 2024
2 parents 6e2ea48 + a4c6fd4 commit 574f4e5
Show file tree
Hide file tree
Showing 26 changed files with 39,126 additions and 36,889 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Expand Up @@ -3,6 +3,12 @@
This document describes the relevant changes between releases of the OCM API
SDK.

## 0.1.391
- Update model version v0.0.345
- Add `validate_credentials` resource to `AwsInquiries`
- Update model version v0.0.344
- Add the /notify_details endpoint to the SDK

## 0.1.390
- Update model version v0.0.343
- Add `Platform`to `subnet_network_verification_type` resource
Expand Down
2 changes: 1 addition & 1 deletion Makefile
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.343
model_version:=v0.0.345
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
124 changes: 124 additions & 0 deletions accountsmgmt/v1/notification_details_request_builder.go
@@ -0,0 +1,124 @@
/*
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

// NotificationDetailsRequestBuilder contains the data and logic needed to build 'notification_details_request' objects.
//
// This struct is a request to get a templated email to a user related to this.
// subscription/cluster.
type NotificationDetailsRequestBuilder struct {
bitmap_ uint32
bccAddress string
clusterID string
clusterUUID string
subject string
subscriptionID string
includeRedHatAssociates bool
internalOnly bool
}

// NewNotificationDetailsRequest creates a new builder of 'notification_details_request' objects.
func NewNotificationDetailsRequest() *NotificationDetailsRequestBuilder {
return &NotificationDetailsRequestBuilder{}
}

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

// BccAddress sets the value of the 'bcc_address' attribute to the given value.
func (b *NotificationDetailsRequestBuilder) BccAddress(value string) *NotificationDetailsRequestBuilder {
b.bccAddress = value
b.bitmap_ |= 1
return b
}

// ClusterID sets the value of the 'cluster_ID' attribute to the given value.
func (b *NotificationDetailsRequestBuilder) ClusterID(value string) *NotificationDetailsRequestBuilder {
b.clusterID = value
b.bitmap_ |= 2
return b
}

// ClusterUUID sets the value of the 'cluster_UUID' attribute to the given value.
func (b *NotificationDetailsRequestBuilder) ClusterUUID(value string) *NotificationDetailsRequestBuilder {
b.clusterUUID = value
b.bitmap_ |= 4
return b
}

// IncludeRedHatAssociates sets the value of the 'include_red_hat_associates' attribute to the given value.
func (b *NotificationDetailsRequestBuilder) IncludeRedHatAssociates(value bool) *NotificationDetailsRequestBuilder {
b.includeRedHatAssociates = value
b.bitmap_ |= 8
return b
}

// InternalOnly sets the value of the 'internal_only' attribute to the given value.
func (b *NotificationDetailsRequestBuilder) InternalOnly(value bool) *NotificationDetailsRequestBuilder {
b.internalOnly = value
b.bitmap_ |= 16
return b
}

// Subject sets the value of the 'subject' attribute to the given value.
func (b *NotificationDetailsRequestBuilder) Subject(value string) *NotificationDetailsRequestBuilder {
b.subject = value
b.bitmap_ |= 32
return b
}

// SubscriptionID sets the value of the 'subscription_ID' attribute to the given value.
func (b *NotificationDetailsRequestBuilder) SubscriptionID(value string) *NotificationDetailsRequestBuilder {
b.subscriptionID = value
b.bitmap_ |= 64
return b
}

// Copy copies the attributes of the given object into this builder, discarding any previous values.
func (b *NotificationDetailsRequestBuilder) Copy(object *NotificationDetailsRequest) *NotificationDetailsRequestBuilder {
if object == nil {
return b
}
b.bitmap_ = object.bitmap_
b.bccAddress = object.bccAddress
b.clusterID = object.clusterID
b.clusterUUID = object.clusterUUID
b.includeRedHatAssociates = object.includeRedHatAssociates
b.internalOnly = object.internalOnly
b.subject = object.subject
b.subscriptionID = object.subscriptionID
return b
}

// Build creates a 'notification_details_request' object using the configuration stored in the builder.
func (b *NotificationDetailsRequestBuilder) Build() (object *NotificationDetailsRequest, err error) {
object = new(NotificationDetailsRequest)
object.bitmap_ = b.bitmap_
object.bccAddress = b.bccAddress
object.clusterID = b.clusterID
object.clusterUUID = b.clusterUUID
object.includeRedHatAssociates = b.includeRedHatAssociates
object.internalOnly = b.internalOnly
object.subject = b.subject
object.subscriptionID = b.subscriptionID
return
}
71 changes: 71 additions & 0 deletions accountsmgmt/v1/notification_details_request_list_builder.go
@@ -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

// NotificationDetailsRequestListBuilder contains the data and logic needed to build
// 'notification_details_request' objects.
type NotificationDetailsRequestListBuilder struct {
items []*NotificationDetailsRequestBuilder
}

// NewNotificationDetailsRequestList creates a new builder of 'notification_details_request' objects.
func NewNotificationDetailsRequestList() *NotificationDetailsRequestListBuilder {
return new(NotificationDetailsRequestListBuilder)
}

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

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

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

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

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

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

// readNotificationDetailsRequestList reads list of values of the ”notification_details_request' type from
// the given iterator.
func readNotificationDetailsRequestList(iterator *jsoniter.Iterator) []*NotificationDetailsRequest {
list := []*NotificationDetailsRequest{}
for iterator.ReadArray() {
item := readNotificationDetailsRequest(iterator)
list = append(list, item)
}
return list
}

0 comments on commit 574f4e5

Please sign in to comment.