public class Compute.Hosts.Get extends ComputeRequest<Host>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Get(String project,
String zone,
String association,
String host)
Retrieves information about the specified host.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getAssociation()
The parent resource association for the Host.
|
String |
getHost()
The name of the host, formatted as RFC1035 or a resource ID number.
|
String |
getProject()
The project ID for this request.
|
String |
getZone()
The name of the zone for this request, formatted as RFC1035.
|
Compute.Hosts.Get |
set(String parameterName,
Object value) |
Compute.Hosts.Get |
set$Xgafv(String $Xgafv)
V1 error format.
|
Compute.Hosts.Get |
setAccessToken(String accessToken)
OAuth access token.
|
Compute.Hosts.Get |
setAlt(String alt)
Data format for response.
|
Compute.Hosts.Get |
setAssociation(String association)
The parent resource association for the Host.
|
Compute.Hosts.Get |
setCallback(String callback)
JSONP
|
Compute.Hosts.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.Hosts.Get |
setHost(String host)
The name of the host, formatted as RFC1035 or a resource ID number.
|
Compute.Hosts.Get |
setKey(String key)
API key.
|
Compute.Hosts.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.Hosts.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.Hosts.Get |
setProject(String project)
The project ID for this request.
|
Compute.Hosts.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Compute.Hosts.Get |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Compute.Hosts.Get |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Compute.Hosts.Get |
setUserIp(String userIp)
Legacy name for parameter that has been superseded by `quotaUser`.
|
Compute.Hosts.Get |
setZone(String zone)
The name of the zone for this request, formatted as RFC1035.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Get(String project, String zone, String association, String host)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Compute.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
project - The project ID for this request.zone - The name of the zone for this request, formatted as RFC1035.association - The parent resource association for the Host. This field specifies the
hierarchical context (e.g.,
reservation, block, sub-block) when
accessing the host. For example,
reservations/reservation_name,
reservations/reservation_name/reservationBlocks/reservation_block_name or
reservations/res
ervation_name/reservationBlocks/reservation_block_name/reservationSubBlocks/reservation_su
b_block_name.host - The name of the host, formatted as RFC1035 or a resource ID
number.public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Host>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Host>IOExceptionpublic Compute.Hosts.Get set$Xgafv(String $Xgafv)
ComputeRequestset$Xgafv in class ComputeRequest<Host>public Compute.Hosts.Get setAccessToken(String accessToken)
ComputeRequestsetAccessToken in class ComputeRequest<Host>public Compute.Hosts.Get setAlt(String alt)
ComputeRequestsetAlt in class ComputeRequest<Host>public Compute.Hosts.Get setCallback(String callback)
ComputeRequestsetCallback in class ComputeRequest<Host>public Compute.Hosts.Get setFields(String fields)
ComputeRequestsetFields in class ComputeRequest<Host>public Compute.Hosts.Get setKey(String key)
ComputeRequestsetKey in class ComputeRequest<Host>public Compute.Hosts.Get setOauthToken(String oauthToken)
ComputeRequestsetOauthToken in class ComputeRequest<Host>public Compute.Hosts.Get setPrettyPrint(Boolean prettyPrint)
ComputeRequestsetPrettyPrint in class ComputeRequest<Host>public Compute.Hosts.Get setQuotaUser(String quotaUser)
ComputeRequestsetQuotaUser in class ComputeRequest<Host>public Compute.Hosts.Get setUploadType(String uploadType)
ComputeRequestsetUploadType in class ComputeRequest<Host>public Compute.Hosts.Get setUploadProtocol(String uploadProtocol)
ComputeRequestsetUploadProtocol in class ComputeRequest<Host>public Compute.Hosts.Get setUserIp(String userIp)
ComputeRequestsetUserIp in class ComputeRequest<Host>public String getProject()
public Compute.Hosts.Get setProject(String project)
public String getZone()
public Compute.Hosts.Get setZone(String zone)
public String getAssociation()
public Compute.Hosts.Get setAssociation(String association)
public String getHost()
public Compute.Hosts.Get setHost(String host)
public Compute.Hosts.Get set(String parameterName, Object value)
set in class ComputeRequest<Host>Copyright © 2011–2026 Google. All rights reserved.