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

bump version to 0.1.441 #996

Merged
merged 2 commits into from
Sep 10, 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.441
- Update model version v0.0.394
- Add `WifTemplates` field to `WifConfig` model

## 0.1.440
- Update model version v0.0.393
- Include missing field to hypershift model
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.393
model_version:=v0.0.394
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
698 changes: 356 additions & 342 deletions clustersmgmt/v1/openapi.go

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions clustersmgmt/v1/wif_config_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type WifConfigBuilder struct {
displayName string
gcp *WifGcpBuilder
organization *OrganizationLinkBuilder
wifTemplates []string
}

// NewWifConfig creates a new builder of 'wif_config' objects.
Expand Down Expand Up @@ -92,6 +93,14 @@ func (b *WifConfigBuilder) Organization(value *OrganizationLinkBuilder) *WifConf
return b
}

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

// Copy copies the attributes of the given object into this builder, discarding any previous values.
func (b *WifConfigBuilder) Copy(object *WifConfig) *WifConfigBuilder {
if object == nil {
Expand All @@ -111,6 +120,12 @@ func (b *WifConfigBuilder) Copy(object *WifConfig) *WifConfigBuilder {
} else {
b.organization = nil
}
if object.wifTemplates != nil {
b.wifTemplates = make([]string, len(object.wifTemplates))
copy(b.wifTemplates, object.wifTemplates)
} else {
b.wifTemplates = nil
}
return b
}

Expand All @@ -133,5 +148,9 @@ func (b *WifConfigBuilder) Build() (object *WifConfig, err error) {
return
}
}
if b.wifTemplates != nil {
object.wifTemplates = make([]string, len(b.wifTemplates))
copy(object.wifTemplates, b.wifTemplates)
}
return
}
24 changes: 24 additions & 0 deletions clustersmgmt/v1/wif_config_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type WifConfig struct {
displayName string
gcp *WifGcp
organization *OrganizationLink
wifTemplates []string
}

// Kind returns the name of the type of the object.
Expand Down Expand Up @@ -169,6 +170,29 @@ func (o *WifConfig) GetOrganization() (value *OrganizationLink, ok bool) {
return
}

// WifTemplates returns the value of the 'wif_templates' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Wif template(s) used to configure IAM resources
func (o *WifConfig) WifTemplates() []string {
if o != nil && o.bitmap_&64 != 0 {
return o.wifTemplates
}
return nil
}

// GetWifTemplates returns the value of the 'wif_templates' attribute and
// a flag indicating if the attribute has a value.
//
// Wif template(s) used to configure IAM resources
func (o *WifConfig) GetWifTemplates() (value []string, ok bool) {
ok = o != nil && o.bitmap_&64 != 0
if ok {
value = o.wifTemplates
}
return
}

// WifConfigListKind is the name of the type used to represent list of objects of
// type 'wif_config'.
const WifConfigListKind = "WifConfigList"
Expand Down
13 changes: 13 additions & 0 deletions clustersmgmt/v1/wif_config_type_json.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ func writeWifConfig(object *WifConfig, stream *jsoniter.Stream) {
}
stream.WriteObjectField("organization")
writeOrganizationLink(object.organization, stream)
count++
}
present_ = object.bitmap_&64 != 0 && object.wifTemplates != nil
if present_ {
if count > 0 {
stream.WriteMore()
}
stream.WriteObjectField("wif_templates")
writeStringList(object.wifTemplates, stream)
}
stream.WriteObjectEnd()
}
Expand Down Expand Up @@ -138,6 +147,10 @@ func readWifConfig(iterator *jsoniter.Iterator) *WifConfig {
value := readOrganizationLink(iterator)
object.organization = value
object.bitmap_ |= 32
case "wif_templates":
value := readStringList(iterator)
object.wifTemplates = value
object.bitmap_ |= 64
default:
iterator.ReadAny()
}
Expand Down
7 changes: 7 additions & 0 deletions openapi/clusters_mgmt/v1/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -18519,6 +18519,13 @@
"organization": {
"description": "The OCM organization that this wif_config resource belongs to.",
"$ref": "#/components/schemas/OrganizationLink"
},
"wif_templates": {
"description": "Wif template(s) used to configure IAM resources",
"type": "array",
"items": {
"type": "string"
}
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ limitations under the License.

package sdk

const Version = "0.1.440"
const Version = "0.1.441"
Loading