Class: Fog::Vsphere::Compute::Tickets
- Inherits:
-
Collection
- Object
- Collection
- Fog::Vsphere::Compute::Tickets
- Defined in:
- lib/fog/vsphere/models/compute/tickets.rb
Instance Attribute Summary collapse
-
#server ⇒ Object
Returns the value of attribute server.
Instance Method Summary collapse
Instance Attribute Details
#server ⇒ Object
Returns the value of attribute server.
9 10 11 |
# File 'lib/fog/vsphere/models/compute/tickets.rb', line 9 def server @server end |
Instance Method Details
#create(opts = {}) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/vsphere/models/compute/tickets.rb', line 11 def create(opts = {}) requires :server raise 'server must be a Fog::Vsphere::Compute::Server' unless server.is_a?(Fog::Vsphere::Compute::Server) new( service.vm_acquire_ticket( opts.merge( 'instance_uuid' => server.instance_uuid ) ) ) end |