Class: Google::Apis::ManagerV1beta2::FirewallModule
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::FirewallModule
- 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
-
#allowed ⇒ Array<Google::Apis::ManagerV1beta2::AllowedRule>
The allowed ports or port ranges.
-
#description ⇒ String
The description of the firewall (optional) Corresponds to the JSON property
description
. -
#network ⇒ String
The NetworkModule to which this firewall should apply.
-
#source_ranges ⇒ Array<String>
Source IP ranges to apply this firewall to, see the GCE Spec for details on syntax Corresponds to the JSON property
sourceRanges
. -
#source_tags ⇒ Array<String>
Source Tags to apply this firewall to, see the GCE Spec for details on syntax Corresponds to the JSON property
sourceTags
. -
#target_tags ⇒ Array<String>
Target Tags to apply this firewall to, see the GCE Spec for details on syntax Corresponds to the JSON property
targetTags
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FirewallModule
constructor
A new instance of FirewallModule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#allowed ⇒ Array<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 |
#description ⇒ String
The description of the firewall (optional)
Corresponds to the JSON property description
389 390 391 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 389 def description @description end |
#network ⇒ String
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
395 396 397 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 395 def network @network end |
#source_ranges ⇒ Array<String>
Source IP ranges to apply this firewall to, see the GCE Spec for details on
syntax
Corresponds to the JSON property sourceRanges
401 402 403 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 401 def source_ranges @source_ranges end |
#source_tags ⇒ Array<String>
Source Tags to apply this firewall to, see the GCE Spec for details on syntax
Corresponds to the JSON property sourceTags
406 407 408 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 406 def @source_tags end |
#target_tags ⇒ Array<String>
Target Tags to apply this firewall to, see the GCE Spec for details on syntax
Corresponds to the JSON property targetTags
411 412 413 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 411 def @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 |