public class Compute.Instances.SetLabels extends ComputeRequest<Operation>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
SetLabels(String project,
String zone,
String instance,
InstancesSetLabelsRequest content)
Sets labels on an instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInstance()
Name of the instance scoping this request.
|
String |
getProject()
Project ID for this request.
|
String |
getRequestId()
An optional request ID to identify requests.
|
String |
getZone()
The name of the zone for this request.
|
Compute.Instances.SetLabels |
set(String parameterName,
Object value) |
Compute.Instances.SetLabels |
setAlt(String alt)
Data format for the response.
|
Compute.Instances.SetLabels |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.Instances.SetLabels |
setInstance(String instance)
Name of the instance scoping this request.
|
Compute.Instances.SetLabels |
setKey(String key)
API key.
|
Compute.Instances.SetLabels |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.Instances.SetLabels |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.Instances.SetLabels |
setProject(String project)
Project ID for this request.
|
Compute.Instances.SetLabels |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Compute.Instances.SetLabels |
setRequestId(String requestId)
An optional request ID to identify requests.
|
Compute.Instances.SetLabels |
setUserIp(String userIp)
Deprecated.
|
Compute.Instances.SetLabels |
setZone(String zone)
The name of the zone for this request.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected SetLabels(String project, String zone, String instance, InstancesSetLabelsRequest 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.instance - Name of the instance scoping this request.content - the InstancesSetLabelsRequestpublic Compute.Instances.SetLabels setAlt(String alt)
ComputeRequestsetAlt in class ComputeRequest<Operation>public Compute.Instances.SetLabels setFields(String fields)
ComputeRequestsetFields in class ComputeRequest<Operation>public Compute.Instances.SetLabels setKey(String key)
ComputeRequestsetKey in class ComputeRequest<Operation>public Compute.Instances.SetLabels setOauthToken(String oauthToken)
ComputeRequestsetOauthToken in class ComputeRequest<Operation>public Compute.Instances.SetLabels setPrettyPrint(Boolean prettyPrint)
ComputeRequestsetPrettyPrint in class ComputeRequest<Operation>public Compute.Instances.SetLabels setQuotaUser(String quotaUser)
ComputeRequestsetQuotaUser in class ComputeRequest<Operation>public Compute.Instances.SetLabels setUserIp(String userIp)
ComputeRequestsetUserIp in class ComputeRequest<Operation>public String getProject()
public Compute.Instances.SetLabels setProject(String project)
public String getZone()
public Compute.Instances.SetLabels setZone(String zone)
public String getInstance()
public Compute.Instances.SetLabels setInstance(String instance)
public String getRequestId()
public Compute.Instances.SetLabels setRequestId(String requestId)
public Compute.Instances.SetLabels set(String parameterName, Object value)
set in class ComputeRequest<Operation>Copyright © 2011–2019 Google. All rights reserved.