Class: Google::Apis::ComputeAlpha::SecurityPoliciesScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityPoliciesScopedList

Returns a new instance of SecurityPoliciesScopedList.



36858
36859
36860
# File 'lib/google/apis/compute_alpha/classes.rb', line 36858

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

Instance Attribute Details

#security_policiesArray<Google::Apis::ComputeAlpha::SecurityPolicy>

A list of SecurityPolicies contained in this scope. Corresponds to the JSON property securityPolicies



36850
36851
36852
# File 'lib/google/apis/compute_alpha/classes.rb', line 36850

def security_policies
  @security_policies
end

#warningGoogle::Apis::ComputeAlpha::SecurityPoliciesScopedList::Warning

Informational warning which replaces the list of security policies when the list is empty. Corresponds to the JSON property warning



36856
36857
36858
# File 'lib/google/apis/compute_alpha/classes.rb', line 36856

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36863
36864
36865
36866
# File 'lib/google/apis/compute_alpha/classes.rb', line 36863

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