Class: Google::Apis::ComputeV1::SecurityPoliciesScopedList

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



32033
32034
32035
# File 'lib/google/apis/compute_v1/classes.rb', line 32033

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

Instance Attribute Details

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

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



32025
32026
32027
# File 'lib/google/apis/compute_v1/classes.rb', line 32025

def security_policies
  @security_policies
end

#warningGoogle::Apis::ComputeV1::SecurityPoliciesScopedList::Warning

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



32031
32032
32033
# File 'lib/google/apis/compute_v1/classes.rb', line 32031

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32038
32039
32040
32041
# File 'lib/google/apis/compute_v1/classes.rb', line 32038

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