public class Iam.Policies.CreatePolicy extends IamRequest<GoogleLongrunningOperation>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
CreatePolicy(String parent,
GoogleIamV2betaPolicy content)
Creates a policy.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getParent()
Required.
|
String |
getPolicyId()
The ID to use for this policy, which will become the final component of the policy's resource name.
|
Iam.Policies.CreatePolicy |
set(String parameterName,
Object value) |
Iam.Policies.CreatePolicy |
set$Xgafv(String $Xgafv)
V1 error format.
|
Iam.Policies.CreatePolicy |
setAccessToken(String accessToken)
OAuth access token.
|
Iam.Policies.CreatePolicy |
setAlt(String alt)
Data format for response.
|
Iam.Policies.CreatePolicy |
setCallback(String callback)
JSONP
|
Iam.Policies.CreatePolicy |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Iam.Policies.CreatePolicy |
setKey(String key)
API key.
|
Iam.Policies.CreatePolicy |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Iam.Policies.CreatePolicy |
setParent(String parent)
Required.
|
Iam.Policies.CreatePolicy |
setPolicyId(String policyId)
The ID to use for this policy, which will become the final component of the policy's
resource name.
|
Iam.Policies.CreatePolicy |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Iam.Policies.CreatePolicy |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Iam.Policies.CreatePolicy |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Iam.Policies.CreatePolicy |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, 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, 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 CreatePolicy(String parent, GoogleIamV2betaPolicy content)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
Iam.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
parent - Required. The resource that the policy is attached to, along with the kind of policy to create.
Format: `policies/{attachment_point}/denypolicies` The attachment point is identified by
its URL-encoded full resource name, which means that the forward-slash character, `/`,
must be written as `%2F`. For example,
`policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies`. For
organizations and folders, use the numeric ID in the full resource name. For projects, you
can use the alphanumeric or the numeric ID.content - the GoogleIamV2betaPolicypublic Iam.Policies.CreatePolicy set$Xgafv(String $Xgafv)
IamRequestset$Xgafv in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setAccessToken(String accessToken)
IamRequestsetAccessToken in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setAlt(String alt)
IamRequestsetAlt in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setCallback(String callback)
IamRequestsetCallback in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setFields(String fields)
IamRequestsetFields in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setKey(String key)
IamRequestsetKey in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setOauthToken(String oauthToken)
IamRequestsetOauthToken in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setPrettyPrint(Boolean prettyPrint)
IamRequestsetPrettyPrint in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setQuotaUser(String quotaUser)
IamRequestsetQuotaUser in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setUploadType(String uploadType)
IamRequestsetUploadType in class IamRequest<GoogleLongrunningOperation>public Iam.Policies.CreatePolicy setUploadProtocol(String uploadProtocol)
IamRequestsetUploadProtocol in class IamRequest<GoogleLongrunningOperation>public String getParent()
public Iam.Policies.CreatePolicy setParent(String parent)
public String getPolicyId()
public Iam.Policies.CreatePolicy setPolicyId(String policyId)
public Iam.Policies.CreatePolicy set(String parameterName, Object value)
set in class IamRequest<GoogleLongrunningOperation>Copyright © 2011–2022 Google. All rights reserved.