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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Privilege

Returns a new instance of Privilege.



3548
3549
3550
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3548

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



3514
3515
3516
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3514

def child_privileges
  @child_privileges
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


3519
3520
3521
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3519

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)


3524
3525
3526
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3524

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)


3530
3531
3532
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3530

def kind
  @kind
end

#privilege_nameString

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

Returns:

  • (String)


3535
3536
3537
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3535

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)


3541
3542
3543
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3541

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)


3546
3547
3548
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3546

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3553
3554
3555
3556
3557
3558
3559
3560
3561
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3553

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