Show / Hide Table of Contents

Class OrgunitsResource

The "orgunits" collection of methods.

Inheritance
object
OrgunitsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

string orgUnitPath

The full path of the organizational unit (minus the leading /) or its unique ID.

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 my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

string orgUnitPath

The full path of the organizational unit (minus the leading /) or its unique ID.

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 my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

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 my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

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 my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

string orgUnitPath

The full path of the organizational unit (minus the leading /) or its unique ID.

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 my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

string orgUnitPath

The full path of the organizational unit (minus the leading /) or its unique ID.

Returns
Type Description
OrgunitsResource.UpdateRequest
In this article
Back to top Generated by DocFX