class Google::Apis::NetworkmanagementV1::FirewallInfo

For display only. Metadata associated with a VPC firewall rule, an implied VPC firewall rule, or a hierarchical firewall policy rule.

Attributes

action[RW]

Possible values: ALLOW, DENY Corresponds to the JSON property `action` @return [String]

direction[RW]

Possible values: INGRESS, EGRESS Corresponds to the JSON property `direction` @return [String]

display_name[RW]

The display name of the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules. Corresponds to the JSON property `displayName` @return [String]

firewall_rule_type[RW]

The firewall rule's type. Corresponds to the JSON property `firewallRuleType` @return [String]

network_uri[RW]

The URI of the VPC network that the firewall rule is associated with. This field is not applicable to hierarchical firewall policy rules. Corresponds to the JSON property `networkUri` @return [String]

policy[RW]

The hierarchical firewall policy that this rule is associated with. This field is not applicable to VPC firewall rules. Corresponds to the JSON property `policy` @return [String]

priority[RW]

The priority of the firewall rule. Corresponds to the JSON property `priority` @return [Fixnum]

target_service_accounts[RW]

The target service accounts specified by the firewall rule. Corresponds to the JSON property `targetServiceAccounts` @return [Array<String>]

target_tags[RW]

The target tags defined by the VPC firewall rule. This field is not applicable to hierarchical firewall policy rules. Corresponds to the JSON property `targetTags` @return [Array<String>]

uri[RW]

The URI of the VPC firewall rule. This field is not applicable to implied firewall rules or hierarchical firewall policy rules. Corresponds to the JSON property `uri` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/networkmanagement_v1/classes.rb, line 652
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)
  @firewall_rule_type = args[:firewall_rule_type] if args.key?(:firewall_rule_type)
  @network_uri = args[:network_uri] if args.key?(:network_uri)
  @policy = args[:policy] if args.key?(:policy)
  @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