Class: Google::Apis::ComputeBeta::NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy

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

Returns a new instance of NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy.



20279
20280
20281
# File 'generated/google/apis/compute_beta/classes.rb', line 20279

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)


20272
20273
20274
# File 'generated/google/apis/compute_beta/classes.rb', line 20272

def id
  @id
end

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

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



20277
20278
20279
# File 'generated/google/apis/compute_beta/classes.rb', line 20277

def rules
  @rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20284
20285
20286
20287
# File 'generated/google/apis/compute_beta/classes.rb', line 20284

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