Class: Google::Apis::ComputeBeta::StoragePoolsScopedList

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



45284
45285
45286
# File 'lib/google/apis/compute_beta/classes.rb', line 45284

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

Instance Attribute Details

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

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



45276
45277
45278
# File 'lib/google/apis/compute_beta/classes.rb', line 45276

def storage_pools
  @storage_pools
end

#warningGoogle::Apis::ComputeBeta::StoragePoolsScopedList::Warning

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



45282
45283
45284
# File 'lib/google/apis/compute_beta/classes.rb', line 45282

def warning
  @warning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45289
45290
45291
45292
# File 'lib/google/apis/compute_beta/classes.rb', line 45289

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