Class: Google::Apis::ComputeAlpha::NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy

Returns a new instance of NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.



28120
28121
28122
# File 'lib/google/apis/compute_alpha/classes.rb', line 28120

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

Instance Attribute Details

#idFixnum

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

Returns:

  • (Fixnum)


28113
28114
28115
# File 'lib/google/apis/compute_alpha/classes.rb', line 28113

def id
  @id
end

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

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



28118
28119
28120
# File 'lib/google/apis/compute_alpha/classes.rb', line 28118

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



28125
28126
28127
28128
# File 'lib/google/apis/compute_alpha/classes.rb', line 28125

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