public class Compute.SecurityPolicies.GetRule extends ComputeRequest<SecurityPolicyRule>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
GetRule(String project,
String securityPolicy)
Gets a rule at the specified priority.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
Integer |
getPriority()
The priority of the rule to get from the security policy.
|
String |
getProject()
Project ID for this request.
|
String |
getSecurityPolicy()
Name of the security policy to which the queried rule belongs.
|
Compute.SecurityPolicies.GetRule |
set(String parameterName,
Object value) |
Compute.SecurityPolicies.GetRule |
setAlt(String alt)
Data format for the response.
|
Compute.SecurityPolicies.GetRule |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.SecurityPolicies.GetRule |
setKey(String key)
API key.
|
Compute.SecurityPolicies.GetRule |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.SecurityPolicies.GetRule |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.SecurityPolicies.GetRule |
setPriority(Integer priority)
The priority of the rule to get from the security policy.
|
Compute.SecurityPolicies.GetRule |
setProject(String project)
Project ID for this request.
|
Compute.SecurityPolicies.GetRule |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Compute.SecurityPolicies.GetRule |
setSecurityPolicy(String securityPolicy)
Name of the security policy to which the queried rule belongs.
|
Compute.SecurityPolicies.GetRule |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, 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 GetRule(String project, String securityPolicy)
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 which the queried rule belongs.public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<SecurityPolicyRule>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<SecurityPolicyRule>IOExceptionpublic Compute.SecurityPolicies.GetRule setAlt(String alt)
ComputeRequestsetAlt in class ComputeRequest<SecurityPolicyRule>public Compute.SecurityPolicies.GetRule setFields(String fields)
ComputeRequestsetFields in class ComputeRequest<SecurityPolicyRule>public Compute.SecurityPolicies.GetRule setKey(String key)
ComputeRequestsetKey in class ComputeRequest<SecurityPolicyRule>public Compute.SecurityPolicies.GetRule setOauthToken(String oauthToken)
ComputeRequestsetOauthToken in class ComputeRequest<SecurityPolicyRule>public Compute.SecurityPolicies.GetRule setPrettyPrint(Boolean prettyPrint)
ComputeRequestsetPrettyPrint in class ComputeRequest<SecurityPolicyRule>public Compute.SecurityPolicies.GetRule setQuotaUser(String quotaUser)
ComputeRequestsetQuotaUser in class ComputeRequest<SecurityPolicyRule>public Compute.SecurityPolicies.GetRule setUserIp(String userIp)
ComputeRequestsetUserIp in class ComputeRequest<SecurityPolicyRule>public String getProject()
public Compute.SecurityPolicies.GetRule setProject(String project)
public String getSecurityPolicy()
public Compute.SecurityPolicies.GetRule setSecurityPolicy(String securityPolicy)
public Integer getPriority()
public Compute.SecurityPolicies.GetRule setPriority(Integer priority)
public Compute.SecurityPolicies.GetRule set(String parameterName, Object value)
set in class ComputeRequest<SecurityPolicyRule>Copyright © 2011–2019 Google. All rights reserved.