Class: Google::Apis::NetworkmanagementV1::FirewallInfo

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

Instance Method Summary collapse

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

#actionString

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

Returns:

  • (String)


537
538
539
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 537

def action
  @action
end

#directionString

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

Returns:

  • (String)


542
543
544
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 542

def direction
  @direction
end

#display_nameString

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

Returns:

  • (String)


547
548
549
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 547

def display_name
  @display_name
end

#network_uriString

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

Returns:

  • (String)


552
553
554
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 552

def network_uri
  @network_uri
end

#priorityFixnum

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

Returns:

  • (Fixnum)


557
558
559
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 557

def priority
  @priority
end

#target_service_accountsArray<String>

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

Returns:

  • (Array<String>)


562
563
564
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 562

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


567
568
569
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 567

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)


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