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
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.orgUnitPath
stringThe full path of the organizational unit or its unique ID.
Returns
Get(string, string)
Retrieves an organizational unit.
public virtual OrgunitsResource.GetRequest Get(string customerId, string orgUnitPath)
Parameters
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.orgUnitPath
stringThe full path of the organizational unit or its unique ID.
Returns
Insert(OrgUnit, string)
Adds an organizational unit.
public virtual OrgunitsResource.InsertRequest Insert(OrgUnit body, string customerId)
Parameters
body
OrgUnitThe body of the request.
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.
Returns
List(string)
Retrieves a list of all organizational units for an account.
public virtual OrgunitsResource.ListRequest List(string customerId)
Parameters
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.
Returns
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
OrgUnitThe body of the request.
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.orgUnitPath
stringThe full path of the organizational unit or its unique ID.
Returns
Update(OrgUnit, string, string)
Updates an organizational unit.
public virtual OrgunitsResource.UpdateRequest Update(OrgUnit body, string customerId, string orgUnitPath)
Parameters
body
OrgUnitThe body of the request.
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.orgUnitPath
stringThe full path of the organizational unit or its unique ID.