class Google::Apis::AdminDirectoryV1::RoleAssignment
JSON template for roleAssignment resource in Directory API.
Attributes
The unique ID of the user this role is assigned to. Corresponds to the JSON property `assignedTo` @return [String]
ETag of the resource. Corresponds to the JSON property `etag` @return [String]
The type of the API resource. This is always admin#directory#roleAssignment. Corresponds to the JSON property `kind` @return [String]
If the role is restricted to an organization unit, this contains the ID for the organization unit the exercise of this role is restricted to. Corresponds to the JSON property `orgUnitId` @return [String]
ID of this roleAssignment. Corresponds to the JSON property `roleAssignmentId` @return [String]
The ID of the role that is assigned. Corresponds to the JSON property `roleId` @return [String]
The scope in which this role is assigned. Possible values are:
-
CUSTOMER
-
ORG_UNIT
Corresponds to the JSON property `scopeType` @return [String]
Public Class Methods
# File generated/google/apis/admin_directory_v1/classes.rb, line 1854 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/admin_directory_v1/classes.rb, line 1859 def update!(**args) @assigned_to = args[:assigned_to] if args.key?(:assigned_to) @etag = args[:etag] if args.key?(:etag) @kind = args[:kind] if args.key?(:kind) @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id) @role_assignment_id = args[:role_assignment_id] if args.key?(:role_assignment_id) @role_id = args[:role_id] if args.key?(:role_id) @scope_type = args[:scope_type] if args.key?(:scope_type) end