Class HttpJsonRegionSecurityPoliciesStub (1.14.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

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

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()