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

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.


1924
1925
1926
# File 'generated/google/apis/compute_v1/classes.rb', line 1924

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

Instance Attribute Details

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

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


1916
1917
1918
# File 'generated/google/apis/compute_v1/classes.rb', line 1916

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


1922
1923
1924
# File 'generated/google/apis/compute_v1/classes.rb', line 1922

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1929
1930
1931
1932
# File 'generated/google/apis/compute_v1/classes.rb', line 1929

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