public abstract class Firewall extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Firewall.Rule
A protocol and port-range tuple that describes a permitted connection.
|
Modifier and Type | Method and Description |
---|---|
abstract List<Firewall.Rule> |
allowed()
Each rule specifies a protocol and port-range tuple that describes a permitted connection.
|
static Firewall |
create(String id,
URI selfLink,
Date creationTimestamp,
String name,
String description,
URI network,
List<String> sourceRanges,
List<String> sourceTags,
List<String> targetTags,
List<Firewall.Rule> allowed) |
abstract Date |
creationTimestamp() |
abstract String |
description() |
abstract String |
id() |
abstract String |
name() |
abstract URI |
network() |
abstract URI |
selfLink() |
abstract List<String> |
sourceRanges()
One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or
the tag of the source matches.
|
abstract List<String> |
sourceTags() |
abstract List<String> |
targetTags()
If no targetTags are specified, the firewall rule applies to all instances on the specified network.
|
public abstract String id()
public abstract URI selfLink()
public abstract Date creationTimestamp()
public abstract String name()
public abstract URI network()
public abstract List<String> sourceRanges()
public abstract List<String> sourceTags()
public abstract List<String> targetTags()
public abstract List<Firewall.Rule> allowed()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.