Class: Google::Apis::ComputeAlpha::StoragePoolsScopedList

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

Returns a new instance of StoragePoolsScopedList.



46641
46642
46643
# File 'lib/google/apis/compute_alpha/classes.rb', line 46641

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

Instance Attribute Details

#storage_poolsArray<Google::Apis::ComputeAlpha::StoragePool>

[Output Only] A list of storage pool contained in this scope. Corresponds to the JSON property storagePools



46633
46634
46635
# File 'lib/google/apis/compute_alpha/classes.rb', line 46633

def storage_pools
  @storage_pools
end

#warningGoogle::Apis::ComputeAlpha::StoragePoolsScopedList::Warning

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



46639
46640
46641
# File 'lib/google/apis/compute_alpha/classes.rb', line 46639

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46646
46647
46648
46649
# File 'lib/google/apis/compute_alpha/classes.rb', line 46646

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