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, Repeatable<string>)
Remove organizational unit
public virtual OrgunitsResource.DeleteRequest Delete(string customerId, Repeatable<string> orgUnitPath)
Parameters
customerId
stringImmutable ID of the G Suite account
orgUnitPath
Repeatable<string>Full path of the organizational unit or its ID
Returns
Get(string, Repeatable<string>)
Retrieve organizational unit
public virtual OrgunitsResource.GetRequest Get(string customerId, Repeatable<string> orgUnitPath)
Parameters
customerId
stringImmutable ID of the G Suite account
orgUnitPath
Repeatable<string>Full path of the organizational unit or its ID
Returns
Insert(OrgUnit, string)
Add organizational unit
public virtual OrgunitsResource.InsertRequest Insert(OrgUnit body, string customerId)
Parameters
Returns
List(string)
Retrieve all organizational units
public virtual OrgunitsResource.ListRequest List(string customerId)
Parameters
customerId
stringImmutable ID of the G Suite account
Returns
Patch(OrgUnit, string, Repeatable<string>)
Update organizational unit. This method supports patch semantics.
public virtual OrgunitsResource.PatchRequest Patch(OrgUnit body, string customerId, Repeatable<string> orgUnitPath)
Parameters
body
OrgUnitThe body of the request.
customerId
stringImmutable ID of the G Suite account
orgUnitPath
Repeatable<string>Full path of the organizational unit or its ID
Returns
Update(OrgUnit, string, Repeatable<string>)
Update organizational unit
public virtual OrgunitsResource.UpdateRequest Update(OrgUnit body, string customerId, Repeatable<string> orgUnitPath)
Parameters
body
OrgUnitThe body of the request.
customerId
stringImmutable ID of the G Suite account
orgUnitPath
Repeatable<string>Full path of the organizational unit or its ID