Class HttpJsonRegionSecurityPoliciesStub (1.51.0)

public class HttpJsonRegionSecurityPoliciesStub extends RegionSecurityPoliciesStub

REST stub implementation for the RegionSecurityPolicies service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > RegionSecurityPoliciesStub > HttpJsonRegionSecurityPoliciesStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonRegionSecurityPoliciesStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonRegionSecurityPoliciesStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonRegionSecurityPoliciesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonRegionSecurityPoliciesStub
Exceptions
TypeDescription
IOException

create(RegionSecurityPoliciesStubSettings settings)

public static final HttpJsonRegionSecurityPoliciesStub create(RegionSecurityPoliciesStubSettings settings)
Parameter
NameDescription
settingsRegionSecurityPoliciesStubSettings
Returns
TypeDescription
HttpJsonRegionSecurityPoliciesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonRegionSecurityPoliciesStub(RegionSecurityPoliciesStubSettings settings, ClientContext clientContext)

protected HttpJsonRegionSecurityPoliciesStub(RegionSecurityPoliciesStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonRegionSecurityPoliciesStub, 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.

Parameters
NameDescription
settingsRegionSecurityPoliciesStubSettings
clientContextClientContext

HttpJsonRegionSecurityPoliciesStub(RegionSecurityPoliciesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonRegionSecurityPoliciesStub(RegionSecurityPoliciesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonRegionSecurityPoliciesStub, 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.

Parameters
NameDescription
settingsRegionSecurityPoliciesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

addRuleCallable()

public UnaryCallable<AddRuleRegionSecurityPolicyRequest,Operation> addRuleCallable()
Returns
TypeDescription
UnaryCallable<AddRuleRegionSecurityPolicyRequest,Operation>
Overrides

addRuleOperationCallable()

public OperationCallable<AddRuleRegionSecurityPolicyRequest,Operation,Operation> addRuleOperationCallable()
Returns
TypeDescription
OperationCallable<AddRuleRegionSecurityPolicyRequest,Operation,Operation>
Overrides

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

public UnaryCallable<DeleteRegionSecurityPolicyRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteRegionSecurityPolicyRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteRegionSecurityPolicyRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteRegionSecurityPolicyRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetRegionSecurityPolicyRequest,SecurityPolicy> getCallable()
Returns
TypeDescription
UnaryCallable<GetRegionSecurityPolicyRequest,SecurityPolicy>
Overrides

getRuleCallable()

public UnaryCallable<GetRuleRegionSecurityPolicyRequest,SecurityPolicyRule> getRuleCallable()
Returns
TypeDescription
UnaryCallable<GetRuleRegionSecurityPolicyRequest,SecurityPolicyRule>
Overrides

insertCallable()

public UnaryCallable<InsertRegionSecurityPolicyRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertRegionSecurityPolicyRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertRegionSecurityPolicyRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertRegionSecurityPolicyRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListRegionSecurityPoliciesRequest,SecurityPolicyList> listCallable()
Returns
TypeDescription
UnaryCallable<ListRegionSecurityPoliciesRequest,SecurityPolicyList>
Overrides

listPagedCallable()

public UnaryCallable<ListRegionSecurityPoliciesRequest,RegionSecurityPoliciesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListRegionSecurityPoliciesRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchRegionSecurityPolicyRequest,Operation> patchCallable()
Returns
TypeDescription
UnaryCallable<PatchRegionSecurityPolicyRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchRegionSecurityPolicyRequest,Operation,Operation> patchOperationCallable()
Returns
TypeDescription
OperationCallable<PatchRegionSecurityPolicyRequest,Operation,Operation>
Overrides

patchRuleCallable()

public UnaryCallable<PatchRuleRegionSecurityPolicyRequest,Operation> patchRuleCallable()
Returns
TypeDescription
UnaryCallable<PatchRuleRegionSecurityPolicyRequest,Operation>
Overrides

patchRuleOperationCallable()

public OperationCallable<PatchRuleRegionSecurityPolicyRequest,Operation,Operation> patchRuleOperationCallable()
Returns
TypeDescription
OperationCallable<PatchRuleRegionSecurityPolicyRequest,Operation,Operation>
Overrides

removeRuleCallable()

public UnaryCallable<RemoveRuleRegionSecurityPolicyRequest,Operation> removeRuleCallable()
Returns
TypeDescription
UnaryCallable<RemoveRuleRegionSecurityPolicyRequest,Operation>
Overrides

removeRuleOperationCallable()

public OperationCallable<RemoveRuleRegionSecurityPolicyRequest,Operation,Operation> removeRuleOperationCallable()
Returns
TypeDescription
OperationCallable<RemoveRuleRegionSecurityPolicyRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()