Table of Contents

Class OrgunitsResource

Namespace
Google.Apis.Admin.Directory.directory_v1
Assembly
Google.Apis.Admin.Directory.directory_v1.dll

The "orgunits" collection of methods.

public class OrgunitsResource
Inheritance
OrgunitsResource
Inherited Members

Constructors

OrgunitsResource(IClientService)

Constructs a new resource.

public OrgunitsResource(IClientService service)

Parameters

service IClientService

Methods

Delete(string, string)

Removes an organizational unit.

public virtual OrgunitsResource.DeleteRequest Delete(string customerId, string orgUnitPath)

Parameters

customerId string

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.

orgUnitPath string

The full path of the organizational unit or its unique ID.

Returns

OrgunitsResource.DeleteRequest

Get(string, string)

Retrieves an organizational unit.

public virtual OrgunitsResource.GetRequest Get(string customerId, string orgUnitPath)

Parameters

customerId string

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.

orgUnitPath string

The full path of the organizational unit or its unique ID.

Returns

OrgunitsResource.GetRequest

Insert(OrgUnit, string)

Adds an organizational unit.

public virtual OrgunitsResource.InsertRequest Insert(OrgUnit body, string customerId)

Parameters

body OrgUnit

The body of the request.

customerId string

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.

Returns

OrgunitsResource.InsertRequest

List(string)

Retrieves a list of all organizational units for an account.

public virtual OrgunitsResource.ListRequest List(string customerId)

Parameters

customerId string

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.

Returns

OrgunitsResource.ListRequest

Patch(OrgUnit, string, string)

Updates an organizational unit. This method supports patch semantics

public virtual OrgunitsResource.PatchRequest Patch(OrgUnit body, string customerId, string orgUnitPath)

Parameters

body OrgUnit

The body of the request.

customerId string

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.

orgUnitPath string

The full path of the organizational unit or its unique ID.

Returns

OrgunitsResource.PatchRequest

Update(OrgUnit, string, string)

Updates an organizational unit.

public virtual OrgunitsResource.UpdateRequest Update(OrgUnit body, string customerId, string orgUnitPath)

Parameters

body OrgUnit

The body of the request.

customerId string

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.

orgUnitPath string

The full path of the organizational unit or its unique ID.

Returns

OrgunitsResource.UpdateRequest