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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FirewallInfo

Returns a new instance of FirewallInfo.



640
641
642
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 640

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#actionString

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

Returns:

  • (String)


602
603
604
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 602

def action
  @action
end

#directionString

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

Returns:

  • (String)


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

def direction
  @direction
end

#display_nameString

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

Returns:

  • (String)


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

def display_name
  @display_name
end

#network_uriString

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

Returns:

  • (String)


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

def network_uri
  @network_uri
end

#priorityFixnum

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

Returns:

  • (Fixnum)


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

def priority
  @priority
end

#target_service_accountsArray<String>

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

Returns:

  • (Array<String>)


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

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>)


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

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)


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

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



645
646
647
648
649
650
651
652
653
654
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 645

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