Class: Google::Apis::CloudidentityV1::ModifyMembershipRolesRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1::ModifyMembershipRolesRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudidentity_v1/classes.rb,
lib/google/apis/cloudidentity_v1/representations.rb,
lib/google/apis/cloudidentity_v1/representations.rb
Overview
The request message for MembershipsService.ModifyMembershipRoles.
Instance Attribute Summary collapse
-
#add_roles ⇒ Array<Google::Apis::CloudidentityV1::MembershipRole>
The
MembershipRole
s to be added. -
#remove_roles ⇒ Array<String>
The
name
s of theMembershipRole
s to be removed. -
#update_roles_params ⇒ Array<Google::Apis::CloudidentityV1::UpdateMembershipRolesParams>
The
MembershipRole
s to be updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ModifyMembershipRolesRequest
constructor
A new instance of ModifyMembershipRolesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ModifyMembershipRolesRequest
Returns a new instance of ModifyMembershipRolesRequest.
1680 1681 1682 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1680 def initialize(**args) update!(**args) end |
Instance Attribute Details
#add_roles ⇒ Array<Google::Apis::CloudidentityV1::MembershipRole>
The MembershipRole
s to be added. Adding or removing roles in the same
request as updating roles is not supported. Must not be set if
update_roles_params
is set.
Corresponds to the JSON property addRoles
1662 1663 1664 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1662 def add_roles @add_roles end |
#remove_roles ⇒ Array<String>
The name
s of the MembershipRole
s to be removed. Adding or removing roles
in the same request as updating roles is not supported. It is not possible to
remove the MEMBER
MembershipRole
. If you wish to delete a Membership
,
call MembershipsService.DeleteMembership instead. Must not contain MEMBER
.
Must not be set if update_roles_params
is set.
Corresponds to the JSON property removeRoles
1671 1672 1673 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1671 def remove_roles @remove_roles end |
#update_roles_params ⇒ Array<Google::Apis::CloudidentityV1::UpdateMembershipRolesParams>
The MembershipRole
s to be updated. Updating roles in the same request as
adding or removing roles is not supported. Must not be set if either
add_roles
or remove_roles
is set.
Corresponds to the JSON property updateRolesParams
1678 1679 1680 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1678 def update_roles_params @update_roles_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1685 1686 1687 1688 1689 |
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1685 def update!(**args) @add_roles = args[:add_roles] if args.key?(:add_roles) @remove_roles = args[:remove_roles] if args.key?(:remove_roles) @update_roles_params = args[:update_roles_params] if args.key?(:update_roles_params) end |