class Google::Apis::CloudidentityV1::ModifyMembershipRolesRequest
The request message for MembershipsService.ModifyMembershipRoles.
Attributes
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` @return [Array<Google::Apis::CloudidentityV1::MembershipRole>]
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` @return [Array<String>]
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` @return [Array<Google::Apis::CloudidentityV1::UpdateMembershipRolesParams>]
Public Class Methods
# File lib/google/apis/cloudidentity_v1/classes.rb, line 1677 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudidentity_v1/classes.rb, line 1682 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