public class Compute.Routes.Get extends ComputeRequest<Route>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Compute.Routes.Get(String project,
String route)
Returns the specified route resource.
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getProject()
Name of the project scoping this request.
|
String |
getRoute()
Name of the route resource to return.
|
Compute.Routes.Get |
setAlt(String alt)
Data format for the response.
|
Compute.Routes.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.Routes.Get |
setKey(String key)
API key.
|
Compute.Routes.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.Routes.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.Routes.Get |
setProject(String project)
Name of the project scoping this request.
|
Compute.Routes.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Compute.Routes.Get |
setRoute(String route)
Name of the route resource to return.
|
Compute.Routes.Get |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, 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, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Compute.Routes.Get(String project, String route)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Compute.initialize(AbstractGoogleClientRequest)
must be called to initialize this instance
immediately after invoking the constructor.
project
- Name of the project scoping this request.route
- Name of the route resource to return.public HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<Route>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<Route>
IOException
public Compute.Routes.Get setAlt(String alt)
ComputeRequest
setAlt
in class ComputeRequest<Route>
public Compute.Routes.Get setFields(String fields)
ComputeRequest
setFields
in class ComputeRequest<Route>
public Compute.Routes.Get setKey(String key)
ComputeRequest
setKey
in class ComputeRequest<Route>
public Compute.Routes.Get setOauthToken(String oauthToken)
ComputeRequest
setOauthToken
in class ComputeRequest<Route>
public Compute.Routes.Get setPrettyPrint(Boolean prettyPrint)
ComputeRequest
setPrettyPrint
in class ComputeRequest<Route>
public Compute.Routes.Get setQuotaUser(String quotaUser)
ComputeRequest
setQuotaUser
in class ComputeRequest<Route>
public Compute.Routes.Get setUserIp(String userIp)
ComputeRequest
setUserIp
in class ComputeRequest<Route>
public String getProject()
public Compute.Routes.Get setProject(String project)
public String getRoute()
public Compute.Routes.Get setRoute(String route)