Class: Google::Apis::ComputeAlpha::DiskTypesScopedList

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) ⇒ DiskTypesScopedList

Returns a new instance of DiskTypesScopedList.


6703
6704
6705
# File 'generated/google/apis/compute_alpha/classes.rb', line 6703

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

Instance Attribute Details

#disk_typesArray<Google::Apis::ComputeAlpha::DiskType>

[Output Only] A list of disk types contained in this scope. Corresponds to the JSON property diskTypes


6695
6696
6697
# File 'generated/google/apis/compute_alpha/classes.rb', line 6695

def disk_types
  @disk_types
end

#warningGoogle::Apis::ComputeAlpha::DiskTypesScopedList::Warning

[Output Only] Informational warning which replaces the list of disk types when the list is empty. Corresponds to the JSON property warning


6701
6702
6703
# File 'generated/google/apis/compute_alpha/classes.rb', line 6701

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


6708
6709
6710
6711
# File 'generated/google/apis/compute_alpha/classes.rb', line 6708

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