Skip to content

Commit

Permalink
Merge pull request #986 from mnecas/bump_and_release
Browse files Browse the repository at this point in the history
Bump model to v0.0.389 and release 0.1.436
  • Loading branch information
tzvatot committed Aug 13, 2024
2 parents 609f383 + 8c8d08c commit d2758a6
Show file tree
Hide file tree
Showing 25 changed files with 8,989 additions and 7,285 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
This document describes the relevant changes between releases of the OCM API
SDK.

## 0.1.436
- Update model version v0.0.389
- Add state struct to node pool
- Add limited support reason override

## 0.1.435
- Add 'OidcThumbprint' type model to v1 and v2alpha1
- Add 'OidcThumbprintInput' type model to v1 and v2alpha1
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.388
model_version:=v0.0.389
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
31 changes: 28 additions & 3 deletions clustersmgmt/v1/limited_support_reason_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type LimitedSupportReasonBuilder struct {
creationTimestamp time.Time
details string
detectionType DetectionType
override *LimitedSupportReasonOverrideBuilder
summary string
template *LimitedSupportReasonTemplateBuilder
}
Expand Down Expand Up @@ -88,10 +89,23 @@ func (b *LimitedSupportReasonBuilder) DetectionType(value DetectionType) *Limite
return b
}

// Override sets the value of the 'override' attribute to the given value.
//
// Representation of the limited support reason override.
func (b *LimitedSupportReasonBuilder) Override(value *LimitedSupportReasonOverrideBuilder) *LimitedSupportReasonBuilder {
b.override = value
if value != nil {
b.bitmap_ |= 64
} else {
b.bitmap_ &^= 64
}
return b
}

// Summary sets the value of the 'summary' attribute to the given value.
func (b *LimitedSupportReasonBuilder) Summary(value string) *LimitedSupportReasonBuilder {
b.summary = value
b.bitmap_ |= 64
b.bitmap_ |= 128
return b
}

Expand All @@ -101,9 +115,9 @@ func (b *LimitedSupportReasonBuilder) Summary(value string) *LimitedSupportReaso
func (b *LimitedSupportReasonBuilder) Template(value *LimitedSupportReasonTemplateBuilder) *LimitedSupportReasonBuilder {
b.template = value
if value != nil {
b.bitmap_ |= 128
b.bitmap_ |= 256
} else {
b.bitmap_ &^= 128
b.bitmap_ &^= 256
}
return b
}
Expand All @@ -119,6 +133,11 @@ func (b *LimitedSupportReasonBuilder) Copy(object *LimitedSupportReason) *Limite
b.creationTimestamp = object.creationTimestamp
b.details = object.details
b.detectionType = object.detectionType
if object.override != nil {
b.override = NewLimitedSupportReasonOverride().Copy(object.override)
} else {
b.override = nil
}
b.summary = object.summary
if object.template != nil {
b.template = NewLimitedSupportReasonTemplate().Copy(object.template)
Expand All @@ -137,6 +156,12 @@ func (b *LimitedSupportReasonBuilder) Build() (object *LimitedSupportReason, err
object.creationTimestamp = b.creationTimestamp
object.details = b.details
object.detectionType = b.detectionType
if b.override != nil {
object.override, err = b.override.Build()
if err != nil {
return
}
}
object.summary = b.summary
if b.template != nil {
object.template, err = b.template.Build()
Expand Down
89 changes: 89 additions & 0 deletions clustersmgmt/v1/limited_support_reason_override_builder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
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

// LimitedSupportReasonOverrideBuilder contains the data and logic needed to build 'limited_support_reason_override' objects.
//
// Representation of the limited support reason override.
type LimitedSupportReasonOverrideBuilder struct {
bitmap_ uint32
id string
href string
enabled bool
}

// NewLimitedSupportReasonOverride creates a new builder of 'limited_support_reason_override' objects.
func NewLimitedSupportReasonOverride() *LimitedSupportReasonOverrideBuilder {
return &LimitedSupportReasonOverrideBuilder{}
}

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

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

// HREF sets the link to the object.
func (b *LimitedSupportReasonOverrideBuilder) HREF(value string) *LimitedSupportReasonOverrideBuilder {
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 *LimitedSupportReasonOverrideBuilder) Empty() bool {
return b == nil || b.bitmap_&^1 == 0
}

// Enabled sets the value of the 'enabled' attribute to the given value.
func (b *LimitedSupportReasonOverrideBuilder) Enabled(value bool) *LimitedSupportReasonOverrideBuilder {
b.enabled = value
b.bitmap_ |= 8
return b
}

// Copy copies the attributes of the given object into this builder, discarding any previous values.
func (b *LimitedSupportReasonOverrideBuilder) Copy(object *LimitedSupportReasonOverride) *LimitedSupportReasonOverrideBuilder {
if object == nil {
return b
}
b.bitmap_ = object.bitmap_
b.id = object.id
b.href = object.href
b.enabled = object.enabled
return b
}

// Build creates a 'limited_support_reason_override' object using the configuration stored in the builder.
func (b *LimitedSupportReasonOverrideBuilder) Build() (object *LimitedSupportReasonOverride, err error) {
object = new(LimitedSupportReasonOverride)
object.id = b.id
object.href = b.href
object.bitmap_ = b.bitmap_
object.enabled = b.enabled
return
}
71 changes: 71 additions & 0 deletions clustersmgmt/v1/limited_support_reason_override_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/clustersmgmt/v1

// LimitedSupportReasonOverrideListBuilder contains the data and logic needed to build
// 'limited_support_reason_override' objects.
type LimitedSupportReasonOverrideListBuilder struct {
items []*LimitedSupportReasonOverrideBuilder
}

// NewLimitedSupportReasonOverrideList creates a new builder of 'limited_support_reason_override' objects.
func NewLimitedSupportReasonOverrideList() *LimitedSupportReasonOverrideListBuilder {
return new(LimitedSupportReasonOverrideListBuilder)
}

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

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

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

import (
"io"

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

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

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

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

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

0 comments on commit d2758a6

Please sign in to comment.