Skip to content

Commit

Permalink
chore: bump api model to v0.0.245 and release sdk v.0.1.304
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbranco committed Dec 29, 2022
1 parent 310d4bd commit f9ff699
Show file tree
Hide file tree
Showing 8 changed files with 6,508 additions and 6,442 deletions.
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.304
- Update to model v0.0.245
- Add `BoundServiceAccountKeyKmsId` attribute to the `Sts` model.

## 0.1.303
- Update to model v0.0.244
- Add `ARN` attribute to the `AWSSTSPolicy` model.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
export CGO_ENABLED=0

# Details of the model to use:
model_version:=v0.0.244
model_version:=v0.0.245
model_url:=https://github.com/openshift-online/ocm-api-model.git

# Details of the metamodel to use:
Expand Down
12,805 changes: 6,408 additions & 6,397 deletions clustersmgmt/v1/openapi.go

Large diffs are not rendered by default.

28 changes: 19 additions & 9 deletions clustersmgmt/v1/sts_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ package v1 // github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1
type STSBuilder struct {
bitmap_ uint32
oidcEndpointURL string
boundServiceAccountKeyKmsId string
boundServiceAccountSigningKey string
externalID string
instanceIAMRoles *InstanceIAMRolesBuilder
Expand Down Expand Up @@ -60,17 +61,24 @@ func (b *STSBuilder) AutoMode(value bool) *STSBuilder {
return b
}

// BoundServiceAccountKeyKmsId sets the value of the 'bound_service_account_key_kms_id' attribute to the given value.
func (b *STSBuilder) BoundServiceAccountKeyKmsId(value string) *STSBuilder {
b.boundServiceAccountKeyKmsId = value
b.bitmap_ |= 4
return b
}

// BoundServiceAccountSigningKey sets the value of the 'bound_service_account_signing_key' attribute to the given value.
func (b *STSBuilder) BoundServiceAccountSigningKey(value string) *STSBuilder {
b.boundServiceAccountSigningKey = value
b.bitmap_ |= 4
b.bitmap_ |= 8
return b
}

// ExternalID sets the value of the 'external_ID' attribute to the given value.
func (b *STSBuilder) ExternalID(value string) *STSBuilder {
b.externalID = value
b.bitmap_ |= 8
b.bitmap_ |= 16
return b
}

Expand All @@ -80,9 +88,9 @@ func (b *STSBuilder) ExternalID(value string) *STSBuilder {
func (b *STSBuilder) InstanceIAMRoles(value *InstanceIAMRolesBuilder) *STSBuilder {
b.instanceIAMRoles = value
if value != nil {
b.bitmap_ |= 16
b.bitmap_ |= 32
} else {
b.bitmap_ &^= 16
b.bitmap_ &^= 32
}
return b
}
Expand All @@ -91,35 +99,35 @@ func (b *STSBuilder) InstanceIAMRoles(value *InstanceIAMRolesBuilder) *STSBuilde
func (b *STSBuilder) OperatorIAMRoles(values ...*OperatorIAMRoleBuilder) *STSBuilder {
b.operatorIAMRoles = make([]*OperatorIAMRoleBuilder, len(values))
copy(b.operatorIAMRoles, values)
b.bitmap_ |= 32
b.bitmap_ |= 64
return b
}

// OperatorRolePrefix sets the value of the 'operator_role_prefix' attribute to the given value.
func (b *STSBuilder) OperatorRolePrefix(value string) *STSBuilder {
b.operatorRolePrefix = value
b.bitmap_ |= 64
b.bitmap_ |= 128
return b
}

// PermissionBoundary sets the value of the 'permission_boundary' attribute to the given value.
func (b *STSBuilder) PermissionBoundary(value string) *STSBuilder {
b.permissionBoundary = value
b.bitmap_ |= 128
b.bitmap_ |= 256
return b
}

// RoleARN sets the value of the 'role_ARN' attribute to the given value.
func (b *STSBuilder) RoleARN(value string) *STSBuilder {
b.roleARN = value
b.bitmap_ |= 256
b.bitmap_ |= 512
return b
}

// SupportRoleARN sets the value of the 'support_role_ARN' attribute to the given value.
func (b *STSBuilder) SupportRoleARN(value string) *STSBuilder {
b.supportRoleARN = value
b.bitmap_ |= 512
b.bitmap_ |= 1024
return b
}

Expand All @@ -131,6 +139,7 @@ func (b *STSBuilder) Copy(object *STS) *STSBuilder {
b.bitmap_ = object.bitmap_
b.oidcEndpointURL = object.oidcEndpointURL
b.autoMode = object.autoMode
b.boundServiceAccountKeyKmsId = object.boundServiceAccountKeyKmsId
b.boundServiceAccountSigningKey = object.boundServiceAccountSigningKey
b.externalID = object.externalID
if object.instanceIAMRoles != nil {
Expand Down Expand Up @@ -159,6 +168,7 @@ func (b *STSBuilder) Build() (object *STS, err error) {
object.bitmap_ = b.bitmap_
object.oidcEndpointURL = b.oidcEndpointURL
object.autoMode = b.autoMode
object.boundServiceAccountKeyKmsId = b.boundServiceAccountKeyKmsId
object.boundServiceAccountSigningKey = b.boundServiceAccountSigningKey
object.externalID = b.externalID
if b.instanceIAMRoles != nil {
Expand Down
60 changes: 42 additions & 18 deletions clustersmgmt/v1/sts_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ package v1 // github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1
type STS struct {
bitmap_ uint32
oidcEndpointURL string
boundServiceAccountKeyKmsId string
boundServiceAccountSigningKey string
externalID string
instanceIAMRoles *InstanceIAMRoles
Expand Down Expand Up @@ -87,12 +88,35 @@ func (o *STS) GetAutoMode() (value bool, ok bool) {
return
}

// BoundServiceAccountKeyKmsId returns the value of the 'bound_service_account_key_kms_id' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Kms Id for the bound service account signing key.
func (o *STS) BoundServiceAccountKeyKmsId() string {
if o != nil && o.bitmap_&4 != 0 {
return o.boundServiceAccountKeyKmsId
}
return ""
}

// GetBoundServiceAccountKeyKmsId returns the value of the 'bound_service_account_key_kms_id' attribute and
// a flag indicating if the attribute has a value.
//
// Kms Id for the bound service account signing key.
func (o *STS) GetBoundServiceAccountKeyKmsId() (value string, ok bool) {
ok = o != nil && o.bitmap_&4 != 0
if ok {
value = o.boundServiceAccountKeyKmsId
}
return
}

// BoundServiceAccountSigningKey returns the value of the 'bound_service_account_signing_key' attribute, or
// the zero value of the type if the attribute doesn't have a value.
//
// Private key used to sign the service account token and allow cluster resources to authenticate against the cloud provider
// Private key used to sign the service account token and allow cluster resources to authenticate against the cloud provider.
func (o *STS) BoundServiceAccountSigningKey() string {
if o != nil && o.bitmap_&4 != 0 {
if o != nil && o.bitmap_&8 != 0 {
return o.boundServiceAccountSigningKey
}
return ""
Expand All @@ -101,9 +125,9 @@ func (o *STS) BoundServiceAccountSigningKey() string {
// GetBoundServiceAccountSigningKey returns the value of the 'bound_service_account_signing_key' attribute and
// a flag indicating if the attribute has a value.
//
// Private key used to sign the service account token and allow cluster resources to authenticate against the cloud provider
// Private key used to sign the service account token and allow cluster resources to authenticate against the cloud provider.
func (o *STS) GetBoundServiceAccountSigningKey() (value string, ok bool) {
ok = o != nil && o.bitmap_&4 != 0
ok = o != nil && o.bitmap_&8 != 0
if ok {
value = o.boundServiceAccountSigningKey
}
Expand All @@ -115,7 +139,7 @@ func (o *STS) GetBoundServiceAccountSigningKey() (value string, ok bool) {
//
// Optional unique identifier when assuming role in another account
func (o *STS) ExternalID() string {
if o != nil && o.bitmap_&8 != 0 {
if o != nil && o.bitmap_&16 != 0 {
return o.externalID
}
return ""
Expand All @@ -126,7 +150,7 @@ func (o *STS) ExternalID() string {
//
// Optional unique identifier when assuming role in another account
func (o *STS) GetExternalID() (value string, ok bool) {
ok = o != nil && o.bitmap_&8 != 0
ok = o != nil && o.bitmap_&16 != 0
if ok {
value = o.externalID
}
Expand All @@ -138,7 +162,7 @@ func (o *STS) GetExternalID() (value string, ok bool) {
//
// Instance IAM roles to use for the instance profiles of the master and worker instances
func (o *STS) InstanceIAMRoles() *InstanceIAMRoles {
if o != nil && o.bitmap_&16 != 0 {
if o != nil && o.bitmap_&32 != 0 {
return o.instanceIAMRoles
}
return nil
Expand All @@ -149,7 +173,7 @@ func (o *STS) InstanceIAMRoles() *InstanceIAMRoles {
//
// Instance IAM roles to use for the instance profiles of the master and worker instances
func (o *STS) GetInstanceIAMRoles() (value *InstanceIAMRoles, ok bool) {
ok = o != nil && o.bitmap_&16 != 0
ok = o != nil && o.bitmap_&32 != 0
if ok {
value = o.instanceIAMRoles
}
Expand All @@ -161,7 +185,7 @@ func (o *STS) GetInstanceIAMRoles() (value *InstanceIAMRoles, ok bool) {
//
// List of roles necessary to access the AWS resources of the various operators used during installation
func (o *STS) OperatorIAMRoles() []*OperatorIAMRole {
if o != nil && o.bitmap_&32 != 0 {
if o != nil && o.bitmap_&64 != 0 {
return o.operatorIAMRoles
}
return nil
Expand All @@ -172,7 +196,7 @@ func (o *STS) OperatorIAMRoles() []*OperatorIAMRole {
//
// List of roles necessary to access the AWS resources of the various operators used during installation
func (o *STS) GetOperatorIAMRoles() (value []*OperatorIAMRole, ok bool) {
ok = o != nil && o.bitmap_&32 != 0
ok = o != nil && o.bitmap_&64 != 0
if ok {
value = o.operatorIAMRoles
}
Expand All @@ -184,7 +208,7 @@ func (o *STS) GetOperatorIAMRoles() (value []*OperatorIAMRole, ok bool) {
//
// Optional user provided prefix for operator roles.
func (o *STS) OperatorRolePrefix() string {
if o != nil && o.bitmap_&64 != 0 {
if o != nil && o.bitmap_&128 != 0 {
return o.operatorRolePrefix
}
return ""
Expand All @@ -195,7 +219,7 @@ func (o *STS) OperatorRolePrefix() string {
//
// Optional user provided prefix for operator roles.
func (o *STS) GetOperatorRolePrefix() (value string, ok bool) {
ok = o != nil && o.bitmap_&64 != 0
ok = o != nil && o.bitmap_&128 != 0
if ok {
value = o.operatorRolePrefix
}
Expand All @@ -207,7 +231,7 @@ func (o *STS) GetOperatorRolePrefix() (value string, ok bool) {
//
// Optional user provided permission boundary.
func (o *STS) PermissionBoundary() string {
if o != nil && o.bitmap_&128 != 0 {
if o != nil && o.bitmap_&256 != 0 {
return o.permissionBoundary
}
return ""
Expand All @@ -218,7 +242,7 @@ func (o *STS) PermissionBoundary() string {
//
// Optional user provided permission boundary.
func (o *STS) GetPermissionBoundary() (value string, ok bool) {
ok = o != nil && o.bitmap_&128 != 0
ok = o != nil && o.bitmap_&256 != 0
if ok {
value = o.permissionBoundary
}
Expand All @@ -230,7 +254,7 @@ func (o *STS) GetPermissionBoundary() (value string, ok bool) {
//
// ARN of the AWS role to assume when installing the cluster
func (o *STS) RoleARN() string {
if o != nil && o.bitmap_&256 != 0 {
if o != nil && o.bitmap_&512 != 0 {
return o.roleARN
}
return ""
Expand All @@ -241,7 +265,7 @@ func (o *STS) RoleARN() string {
//
// ARN of the AWS role to assume when installing the cluster
func (o *STS) GetRoleARN() (value string, ok bool) {
ok = o != nil && o.bitmap_&256 != 0
ok = o != nil && o.bitmap_&512 != 0
if ok {
value = o.roleARN
}
Expand All @@ -253,7 +277,7 @@ func (o *STS) GetRoleARN() (value string, ok bool) {
//
// ARN of the AWS role used by SREs to access the cluster AWS account in order to provide support
func (o *STS) SupportRoleARN() string {
if o != nil && o.bitmap_&512 != 0 {
if o != nil && o.bitmap_&1024 != 0 {
return o.supportRoleARN
}
return ""
Expand All @@ -264,7 +288,7 @@ func (o *STS) SupportRoleARN() string {
//
// ARN of the AWS role used by SREs to access the cluster AWS account in order to provide support
func (o *STS) GetSupportRoleARN() (value string, ok bool) {
ok = o != nil && o.bitmap_&512 != 0
ok = o != nil && o.bitmap_&1024 != 0
if ok {
value = o.supportRoleARN
}
Expand Down
Loading

0 comments on commit f9ff699

Please sign in to comment.