fog-vcloud-director 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8cce23ebff03f8333820fc34c63ea0a9ca7917e
4
- data.tar.gz: d45fb869193aae14daaf73eb10c0f385007df1d1
3
+ metadata.gz: 6b6e6b8b211b9b67dc31be86347aef4b88e57c96
4
+ data.tar.gz: 422d1ec8b33d9e37818080fb4eae358885450b97
5
5
  SHA512:
6
- metadata.gz: aedf368f4fbd14980c5a8880ce4ccd8bf247d8b165ee0d3ba67e3035cdb39a84b6d5bde847c011463d9dd56e5ab320d82d7d93ffe400a387cfd65788342376ec
7
- data.tar.gz: 7237b54dc5d1c627d731a0fc964eaa3535b2f5c23448fb67a1a643e4085118db32dbb008aae9d57f0b7cf54e5cbfa2c798e64384a9b30421d22d01ae54f5e402
6
+ metadata.gz: 27146a5bddc128ca25bb9ed817e6875887a8477862379b166fe6d757b5c8f135f41b4e75222f2bf5e106e249fdf5780d111f6ecd2b2cb3fbf1b6f88449e611c7
7
+ data.tar.gz: 4724410e5bc7291f23f427a7b06c6a42dc93d42b03a15d87aa09aa9717fb397f879db9f8ce44b06df18ae998a095d0d20edbe0ae7b4b8f85b070ffed53b083f2
@@ -29,7 +29,7 @@ module Fog
29
29
  PATH = '/api'
30
30
  PORT = 443
31
31
  SCHEME = 'https'
32
- API_VERSION = '5.1'
32
+ API_VERSION = '5.5'
33
33
  OMIT_DEFAULT_PORT = true
34
34
  end
35
35
 
@@ -45,7 +45,7 @@ module Fog
45
45
  class TaskError < Fog::VcloudDirector::Errors::TaskError; end
46
46
 
47
47
  requires :vcloud_director_username, :vcloud_director_password, :vcloud_director_host
48
- recognizes :vcloud_director_api_version, :vcloud_director_show_progress, :path, :vcloud_token
48
+ recognizes :vcloud_director_api_version, :vcloud_director_show_progress, :path, :vcloud_token, :port
49
49
 
50
50
  secrets :vcloud_director_password
51
51
 
@@ -202,6 +202,7 @@ module Fog
202
202
  request :get_vms_in_lease_from_query
203
203
  request :instantiate_vapp_template # to be deprecated
204
204
  request :post_acquire_ticket
205
+ request :post_acquire_mks_ticket
205
206
  request :post_answer_vm_pending_question
206
207
  request :post_attach_disk
207
208
  request :post_cancel_task
@@ -0,0 +1,27 @@
1
+ module Fog
2
+ module Compute
3
+ class VcloudDirector
4
+ class Real
5
+ # Retrieve a MKS screen ticket that you can use
6
+ # to gain access to the console of a running VM.
7
+ #
8
+ # @param [String] id Object identifier of the VM.
9
+ # @return [Excon::Response]
10
+ # * body<~Hash>:
11
+ #
12
+ # @raise [Fog::Compute::VcloudDirector::Conflict]
13
+ #
14
+ # https://pubs.vmware.com/vcd-80/index.jsp?topic=%2Fcom.vmware.vcloud.api.reference.doc_90%2Fdoc%2Foperations%2FPOST-AcquireMksTicket.html
15
+ # @since vCloud API version 5.5
16
+ def post_acquire_mks_ticket(id)
17
+ request(
18
+ :expects => 200,
19
+ :method => 'POST',
20
+ :parser => Fog::ToHashDocument.new,
21
+ :path => "vApp/#{id}/screen/action/acquireMksTicket"
22
+ )
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module VcloudDirector
3
- VERSION = "0.1.9".freeze
3
+ VERSION = "0.1.10".freeze
4
4
  end
5
5
  end
@@ -1,15 +1,20 @@
1
- if ENV["COVERAGE"]
2
- require "simplecov"
3
-
4
- SimpleCov.start do
5
- add_filter "/spec/"
6
- end
7
- end
8
-
9
1
  require "minitest/autorun"
10
2
  require "minitest/spec"
11
- require "minitest/stub_const"
3
+ require "minitest/unit"
4
+ require "mocha/minitest"
5
+ require "yaml"
6
+ require "vcr"
12
7
 
13
8
  $LOAD_PATH.unshift "lib"
14
9
 
15
- require "fog"
10
+ require "fog/vcloud_director"
11
+
12
+ include Fog::Generators::Compute::VcloudDirector::ComposeCommon
13
+
14
+ VCR.configure do |config|
15
+ config.cassette_library_dir = File.join('./spec/vcr_cassettes')
16
+ end
17
+
18
+ def load_secrets
19
+ YAML.load_file('spec/secrets.yaml')
20
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-vcloud-director
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luka Zakrajšek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-27 00:00:00.000000000 Z
11
+ date: 2018-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -305,6 +305,7 @@ files:
305
305
  - lib/fog/vcloud_director/requests/compute/get_vms_disk_attached_to.rb
306
306
  - lib/fog/vcloud_director/requests/compute/get_vms_in_lease_from_query.rb
307
307
  - lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb
308
+ - lib/fog/vcloud_director/requests/compute/post_acquire_mks_ticket.rb
308
309
  - lib/fog/vcloud_director/requests/compute/post_acquire_ticket.rb
309
310
  - lib/fog/vcloud_director/requests/compute/post_answer_vm_pending_question.rb
310
311
  - lib/fog/vcloud_director/requests/compute/post_attach_disk.rb