Class HttpJsonRegionSecurityPoliciesStub (1.27.0)

See more code actions.
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.

java.lang.Object > RegionSecurityPoliciesStub > HttpJsonRegionSecurityPoliciesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(RegionSecurityPoliciesStubSettings settings)

public static final HttpJsonRegionSecurityPoliciesStub create(RegionSecurityPoliciesStubSettings settings)
Parameter
NameDescription
settingsRegionSecurityPoliciesStubSettings
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()
Overrides

deleteOperationCallable()

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

getCallable()

public UnaryCallable<GetRegionSecurityPolicyRequest,SecurityPolicy> getCallable()
Overrides

insertCallable()

public UnaryCallable<InsertRegionSecurityPolicyRequest,Operation> insertCallable()
Overrides

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListRegionSecurityPoliciesRequest,SecurityPolicyList> listCallable()
Overrides

listPagedCallable()

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

patchCallable()

public UnaryCallable<PatchRegionSecurityPolicyRequest,Operation> patchCallable()
Overrides

patchOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()