Class: Google::Apis::CloudidentityV1beta1::ModifyMembershipRolesRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudidentity_v1beta1/classes.rb,
generated/google/apis/cloudidentity_v1beta1/representations.rb,
generated/google/apis/cloudidentity_v1beta1/representations.rb

Overview

The request message for MembershipsService.ModifyMembershipRoles.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ModifyMembershipRolesRequest

Returns a new instance of ModifyMembershipRolesRequest.



1114
1115
1116
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1114

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#add_rolesArray<Google::Apis::CloudidentityV1beta1::MembershipRole>

The MembershipRoles 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



1093
1094
1095
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1093

def add_roles
  @add_roles
end

#remove_rolesArray<String>

The names of the MembershipRoles 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

Returns:

  • (Array<String>)


1104
1105
1106
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1104

def remove_roles
  @remove_roles
end

#update_roles_paramsArray<Google::Apis::CloudidentityV1beta1::UpdateMembershipRolesParams>

The MembershipRoles 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



1112
1113
1114
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1112

def update_roles_params
  @update_roles_params
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1119
1120
1121
1122
1123
# File 'generated/google/apis/cloudidentity_v1beta1/classes.rb', line 1119

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