Class: Google::Apis::AdminDirectoryV1::Privilege
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdminDirectoryV1::Privilege
 
- 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
- 
  
    
      #child_privileges  ⇒ Array<Google::Apis::AdminDirectoryV1::Privilege> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of child privileges. 
- 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ETag of the resource. 
- 
  
    
      #is_ou_scopable  ⇒ Boolean 
    
    
      (also: #is_ou_scopable?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    If the privilege can be restricted to an organization unit. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The type of the API resource. 
- 
  
    
      #privilege_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the privilege. 
- 
  
    
      #service_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The obfuscated ID of the service this privilege is for. 
- 
  
    
      #service_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the service this privilege is for. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Privilege 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Privilege. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Privilege
Returns a new instance of Privilege
| 2247 2248 2249 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2247 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#child_privileges ⇒ Array<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
| 2214 2215 2216 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2214 def child_privileges @child_privileges end | 
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
| 2219 2220 2221 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2219 def etag @etag end | 
#is_ou_scopable ⇒ Boolean Also known as: is_ou_scopable?
If the privilege can be restricted to an organization unit.
Corresponds to the JSON property isOuScopable
| 2224 2225 2226 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2224 def is_ou_scopable @is_ou_scopable end | 
#kind ⇒ String
The type of the API resource. This is always admin#directory#privilege.
Corresponds to the JSON property kind
| 2230 2231 2232 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2230 def kind @kind end | 
#privilege_name ⇒ String
The name of the privilege.
Corresponds to the JSON property privilegeName
| 2235 2236 2237 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2235 def privilege_name @privilege_name end | 
#service_id ⇒ String
The obfuscated ID of the service this privilege is for.
Corresponds to the JSON property serviceId
| 2240 2241 2242 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2240 def service_id @service_id end | 
#service_name ⇒ String
The name of the service this privilege is for.
Corresponds to the JSON property serviceName
| 2245 2246 2247 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2245 def service_name @service_name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2252 2253 2254 2255 2256 2257 2258 2259 2260 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2252 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 |