class Google::Apis::AdminDirectoryV1::RoleAssignment
Defines an assignment of a role.
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 [Fixnum]
The ID of the role that is assigned. Corresponds to the JSON property `roleId` @return [Fixnum]
The scope in which this role is assigned. Corresponds to the JSON property `scopeType` @return [String]
Public Class Methods
# File lib/google/apis/admin_directory_v1/classes.rb, line 3221 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/admin_directory_v1/classes.rb, line 3226 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