Class: Google::Apis::NetworkmanagementV1::FirewallInfo
- Inherits:
-
Object
- Object
- Google::Apis::NetworkmanagementV1::FirewallInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/networkmanagement_v1/classes.rb,
generated/google/apis/networkmanagement_v1/representations.rb,
generated/google/apis/networkmanagement_v1/representations.rb
Overview
For display only. Metadata associated with a Compute Engine firewall rule.
Instance Attribute Summary collapse
-
#action ⇒ String
Possible values: ALLOW, DENY Corresponds to the JSON property
action
. -
#direction ⇒ String
Possible values: INGRESS, EGRESS Corresponds to the JSON property
direction
. -
#display_name ⇒ String
Name of a Compute Engine firewall rule.
-
#network_uri ⇒ String
URI of a Compute Engine network.
-
#priority ⇒ Fixnum
Priority of the firewall rule.
-
#target_service_accounts ⇒ Array<String>
Target service accounts of the firewall rule.
-
#target_tags ⇒ Array<String>
Target tags of the firewall rule.
-
#uri ⇒ String
URI of a Compute Engine firewall rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FirewallInfo
constructor
A new instance of FirewallInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FirewallInfo
Returns a new instance of FirewallInfo.
574 575 576 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 574 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Possible values: ALLOW, DENY
Corresponds to the JSON property action
537 538 539 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 537 def action @action end |
#direction ⇒ String
Possible values: INGRESS, EGRESS
Corresponds to the JSON property direction
542 543 544 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 542 def direction @direction end |
#display_name ⇒ String
Name of a Compute Engine firewall rule.
Corresponds to the JSON property displayName
547 548 549 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 547 def display_name @display_name end |
#network_uri ⇒ String
URI of a Compute Engine network.
Corresponds to the JSON property networkUri
552 553 554 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 552 def network_uri @network_uri end |
#priority ⇒ Fixnum
Priority of the firewall rule.
Corresponds to the JSON property priority
557 558 559 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 557 def priority @priority end |
#target_service_accounts ⇒ Array<String>
Target service accounts of the firewall rule.
Corresponds to the JSON property targetServiceAccounts
562 563 564 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 562 def target_service_accounts @target_service_accounts end |
#target_tags ⇒ Array<String>
Target tags of the firewall rule.
Corresponds to the JSON property targetTags
567 568 569 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 567 def @target_tags end |
#uri ⇒ String
URI of a Compute Engine firewall rule. Implied default rule does not have URI.
Corresponds to the JSON property uri
572 573 574 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 572 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
579 580 581 582 583 584 585 586 587 588 |
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 579 def update!(**args) @action = args[:action] if args.key?(:action) @direction = args[:direction] if args.key?(:direction) @display_name = args[:display_name] if args.key?(:display_name) @network_uri = args[:network_uri] if args.key?(:network_uri) @priority = args[:priority] if args.key?(:priority) @target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts) @target_tags = args[:target_tags] if args.key?(:target_tags) @uri = args[:uri] if args.key?(:uri) end |