class Google::Apis::AdminDirectoryV1::Role

Attributes

etag[RW]

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

is_super_admin_role[RW]

Returns `true` if the role is a super admin role. Corresponds to the JSON property `isSuperAdminRole` @return [Boolean]

is_super_admin_role?[RW]

Returns `true` if the role is a super admin role. Corresponds to the JSON property `isSuperAdminRole` @return [Boolean]

is_system_role[RW]

Returns `true` if this is a pre-defined system role. Corresponds to the JSON property `isSystemRole` @return [Boolean]

is_system_role?[RW]

Returns `true` if this is a pre-defined system role. Corresponds to the JSON property `isSystemRole` @return [Boolean]

kind[RW]

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

role_description[RW]

A short description of the role. Corresponds to the JSON property `roleDescription` @return [String]

role_id[RW]

ID of the role. Corresponds to the JSON property `roleId` @return [Fixnum]

role_name[RW]

Name of the role. Corresponds to the JSON property `roleName` @return [String]

role_privileges[RW]

The set of privileges that are granted to this role. Corresponds to the JSON property `rolePrivileges` @return [Array<Google::Apis::AdminDirectoryV1::Role::RolePrivilege>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/admin_directory_v1/classes.rb, line 3143
def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @is_super_admin_role = args[:is_super_admin_role] if args.key?(:is_super_admin_role)
  @is_system_role = args[:is_system_role] if args.key?(:is_system_role)
  @kind = args[:kind] if args.key?(:kind)
  @role_description = args[:role_description] if args.key?(:role_description)
  @role_id = args[:role_id] if args.key?(:role_id)
  @role_name = args[:role_name] if args.key?(:role_name)
  @role_privileges = args[:role_privileges] if args.key?(:role_privileges)
end