public class Compute.SecurityPolicies.AddRule extends ComputeRequest<Operation>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
AddRule(String project,
String securityPolicy,
SecurityPolicyRule content)
Inserts a rule into a security policy.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getProject()
Project ID for this request.
|
String |
getSecurityPolicy()
Name of the security policy to update.
|
Boolean |
getValidateOnly()
If true, the request will not be committed.
|
Compute.SecurityPolicies.AddRule |
set(String parameterName,
Object value) |
Compute.SecurityPolicies.AddRule |
setAlt(String alt)
Data format for the response.
|
Compute.SecurityPolicies.AddRule |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.SecurityPolicies.AddRule |
setKey(String key)
API key.
|
Compute.SecurityPolicies.AddRule |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.SecurityPolicies.AddRule |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.SecurityPolicies.AddRule |
setProject(String project)
Project ID for this request.
|
Compute.SecurityPolicies.AddRule |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Compute.SecurityPolicies.AddRule |
setSecurityPolicy(String securityPolicy)
Name of the security policy to update.
|
Compute.SecurityPolicies.AddRule |
setUserIp(String userIp)
Deprecated.
|
Compute.SecurityPolicies.AddRule |
setValidateOnly(Boolean validateOnly)
If true, the request will not be committed.
|
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, 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 AddRule(String project, String securityPolicy, SecurityPolicyRule 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.securityPolicy - Name of the security policy to update.content - the SecurityPolicyRulepublic Compute.SecurityPolicies.AddRule setAlt(String alt)
ComputeRequestsetAlt in class ComputeRequest<Operation>public Compute.SecurityPolicies.AddRule setFields(String fields)
ComputeRequestsetFields in class ComputeRequest<Operation>public Compute.SecurityPolicies.AddRule setKey(String key)
ComputeRequestsetKey in class ComputeRequest<Operation>public Compute.SecurityPolicies.AddRule setOauthToken(String oauthToken)
ComputeRequestsetOauthToken in class ComputeRequest<Operation>public Compute.SecurityPolicies.AddRule setPrettyPrint(Boolean prettyPrint)
ComputeRequestsetPrettyPrint in class ComputeRequest<Operation>public Compute.SecurityPolicies.AddRule setQuotaUser(String quotaUser)
ComputeRequestsetQuotaUser in class ComputeRequest<Operation>public Compute.SecurityPolicies.AddRule setUserIp(String userIp)
ComputeRequestsetUserIp in class ComputeRequest<Operation>public String getProject()
public Compute.SecurityPolicies.AddRule setProject(String project)
public String getSecurityPolicy()
public Compute.SecurityPolicies.AddRule setSecurityPolicy(String securityPolicy)
public Boolean getValidateOnly()
public Compute.SecurityPolicies.AddRule setValidateOnly(Boolean validateOnly)
public Compute.SecurityPolicies.AddRule set(String parameterName, Object value)
set in class ComputeRequest<Operation>Copyright © 2011–2021 Google. All rights reserved.