Class Firewall
- java.lang.Object
-
- org.jclouds.googlecomputeengine.domain.Firewall
-
public abstract class Firewall extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Firewall.Rule
A protocol and port-range tuple that describes a permitted connection.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
id
public abstract String id()
-
selfLink
public abstract URI selfLink()
-
creationTimestamp
public abstract Date creationTimestamp()
-
name
public abstract String name()
-
network
public abstract URI network()
- Returns:
- URI of the network to which this firewall is applied; provided by the client when the firewall is created.
-
sourceRanges
public 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.- Returns:
- a list of IP address blocks expressed in CIDR format which this rule applies to.
-
sourceTags
public abstract List<String> sourceTags()
- Returns:
- a list of instance items which this rule applies to. 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.
-
targetTags
public abstract List<String> targetTags()
If no targetTags are specified, the firewall rule applies to all instances on the specified network.- Returns:
- a list of instance items indicating sets of instances located on network which may make network connections as specified in allowed.
-
allowed
public abstract List<Firewall.Rule> allowed()
Each rule specifies a protocol and port-range tuple that describes a permitted connection.- Returns:
- the list of rules specified by this firewall.
-
-