class Google::Apis::ComputeBeta::Firewall
Represents a Firewall resource.
Attributes
The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection. Corresponds to the JSON property `allowed` @return [Array<Google::Apis::ComputeBeta::Firewall::Allowed>]
- Output Only
-
Creation timestamp in RFC3339 text format.
Corresponds to the JSON property `creationTimestamp` @return [String]
An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property `description` @return [String]
- Output Only
-
The unique identifier for the resource. This identifier is
defined by the server. Corresponds to the JSON property `id` @return [String]
- Output Ony
-
Type of the resource. Always compute#firewall for firewall rules.
Corresponds to the JSON property `kind` @return [String]
Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a- z0-9]*)? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Corresponds to the JSON property `name` @return [String]
URL of the network resource for this firewall rule. If not specified when creating a firewall rule, the default network is used: global/networks/default If you choose to specify this property, you can specify the network as a full or partial URL. For example, the following are all valid URLs:
network
-
projects/myproject/global/networks/my-network
-
global/networks/default
Corresponds to the JSON property `network` @return [String]
- Output Only
-
Server-defined URL for the resource.
Corresponds to the JSON property `selfLink` @return [String]
The IP address blocks that this rule applies to, expressed in CIDR format. One or both of sourceRanges and sourceTags may be set. If both properties are set, an inbound connection is allowed if the range matches the sourceRanges OR the tag of the source matches the sourceTags property. The connection does not need to match both properties. Corresponds to the JSON property `sourceRanges` @return [Array<String>]
Public Class Methods
# File generated/google/apis/compute_beta/classes.rb, line 2099 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/compute_beta/classes.rb, line 2104 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @self_link = args[:self_link] if args.key?(:self_link) @source_ranges = args[:source_ranges] if args.key?(:source_ranges) @source_tags = args[:source_tags] if args.key?(:source_tags) @target_tags = args[:target_tags] if args.key?(:target_tags) end