Class: Google::Apis::NetworkmanagementV1beta1::FirewallInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#actionString

Possible values: ALLOW, DENY Corresponds to the JSON property action

Returns:

  • (String)


607
608
609
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 607

def action
  @action
end

#directionString

Possible values: INGRESS, EGRESS Corresponds to the JSON property direction

Returns:

  • (String)


612
613
614
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 612

def direction
  @direction
end

#display_nameString

Name of a Compute Engine firewall rule. Corresponds to the JSON property displayName

Returns:

  • (String)


617
618
619
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 617

def display_name
  @display_name
end

#network_uriString

URI of a Compute Engine network. Corresponds to the JSON property networkUri

Returns:

  • (String)


622
623
624
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 622

def network_uri
  @network_uri
end

#priorityFixnum

Priority of the firewall rule. Corresponds to the JSON property priority

Returns:

  • (Fixnum)


627
628
629
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 627

def priority
  @priority
end

#target_service_accountsArray<String>

Target service accounts of the firewall rule. Corresponds to the JSON property targetServiceAccounts

Returns:

  • (Array<String>)


632
633
634
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 632

def target_service_accounts
  @target_service_accounts
end

#target_tagsArray<String>

Target tags of the firewall rule. Corresponds to the JSON property targetTags

Returns:

  • (Array<String>)


637
638
639
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 637

def target_tags
  @target_tags
end

#uriString

URI of a Compute Engine firewall rule. Implied default rule does not have URI. Corresponds to the JSON property uri

Returns:

  • (String)


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