Class: Google::Apis::CloudidentityV1::ModifyMembershipRolesRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1::ModifyMembershipRolesRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/cloudidentity_v1/classes.rb,
generated/google/apis/cloudidentity_v1/representations.rb,
generated/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.
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.
1322 1323 1324 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 1322 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
1311 1312 1313 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 1311 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
1320 1321 1322 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 1320 def remove_roles @remove_roles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1327 1328 1329 1330 |
# File 'generated/google/apis/cloudidentity_v1/classes.rb', line 1327 def update!(**args) @add_roles = args[:add_roles] if args.key?(:add_roles) @remove_roles = args[:remove_roles] if args.key?(:remove_roles) end |