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
1672 1673 1674 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1672 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
1629 1630 1631 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1629 def block_inheritance @block_inheritance end |
#description ⇒ String
Description of OrgUnit
Corresponds to the JSON property description
1635 1636 1637 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1635 def description @description end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
1640 1641 1642 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1640 def etag @etag end |
#kind ⇒ String
Kind of resource this is.
Corresponds to the JSON property kind
1645 1646 1647 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1645 def kind @kind end |
#name ⇒ String
Name of OrgUnit
Corresponds to the JSON property name
1650 1651 1652 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1650 def name @name end |
#org_unit_id ⇒ String
Id of OrgUnit
Corresponds to the JSON property orgUnitId
1655 1656 1657 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1655 def org_unit_id @org_unit_id end |
#org_unit_path ⇒ String
Path of OrgUnit
Corresponds to the JSON property orgUnitPath
1660 1661 1662 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1660 def org_unit_path @org_unit_path end |
#parent_org_unit_id ⇒ String
Id of parent OrgUnit
Corresponds to the JSON property parentOrgUnitId
1665 1666 1667 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1665 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
1670 1671 1672 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1670 def parent_org_unit_path @parent_org_unit_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1677 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 |