Class: Google::Apis::NetworkmanagementV1beta1::FirewallInfo
- Inherits:
-
Object
- Object
- Google::Apis::NetworkmanagementV1beta1::FirewallInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/networkmanagement_v1beta1/classes.rb,
generated/google/apis/networkmanagement_v1beta1/representations.rb,
generated/google/apis/networkmanagement_v1beta1/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.
644 645 646 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 644 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Possible values: ALLOW, DENY
Corresponds to the JSON property action
607 608 609 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 607 def action @action end |
#direction ⇒ String
Possible values: INGRESS, EGRESS
Corresponds to the JSON property direction
612 613 614 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 612 def direction @direction end |
#display_name ⇒ String
Name of a Compute Engine firewall rule.
Corresponds to the JSON property displayName
617 618 619 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 617 def display_name @display_name end |
#network_uri ⇒ String
URI of a Compute Engine network.
Corresponds to the JSON property networkUri
622 623 624 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 622 def network_uri @network_uri end |
#priority ⇒ Fixnum
Priority of the firewall rule.
Corresponds to the JSON property priority
627 628 629 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 627 def priority @priority end |
#target_service_accounts ⇒ Array<String>
Target service accounts of the firewall rule.
Corresponds to the JSON property targetServiceAccounts
632 633 634 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 632 def target_service_accounts @target_service_accounts end |
#target_tags ⇒ Array<String>
Target tags of the firewall rule.
Corresponds to the JSON property targetTags
637 638 639 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 637 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
642 643 644 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 642 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
649 650 651 652 653 654 655 656 657 658 |
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 649 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 |