Class HttpJsonRegionSecurityPoliciesStub (1.53.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonRegionSecurityPoliciesStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonRegionSecurityPoliciesStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonRegionSecurityPoliciesStub
Exceptions
Type Description
IOException

create(RegionSecurityPoliciesStubSettings settings)

public static final HttpJsonRegionSecurityPoliciesStub create(RegionSecurityPoliciesStubSettings settings)
Parameter
Name Description
settings RegionSecurityPoliciesStubSettings
Returns
Type Description
HttpJsonRegionSecurityPoliciesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings RegionSecurityPoliciesStubSettings
clientContext ClientContext

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
Name Description
settings RegionSecurityPoliciesStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

addRuleCallable()

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

addRuleOperationCallable()

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

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

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

deleteOperationCallable()

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

getCallable()

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

getRuleCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

patchCallable()

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

patchOperationCallable()

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

patchRuleCallable()

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

patchRuleOperationCallable()

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

removeRuleCallable()

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

removeRuleOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()