class Google::Apis::AdminDirectoryV1::Privilege
Attributes
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 of the resource. Corresponds to the JSON property `etag` @return [String]
If the privilege can be restricted to an organization unit. Corresponds to the JSON property `isOuScopable` @return [Boolean]
If the privilege can be restricted to an organization unit. Corresponds to the JSON property `isOuScopable` @return [Boolean]
The type of the API resource. This is always `admin#directory#privilege`. Corresponds to the JSON property `kind` @return [String]
The name of the privilege. Corresponds to the JSON property `privilegeName` @return [String]
The obfuscated ID of the service this privilege is for. This value is returned with [`Privileges.list()`](/admin-sdk/directory/v1/reference/privileges/list). Corresponds to the JSON property `serviceId` @return [String]
The name of the service this privilege is for. Corresponds to the JSON property `serviceName` @return [String]
Public Class Methods
# File lib/google/apis/admin_directory_v1/classes.rb, line 3045 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/admin_directory_v1/classes.rb, line 3050 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