|
1 | 1 | /**
|
2 |
| - * (C) Copyright IBM Corp. 2021. |
| 2 | + * (C) Copyright IBM Corp. 2022. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
15 | 15 | */
|
16 | 16 |
|
17 | 17 | /*
|
18 |
| - * IBM OpenAPI SDK Code Generator Version: 3.43.0-49eab5c7-20211117-152138 |
| 18 | + * IBM OpenAPI SDK Code Generator Version: 3.43.4-432d779b-20220119-173927 |
19 | 19 | */
|
20 | 20 |
|
21 | 21 | // Package iamaccessgroupsv2 : Operations and models for the IamAccessGroupsV2 service
|
@@ -582,10 +582,11 @@ func (iamAccessGroups *IamAccessGroupsV2) IsMemberOfAccessGroupWithContext(ctx c
|
582 | 582 | }
|
583 | 583 |
|
584 | 584 | // AddMembersToAccessGroup : Add members to an access group
|
585 |
| -// Use this API to add users (`IBMid-...`) or service IDs (`iam-ServiceId-...`) to an access group. Any member added |
586 |
| -// gains access to resources defined in the group's policies. To revoke a given user's access, simply remove them from |
587 |
| -// the group. There is no limit to the number of members one group can have, but each `iam_id` can only be added to 50 |
588 |
| -// groups. Additionally, this API request payload can add up to 50 members per call. |
| 585 | +// Use this API to add users (`IBMid-...`), service IDs (`iam-ServiceId-...`) or trusted profiles (`iam-Profile-...`) to |
| 586 | +// an access group. Any member added gains access to resources defined in the group's policies. To revoke a given |
| 587 | +// members's access, simply remove them from the group. There is no limit to the number of members one group can have, |
| 588 | +// but each `iam_id` can only be added to 50 groups. Additionally, this API request payload can add up to 50 members per |
| 589 | +// call. |
589 | 590 | func (iamAccessGroups *IamAccessGroupsV2) AddMembersToAccessGroup(addMembersToAccessGroupOptions *AddMembersToAccessGroupOptions) (result *AddGroupMembersResponse, response *core.DetailedResponse, err error) {
|
590 | 591 | return iamAccessGroups.AddMembersToAccessGroupWithContext(context.Background(), addMembersToAccessGroupOptions)
|
591 | 592 | }
|
@@ -659,9 +660,9 @@ func (iamAccessGroups *IamAccessGroupsV2) AddMembersToAccessGroupWithContext(ctx
|
659 | 660 |
|
660 | 661 | // ListAccessGroupMembers : List access group members
|
661 | 662 | // List all members of a given group using this API. Parameters for pagination and sorting can be used to filter the
|
662 |
| -// results. The most useful query parameter may be the `verbose` flag. If `verbose=true`, user and service ID names will |
663 |
| -// be retrieved for each `iam_id`. If performance is a concern, leave the `verbose` parameter off so that name |
664 |
| -// information does not get retrieved. |
| 663 | +// results. The most useful query parameter may be the `verbose` flag. If `verbose=true`, user, service ID and trusted |
| 664 | +// profile names will be retrieved for each `iam_id`. If performance is a concern, leave the `verbose` parameter off so |
| 665 | +// that name information does not get retrieved. |
665 | 666 | func (iamAccessGroups *IamAccessGroupsV2) ListAccessGroupMembers(listAccessGroupMembersOptions *ListAccessGroupMembersOptions) (result *GroupMembersList, response *core.DetailedResponse, err error) {
|
666 | 667 | return iamAccessGroups.ListAccessGroupMembersWithContext(context.Background(), listAccessGroupMembersOptions)
|
667 | 668 | }
|
@@ -1621,10 +1622,10 @@ func (options *AddAccessGroupRuleOptions) SetHeaders(param map[string]string) *A
|
1621 | 1622 |
|
1622 | 1623 | // AddGroupMembersRequestMembersItem : AddGroupMembersRequestMembersItem struct
|
1623 | 1624 | type AddGroupMembersRequestMembersItem struct {
|
1624 |
| - // The IBMid or Service Id of the member. |
| 1625 | + // The IBMid, Service Id or Profile Id of the member. |
1625 | 1626 | IamID *string `json:"iam_id" validate:"required"`
|
1626 | 1627 |
|
1627 |
| - // The type of the member, must be either "user" or "service". |
| 1628 | + // The type of the member, must be either "user", "service" or "trusted profile". |
1628 | 1629 | Type *string `json:"type" validate:"required"`
|
1629 | 1630 | }
|
1630 | 1631 |
|
@@ -1739,7 +1740,7 @@ type AddMemberToMultipleAccessGroupsOptions struct {
|
1739 | 1740 | // The IAM identifier.
|
1740 | 1741 | IamID *string `json:"iam_id" validate:"required,ne="`
|
1741 | 1742 |
|
1742 |
| - // The type of the member, must be either "user" or "service". |
| 1743 | + // The type of the member, must be either "user", "service" or "trusted profile". |
1743 | 1744 | Type *string `json:"type,omitempty"`
|
1744 | 1745 |
|
1745 | 1746 | // The ids of the access groups a given member is to be added to.
|
@@ -2637,7 +2638,7 @@ type ListAccessGroupMembersOptions struct {
|
2637 | 2638 | // Filter the results by member type.
|
2638 | 2639 | Type *string `json:"type,omitempty"`
|
2639 | 2640 |
|
2640 |
| - // Return user's email and name for each user id or the name for each service id. |
| 2641 | + // Return user's email and name for each user id or the name for each service id or trusted profile. |
2641 | 2642 | Verbose *bool `json:"verbose,omitempty"`
|
2642 | 2643 |
|
2643 | 2644 | // If verbose is true, sort the results by id, name, or email.
|
@@ -2753,7 +2754,7 @@ type ListAccessGroupsOptions struct {
|
2753 | 2754 | // choose. If no transaction ID is passed in, then a random ID is generated.
|
2754 | 2755 | TransactionID *string `json:"Transaction-Id,omitempty"`
|
2755 | 2756 |
|
2756 |
| - // Return groups for member id (IBMid or Service Id). |
| 2757 | + // Return groups for member id (IBMid, Service Id or Profile Id). |
2757 | 2758 | IamID *string `json:"iam_id,omitempty"`
|
2758 | 2759 |
|
2759 | 2760 | // Return up to this limit of results where limit is between 0 and 100.
|
|
0 commit comments