Class: Google::Apis::AdminDirectoryV1::OrgUnit
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdminDirectoryV1::OrgUnit
 
- 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 Org Unit resource in Directory API.
Instance Attribute Summary collapse
- 
  
    
      #block_inheritance  ⇒ Boolean 
    
    
      (also: #block_inheritance?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Should block inheritance Corresponds to the JSON property blockInheritance.
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Description of OrgUnit Corresponds to the JSON property description.
- 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ETag of the resource. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Kind of resource this is. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of OrgUnit Corresponds to the JSON property name.
- 
  
    
      #org_unit_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Id of OrgUnit Corresponds to the JSON property orgUnitId.
- 
  
    
      #org_unit_path  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Path of OrgUnit Corresponds to the JSON property orgUnitPath.
- 
  
    
      #parent_org_unit_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Id of parent OrgUnit Corresponds to the JSON property parentOrgUnitId.
- 
  
    
      #parent_org_unit_path  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Path of parent OrgUnit Corresponds to the JSON property parentOrgUnitPath.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ OrgUnit 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of OrgUnit. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrgUnit
Returns a new instance of OrgUnit
| 2156 2157 2158 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2156 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#block_inheritance ⇒ Boolean Also known as: block_inheritance?
Should block inheritance
Corresponds to the JSON property blockInheritance
| 2113 2114 2115 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2113 def block_inheritance @block_inheritance end | 
#description ⇒ String
Description of OrgUnit
Corresponds to the JSON property description
| 2119 2120 2121 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2119 def description @description end | 
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
| 2124 2125 2126 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2124 def etag @etag end | 
#kind ⇒ String
Kind of resource this is.
Corresponds to the JSON property kind
| 2129 2130 2131 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2129 def kind @kind end | 
#name ⇒ String
Name of OrgUnit
Corresponds to the JSON property name
| 2134 2135 2136 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2134 def name @name end | 
#org_unit_id ⇒ String
Id of OrgUnit
Corresponds to the JSON property orgUnitId
| 2139 2140 2141 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2139 def org_unit_id @org_unit_id end | 
#org_unit_path ⇒ String
Path of OrgUnit
Corresponds to the JSON property orgUnitPath
| 2144 2145 2146 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2144 def org_unit_path @org_unit_path end | 
#parent_org_unit_id ⇒ String
Id of parent OrgUnit
Corresponds to the JSON property parentOrgUnitId
| 2149 2150 2151 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2149 def parent_org_unit_id @parent_org_unit_id end | 
#parent_org_unit_path ⇒ String
Path of parent OrgUnit
Corresponds to the JSON property parentOrgUnitPath
| 2154 2155 2156 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2154 def parent_org_unit_path @parent_org_unit_path end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2161 def update!(**args) @block_inheritance = args[:block_inheritance] if args.key?(:block_inheritance) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id) @org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path) @parent_org_unit_id = args[:parent_org_unit_id] if args.key?(:parent_org_unit_id) @parent_org_unit_path = args[:parent_org_unit_path] if args.key?(:parent_org_unit_path) end |