fog-vcloud-director 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +3 -2
  3. data/fog-vcloud-director.gemspec +1 -1
  4. data/lib/fog/vcloud_director/models/compute/vapp.rb +4 -4
  5. data/lib/fog/vcloud_director/requests/compute/delete_catalog_item_metadata_item_metadata.rb +1 -1
  6. data/lib/fog/vcloud_director/requests/compute/delete_disk_metadata_item_metadata.rb +1 -1
  7. data/lib/fog/vcloud_director/requests/compute/delete_media_metadata_item_metadata.rb +1 -1
  8. data/lib/fog/vcloud_director/requests/compute/delete_vapp_metadata_item_metadata.rb +1 -1
  9. data/lib/fog/vcloud_director/requests/compute/delete_vapp_template_metadata_item_metadata.rb +1 -1
  10. data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata_item_metadata.rb +1 -1
  11. data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata_item_metadata.rb +1 -1
  12. data/lib/fog/vcloud_director/requests/compute/get_catalogs_from_query.rb +1 -1
  13. data/lib/fog/vcloud_director/requests/compute/get_disk_metadata_item_metadata.rb +1 -1
  14. data/lib/fog/vcloud_director/requests/compute/get_disks_from_query.rb +1 -1
  15. data/lib/fog/vcloud_director/requests/compute/get_groups_from_query.rb +1 -1
  16. data/lib/fog/vcloud_director/requests/compute/get_media_metadata_item_metadata.rb +1 -1
  17. data/lib/fog/vcloud_director/requests/compute/get_medias_from_query.rb +1 -1
  18. data/lib/fog/vcloud_director/requests/compute/get_network_metadata_item_metadata.rb +1 -1
  19. data/lib/fog/vcloud_director/requests/compute/get_organization_metadata_item_metadata.rb +1 -1
  20. data/lib/fog/vcloud_director/requests/compute/get_organizations_from_query.rb +1 -1
  21. data/lib/fog/vcloud_director/requests/compute/get_users_from_query.rb +1 -1
  22. data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata_item_metadata.rb +1 -1
  23. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata_item_metadata.rb +1 -1
  24. data/lib/fog/vcloud_director/requests/compute/get_vapp_templates_from_query.rb +1 -1
  25. data/lib/fog/vcloud_director/requests/compute/get_vapps_in_lease_from_query.rb +1 -1
  26. data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata_item_metadata.rb +1 -1
  27. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata_item_metadata.rb +1 -1
  28. data/lib/fog/vcloud_director/requests/compute/get_vdcs_from_query.rb +1 -1
  29. data/lib/fog/vcloud_director/requests/compute/get_vms_in_lease_from_query.rb +1 -1
  30. data/lib/fog/vcloud_director/requests/compute/put_catalog_item_metadata_item_metadata.rb +1 -1
  31. data/lib/fog/vcloud_director/requests/compute/put_disk_metadata_item_metadata.rb +1 -1
  32. data/lib/fog/vcloud_director/requests/compute/put_media_metadata_item_metadata.rb +1 -1
  33. data/lib/fog/vcloud_director/requests/compute/put_metadata_value.rb +1 -1
  34. data/lib/fog/vcloud_director/requests/compute/put_vapp_metadata_item_metadata.rb +1 -1
  35. data/lib/fog/vcloud_director/requests/compute/put_vapp_template_metadata_item_metadata.rb +1 -1
  36. data/lib/fog/vcloud_director/version.rb +1 -1
  37. metadata +7 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1c2685ec83713522c240d28ce1baffc70e135105
4
- data.tar.gz: 5bc22130b7333d1711d40de7e8ee951484d48363
2
+ SHA256:
3
+ metadata.gz: 9888e6807a7cb0efbad560638685c65212ff20f403b147eae5e2bd7625863f37
4
+ data.tar.gz: 7f0db9dfcd7e1fcd5a6ce343e2b850023698e00e82b48b43b101ac5b683a2419
5
5
  SHA512:
6
- metadata.gz: 53454a3526014ba4696ab9b39e01cc0a440ea083a574f42e892ed1077060d69df87538cdfa977f0f752e09305fcb306db52e0f4ee775eb6c3ec11dcf59523604
7
- data.tar.gz: 7c3b6d1becc4bcb8b232bd3fe9b01818987227fcdbf4a5b998c2f7b1ea0d4bebcd37425c7cc7342fe9eabfc9ef744346662c998b609ff747f5c6d34385cfa83d
6
+ metadata.gz: a7a777391c0fea0bfa77238fb69635b8b16888085f80d64cf365edb45adbfecb4d47a4f79ecd08d7a74b87c8789eb41e66da612eddaf5401cd8949466ca400f3
7
+ data.tar.gz: ef64157783b35b4b0cfec162944d85685784e9dba3c571f989bc38e15d69bdee129c2702ee65f240a4345ebbe15afb47dd9efc39969d85357e5bace079faf274
data/.travis.yml CHANGED
@@ -2,8 +2,9 @@ language: ruby
2
2
  script: "bundle exec rake test"
3
3
  sudo: false
4
4
  rvm:
5
- - 2.3.1
6
- - 2.4.2
5
+ - 2.6.6
6
+ - 2.7.2
7
+ - 3.0.1
7
8
  matrix:
8
9
  fast_finish: true
9
10
  notifications:
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.required_ruby_version = "~> 2.0"
21
+ spec.required_ruby_version = ">= 2.0"
22
22
 
23
23
  spec.add_dependency "fog-core", ">= 1.40" # tested on 1.40 and 2.1.0
24
24
  spec.add_dependency "fog-xml"
@@ -16,19 +16,19 @@ module Fog
16
16
  attribute :owner
17
17
  attribute :maintenance, :type => :boolean
18
18
 
19
- def initialize(*args, **kwargs)
19
+ def initialize(attributes = {})
20
20
  # Memorize VMs because their full XML description was already included in the vApp XML description.
21
21
  # Instead simple Array we rather store as Collection in order to provide common interface e.g.
22
22
  # vapp.vms.all
23
23
  # vapp.vms.get_by_name
24
- if (vms = kwargs.delete(:vms))
24
+ if (vms = attributes.delete(:vms))
25
25
  @vms = Fog::VcloudDirector::Compute::Vms.new(
26
26
  :vapp => self,
27
- :service => kwargs[:service]
27
+ :service => attributes[:service]
28
28
  ).with_item_list(Array(vms))
29
29
  end
30
30
 
31
- super(*args, **kwargs)
31
+ super(attributes)
32
32
  end
33
33
 
34
34
  def vms(force: false)
@@ -16,7 +16,7 @@ module Fog
16
16
  :expects => 202,
17
17
  :method => 'DELETE',
18
18
  :parser => Fog::ToHashDocument.new,
19
- :path => "catalogItem/#{id}/metadata/#{URI.escape(key)}"
19
+ :path => "catalogItem/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
20
20
  )
21
21
  end
22
22
  end
@@ -16,7 +16,7 @@ module Fog
16
16
  :expects => 202,
17
17
  :method => 'DELETE',
18
18
  :parser => Fog::ToHashDocument.new,
19
- :path => "disk/#{id}/metadata/#{URI.escape(key)}"
19
+ :path => "disk/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
20
20
  )
21
21
  end
22
22
  end
@@ -16,7 +16,7 @@ module Fog
16
16
  :expects => 202,
17
17
  :method => 'DELETE',
18
18
  :parser => Fog::ToHashDocument.new,
19
- :path => "media/#{id}/metadata/#{URI.escape(key)}"
19
+ :path => "media/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
20
20
  )
21
21
  end
22
22
  end
@@ -21,7 +21,7 @@ module Fog
21
21
  :expects => 202,
22
22
  :method => 'DELETE',
23
23
  :parser => Fog::ToHashDocument.new,
24
- :path => "vApp/#{id}/metadata/#{URI.escape(key)}"
24
+ :path => "vApp/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
25
25
  )
26
26
  end
27
27
  end
@@ -17,7 +17,7 @@ module Fog
17
17
  :expects => 202,
18
18
  :method => 'DELETE',
19
19
  :parser => Fog::ToHashDocument.new,
20
- :path => "vAppTemplate/#{id}/metadata/#{URI.escape(key)}"
20
+ :path => "vAppTemplate/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
21
21
  )
22
22
  end
23
23
  end
@@ -17,7 +17,7 @@ module Fog
17
17
  :idempotent => true,
18
18
  :method => 'GET',
19
19
  :parser => Fog::ToHashDocument.new,
20
- :path => "catalogItem/#{id}/metadata/#{URI.escape(key)})"
20
+ :path => "catalogItem/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)})"
21
21
  )
22
22
  end
23
23
  end
@@ -17,7 +17,7 @@ module Fog
17
17
  :idempotent => true,
18
18
  :method => 'GET',
19
19
  :parser => Fog::ToHashDocument.new,
20
- :path => "catalog/#{id}/metadata/#{URI.escape(key)})"
20
+ :path => "catalog/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)})"
21
21
  )
22
22
  end
23
23
  end
@@ -70,7 +70,7 @@ module Fog
70
70
  :method => 'GET',
71
71
  :parser => Fog::ToHashDocument.new,
72
72
  :path => 'catalogs/query',
73
- :query => query.map {|q| URI.escape(q)}.join('&')
73
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
74
74
  )
75
75
  ensure_list! response.body, :Link
76
76
  ensure_list! response.body,
@@ -17,7 +17,7 @@ module Fog
17
17
  :idempotent => true,
18
18
  :method => 'GET',
19
19
  :parser => Fog::ToHashDocument.new,
20
- :path => "disk/#{id}/metadata/#{URI.escape(key)})"
20
+ :path => "disk/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)})"
21
21
  )
22
22
  end
23
23
  end
@@ -70,7 +70,7 @@ module Fog
70
70
  :method => 'GET',
71
71
  :parser => Fog::ToHashDocument.new,
72
72
  :path => 'disks/query',
73
- :query => query.map {|q| URI.escape(q)}.join('&')
73
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
74
74
  )
75
75
  ensure_list! response.body, :Link
76
76
  ensure_list! response.body,
@@ -71,7 +71,7 @@ module Fog
71
71
  :method => 'GET',
72
72
  :parser => Fog::ToHashDocument.new,
73
73
  :path => 'admin/groups/query',
74
- :query => query.map {|q| URI.escape(q)}.join('&')
74
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
75
75
  )
76
76
  ensure_list! response.body, :Link
77
77
  ensure_list! response.body,
@@ -17,7 +17,7 @@ module Fog
17
17
  :idempotent => true,
18
18
  :method => 'GET',
19
19
  :parser => Fog::ToHashDocument.new,
20
- :path => "media/#{id}/metadata/#{URI.escape(key)})"
20
+ :path => "media/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)})"
21
21
  )
22
22
  end
23
23
  end
@@ -70,7 +70,7 @@ module Fog
70
70
  :method => 'GET',
71
71
  :parser => Fog::ToHashDocument.new,
72
72
  :path => 'mediaList/query',
73
- :query => query.map {|q| URI.escape(q)}.join('&')
73
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
74
74
  )
75
75
  ensure_list! response.body, :Link
76
76
  ensure_list! response.body,
@@ -17,7 +17,7 @@ module Fog
17
17
  :idempotent => true,
18
18
  :method => 'GET',
19
19
  :parser => Fog::ToHashDocument.new,
20
- :path => "admin/network/#{id}/metadata/#{URI.escape(key)})"
20
+ :path => "admin/network/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)})"
21
21
  )
22
22
  end
23
23
  end
@@ -19,7 +19,7 @@ module Fog
19
19
  :idempotent => true,
20
20
  :method => 'GET',
21
21
  :parser => Fog::ToHashDocument.new,
22
- :path => "admin/org/#{id}/metadata/#{URI.escape(domain)}/#{URI.escape(key)})"
22
+ :path => "admin/org/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(domain)}/#{URI::DEFAULT_PARSER.escape(key)})"
23
23
  )
24
24
  end
25
25
  end
@@ -71,7 +71,7 @@ module Fog
71
71
  :method => 'GET',
72
72
  :parser => Fog::ToHashDocument.new,
73
73
  :path => 'admin/orgs/query',
74
- :query => query.map {|q| URI.escape(q)}.join('&')
74
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
75
75
  )
76
76
  ensure_list! response.body, :Link
77
77
  ensure_list! response.body,
@@ -71,7 +71,7 @@ module Fog
71
71
  :method => 'GET',
72
72
  :parser => Fog::ToHashDocument.new,
73
73
  :path => 'admin/users/query',
74
- :query => query.map {|q| URI.escape(q)}.join('&')
74
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
75
75
  )
76
76
  ensure_list! response.body, :Link
77
77
  ensure_list! response.body,
@@ -17,7 +17,7 @@ module Fog
17
17
  :idempotent => true,
18
18
  :method => 'GET',
19
19
  :parser => Fog::ToHashDocument.new,
20
- :path => "vApp/#{id}/metadata/#{URI.escape(key)})"
20
+ :path => "vApp/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)})"
21
21
  )
22
22
  end
23
23
  end
@@ -18,7 +18,7 @@ module Fog
18
18
  :idempotent => true,
19
19
  :method => 'GET',
20
20
  :parser => Fog::ToHashDocument.new,
21
- :path => "vAppTemplate/#{id}/metadata/#{URI.escape(key)})"
21
+ :path => "vAppTemplate/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)})"
22
22
  )
23
23
  end
24
24
  end
@@ -71,7 +71,7 @@ module Fog
71
71
  :method => 'GET',
72
72
  :parser => Fog::ToHashDocument.new,
73
73
  :path => 'vAppTemplates/query',
74
- :query => query.map {|q| URI.escape(q)}.join('&')
74
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
75
75
  )
76
76
  ensure_list! response.body, :Link
77
77
  ensure_list! response.body,
@@ -70,7 +70,7 @@ module Fog
70
70
  :method => 'GET',
71
71
  :parser => Fog::ToHashDocument.new,
72
72
  :path => 'vApps/query',
73
- :query => query.map {|q| URI.escape(q)}.join('&')
73
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
74
74
  )
75
75
  ensure_list! response.body, :Link
76
76
  ensure_list! response.body,
@@ -19,7 +19,7 @@ module Fog
19
19
  :idempotent => true,
20
20
  :method => 'GET',
21
21
  :parser => Fog::ToHashDocument.new,
22
- :path => "admin/vdc/#{id}/metadata/#{URI.escape(key)})"
22
+ :path => "admin/vdc/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)})"
23
23
  )
24
24
  end
25
25
  end
@@ -16,7 +16,7 @@ module Fog
16
16
  :idempotent => true,
17
17
  :method => 'GET',
18
18
  :parser => Fog::ToHashDocument.new,
19
- :path => "vdcStorageProfile/#{id}/metadata/#{URI.escape(key)})"
19
+ :path => "vdcStorageProfile/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)})"
20
20
  )
21
21
  end
22
22
  end
@@ -70,7 +70,7 @@ module Fog
70
70
  :method => 'GET',
71
71
  :parser => Fog::ToHashDocument.new,
72
72
  :path => 'admin/vdcs/query',
73
- :query => query.map {|q| URI.escape(q)}.join('&')
73
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
74
74
  )
75
75
  ensure_list! response.body, :Link
76
76
  ensure_list! response.body,
@@ -71,7 +71,7 @@ module Fog
71
71
  :method => 'GET',
72
72
  :parser => Fog::ToHashDocument.new,
73
73
  :path => 'vms/query',
74
- :query => query.map {|q| URI.escape(q)}.join('&')
74
+ :query => query.map {|q| URI::DEFAULT_PARSER.escape(q)}.join('&')
75
75
  )
76
76
  ensure_list! response.body, :Link
77
77
  ensure_list! response.body,
@@ -41,7 +41,7 @@ module Fog
41
41
  :headers => {'Content-Type' => 'application/vnd.vmware.vcloud.metadata.value+xml'},
42
42
  :method => 'PUT',
43
43
  :parser => Fog::ToHashDocument.new,
44
- :path => "catalogItem/#{id}/metadata/#{URI.escape(key)}"
44
+ :path => "catalogItem/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
45
45
  )
46
46
  end
47
47
  end
@@ -37,7 +37,7 @@ module Fog
37
37
  :headers => {'Content-Type' => 'application/vnd.vmware.vcloud.metadata.value+xml'},
38
38
  :method => 'PUT',
39
39
  :parser => Fog::ToHashDocument.new,
40
- :path => "disk/#{id}/metadata/#{URI.escape(key)}"
40
+ :path => "disk/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
41
41
  )
42
42
  end
43
43
  end
@@ -41,7 +41,7 @@ module Fog
41
41
  :headers => {'Content-Type' => 'application/vnd.vmware.vcloud.metadata.value+xml'},
42
42
  :method => 'PUT',
43
43
  :parser => Fog::ToHashDocument.new,
44
- :path => "media/#{id}/metadata/#{URI.escape(key)}"
44
+ :path => "media/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
45
45
  )
46
46
  end
47
47
  end
@@ -17,7 +17,7 @@ module Fog
17
17
  :headers => {'Content-Type' => 'application/vnd.vmware.vcloud.metadata.value+xml'},
18
18
  :method => 'PUT',
19
19
  :parser => Fog::ToHashDocument.new,
20
- :path => "vApp/#{vm_id}/metadata/#{URI.escape(metadata_key)}"
20
+ :path => "vApp/#{vm_id}/metadata/#{URI::DEFAULT_PARSER.escape(metadata_key)}"
21
21
  )
22
22
  end
23
23
  end
@@ -41,7 +41,7 @@ module Fog
41
41
  :headers => {'Content-Type' => 'application/vnd.vmware.vcloud.metadata.value+xml'},
42
42
  :method => 'PUT',
43
43
  :parser => Fog::ToHashDocument.new,
44
- :path => "vApp/#{id}/metadata/#{URI.escape(key)}"
44
+ :path => "vApp/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
45
45
  )
46
46
  end
47
47
  end
@@ -41,7 +41,7 @@ module Fog
41
41
  :headers => {'Content-Type' => 'application/vnd.vmware.vcloud.metadata.value+xml'},
42
42
  :method => 'PUT',
43
43
  :parser => Fog::ToHashDocument.new,
44
- :path => "vappTemplate/#{id}/metadata/#{URI.escape(key)}"
44
+ :path => "vappTemplate/#{id}/metadata/#{URI::DEFAULT_PARSER.escape(key)}"
45
45
  )
46
46
  end
47
47
  end
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module VcloudDirector
3
- VERSION = "0.3.0".freeze
3
+ VERSION = "0.3.1".freeze
4
4
  end
5
5
  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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luka Zakrajšek
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-19 00:00:00.000000000 Z
11
+ date: 2021-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -525,13 +525,13 @@ homepage: https://github.com/xlab-si/fog-vcloud-director
525
525
  licenses:
526
526
  - MIT
527
527
  metadata: {}
528
- post_install_message:
528
+ post_install_message:
529
529
  rdoc_options: []
530
530
  require_paths:
531
531
  - lib
532
532
  required_ruby_version: !ruby/object:Gem::Requirement
533
533
  requirements:
534
- - - "~>"
534
+ - - ">="
535
535
  - !ruby/object:Gem::Version
536
536
  version: '2.0'
537
537
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -540,9 +540,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
540
540
  - !ruby/object:Gem::Version
541
541
  version: '0'
542
542
  requirements: []
543
- rubyforge_project:
544
- rubygems_version: 2.6.14
545
- signing_key:
543
+ rubygems_version: 3.2.3
544
+ signing_key:
546
545
  specification_version: 4
547
546
  summary: Module for the 'fog' gem to support vCloud Director.
548
547
  test_files: