Class: Google::Apis::ComputeBeta::InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/representations.rb

Overview

A pruned SecurityPolicy containing ID and any applicable firewall rules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy

Returns a new instance of InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.



17516
17517
17518
# File 'lib/google/apis/compute_beta/classes.rb', line 17516

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

Instance Attribute Details

#idFixnum

The unique identifier for the security policy. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


17509
17510
17511
# File 'lib/google/apis/compute_beta/classes.rb', line 17509

def id
  @id
end

#rulesArray<Google::Apis::ComputeBeta::SecurityPolicyRule>

The rules that apply to the network. Corresponds to the JSON property rules



17514
17515
17516
# File 'lib/google/apis/compute_beta/classes.rb', line 17514

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17521
17522
17523
17524
# File 'lib/google/apis/compute_beta/classes.rb', line 17521

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @rules = args[:rules] if args.key?(:rules)
end