class Google::Apis::AdminDirectoryV1::OrgUnit
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](/admin-sdk/ directory/v1/guides/manage-org-units.html).
Attributes
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](support.google.com/a/answer/4352075). Corresponds to the JSON property `blockInheritance` @return [Boolean]
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](support.google.com/a/answer/4352075). Corresponds to the JSON property `blockInheritance` @return [Boolean]
Description of the organizational unit. Corresponds to the JSON property `description` @return [String]
ETag of the resource. Corresponds to the JSON property `etag` @return [String]
The type of the API resource. For Orgunits resources, the value is `admin# directory#orgUnit`. Corresponds to the JSON property `kind` @return [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` @return [String]
The unique ID of the organizational unit. Corresponds to the JSON property `orgUnitId` @return [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] (support.google.com/a/answer/4352075). For more information about moving a user to a different organization, see [Update a user](/admin-sdk/ directory/v1/guides/manage-users.html#update_user). Corresponds to the JSON property `orgUnitPath` @return [String]
The unique ID of the parent organizational unit. Required, unless ` parentOrgUnitPath` is set. Corresponds to the JSON property `parentOrgUnitId` @return [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` @return [String]
Public Class Methods
# File lib/google/apis/admin_directory_v1/classes.rb, line 2841 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/admin_directory_v1/classes.rb, line 2846 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