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

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

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) ⇒ RolePrivilege

Returns a new instance of RolePrivilege.



2567
2568
2569
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2567

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

Instance Attribute Details

#privilege_nameString

The name of the privilege. Corresponds to the JSON property privilegeName

Returns:

  • (String)


2559
2560
2561
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2559

def privilege_name
  @privilege_name
end

#service_idString

The obfuscated ID of the service this privilege is for. This value is returned with Privileges.list(). Corresponds to the JSON property serviceId

Returns:

  • (String)


2565
2566
2567
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2565

def service_id
  @service_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2572
2573
2574
2575
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2572

def update!(**args)
  @privilege_name = args[:privilege_name] if args.key?(:privilege_name)
  @service_id = args[:service_id] if args.key?(:service_id)
end