Class: Google::Apis::ManagerV1beta2::FirewallModule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/manager_v1beta2/classes.rb,
generated/google/apis/manager_v1beta2/representations.rb,
generated/google/apis/manager_v1beta2/representations.rb

Overview

A Firewall resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FirewallModule

Returns a new instance of FirewallModule



413
414
415
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 413

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowedArray<Google::Apis::ManagerV1beta2::AllowedRule>

The allowed ports or port ranges. Corresponds to the JSON property allowed



384
385
386
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 384

def allowed
  @allowed
end

#descriptionString

The description of the firewall (optional) Corresponds to the JSON property description

Returns:

  • (String)


389
390
391
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 389

def description
  @description
end

#networkString

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

Returns:

  • (String)


395
396
397
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 395

def network
  @network
end

#source_rangesArray<String>

Source IP ranges to apply this firewall to, see the GCE Spec for details on syntax Corresponds to the JSON property sourceRanges

Returns:

  • (Array<String>)


401
402
403
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 401

def source_ranges
  @source_ranges
end

#source_tagsArray<String>

Source Tags to apply this firewall to, see the GCE Spec for details on syntax Corresponds to the JSON property sourceTags

Returns:

  • (Array<String>)


406
407
408
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 406

def source_tags
  @source_tags
end

#target_tagsArray<String>

Target Tags to apply this firewall to, see the GCE Spec for details on syntax Corresponds to the JSON property targetTags

Returns:

  • (Array<String>)


411
412
413
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 411

def target_tags
  @target_tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



418
419
420
421
422
423
424
425
# 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