Class: Google::Apis::AdminDirectoryV1::Privilege

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 privilege resource in Directory API.

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

Returns a new instance of Privilege



2408
2409
2410
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2408

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

Instance Attribute Details

#child_privilegesArray<Google::Apis::AdminDirectoryV1::Privilege>

A list of child privileges. Privileges for a service form a tree. Each privilege can have a list of child privileges; this list is empty for a leaf privilege. Corresponds to the JSON property childPrivileges



2375
2376
2377
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2375

def child_privileges
  @child_privileges
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2380
2381
2382
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2380

def etag
  @etag
end

#is_ou_scopableBoolean Also known as: is_ou_scopable?

If the privilege can be restricted to an organization unit. Corresponds to the JSON property isOuScopable

Returns:

  • (Boolean)


2385
2386
2387
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2385

def is_ou_scopable
  @is_ou_scopable
end

#kindString

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

Returns:

  • (String)


2391
2392
2393
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2391

def kind
  @kind
end

#privilege_nameString

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

Returns:

  • (String)


2396
2397
2398
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2396

def privilege_name
  @privilege_name
end

#service_idString

The obfuscated ID of the service this privilege is for. Corresponds to the JSON property serviceId

Returns:

  • (String)


2401
2402
2403
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2401

def service_id
  @service_id
end

#service_nameString

The name of the service this privilege is for. Corresponds to the JSON property serviceName

Returns:

  • (String)


2406
2407
2408
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2406

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2413
2414
2415
2416
2417
2418
2419
2420
2421
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2413

def update!(**args)
  @child_privileges = args[:child_privileges] if args.key?(:child_privileges)
  @etag = args[:etag] if args.key?(:etag)
  @is_ou_scopable = args[:is_ou_scopable] if args.key?(:is_ou_scopable)
  @kind = args[:kind] if args.key?(:kind)
  @privilege_name = args[:privilege_name] if args.key?(:privilege_name)
  @service_id = args[:service_id] if args.key?(:service_id)
  @service_name = args[:service_name] if args.key?(:service_name)
end