Class: Google::Apis::ComputeAlpha::InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy

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

Overview

A pruned SecurityPolicy containing ID and any applicable firewall rules.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy

Returns a new instance of InstancesGetEffectiveFirewallsResponseOrganizationFirewallPolicy.



14628
14629
14630
# File 'generated/google/apis/compute_alpha/classes.rb', line 14628

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)


14621
14622
14623
# File 'generated/google/apis/compute_alpha/classes.rb', line 14621

def id
  @id
end

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

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



14626
14627
14628
# File 'generated/google/apis/compute_alpha/classes.rb', line 14626

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14633
14634
14635
14636
# File 'generated/google/apis/compute_alpha/classes.rb', line 14633

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