class Google::Apis::AdminDirectoryV1::RoleAssignment

JSON template for roleAssignment resource in Directory API.

Attributes

assigned_to[RW]

The unique ID of the user this role is assigned to. Corresponds to the JSON property `assignedTo` @return [String]

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

kind[RW]

The type of the API resource. This is always admin#directory#roleAssignment. Corresponds to the JSON property `kind` @return [String]

org_unit_id[RW]

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]

role_assignment_id[RW]

ID of this roleAssignment. Corresponds to the JSON property `roleAssignmentId` @return [String]

role_id[RW]

The ID of the role that is assigned. Corresponds to the JSON property `roleId` @return [String]

scope_type[RW]

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

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

Public Instance Methods

update!(**args) click to toggle source

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