class Google::Apis::ManagerV1beta2::FirewallModule

A Firewall resource

Attributes

allowed[RW]

The allowed ports or port ranges. Corresponds to the JSON property `allowed` @return [Array<Google::Apis::ManagerV1beta2::AllowedRule>]

description[RW]

The description of the firewall (optional) Corresponds to the JSON property `description` @return [String]

network[RW]

The NetworkModule to which this firewall should apply. If not specified, or if specified as 'default', this firewall will be applied to the 'default' network. Corresponds to the JSON property `network` @return [String]

source_ranges[RW]

Source IP ranges to apply this firewall to, see the GCE Spec for details on syntax Corresponds to the JSON property `sourceRanges` @return [Array<String>]

source_tags[RW]

Source Tags to apply this firewall to, see the GCE Spec for details on syntax Corresponds to the JSON property `sourceTags` @return [Array<String>]

target_tags[RW]

Target Tags to apply this firewall to, see the GCE Spec for details on syntax Corresponds to the JSON property `targetTags` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/manager_v1beta2/classes.rb, line 413
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/manager_v1beta2/classes.rb, line 418
def update!(**args)
  @allowed = args[:allowed] if args.key?(:allowed)
  @description = args[:description] if args.key?(:description)
  @network = args[:network] if args.key?(:network)
  @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