Class HttpJsonFirewallStub (2.3.2)

public class HttpJsonFirewallStub extends FirewallStub

REST stub implementation for the Firewall service API.

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

Inheritance

java.lang.Object > FirewallStub > HttpJsonFirewallStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(FirewallStubSettings settings)

public static final HttpJsonFirewallStub create(FirewallStubSettings settings)
Parameter
NameDescription
settingsFirewallStubSettings
Returns
TypeDescription
HttpJsonFirewallStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonFirewallStub(FirewallStubSettings settings, ClientContext clientContext)

protected HttpJsonFirewallStub(FirewallStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonFirewallStub, 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
settingsFirewallStubSettings
clientContextClientContext

HttpJsonFirewallStub(FirewallStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonFirewallStub(FirewallStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonFirewallStub, 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
settingsFirewallStubSettings
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

batchUpdateIngressRulesCallable()

public UnaryCallable<BatchUpdateIngressRulesRequest,BatchUpdateIngressRulesResponse> batchUpdateIngressRulesCallable()
Returns
TypeDescription
UnaryCallable<BatchUpdateIngressRulesRequest,BatchUpdateIngressRulesResponse>
Overrides

close()

public final void close()
Overrides

createIngressRuleCallable()

public UnaryCallable<CreateIngressRuleRequest,FirewallRule> createIngressRuleCallable()
Returns
TypeDescription
UnaryCallable<CreateIngressRuleRequest,FirewallRule>
Overrides

deleteIngressRuleCallable()

public UnaryCallable<DeleteIngressRuleRequest,Empty> deleteIngressRuleCallable()
Returns
TypeDescription
UnaryCallable<DeleteIngressRuleRequest,Empty>
Overrides

getIngressRuleCallable()

public UnaryCallable<GetIngressRuleRequest,FirewallRule> getIngressRuleCallable()
Returns
TypeDescription
UnaryCallable<GetIngressRuleRequest,FirewallRule>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listIngressRulesCallable()

public UnaryCallable<ListIngressRulesRequest,ListIngressRulesResponse> listIngressRulesCallable()
Returns
TypeDescription
UnaryCallable<ListIngressRulesRequest,ListIngressRulesResponse>
Overrides

listIngressRulesPagedCallable()

public UnaryCallable<ListIngressRulesRequest,FirewallClient.ListIngressRulesPagedResponse> listIngressRulesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListIngressRulesRequest,ListIngressRulesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateIngressRuleCallable()

public UnaryCallable<UpdateIngressRuleRequest,FirewallRule> updateIngressRuleCallable()
Returns
TypeDescription
UnaryCallable<UpdateIngressRuleRequest,FirewallRule>
Overrides