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

[OCM-2150] STS Isolated Support Role #803

Closed
wants to merge 1 commit into from
Closed
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
30 changes: 15 additions & 15 deletions accountsmgmt/v1/accounts_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,16 @@ func (r *AccountsAddResponse) GetBody() (value *Account, ok bool) {

// AccountsListRequest is the request for the 'list' method.
type AccountsListRequest struct {
transport http.RoundTripper
path string
query url.Values
header http.Header
fetchlabelsLabels *bool
fields *string
order *string
page *int
search *string
size *int
transport http.RoundTripper
path string
query url.Values
header http.Header
fetchLabels *bool
fields *string
order *string
page *int
search *string
size *int
}

// Parameter adds a query parameter.
Expand All @@ -262,11 +262,11 @@ func (r *AccountsListRequest) Impersonate(user string) *AccountsListRequest {
return r
}

// FetchlabelsLabels sets the value of the 'fetchlabels_labels' parameter.
// FetchLabels sets the value of the 'fetch_labels' parameter.
//
// If true, includes the labels on an account in the output. Could slow request response time.
func (r *AccountsListRequest) FetchlabelsLabels(value bool) *AccountsListRequest {
r.fetchlabelsLabels = &value
func (r *AccountsListRequest) FetchLabels(value bool) *AccountsListRequest {
r.fetchLabels = &value
return r
}

Expand Down Expand Up @@ -348,8 +348,8 @@ func (r *AccountsListRequest) Send() (result *AccountsListResponse, err error) {
// SendContext sends this request, waits for the response, and returns it.
func (r *AccountsListRequest) SendContext(ctx context.Context) (result *AccountsListResponse, err error) {
query := helpers.CopyQuery(r.query)
if r.fetchlabelsLabels != nil {
helpers.AddValue(&query, "fetchlabels_labels", *r.fetchlabelsLabels)
if r.fetchLabels != nil {
helpers.AddValue(&query, "fetchLabels", *r.fetchLabels)
}
if r.fields != nil {
helpers.AddValue(&query, "fields", *r.fields)
Expand Down
22,860 changes: 11,429 additions & 11,431 deletions accountsmgmt/v1/openapi.go

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions accountsmgmt/v1/organizations_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,15 @@ func (r *OrganizationsAddResponse) GetBody() (value *Organization, ok bool) {

// OrganizationsListRequest is the request for the 'list' method.
type OrganizationsListRequest struct {
transport http.RoundTripper
path string
query url.Values
header http.Header
fetchlabelsLabels *bool
fields *string
page *int
search *string
size *int
transport http.RoundTripper
path string
query url.Values
header http.Header
fetchLabels *bool
fields *string
page *int
search *string
size *int
}

// Parameter adds a query parameter.
Expand All @@ -261,11 +261,11 @@ func (r *OrganizationsListRequest) Impersonate(user string) *OrganizationsListRe
return r
}

// FetchlabelsLabels sets the value of the 'fetchlabels_labels' parameter.
// FetchLabels sets the value of the 'fetch_labels' parameter.
//
// If true, includes the labels on an organization in the output. Could slow request response time.
func (r *OrganizationsListRequest) FetchlabelsLabels(value bool) *OrganizationsListRequest {
r.fetchlabelsLabels = &value
func (r *OrganizationsListRequest) FetchLabels(value bool) *OrganizationsListRequest {
r.fetchLabels = &value
return r
}

Expand Down Expand Up @@ -328,8 +328,8 @@ func (r *OrganizationsListRequest) Send() (result *OrganizationsListResponse, er
// SendContext sends this request, waits for the response, and returns it.
func (r *OrganizationsListRequest) SendContext(ctx context.Context) (result *OrganizationsListResponse, err error) {
query := helpers.CopyQuery(r.query)
if r.fetchlabelsLabels != nil {
helpers.AddValue(&query, "fetchlabels_labels", *r.fetchlabelsLabels)
if r.fetchLabels != nil {
helpers.AddValue(&query, "fetchLabels", *r.fetchLabels)
}
if r.fields != nil {
helpers.AddValue(&query, "fields", *r.fields)
Expand Down
44 changes: 22 additions & 22 deletions accountsmgmt/v1/subscriptions_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ func (c *SubscriptionsClient) Subscription(id string) *SubscriptionClient {

// SubscriptionsListRequest is the request for the 'list' method.
type SubscriptionsListRequest struct {
transport http.RoundTripper
path string
query url.Values
header http.Header
fetchaccountsAccounts *bool
fetchlabelsLabels *bool
fields *string
labels *string
order *string
page *int
search *string
size *int
transport http.RoundTripper
path string
query url.Values
header http.Header
fetchAccounts *bool
fetchLabels *bool
fields *string
labels *string
order *string
page *int
search *string
size *int
}

// Parameter adds a query parameter.
Expand All @@ -125,19 +125,19 @@ func (r *SubscriptionsListRequest) Impersonate(user string) *SubscriptionsListRe
return r
}

// FetchaccountsAccounts sets the value of the 'fetchaccounts_accounts' parameter.
// FetchAccounts sets the value of the 'fetch_accounts' parameter.
//
// If true, includes the account reference information in the output. Could slow request response time.
func (r *SubscriptionsListRequest) FetchaccountsAccounts(value bool) *SubscriptionsListRequest {
r.fetchaccountsAccounts = &value
func (r *SubscriptionsListRequest) FetchAccounts(value bool) *SubscriptionsListRequest {
r.fetchAccounts = &value
return r
}

// FetchlabelsLabels sets the value of the 'fetchlabels_labels' parameter.
// FetchLabels sets the value of the 'fetch_labels' parameter.
//
// If true, includes the labels on a subscription in the output. Could slow request response time.
func (r *SubscriptionsListRequest) FetchlabelsLabels(value bool) *SubscriptionsListRequest {
r.fetchlabelsLabels = &value
func (r *SubscriptionsListRequest) FetchLabels(value bool) *SubscriptionsListRequest {
r.fetchLabels = &value
return r
}

Expand Down Expand Up @@ -232,11 +232,11 @@ func (r *SubscriptionsListRequest) Send() (result *SubscriptionsListResponse, er
// SendContext sends this request, waits for the response, and returns it.
func (r *SubscriptionsListRequest) SendContext(ctx context.Context) (result *SubscriptionsListResponse, err error) {
query := helpers.CopyQuery(r.query)
if r.fetchaccountsAccounts != nil {
helpers.AddValue(&query, "fetchaccounts_accounts", *r.fetchaccountsAccounts)
if r.fetchAccounts != nil {
helpers.AddValue(&query, "fetchAccounts", *r.fetchAccounts)
}
if r.fetchlabelsLabels != nil {
helpers.AddValue(&query, "fetchlabels_labels", *r.fetchlabelsLabels)
if r.fetchLabels != nil {
helpers.AddValue(&query, "fetchLabels", *r.fetchLabels)
}
if r.fields != nil {
helpers.AddValue(&query, "fields", *r.fields)
Expand Down
8 changes: 8 additions & 0 deletions clustersmgmt/v1/cluster_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ func (c *ClusterClient) Addons() *AddOnInstallationsClient {
)
}

// ClusterStsSupportRole returns the target 'cluster_sts_support_role' resource.
func (c *ClusterClient) ClusterStsSupportRole() *ClusterStsSupportRoleClient {
return NewClusterStsSupportRoleClient(
c.transport,
path.Join(c.path, "cluster_sts_support_role"),
)
}

// Clusterdeployment returns the target 'clusterdeployment' resource.
//
// Reference to the resource that manages the cluster deployment.
Expand Down
63 changes: 63 additions & 0 deletions clustersmgmt/v1/cluster_sts_support_role_builder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
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

// ClusterStsSupportRoleBuilder contains the data and logic needed to build 'cluster_sts_support_role' objects.
//
// Isolated STS support role created per organization.
type ClusterStsSupportRoleBuilder struct {
bitmap_ uint32
roleArn string
}

// NewClusterStsSupportRole creates a new builder of 'cluster_sts_support_role' objects.
func NewClusterStsSupportRole() *ClusterStsSupportRoleBuilder {
return &ClusterStsSupportRoleBuilder{}
}

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

// RoleArn sets the value of the 'role_arn' attribute to the given value.
func (b *ClusterStsSupportRoleBuilder) RoleArn(value string) *ClusterStsSupportRoleBuilder {
b.roleArn = value
b.bitmap_ |= 1
return b
}

// Copy copies the attributes of the given object into this builder, discarding any previous values.
func (b *ClusterStsSupportRoleBuilder) Copy(object *ClusterStsSupportRole) *ClusterStsSupportRoleBuilder {
if object == nil {
return b
}
b.bitmap_ = object.bitmap_
b.roleArn = object.roleArn
return b
}

// Build creates a 'cluster_sts_support_role' object using the configuration stored in the builder.
func (b *ClusterStsSupportRoleBuilder) Build() (object *ClusterStsSupportRole, err error) {
object = new(ClusterStsSupportRole)
object.bitmap_ = b.bitmap_
object.roleArn = b.roleArn
return
}
Loading
Loading