public class Directory.Orgunits.List extends DirectoryRequest<OrgUnits>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
List(java.lang.String customerId)
Retrieve all organizational units
Create a request for the method "orgunits.list".
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getCustomerId()
Immutable ID of the G Suite account
|
java.lang.String |
getOrgUnitPath()
the URL-encoded organizational unit's path or its ID
|
java.lang.String |
getType()
Whether to return all sub-organizations or just immediate children
|
Directory.Orgunits.List |
set(java.lang.String parameterName,
java.lang.Object value) |
Directory.Orgunits.List |
setAlt(java.lang.String alt)
Data format for the response.
|
Directory.Orgunits.List |
setCustomerId(java.lang.String customerId)
Immutable ID of the G Suite account
|
Directory.Orgunits.List |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Directory.Orgunits.List |
setKey(java.lang.String key)
API key.
|
Directory.Orgunits.List |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Directory.Orgunits.List |
setOrgUnitPath(java.lang.String orgUnitPath)
the URL-encoded organizational unit's path or its ID
|
Directory.Orgunits.List |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Directory.Orgunits.List |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Directory.Orgunits.List |
setType(java.lang.String type)
Whether to return all sub-organizations or just immediate children
|
Directory.Orgunits.List |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected List(java.lang.String customerId)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Directory.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be
called to initialize this instance immediately after invoking the constructor.
customerId
- Immutable ID of the G Suite accountpublic com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<OrgUnits>
java.io.IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<OrgUnits>
java.io.IOException
public Directory.Orgunits.List setAlt(java.lang.String alt)
DirectoryRequest
setAlt
in class DirectoryRequest<OrgUnits>
public Directory.Orgunits.List setFields(java.lang.String fields)
DirectoryRequest
setFields
in class DirectoryRequest<OrgUnits>
public Directory.Orgunits.List setKey(java.lang.String key)
DirectoryRequest
setKey
in class DirectoryRequest<OrgUnits>
public Directory.Orgunits.List setOauthToken(java.lang.String oauthToken)
DirectoryRequest
setOauthToken
in class DirectoryRequest<OrgUnits>
public Directory.Orgunits.List setPrettyPrint(java.lang.Boolean prettyPrint)
DirectoryRequest
setPrettyPrint
in class DirectoryRequest<OrgUnits>
public Directory.Orgunits.List setQuotaUser(java.lang.String quotaUser)
DirectoryRequest
setQuotaUser
in class DirectoryRequest<OrgUnits>
public Directory.Orgunits.List setUserIp(java.lang.String userIp)
DirectoryRequest
setUserIp
in class DirectoryRequest<OrgUnits>
public java.lang.String getCustomerId()
public Directory.Orgunits.List setCustomerId(java.lang.String customerId)
public java.lang.String getOrgUnitPath()
public Directory.Orgunits.List setOrgUnitPath(java.lang.String orgUnitPath)
public java.lang.String getType()
public Directory.Orgunits.List setType(java.lang.String type)
public Directory.Orgunits.List set(java.lang.String parameterName, java.lang.Object value)
set
in class DirectoryRequest<OrgUnits>