Class OrgunitsResource.ListRequest
Retrieves a list of all organizational units for an account.
Inheritance
OrgunitsResource.ListRequest
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class OrgunitsResource.ListRequest : DirectoryBaseServiceRequest<OrgUnits>, IClientServiceRequest<OrgUnits>, IClientServiceRequest
Constructors
ListRequest(IClientService, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, string customerId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | customerId |
Properties
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.
Declaration
[RequestParameter("customerId", RequestParameterType.Path)]
public virtual string CustomerId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
OrgUnitPath
The full path to the organizational unit or its unique ID. Returns the children of the specified organizational unit.
Declaration
[RequestParameter("orgUnitPath", RequestParameterType.Query)]
public virtual string OrgUnitPath { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Type
Whether to return all sub-organizations or just immediate children.
Declaration
[RequestParameter("type", RequestParameterType.Query)]
public virtual OrgunitsResource.ListRequest.TypeEnum? Type { get; set; }
Property Value
Type | Description |
---|---|
OrgunitsResource.ListRequest.TypeEnum? |
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()