Class HttpJsonFirewallStub (2.43.0)

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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonFirewallStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(FirewallStubSettings settings)

public static final HttpJsonFirewallStub create(FirewallStubSettings settings)
Parameter
Name Description
settings FirewallStubSettings
Returns
Type Description
HttpJsonFirewallStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

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

Methods

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

batchUpdateIngressRulesCallable()

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

close()

public final void close()
Overrides

createIngressRuleCallable()

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

deleteIngressRuleCallable()

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

getIngressRuleCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listIngressRulesCallable()

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

listIngressRulesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateIngressRuleCallable()

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