Class: Google::Apis::AdminDirectoryV1::Role

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

Overview

JSON template for role resource in Directory API.

Defined Under Namespace

Classes: RolePrivilege

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Role

Returns a new instance of Role



2501
2502
2503
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2501

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2462
2463
2464
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2462

def etag
  @etag
end

#is_super_admin_roleBoolean Also known as: is_super_admin_role?

Returns true if the role is a super admin role. Corresponds to the JSON property isSuperAdminRole

Returns:

  • (Boolean)


2467
2468
2469
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2467

def is_super_admin_role
  @is_super_admin_role
end

#is_system_roleBoolean Also known as: is_system_role?

Returns true if this is a pre-defined system role. Corresponds to the JSON property isSystemRole

Returns:

  • (Boolean)


2473
2474
2475
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2473

def is_system_role
  @is_system_role
end

#kindString

The type of the API resource. This is always admin#directory#role. Corresponds to the JSON property kind

Returns:

  • (String)


2479
2480
2481
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2479

def kind
  @kind
end

#role_descriptionString

A short description of the role. Corresponds to the JSON property roleDescription

Returns:

  • (String)


2484
2485
2486
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2484

def role_description
  @role_description
end

#role_idFixnum

ID of the role. Corresponds to the JSON property roleId

Returns:

  • (Fixnum)


2489
2490
2491
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2489

def role_id
  @role_id
end

#role_nameString

Name of the role. Corresponds to the JSON property roleName

Returns:

  • (String)


2494
2495
2496
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2494

def role_name
  @role_name
end

#role_privilegesArray<Google::Apis::AdminDirectoryV1::Role::RolePrivilege>

The set of privileges that are granted to this role. Corresponds to the JSON property rolePrivileges



2499
2500
2501
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2499

def role_privileges
  @role_privileges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2506

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