Class: Google::Apis::ComputeAlpha::MaintenancePoliciesScopedList

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MaintenancePoliciesScopedList

Returns a new instance of MaintenancePoliciesScopedList



14240
14241
14242
# File 'generated/google/apis/compute_alpha/classes.rb', line 14240

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

Instance Attribute Details

#maintenance_policiesArray<Google::Apis::ComputeAlpha::MaintenancePolicy>

List of maintenancePolicies contained in this scope. Corresponds to the JSON property maintenancePolicies



14232
14233
14234
# File 'generated/google/apis/compute_alpha/classes.rb', line 14232

def maintenance_policies
  @maintenance_policies
end

#warningGoogle::Apis::ComputeAlpha::MaintenancePoliciesScopedList::Warning

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



14238
14239
14240
# File 'generated/google/apis/compute_alpha/classes.rb', line 14238

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14245
14246
14247
14248
# File 'generated/google/apis/compute_alpha/classes.rb', line 14245

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