class Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesRequest

The request message for MembershipsService.ModifyMembershipRoles.

Attributes

add_roles[RW]

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::CloudidentityV1beta1::MembershipRole>]

remove_roles[RW]

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>]

update_roles_params[RW]

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::CloudidentityV1beta1::UpdateMembershipRolesParams>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudidentity_v1beta1/classes.rb, line 2147
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudidentity_v1beta1/classes.rb, line 2152
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