Class: Google::Apis::AdminDirectoryV1::OrgUnit
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::OrgUnit
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Overview
Managing your account's organizational units allows you to configure your users' access to services and custom settings. For more information about common organizational unit tasks, see the Developer's Guide. The customer's organizational unit hierarchy is limited to 35 levels of depth.
Instance Attribute Summary collapse
-
#block_inheritance ⇒ Boolean
(also: #block_inheritance?)
Determines if a sub-organizational unit can inherit the settings of the parent organization.
-
#description ⇒ String
Description of the organizational unit.
-
#etag ⇒ String
ETag of the resource.
-
#kind ⇒ String
The type of the API resource.
-
#name ⇒ String
The organizational unit's path name.
-
#org_unit_id ⇒ String
The unique ID of the organizational unit.
-
#org_unit_path ⇒ String
The full path to the organizational unit.
-
#parent_org_unit_id ⇒ String
The unique ID of the parent organizational unit.
-
#parent_org_unit_path ⇒ String
The organizational unit's parent path.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrgUnit
constructor
A new instance of OrgUnit.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrgUnit
Returns a new instance of OrgUnit.
2962 2963 2964 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2962 def initialize(**args) update!(**args) end |
Instance Attribute Details
#block_inheritance ⇒ Boolean Also known as: block_inheritance?
Determines if a sub-organizational unit can inherit the settings of the parent
organization. The default value is false, meaning a sub-organizational unit
inherits the settings of the nearest parent organizational unit. For more
information on inheritance and users in an organization structure, see the
administration help center.
Corresponds to the JSON property blockInheritance
2902 2903 2904 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2902 def block_inheritance @block_inheritance end |
#description ⇒ String
Description of the organizational unit.
Corresponds to the JSON property description
2908 2909 2910 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2908 def description @description end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
2913 2914 2915 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2913 def etag @etag end |
#kind ⇒ String
The type of the API resource. For Orgunits resources, the value is admin#
directory#orgUnit.
Corresponds to the JSON property kind
2919 2920 2921 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2919 def kind @kind end |
#name ⇒ String
The organizational unit's path name. For example, an organizational unit's
name within the /corp/support/sales_support parent path is sales_support.
Required.
Corresponds to the JSON property name
2926 2927 2928 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2926 def name @name end |
#org_unit_id ⇒ String
The unique ID of the organizational unit.
Corresponds to the JSON property orgUnitId
2931 2932 2933 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2931 def org_unit_id @org_unit_id end |
#org_unit_path ⇒ String
The full path to the organizational unit. The orgUnitPath is a derived
property. When listed, it is derived from parentOrgunitPath and
organizational unit's name. For example, for an organizational unit named '
apps' under parent organization '/engineering', the orgUnitPath is '/
engineering/apps'. In order to edit an orgUnitPath, either update the name
of the organization or the parentOrgunitPath. A user's organizational unit
determines which Google Workspace services the user has access to. If the user
is moved to a new organization, the user's access changes. For more
information about organization structures, see the administration help center. For more information about
moving a user to a different organization, see Update a user.
Corresponds to the JSON property orgUnitPath
2947 2948 2949 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2947 def org_unit_path @org_unit_path end |
#parent_org_unit_id ⇒ String
The unique ID of the parent organizational unit. Required, unless
parentOrgUnitPath is set.
Corresponds to the JSON property parentOrgUnitId
2953 2954 2955 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2953 def parent_org_unit_id @parent_org_unit_id end |
#parent_org_unit_path ⇒ String
The organizational unit's parent path. For example, /corp/sales is the parent
path for /corp/sales/sales_support organizational unit. Required, unless
parentOrgUnitId is set.
Corresponds to the JSON property parentOrgUnitPath
2960 2961 2962 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2960 def parent_org_unit_path @parent_org_unit_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2967 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 |