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.

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.



1592
1593
1594
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1592

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)


1549
1550
1551
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1549

def block_inheritance
  @block_inheritance
end

#descriptionString

Description of OrgUnit Corresponds to the JSON property description

Returns:

  • (String)


1555
1556
1557
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1555

def description
  @description
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


1560
1561
1562
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1560

def etag
  @etag
end

#kindString

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

Returns:

  • (String)


1565
1566
1567
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1565

def kind
  @kind
end

#nameString

Name of OrgUnit Corresponds to the JSON property name

Returns:

  • (String)


1570
1571
1572
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1570

def name
  @name
end

#org_unit_idString

Id of OrgUnit Corresponds to the JSON property orgUnitId

Returns:

  • (String)


1575
1576
1577
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1575

def org_unit_id
  @org_unit_id
end

#org_unit_pathString

Path of OrgUnit Corresponds to the JSON property orgUnitPath

Returns:

  • (String)


1580
1581
1582
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1580

def org_unit_path
  @org_unit_path
end

#parent_org_unit_idString

Id of parent OrgUnit Corresponds to the JSON property parentOrgUnitId

Returns:

  • (String)


1585
1586
1587
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1585

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)


1590
1591
1592
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1590

def parent_org_unit_path
  @parent_org_unit_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1597

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