Class: Google::Apis::AdminDirectoryV1::OrgUnit

Inherits:
Object
  • Object
show all
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. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help# fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. ( See http://go/stepladder-help#fieldNumber)

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrgUnit

Returns a new instance of OrgUnit.


2296
2297
2298
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2296

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#block_inheritanceBoolean Also known as: block_inheritance?

Should block inheritance Corresponds to the JSON property blockInheritance

Returns:

  • (Boolean)

2253
2254
2255
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2253

def block_inheritance
  @block_inheritance
end

#descriptionString

Description of OrgUnit Corresponds to the JSON property description

Returns:

  • (String)

2259
2260
2261
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2259

def description
  @description
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)

2264
2265
2266
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2264

def etag
  @etag
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)

2269
2270
2271
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2269

def kind
  @kind
end

#nameString

Name of OrgUnit Corresponds to the JSON property name

Returns:

  • (String)

2274
2275
2276
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2274

def name
  @name
end

#org_unit_idString

Id of OrgUnit Corresponds to the JSON property orgUnitId

Returns:

  • (String)

2279
2280
2281
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2279

def org_unit_id
  @org_unit_id
end

#org_unit_pathString

Path of OrgUnit Corresponds to the JSON property orgUnitPath

Returns:

  • (String)

2284
2285
2286
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2284

def org_unit_path
  @org_unit_path
end

#parent_org_unit_idString

Id of parent OrgUnit Corresponds to the JSON property parentOrgUnitId

Returns:

  • (String)

2289
2290
2291
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2289

def parent_org_unit_id
  @parent_org_unit_id
end

#parent_org_unit_pathString

Path of parent OrgUnit Corresponds to the JSON property parentOrgUnitPath

Returns:

  • (String)

2294
2295
2296
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2294

def parent_org_unit_path
  @parent_org_unit_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2301

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