|
15 | 15 | */
|
16 | 16 |
|
17 | 17 | /*
|
18 |
| - * IBM OpenAPI SDK Code Generator Version: 3.98.0-8be2046a-20241205-162752 |
| 18 | + * IBM OpenAPI SDK Code Generator Version: 3.103.0-e8b84313-20250402-201816 |
19 | 19 | */
|
20 | 20 |
|
21 | 21 | // Package iamidentityv1 : Operations and models for the IamIdentityV1 service
|
@@ -234,6 +234,9 @@ func (iamIdentity *IamIdentityV1) ListAPIKeysWithContext(ctx context.Context, li
|
234 | 234 | if listAPIKeysOptions.IncludeHistory != nil {
|
235 | 235 | builder.AddQuery("include_history", fmt.Sprint(*listAPIKeysOptions.IncludeHistory))
|
236 | 236 | }
|
| 237 | + if listAPIKeysOptions.Filter != nil { |
| 238 | + builder.AddQuery("filter", fmt.Sprint(*listAPIKeysOptions.Filter)) |
| 239 | + } |
237 | 240 |
|
238 | 241 | request, err := builder.Build()
|
239 | 242 | if err != nil {
|
@@ -962,6 +965,9 @@ func (iamIdentity *IamIdentityV1) ListServiceIdsWithContext(ctx context.Context,
|
962 | 965 | if listServiceIdsOptions.IncludeHistory != nil {
|
963 | 966 | builder.AddQuery("include_history", fmt.Sprint(*listServiceIdsOptions.IncludeHistory))
|
964 | 967 | }
|
| 968 | + if listServiceIdsOptions.Filter != nil { |
| 969 | + builder.AddQuery("filter", fmt.Sprint(*listServiceIdsOptions.Filter)) |
| 970 | + } |
965 | 971 |
|
966 | 972 | request, err := builder.Build()
|
967 | 973 | if err != nil {
|
@@ -1575,6 +1581,9 @@ func (iamIdentity *IamIdentityV1) ListProfilesWithContext(ctx context.Context, l
|
1575 | 1581 | if listProfilesOptions.Pagetoken != nil {
|
1576 | 1582 | builder.AddQuery("pagetoken", fmt.Sprint(*listProfilesOptions.Pagetoken))
|
1577 | 1583 | }
|
| 1584 | + if listProfilesOptions.Filter != nil { |
| 1585 | + builder.AddQuery("filter", fmt.Sprint(*listProfilesOptions.Filter)) |
| 1586 | + } |
1578 | 1587 |
|
1579 | 1588 | request, err := builder.Build()
|
1580 | 1589 | if err != nil {
|
@@ -2661,7 +2670,9 @@ func (iamIdentity *IamIdentityV1) SetProfileIdentitiesWithContext(ctx context.Co
|
2661 | 2670 | }
|
2662 | 2671 |
|
2663 | 2672 | // SetProfileIdentity : Add a specific identity that can assume the trusted profile
|
2664 |
| -// Add a specific identity that can assume the trusted profile. |
| 2673 | +// Add a specific identity that can assume the trusted profile. This API will update the trusted profile itself, thus |
| 2674 | +// calling it repeatedly for the same profile can lead to conflicts responded with HTTP code 409. Make sure to call this |
| 2675 | +// API only once in a few seconds for the same trusted profile. |
2665 | 2676 | func (iamIdentity *IamIdentityV1) SetProfileIdentity(setProfileIdentityOptions *SetProfileIdentityOptions) (result *ProfileIdentityResponse, response *core.DetailedResponse, err error) {
|
2666 | 2677 | result, response, err = iamIdentity.SetProfileIdentityWithContext(context.Background(), setProfileIdentityOptions)
|
2667 | 2678 | err = core.RepurposeSDKProblem(err, "")
|
@@ -2821,7 +2832,7 @@ func (iamIdentity *IamIdentityV1) GetProfileIdentityWithContext(ctx context.Cont
|
2821 | 2832 | return
|
2822 | 2833 | }
|
2823 | 2834 |
|
2824 |
| -// DeleteProfileIdentity : Delete the identity that can assume the trusted profile |
| 2835 | +// DeleteProfileIdentity : Delete the identity that can assume the trusted profile. This API will update the trusted profile itself, thus calling it repeatedly for the same profile can lead to conflicts responded with HTTP code 409. Make sure to call this API only once in a few seconds for the same trusted profile |
2825 | 2836 | // Delete the identity that can assume the trusted profile.
|
2826 | 2837 | func (iamIdentity *IamIdentityV1) DeleteProfileIdentity(deleteProfileIdentityOptions *DeleteProfileIdentityOptions) (response *core.DetailedResponse, err error) {
|
2827 | 2838 | response, err = iamIdentity.DeleteProfileIdentityWithContext(context.Background(), deleteProfileIdentityOptions)
|
@@ -11073,6 +11084,10 @@ type ListAPIKeysOptions struct {
|
11073 | 11084 | // Defines if the entity history is included in the response.
|
11074 | 11085 | IncludeHistory *bool `json:"include_history,omitempty"`
|
11075 | 11086 |
|
| 11087 | + // An optional filter query parameter used to refine the results of the search operation. For more information see |
| 11088 | + // [Filtering list results](#filter-list-results) section. |
| 11089 | + Filter *string `json:"filter,omitempty"` |
| 11090 | + |
11076 | 11091 | // Allows users to set headers on API requests.
|
11077 | 11092 | Headers map[string]string
|
11078 | 11093 | }
|
@@ -11157,6 +11172,12 @@ func (_options *ListAPIKeysOptions) SetIncludeHistory(includeHistory bool) *List
|
11157 | 11172 | return _options
|
11158 | 11173 | }
|
11159 | 11174 |
|
| 11175 | +// SetFilter : Allow user to set Filter |
| 11176 | +func (_options *ListAPIKeysOptions) SetFilter(filter string) *ListAPIKeysOptions { |
| 11177 | + _options.Filter = core.StringPtr(filter) |
| 11178 | + return _options |
| 11179 | +} |
| 11180 | + |
11160 | 11181 | // SetHeaders : Allow user to set Headers
|
11161 | 11182 | func (options *ListAPIKeysOptions) SetHeaders(param map[string]string) *ListAPIKeysOptions {
|
11162 | 11183 | options.Headers = param
|
@@ -11329,6 +11350,10 @@ type ListProfilesOptions struct {
|
11329 | 11350 | // Optional Prev or Next page token returned from a previous query execution. Default is start with first page.
|
11330 | 11351 | Pagetoken *string `json:"pagetoken,omitempty"`
|
11331 | 11352 |
|
| 11353 | + // An optional filter query parameter used to refine the results of the search operation. For more information see |
| 11354 | + // [Filtering list results](#filter-list-results) section. |
| 11355 | + Filter *string `json:"filter,omitempty"` |
| 11356 | + |
11332 | 11357 | // Allows users to set headers on API requests.
|
11333 | 11358 | Headers map[string]string
|
11334 | 11359 | }
|
@@ -11389,6 +11414,12 @@ func (_options *ListProfilesOptions) SetPagetoken(pagetoken string) *ListProfile
|
11389 | 11414 | return _options
|
11390 | 11415 | }
|
11391 | 11416 |
|
| 11417 | +// SetFilter : Allow user to set Filter |
| 11418 | +func (_options *ListProfilesOptions) SetFilter(filter string) *ListProfilesOptions { |
| 11419 | + _options.Filter = core.StringPtr(filter) |
| 11420 | + return _options |
| 11421 | +} |
| 11422 | + |
11392 | 11423 | // SetHeaders : Allow user to set Headers
|
11393 | 11424 | func (options *ListProfilesOptions) SetHeaders(param map[string]string) *ListProfilesOptions {
|
11394 | 11425 | options.Headers = param
|
@@ -11419,6 +11450,10 @@ type ListServiceIdsOptions struct {
|
11419 | 11450 | // Defines if the entity history is included in the response.
|
11420 | 11451 | IncludeHistory *bool `json:"include_history,omitempty"`
|
11421 | 11452 |
|
| 11453 | + // An optional filter query parameter used to refine the results of the search operation. For more information see |
| 11454 | + // [Filtering list results](#filter-list-results) section. |
| 11455 | + Filter *string `json:"filter,omitempty"` |
| 11456 | + |
11422 | 11457 | // Allows users to set headers on API requests.
|
11423 | 11458 | Headers map[string]string
|
11424 | 11459 | }
|
@@ -11477,6 +11512,12 @@ func (_options *ListServiceIdsOptions) SetIncludeHistory(includeHistory bool) *L
|
11477 | 11512 | return _options
|
11478 | 11513 | }
|
11479 | 11514 |
|
| 11515 | +// SetFilter : Allow user to set Filter |
| 11516 | +func (_options *ListServiceIdsOptions) SetFilter(filter string) *ListServiceIdsOptions { |
| 11517 | + _options.Filter = core.StringPtr(filter) |
| 11518 | + return _options |
| 11519 | +} |
| 11520 | + |
11480 | 11521 | // SetHeaders : Allow user to set Headers
|
11481 | 11522 | func (options *ListServiceIdsOptions) SetHeaders(param map[string]string) *ListServiceIdsOptions {
|
11482 | 11523 | options.Headers = param
|
|
0 commit comments