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

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



7442
7443
7444
# File 'lib/google/apis/compute_alpha/classes.rb', line 7442

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



7434
7435
7436
# File 'lib/google/apis/compute_alpha/classes.rb', line 7434

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



7440
7441
7442
# File 'lib/google/apis/compute_alpha/classes.rb', line 7440

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7447
7448
7449
7450
# File 'lib/google/apis/compute_alpha/classes.rb', line 7447

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