Modifier and Type | Class and Description |
---|---|
class |
Directory.Orgunits.Delete |
class |
Directory.Orgunits.Get |
class |
Directory.Orgunits.Insert |
class |
Directory.Orgunits.List |
class |
Directory.Orgunits.Patch |
class |
Directory.Orgunits.Update |
Constructor and Description |
---|
Orgunits() |
Modifier and Type | Method and Description |
---|---|
Directory.Orgunits.Delete |
delete(String customerId,
String orgUnitPath)
Removes an organizational unit.
|
Directory.Orgunits.Get |
get(String customerId,
String orgUnitPath)
Retrieves an organizational unit.
|
Directory.Orgunits.Insert |
insert(String customerId,
OrgUnit content)
Adds an organizational unit.
|
Directory.Orgunits.List |
list(String customerId)
Retrieves a list of all organizational units for an account.
|
Directory.Orgunits.Patch |
patch(String customerId,
String orgUnitPath,
OrgUnit content)
Updates an organizational unit.
|
Directory.Orgunits.Update |
update(String customerId,
String orgUnitPath,
OrgUnit content)
Updates an organizational unit.
|
public Directory.Orgunits.Delete delete(String customerId, String orgUnitPath) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customerId
- The unique ID for the customer's Google Workspace account. As an account administrator, you can also
use the `my_customer` alias to represent your account's `customerId`. The `customerId` is
also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).orgUnitPath
- The full path of the organizational unit or its unique ID.IOException
public Directory.Orgunits.Get get(String customerId, String orgUnitPath) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customerId
- The unique ID for the customer's Google Workspace account. As an account administrator, you can also
use the `my_customer` alias to represent your account's `customerId`. The `customerId` is
also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).orgUnitPath
- The full path of the organizational unit or its unique ID.IOException
public Directory.Orgunits.Insert insert(String customerId, OrgUnit content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customerId
- The unique ID for the customer's Google Workspace account. As an account administrator, you can also
use the `my_customer` alias to represent your account's `customerId`. The `customerId` is
also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).content
- the OrgUnit
IOException
public Directory.Orgunits.List list(String customerId) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customerId
- The unique ID for the customer's Google Workspace account. As an account administrator, you can also
use the `my_customer` alias to represent your account's `customerId`. The `customerId` is
also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).IOException
public Directory.Orgunits.Patch patch(String customerId, String orgUnitPath, OrgUnit content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customerId
- The unique ID for the customer's Google Workspace account. As an account administrator, you can also
use the `my_customer` alias to represent your account's `customerId`. The `customerId` is
also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).orgUnitPath
- The full path of the organizational unit or its unique ID.content
- the OrgUnit
IOException
public Directory.Orgunits.Update update(String customerId, String orgUnitPath, OrgUnit content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.customerId
- The unique ID for the customer's Google Workspace account. As an account administrator, you can also
use the `my_customer` alias to represent your account's `customerId`. The `customerId` is
also returned as part of the [Users resource](/admin-sdk/directory/v1/reference/users).orgUnitPath
- The full path of the organizational unit or its unique ID.content
- the OrgUnit
IOException
Copyright © 2011–2021 Google. All rights reserved.