Class FirewallGrpc.FirewallStub (2.1.10)

public static final class FirewallGrpc.FirewallStub extends AbstractAsyncStub<FirewallGrpc.FirewallStub>

Firewall resources are used to define a collection of access control rules for an Application. Each rule is defined with a position which specifies the rule's order in the sequence of rules, an IP range to be matched against requests, and an action to take upon matching requests. Every request is evaluated against the Firewall rules in priority order. Processesing stops at the first rule which matches the request's IP address. A final rule always specifies an action that applies to all remaining IP addresses. The default final rule for a newly-created application will be set to "allow" if not otherwise specified by the user.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > FirewallGrpc.FirewallStub

Methods

batchUpdateIngressRules(BatchUpdateIngressRulesRequest request, StreamObserver<BatchUpdateIngressRulesResponse> responseObserver)

public void batchUpdateIngressRules(BatchUpdateIngressRulesRequest request, StreamObserver<BatchUpdateIngressRulesResponse> responseObserver)

Replaces the entire firewall ruleset in one bulk operation. This overrides and replaces the rules of an existing firewall with the new rules. If the final rule does not match traffic with the '*' wildcard IP range, then an "allow all" rule is explicitly added to the end of the list.

Parameters
NameDescription
requestBatchUpdateIngressRulesRequest
responseObserverio.grpc.stub.StreamObserver<BatchUpdateIngressRulesResponse>

build(Channel channel, CallOptions callOptions)

protected FirewallGrpc.FirewallStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
FirewallGrpc.FirewallStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createIngressRule(CreateIngressRuleRequest request, StreamObserver<FirewallRule> responseObserver)

public void createIngressRule(CreateIngressRuleRequest request, StreamObserver<FirewallRule> responseObserver)

Creates a firewall rule for the application.

Parameters
NameDescription
requestCreateIngressRuleRequest
responseObserverio.grpc.stub.StreamObserver<FirewallRule>

deleteIngressRule(DeleteIngressRuleRequest request, StreamObserver<Empty> responseObserver)

public void deleteIngressRule(DeleteIngressRuleRequest request, StreamObserver<Empty> responseObserver)

Deletes the specified firewall rule.

Parameters
NameDescription
requestDeleteIngressRuleRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getIngressRule(GetIngressRuleRequest request, StreamObserver<FirewallRule> responseObserver)

public void getIngressRule(GetIngressRuleRequest request, StreamObserver<FirewallRule> responseObserver)

Gets the specified firewall rule.

Parameters
NameDescription
requestGetIngressRuleRequest
responseObserverio.grpc.stub.StreamObserver<FirewallRule>

listIngressRules(ListIngressRulesRequest request, StreamObserver<ListIngressRulesResponse> responseObserver)

public void listIngressRules(ListIngressRulesRequest request, StreamObserver<ListIngressRulesResponse> responseObserver)

Lists the firewall rules of an application.

Parameters
NameDescription
requestListIngressRulesRequest
responseObserverio.grpc.stub.StreamObserver<ListIngressRulesResponse>

updateIngressRule(UpdateIngressRuleRequest request, StreamObserver<FirewallRule> responseObserver)

public void updateIngressRule(UpdateIngressRuleRequest request, StreamObserver<FirewallRule> responseObserver)

Updates the specified firewall rule.

Parameters
NameDescription
requestUpdateIngressRuleRequest
responseObserverio.grpc.stub.StreamObserver<FirewallRule>