Class Firewall
java.lang.Object
org.jclouds.googlecomputeengine.domain.Firewall
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A protocol and port-range tuple that describes a permitted connection. -
Method Summary
Modifier and TypeMethodDescriptionabstract 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
abstract String
abstract String
id()
abstract String
name()
abstract URI
network()
abstract URI
selfLink()
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.If no targetTags are specified, the firewall rule applies to all instances on the specified network.
-
Method Details
-
id
-
selfLink
-
creationTimestamp
-
name
-
description
-
network
- Returns:
- URI of the network to which this firewall is applied; provided by the client when the firewall is created.
-
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
- 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
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
Each rule specifies a protocol and port-range tuple that describes a permitted connection.- Returns:
- the list of rules specified by this firewall.
-
create
-