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.
- checksums.yaml +5 -5
- data/.travis.yml +3 -2
- data/fog-vcloud-director.gemspec +1 -1
- data/lib/fog/vcloud_director/models/compute/vapp.rb +4 -4
- data/lib/fog/vcloud_director/requests/compute/delete_catalog_item_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/delete_disk_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/delete_media_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/delete_vapp_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/delete_vapp_template_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_catalogs_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_disk_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_disks_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_groups_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_media_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_medias_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_network_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_organization_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_organizations_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_users_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_vapp_templates_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_vapps_in_lease_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_vdcs_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_vms_in_lease_from_query.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/put_catalog_item_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/put_disk_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/put_media_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/put_metadata_value.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/put_vapp_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/put_vapp_template_metadata_item_metadata.rb +1 -1
- data/lib/fog/vcloud_director/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9888e6807a7cb0efbad560638685c65212ff20f403b147eae5e2bd7625863f37
|
4
|
+
data.tar.gz: 7f0db9dfcd7e1fcd5a6ce343e2b850023698e00e82b48b43b101ac5b683a2419
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7a777391c0fea0bfa77238fb69635b8b16888085f80d64cf365edb45adbfecb4d47a4f79ecd08d7a74b87c8789eb41e66da612eddaf5401cd8949466ca400f3
|
7
|
+
data.tar.gz: ef64157783b35b4b0cfec162944d85685784e9dba3c571f989bc38e15d69bdee129c2702ee65f240a4345ebbe15afb47dd9efc39969d85357e5bace079faf274
|
data/.travis.yml
CHANGED
data/fog-vcloud-director.gemspec
CHANGED
@@ -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 = "
|
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(
|
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 =
|
24
|
+
if (vms = attributes.delete(:vms))
|
25
25
|
@vms = Fog::VcloudDirector::Compute::Vms.new(
|
26
26
|
:vapp => self,
|
27
|
-
:service =>
|
27
|
+
:service => attributes[:service]
|
28
28
|
).with_item_list(Array(vms))
|
29
29
|
end
|
30
30
|
|
31
|
-
super(
|
31
|
+
super(attributes)
|
32
32
|
end
|
33
33
|
|
34
34
|
def vms(force: false)
|
@@ -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,
|
@@ -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,
|
@@ -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,
|
@@ -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,
|
@@ -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,
|
data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata_item_metadata.rb
CHANGED
@@ -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
|
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.
|
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:
|
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
|
-
|
544
|
-
|
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:
|