fog-openstack 1.0.9 → 1.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/linting.yml +20 -0
- data/.github/workflows/main.yml +37 -0
- data/.rubocop.yml +65 -66
- data/fog-openstack.gemspec +1 -2
- data/lib/fog/openstack/auth/name.rb +1 -1
- data/lib/fog/openstack/auth/token.rb +7 -3
- data/lib/fog/openstack/core.rb +1 -1
- data/lib/fog/openstack/orchestration/models/stacks.rb +4 -3
- data/lib/fog/openstack/orchestration/requests/show_stack.rb +26 -0
- data/lib/fog/openstack/orchestration.rb +1 -0
- data/lib/fog/openstack/shared_file_system.rb +2 -2
- data/lib/fog/openstack/version.rb +1 -1
- data/lib/fog/openstack/volume/v3/mock.rb +68 -0
- data/lib/fog/openstack/volume/v3/models/availability_zone.rb +15 -0
- data/lib/fog/openstack/volume/v3/models/availability_zones.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/backup.rb +15 -0
- data/lib/fog/openstack/volume/v3/models/backups.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/snapshot.rb +44 -0
- data/lib/fog/openstack/volume/v3/models/snapshots.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/transfer.rb +18 -0
- data/lib/fog/openstack/volume/v3/models/transfers.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/volume.rb +37 -0
- data/lib/fog/openstack/volume/v3/models/volume_type.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/volume_types.rb +16 -0
- data/lib/fog/openstack/volume/v3/models/volumes.rb +16 -0
- data/lib/fog/openstack/volume/v3/real.rb +23 -0
- data/lib/fog/openstack/volume/v3/requests/accept_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/action.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/create_backup.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/create_snapshot.rb +45 -0
- data/lib/fog/openstack/volume/v3/requests/create_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/create_volume.rb +49 -0
- data/lib/fog/openstack/volume/v3/requests/create_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_backup.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_snapshot.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_snapshot_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_transfer.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_volume.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/delete_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/extend_volume.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_backup_details.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_quota.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_quota_defaults.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_quota_usage.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_snapshot_details.rb +32 -0
- data/lib/fog/openstack/volume/v3/requests/get_transfer_details.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/get_volume_details.rb +35 -0
- data/lib/fog/openstack/volume/v3/requests/get_volume_type_details.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_backups.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_backups_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_snapshots.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_snapshots_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_transfers.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_transfers_detailed.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_volume_types.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/list_volumes.rb +46 -0
- data/lib/fog/openstack/volume/v3/requests/list_volumes_detailed.rb +46 -0
- data/lib/fog/openstack/volume/v3/requests/list_zones.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/real.rb +11 -0
- data/lib/fog/openstack/volume/v3/requests/real_mock.rb +14 -0
- data/lib/fog/openstack/volume/v3/requests/replace_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/restore_backup.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/set_tenant.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/snapshot_action.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_quota.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_snapshot.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_snapshot_metadata.rb +2 -0
- data/lib/fog/openstack/volume/v3/requests/update_volume.rb +20 -0
- data/lib/fog/openstack/volume/v3/requests/update_volume_type.rb +2 -0
- data/lib/fog/openstack/volume/v3.rb +94 -0
- data/lib/fog/openstack/volume.rb +11 -10
- data/supported.md +1 -2
- metadata +74 -25
data/lib/fog/openstack/volume.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
1
|
module Fog
|
4
2
|
module OpenStack
|
5
3
|
class Volume < Fog::Service
|
6
4
|
autoload :V1, 'fog/openstack/volume/v1'
|
7
5
|
autoload :V2, 'fog/openstack/volume/v2'
|
6
|
+
autoload :V3, 'fog/openstack/volume/v3'
|
8
7
|
|
9
8
|
@@recognizes = [:openstack_auth_token, :openstack_management_url,
|
10
9
|
:persistent, :openstack_service_type, :openstack_service_name,
|
@@ -17,16 +16,18 @@ module Fog
|
|
17
16
|
:openstack_project_domain_id, :openstack_user_domain_id, :openstack_domain_id,
|
18
17
|
:openstack_identity_api_version]
|
19
18
|
|
20
|
-
# Fog::OpenStack::Image.new() will return a Fog::OpenStack::Volume::
|
21
|
-
# choosing the
|
19
|
+
# Fog::OpenStack::Image.new() will return a Fog::OpenStack::Volume::V3 or a Fog::OpenStack::Volume::V2 or a
|
20
|
+
# Fog::OpenStack::Volume::V1, choosing the V3 by default, as V2 is deprecated since OpenStackWallaby and V1 is
|
21
|
+
# deprecated since OpenStack Juno
|
22
22
|
def self.new(args = {})
|
23
23
|
@openstack_auth_uri = URI.parse(args[:openstack_auth_url]) if args[:openstack_auth_url]
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
if inspect == 'Fog::OpenStack::Volume'
|
25
|
+
Fog::OpenStack::Volume::V3.new(args) \
|
26
|
+
|| Fog::OpenStack::Volume::V2.new(args) \
|
27
|
+
|| Fog::OpenStack::Volume::V1.new(args)
|
28
|
+
else
|
29
|
+
super
|
30
|
+
end
|
30
31
|
end
|
31
32
|
end
|
32
33
|
end
|
data/supported.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|------------------|--------------------|----------------|------------|-------|
|
7
7
|
| Barbican | Key Manager | v1 | TBD | |
|
8
8
|
| Ceilometer | Metering | v2 | TBD | |
|
9
|
-
| Cinder | Volume | v1, v2
|
9
|
+
| Cinder | Volume | v1, v2, v3 | TBD | |
|
10
10
|
| Designate | DNS | v1, v2 | TBD | |
|
11
11
|
| Glance | Image | v1, v2 | TBD | |
|
12
12
|
| Gnocci | Metric | v1 | TBD | |
|
@@ -53,4 +53,3 @@ Feel free to submit pull requests to add support for these.
|
|
53
53
|
* solum (Lifecycle)
|
54
54
|
* tripleo (Orchestration)
|
55
55
|
* zaqar (Messaging)
|
56
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-openstack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.1.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Darby
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: ipaddress
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.8'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.8'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: bundler
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,16 +126,16 @@ dependencies:
|
|
140
126
|
name: rake
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
|
-
- - "
|
129
|
+
- - ">="
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
131
|
+
version: 12.3.3
|
146
132
|
type: :development
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
|
-
- - "
|
136
|
+
- - ">="
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
138
|
+
version: 12.3.3
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: rubocop
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,6 +199,8 @@ executables: []
|
|
213
199
|
extensions: []
|
214
200
|
extra_rdoc_files: []
|
215
201
|
files:
|
202
|
+
- ".github/workflows/linting.yml"
|
203
|
+
- ".github/workflows/main.yml"
|
216
204
|
- ".gitignore"
|
217
205
|
- ".hound.yml"
|
218
206
|
- ".rubocop.yml"
|
@@ -1060,6 +1048,7 @@ files:
|
|
1060
1048
|
- lib/fog/openstack/orchestration/requests/show_resource_metadata.rb
|
1061
1049
|
- lib/fog/openstack/orchestration/requests/show_resource_schema.rb
|
1062
1050
|
- lib/fog/openstack/orchestration/requests/show_resource_template.rb
|
1051
|
+
- lib/fog/openstack/orchestration/requests/show_stack.rb
|
1063
1052
|
- lib/fog/openstack/orchestration/requests/show_stack_details.rb
|
1064
1053
|
- lib/fog/openstack/orchestration/requests/update_stack.rb
|
1065
1054
|
- lib/fog/openstack/orchestration/requests/validate_template.rb
|
@@ -1331,6 +1320,66 @@ files:
|
|
1331
1320
|
- lib/fog/openstack/volume/v2/requests/update_snapshot_metadata.rb
|
1332
1321
|
- lib/fog/openstack/volume/v2/requests/update_volume.rb
|
1333
1322
|
- lib/fog/openstack/volume/v2/requests/update_volume_type.rb
|
1323
|
+
- lib/fog/openstack/volume/v3.rb
|
1324
|
+
- lib/fog/openstack/volume/v3/mock.rb
|
1325
|
+
- lib/fog/openstack/volume/v3/models/availability_zone.rb
|
1326
|
+
- lib/fog/openstack/volume/v3/models/availability_zones.rb
|
1327
|
+
- lib/fog/openstack/volume/v3/models/backup.rb
|
1328
|
+
- lib/fog/openstack/volume/v3/models/backups.rb
|
1329
|
+
- lib/fog/openstack/volume/v3/models/snapshot.rb
|
1330
|
+
- lib/fog/openstack/volume/v3/models/snapshots.rb
|
1331
|
+
- lib/fog/openstack/volume/v3/models/transfer.rb
|
1332
|
+
- lib/fog/openstack/volume/v3/models/transfers.rb
|
1333
|
+
- lib/fog/openstack/volume/v3/models/volume.rb
|
1334
|
+
- lib/fog/openstack/volume/v3/models/volume_type.rb
|
1335
|
+
- lib/fog/openstack/volume/v3/models/volume_types.rb
|
1336
|
+
- lib/fog/openstack/volume/v3/models/volumes.rb
|
1337
|
+
- lib/fog/openstack/volume/v3/real.rb
|
1338
|
+
- lib/fog/openstack/volume/v3/requests/accept_transfer.rb
|
1339
|
+
- lib/fog/openstack/volume/v3/requests/action.rb
|
1340
|
+
- lib/fog/openstack/volume/v3/requests/create_backup.rb
|
1341
|
+
- lib/fog/openstack/volume/v3/requests/create_snapshot.rb
|
1342
|
+
- lib/fog/openstack/volume/v3/requests/create_transfer.rb
|
1343
|
+
- lib/fog/openstack/volume/v3/requests/create_volume.rb
|
1344
|
+
- lib/fog/openstack/volume/v3/requests/create_volume_type.rb
|
1345
|
+
- lib/fog/openstack/volume/v3/requests/delete_backup.rb
|
1346
|
+
- lib/fog/openstack/volume/v3/requests/delete_metadata.rb
|
1347
|
+
- lib/fog/openstack/volume/v3/requests/delete_snapshot.rb
|
1348
|
+
- lib/fog/openstack/volume/v3/requests/delete_snapshot_metadata.rb
|
1349
|
+
- lib/fog/openstack/volume/v3/requests/delete_transfer.rb
|
1350
|
+
- lib/fog/openstack/volume/v3/requests/delete_volume.rb
|
1351
|
+
- lib/fog/openstack/volume/v3/requests/delete_volume_type.rb
|
1352
|
+
- lib/fog/openstack/volume/v3/requests/extend_volume.rb
|
1353
|
+
- lib/fog/openstack/volume/v3/requests/get_backup_details.rb
|
1354
|
+
- lib/fog/openstack/volume/v3/requests/get_quota.rb
|
1355
|
+
- lib/fog/openstack/volume/v3/requests/get_quota_defaults.rb
|
1356
|
+
- lib/fog/openstack/volume/v3/requests/get_quota_usage.rb
|
1357
|
+
- lib/fog/openstack/volume/v3/requests/get_snapshot_details.rb
|
1358
|
+
- lib/fog/openstack/volume/v3/requests/get_transfer_details.rb
|
1359
|
+
- lib/fog/openstack/volume/v3/requests/get_volume_details.rb
|
1360
|
+
- lib/fog/openstack/volume/v3/requests/get_volume_type_details.rb
|
1361
|
+
- lib/fog/openstack/volume/v3/requests/list_backups.rb
|
1362
|
+
- lib/fog/openstack/volume/v3/requests/list_backups_detailed.rb
|
1363
|
+
- lib/fog/openstack/volume/v3/requests/list_snapshots.rb
|
1364
|
+
- lib/fog/openstack/volume/v3/requests/list_snapshots_detailed.rb
|
1365
|
+
- lib/fog/openstack/volume/v3/requests/list_transfers.rb
|
1366
|
+
- lib/fog/openstack/volume/v3/requests/list_transfers_detailed.rb
|
1367
|
+
- lib/fog/openstack/volume/v3/requests/list_volume_types.rb
|
1368
|
+
- lib/fog/openstack/volume/v3/requests/list_volumes.rb
|
1369
|
+
- lib/fog/openstack/volume/v3/requests/list_volumes_detailed.rb
|
1370
|
+
- lib/fog/openstack/volume/v3/requests/list_zones.rb
|
1371
|
+
- lib/fog/openstack/volume/v3/requests/real.rb
|
1372
|
+
- lib/fog/openstack/volume/v3/requests/real_mock.rb
|
1373
|
+
- lib/fog/openstack/volume/v3/requests/replace_metadata.rb
|
1374
|
+
- lib/fog/openstack/volume/v3/requests/restore_backup.rb
|
1375
|
+
- lib/fog/openstack/volume/v3/requests/set_tenant.rb
|
1376
|
+
- lib/fog/openstack/volume/v3/requests/snapshot_action.rb
|
1377
|
+
- lib/fog/openstack/volume/v3/requests/update_metadata.rb
|
1378
|
+
- lib/fog/openstack/volume/v3/requests/update_quota.rb
|
1379
|
+
- lib/fog/openstack/volume/v3/requests/update_snapshot.rb
|
1380
|
+
- lib/fog/openstack/volume/v3/requests/update_snapshot_metadata.rb
|
1381
|
+
- lib/fog/openstack/volume/v3/requests/update_volume.rb
|
1382
|
+
- lib/fog/openstack/volume/v3/requests/update_volume_type.rb
|
1334
1383
|
- lib/fog/openstack/workflow.rb
|
1335
1384
|
- lib/fog/openstack/workflow/v2.rb
|
1336
1385
|
- lib/fog/openstack/workflow/v2/requests/create_action.rb
|
@@ -1387,7 +1436,7 @@ homepage: https://github.com/fog/fog-openstack
|
|
1387
1436
|
licenses:
|
1388
1437
|
- MIT
|
1389
1438
|
metadata: {}
|
1390
|
-
post_install_message:
|
1439
|
+
post_install_message:
|
1391
1440
|
rdoc_options: []
|
1392
1441
|
require_paths:
|
1393
1442
|
- lib
|
@@ -1398,12 +1447,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1398
1447
|
version: 2.2.0
|
1399
1448
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1400
1449
|
requirements:
|
1401
|
-
- - "
|
1450
|
+
- - ">"
|
1402
1451
|
- !ruby/object:Gem::Version
|
1403
|
-
version:
|
1452
|
+
version: 1.3.1
|
1404
1453
|
requirements: []
|
1405
1454
|
rubygems_version: 3.0.3
|
1406
|
-
signing_key:
|
1455
|
+
signing_key:
|
1407
1456
|
specification_version: 4
|
1408
1457
|
summary: OpenStack fog provider gem
|
1409
1458
|
test_files: []
|