class Google::Apis::AdminDirectoryV1::Privilege

JSON template for privilege resource in Directory API.

Attributes

child_privileges[RW]

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` @return [Array<Google::Apis::AdminDirectoryV1::Privilege>]

etag[RW]

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

is_ou_scopable[RW]

If the privilege can be restricted to an organization unit. Corresponds to the JSON property `isOuScopable` @return [Boolean]

is_ou_scopable?[RW]

If the privilege can be restricted to an organization unit. Corresponds to the JSON property `isOuScopable` @return [Boolean]

kind[RW]

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

privilege_name[RW]

The name of the privilege. Corresponds to the JSON property `privilegeName` @return [String]

service_id[RW]

The obfuscated ID of the service this privilege is for. Corresponds to the JSON property `serviceId` @return [String]

service_name[RW]

The name of the service this privilege is for. Corresponds to the JSON property `serviceName` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/admin_directory_v1/classes.rb, line 1682
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