Class: Google::Apis::ComputeBeta::DiskTypesScopedList

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


2147
2148
2149
# File 'generated/google/apis/compute_beta/classes.rb', line 2147

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

Instance Attribute Details

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

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


2139
2140
2141
# File 'generated/google/apis/compute_beta/classes.rb', line 2139

def disk_types
  @disk_types
end

#warningGoogle::Apis::ComputeBeta::DiskTypesScopedList::Warning

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


2145
2146
2147
# File 'generated/google/apis/compute_beta/classes.rb', line 2145

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2152
2153
2154
2155
# File 'generated/google/apis/compute_beta/classes.rb', line 2152

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