Package com.google.cloud.compute.v1.stub
Class HttpJsonSecurityPoliciesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.SecurityPoliciesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonSecurityPoliciesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonSecurityPoliciesStub extends SecurityPoliciesStub
REST stub implementation for the SecurityPolicies service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonSecurityPoliciesStub(SecurityPoliciesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonSecurityPoliciesStub, using the given settings.protectedHttpJsonSecurityPoliciesStub(SecurityPoliciesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonSecurityPoliciesStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonSecurityPoliciesStub
protected HttpJsonSecurityPoliciesStub(SecurityPoliciesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonSecurityPoliciesStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonSecurityPoliciesStub
protected HttpJsonSecurityPoliciesStub(SecurityPoliciesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonSecurityPoliciesStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonSecurityPoliciesStub create(SecurityPoliciesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSecurityPoliciesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonSecurityPoliciesStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
addRuleCallable
public com.google.api.gax.rpc.UnaryCallable<AddRuleSecurityPolicyRequest,Operation> addRuleCallable()
- Overrides:
addRuleCallablein classSecurityPoliciesStub
-
addRuleOperationCallable
public com.google.api.gax.rpc.OperationCallable<AddRuleSecurityPolicyRequest,Operation,Operation> addRuleOperationCallable()
- Overrides:
addRuleOperationCallablein classSecurityPoliciesStub
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListSecurityPoliciesRequest,SecurityPoliciesAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classSecurityPoliciesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListSecurityPoliciesRequest,SecurityPoliciesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classSecurityPoliciesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteSecurityPolicyRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classSecurityPoliciesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteSecurityPolicyRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classSecurityPoliciesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetSecurityPolicyRequest,SecurityPolicy> getCallable()
- Overrides:
getCallablein classSecurityPoliciesStub
-
getRuleCallable
public com.google.api.gax.rpc.UnaryCallable<GetRuleSecurityPolicyRequest,SecurityPolicyRule> getRuleCallable()
- Overrides:
getRuleCallablein classSecurityPoliciesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertSecurityPolicyRequest,Operation> insertCallable()
- Overrides:
insertCallablein classSecurityPoliciesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertSecurityPolicyRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classSecurityPoliciesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListSecurityPoliciesRequest,SecurityPolicyList> listCallable()
- Overrides:
listCallablein classSecurityPoliciesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListSecurityPoliciesRequest,SecurityPoliciesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classSecurityPoliciesStub
-
listPreconfiguredExpressionSetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListPreconfiguredExpressionSetsSecurityPoliciesRequest,SecurityPoliciesListPreconfiguredExpressionSetsResponse> listPreconfiguredExpressionSetsCallable()
- Overrides:
listPreconfiguredExpressionSetsCallablein classSecurityPoliciesStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchSecurityPolicyRequest,Operation> patchCallable()
- Overrides:
patchCallablein classSecurityPoliciesStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchSecurityPolicyRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallablein classSecurityPoliciesStub
-
patchRuleCallable
public com.google.api.gax.rpc.UnaryCallable<PatchRuleSecurityPolicyRequest,Operation> patchRuleCallable()
- Overrides:
patchRuleCallablein classSecurityPoliciesStub
-
patchRuleOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchRuleSecurityPolicyRequest,Operation,Operation> patchRuleOperationCallable()
- Overrides:
patchRuleOperationCallablein classSecurityPoliciesStub
-
removeRuleCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveRuleSecurityPolicyRequest,Operation> removeRuleCallable()
- Overrides:
removeRuleCallablein classSecurityPoliciesStub
-
removeRuleOperationCallable
public com.google.api.gax.rpc.OperationCallable<RemoveRuleSecurityPolicyRequest,Operation,Operation> removeRuleOperationCallable()
- Overrides:
removeRuleOperationCallablein classSecurityPoliciesStub
-
setLabelsCallable
public com.google.api.gax.rpc.UnaryCallable<SetLabelsSecurityPolicyRequest,Operation> setLabelsCallable()
- Overrides:
setLabelsCallablein classSecurityPoliciesStub
-
setLabelsOperationCallable
public com.google.api.gax.rpc.OperationCallable<SetLabelsSecurityPolicyRequest,Operation,Operation> setLabelsOperationCallable()
- Overrides:
setLabelsOperationCallablein classSecurityPoliciesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classSecurityPoliciesStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-