public class Compute.Subnetworks.SetIamPolicy extends ComputeRequest<Policy>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
SetIamPolicy(String project,
String region,
String resource,
RegionSetPolicyRequest content)
Sets the access control policy on the specified resource.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProject()
Project ID for this request.
|
String |
getRegion()
The name of the region for this request.
|
String |
getResource()
Name or id of the resource for this request.
|
Compute.Subnetworks.SetIamPolicy |
set(String parameterName,
Object value) |
Compute.Subnetworks.SetIamPolicy |
setAlt(String alt)
Data format for the response.
|
Compute.Subnetworks.SetIamPolicy |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.Subnetworks.SetIamPolicy |
setKey(String key)
API key.
|
Compute.Subnetworks.SetIamPolicy |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.Subnetworks.SetIamPolicy |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.Subnetworks.SetIamPolicy |
setProject(String project)
Project ID for this request.
|
Compute.Subnetworks.SetIamPolicy |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Compute.Subnetworks.SetIamPolicy |
setRegion(String region)
The name of the region for this request.
|
Compute.Subnetworks.SetIamPolicy |
setResource(String resource)
Name or id of the resource for this request.
|
Compute.Subnetworks.SetIamPolicy |
setUserIp(String userIp)
Deprecated.
|
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 SetIamPolicy(String project, String region, String resource, RegionSetPolicyRequest 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.region - The name of the region for this request.resource - Name or id of the resource for this request.content - the RegionSetPolicyRequestpublic Compute.Subnetworks.SetIamPolicy setAlt(String alt)
ComputeRequestsetAlt in class ComputeRequest<Policy>public Compute.Subnetworks.SetIamPolicy setFields(String fields)
ComputeRequestsetFields in class ComputeRequest<Policy>public Compute.Subnetworks.SetIamPolicy setKey(String key)
ComputeRequestsetKey in class ComputeRequest<Policy>public Compute.Subnetworks.SetIamPolicy setOauthToken(String oauthToken)
ComputeRequestsetOauthToken in class ComputeRequest<Policy>public Compute.Subnetworks.SetIamPolicy setPrettyPrint(Boolean prettyPrint)
ComputeRequestsetPrettyPrint in class ComputeRequest<Policy>public Compute.Subnetworks.SetIamPolicy setQuotaUser(String quotaUser)
ComputeRequestsetQuotaUser in class ComputeRequest<Policy>public Compute.Subnetworks.SetIamPolicy setUserIp(String userIp)
ComputeRequestsetUserIp in class ComputeRequest<Policy>public String getProject()
public Compute.Subnetworks.SetIamPolicy setProject(String project)
public String getRegion()
public Compute.Subnetworks.SetIamPolicy setRegion(String region)
public String getResource()
public Compute.Subnetworks.SetIamPolicy setResource(String resource)
public Compute.Subnetworks.SetIamPolicy set(String parameterName, Object value)
set in class ComputeRequest<Policy>Copyright © 2011–2019 Google. All rights reserved.