class Google::Apis::AdminDirectoryV1::OrgUnit

JSON template for Org Unit resource in Directory API.

Attributes

block_inheritance[RW]

Should block inheritance Corresponds to the JSON property `blockInheritance` @return [Boolean]

block_inheritance?[RW]

Should block inheritance Corresponds to the JSON property `blockInheritance` @return [Boolean]

description[RW]

Description of OrgUnit Corresponds to the JSON property `description` @return [String]

etag[RW]

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

kind[RW]

Kind of resource this is. Corresponds to the JSON property `kind` @return [String]

name[RW]

Name of OrgUnit Corresponds to the JSON property `name` @return [String]

org_unit_id[RW]

Id of OrgUnit Corresponds to the JSON property `orgUnitId` @return [String]

org_unit_path[RW]

Path of OrgUnit Corresponds to the JSON property `orgUnitPath` @return [String]

parent_org_unit_id[RW]

Id of parent OrgUnit Corresponds to the JSON property `parentOrgUnitId` @return [String]

parent_org_unit_path[RW]

Path of parent OrgUnit Corresponds to the JSON property `parentOrgUnitPath` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/admin_directory_v1/classes.rb, line 1586
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 1591
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