Class: Google::Apis::ComputeBeta::SecurityPoliciesScopedList

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



39539
39540
39541
# File 'lib/google/apis/compute_beta/classes.rb', line 39539

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

Instance Attribute Details

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

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



39531
39532
39533
# File 'lib/google/apis/compute_beta/classes.rb', line 39531

def security_policies
  @security_policies
end

#warningGoogle::Apis::ComputeBeta::SecurityPoliciesScopedList::Warning

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



39537
39538
39539
# File 'lib/google/apis/compute_beta/classes.rb', line 39537

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39544
39545
39546
39547
# File 'lib/google/apis/compute_beta/classes.rb', line 39544

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