ruby-linstor-client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/codegen.sh +1 -1
- data/generator/custom/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb +1 -1
- data/generator/custom/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume_cache_volume.rb +11 -0
- data/lib/ruby-linstor-client/api/developers_api.rb +923 -103
- data/lib/ruby-linstor-client/api_client.rb +2 -2
- data/lib/ruby-linstor-client/api_error.rb +2 -2
- data/lib/ruby-linstor-client/configuration.rb +2 -2
- data/lib/ruby-linstor-client/models/api_call_rc.rb +2 -2
- data/lib/ruby-linstor-client/models/auto_place_request.rb +2 -2
- data/lib/ruby-linstor-client/models/auto_select_filter.rb +25 -3
- data/lib/ruby-linstor-client/models/cache_resource.rb +220 -0
- data/lib/ruby-linstor-client/models/cache_volume.rb +276 -0
- data/lib/ruby-linstor-client/models/candidate.rb +2 -2
- data/lib/ruby-linstor-client/models/controller_config.rb +272 -0
- data/lib/ruby-linstor-client/models/controller_config_config.rb +218 -0
- data/lib/ruby-linstor-client/models/controller_config_db.rb +263 -0
- data/lib/ruby-linstor-client/models/controller_config_db_etcd.rb +227 -0
- data/lib/ruby-linstor-client/models/controller_config_debug.rb +218 -0
- data/lib/ruby-linstor-client/models/controller_config_http.rb +236 -0
- data/lib/ruby-linstor-client/models/controller_config_https.rb +236 -0
- data/lib/ruby-linstor-client/models/controller_config_ldap.rb +263 -0
- data/lib/ruby-linstor-client/models/controller_config_log.rb +315 -0
- data/lib/ruby-linstor-client/models/controller_props_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/controller_version.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_connection.rb +262 -0
- data/lib/ruby-linstor-client/models/drbd_proxy_enable.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_proxy_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_resource.rb +35 -6
- data/lib/ruby-linstor-client/models/drbd_resource_definition_layer.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_volume.rb +2 -2
- data/lib/ruby-linstor-client/models/drbd_volume_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/error_report.rb +87 -7
- data/lib/ruby-linstor-client/models/error_report_delete.rb +273 -0
- data/lib/ruby-linstor-client/models/event_may_promote_change.rb +237 -0
- data/lib/ruby-linstor-client/models/key_value_store.rb +2 -2
- data/lib/ruby-linstor-client/models/key_value_store_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/layer_type.rb +4 -2
- data/lib/ruby-linstor-client/models/log_level.rb +40 -0
- data/lib/ruby-linstor-client/models/luks_resource.rb +2 -2
- data/lib/ruby-linstor-client/models/luks_volume.rb +2 -2
- data/lib/ruby-linstor-client/models/max_volume_sizes.rb +2 -2
- data/lib/ruby-linstor-client/models/net_interface.rb +2 -2
- data/lib/ruby-linstor-client/models/node.rb +4 -4
- data/lib/ruby-linstor-client/models/node_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/nvme_resource.rb +2 -2
- data/lib/ruby-linstor-client/models/nvme_volume.rb +2 -2
- data/lib/ruby-linstor-client/models/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb +1 -1
- data/lib/ruby-linstor-client/models/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume_cache_volume.rb +11 -0
- data/lib/ruby-linstor-client/models/openflex_resource.rb +229 -0
- data/lib/ruby-linstor-client/models/openflex_resource_definition_layer.rb +227 -0
- data/lib/ruby-linstor-client/models/openflex_volume.rb +256 -0
- data/lib/ruby-linstor-client/models/pass_phrase_create.rb +2 -2
- data/lib/ruby-linstor-client/models/physical_storage.rb +2 -2
- data/lib/ruby-linstor-client/models/physical_storage_create.rb +2 -2
- data/lib/ruby-linstor-client/models/physical_storage_device.rb +2 -2
- data/lib/ruby-linstor-client/models/physical_storage_storage_pool_create.rb +2 -2
- data/lib/ruby-linstor-client/models/provider_kind.rb +3 -2
- data/lib/ruby-linstor-client/models/resource.rb +16 -6
- data/lib/ruby-linstor-client/models/resource_connection.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_connection_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_create.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_definition_create.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_definition_layer.rb +3 -3
- data/lib/ruby-linstor-client/models/resource_definition_modify.rb +16 -6
- data/lib/ruby-linstor-client/models/resource_group.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_group_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_group_spawn.rb +22 -3
- data/lib/ruby-linstor-client/models/resource_layer.rb +24 -6
- data/lib/ruby-linstor-client/models/resource_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_state.rb +2 -2
- data/lib/ruby-linstor-client/models/resource_with_volumes.rb +13 -3
- data/lib/ruby-linstor-client/models/resource_with_volumes_all_of.rb +2 -2
- data/lib/ruby-linstor-client/models/satellite_config.rb +272 -0
- data/lib/ruby-linstor-client/models/satellite_config_log.rb +245 -0
- data/lib/ruby-linstor-client/models/satellite_config_net.rb +236 -0
- data/lib/ruby-linstor-client/models/snapshot.rb +17 -6
- data/lib/ruby-linstor-client/models/snapshot_node.rb +261 -0
- data/lib/ruby-linstor-client/models/snapshot_restore.rb +2 -2
- data/lib/ruby-linstor-client/models/snapshot_shipping.rb +259 -0
- data/lib/ruby-linstor-client/models/snapshot_shipping_status.rb +279 -0
- data/lib/ruby-linstor-client/models/snapshot_volume_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_pool.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_pool_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_pool_definition_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_resource.rb +2 -2
- data/lib/ruby-linstor-client/models/storage_volume.rb +2 -2
- data/lib/ruby-linstor-client/models/volume.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_definition.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_definition_create.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_definition_layer.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_definition_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_group.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_group_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_layer.rb +3 -3
- data/lib/ruby-linstor-client/models/volume_modify.rb +2 -2
- data/lib/ruby-linstor-client/models/volume_state.rb +2 -2
- data/lib/ruby-linstor-client/models/writecache_resource.rb +2 -2
- data/lib/ruby-linstor-client/models/writecache_volume.rb +2 -2
- data/lib/ruby-linstor-client/version.rb +3 -3
- data/lib/ruby-linstor-client.rb +26 -2
- data/pkg/ruby-linstor-client-1.0.0.gem +0 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/cache_resource_spec.rb +34 -0
- data/spec/models/cache_volume_spec.rb +70 -0
- data/spec/models/controller_config_config_spec.rb +34 -0
- data/spec/models/controller_config_db_etcd_spec.rb +40 -0
- data/spec/models/controller_config_db_spec.rb +64 -0
- data/spec/models/controller_config_debug_spec.rb +34 -0
- data/spec/models/controller_config_http_spec.rb +46 -0
- data/spec/models/controller_config_https_spec.rb +46 -0
- data/spec/models/controller_config_ldap_spec.rb +64 -0
- data/spec/models/controller_config_log_spec.rb +80 -0
- data/spec/models/controller_config_spec.rb +70 -0
- data/spec/models/drbd_connection_spec.rb +44 -0
- data/spec/models/error_report_delete_spec.rb +64 -0
- data/spec/models/event_may_promote_change_spec.rb +46 -0
- data/spec/models/log_level_spec.rb +28 -0
- data/spec/models/openflex_resource_definition_layer_spec.rb +40 -0
- data/spec/models/openflex_resource_spec.rb +40 -0
- data/spec/models/openflex_volume_spec.rb +58 -0
- data/spec/models/satellite_config_log_spec.rb +52 -0
- data/spec/models/satellite_config_net_spec.rb +46 -0
- data/spec/models/satellite_config_spec.rb +70 -0
- data/spec/models/snapshot_node_spec.rb +58 -0
- data/spec/models/snapshot_shipping_spec.rb +52 -0
- data/spec/models/snapshot_shipping_status_spec.rb +56 -0
- data/spec/spec_helper.rb +2 -2
- metadata +77 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dfae70117934f22a00101728a190d56f4aed0bf43d750cea7afb253f5840873
|
4
|
+
data.tar.gz: e719dcaab0de789fb13c18dee9646598ec50a1402a967f5d25c824f4036cdf32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f3a2a5247e32c39e12efe04002db00e8a99e04c9b5da2bd2552d954dff2ab8e4f194a557aa098d74245b7797bee7369b03a2db6ba600303c1f85816cf516b8c
|
7
|
+
data.tar.gz: 876ffc94b5c00de1a1a84915d1b81a7a4f33bc41ae6f47be0211a5ab49cffd512cd2df92dd1e334e92001a00f9b50214d0726d42406a03a7861a861d7c6f663a
|
data/README.md
CHANGED
@@ -11,11 +11,11 @@ LinstorClient.configure do |c|
|
|
11
11
|
c.host = "203.0.113.25:3370"
|
12
12
|
end
|
13
13
|
|
14
|
-
client = LinstorClient::DevelopersApi.
|
14
|
+
client = LinstorClient::DevelopersApi.new
|
15
15
|
clinet.view_resources
|
16
16
|
```
|
17
17
|
|
18
|
-
## Supported Linstor API version
|
18
|
+
## Supported Linstor REST API version
|
19
19
|
|
20
|
-
* 1.0
|
21
|
-
* https://app.swaggerhub.com/apis-docs/Linstor/Linstor/1.0
|
20
|
+
* 1.5.0
|
21
|
+
* https://app.swaggerhub.com/apis-docs/Linstor/Linstor/1.5.0
|
data/codegen.sh
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
VERSION="v5.3.1"
|
4
4
|
|
5
5
|
docker run -i --rm -v $(pwd):/work -w /work --entrypoint /bin/bash openapitools/openapi-generator-cli:$VERSION <<__EOS__
|
6
|
-
curl -s https://raw.githubusercontent.com/LINBIT/linstor-server/v1.
|
6
|
+
curl -s https://raw.githubusercontent.com/LINBIT/linstor-server/v1.10.0/docs/rest_v1_openapi.yaml |
|
7
7
|
sed -e 's/- Controller/- CONTROLLER/g' \
|
8
8
|
-e 's/- Satellite/- SATELLITE/g' \
|
9
9
|
-e 's/- Combined/- COMBINED/g' \
|
data/generator/custom/one_of_drbd_volume_luks_volume_storage_nvme_volme_writecache_volume.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module LinstorClient
|
2
|
-
class
|
2
|
+
class OneOfDrbdVolumeLUKSVolumeStorageVolumeNVMEVolumeWritecacheVolumeCacheVolume
|
3
3
|
def self.build_from_hash(attributes)
|
4
4
|
if attributes.key?(:drbd_volume_definition)
|
5
5
|
DrbdVolume.build_from_hash(attributes)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module LinstorClient
|
2
|
+
class OneOfDrbdVolumeLUKSVolumeStorageVolumeNVMEVolumeWritecacheVolume
|
3
|
+
def self.build_from_hash(attributes)
|
4
|
+
if attributes.key?(:drbd_volume_definition)
|
5
|
+
DrbdVolume.build_from_hash(attributes)
|
6
|
+
else
|
7
|
+
StorageVolume.build_from_hash(attributes)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|