Class HttpJsonSecurityPoliciesStub (1.15.0)

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.

Inheritance

java.lang.Object > SecurityPoliciesStub > HttpJsonSecurityPoliciesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SecurityPoliciesStubSettings settings)

public static final HttpJsonSecurityPoliciesStub create(SecurityPoliciesStubSettings settings)
Parameter
NameDescription
settingsSecurityPoliciesStubSettings
Returns
TypeDescription
HttpJsonSecurityPoliciesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonSecurityPoliciesStub(SecurityPoliciesStubSettings settings, ClientContext clientContext)

protected HttpJsonSecurityPoliciesStub(SecurityPoliciesStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsSecurityPoliciesStubSettings
clientContextClientContext

HttpJsonSecurityPoliciesStub(SecurityPoliciesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSecurityPoliciesStub(SecurityPoliciesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsSecurityPoliciesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

addRuleCallable()

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

addRuleOperationCallable()

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

aggregatedListCallable()

public UnaryCallable<AggregatedListSecurityPoliciesRequest,SecurityPoliciesAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListSecurityPoliciesRequest,SecurityPoliciesAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListSecurityPoliciesRequest,SecurityPoliciesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListSecurityPoliciesRequest,AggregatedListPagedResponse>
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<DeleteSecurityPolicyRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteSecurityPolicyRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

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

getRuleCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

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

listPagedCallable()

public UnaryCallable<ListSecurityPoliciesRequest,SecurityPoliciesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSecurityPoliciesRequest,ListPagedResponse>
Overrides

listPreconfiguredExpressionSetsCallable()

public UnaryCallable<ListPreconfiguredExpressionSetsSecurityPoliciesRequest,SecurityPoliciesListPreconfiguredExpressionSetsResponse> listPreconfiguredExpressionSetsCallable()
Returns
TypeDescription
UnaryCallable<ListPreconfiguredExpressionSetsSecurityPoliciesRequest,SecurityPoliciesListPreconfiguredExpressionSetsResponse>
Overrides

patchCallable()

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

patchOperationCallable()

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

patchRuleCallable()

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

patchRuleOperationCallable()

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

removeRuleCallable()

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

removeRuleOperationCallable()

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

setLabelsCallable()

public UnaryCallable<SetLabelsSecurityPolicyRequest,Operation> setLabelsCallable()
Returns
TypeDescription
UnaryCallable<SetLabelsSecurityPolicyRequest,Operation>
Overrides

setLabelsOperationCallable()

public OperationCallable<SetLabelsSecurityPolicyRequest,Operation,Operation> setLabelsOperationCallable()
Returns
TypeDescription
OperationCallable<SetLabelsSecurityPolicyRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()