public class Compute.InstantSnapshots.SetLabels extends ComputeRequest<Operation>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
SetLabels(String project,
String zone,
String resource,
ZoneSetLabelsRequest content)
Sets the labels on a instantSnapshot in the given zone.
|
Modifier and Type | Method and Description |
---|---|
String |
getProject()
Project ID for this request.
|
String |
getRequestId()
An optional request ID to identify requests.
|
String |
getResource()
Name or id of the resource for this request.
|
String |
getZone()
The name of the zone for this request.
|
Compute.InstantSnapshots.SetLabels |
set(String parameterName,
Object value) |
Compute.InstantSnapshots.SetLabels |
set$Xgafv(String $Xgafv)
V1 error format.
|
Compute.InstantSnapshots.SetLabels |
setAccessToken(String accessToken)
OAuth access token.
|
Compute.InstantSnapshots.SetLabels |
setAlt(String alt)
Data format for response.
|
Compute.InstantSnapshots.SetLabels |
setCallback(String callback)
JSONP
|
Compute.InstantSnapshots.SetLabels |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.InstantSnapshots.SetLabels |
setKey(String key)
API key.
|
Compute.InstantSnapshots.SetLabels |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.InstantSnapshots.SetLabels |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.InstantSnapshots.SetLabels |
setProject(String project)
Project ID for this request.
|
Compute.InstantSnapshots.SetLabels |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Compute.InstantSnapshots.SetLabels |
setRequestId(String requestId)
An optional request ID to identify requests.
|
Compute.InstantSnapshots.SetLabels |
setResource(String resource)
Name or id of the resource for this request.
|
Compute.InstantSnapshots.SetLabels |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Compute.InstantSnapshots.SetLabels |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Compute.InstantSnapshots.SetLabels |
setUserIp(String userIp)
Legacy name for parameter that has been superseded by `quotaUser`.
|
Compute.InstantSnapshots.SetLabels |
setZone(String zone)
The name of the zone for this request.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected SetLabels(String project, String zone, String resource, ZoneSetLabelsRequest content)
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
- Project ID for this request.zone
- The name of the zone for this request.resource
- Name or id of the resource for this request.content
- the ZoneSetLabelsRequest
public Compute.InstantSnapshots.SetLabels set$Xgafv(String $Xgafv)
ComputeRequest
set$Xgafv
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setAccessToken(String accessToken)
ComputeRequest
setAccessToken
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setAlt(String alt)
ComputeRequest
setAlt
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setCallback(String callback)
ComputeRequest
setCallback
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setFields(String fields)
ComputeRequest
setFields
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setKey(String key)
ComputeRequest
setKey
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setOauthToken(String oauthToken)
ComputeRequest
setOauthToken
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setPrettyPrint(Boolean prettyPrint)
ComputeRequest
setPrettyPrint
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setQuotaUser(String quotaUser)
ComputeRequest
setQuotaUser
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setUploadType(String uploadType)
ComputeRequest
setUploadType
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setUploadProtocol(String uploadProtocol)
ComputeRequest
setUploadProtocol
in class ComputeRequest<Operation>
public Compute.InstantSnapshots.SetLabels setUserIp(String userIp)
ComputeRequest
setUserIp
in class ComputeRequest<Operation>
public String getProject()
public Compute.InstantSnapshots.SetLabels setProject(String project)
public String getZone()
public Compute.InstantSnapshots.SetLabels setZone(String zone)
public String getResource()
public Compute.InstantSnapshots.SetLabels setResource(String resource)
public String getRequestId()
public Compute.InstantSnapshots.SetLabels setRequestId(String requestId)
public Compute.InstantSnapshots.SetLabels set(String parameterName, Object value)
set
in class ComputeRequest<Operation>
Copyright © 2011–2024 Google. All rights reserved.