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

fix(Global Tagging): regenerate service using latest API definition #289

Merged
merged 1 commit into from
Nov 27, 2023
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
2 changes: 1 addition & 1 deletion globalsearchv2/global_search_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 3.79.0-2eb6af3d-20230905-174838
* IBM OpenAPI SDK Code Generator Version: 3.82.1-2082d402-20231115-195014
*/

// Package globalsearchv2 : Operations and models for the GlobalSearchV2 service
Expand Down
77 changes: 2 additions & 75 deletions globaltaggingv1/global_tagging_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 3.79.0-2eb6af3d-20230905-174838
* IBM OpenAPI SDK Code Generator Version: 3.82.1-2082d402-20231115-195014
*/

// Package globaltaggingv1 : Operations and models for the GlobalTaggingV1 service
Expand Down Expand Up @@ -206,9 +206,6 @@ func (globalTagging *GlobalTaggingV1) ListTagsWithContext(ctx context.Context, l
builder.AddHeader("transaction-id", fmt.Sprint(*listTagsOptions.TransactionID))
}

if listTagsOptions.ImpersonateUser != nil {
builder.AddQuery("impersonate_user", fmt.Sprint(*listTagsOptions.ImpersonateUser))
}
if listTagsOptions.AccountID != nil {
builder.AddQuery("account_id", fmt.Sprint(*listTagsOptions.AccountID))
}
Expand Down Expand Up @@ -308,9 +305,6 @@ func (globalTagging *GlobalTaggingV1) CreateTagWithContext(ctx context.Context,
builder.AddHeader("transaction-id", fmt.Sprint(*createTagOptions.TransactionID))
}

if createTagOptions.ImpersonateUser != nil {
builder.AddQuery("impersonate_user", fmt.Sprint(*createTagOptions.ImpersonateUser))
}
if createTagOptions.AccountID != nil {
builder.AddQuery("account_id", fmt.Sprint(*createTagOptions.AccountID))
}
Expand Down Expand Up @@ -391,9 +385,6 @@ func (globalTagging *GlobalTaggingV1) DeleteTagAllWithContext(ctx context.Contex
if deleteTagAllOptions.Providers != nil {
builder.AddQuery("providers", fmt.Sprint(*deleteTagAllOptions.Providers))
}
if deleteTagAllOptions.ImpersonateUser != nil {
builder.AddQuery("impersonate_user", fmt.Sprint(*deleteTagAllOptions.ImpersonateUser))
}
if deleteTagAllOptions.AccountID != nil {
builder.AddQuery("account_id", fmt.Sprint(*deleteTagAllOptions.AccountID))
}
Expand Down Expand Up @@ -473,9 +464,6 @@ func (globalTagging *GlobalTaggingV1) DeleteTagWithContext(ctx context.Context,
if deleteTagOptions.Providers != nil {
builder.AddQuery("providers", strings.Join(deleteTagOptions.Providers, ","))
}
if deleteTagOptions.ImpersonateUser != nil {
builder.AddQuery("impersonate_user", fmt.Sprint(*deleteTagOptions.ImpersonateUser))
}
if deleteTagOptions.AccountID != nil {
builder.AddQuery("account_id", fmt.Sprint(*deleteTagOptions.AccountID))
}
Expand Down Expand Up @@ -550,9 +538,6 @@ func (globalTagging *GlobalTaggingV1) AttachTagWithContext(ctx context.Context,
builder.AddHeader("transaction-id", fmt.Sprint(*attachTagOptions.TransactionID))
}

if attachTagOptions.ImpersonateUser != nil {
builder.AddQuery("impersonate_user", fmt.Sprint(*attachTagOptions.ImpersonateUser))
}
if attachTagOptions.AccountID != nil {
builder.AddQuery("account_id", fmt.Sprint(*attachTagOptions.AccountID))
}
Expand Down Expand Up @@ -641,9 +626,6 @@ func (globalTagging *GlobalTaggingV1) DetachTagWithContext(ctx context.Context,
builder.AddHeader("transaction-id", fmt.Sprint(*detachTagOptions.TransactionID))
}

if detachTagOptions.ImpersonateUser != nil {
builder.AddQuery("impersonate_user", fmt.Sprint(*detachTagOptions.ImpersonateUser))
}
if detachTagOptions.AccountID != nil {
builder.AddQuery("account_id", fmt.Sprint(*detachTagOptions.AccountID))
}
Expand Down Expand Up @@ -718,9 +700,6 @@ type AttachTagOptions struct {
// Deprecated: this field is deprecated and may be removed in a future release.
TransactionID *string `json:"transaction-id,omitempty"`

// The user on whose behalf the attach operation must be performed (_for administrators only_).
ImpersonateUser *string `json:"impersonate_user,omitempty"`

// The ID of the billing account of the tagged resource. It is a required parameter if `tag_type` is set to `service`.
// Otherwise, it is inferred from the authorization IAM token.
AccountID *string `json:"account_id,omitempty"`
Expand Down Expand Up @@ -786,12 +765,6 @@ func (_options *AttachTagOptions) SetTransactionID(transactionID string) *Attach
return _options
}

// SetImpersonateUser : Allow user to set ImpersonateUser
func (_options *AttachTagOptions) SetImpersonateUser(impersonateUser string) *AttachTagOptions {
_options.ImpersonateUser = core.StringPtr(impersonateUser)
return _options
}

// SetAccountID : Allow user to set AccountID
func (_options *AttachTagOptions) SetAccountID(accountID string) *AttachTagOptions {
_options.AccountID = core.StringPtr(accountID)
Expand All @@ -815,9 +788,6 @@ type CreateTagOptions struct {
// An array of tag names to create.
TagNames []string `json:"tag_names" validate:"required"`

// The user on whose behalf the create operation must be performed (_for administrators only_).
ImpersonateUser *string `json:"impersonate_user,omitempty"`

// An alphanumeric string that is used to trace the request. The value may include ASCII alphanumerics and any of
// following segment separators: space ( ), comma (,), hyphen, (-), and underscore (_) and may have a length up to 1024
// bytes. The value is considered invalid and must be ignored if that value includes any other character or is longer
Expand All @@ -838,8 +808,7 @@ type CreateTagOptions struct {
// Deprecated: this field is deprecated and may be removed in a future release.
TransactionID *string `json:"transaction-id,omitempty"`

// The ID of the billing account where the tag must be created. It is a required parameter if `impersonate_user` is
// set.
// The ID of the billing account where the tag must be created.
AccountID *string `json:"account_id,omitempty"`

// The type of the tags you want to create. The only allowed value is `access`.
Expand Down Expand Up @@ -868,12 +837,6 @@ func (_options *CreateTagOptions) SetTagNames(tagNames []string) *CreateTagOptio
return _options
}

// SetImpersonateUser : Allow user to set ImpersonateUser
func (_options *CreateTagOptions) SetImpersonateUser(impersonateUser string) *CreateTagOptions {
_options.ImpersonateUser = core.StringPtr(impersonateUser)
return _options
}

// SetXRequestID : Allow user to set XRequestID
func (_options *CreateTagOptions) SetXRequestID(xRequestID string) *CreateTagOptions {
_options.XRequestID = core.StringPtr(xRequestID)
Expand Down Expand Up @@ -977,9 +940,6 @@ type DeleteTagAllOptions struct {
// Select a provider. Supported values are `ghost` and `ims`.
Providers *string `json:"providers,omitempty"`

// The user on whose behalf the delete all operation must be performed (_for administrators only_).
ImpersonateUser *string `json:"impersonate_user,omitempty"`

// The ID of the billing account to delete the tags for. If it is not set, then it is taken from the authorization
// token. It is a required parameter if `tag_type` is set to `service`.
AccountID *string `json:"account_id,omitempty"`
Expand Down Expand Up @@ -1038,12 +998,6 @@ func (_options *DeleteTagAllOptions) SetProviders(providers string) *DeleteTagAl
return _options
}

// SetImpersonateUser : Allow user to set ImpersonateUser
func (_options *DeleteTagAllOptions) SetImpersonateUser(impersonateUser string) *DeleteTagAllOptions {
_options.ImpersonateUser = core.StringPtr(impersonateUser)
return _options
}

// SetAccountID : Allow user to set AccountID
func (_options *DeleteTagAllOptions) SetAccountID(accountID string) *DeleteTagAllOptions {
_options.AccountID = core.StringPtr(accountID)
Expand Down Expand Up @@ -1091,9 +1045,6 @@ type DeleteTagOptions struct {
// IMS, use `ghost,ims`.
Providers []string `json:"providers,omitempty"`

// The user on whose behalf the delete operation must be performed (_for administrators only_).
ImpersonateUser *string `json:"impersonate_user,omitempty"`

// The ID of the billing account to delete the tag for. It is a required parameter if `tag_type` is set to `service`,
// otherwise it is inferred from the authorization IAM token.
AccountID *string `json:"account_id,omitempty"`
Expand Down Expand Up @@ -1159,12 +1110,6 @@ func (_options *DeleteTagOptions) SetProviders(providers []string) *DeleteTagOpt
return _options
}

// SetImpersonateUser : Allow user to set ImpersonateUser
func (_options *DeleteTagOptions) SetImpersonateUser(impersonateUser string) *DeleteTagOptions {
_options.ImpersonateUser = core.StringPtr(impersonateUser)
return _options
}

// SetAccountID : Allow user to set AccountID
func (_options *DeleteTagOptions) SetAccountID(accountID string) *DeleteTagOptions {
_options.AccountID = core.StringPtr(accountID)
Expand Down Expand Up @@ -1375,9 +1320,6 @@ type DetachTagOptions struct {
// Deprecated: this field is deprecated and may be removed in a future release.
TransactionID *string `json:"transaction-id,omitempty"`

// The user on whose behalf the detach operation must be performed (_for administrators only_).
ImpersonateUser *string `json:"impersonate_user,omitempty"`

// The ID of the billing account of the untagged resource. It is a required parameter if `tag_type` is set to
// `service`, otherwise it is inferred from the authorization IAM token.
AccountID *string `json:"account_id,omitempty"`
Expand Down Expand Up @@ -1443,12 +1385,6 @@ func (_options *DetachTagOptions) SetTransactionID(transactionID string) *Detach
return _options
}

// SetImpersonateUser : Allow user to set ImpersonateUser
func (_options *DetachTagOptions) SetImpersonateUser(impersonateUser string) *DetachTagOptions {
_options.ImpersonateUser = core.StringPtr(impersonateUser)
return _options
}

// SetAccountID : Allow user to set AccountID
func (_options *DetachTagOptions) SetAccountID(accountID string) *DetachTagOptions {
_options.AccountID = core.StringPtr(accountID)
Expand Down Expand Up @@ -1489,9 +1425,6 @@ type ListTagsOptions struct {
// Deprecated: this field is deprecated and may be removed in a future release.
TransactionID *string `json:"transaction-id,omitempty"`

// The user on whose behalf the get operation must be performed (_for administrators only_).
ImpersonateUser *string `json:"impersonate_user,omitempty"`

// The ID of the billing account to list the tags for. If it is not set, then it is taken from the authorization token.
// This parameter is required if `tag_type` is set to `service`.
AccountID *string `json:"account_id,omitempty"`
Expand Down Expand Up @@ -1580,12 +1513,6 @@ func (_options *ListTagsOptions) SetTransactionID(transactionID string) *ListTag
return _options
}

// SetImpersonateUser : Allow user to set ImpersonateUser
func (_options *ListTagsOptions) SetImpersonateUser(impersonateUser string) *ListTagsOptions {
_options.ImpersonateUser = core.StringPtr(impersonateUser)
return _options
}

// SetAccountID : Allow user to set AccountID
func (_options *ListTagsOptions) SetAccountID(accountID string) *ListTagsOptions {
_options.AccountID = core.StringPtr(accountID)
Expand Down
Loading