Class: Zona::VDCPool
- Inherits:
-
OZonesPool
- Object
- JSONElement
- JSONPool
- OZonesPool
- Zona::VDCPool
- Defined in:
- zona/VDCPool.rb
Overview
This class represents a set of VDCs. It allows to list the defined VDCs and iterate on them.
Constant Summary
- VDC_POOL_KIND =
String describing the kind of this resource
"vdc"
Instance Method Summary (collapse)
-
- (String) factory(element_json)
Produces a new VDC element with the provided description.
-
- (Zona:Error) info
Retrieves the information for this pool.
-
- (VDCPool) initialize(client)
constructor
Initializes a VDC Pool instance.
Methods inherited from OZonesPool
Methods inherited from JSONPool
Methods inherited from JSONElement
Constructor Details
- (VDCPool) initialize(client)
Initializes a VDC Pool instance
29 30 31 |
# File 'zona/VDCPool.rb', line 29 def initialize(client) super(:VDC_POOL, :VDC, client) end |
Instance Method Details
- (String) factory(element_json)
Produces a new VDC element with the provided description
36 37 38 |
# File 'zona/VDCPool.rb', line 36 def factory(element_json) VDC.new(element_json,@client) end |
- (Zona:Error) info
Retrieves the information for this pool
42 43 44 |
# File 'zona/VDCPool.rb', line 42 def info super(VDC_POOL_KIND) end |