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, Repeatable<string>)

Remove organizational unit

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

Parameters

customerId string

Immutable ID of the G Suite account

orgUnitPath Repeatable<string>

Full path of the organizational unit or its ID

Returns

OrgunitsResource.DeleteRequest

Get(string, Repeatable<string>)

Retrieve organizational unit

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

Parameters

customerId string

Immutable ID of the G Suite account

orgUnitPath Repeatable<string>

Full path of the organizational unit or its ID

Returns

OrgunitsResource.GetRequest

Insert(OrgUnit, string)

Add organizational unit

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

Parameters

body OrgUnit

The body of the request.

customerId string

Immutable ID of the G Suite account

Returns

OrgunitsResource.InsertRequest

List(string)

Retrieve all organizational units

public virtual OrgunitsResource.ListRequest List(string customerId)

Parameters

customerId string

Immutable ID of the G Suite account

Returns

OrgunitsResource.ListRequest

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 OrgUnit

The body of the request.

customerId string

Immutable ID of the G Suite account

orgUnitPath Repeatable<string>

Full path of the organizational unit or its ID

Returns

OrgunitsResource.PatchRequest

Update(OrgUnit, string, Repeatable<string>)

Update organizational unit

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

Parameters

body OrgUnit

The body of the request.

customerId string

Immutable ID of the G Suite account

orgUnitPath Repeatable<string>

Full path of the organizational unit or its ID

Returns

OrgunitsResource.UpdateRequest