public class Compute.FirewallPolicies.PatchRule extends ComputeRequest<Operation>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
PatchRule(String firewallPolicy,
FirewallPolicyRule content)
Patches a rule of the specified priority.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFirewallPolicy()
Name of the firewall policy to update.
|
Integer |
getPriority()
The priority of the rule to patch.
|
String |
getRequestId()
An optional request ID to identify requests.
|
Compute.FirewallPolicies.PatchRule |
set(String parameterName,
Object value) |
Compute.FirewallPolicies.PatchRule |
setAlt(String alt)
Data format for the response.
|
Compute.FirewallPolicies.PatchRule |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Compute.FirewallPolicies.PatchRule |
setFirewallPolicy(String firewallPolicy)
Name of the firewall policy to update.
|
Compute.FirewallPolicies.PatchRule |
setKey(String key)
API key.
|
Compute.FirewallPolicies.PatchRule |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Compute.FirewallPolicies.PatchRule |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Compute.FirewallPolicies.PatchRule |
setPriority(Integer priority)
The priority of the rule to patch.
|
Compute.FirewallPolicies.PatchRule |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Compute.FirewallPolicies.PatchRule |
setRequestId(String requestId)
An optional request ID to identify requests.
|
Compute.FirewallPolicies.PatchRule |
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, 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 PatchRule(String firewallPolicy, FirewallPolicyRule 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.
firewallPolicy - Name of the firewall policy to update.content - the FirewallPolicyRulepublic Compute.FirewallPolicies.PatchRule setAlt(String alt)
ComputeRequestsetAlt in class ComputeRequest<Operation>public Compute.FirewallPolicies.PatchRule setFields(String fields)
ComputeRequestsetFields in class ComputeRequest<Operation>public Compute.FirewallPolicies.PatchRule setKey(String key)
ComputeRequestsetKey in class ComputeRequest<Operation>public Compute.FirewallPolicies.PatchRule setOauthToken(String oauthToken)
ComputeRequestsetOauthToken in class ComputeRequest<Operation>public Compute.FirewallPolicies.PatchRule setPrettyPrint(Boolean prettyPrint)
ComputeRequestsetPrettyPrint in class ComputeRequest<Operation>public Compute.FirewallPolicies.PatchRule setQuotaUser(String quotaUser)
ComputeRequestsetQuotaUser in class ComputeRequest<Operation>public Compute.FirewallPolicies.PatchRule setUserIp(String userIp)
ComputeRequestsetUserIp in class ComputeRequest<Operation>public String getFirewallPolicy()
public Compute.FirewallPolicies.PatchRule setFirewallPolicy(String firewallPolicy)
public Integer getPriority()
public Compute.FirewallPolicies.PatchRule setPriority(Integer priority)
public String getRequestId()
public Compute.FirewallPolicies.PatchRule setRequestId(String requestId)
public Compute.FirewallPolicies.PatchRule set(String parameterName, Object value)
set in class ComputeRequest<Operation>Copyright © 2011–2021 Google. All rights reserved.