Class: Google::Apis::ComputeV1::DiskTypesScopedList

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskTypesScopedList

Returns a new instance of DiskTypesScopedList.



5703
5704
5705
# File 'generated/google/apis/compute_v1/classes.rb', line 5703

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

Instance Attribute Details

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

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



5695
5696
5697
# File 'generated/google/apis/compute_v1/classes.rb', line 5695

def disk_types
  @disk_types
end

#warningGoogle::Apis::ComputeV1::DiskTypesScopedList::Warning

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



5701
5702
5703
# File 'generated/google/apis/compute_v1/classes.rb', line 5701

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5708
5709
5710
5711
# File 'generated/google/apis/compute_v1/classes.rb', line 5708

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