autosde_openapi_client 2.5.0 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/docs/ServiceCreate.md +2 -0
- data/docs/StorageResource.md +4 -0
- data/docs/StorageResourceApi.md +4 -4
- data/docs/StorageResourceCreate.md +4 -0
- data/docs/StorageResourceResponse.md +4 -0
- data/docs/VolumeMigration.md +20 -0
- data/docs/VolumeMigrationApi.md +75 -0
- data/lib/autosde_openapi_client/api/storage_resource_api.rb +3 -3
- data/lib/autosde_openapi_client/api/volume_migration_api.rb +83 -0
- data/lib/autosde_openapi_client/models/service_create.rb +13 -1
- data/lib/autosde_openapi_client/models/storage_resource.rb +25 -1
- data/lib/autosde_openapi_client/models/storage_resource_create.rb +25 -1
- data/lib/autosde_openapi_client/models/storage_resource_response.rb +25 -1
- data/lib/autosde_openapi_client/models/volume_migration.rb +228 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +2 -0
- data/spec/api/storage_resource_api_spec.rb +1 -1
- data/spec/api/volume_migration_api_spec.rb +45 -0
- data/spec/models/service_create_spec.rb +6 -0
- data/spec/models/storage_resource_create_spec.rb +12 -0
- data/spec/models/storage_resource_response_spec.rb +12 -0
- data/spec/models/storage_resource_spec.rb +12 -0
- data/spec/models/volume_migration_spec.rb +40 -0
- metadata +89 -81
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 229f863373af870c8759b522e2d7bdf28591c7df885e9941191198f743ff9243
|
4
|
+
data.tar.gz: 2503e18936aa9b1115256297d3b5879137b8d7a75eccbffa8689d032b28b64d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efb4080a43cd7cedfbaf9f2718a5e9afb3fcdf00a291bec03133a2637f46526ead85b441d6ca8d8e9c73695f33e19e199ebeb713df6f59335bb389b9f3b5fd30
|
7
|
+
data.tar.gz: c1c46d0851745384e96ed659b3c805195b915dfac5b52c9f45eeaac84f2126f3dad0ce4b29ea86e0af21bbd576deb3ffbdde4e90cdaf154906cdcf7ef28daa5b
|
data/README.md
CHANGED
@@ -201,6 +201,7 @@ Class | Method | HTTP request | Description
|
|
201
201
|
*AutosdeOpenapiClient::VolumeApi* | [**volumes_pk_put**](docs/VolumeApi.md#volumes_pk_put) | **PUT** /volumes/{pk} |
|
202
202
|
*AutosdeOpenapiClient::VolumeApi* | [**volumes_post**](docs/VolumeApi.md#volumes_post) | **POST** /volumes |
|
203
203
|
*AutosdeOpenapiClient::VolumeCloneApi* | [**volume_clone_post**](docs/VolumeCloneApi.md#volume_clone_post) | **POST** /volume-clone |
|
204
|
+
*AutosdeOpenapiClient::VolumeMigrationApi* | [**volume_migration_post**](docs/VolumeMigrationApi.md#volume_migration_post) | **POST** /volume-migration |
|
204
205
|
|
205
206
|
|
206
207
|
## Documentation for Models
|
@@ -275,6 +276,7 @@ Class | Method | HTTP request | Description
|
|
275
276
|
- [AutosdeOpenapiClient::Volume](docs/Volume.md)
|
276
277
|
- [AutosdeOpenapiClient::VolumeClone](docs/VolumeClone.md)
|
277
278
|
- [AutosdeOpenapiClient::VolumeCreate](docs/VolumeCreate.md)
|
279
|
+
- [AutosdeOpenapiClient::VolumeMigration](docs/VolumeMigration.md)
|
278
280
|
- [AutosdeOpenapiClient::VolumeResponse](docs/VolumeResponse.md)
|
279
281
|
- [AutosdeOpenapiClient::VolumeUpdate](docs/VolumeUpdate.md)
|
280
282
|
|
data/docs/ServiceCreate.md
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
| **profile** | [**Profile**](Profile.md) | | [optional] |
|
12
12
|
| **project** | [**AutoSDEProject**](AutoSDEProject.md) | | [optional] |
|
13
13
|
| **provisioning_strategy** | [**ProvisioningStrategy**](ProvisioningStrategy.md) | | [optional] |
|
14
|
+
| **resources** | **Array<String>** | resources | [optional] |
|
14
15
|
| **uuid** | **String** | uuid | [optional] |
|
15
16
|
| **version** | **Integer** | The version of the service | [optional][default to 1] |
|
16
17
|
|
@@ -27,6 +28,7 @@ instance = AutosdeOpenapiClient::ServiceCreate.new(
|
|
27
28
|
profile: null,
|
28
29
|
project: null,
|
29
30
|
provisioning_strategy: null,
|
31
|
+
resources: null,
|
30
32
|
uuid: null,
|
31
33
|
version: null
|
32
34
|
)
|
data/docs/StorageResource.md
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **advanced_attributes_map** | **String** | advanced_attributes_map | [optional] |
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
9
|
+
| **data_reduction** | **Boolean** | data_reduction | [optional][default to false] |
|
10
|
+
| **extent_size** | **Integer** | extent_size | [optional][default to 1024] |
|
9
11
|
| **logical_free** | **Integer** | logical_free | [optional][default to 0] |
|
10
12
|
| **logical_total** | **Integer** | The Total logical capacity of this resource (gb) | [optional][default to 0] |
|
11
13
|
| **name** | **String** | name | [optional] |
|
@@ -22,6 +24,8 @@ require 'autosde_openapi_client'
|
|
22
24
|
instance = AutosdeOpenapiClient::StorageResource.new(
|
23
25
|
advanced_attributes_map: null,
|
24
26
|
component_state: null,
|
27
|
+
data_reduction: null,
|
28
|
+
extent_size: null,
|
25
29
|
logical_free: null,
|
26
30
|
logical_total: null,
|
27
31
|
name: null,
|
data/docs/StorageResourceApi.md
CHANGED
@@ -280,7 +280,7 @@ end
|
|
280
280
|
|
281
281
|
## storage_resources_post
|
282
282
|
|
283
|
-
> <
|
283
|
+
> <AsyncResponse> storage_resources_post(storage_resource_create)
|
284
284
|
|
285
285
|
|
286
286
|
|
@@ -311,7 +311,7 @@ end
|
|
311
311
|
|
312
312
|
This returns an Array which contains the response data, status code and headers.
|
313
313
|
|
314
|
-
> <Array(<
|
314
|
+
> <Array(<AsyncResponse>, Integer, Hash)> storage_resources_post_with_http_info(storage_resource_create)
|
315
315
|
|
316
316
|
```ruby
|
317
317
|
begin
|
@@ -319,7 +319,7 @@ begin
|
|
319
319
|
data, status_code, headers = api_instance.storage_resources_post_with_http_info(storage_resource_create)
|
320
320
|
p status_code # => 2xx
|
321
321
|
p headers # => { ... }
|
322
|
-
p data # => <
|
322
|
+
p data # => <AsyncResponse>
|
323
323
|
rescue AutosdeOpenapiClient::ApiError => e
|
324
324
|
puts "Error when calling StorageResourceApi->storage_resources_post_with_http_info: #{e}"
|
325
325
|
end
|
@@ -333,7 +333,7 @@ end
|
|
333
333
|
|
334
334
|
### Return type
|
335
335
|
|
336
|
-
[**
|
336
|
+
[**AsyncResponse**](AsyncResponse.md)
|
337
337
|
|
338
338
|
### Authorization
|
339
339
|
|
@@ -6,6 +6,8 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **advanced_attributes_map** | **String** | advanced_attributes_map | [optional] |
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
9
|
+
| **data_reduction** | **Boolean** | data_reduction | [optional][default to false] |
|
10
|
+
| **extent_size** | **Integer** | extent_size | [optional][default to 1024] |
|
9
11
|
| **logical_free** | **Integer** | logical_free | [optional][default to 0] |
|
10
12
|
| **logical_total** | **Integer** | The Total logical capacity of this resource (gb) | [optional][default to 0] |
|
11
13
|
| **name** | **String** | name | [optional] |
|
@@ -21,6 +23,8 @@ require 'autosde_openapi_client'
|
|
21
23
|
instance = AutosdeOpenapiClient::StorageResourceCreate.new(
|
22
24
|
advanced_attributes_map: null,
|
23
25
|
component_state: null,
|
26
|
+
data_reduction: null,
|
27
|
+
extent_size: null,
|
24
28
|
logical_free: null,
|
25
29
|
logical_total: null,
|
26
30
|
name: null,
|
@@ -7,6 +7,8 @@
|
|
7
7
|
| **advanced_attributes_map** | **String** | advanced_attributes_map | [optional] |
|
8
8
|
| **capability_values_json** | **String** | capability_values_json | [optional] |
|
9
9
|
| **component_state** | **String** | component_state | [optional] |
|
10
|
+
| **data_reduction** | **Boolean** | data_reduction | [optional][default to false] |
|
11
|
+
| **extent_size** | **Integer** | extent_size | [optional][default to 1024] |
|
10
12
|
| **logical_free** | **Integer** | logical_free | [optional][default to 0] |
|
11
13
|
| **logical_total** | **Integer** | The Total logical capacity of this resource (gb) | [optional][default to 0] |
|
12
14
|
| **name** | **String** | name | [optional] |
|
@@ -24,6 +26,8 @@ instance = AutosdeOpenapiClient::StorageResourceResponse.new(
|
|
24
26
|
advanced_attributes_map: null,
|
25
27
|
capability_values_json: null,
|
26
28
|
component_state: null,
|
29
|
+
data_reduction: null,
|
30
|
+
extent_size: null,
|
27
31
|
logical_free: null,
|
28
32
|
logical_total: null,
|
29
33
|
name: null,
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# AutosdeOpenapiClient::VolumeMigration
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **source_volume_uuid** | [**Volume**](Volume.md) | | [optional] |
|
8
|
+
| **target_pool_uuid** | [**StorageResource**](StorageResource.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'autosde_openapi_client'
|
14
|
+
|
15
|
+
instance = AutosdeOpenapiClient::VolumeMigration.new(
|
16
|
+
source_volume_uuid: null,
|
17
|
+
target_pool_uuid: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# AutosdeOpenapiClient::VolumeMigrationApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**volume_migration_post**](VolumeMigrationApi.md#volume_migration_post) | **POST** /volume-migration | |
|
8
|
+
|
9
|
+
|
10
|
+
## volume_migration_post
|
11
|
+
|
12
|
+
> <VolumeMigration> volume_migration_post(volume_migration)
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
### Examples
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'time'
|
20
|
+
require 'autosde_openapi_client'
|
21
|
+
# setup authorization
|
22
|
+
AutosdeOpenapiClient.configure do |config|
|
23
|
+
# Configure Bearer authorization: bearerAuth
|
24
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = AutosdeOpenapiClient::VolumeMigrationApi.new
|
28
|
+
volume_migration = AutosdeOpenapiClient::VolumeMigration.new # VolumeMigration |
|
29
|
+
|
30
|
+
begin
|
31
|
+
|
32
|
+
result = api_instance.volume_migration_post(volume_migration)
|
33
|
+
p result
|
34
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
35
|
+
puts "Error when calling VolumeMigrationApi->volume_migration_post: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
#### Using the volume_migration_post_with_http_info variant
|
40
|
+
|
41
|
+
This returns an Array which contains the response data, status code and headers.
|
42
|
+
|
43
|
+
> <Array(<VolumeMigration>, Integer, Hash)> volume_migration_post_with_http_info(volume_migration)
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
begin
|
47
|
+
|
48
|
+
data, status_code, headers = api_instance.volume_migration_post_with_http_info(volume_migration)
|
49
|
+
p status_code # => 2xx
|
50
|
+
p headers # => { ... }
|
51
|
+
p data # => <VolumeMigration>
|
52
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
53
|
+
puts "Error when calling VolumeMigrationApi->volume_migration_post_with_http_info: #{e}"
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
| Name | Type | Description | Notes |
|
60
|
+
| ---- | ---- | ----------- | ----- |
|
61
|
+
| **volume_migration** | [**VolumeMigration**](VolumeMigration.md) | | |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**VolumeMigration**](VolumeMigration.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[bearerAuth](../README.md#bearerAuth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: application/json
|
74
|
+
- **Accept**: */*
|
75
|
+
|
@@ -259,7 +259,7 @@ module AutosdeOpenapiClient
|
|
259
259
|
|
260
260
|
# @param storage_resource_create [StorageResourceCreate]
|
261
261
|
# @param [Hash] opts the optional parameters
|
262
|
-
# @return [
|
262
|
+
# @return [AsyncResponse]
|
263
263
|
def storage_resources_post(storage_resource_create, opts = {})
|
264
264
|
data, _status_code, _headers = storage_resources_post_with_http_info(storage_resource_create, opts)
|
265
265
|
data
|
@@ -267,7 +267,7 @@ module AutosdeOpenapiClient
|
|
267
267
|
|
268
268
|
# @param storage_resource_create [StorageResourceCreate]
|
269
269
|
# @param [Hash] opts the optional parameters
|
270
|
-
# @return [Array<(
|
270
|
+
# @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
|
271
271
|
def storage_resources_post_with_http_info(storage_resource_create, opts = {})
|
272
272
|
if @api_client.config.debugging
|
273
273
|
@api_client.config.logger.debug 'Calling API: StorageResourceApi.storage_resources_post ...'
|
@@ -296,7 +296,7 @@ module AutosdeOpenapiClient
|
|
296
296
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_resource_create)
|
297
297
|
|
298
298
|
# return_type
|
299
|
-
return_type = opts[:debug_return_type] || '
|
299
|
+
return_type = opts[:debug_return_type] || 'AsyncResponse'
|
300
300
|
|
301
301
|
# auth_names
|
302
302
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -0,0 +1,83 @@
|
|
1
|
+
=begin
|
2
|
+
#Site Manager API
|
3
|
+
|
4
|
+
#Site Manager API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: autosde@il.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module AutosdeOpenapiClient
|
16
|
+
class VolumeMigrationApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param volume_migration [VolumeMigration]
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @return [VolumeMigration]
|
25
|
+
def volume_migration_post(volume_migration, opts = {})
|
26
|
+
data, _status_code, _headers = volume_migration_post_with_http_info(volume_migration, opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# @param volume_migration [VolumeMigration]
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(VolumeMigration, Integer, Hash)>] VolumeMigration data, response status code and response headers
|
33
|
+
def volume_migration_post_with_http_info(volume_migration, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: VolumeMigrationApi.volume_migration_post ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'volume_migration' is set
|
38
|
+
if @api_client.config.client_side_validation && volume_migration.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'volume_migration' when calling VolumeMigrationApi.volume_migration_post"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/volume-migration'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(volume_migration)
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:debug_return_type] || 'VolumeMigration'
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:operation => :"VolumeMigrationApi.volume_migration_post",
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => return_type
|
74
|
+
)
|
75
|
+
|
76
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: VolumeMigrationApi#volume_migration_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -34,6 +34,9 @@ module AutosdeOpenapiClient
|
|
34
34
|
|
35
35
|
attr_accessor :provisioning_strategy
|
36
36
|
|
37
|
+
# resources
|
38
|
+
attr_accessor :resources
|
39
|
+
|
37
40
|
# uuid
|
38
41
|
attr_accessor :uuid
|
39
42
|
|
@@ -72,6 +75,7 @@ module AutosdeOpenapiClient
|
|
72
75
|
:'profile' => :'profile',
|
73
76
|
:'project' => :'project',
|
74
77
|
:'provisioning_strategy' => :'provisioning_strategy',
|
78
|
+
:'resources' => :'resources',
|
75
79
|
:'uuid' => :'uuid',
|
76
80
|
:'version' => :'version'
|
77
81
|
}
|
@@ -92,6 +96,7 @@ module AutosdeOpenapiClient
|
|
92
96
|
:'profile' => :'Profile',
|
93
97
|
:'project' => :'AutoSDEProject',
|
94
98
|
:'provisioning_strategy' => :'ProvisioningStrategy',
|
99
|
+
:'resources' => :'Array<String>',
|
95
100
|
:'uuid' => :'String',
|
96
101
|
:'version' => :'Integer'
|
97
102
|
}
|
@@ -150,6 +155,12 @@ module AutosdeOpenapiClient
|
|
150
155
|
self.provisioning_strategy = attributes[:'provisioning_strategy']
|
151
156
|
end
|
152
157
|
|
158
|
+
if attributes.key?(:'resources')
|
159
|
+
if (value = attributes[:'resources']).is_a?(Array)
|
160
|
+
self.resources = value
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
153
164
|
if attributes.key?(:'uuid')
|
154
165
|
self.uuid = attributes[:'uuid']
|
155
166
|
end
|
@@ -203,6 +214,7 @@ module AutosdeOpenapiClient
|
|
203
214
|
profile == o.profile &&
|
204
215
|
project == o.project &&
|
205
216
|
provisioning_strategy == o.provisioning_strategy &&
|
217
|
+
resources == o.resources &&
|
206
218
|
uuid == o.uuid &&
|
207
219
|
version == o.version
|
208
220
|
end
|
@@ -216,7 +228,7 @@ module AutosdeOpenapiClient
|
|
216
228
|
# Calculates hash code according to all attributes.
|
217
229
|
# @return [Integer] Hash code
|
218
230
|
def hash
|
219
|
-
[capability_value_list, component_state, description, name, profile, project, provisioning_strategy, uuid, version].hash
|
231
|
+
[capability_value_list, component_state, description, name, profile, project, provisioning_strategy, resources, uuid, version].hash
|
220
232
|
end
|
221
233
|
|
222
234
|
# Builds the object from hash
|
@@ -22,6 +22,12 @@ module AutosdeOpenapiClient
|
|
22
22
|
# component_state
|
23
23
|
attr_accessor :component_state
|
24
24
|
|
25
|
+
# data_reduction
|
26
|
+
attr_accessor :data_reduction
|
27
|
+
|
28
|
+
# extent_size
|
29
|
+
attr_accessor :extent_size
|
30
|
+
|
25
31
|
# logical_free
|
26
32
|
attr_accessor :logical_free
|
27
33
|
|
@@ -69,6 +75,8 @@ module AutosdeOpenapiClient
|
|
69
75
|
{
|
70
76
|
:'advanced_attributes_map' => :'advanced_attributes_map',
|
71
77
|
:'component_state' => :'component_state',
|
78
|
+
:'data_reduction' => :'data_reduction',
|
79
|
+
:'extent_size' => :'extent_size',
|
72
80
|
:'logical_free' => :'logical_free',
|
73
81
|
:'logical_total' => :'logical_total',
|
74
82
|
:'name' => :'name',
|
@@ -89,6 +97,8 @@ module AutosdeOpenapiClient
|
|
89
97
|
{
|
90
98
|
:'advanced_attributes_map' => :'String',
|
91
99
|
:'component_state' => :'String',
|
100
|
+
:'data_reduction' => :'Boolean',
|
101
|
+
:'extent_size' => :'Integer',
|
92
102
|
:'logical_free' => :'Integer',
|
93
103
|
:'logical_total' => :'Integer',
|
94
104
|
:'name' => :'String',
|
@@ -128,6 +138,18 @@ module AutosdeOpenapiClient
|
|
128
138
|
self.component_state = attributes[:'component_state']
|
129
139
|
end
|
130
140
|
|
141
|
+
if attributes.key?(:'data_reduction')
|
142
|
+
self.data_reduction = attributes[:'data_reduction']
|
143
|
+
else
|
144
|
+
self.data_reduction = false
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'extent_size')
|
148
|
+
self.extent_size = attributes[:'extent_size']
|
149
|
+
else
|
150
|
+
self.extent_size = 1024
|
151
|
+
end
|
152
|
+
|
131
153
|
if attributes.key?(:'logical_free')
|
132
154
|
self.logical_free = attributes[:'logical_free']
|
133
155
|
else
|
@@ -210,6 +232,8 @@ module AutosdeOpenapiClient
|
|
210
232
|
self.class == o.class &&
|
211
233
|
advanced_attributes_map == o.advanced_attributes_map &&
|
212
234
|
component_state == o.component_state &&
|
235
|
+
data_reduction == o.data_reduction &&
|
236
|
+
extent_size == o.extent_size &&
|
213
237
|
logical_free == o.logical_free &&
|
214
238
|
logical_total == o.logical_total &&
|
215
239
|
name == o.name &&
|
@@ -228,7 +252,7 @@ module AutosdeOpenapiClient
|
|
228
252
|
# Calculates hash code according to all attributes.
|
229
253
|
# @return [Integer] Hash code
|
230
254
|
def hash
|
231
|
-
[advanced_attributes_map, component_state, logical_free, logical_total, name, pool_name, protocol, storage_system, uuid].hash
|
255
|
+
[advanced_attributes_map, component_state, data_reduction, extent_size, logical_free, logical_total, name, pool_name, protocol, storage_system, uuid].hash
|
232
256
|
end
|
233
257
|
|
234
258
|
# Builds the object from hash
|
@@ -22,6 +22,12 @@ module AutosdeOpenapiClient
|
|
22
22
|
# component_state
|
23
23
|
attr_accessor :component_state
|
24
24
|
|
25
|
+
# data_reduction
|
26
|
+
attr_accessor :data_reduction
|
27
|
+
|
28
|
+
# extent_size
|
29
|
+
attr_accessor :extent_size
|
30
|
+
|
25
31
|
# logical_free
|
26
32
|
attr_accessor :logical_free
|
27
33
|
|
@@ -67,6 +73,8 @@ module AutosdeOpenapiClient
|
|
67
73
|
{
|
68
74
|
:'advanced_attributes_map' => :'advanced_attributes_map',
|
69
75
|
:'component_state' => :'component_state',
|
76
|
+
:'data_reduction' => :'data_reduction',
|
77
|
+
:'extent_size' => :'extent_size',
|
70
78
|
:'logical_free' => :'logical_free',
|
71
79
|
:'logical_total' => :'logical_total',
|
72
80
|
:'name' => :'name',
|
@@ -86,6 +94,8 @@ module AutosdeOpenapiClient
|
|
86
94
|
{
|
87
95
|
:'advanced_attributes_map' => :'String',
|
88
96
|
:'component_state' => :'String',
|
97
|
+
:'data_reduction' => :'Boolean',
|
98
|
+
:'extent_size' => :'Integer',
|
89
99
|
:'logical_free' => :'Integer',
|
90
100
|
:'logical_total' => :'Integer',
|
91
101
|
:'name' => :'String',
|
@@ -124,6 +134,18 @@ module AutosdeOpenapiClient
|
|
124
134
|
self.component_state = attributes[:'component_state']
|
125
135
|
end
|
126
136
|
|
137
|
+
if attributes.key?(:'data_reduction')
|
138
|
+
self.data_reduction = attributes[:'data_reduction']
|
139
|
+
else
|
140
|
+
self.data_reduction = false
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'extent_size')
|
144
|
+
self.extent_size = attributes[:'extent_size']
|
145
|
+
else
|
146
|
+
self.extent_size = 1024
|
147
|
+
end
|
148
|
+
|
127
149
|
if attributes.key?(:'logical_free')
|
128
150
|
self.logical_free = attributes[:'logical_free']
|
129
151
|
else
|
@@ -202,6 +224,8 @@ module AutosdeOpenapiClient
|
|
202
224
|
self.class == o.class &&
|
203
225
|
advanced_attributes_map == o.advanced_attributes_map &&
|
204
226
|
component_state == o.component_state &&
|
227
|
+
data_reduction == o.data_reduction &&
|
228
|
+
extent_size == o.extent_size &&
|
205
229
|
logical_free == o.logical_free &&
|
206
230
|
logical_total == o.logical_total &&
|
207
231
|
name == o.name &&
|
@@ -219,7 +243,7 @@ module AutosdeOpenapiClient
|
|
219
243
|
# Calculates hash code according to all attributes.
|
220
244
|
# @return [Integer] Hash code
|
221
245
|
def hash
|
222
|
-
[advanced_attributes_map, component_state, logical_free, logical_total, name, pool_name, protocol, storage_system].hash
|
246
|
+
[advanced_attributes_map, component_state, data_reduction, extent_size, logical_free, logical_total, name, pool_name, protocol, storage_system].hash
|
223
247
|
end
|
224
248
|
|
225
249
|
# Builds the object from hash
|
@@ -25,6 +25,12 @@ module AutosdeOpenapiClient
|
|
25
25
|
# component_state
|
26
26
|
attr_accessor :component_state
|
27
27
|
|
28
|
+
# data_reduction
|
29
|
+
attr_accessor :data_reduction
|
30
|
+
|
31
|
+
# extent_size
|
32
|
+
attr_accessor :extent_size
|
33
|
+
|
28
34
|
# logical_free
|
29
35
|
attr_accessor :logical_free
|
30
36
|
|
@@ -74,6 +80,8 @@ module AutosdeOpenapiClient
|
|
74
80
|
:'advanced_attributes_map' => :'advanced_attributes_map',
|
75
81
|
:'capability_values_json' => :'capability_values_json',
|
76
82
|
:'component_state' => :'component_state',
|
83
|
+
:'data_reduction' => :'data_reduction',
|
84
|
+
:'extent_size' => :'extent_size',
|
77
85
|
:'logical_free' => :'logical_free',
|
78
86
|
:'logical_total' => :'logical_total',
|
79
87
|
:'name' => :'name',
|
@@ -95,6 +103,8 @@ module AutosdeOpenapiClient
|
|
95
103
|
:'advanced_attributes_map' => :'String',
|
96
104
|
:'capability_values_json' => :'String',
|
97
105
|
:'component_state' => :'String',
|
106
|
+
:'data_reduction' => :'Boolean',
|
107
|
+
:'extent_size' => :'Integer',
|
98
108
|
:'logical_free' => :'Integer',
|
99
109
|
:'logical_total' => :'Integer',
|
100
110
|
:'name' => :'String',
|
@@ -138,6 +148,18 @@ module AutosdeOpenapiClient
|
|
138
148
|
self.component_state = attributes[:'component_state']
|
139
149
|
end
|
140
150
|
|
151
|
+
if attributes.key?(:'data_reduction')
|
152
|
+
self.data_reduction = attributes[:'data_reduction']
|
153
|
+
else
|
154
|
+
self.data_reduction = false
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'extent_size')
|
158
|
+
self.extent_size = attributes[:'extent_size']
|
159
|
+
else
|
160
|
+
self.extent_size = 1024
|
161
|
+
end
|
162
|
+
|
141
163
|
if attributes.key?(:'logical_free')
|
142
164
|
self.logical_free = attributes[:'logical_free']
|
143
165
|
else
|
@@ -221,6 +243,8 @@ module AutosdeOpenapiClient
|
|
221
243
|
advanced_attributes_map == o.advanced_attributes_map &&
|
222
244
|
capability_values_json == o.capability_values_json &&
|
223
245
|
component_state == o.component_state &&
|
246
|
+
data_reduction == o.data_reduction &&
|
247
|
+
extent_size == o.extent_size &&
|
224
248
|
logical_free == o.logical_free &&
|
225
249
|
logical_total == o.logical_total &&
|
226
250
|
name == o.name &&
|
@@ -239,7 +263,7 @@ module AutosdeOpenapiClient
|
|
239
263
|
# Calculates hash code according to all attributes.
|
240
264
|
# @return [Integer] Hash code
|
241
265
|
def hash
|
242
|
-
[advanced_attributes_map, capability_values_json, component_state, logical_free, logical_total, name, pool_name, protocol, storage_system, uuid].hash
|
266
|
+
[advanced_attributes_map, capability_values_json, component_state, data_reduction, extent_size, logical_free, logical_total, name, pool_name, protocol, storage_system, uuid].hash
|
243
267
|
end
|
244
268
|
|
245
269
|
# Builds the object from hash
|
@@ -0,0 +1,228 @@
|
|
1
|
+
=begin
|
2
|
+
#Site Manager API
|
3
|
+
|
4
|
+
#Site Manager API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: autosde@il.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module AutosdeOpenapiClient
|
17
|
+
# You can migrate this volume from one pool to another
|
18
|
+
class VolumeMigration
|
19
|
+
attr_accessor :source_volume_uuid
|
20
|
+
|
21
|
+
attr_accessor :target_pool_uuid
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'source_volume_uuid' => :'source_volume_uuid',
|
27
|
+
:'target_pool_uuid' => :'target_pool_uuid'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Returns all the JSON keys this model knows about
|
32
|
+
def self.acceptable_attributes
|
33
|
+
attribute_map.values
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'source_volume_uuid' => :'Volume',
|
40
|
+
:'target_pool_uuid' => :'StorageResource'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# List of attributes with nullable: true
|
45
|
+
def self.openapi_nullable
|
46
|
+
Set.new([
|
47
|
+
])
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::VolumeMigration` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::VolumeMigration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
64
|
+
|
65
|
+
if attributes.key?(:'source_volume_uuid')
|
66
|
+
self.source_volume_uuid = attributes[:'source_volume_uuid']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'target_pool_uuid')
|
70
|
+
self.target_pool_uuid = attributes[:'target_pool_uuid']
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
75
|
+
# @return Array for valid properties with the reasons
|
76
|
+
def list_invalid_properties
|
77
|
+
invalid_properties = Array.new
|
78
|
+
invalid_properties
|
79
|
+
end
|
80
|
+
|
81
|
+
# Check to see if the all the properties in the model are valid
|
82
|
+
# @return true if the model is valid
|
83
|
+
def valid?
|
84
|
+
true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Checks equality by comparing each attribute.
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def ==(o)
|
90
|
+
return true if self.equal?(o)
|
91
|
+
self.class == o.class &&
|
92
|
+
source_volume_uuid == o.source_volume_uuid &&
|
93
|
+
target_pool_uuid == o.target_pool_uuid
|
94
|
+
end
|
95
|
+
|
96
|
+
# @see the `==` method
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def eql?(o)
|
99
|
+
self == o
|
100
|
+
end
|
101
|
+
|
102
|
+
# Calculates hash code according to all attributes.
|
103
|
+
# @return [Integer] Hash code
|
104
|
+
def hash
|
105
|
+
[source_volume_uuid, target_pool_uuid].hash
|
106
|
+
end
|
107
|
+
|
108
|
+
# Builds the object from hash
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
# @return [Object] Returns the model itself
|
111
|
+
def self.build_from_hash(attributes)
|
112
|
+
new.build_from_hash(attributes)
|
113
|
+
end
|
114
|
+
|
115
|
+
# Builds the object from hash
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
117
|
+
# @return [Object] Returns the model itself
|
118
|
+
def build_from_hash(attributes)
|
119
|
+
return nil unless attributes.is_a?(Hash)
|
120
|
+
self.class.openapi_types.each_pair do |key, type|
|
121
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
122
|
+
self.send("#{key}=", nil)
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
128
|
+
end
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
# Deserializes the data based on type
|
138
|
+
# @param string type Data type
|
139
|
+
# @param string value Value to be deserialized
|
140
|
+
# @return [Object] Deserialized data
|
141
|
+
def _deserialize(type, value)
|
142
|
+
case type.to_sym
|
143
|
+
when :Time
|
144
|
+
Time.parse(value)
|
145
|
+
when :Date
|
146
|
+
Date.parse(value)
|
147
|
+
when :String
|
148
|
+
value.to_s
|
149
|
+
when :Integer
|
150
|
+
value.to_i
|
151
|
+
when :Float
|
152
|
+
value.to_f
|
153
|
+
when :Boolean
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
155
|
+
true
|
156
|
+
else
|
157
|
+
false
|
158
|
+
end
|
159
|
+
when :Object
|
160
|
+
# generic object (usually a Hash), return directly
|
161
|
+
value
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
168
|
+
{}.tap do |hash|
|
169
|
+
value.each do |k, v|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
else # model
|
174
|
+
# models (e.g. Pet) or oneOf
|
175
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
176
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
if value.nil?
|
199
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
201
|
+
end
|
202
|
+
|
203
|
+
hash[param] = _to_hash(value)
|
204
|
+
end
|
205
|
+
hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Outputs non-array value in the form of hash
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
210
|
+
# @param [Object] value Any valid value
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
212
|
+
def _to_hash(value)
|
213
|
+
if value.is_a?(Array)
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
215
|
+
elsif value.is_a?(Hash)
|
216
|
+
{}.tap do |hash|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
218
|
+
end
|
219
|
+
elsif value.respond_to? :to_hash
|
220
|
+
value.to_hash
|
221
|
+
else
|
222
|
+
value
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Site Manager API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.5.
|
6
|
+
The version of the OpenAPI document: 2.5.2
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.0.0
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module AutosdeOpenapiClient
|
14
|
-
VERSION = '2.5.
|
14
|
+
VERSION = '2.5.2'
|
15
15
|
end
|
@@ -87,6 +87,7 @@ require 'autosde_openapi_client/models/validate_system'
|
|
87
87
|
require 'autosde_openapi_client/models/volume'
|
88
88
|
require 'autosde_openapi_client/models/volume_clone'
|
89
89
|
require 'autosde_openapi_client/models/volume_create'
|
90
|
+
require 'autosde_openapi_client/models/volume_migration'
|
90
91
|
require 'autosde_openapi_client/models/volume_response'
|
91
92
|
require 'autosde_openapi_client/models/volume_update'
|
92
93
|
|
@@ -124,6 +125,7 @@ require 'autosde_openapi_client/api/user_api'
|
|
124
125
|
require 'autosde_openapi_client/api/validate_system_api'
|
125
126
|
require 'autosde_openapi_client/api/volume_api'
|
126
127
|
require 'autosde_openapi_client/api/volume_clone_api'
|
128
|
+
require 'autosde_openapi_client/api/volume_migration_api'
|
127
129
|
|
128
130
|
module AutosdeOpenapiClient
|
129
131
|
class << self
|
@@ -75,7 +75,7 @@ describe 'StorageResourceApi' do
|
|
75
75
|
# unit tests for storage_resources_post
|
76
76
|
# @param storage_resource_create
|
77
77
|
# @param [Hash] opts the optional parameters
|
78
|
-
# @return [
|
78
|
+
# @return [AsyncResponse]
|
79
79
|
describe 'storage_resources_post test' do
|
80
80
|
it 'should work' do
|
81
81
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,45 @@
|
|
1
|
+
=begin
|
2
|
+
#Site Manager API
|
3
|
+
|
4
|
+
#Site Manager API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: autosde@il.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AutosdeOpenapiClient::VolumeMigrationApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'VolumeMigrationApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = AutosdeOpenapiClient::VolumeMigrationApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of VolumeMigrationApi' do
|
30
|
+
it 'should create an instance of VolumeMigrationApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::VolumeMigrationApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for volume_migration_post
|
36
|
+
# @param volume_migration
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [VolumeMigration]
|
39
|
+
describe 'volume_migration_post test' do
|
40
|
+
it 'should work' do
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -71,6 +71,12 @@ describe AutosdeOpenapiClient::ServiceCreate do
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
+
describe 'test attribute "resources"' do
|
75
|
+
it 'should work' do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
74
80
|
describe 'test attribute "uuid"' do
|
75
81
|
it 'should work' do
|
76
82
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -41,6 +41,18 @@ describe AutosdeOpenapiClient::StorageResourceCreate do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
describe 'test attribute "data_reduction"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "extent_size"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
44
56
|
describe 'test attribute "logical_free"' do
|
45
57
|
it 'should work' do
|
46
58
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -47,6 +47,18 @@ describe AutosdeOpenapiClient::StorageResourceResponse do
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
describe 'test attribute "data_reduction"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "extent_size"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
50
62
|
describe 'test attribute "logical_free"' do
|
51
63
|
it 'should work' do
|
52
64
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -41,6 +41,18 @@ describe AutosdeOpenapiClient::StorageResource do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
describe 'test attribute "data_reduction"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "extent_size"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
44
56
|
describe 'test attribute "logical_free"' do
|
45
57
|
it 'should work' do
|
46
58
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
#Site Manager API
|
3
|
+
|
4
|
+
#Site Manager API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: autosde@il.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AutosdeOpenapiClient::VolumeMigration
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::VolumeMigration do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::VolumeMigration.new }
|
22
|
+
|
23
|
+
describe 'test an instance of VolumeMigration' do
|
24
|
+
it 'should create an instance of VolumeMigration' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::VolumeMigration)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "source_volume_uuid"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "target_pool_uuid"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autosde_openapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -165,6 +165,8 @@ files:
|
|
165
165
|
- docs/VolumeClone.md
|
166
166
|
- docs/VolumeCloneApi.md
|
167
167
|
- docs/VolumeCreate.md
|
168
|
+
- docs/VolumeMigration.md
|
169
|
+
- docs/VolumeMigrationApi.md
|
168
170
|
- docs/VolumeResponse.md
|
169
171
|
- docs/VolumeUpdate.md
|
170
172
|
- git_push.sh
|
@@ -202,6 +204,7 @@ files:
|
|
202
204
|
- lib/autosde_openapi_client/api/validate_system_api.rb
|
203
205
|
- lib/autosde_openapi_client/api/volume_api.rb
|
204
206
|
- lib/autosde_openapi_client/api/volume_clone_api.rb
|
207
|
+
- lib/autosde_openapi_client/api/volume_migration_api.rb
|
205
208
|
- lib/autosde_openapi_client/api_client.rb
|
206
209
|
- lib/autosde_openapi_client/api_error.rb
|
207
210
|
- lib/autosde_openapi_client/configuration.rb
|
@@ -275,6 +278,7 @@ files:
|
|
275
278
|
- lib/autosde_openapi_client/models/volume.rb
|
276
279
|
- lib/autosde_openapi_client/models/volume_clone.rb
|
277
280
|
- lib/autosde_openapi_client/models/volume_create.rb
|
281
|
+
- lib/autosde_openapi_client/models/volume_migration.rb
|
278
282
|
- lib/autosde_openapi_client/models/volume_response.rb
|
279
283
|
- lib/autosde_openapi_client/models/volume_update.rb
|
280
284
|
- lib/autosde_openapi_client/version.rb
|
@@ -311,6 +315,7 @@ files:
|
|
311
315
|
- spec/api/validate_system_api_spec.rb
|
312
316
|
- spec/api/volume_api_spec.rb
|
313
317
|
- spec/api/volume_clone_api_spec.rb
|
318
|
+
- spec/api/volume_migration_api_spec.rb
|
314
319
|
- spec/api_client_spec.rb
|
315
320
|
- spec/configuration_spec.rb
|
316
321
|
- spec/models/abstract_capability_response_spec.rb
|
@@ -382,6 +387,7 @@ files:
|
|
382
387
|
- spec/models/validate_system_spec.rb
|
383
388
|
- spec/models/volume_clone_spec.rb
|
384
389
|
- spec/models/volume_create_spec.rb
|
390
|
+
- spec/models/volume_migration_spec.rb
|
385
391
|
- spec/models/volume_response_spec.rb
|
386
392
|
- spec/models/volume_spec.rb
|
387
393
|
- spec/models/volume_update_spec.rb
|
@@ -410,111 +416,113 @@ signing_key:
|
|
410
416
|
specification_version: 4
|
411
417
|
summary: Site Manager API Ruby Gem
|
412
418
|
test_files:
|
413
|
-
- spec/api/
|
414
|
-
- spec/api/address_api_spec.rb
|
419
|
+
- spec/api/refresh_system_api_spec.rb
|
415
420
|
- spec/api/storage_host_api_spec.rb
|
416
421
|
- spec/api/event_api_spec.rb
|
422
|
+
- spec/api/storage_resource_api_spec.rb
|
423
|
+
- spec/api/snapshot_api_spec.rb
|
424
|
+
- spec/api/service_abstract_capability_value_api_spec.rb
|
425
|
+
- spec/api/volume_migration_api_spec.rb
|
426
|
+
- spec/api/auto_sde_role_api_spec.rb
|
427
|
+
- spec/api/user_api_spec.rb
|
417
428
|
- spec/api/capability_translation_api_spec.rb
|
429
|
+
- spec/api/job_api_spec.rb
|
418
430
|
- spec/api/auto_sde_project_api_spec.rb
|
419
|
-
- spec/api/
|
431
|
+
- spec/api/native_capability_api_spec.rb
|
432
|
+
- spec/api/storage_hosts_mapping_api_spec.rb
|
433
|
+
- spec/api/host_cluster_membership_api_spec.rb
|
434
|
+
- spec/api/profile_api_spec.rb
|
435
|
+
- spec/api/volume_api_spec.rb
|
436
|
+
- spec/api/account_api_spec.rb
|
420
437
|
- spec/api/service_resource_attachment_api_spec.rb
|
421
|
-
- spec/api/snapshot_api_spec.rb
|
422
|
-
- spec/api/celery_config_api_spec.rb
|
423
|
-
- spec/api/abstract_capability_api_spec.rb
|
424
438
|
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
425
|
-
- spec/api/job_api_spec.rb
|
426
|
-
- spec/api/native_capability_api_spec.rb
|
427
|
-
- spec/api/storage_system_api_spec.rb
|
428
|
-
- spec/api/user_api_spec.rb
|
429
439
|
- spec/api/host_cluster_api_spec.rb
|
440
|
+
- spec/api/storage_system_api_spec.rb
|
441
|
+
- spec/api/service_api_spec.rb
|
442
|
+
- spec/api/validate_system_api_spec.rb
|
443
|
+
- spec/api/host_api_spec.rb
|
444
|
+
- spec/api/address_api_spec.rb
|
430
445
|
- spec/api/provisioning_strategy_api_spec.rb
|
431
|
-
- spec/api/
|
446
|
+
- spec/api/authentication_api_spec.rb
|
447
|
+
- spec/api/celery_config_api_spec.rb
|
432
448
|
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
433
|
-
- spec/api/system_type_api_spec.rb
|
434
|
-
- spec/api/account_api_spec.rb
|
435
|
-
- spec/api/service_abstract_capability_value_api_spec.rb
|
436
|
-
- spec/api/profile_api_spec.rb
|
437
|
-
- spec/api/refresh_system_api_spec.rb
|
438
|
-
- spec/api/host_cluster_membership_api_spec.rb
|
439
|
-
- spec/api/validate_system_api_spec.rb
|
440
449
|
- spec/api/volume_clone_api_spec.rb
|
441
|
-
- spec/api/
|
442
|
-
- spec/api/
|
443
|
-
- spec/api/
|
444
|
-
- spec/api/host_api_spec.rb
|
445
|
-
- spec/api/service_api_spec.rb
|
450
|
+
- spec/api/host_volume_connection_api_spec.rb
|
451
|
+
- spec/api/system_type_api_spec.rb
|
452
|
+
- spec/api/abstract_capability_api_spec.rb
|
446
453
|
- spec/api_client_spec.rb
|
447
454
|
- spec/configuration_spec.rb
|
448
|
-
- spec/models/
|
449
|
-
- spec/models/job_create_spec.rb
|
450
|
-
- spec/models/snapshot_spec.rb
|
451
|
-
- spec/models/celery_config_spec.rb
|
455
|
+
- spec/models/host_spec.rb
|
452
456
|
- spec/models/account_post_response_spec.rb
|
453
|
-
- spec/models/
|
454
|
-
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
455
|
-
- spec/models/service_spec.rb
|
456
|
-
- spec/models/async_response_spec.rb
|
457
|
-
- spec/models/system_type_spec.rb
|
457
|
+
- spec/models/user_spec.rb
|
458
458
|
- spec/models/host_cluster_membership_spec.rb
|
459
|
+
- spec/models/storage_system_update_spec.rb
|
459
460
|
- spec/models/service_create_spec.rb
|
460
|
-
- spec/models/
|
461
|
+
- spec/models/system_type_spec.rb
|
462
|
+
- spec/models/storage_system_create_spec.rb
|
463
|
+
- spec/models/capability_translation_spec.rb
|
464
|
+
- spec/models/storage_system_response_spec.rb
|
465
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
466
|
+
- spec/models/service_abstract_capability_value_response_spec.rb
|
467
|
+
- spec/models/service_spec.rb
|
468
|
+
- spec/models/address_create_spec.rb
|
469
|
+
- spec/models/host_create_spec.rb
|
470
|
+
- spec/models/volume_response_spec.rb
|
471
|
+
- spec/models/system_type_create_spec.rb
|
472
|
+
- spec/models/storage_hosts_mapping_response_spec.rb
|
473
|
+
- spec/models/storage_resource_response_spec.rb
|
461
474
|
- spec/models/event_response_spec.rb
|
475
|
+
- spec/models/event_spec.rb
|
476
|
+
- spec/models/auth_response_spec.rb
|
477
|
+
- spec/models/storage_resource_spec.rb
|
478
|
+
- spec/models/snapshot_response_spec.rb
|
479
|
+
- spec/models/snapshot_spec.rb
|
480
|
+
- spec/models/storage_resource_update_spec.rb
|
481
|
+
- spec/models/validate_system_spec.rb
|
482
|
+
- spec/models/service_resource_attachment_response_spec.rb
|
483
|
+
- spec/models/async_response_spec.rb
|
484
|
+
- spec/models/provisioning_strategy_spec.rb
|
462
485
|
- spec/models/address_spec.rb
|
463
|
-
- spec/models/
|
486
|
+
- spec/models/account_spec.rb
|
487
|
+
- spec/models/job_create_spec.rb
|
488
|
+
- spec/models/capability_translation_create_spec.rb
|
489
|
+
- spec/models/volume_migration_spec.rb
|
490
|
+
- spec/models/profile_spec.rb
|
491
|
+
- spec/models/host_cluster_spec.rb
|
492
|
+
- spec/models/refresh_system_spec.rb
|
464
493
|
- spec/models/authentication_spec.rb
|
465
|
-
- spec/models/
|
466
|
-
- spec/models/storage_system_response_spec.rb
|
467
|
-
- spec/models/storage_resource_update_spec.rb
|
468
|
-
- spec/models/auto_sde_project_spec.rb
|
469
|
-
- spec/models/system_type_response_spec.rb
|
494
|
+
- spec/models/abstract_capability_spec.rb
|
470
495
|
- spec/models/native_capability_spec.rb
|
496
|
+
- spec/models/service_resource_attachment_spec.rb
|
497
|
+
- spec/models/account_post_request_spec.rb
|
471
498
|
- spec/models/host_cluster_volume_mapping_spec.rb
|
472
|
-
- spec/models/
|
499
|
+
- spec/models/celery_config_spec.rb
|
500
|
+
- spec/models/storage_host_spec.rb
|
501
|
+
- spec/models/storage_host_create_spec.rb
|
502
|
+
- spec/models/storage_host_response_spec.rb
|
503
|
+
- spec/models/auto_sde_project_spec.rb
|
473
504
|
- spec/models/storage_hosts_mapping_create_spec.rb
|
474
|
-
- spec/models/
|
475
|
-
- spec/models/snapshot_response_spec.rb
|
505
|
+
- spec/models/host_volume_connection_spec.rb
|
476
506
|
- spec/models/host_volume_connection_create_spec.rb
|
507
|
+
- spec/models/user_create_spec.rb
|
477
508
|
- spec/models/job_spec.rb
|
478
|
-
- spec/models/
|
479
|
-
- spec/models/
|
480
|
-
- spec/models/
|
481
|
-
- spec/models/
|
482
|
-
- spec/models/volume_clone_spec.rb
|
483
|
-
- spec/models/storage_hosts_mapping_spec.rb
|
484
|
-
- spec/models/auth_response_spec.rb
|
485
|
-
- spec/models/volume_spec.rb
|
486
|
-
- spec/models/capability_translation_create_spec.rb
|
487
|
-
- spec/models/service_response_spec.rb
|
488
|
-
- spec/models/host_create_spec.rb
|
509
|
+
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
510
|
+
- spec/models/volume_update_spec.rb
|
511
|
+
- spec/models/host_cluster_response_spec.rb
|
512
|
+
- spec/models/storage_system_spec.rb
|
489
513
|
- spec/models/abstract_capability_response_spec.rb
|
490
|
-
- spec/models/
|
491
|
-
- spec/models/storage_host_wwpn_candidates_spec.rb
|
492
|
-
- spec/models/snapshot_create_spec.rb
|
514
|
+
- spec/models/volume_clone_spec.rb
|
493
515
|
- spec/models/storage_host_update_spec.rb
|
494
|
-
- spec/models/
|
495
|
-
- spec/models/address_create_spec.rb
|
496
|
-
- spec/models/storage_system_create_spec.rb
|
497
|
-
- spec/models/volume_create_spec.rb
|
498
|
-
- spec/models/service_resource_attachment_spec.rb
|
499
|
-
- spec/models/refresh_system_spec.rb
|
500
|
-
- spec/models/user_create_spec.rb
|
501
|
-
- spec/models/host_cluster_spec.rb
|
502
|
-
- spec/models/storage_system_spec.rb
|
516
|
+
- spec/models/service_response_spec.rb
|
503
517
|
- spec/models/auto_sde_role_spec.rb
|
504
|
-
- spec/models/
|
505
|
-
- spec/models/
|
506
|
-
- spec/models/
|
507
|
-
- spec/models/host_cluster_create_spec.rb
|
518
|
+
- spec/models/user_update_spec.rb
|
519
|
+
- spec/models/snapshot_create_spec.rb
|
520
|
+
- spec/models/volume_spec.rb
|
508
521
|
- spec/models/service_abstract_capability_value_spec.rb
|
509
522
|
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
510
|
-
- spec/models/
|
511
|
-
- spec/models/
|
512
|
-
- spec/models/
|
513
|
-
- spec/models/
|
514
|
-
- spec/models/
|
515
|
-
- spec/models/host_volume_connection_spec.rb
|
516
|
-
- spec/models/user_spec.rb
|
517
|
-
- spec/models/capability_translation_spec.rb
|
518
|
-
- spec/models/volume_update_spec.rb
|
519
|
-
- spec/models/system_type_create_spec.rb
|
523
|
+
- spec/models/system_type_response_spec.rb
|
524
|
+
- spec/models/volume_create_spec.rb
|
525
|
+
- spec/models/host_cluster_create_spec.rb
|
526
|
+
- spec/models/storage_resource_create_spec.rb
|
527
|
+
- spec/models/storage_hosts_mapping_spec.rb
|
520
528
|
- spec/spec_helper.rb
|