Sha256: 3ce309d2eb4041ee3bccef35f3a6ee17f1ce037ab9f4d6aa7f32fc598dcc469a

Contents?: true

Size: 617 Bytes

Versions: 10

Compression:

Stored size: 617 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class Tickets < Fog::Collection
        autoload :Ticket, File.expand_path('../ticket', __FILE__)

        model Fog::Vsphere::Compute::Ticket

        attr_accessor :server

        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
     end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-vsphere-3.4.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-3.3.1 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-3.3.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-3.2.5 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-3.2.2 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-3.2.1 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-3.2.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-3.1.1 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-3.1.0 lib/fog/vsphere/models/compute/tickets.rb
fog-vsphere-3.0.0 lib/fog/vsphere/models/compute/tickets.rb