Class OrgunitsResource
The "orgunits" collection of methods.
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class OrgunitsResource
Constructors
OrgunitsResource(IClientService)
Constructs a new resource.
Declaration
public OrgunitsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Removes an organizational unit.
Declaration
public virtual OrgunitsResource.DeleteRequest Delete(string customerId, string orgUnitPath)
Parameters
Type | Name | Description |
---|---|---|
string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
string | orgUnitPath | The full path of the organizational unit (minus the leading |
Returns
Type | Description |
---|---|
OrgunitsResource.DeleteRequest |
Get(string, string)
Retrieves an organizational unit.
Declaration
public virtual OrgunitsResource.GetRequest Get(string customerId, string orgUnitPath)
Parameters
Type | Name | Description |
---|---|---|
string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
string | orgUnitPath | The full path of the organizational unit (minus the leading |
Returns
Type | Description |
---|---|
OrgunitsResource.GetRequest |
Insert(OrgUnit, string)
Adds an organizational unit.
Declaration
public virtual OrgunitsResource.InsertRequest Insert(OrgUnit body, string customerId)
Parameters
Type | Name | Description |
---|---|---|
OrgUnit | body | The body of the request. |
string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
Returns
Type | Description |
---|---|
OrgunitsResource.InsertRequest |
List(string)
Retrieves a list of all organizational units for an account.
Declaration
public virtual OrgunitsResource.ListRequest List(string customerId)
Parameters
Type | Name | Description |
---|---|---|
string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
Returns
Type | Description |
---|---|
OrgunitsResource.ListRequest |
Patch(OrgUnit, string, string)
Updates an organizational unit. This method supports patch semantics
Declaration
public virtual OrgunitsResource.PatchRequest Patch(OrgUnit body, string customerId, string orgUnitPath)
Parameters
Type | Name | Description |
---|---|---|
OrgUnit | body | The body of the request. |
string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
string | orgUnitPath | The full path of the organizational unit (minus the leading |
Returns
Type | Description |
---|---|
OrgunitsResource.PatchRequest |
Update(OrgUnit, string, string)
Updates an organizational unit.
Declaration
public virtual OrgunitsResource.UpdateRequest Update(OrgUnit body, string customerId, string orgUnitPath)
Parameters
Type | Name | Description |
---|---|---|
OrgUnit | body | The body of the request. |
string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
string | orgUnitPath | The full path of the organizational unit (minus the leading |
Returns
Type | Description |
---|---|
OrgunitsResource.UpdateRequest |