autosde_openapi_client 2.2.4 → 2.2.6
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/Volume.md +2 -0
- data/docs/VolumeClone.md +20 -0
- data/docs/VolumeCloneApi.md +75 -0
- data/docs/VolumeCreate.md +2 -0
- data/docs/VolumeResponse.md +2 -0
- data/lib/autosde_openapi_client/api/volume_clone_api.rb +83 -0
- data/lib/autosde_openapi_client/models/refresh_system.rb +2 -2
- data/lib/autosde_openapi_client/models/volume.rb +15 -3
- data/lib/autosde_openapi_client/models/volume_clone.rb +229 -0
- data/lib/autosde_openapi_client/models/volume_create.rb +15 -3
- data/lib/autosde_openapi_client/models/volume_response.rb +15 -3
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +2 -0
- data/spec/api/volume_clone_api_spec.rb +45 -0
- data/spec/models/refresh_system_spec.rb +1 -1
- data/spec/models/volume_clone_spec.rb +40 -0
- data/spec/models/volume_create_spec.rb +7 -1
- data/spec/models/volume_response_spec.rb +7 -1
- data/spec/models/volume_spec.rb +7 -1
- 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: d1f7dc8bbc0b1fb989a7d61639753a4a9049cc1d1c708d9384febcc6e1d7dba6
|
|
4
|
+
data.tar.gz: d919434746603eef0e930bbdaf7e97b7899fa0b05bc9a38ba0e8df0e213baef3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1900acdeeff8292a4da6113d493d260fcdc7602a66e2e01bbfd61c5bb572606e2c0c4f4f2122dbaf041d726d33cc98674ac3f98bf8c81a6ddb08ce7709192a08
|
|
7
|
+
data.tar.gz: 87494a2c9d63a231925b83978e7e1837620a64b778aedecb58c1fef356e74d2156d7c6520ee498beda600151d90f0611319d93855d13859e791e524f859cf376
|
data/README.md
CHANGED
|
@@ -200,6 +200,7 @@ Class | Method | HTTP request | Description
|
|
|
200
200
|
*AutosdeOpenapiClient::VolumeApi* | [**volumes_pk_get**](docs/VolumeApi.md#volumes_pk_get) | **GET** /volumes/{pk} |
|
|
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
|
+
*AutosdeOpenapiClient::VolumeCloneApi* | [**volume_clone_post**](docs/VolumeCloneApi.md#volume_clone_post) | **POST** /volume-clone |
|
|
203
204
|
|
|
204
205
|
|
|
205
206
|
## Documentation for Models
|
|
@@ -271,6 +272,7 @@ Class | Method | HTTP request | Description
|
|
|
271
272
|
- [AutosdeOpenapiClient::UserUpdate](docs/UserUpdate.md)
|
|
272
273
|
- [AutosdeOpenapiClient::ValidateSystem](docs/ValidateSystem.md)
|
|
273
274
|
- [AutosdeOpenapiClient::Volume](docs/Volume.md)
|
|
275
|
+
- [AutosdeOpenapiClient::VolumeClone](docs/VolumeClone.md)
|
|
274
276
|
- [AutosdeOpenapiClient::VolumeCreate](docs/VolumeCreate.md)
|
|
275
277
|
- [AutosdeOpenapiClient::VolumeResponse](docs/VolumeResponse.md)
|
|
276
278
|
- [AutosdeOpenapiClient::VolumeUpdate](docs/VolumeUpdate.md)
|
data/docs/Volume.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **compliant** | **Boolean** | compliant | [optional][default to false] |
|
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
|
9
|
+
| **fc_map_count** | **Integer** | fc_map_count | [optional][default to 0] |
|
|
9
10
|
| **historical_service** | [**Service**](Service.md) | | [optional] |
|
|
10
11
|
| **name** | **String** | name | [optional] |
|
|
11
12
|
| **service** | [**Service**](Service.md) | | [optional] |
|
|
@@ -24,6 +25,7 @@ require 'autosde_openapi_client'
|
|
|
24
25
|
instance = AutosdeOpenapiClient::Volume.new(
|
|
25
26
|
compliant: null,
|
|
26
27
|
component_state: null,
|
|
28
|
+
fc_map_count: null,
|
|
27
29
|
historical_service: null,
|
|
28
30
|
name: null,
|
|
29
31
|
service: null,
|
data/docs/VolumeClone.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AutosdeOpenapiClient::VolumeClone
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | name | [optional] |
|
|
8
|
+
| **volume** | [**Volume**](Volume.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'autosde_openapi_client'
|
|
14
|
+
|
|
15
|
+
instance = AutosdeOpenapiClient::VolumeClone.new(
|
|
16
|
+
name: null,
|
|
17
|
+
volume: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# AutosdeOpenapiClient::VolumeCloneApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**volume_clone_post**](VolumeCloneApi.md#volume_clone_post) | **POST** /volume-clone | |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## volume_clone_post
|
|
11
|
+
|
|
12
|
+
> <VolumeClone> volume_clone_post(volume_clone)
|
|
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::VolumeCloneApi.new
|
|
28
|
+
volume_clone = AutosdeOpenapiClient::VolumeClone.new # VolumeClone |
|
|
29
|
+
|
|
30
|
+
begin
|
|
31
|
+
|
|
32
|
+
result = api_instance.volume_clone_post(volume_clone)
|
|
33
|
+
p result
|
|
34
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
|
35
|
+
puts "Error when calling VolumeCloneApi->volume_clone_post: #{e}"
|
|
36
|
+
end
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Using the volume_clone_post_with_http_info variant
|
|
40
|
+
|
|
41
|
+
This returns an Array which contains the response data, status code and headers.
|
|
42
|
+
|
|
43
|
+
> <Array(<VolumeClone>, Integer, Hash)> volume_clone_post_with_http_info(volume_clone)
|
|
44
|
+
|
|
45
|
+
```ruby
|
|
46
|
+
begin
|
|
47
|
+
|
|
48
|
+
data, status_code, headers = api_instance.volume_clone_post_with_http_info(volume_clone)
|
|
49
|
+
p status_code # => 2xx
|
|
50
|
+
p headers # => { ... }
|
|
51
|
+
p data # => <VolumeClone>
|
|
52
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
|
53
|
+
puts "Error when calling VolumeCloneApi->volume_clone_post_with_http_info: #{e}"
|
|
54
|
+
end
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Parameters
|
|
58
|
+
|
|
59
|
+
| Name | Type | Description | Notes |
|
|
60
|
+
| ---- | ---- | ----------- | ----- |
|
|
61
|
+
| **volume_clone** | [**VolumeClone**](VolumeClone.md) | | |
|
|
62
|
+
|
|
63
|
+
### Return type
|
|
64
|
+
|
|
65
|
+
[**VolumeClone**](VolumeClone.md)
|
|
66
|
+
|
|
67
|
+
### Authorization
|
|
68
|
+
|
|
69
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
70
|
+
|
|
71
|
+
### HTTP request headers
|
|
72
|
+
|
|
73
|
+
- **Content-Type**: application/json
|
|
74
|
+
- **Accept**: */*
|
|
75
|
+
|
data/docs/VolumeCreate.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **compliant** | **Boolean** | compliant | [optional][default to false] |
|
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
|
9
9
|
| **count** | **Integer** | count | [optional][default to 1] |
|
|
10
|
+
| **fc_map_count** | **Integer** | fc_map_count | [optional][default to 0] |
|
|
10
11
|
| **name** | **String** | name | [optional] |
|
|
11
12
|
| **resources** | **Array<String>** | resources | [optional] |
|
|
12
13
|
| **service** | [**Service**](Service.md) | | [optional] |
|
|
@@ -26,6 +27,7 @@ instance = AutosdeOpenapiClient::VolumeCreate.new(
|
|
|
26
27
|
compliant: null,
|
|
27
28
|
component_state: null,
|
|
28
29
|
count: null,
|
|
30
|
+
fc_map_count: null,
|
|
29
31
|
name: null,
|
|
30
32
|
resources: null,
|
|
31
33
|
service: null,
|
data/docs/VolumeResponse.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **compliant** | **Boolean** | compliant | [optional][default to false] |
|
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
|
9
|
+
| **fc_map_count** | **Integer** | fc_map_count | [optional][default to 0] |
|
|
9
10
|
| **historical_service** | [**Service**](Service.md) | | [optional] |
|
|
10
11
|
| **name** | **String** | name | [optional] |
|
|
11
12
|
| **service** | **String** | !!uuid of service | [optional] |
|
|
@@ -24,6 +25,7 @@ require 'autosde_openapi_client'
|
|
|
24
25
|
instance = AutosdeOpenapiClient::VolumeResponse.new(
|
|
25
26
|
compliant: null,
|
|
26
27
|
component_state: null,
|
|
28
|
+
fc_map_count: null,
|
|
27
29
|
historical_service: null,
|
|
28
30
|
name: null,
|
|
29
31
|
service: null,
|
|
@@ -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 VolumeCloneApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param volume_clone [VolumeClone]
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @return [VolumeClone]
|
|
25
|
+
def volume_clone_post(volume_clone, opts = {})
|
|
26
|
+
data, _status_code, _headers = volume_clone_post_with_http_info(volume_clone, opts)
|
|
27
|
+
data
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# @param volume_clone [VolumeClone]
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(VolumeClone, Integer, Hash)>] VolumeClone data, response status code and response headers
|
|
33
|
+
def volume_clone_post_with_http_info(volume_clone, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: VolumeCloneApi.volume_clone_post ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'volume_clone' is set
|
|
38
|
+
if @api_client.config.client_side_validation && volume_clone.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'volume_clone' when calling VolumeCloneApi.volume_clone_post"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/volume-clone'
|
|
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_clone)
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type] || 'VolumeClone'
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"VolumeCloneApi.volume_clone_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: VolumeCloneApi#volume_clone_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -104,7 +104,7 @@ module AutosdeOpenapiClient
|
|
|
104
104
|
# Check to see if the all the properties in the model are valid
|
|
105
105
|
# @return true if the model is valid
|
|
106
106
|
def valid?
|
|
107
|
-
resource_type_validator = EnumAttributeValidator.new('String', ["system_resources", "
|
|
107
|
+
resource_type_validator = EnumAttributeValidator.new('String', ["system_resources", "volumes_and_snapshots", "hosts", "events"])
|
|
108
108
|
return false unless resource_type_validator.valid?(@resource_type)
|
|
109
109
|
true
|
|
110
110
|
end
|
|
@@ -112,7 +112,7 @@ module AutosdeOpenapiClient
|
|
|
112
112
|
# Custom attribute writer method checking allowed values (enum).
|
|
113
113
|
# @param [Object] resource_type Object to be assigned
|
|
114
114
|
def resource_type=(resource_type)
|
|
115
|
-
validator = EnumAttributeValidator.new('String', ["system_resources", "
|
|
115
|
+
validator = EnumAttributeValidator.new('String', ["system_resources", "volumes_and_snapshots", "hosts", "events"])
|
|
116
116
|
unless validator.valid?(resource_type)
|
|
117
117
|
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{validator.allowable_values}."
|
|
118
118
|
end
|
|
@@ -22,6 +22,9 @@ module AutosdeOpenapiClient
|
|
|
22
22
|
# component_state
|
|
23
23
|
attr_accessor :component_state
|
|
24
24
|
|
|
25
|
+
# fc_map_count
|
|
26
|
+
attr_accessor :fc_map_count
|
|
27
|
+
|
|
25
28
|
attr_accessor :historical_service
|
|
26
29
|
|
|
27
30
|
# name
|
|
@@ -73,6 +76,7 @@ module AutosdeOpenapiClient
|
|
|
73
76
|
{
|
|
74
77
|
:'compliant' => :'compliant',
|
|
75
78
|
:'component_state' => :'component_state',
|
|
79
|
+
:'fc_map_count' => :'fc_map_count',
|
|
76
80
|
:'historical_service' => :'historical_service',
|
|
77
81
|
:'name' => :'name',
|
|
78
82
|
:'service' => :'service',
|
|
@@ -95,6 +99,7 @@ module AutosdeOpenapiClient
|
|
|
95
99
|
{
|
|
96
100
|
:'compliant' => :'Boolean',
|
|
97
101
|
:'component_state' => :'String',
|
|
102
|
+
:'fc_map_count' => :'Integer',
|
|
98
103
|
:'historical_service' => :'Service',
|
|
99
104
|
:'name' => :'String',
|
|
100
105
|
:'service' => :'Service',
|
|
@@ -138,6 +143,12 @@ module AutosdeOpenapiClient
|
|
|
138
143
|
self.component_state = attributes[:'component_state']
|
|
139
144
|
end
|
|
140
145
|
|
|
146
|
+
if attributes.key?(:'fc_map_count')
|
|
147
|
+
self.fc_map_count = attributes[:'fc_map_count']
|
|
148
|
+
else
|
|
149
|
+
self.fc_map_count = 0
|
|
150
|
+
end
|
|
151
|
+
|
|
141
152
|
if attributes.key?(:'historical_service')
|
|
142
153
|
self.historical_service = attributes[:'historical_service']
|
|
143
154
|
end
|
|
@@ -189,7 +200,7 @@ module AutosdeOpenapiClient
|
|
|
189
200
|
# Check to see if the all the properties in the model are valid
|
|
190
201
|
# @return true if the model is valid
|
|
191
202
|
def valid?
|
|
192
|
-
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
203
|
+
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
|
|
193
204
|
return false unless component_state_validator.valid?(@component_state)
|
|
194
205
|
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
|
195
206
|
true
|
|
@@ -198,7 +209,7 @@ module AutosdeOpenapiClient
|
|
|
198
209
|
# Custom attribute writer method checking allowed values (enum).
|
|
199
210
|
# @param [Object] component_state Object to be assigned
|
|
200
211
|
def component_state=(component_state)
|
|
201
|
-
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
212
|
+
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
|
|
202
213
|
unless validator.valid?(component_state)
|
|
203
214
|
fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
|
|
204
215
|
end
|
|
@@ -212,6 +223,7 @@ module AutosdeOpenapiClient
|
|
|
212
223
|
self.class == o.class &&
|
|
213
224
|
compliant == o.compliant &&
|
|
214
225
|
component_state == o.component_state &&
|
|
226
|
+
fc_map_count == o.fc_map_count &&
|
|
215
227
|
historical_service == o.historical_service &&
|
|
216
228
|
name == o.name &&
|
|
217
229
|
service == o.service &&
|
|
@@ -232,7 +244,7 @@ module AutosdeOpenapiClient
|
|
|
232
244
|
# Calculates hash code according to all attributes.
|
|
233
245
|
# @return [Integer] Hash code
|
|
234
246
|
def hash
|
|
235
|
-
[compliant, component_state, historical_service, name, service, size, status, storage_resource, unmapped_since, uuid, volume_name].hash
|
|
247
|
+
[compliant, component_state, fc_map_count, historical_service, name, service, size, status, storage_resource, unmapped_since, uuid, volume_name].hash
|
|
236
248
|
end
|
|
237
249
|
|
|
238
250
|
# Builds the object from hash
|
|
@@ -0,0 +1,229 @@
|
|
|
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
|
+
# this is a clone of a given volume
|
|
18
|
+
class VolumeClone
|
|
19
|
+
# name
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
22
|
+
attr_accessor :volume
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'name' => :'name',
|
|
28
|
+
:'volume' => :'volume'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'name' => :'String',
|
|
41
|
+
:'volume' => :'Volume'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# List of attributes with nullable: true
|
|
46
|
+
def self.openapi_nullable
|
|
47
|
+
Set.new([
|
|
48
|
+
])
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Initializes the object
|
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::VolumeClone` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::VolumeClone`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'name')
|
|
67
|
+
self.name = attributes[:'name']
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'volume')
|
|
71
|
+
self.volume = attributes[:'volume']
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
77
|
+
def list_invalid_properties
|
|
78
|
+
invalid_properties = Array.new
|
|
79
|
+
invalid_properties
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Check to see if the all the properties in the model are valid
|
|
83
|
+
# @return true if the model is valid
|
|
84
|
+
def valid?
|
|
85
|
+
true
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param [Object] Object to be compared
|
|
90
|
+
def ==(o)
|
|
91
|
+
return true if self.equal?(o)
|
|
92
|
+
self.class == o.class &&
|
|
93
|
+
name == o.name &&
|
|
94
|
+
volume == o.volume
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# @see the `==` method
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def eql?(o)
|
|
100
|
+
self == o
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Calculates hash code according to all attributes.
|
|
104
|
+
# @return [Integer] Hash code
|
|
105
|
+
def hash
|
|
106
|
+
[name, volume].hash
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Builds the object from hash
|
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
111
|
+
# @return [Object] Returns the model itself
|
|
112
|
+
def self.build_from_hash(attributes)
|
|
113
|
+
new.build_from_hash(attributes)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Builds the object from hash
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
# @return [Object] Returns the model itself
|
|
119
|
+
def build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
122
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
123
|
+
self.send("#{key}=", nil)
|
|
124
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
125
|
+
# check to ensure the input is an array given that the attribute
|
|
126
|
+
# is documented as an array but the input is not
|
|
127
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
129
|
+
end
|
|
130
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
131
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
self
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Deserializes the data based on type
|
|
139
|
+
# @param string type Data type
|
|
140
|
+
# @param string value Value to be deserialized
|
|
141
|
+
# @return [Object] Deserialized data
|
|
142
|
+
def _deserialize(type, value)
|
|
143
|
+
case type.to_sym
|
|
144
|
+
when :Time
|
|
145
|
+
Time.parse(value)
|
|
146
|
+
when :Date
|
|
147
|
+
Date.parse(value)
|
|
148
|
+
when :String
|
|
149
|
+
value.to_s
|
|
150
|
+
when :Integer
|
|
151
|
+
value.to_i
|
|
152
|
+
when :Float
|
|
153
|
+
value.to_f
|
|
154
|
+
when :Boolean
|
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
156
|
+
true
|
|
157
|
+
else
|
|
158
|
+
false
|
|
159
|
+
end
|
|
160
|
+
when :Object
|
|
161
|
+
# generic object (usually a Hash), return directly
|
|
162
|
+
value
|
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
|
169
|
+
{}.tap do |hash|
|
|
170
|
+
value.each do |k, v|
|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
else # model
|
|
175
|
+
# models (e.g. Pet) or oneOf
|
|
176
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
177
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Returns the string representation of the object
|
|
182
|
+
# @return [String] String presentation of the object
|
|
183
|
+
def to_s
|
|
184
|
+
to_hash.to_s
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
|
189
|
+
def to_body
|
|
190
|
+
to_hash
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Returns the object in the form of hash
|
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
|
195
|
+
def to_hash
|
|
196
|
+
hash = {}
|
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
198
|
+
value = self.send(attr)
|
|
199
|
+
if value.nil?
|
|
200
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
201
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
hash[param] = _to_hash(value)
|
|
205
|
+
end
|
|
206
|
+
hash
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Outputs non-array value in the form of hash
|
|
210
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
211
|
+
# @param [Object] value Any valid value
|
|
212
|
+
# @return [Hash] Returns the value in the form of hash
|
|
213
|
+
def _to_hash(value)
|
|
214
|
+
if value.is_a?(Array)
|
|
215
|
+
value.compact.map { |v| _to_hash(v) }
|
|
216
|
+
elsif value.is_a?(Hash)
|
|
217
|
+
{}.tap do |hash|
|
|
218
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
219
|
+
end
|
|
220
|
+
elsif value.respond_to? :to_hash
|
|
221
|
+
value.to_hash
|
|
222
|
+
else
|
|
223
|
+
value
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
end
|
|
@@ -25,6 +25,9 @@ module AutosdeOpenapiClient
|
|
|
25
25
|
# count
|
|
26
26
|
attr_accessor :count
|
|
27
27
|
|
|
28
|
+
# fc_map_count
|
|
29
|
+
attr_accessor :fc_map_count
|
|
30
|
+
|
|
28
31
|
# name
|
|
29
32
|
attr_accessor :name
|
|
30
33
|
|
|
@@ -79,6 +82,7 @@ module AutosdeOpenapiClient
|
|
|
79
82
|
:'compliant' => :'compliant',
|
|
80
83
|
:'component_state' => :'component_state',
|
|
81
84
|
:'count' => :'count',
|
|
85
|
+
:'fc_map_count' => :'fc_map_count',
|
|
82
86
|
:'name' => :'name',
|
|
83
87
|
:'resources' => :'resources',
|
|
84
88
|
:'service' => :'service',
|
|
@@ -102,6 +106,7 @@ module AutosdeOpenapiClient
|
|
|
102
106
|
:'compliant' => :'Boolean',
|
|
103
107
|
:'component_state' => :'String',
|
|
104
108
|
:'count' => :'Integer',
|
|
109
|
+
:'fc_map_count' => :'Integer',
|
|
105
110
|
:'name' => :'String',
|
|
106
111
|
:'resources' => :'Array<String>',
|
|
107
112
|
:'service' => :'Service',
|
|
@@ -151,6 +156,12 @@ module AutosdeOpenapiClient
|
|
|
151
156
|
self.count = 1
|
|
152
157
|
end
|
|
153
158
|
|
|
159
|
+
if attributes.key?(:'fc_map_count')
|
|
160
|
+
self.fc_map_count = attributes[:'fc_map_count']
|
|
161
|
+
else
|
|
162
|
+
self.fc_map_count = 0
|
|
163
|
+
end
|
|
164
|
+
|
|
154
165
|
if attributes.key?(:'name')
|
|
155
166
|
self.name = attributes[:'name']
|
|
156
167
|
end
|
|
@@ -206,7 +217,7 @@ module AutosdeOpenapiClient
|
|
|
206
217
|
# Check to see if the all the properties in the model are valid
|
|
207
218
|
# @return true if the model is valid
|
|
208
219
|
def valid?
|
|
209
|
-
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
220
|
+
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
|
|
210
221
|
return false unless component_state_validator.valid?(@component_state)
|
|
211
222
|
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
|
212
223
|
true
|
|
@@ -215,7 +226,7 @@ module AutosdeOpenapiClient
|
|
|
215
226
|
# Custom attribute writer method checking allowed values (enum).
|
|
216
227
|
# @param [Object] component_state Object to be assigned
|
|
217
228
|
def component_state=(component_state)
|
|
218
|
-
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
229
|
+
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
|
|
219
230
|
unless validator.valid?(component_state)
|
|
220
231
|
fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
|
|
221
232
|
end
|
|
@@ -230,6 +241,7 @@ module AutosdeOpenapiClient
|
|
|
230
241
|
compliant == o.compliant &&
|
|
231
242
|
component_state == o.component_state &&
|
|
232
243
|
count == o.count &&
|
|
244
|
+
fc_map_count == o.fc_map_count &&
|
|
233
245
|
name == o.name &&
|
|
234
246
|
resources == o.resources &&
|
|
235
247
|
service == o.service &&
|
|
@@ -250,7 +262,7 @@ module AutosdeOpenapiClient
|
|
|
250
262
|
# Calculates hash code according to all attributes.
|
|
251
263
|
# @return [Integer] Hash code
|
|
252
264
|
def hash
|
|
253
|
-
[compliant, component_state, count, name, resources, service, service_name, size, status, unmapped_since, uuid, volume_name].hash
|
|
265
|
+
[compliant, component_state, count, fc_map_count, name, resources, service, service_name, size, status, unmapped_since, uuid, volume_name].hash
|
|
254
266
|
end
|
|
255
267
|
|
|
256
268
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module AutosdeOpenapiClient
|
|
|
22
22
|
# component_state
|
|
23
23
|
attr_accessor :component_state
|
|
24
24
|
|
|
25
|
+
# fc_map_count
|
|
26
|
+
attr_accessor :fc_map_count
|
|
27
|
+
|
|
25
28
|
attr_accessor :historical_service
|
|
26
29
|
|
|
27
30
|
# name
|
|
@@ -75,6 +78,7 @@ module AutosdeOpenapiClient
|
|
|
75
78
|
{
|
|
76
79
|
:'compliant' => :'compliant',
|
|
77
80
|
:'component_state' => :'component_state',
|
|
81
|
+
:'fc_map_count' => :'fc_map_count',
|
|
78
82
|
:'historical_service' => :'historical_service',
|
|
79
83
|
:'name' => :'name',
|
|
80
84
|
:'service' => :'service',
|
|
@@ -97,6 +101,7 @@ module AutosdeOpenapiClient
|
|
|
97
101
|
{
|
|
98
102
|
:'compliant' => :'Boolean',
|
|
99
103
|
:'component_state' => :'String',
|
|
104
|
+
:'fc_map_count' => :'Integer',
|
|
100
105
|
:'historical_service' => :'Service',
|
|
101
106
|
:'name' => :'String',
|
|
102
107
|
:'service' => :'String',
|
|
@@ -140,6 +145,12 @@ module AutosdeOpenapiClient
|
|
|
140
145
|
self.component_state = attributes[:'component_state']
|
|
141
146
|
end
|
|
142
147
|
|
|
148
|
+
if attributes.key?(:'fc_map_count')
|
|
149
|
+
self.fc_map_count = attributes[:'fc_map_count']
|
|
150
|
+
else
|
|
151
|
+
self.fc_map_count = 0
|
|
152
|
+
end
|
|
153
|
+
|
|
143
154
|
if attributes.key?(:'historical_service')
|
|
144
155
|
self.historical_service = attributes[:'historical_service']
|
|
145
156
|
end
|
|
@@ -191,7 +202,7 @@ module AutosdeOpenapiClient
|
|
|
191
202
|
# Check to see if the all the properties in the model are valid
|
|
192
203
|
# @return true if the model is valid
|
|
193
204
|
def valid?
|
|
194
|
-
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
205
|
+
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
|
|
195
206
|
return false unless component_state_validator.valid?(@component_state)
|
|
196
207
|
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
|
197
208
|
true
|
|
@@ -200,7 +211,7 @@ module AutosdeOpenapiClient
|
|
|
200
211
|
# Custom attribute writer method checking allowed values (enum).
|
|
201
212
|
# @param [Object] component_state Object to be assigned
|
|
202
213
|
def component_state=(component_state)
|
|
203
|
-
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
214
|
+
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
|
|
204
215
|
unless validator.valid?(component_state)
|
|
205
216
|
fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
|
|
206
217
|
end
|
|
@@ -214,6 +225,7 @@ module AutosdeOpenapiClient
|
|
|
214
225
|
self.class == o.class &&
|
|
215
226
|
compliant == o.compliant &&
|
|
216
227
|
component_state == o.component_state &&
|
|
228
|
+
fc_map_count == o.fc_map_count &&
|
|
217
229
|
historical_service == o.historical_service &&
|
|
218
230
|
name == o.name &&
|
|
219
231
|
service == o.service &&
|
|
@@ -234,7 +246,7 @@ module AutosdeOpenapiClient
|
|
|
234
246
|
# Calculates hash code according to all attributes.
|
|
235
247
|
# @return [Integer] Hash code
|
|
236
248
|
def hash
|
|
237
|
-
[compliant, component_state, historical_service, name, service, size, status, storage_resource, unmapped_since, uuid, volume_name].hash
|
|
249
|
+
[compliant, component_state, fc_map_count, historical_service, name, service, size, status, storage_resource, unmapped_since, uuid, volume_name].hash
|
|
238
250
|
end
|
|
239
251
|
|
|
240
252
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Site Manager API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.6
|
|
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.2.
|
|
14
|
+
VERSION = '2.2.6'
|
|
15
15
|
end
|
|
@@ -84,6 +84,7 @@ require 'autosde_openapi_client/models/user_create'
|
|
|
84
84
|
require 'autosde_openapi_client/models/user_update'
|
|
85
85
|
require 'autosde_openapi_client/models/validate_system'
|
|
86
86
|
require 'autosde_openapi_client/models/volume'
|
|
87
|
+
require 'autosde_openapi_client/models/volume_clone'
|
|
87
88
|
require 'autosde_openapi_client/models/volume_create'
|
|
88
89
|
require 'autosde_openapi_client/models/volume_response'
|
|
89
90
|
require 'autosde_openapi_client/models/volume_update'
|
|
@@ -121,6 +122,7 @@ require 'autosde_openapi_client/api/system_type_api'
|
|
|
121
122
|
require 'autosde_openapi_client/api/user_api'
|
|
122
123
|
require 'autosde_openapi_client/api/validate_system_api'
|
|
123
124
|
require 'autosde_openapi_client/api/volume_api'
|
|
125
|
+
require 'autosde_openapi_client/api/volume_clone_api'
|
|
124
126
|
|
|
125
127
|
module AutosdeOpenapiClient
|
|
126
128
|
class << self
|
|
@@ -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::VolumeCloneApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'VolumeCloneApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = AutosdeOpenapiClient::VolumeCloneApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of VolumeCloneApi' do
|
|
30
|
+
it 'should create an instance of VolumeCloneApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::VolumeCloneApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for volume_clone_post
|
|
36
|
+
# @param volume_clone
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [VolumeClone]
|
|
39
|
+
describe 'volume_clone_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
|
|
@@ -28,7 +28,7 @@ describe AutosdeOpenapiClient::RefreshSystem do
|
|
|
28
28
|
describe 'test attribute "resource_type"' do
|
|
29
29
|
it 'should work' do
|
|
30
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system_resources", "
|
|
31
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system_resources", "volumes_and_snapshots", "hosts", "events"])
|
|
32
32
|
# validator.allowable_values.each do |value|
|
|
33
33
|
# expect { instance.resource_type = value }.not_to raise_error
|
|
34
34
|
# end
|
|
@@ -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::VolumeClone
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe AutosdeOpenapiClient::VolumeClone do
|
|
21
|
+
let(:instance) { AutosdeOpenapiClient::VolumeClone.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of VolumeClone' do
|
|
24
|
+
it 'should create an instance of VolumeClone' do
|
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::VolumeClone)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "name"' 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 "volume"' 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
|
|
@@ -34,7 +34,7 @@ describe AutosdeOpenapiClient::VolumeCreate do
|
|
|
34
34
|
describe 'test attribute "component_state"' do
|
|
35
35
|
it 'should work' do
|
|
36
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
37
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
|
|
38
38
|
# validator.allowable_values.each do |value|
|
|
39
39
|
# expect { instance.component_state = value }.not_to raise_error
|
|
40
40
|
# end
|
|
@@ -47,6 +47,12 @@ describe AutosdeOpenapiClient::VolumeCreate do
|
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
describe 'test attribute "fc_map_count"' 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
|
+
|
|
50
56
|
describe 'test attribute "name"' do
|
|
51
57
|
it 'should work' do
|
|
52
58
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -34,13 +34,19 @@ describe AutosdeOpenapiClient::VolumeResponse do
|
|
|
34
34
|
describe 'test attribute "component_state"' do
|
|
35
35
|
it 'should work' do
|
|
36
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
37
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
|
|
38
38
|
# validator.allowable_values.each do |value|
|
|
39
39
|
# expect { instance.component_state = value }.not_to raise_error
|
|
40
40
|
# end
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
describe 'test attribute "fc_map_count"' 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
|
+
|
|
44
50
|
describe 'test attribute "historical_service"' do
|
|
45
51
|
it 'should work' do
|
|
46
52
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/models/volume_spec.rb
CHANGED
|
@@ -34,13 +34,19 @@ describe AutosdeOpenapiClient::Volume do
|
|
|
34
34
|
describe 'test attribute "component_state"' do
|
|
35
35
|
it 'should work' do
|
|
36
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
37
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
37
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
|
|
38
38
|
# validator.allowable_values.each do |value|
|
|
39
39
|
# expect { instance.component_state = value }.not_to raise_error
|
|
40
40
|
# end
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
describe 'test attribute "fc_map_count"' 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
|
+
|
|
44
50
|
describe 'test attribute "historical_service"' do
|
|
45
51
|
it 'should work' do
|
|
46
52
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
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.2.
|
|
4
|
+
version: 2.2.6
|
|
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-
|
|
11
|
+
date: 2023-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -161,6 +161,8 @@ files:
|
|
|
161
161
|
- docs/ValidateSystemApi.md
|
|
162
162
|
- docs/Volume.md
|
|
163
163
|
- docs/VolumeApi.md
|
|
164
|
+
- docs/VolumeClone.md
|
|
165
|
+
- docs/VolumeCloneApi.md
|
|
164
166
|
- docs/VolumeCreate.md
|
|
165
167
|
- docs/VolumeResponse.md
|
|
166
168
|
- docs/VolumeUpdate.md
|
|
@@ -198,6 +200,7 @@ files:
|
|
|
198
200
|
- lib/autosde_openapi_client/api/user_api.rb
|
|
199
201
|
- lib/autosde_openapi_client/api/validate_system_api.rb
|
|
200
202
|
- lib/autosde_openapi_client/api/volume_api.rb
|
|
203
|
+
- lib/autosde_openapi_client/api/volume_clone_api.rb
|
|
201
204
|
- lib/autosde_openapi_client/api_client.rb
|
|
202
205
|
- lib/autosde_openapi_client/api_error.rb
|
|
203
206
|
- lib/autosde_openapi_client/configuration.rb
|
|
@@ -268,6 +271,7 @@ files:
|
|
|
268
271
|
- lib/autosde_openapi_client/models/user_update.rb
|
|
269
272
|
- lib/autosde_openapi_client/models/validate_system.rb
|
|
270
273
|
- lib/autosde_openapi_client/models/volume.rb
|
|
274
|
+
- lib/autosde_openapi_client/models/volume_clone.rb
|
|
271
275
|
- lib/autosde_openapi_client/models/volume_create.rb
|
|
272
276
|
- lib/autosde_openapi_client/models/volume_response.rb
|
|
273
277
|
- lib/autosde_openapi_client/models/volume_update.rb
|
|
@@ -304,6 +308,7 @@ files:
|
|
|
304
308
|
- spec/api/user_api_spec.rb
|
|
305
309
|
- spec/api/validate_system_api_spec.rb
|
|
306
310
|
- spec/api/volume_api_spec.rb
|
|
311
|
+
- spec/api/volume_clone_api_spec.rb
|
|
307
312
|
- spec/api_client_spec.rb
|
|
308
313
|
- spec/configuration_spec.rb
|
|
309
314
|
- spec/models/abstract_capability_response_spec.rb
|
|
@@ -372,6 +377,7 @@ files:
|
|
|
372
377
|
- spec/models/user_spec.rb
|
|
373
378
|
- spec/models/user_update_spec.rb
|
|
374
379
|
- spec/models/validate_system_spec.rb
|
|
380
|
+
- spec/models/volume_clone_spec.rb
|
|
375
381
|
- spec/models/volume_create_spec.rb
|
|
376
382
|
- spec/models/volume_response_spec.rb
|
|
377
383
|
- spec/models/volume_spec.rb
|
|
@@ -401,108 +407,110 @@ signing_key:
|
|
|
401
407
|
specification_version: 4
|
|
402
408
|
summary: Site Manager API Ruby Gem
|
|
403
409
|
test_files:
|
|
404
|
-
- spec/api/
|
|
405
|
-
- spec/api/
|
|
406
|
-
- spec/api/
|
|
410
|
+
- spec/api/authentication_api_spec.rb
|
|
411
|
+
- spec/api/storage_resource_api_spec.rb
|
|
412
|
+
- spec/api/abstract_capability_api_spec.rb
|
|
413
|
+
- spec/api/snapshot_api_spec.rb
|
|
407
414
|
- spec/api/service_abstract_capability_value_api_spec.rb
|
|
408
415
|
- spec/api/storage_hosts_mapping_api_spec.rb
|
|
409
|
-
- spec/api/
|
|
416
|
+
- spec/api/native_capability_api_spec.rb
|
|
417
|
+
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
|
418
|
+
- spec/api/profile_api_spec.rb
|
|
419
|
+
- spec/api/capability_translation_api_spec.rb
|
|
420
|
+
- spec/api/service_api_spec.rb
|
|
421
|
+
- spec/api/auto_sde_role_api_spec.rb
|
|
422
|
+
- spec/api/volume_clone_api_spec.rb
|
|
423
|
+
- spec/api/host_cluster_membership_api_spec.rb
|
|
424
|
+
- spec/api/service_resource_attachment_api_spec.rb
|
|
425
|
+
- spec/api/user_api_spec.rb
|
|
426
|
+
- spec/api/job_api_spec.rb
|
|
427
|
+
- spec/api/volume_api_spec.rb
|
|
410
428
|
- spec/api/auto_sde_project_api_spec.rb
|
|
429
|
+
- spec/api/validate_system_api_spec.rb
|
|
430
|
+
- spec/api/provisioning_strategy_api_spec.rb
|
|
431
|
+
- spec/api/system_type_api_spec.rb
|
|
432
|
+
- spec/api/storage_host_api_spec.rb
|
|
411
433
|
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
|
412
|
-
- spec/api/snapshot_api_spec.rb
|
|
413
434
|
- spec/api/refresh_system_api_spec.rb
|
|
435
|
+
- spec/api/host_api_spec.rb
|
|
436
|
+
- spec/api/address_api_spec.rb
|
|
437
|
+
- spec/api/account_api_spec.rb
|
|
414
438
|
- spec/api/event_api_spec.rb
|
|
415
|
-
- spec/api/
|
|
416
|
-
- spec/api/auto_sde_role_api_spec.rb
|
|
417
|
-
- spec/api/validate_system_api_spec.rb
|
|
418
|
-
- spec/api/user_api_spec.rb
|
|
419
|
-
- spec/api/abstract_capability_api_spec.rb
|
|
439
|
+
- spec/api/celery_config_api_spec.rb
|
|
420
440
|
- spec/api/storage_system_api_spec.rb
|
|
421
|
-
- spec/api/capability_translation_api_spec.rb
|
|
422
|
-
- spec/api/host_cluster_membership_api_spec.rb
|
|
423
|
-
- spec/api/authentication_api_spec.rb
|
|
424
|
-
- spec/api/service_api_spec.rb
|
|
425
441
|
- spec/api/host_cluster_api_spec.rb
|
|
426
|
-
- spec/api/native_capability_api_spec.rb
|
|
427
|
-
- spec/api/system_type_api_spec.rb
|
|
428
|
-
- spec/api/address_api_spec.rb
|
|
429
|
-
- spec/api/service_resource_attachment_api_spec.rb
|
|
430
442
|
- spec/api/host_volume_connection_api_spec.rb
|
|
431
|
-
- spec/api/provisioning_strategy_api_spec.rb
|
|
432
|
-
- spec/api/job_api_spec.rb
|
|
433
|
-
- spec/api/account_api_spec.rb
|
|
434
|
-
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
|
435
|
-
- spec/api/storage_resource_api_spec.rb
|
|
436
443
|
- spec/api_client_spec.rb
|
|
437
444
|
- spec/configuration_spec.rb
|
|
438
|
-
- spec/models/
|
|
439
|
-
- spec/models/
|
|
440
|
-
- spec/models/
|
|
441
|
-
- spec/models/volume_update_spec.rb
|
|
442
|
-
- spec/models/storage_system_create_spec.rb
|
|
443
|
-
- spec/models/system_type_create_spec.rb
|
|
444
|
-
- spec/models/storage_hosts_mapping_response_spec.rb
|
|
445
|
-
- spec/models/user_spec.rb
|
|
446
|
-
- spec/models/storage_resource_spec.rb
|
|
445
|
+
- spec/models/abstract_capability_response_spec.rb
|
|
446
|
+
- spec/models/system_type_response_spec.rb
|
|
447
|
+
- spec/models/native_capability_spec.rb
|
|
447
448
|
- spec/models/storage_system_update_spec.rb
|
|
449
|
+
- spec/models/storage_resource_spec.rb
|
|
450
|
+
- spec/models/async_response_spec.rb
|
|
451
|
+
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
|
452
|
+
- spec/models/storage_resource_update_spec.rb
|
|
448
453
|
- spec/models/service_resource_attachment_spec.rb
|
|
449
|
-
- spec/models/service_resource_attachment_response_spec.rb
|
|
450
|
-
- spec/models/host_cluster_spec.rb
|
|
451
454
|
- spec/models/storage_hosts_mapping_spec.rb
|
|
452
|
-
- spec/models/
|
|
453
|
-
- spec/models/
|
|
455
|
+
- spec/models/host_cluster_spec.rb
|
|
456
|
+
- spec/models/service_abstract_capability_value_response_spec.rb
|
|
457
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
|
458
|
+
- spec/models/account_post_response_spec.rb
|
|
454
459
|
- spec/models/user_create_spec.rb
|
|
455
|
-
- spec/models/
|
|
456
|
-
- spec/models/
|
|
460
|
+
- spec/models/storage_host_spec.rb
|
|
461
|
+
- spec/models/storage_system_response_spec.rb
|
|
462
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
|
457
463
|
- spec/models/volume_spec.rb
|
|
458
|
-
- spec/models/auth_response_spec.rb
|
|
459
|
-
- spec/models/storage_host_create_spec.rb
|
|
460
464
|
- spec/models/auto_sde_role_spec.rb
|
|
461
|
-
- spec/models/
|
|
462
|
-
- spec/models/
|
|
463
|
-
- spec/models/
|
|
464
|
-
- spec/models/
|
|
465
|
-
- spec/models/
|
|
466
|
-
- spec/models/host_cluster_membership_spec.rb
|
|
467
|
-
- spec/models/system_type_response_spec.rb
|
|
468
|
-
- spec/models/storage_host_update_spec.rb
|
|
465
|
+
- spec/models/service_response_spec.rb
|
|
466
|
+
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
|
467
|
+
- spec/models/event_response_spec.rb
|
|
468
|
+
- spec/models/user_spec.rb
|
|
469
|
+
- spec/models/host_create_spec.rb
|
|
469
470
|
- spec/models/event_spec.rb
|
|
470
|
-
- spec/models/
|
|
471
|
-
- spec/models/
|
|
472
|
-
- spec/models/
|
|
471
|
+
- spec/models/storage_system_create_spec.rb
|
|
472
|
+
- spec/models/authentication_spec.rb
|
|
473
|
+
- spec/models/provisioning_strategy_spec.rb
|
|
474
|
+
- spec/models/job_spec.rb
|
|
475
|
+
- spec/models/storage_resource_response_spec.rb
|
|
476
|
+
- spec/models/host_volume_connection_create_spec.rb
|
|
477
|
+
- spec/models/auto_sde_project_spec.rb
|
|
478
|
+
- spec/models/system_type_spec.rb
|
|
479
|
+
- spec/models/storage_resource_create_spec.rb
|
|
480
|
+
- spec/models/auth_response_spec.rb
|
|
473
481
|
- spec/models/capability_translation_spec.rb
|
|
474
|
-
- spec/models/
|
|
482
|
+
- spec/models/service_resource_attachment_response_spec.rb
|
|
483
|
+
- spec/models/abstract_capability_spec.rb
|
|
484
|
+
- spec/models/host_cluster_response_spec.rb
|
|
475
485
|
- spec/models/storage_host_response_spec.rb
|
|
476
|
-
- spec/models/
|
|
477
|
-
- spec/models/profile_spec.rb
|
|
478
|
-
- spec/models/job_create_spec.rb
|
|
479
|
-
- spec/models/host_volume_connection_spec.rb
|
|
480
|
-
- spec/models/snapshot_create_spec.rb
|
|
481
|
-
- spec/models/service_abstract_capability_value_response_spec.rb
|
|
482
|
-
- spec/models/snapshot_spec.rb
|
|
483
|
-
- spec/models/auto_sde_project_spec.rb
|
|
484
|
-
- spec/models/async_response_spec.rb
|
|
485
|
-
- spec/models/service_create_spec.rb
|
|
486
|
+
- spec/models/storage_host_create_spec.rb
|
|
486
487
|
- spec/models/validate_system_spec.rb
|
|
488
|
+
- spec/models/storage_hosts_mapping_response_spec.rb
|
|
489
|
+
- spec/models/host_volume_connection_spec.rb
|
|
490
|
+
- spec/models/volume_clone_spec.rb
|
|
491
|
+
- spec/models/host_spec.rb
|
|
492
|
+
- spec/models/storage_hosts_mapping_create_spec.rb
|
|
493
|
+
- spec/models/profile_spec.rb
|
|
487
494
|
- spec/models/service_spec.rb
|
|
488
|
-
- spec/models/
|
|
489
|
-
- spec/models/
|
|
490
|
-
- spec/models/
|
|
495
|
+
- spec/models/user_update_spec.rb
|
|
496
|
+
- spec/models/volume_update_spec.rb
|
|
497
|
+
- spec/models/celery_config_spec.rb
|
|
491
498
|
- spec/models/volume_create_spec.rb
|
|
492
|
-
- spec/models/
|
|
493
|
-
- spec/models/
|
|
494
|
-
- spec/models/storage_system_response_spec.rb
|
|
495
|
-
- spec/models/storage_resource_response_spec.rb
|
|
496
|
-
- spec/models/provisioning_strategy_spec.rb
|
|
497
|
-
- spec/models/storage_system_spec.rb
|
|
498
|
-
- spec/models/abstract_capability_response_spec.rb
|
|
499
|
-
- spec/models/capability_translation_create_spec.rb
|
|
499
|
+
- spec/models/address_spec.rb
|
|
500
|
+
- spec/models/system_type_create_spec.rb
|
|
500
501
|
- spec/models/host_cluster_volume_mapping_spec.rb
|
|
501
|
-
- spec/models/
|
|
502
|
+
- spec/models/snapshot_spec.rb
|
|
503
|
+
- spec/models/storage_host_update_spec.rb
|
|
504
|
+
- spec/models/account_spec.rb
|
|
502
505
|
- spec/models/address_create_spec.rb
|
|
503
|
-
- spec/models/
|
|
504
|
-
- spec/models/
|
|
505
|
-
- spec/models/
|
|
506
|
-
- spec/models/
|
|
507
|
-
- spec/models/
|
|
506
|
+
- spec/models/capability_translation_create_spec.rb
|
|
507
|
+
- spec/models/host_cluster_membership_spec.rb
|
|
508
|
+
- spec/models/job_create_spec.rb
|
|
509
|
+
- spec/models/volume_response_spec.rb
|
|
510
|
+
- spec/models/host_cluster_create_spec.rb
|
|
511
|
+
- spec/models/refresh_system_spec.rb
|
|
512
|
+
- spec/models/snapshot_create_spec.rb
|
|
513
|
+
- spec/models/service_create_spec.rb
|
|
514
|
+
- spec/models/storage_system_spec.rb
|
|
515
|
+
- spec/models/account_post_request_spec.rb
|
|
508
516
|
- spec/spec_helper.rb
|