autosde_openapi_client 1.0.51 → 1.1.3
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 +1 -0
- data/autosde_openapi_client.gemspec +1 -1
- data/docs/HostClusterApi.md +8 -8
- data/docs/HostClusterResponse.md +34 -0
- data/docs/StorageHost.md +2 -0
- data/docs/StorageHostResponse.md +2 -0
- data/docs/SystemType.md +1 -1
- data/docs/SystemTypeCreate.md +1 -1
- data/lib/autosde_openapi_client/api/host_cluster_api.rb +6 -6
- data/lib/autosde_openapi_client/models/host_cluster_response.rb +398 -0
- data/lib/autosde_openapi_client/models/storage_host.rb +10 -1
- data/lib/autosde_openapi_client/models/storage_host_response.rb +11 -1
- data/lib/autosde_openapi_client/models/system_type.rb +6 -6
- data/lib/autosde_openapi_client/models/system_type_create.rb +6 -6
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +1 -0
- data/spec/api/host_cluster_api_spec.rb +2 -2
- data/spec/models/host_cluster_response_spec.rb +86 -0
- data/spec/models/storage_host_response_spec.rb +6 -0
- data/spec/models/storage_host_spec.rb +6 -0
- data/spec/models/system_type_create_spec.rb +1 -1
- data/spec/models/system_type_spec.rb +1 -1
- metadata +68 -64
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b1fc67df73bd5a8370f594d662c73e2252c4ce66b1ebb4bc78cbf493834622c
|
|
4
|
+
data.tar.gz: ccd0e72453798f11a00adf668ef82ce339ed99496d332697c46e67f30923ab89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ca72c5f573237ec6ba45c459b236ddc6acadd733e95fed4cb090d68c67ba8170cc4224ff62ebe22c48a5b2fb707c87e65f068cd180ceb4cf9cf1bd6695b382e
|
|
7
|
+
data.tar.gz: 9f4577c28af0324b84fdc4ba57ddbe59158ba954a5aebdef1d4d1970f62a02a5051d870da913b814737fc054b612fbaf28348b4e986300b9d46d6d94480df6e8
|
data/README.md
CHANGED
|
@@ -205,6 +205,7 @@ Class | Method | HTTP request | Description
|
|
|
205
205
|
- [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
|
|
206
206
|
- [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
|
|
207
207
|
- [AutosdeOpenapiClient::HostClusterMembership](docs/HostClusterMembership.md)
|
|
208
|
+
- [AutosdeOpenapiClient::HostClusterResponse](docs/HostClusterResponse.md)
|
|
208
209
|
- [AutosdeOpenapiClient::HostClusterVolumeMapping](docs/HostClusterVolumeMapping.md)
|
|
209
210
|
- [AutosdeOpenapiClient::HostClusterVolumeMappingCreate](docs/HostClusterVolumeMappingCreate.md)
|
|
210
211
|
- [AutosdeOpenapiClient::HostClusterVolumeMappingResponse](docs/HostClusterVolumeMappingResponse.md)
|
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
|
23
23
|
s.email = ["autosde@il.ibm.com"]
|
|
24
|
-
s.homepage = "https://github.com/Autosde/autosde-oas/"
|
|
24
|
+
s.homepage = "https://github.com/Autosde/autosde-oas/generated"
|
|
25
25
|
s.summary = "Site Manager API Ruby Gem"
|
|
26
26
|
s.description = "Site Manager API"
|
|
27
27
|
s.license = "Apache-2.0"
|
data/docs/HostClusterApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
|
|
12
12
|
|
|
13
13
|
## host_clusters_get
|
|
14
14
|
|
|
15
|
-
> <Array<
|
|
15
|
+
> <Array<HostClusterResponse>> host_clusters_get
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -42,7 +42,7 @@ end
|
|
|
42
42
|
|
|
43
43
|
This returns an Array which contains the response data, status code and headers.
|
|
44
44
|
|
|
45
|
-
> <Array(<Array<
|
|
45
|
+
> <Array(<Array<HostClusterResponse>>, Integer, Hash)> host_clusters_get_with_http_info
|
|
46
46
|
|
|
47
47
|
```ruby
|
|
48
48
|
begin
|
|
@@ -50,7 +50,7 @@ begin
|
|
|
50
50
|
data, status_code, headers = api_instance.host_clusters_get_with_http_info
|
|
51
51
|
p status_code # => 2xx
|
|
52
52
|
p headers # => { ... }
|
|
53
|
-
p data # => <Array<
|
|
53
|
+
p data # => <Array<HostClusterResponse>>
|
|
54
54
|
rescue AutosdeOpenapiClient::ApiError => e
|
|
55
55
|
puts "Error when calling HostClusterApi->host_clusters_get_with_http_info: #{e}"
|
|
56
56
|
end
|
|
@@ -62,7 +62,7 @@ This endpoint does not need any parameter.
|
|
|
62
62
|
|
|
63
63
|
### Return type
|
|
64
64
|
|
|
65
|
-
[**Array<
|
|
65
|
+
[**Array<HostClusterResponse>**](HostClusterResponse.md)
|
|
66
66
|
|
|
67
67
|
### Authorization
|
|
68
68
|
|
|
@@ -210,7 +210,7 @@ end
|
|
|
210
210
|
|
|
211
211
|
## host_clusters_post
|
|
212
212
|
|
|
213
|
-
> <
|
|
213
|
+
> <HostClusterResponse> host_clusters_post(host_cluster_create)
|
|
214
214
|
|
|
215
215
|
|
|
216
216
|
|
|
@@ -241,7 +241,7 @@ end
|
|
|
241
241
|
|
|
242
242
|
This returns an Array which contains the response data, status code and headers.
|
|
243
243
|
|
|
244
|
-
> <Array(<
|
|
244
|
+
> <Array(<HostClusterResponse>, Integer, Hash)> host_clusters_post_with_http_info(host_cluster_create)
|
|
245
245
|
|
|
246
246
|
```ruby
|
|
247
247
|
begin
|
|
@@ -249,7 +249,7 @@ begin
|
|
|
249
249
|
data, status_code, headers = api_instance.host_clusters_post_with_http_info(host_cluster_create)
|
|
250
250
|
p status_code # => 2xx
|
|
251
251
|
p headers # => { ... }
|
|
252
|
-
p data # => <
|
|
252
|
+
p data # => <HostClusterResponse>
|
|
253
253
|
rescue AutosdeOpenapiClient::ApiError => e
|
|
254
254
|
puts "Error when calling HostClusterApi->host_clusters_post_with_http_info: #{e}"
|
|
255
255
|
end
|
|
@@ -263,7 +263,7 @@ end
|
|
|
263
263
|
|
|
264
264
|
### Return type
|
|
265
265
|
|
|
266
|
-
[**
|
|
266
|
+
[**HostClusterResponse**](HostClusterResponse.md)
|
|
267
267
|
|
|
268
268
|
### Authorization
|
|
269
269
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# AutosdeOpenapiClient::HostClusterResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **component_state** | **String** | component_state | [optional] |
|
|
8
|
+
| **name** | **String** | name | [optional] |
|
|
9
|
+
| **owner_id** | **String** | owner_id | [optional] |
|
|
10
|
+
| **owner_name** | **String** | owner_name | [optional] |
|
|
11
|
+
| **protocol** | **String** | protocol | [optional] |
|
|
12
|
+
| **status** | **String** | status | [optional] |
|
|
13
|
+
| **storage_system** | **String** | !!uuid of storage_system | [optional] |
|
|
14
|
+
| **uuid** | **String** | uuid | [optional] |
|
|
15
|
+
| **volumes** | [**Volume**](Volume.md) | | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'autosde_openapi_client'
|
|
21
|
+
|
|
22
|
+
instance = AutosdeOpenapiClient::HostClusterResponse.new(
|
|
23
|
+
component_state: null,
|
|
24
|
+
name: null,
|
|
25
|
+
owner_id: null,
|
|
26
|
+
owner_name: null,
|
|
27
|
+
protocol: null,
|
|
28
|
+
status: null,
|
|
29
|
+
storage_system: null,
|
|
30
|
+
uuid: null,
|
|
31
|
+
volumes: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
data/docs/StorageHost.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **component_state** | **String** | component_state | [optional] |
|
|
8
8
|
| **description** | **String** | description | [optional] |
|
|
9
|
+
| **host_cluster** | [**HostCluster**](HostCluster.md) | | [optional] |
|
|
9
10
|
| **host_cluster_name** | **String** | host_cluster_name | [optional] |
|
|
10
11
|
| **io_groups** | **String** | io_groups | [optional] |
|
|
11
12
|
| **name** | **String** | The Storage Host Name | [optional] |
|
|
@@ -22,6 +23,7 @@ require 'autosde_openapi_client'
|
|
|
22
23
|
instance = AutosdeOpenapiClient::StorageHost.new(
|
|
23
24
|
component_state: null,
|
|
24
25
|
description: null,
|
|
26
|
+
host_cluster: null,
|
|
25
27
|
host_cluster_name: null,
|
|
26
28
|
io_groups: null,
|
|
27
29
|
name: null,
|
data/docs/StorageHostResponse.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
| **addresses** | [**Array<Address>**](Address.md) | addresses | [optional] |
|
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
|
9
9
|
| **description** | **String** | description | [optional] |
|
|
10
|
+
| **host_cluster** | **String** | !!uuid of host_cluster | [optional] |
|
|
10
11
|
| **host_cluster_name** | **String** | host_cluster_name | [optional] |
|
|
11
12
|
| **io_groups** | **String** | io_groups | [optional] |
|
|
12
13
|
| **name** | **String** | The Storage Host Name | [optional] |
|
|
@@ -24,6 +25,7 @@ instance = AutosdeOpenapiClient::StorageHostResponse.new(
|
|
|
24
25
|
addresses: null,
|
|
25
26
|
component_state: null,
|
|
26
27
|
description: null,
|
|
28
|
+
host_cluster: null,
|
|
27
29
|
host_cluster_name: null,
|
|
28
30
|
io_groups: null,
|
|
29
31
|
name: null,
|
data/docs/SystemType.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **component_state** | **String** | component_state | [optional] |
|
|
8
|
-
| **name** | **String** | name | [optional][default to '
|
|
8
|
+
| **name** | **String** | name | [optional][default to 'FlashSystems/SVC'] |
|
|
9
9
|
| **short_version** | **String** | short_version | [optional] |
|
|
10
10
|
| **uuid** | **String** | uuid | [optional] |
|
|
11
11
|
| **version** | **String** | SystemType version | [optional] |
|
data/docs/SystemTypeCreate.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **component_state** | **String** | component_state | [optional] |
|
|
8
|
-
| **name** | **String** | name | [optional][default to '
|
|
8
|
+
| **name** | **String** | name | [optional][default to 'FlashSystems/SVC'] |
|
|
9
9
|
| **short_version** | **String** | short_version | [optional] |
|
|
10
10
|
| **super_type** | **String** | super_type | [optional][default to 'null'] |
|
|
11
11
|
| **uuid** | **String** | uuid | [optional] |
|
|
@@ -20,14 +20,14 @@ module AutosdeOpenapiClient
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# @param [Hash] opts the optional parameters
|
|
23
|
-
# @return [Array<
|
|
23
|
+
# @return [Array<HostClusterResponse>]
|
|
24
24
|
def host_clusters_get(opts = {})
|
|
25
25
|
data, _status_code, _headers = host_clusters_get_with_http_info(opts)
|
|
26
26
|
data
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
|
30
|
-
# @return [Array<(Array<
|
|
30
|
+
# @return [Array<(Array<HostClusterResponse>, Integer, Hash)>] Array<HostClusterResponse> data, response status code and response headers
|
|
31
31
|
def host_clusters_get_with_http_info(opts = {})
|
|
32
32
|
if @api_client.config.debugging
|
|
33
33
|
@api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_get ...'
|
|
@@ -50,7 +50,7 @@ module AutosdeOpenapiClient
|
|
|
50
50
|
post_body = opts[:debug_body]
|
|
51
51
|
|
|
52
52
|
# return_type
|
|
53
|
-
return_type = opts[:debug_return_type] || 'Array<
|
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<HostClusterResponse>'
|
|
54
54
|
|
|
55
55
|
# auth_names
|
|
56
56
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
|
|
|
192
192
|
|
|
193
193
|
# @param host_cluster_create [HostClusterCreate]
|
|
194
194
|
# @param [Hash] opts the optional parameters
|
|
195
|
-
# @return [
|
|
195
|
+
# @return [HostClusterResponse]
|
|
196
196
|
def host_clusters_post(host_cluster_create, opts = {})
|
|
197
197
|
data, _status_code, _headers = host_clusters_post_with_http_info(host_cluster_create, opts)
|
|
198
198
|
data
|
|
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
|
|
|
200
200
|
|
|
201
201
|
# @param host_cluster_create [HostClusterCreate]
|
|
202
202
|
# @param [Hash] opts the optional parameters
|
|
203
|
-
# @return [Array<(
|
|
203
|
+
# @return [Array<(HostClusterResponse, Integer, Hash)>] HostClusterResponse data, response status code and response headers
|
|
204
204
|
def host_clusters_post_with_http_info(host_cluster_create, opts = {})
|
|
205
205
|
if @api_client.config.debugging
|
|
206
206
|
@api_client.config.logger.debug 'Calling API: HostClusterApi.host_clusters_post ...'
|
|
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
|
|
|
229
229
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(host_cluster_create)
|
|
230
230
|
|
|
231
231
|
# return_type
|
|
232
|
-
return_type = opts[:debug_return_type] || '
|
|
232
|
+
return_type = opts[:debug_return_type] || 'HostClusterResponse'
|
|
233
233
|
|
|
234
234
|
# auth_names
|
|
235
235
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -0,0 +1,398 @@
|
|
|
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
|
+
# TODO add description
|
|
18
|
+
class HostClusterResponse
|
|
19
|
+
# component_state
|
|
20
|
+
attr_accessor :component_state
|
|
21
|
+
|
|
22
|
+
# name
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# owner_id
|
|
26
|
+
attr_accessor :owner_id
|
|
27
|
+
|
|
28
|
+
# owner_name
|
|
29
|
+
attr_accessor :owner_name
|
|
30
|
+
|
|
31
|
+
# protocol
|
|
32
|
+
attr_accessor :protocol
|
|
33
|
+
|
|
34
|
+
# status
|
|
35
|
+
attr_accessor :status
|
|
36
|
+
|
|
37
|
+
# !!uuid of storage_system
|
|
38
|
+
attr_accessor :storage_system
|
|
39
|
+
|
|
40
|
+
# uuid
|
|
41
|
+
attr_accessor :uuid
|
|
42
|
+
|
|
43
|
+
attr_accessor :volumes
|
|
44
|
+
|
|
45
|
+
class EnumAttributeValidator
|
|
46
|
+
attr_reader :datatype
|
|
47
|
+
attr_reader :allowable_values
|
|
48
|
+
|
|
49
|
+
def initialize(datatype, allowable_values)
|
|
50
|
+
@allowable_values = allowable_values.map do |value|
|
|
51
|
+
case datatype.to_s
|
|
52
|
+
when /Integer/i
|
|
53
|
+
value.to_i
|
|
54
|
+
when /Float/i
|
|
55
|
+
value.to_f
|
|
56
|
+
else
|
|
57
|
+
value
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def valid?(value)
|
|
63
|
+
!value || allowable_values.include?(value)
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
|
+
def self.attribute_map
|
|
69
|
+
{
|
|
70
|
+
:'component_state' => :'component_state',
|
|
71
|
+
:'name' => :'name',
|
|
72
|
+
:'owner_id' => :'owner_id',
|
|
73
|
+
:'owner_name' => :'owner_name',
|
|
74
|
+
:'protocol' => :'protocol',
|
|
75
|
+
:'status' => :'status',
|
|
76
|
+
:'storage_system' => :'storage_system',
|
|
77
|
+
:'uuid' => :'uuid',
|
|
78
|
+
:'volumes' => :'volumes'
|
|
79
|
+
}
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Returns all the JSON keys this model knows about
|
|
83
|
+
def self.acceptable_attributes
|
|
84
|
+
attribute_map.values
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Attribute type mapping.
|
|
88
|
+
def self.openapi_types
|
|
89
|
+
{
|
|
90
|
+
:'component_state' => :'String',
|
|
91
|
+
:'name' => :'String',
|
|
92
|
+
:'owner_id' => :'String',
|
|
93
|
+
:'owner_name' => :'String',
|
|
94
|
+
:'protocol' => :'String',
|
|
95
|
+
:'status' => :'String',
|
|
96
|
+
:'storage_system' => :'String',
|
|
97
|
+
:'uuid' => :'String',
|
|
98
|
+
:'volumes' => :'Volume'
|
|
99
|
+
}
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# List of attributes with nullable: true
|
|
103
|
+
def self.openapi_nullable
|
|
104
|
+
Set.new([
|
|
105
|
+
])
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Initializes the object
|
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
110
|
+
def initialize(attributes = {})
|
|
111
|
+
if (!attributes.is_a?(Hash))
|
|
112
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::HostClusterResponse` initialize method"
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
116
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
117
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
118
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::HostClusterResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
119
|
+
end
|
|
120
|
+
h[k.to_sym] = v
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'component_state')
|
|
124
|
+
self.component_state = attributes[:'component_state']
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'name')
|
|
128
|
+
self.name = attributes[:'name']
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'owner_id')
|
|
132
|
+
self.owner_id = attributes[:'owner_id']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'owner_name')
|
|
136
|
+
self.owner_name = attributes[:'owner_name']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'protocol')
|
|
140
|
+
self.protocol = attributes[:'protocol']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'status')
|
|
144
|
+
self.status = attributes[:'status']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'storage_system')
|
|
148
|
+
self.storage_system = attributes[:'storage_system']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'uuid')
|
|
152
|
+
self.uuid = attributes[:'uuid']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'volumes')
|
|
156
|
+
self.volumes = attributes[:'volumes']
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
161
|
+
# @return Array for valid properties with the reasons
|
|
162
|
+
def list_invalid_properties
|
|
163
|
+
invalid_properties = Array.new
|
|
164
|
+
if !@component_state.nil? && @component_state.to_s.length > 32
|
|
165
|
+
invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if !@name.nil? && @name.to_s.length > 15
|
|
169
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 15.')
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if !@owner_id.nil? && @owner_id.to_s.length > 15
|
|
173
|
+
invalid_properties.push('invalid value for "owner_id", the character length must be smaller than or equal to 15.')
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if !@owner_name.nil? && @owner_name.to_s.length > 15
|
|
177
|
+
invalid_properties.push('invalid value for "owner_name", the character length must be smaller than or equal to 15.')
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if !@protocol.nil? && @protocol.to_s.length > 15
|
|
181
|
+
invalid_properties.push('invalid value for "protocol", the character length must be smaller than or equal to 15.')
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
invalid_properties
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Check to see if the all the properties in the model are valid
|
|
188
|
+
# @return true if the model is valid
|
|
189
|
+
def valid?
|
|
190
|
+
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
191
|
+
return false unless component_state_validator.valid?(@component_state)
|
|
192
|
+
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
|
193
|
+
return false if !@name.nil? && @name.to_s.length > 15
|
|
194
|
+
return false if !@owner_id.nil? && @owner_id.to_s.length > 15
|
|
195
|
+
return false if !@owner_name.nil? && @owner_name.to_s.length > 15
|
|
196
|
+
return false if !@protocol.nil? && @protocol.to_s.length > 15
|
|
197
|
+
true
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
201
|
+
# @param [Object] component_state Object to be assigned
|
|
202
|
+
def component_state=(component_state)
|
|
203
|
+
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
204
|
+
unless validator.valid?(component_state)
|
|
205
|
+
fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
|
|
206
|
+
end
|
|
207
|
+
@component_state = component_state
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Custom attribute writer method with validation
|
|
211
|
+
# @param [Object] name Value to be assigned
|
|
212
|
+
def name=(name)
|
|
213
|
+
if !name.nil? && name.to_s.length > 15
|
|
214
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 15.'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@name = name
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Custom attribute writer method with validation
|
|
221
|
+
# @param [Object] owner_id Value to be assigned
|
|
222
|
+
def owner_id=(owner_id)
|
|
223
|
+
if !owner_id.nil? && owner_id.to_s.length > 15
|
|
224
|
+
fail ArgumentError, 'invalid value for "owner_id", the character length must be smaller than or equal to 15.'
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
@owner_id = owner_id
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Custom attribute writer method with validation
|
|
231
|
+
# @param [Object] owner_name Value to be assigned
|
|
232
|
+
def owner_name=(owner_name)
|
|
233
|
+
if !owner_name.nil? && owner_name.to_s.length > 15
|
|
234
|
+
fail ArgumentError, 'invalid value for "owner_name", the character length must be smaller than or equal to 15.'
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
@owner_name = owner_name
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Custom attribute writer method with validation
|
|
241
|
+
# @param [Object] protocol Value to be assigned
|
|
242
|
+
def protocol=(protocol)
|
|
243
|
+
if !protocol.nil? && protocol.to_s.length > 15
|
|
244
|
+
fail ArgumentError, 'invalid value for "protocol", the character length must be smaller than or equal to 15.'
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
@protocol = protocol
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Checks equality by comparing each attribute.
|
|
251
|
+
# @param [Object] Object to be compared
|
|
252
|
+
def ==(o)
|
|
253
|
+
return true if self.equal?(o)
|
|
254
|
+
self.class == o.class &&
|
|
255
|
+
component_state == o.component_state &&
|
|
256
|
+
name == o.name &&
|
|
257
|
+
owner_id == o.owner_id &&
|
|
258
|
+
owner_name == o.owner_name &&
|
|
259
|
+
protocol == o.protocol &&
|
|
260
|
+
status == o.status &&
|
|
261
|
+
storage_system == o.storage_system &&
|
|
262
|
+
uuid == o.uuid &&
|
|
263
|
+
volumes == o.volumes
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# @see the `==` method
|
|
267
|
+
# @param [Object] Object to be compared
|
|
268
|
+
def eql?(o)
|
|
269
|
+
self == o
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Calculates hash code according to all attributes.
|
|
273
|
+
# @return [Integer] Hash code
|
|
274
|
+
def hash
|
|
275
|
+
[component_state, name, owner_id, owner_name, protocol, status, storage_system, uuid, volumes].hash
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Builds the object from hash
|
|
279
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
280
|
+
# @return [Object] Returns the model itself
|
|
281
|
+
def self.build_from_hash(attributes)
|
|
282
|
+
new.build_from_hash(attributes)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Builds the object from hash
|
|
286
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
287
|
+
# @return [Object] Returns the model itself
|
|
288
|
+
def build_from_hash(attributes)
|
|
289
|
+
return nil unless attributes.is_a?(Hash)
|
|
290
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
291
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
292
|
+
self.send("#{key}=", nil)
|
|
293
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
294
|
+
# check to ensure the input is an array given that the attribute
|
|
295
|
+
# is documented as an array but the input is not
|
|
296
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
297
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
298
|
+
end
|
|
299
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
300
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
self
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Deserializes the data based on type
|
|
308
|
+
# @param string type Data type
|
|
309
|
+
# @param string value Value to be deserialized
|
|
310
|
+
# @return [Object] Deserialized data
|
|
311
|
+
def _deserialize(type, value)
|
|
312
|
+
case type.to_sym
|
|
313
|
+
when :Time
|
|
314
|
+
Time.parse(value)
|
|
315
|
+
when :Date
|
|
316
|
+
Date.parse(value)
|
|
317
|
+
when :String
|
|
318
|
+
value.to_s
|
|
319
|
+
when :Integer
|
|
320
|
+
value.to_i
|
|
321
|
+
when :Float
|
|
322
|
+
value.to_f
|
|
323
|
+
when :Boolean
|
|
324
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
325
|
+
true
|
|
326
|
+
else
|
|
327
|
+
false
|
|
328
|
+
end
|
|
329
|
+
when :Object
|
|
330
|
+
# generic object (usually a Hash), return directly
|
|
331
|
+
value
|
|
332
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
333
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
334
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
335
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
336
|
+
k_type = Regexp.last_match[:k_type]
|
|
337
|
+
v_type = Regexp.last_match[:v_type]
|
|
338
|
+
{}.tap do |hash|
|
|
339
|
+
value.each do |k, v|
|
|
340
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
else # model
|
|
344
|
+
# models (e.g. Pet) or oneOf
|
|
345
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
346
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
# Returns the string representation of the object
|
|
351
|
+
# @return [String] String presentation of the object
|
|
352
|
+
def to_s
|
|
353
|
+
to_hash.to_s
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
357
|
+
# @return [Hash] Returns the object in the form of hash
|
|
358
|
+
def to_body
|
|
359
|
+
to_hash
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Returns the object in the form of hash
|
|
363
|
+
# @return [Hash] Returns the object in the form of hash
|
|
364
|
+
def to_hash
|
|
365
|
+
hash = {}
|
|
366
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
367
|
+
value = self.send(attr)
|
|
368
|
+
if value.nil?
|
|
369
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
370
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
hash[param] = _to_hash(value)
|
|
374
|
+
end
|
|
375
|
+
hash
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# Outputs non-array value in the form of hash
|
|
379
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
380
|
+
# @param [Object] value Any valid value
|
|
381
|
+
# @return [Hash] Returns the value in the form of hash
|
|
382
|
+
def _to_hash(value)
|
|
383
|
+
if value.is_a?(Array)
|
|
384
|
+
value.compact.map { |v| _to_hash(v) }
|
|
385
|
+
elsif value.is_a?(Hash)
|
|
386
|
+
{}.tap do |hash|
|
|
387
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
388
|
+
end
|
|
389
|
+
elsif value.respond_to? :to_hash
|
|
390
|
+
value.to_hash
|
|
391
|
+
else
|
|
392
|
+
value
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
end
|
|
@@ -22,6 +22,8 @@ module AutosdeOpenapiClient
|
|
|
22
22
|
# description
|
|
23
23
|
attr_accessor :description
|
|
24
24
|
|
|
25
|
+
attr_accessor :host_cluster
|
|
26
|
+
|
|
25
27
|
# host_cluster_name
|
|
26
28
|
attr_accessor :host_cluster_name
|
|
27
29
|
|
|
@@ -68,6 +70,7 @@ module AutosdeOpenapiClient
|
|
|
68
70
|
{
|
|
69
71
|
:'component_state' => :'component_state',
|
|
70
72
|
:'description' => :'description',
|
|
73
|
+
:'host_cluster' => :'host_cluster',
|
|
71
74
|
:'host_cluster_name' => :'host_cluster_name',
|
|
72
75
|
:'io_groups' => :'io_groups',
|
|
73
76
|
:'name' => :'name',
|
|
@@ -88,6 +91,7 @@ module AutosdeOpenapiClient
|
|
|
88
91
|
{
|
|
89
92
|
:'component_state' => :'String',
|
|
90
93
|
:'description' => :'String',
|
|
94
|
+
:'host_cluster' => :'HostCluster',
|
|
91
95
|
:'host_cluster_name' => :'String',
|
|
92
96
|
:'io_groups' => :'String',
|
|
93
97
|
:'name' => :'String',
|
|
@@ -127,6 +131,10 @@ module AutosdeOpenapiClient
|
|
|
127
131
|
self.description = attributes[:'description']
|
|
128
132
|
end
|
|
129
133
|
|
|
134
|
+
if attributes.key?(:'host_cluster')
|
|
135
|
+
self.host_cluster = attributes[:'host_cluster']
|
|
136
|
+
end
|
|
137
|
+
|
|
130
138
|
if attributes.key?(:'host_cluster_name')
|
|
131
139
|
self.host_cluster_name = attributes[:'host_cluster_name']
|
|
132
140
|
end
|
|
@@ -193,6 +201,7 @@ module AutosdeOpenapiClient
|
|
|
193
201
|
self.class == o.class &&
|
|
194
202
|
component_state == o.component_state &&
|
|
195
203
|
description == o.description &&
|
|
204
|
+
host_cluster == o.host_cluster &&
|
|
196
205
|
host_cluster_name == o.host_cluster_name &&
|
|
197
206
|
io_groups == o.io_groups &&
|
|
198
207
|
name == o.name &&
|
|
@@ -211,7 +220,7 @@ module AutosdeOpenapiClient
|
|
|
211
220
|
# Calculates hash code according to all attributes.
|
|
212
221
|
# @return [Integer] Hash code
|
|
213
222
|
def hash
|
|
214
|
-
[component_state, description, host_cluster_name, io_groups, name, status, storage_system, uuid, volumes].hash
|
|
223
|
+
[component_state, description, host_cluster, host_cluster_name, io_groups, name, status, storage_system, uuid, volumes].hash
|
|
215
224
|
end
|
|
216
225
|
|
|
217
226
|
# Builds the object from hash
|
|
@@ -25,6 +25,9 @@ module AutosdeOpenapiClient
|
|
|
25
25
|
# description
|
|
26
26
|
attr_accessor :description
|
|
27
27
|
|
|
28
|
+
# !!uuid of host_cluster
|
|
29
|
+
attr_accessor :host_cluster
|
|
30
|
+
|
|
28
31
|
# host_cluster_name
|
|
29
32
|
attr_accessor :host_cluster_name
|
|
30
33
|
|
|
@@ -74,6 +77,7 @@ module AutosdeOpenapiClient
|
|
|
74
77
|
:'addresses' => :'addresses',
|
|
75
78
|
:'component_state' => :'component_state',
|
|
76
79
|
:'description' => :'description',
|
|
80
|
+
:'host_cluster' => :'host_cluster',
|
|
77
81
|
:'host_cluster_name' => :'host_cluster_name',
|
|
78
82
|
:'io_groups' => :'io_groups',
|
|
79
83
|
:'name' => :'name',
|
|
@@ -95,6 +99,7 @@ module AutosdeOpenapiClient
|
|
|
95
99
|
:'addresses' => :'Array<Address>',
|
|
96
100
|
:'component_state' => :'String',
|
|
97
101
|
:'description' => :'String',
|
|
102
|
+
:'host_cluster' => :'String',
|
|
98
103
|
:'host_cluster_name' => :'String',
|
|
99
104
|
:'io_groups' => :'String',
|
|
100
105
|
:'name' => :'String',
|
|
@@ -140,6 +145,10 @@ module AutosdeOpenapiClient
|
|
|
140
145
|
self.description = attributes[:'description']
|
|
141
146
|
end
|
|
142
147
|
|
|
148
|
+
if attributes.key?(:'host_cluster')
|
|
149
|
+
self.host_cluster = attributes[:'host_cluster']
|
|
150
|
+
end
|
|
151
|
+
|
|
143
152
|
if attributes.key?(:'host_cluster_name')
|
|
144
153
|
self.host_cluster_name = attributes[:'host_cluster_name']
|
|
145
154
|
end
|
|
@@ -209,6 +218,7 @@ module AutosdeOpenapiClient
|
|
|
209
218
|
addresses == o.addresses &&
|
|
210
219
|
component_state == o.component_state &&
|
|
211
220
|
description == o.description &&
|
|
221
|
+
host_cluster == o.host_cluster &&
|
|
212
222
|
host_cluster_name == o.host_cluster_name &&
|
|
213
223
|
io_groups == o.io_groups &&
|
|
214
224
|
name == o.name &&
|
|
@@ -227,7 +237,7 @@ module AutosdeOpenapiClient
|
|
|
227
237
|
# Calculates hash code according to all attributes.
|
|
228
238
|
# @return [Integer] Hash code
|
|
229
239
|
def hash
|
|
230
|
-
[addresses, component_state, description, host_cluster_name, io_groups, name, status, storage_system, uuid, volumes].hash
|
|
240
|
+
[addresses, component_state, description, host_cluster, host_cluster_name, io_groups, name, status, storage_system, uuid, volumes].hash
|
|
231
241
|
end
|
|
232
242
|
|
|
233
243
|
# Builds the object from hash
|
|
@@ -108,7 +108,7 @@ module AutosdeOpenapiClient
|
|
|
108
108
|
if attributes.key?(:'name')
|
|
109
109
|
self.name = attributes[:'name']
|
|
110
110
|
else
|
|
111
|
-
self.name = '
|
|
111
|
+
self.name = 'FlashSystems/SVC'
|
|
112
112
|
end
|
|
113
113
|
|
|
114
114
|
if attributes.key?(:'short_version')
|
|
@@ -132,8 +132,8 @@ module AutosdeOpenapiClient
|
|
|
132
132
|
invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
if !@name.nil? && @name.to_s.length >
|
|
136
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to
|
|
135
|
+
if !@name.nil? && @name.to_s.length > 255
|
|
136
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
|
137
137
|
end
|
|
138
138
|
|
|
139
139
|
if !@short_version.nil? && @short_version.to_s.length > 255
|
|
@@ -149,9 +149,9 @@ module AutosdeOpenapiClient
|
|
|
149
149
|
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
150
150
|
return false unless component_state_validator.valid?(@component_state)
|
|
151
151
|
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
|
152
|
-
name_validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "
|
|
152
|
+
name_validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
|
|
153
153
|
return false unless name_validator.valid?(@name)
|
|
154
|
-
return false if !@name.nil? && @name.to_s.length >
|
|
154
|
+
return false if !@name.nil? && @name.to_s.length > 255
|
|
155
155
|
return false if !@short_version.nil? && @short_version.to_s.length > 255
|
|
156
156
|
true
|
|
157
157
|
end
|
|
@@ -169,7 +169,7 @@ module AutosdeOpenapiClient
|
|
|
169
169
|
# Custom attribute writer method checking allowed values (enum).
|
|
170
170
|
# @param [Object] name Object to be assigned
|
|
171
171
|
def name=(name)
|
|
172
|
-
validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "
|
|
172
|
+
validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
|
|
173
173
|
unless validator.valid?(name)
|
|
174
174
|
fail ArgumentError, "invalid value for \"name\", must be one of #{validator.allowable_values}."
|
|
175
175
|
end
|
|
@@ -113,7 +113,7 @@ module AutosdeOpenapiClient
|
|
|
113
113
|
if attributes.key?(:'name')
|
|
114
114
|
self.name = attributes[:'name']
|
|
115
115
|
else
|
|
116
|
-
self.name = '
|
|
116
|
+
self.name = 'FlashSystems/SVC'
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
if attributes.key?(:'short_version')
|
|
@@ -143,8 +143,8 @@ module AutosdeOpenapiClient
|
|
|
143
143
|
invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
-
if !@name.nil? && @name.to_s.length >
|
|
147
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to
|
|
146
|
+
if !@name.nil? && @name.to_s.length > 255
|
|
147
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
if !@short_version.nil? && @short_version.to_s.length > 255
|
|
@@ -160,9 +160,9 @@ module AutosdeOpenapiClient
|
|
|
160
160
|
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
161
161
|
return false unless component_state_validator.valid?(@component_state)
|
|
162
162
|
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
|
163
|
-
name_validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "
|
|
163
|
+
name_validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
|
|
164
164
|
return false unless name_validator.valid?(@name)
|
|
165
|
-
return false if !@name.nil? && @name.to_s.length >
|
|
165
|
+
return false if !@name.nil? && @name.to_s.length > 255
|
|
166
166
|
return false if !@short_version.nil? && @short_version.to_s.length > 255
|
|
167
167
|
true
|
|
168
168
|
end
|
|
@@ -180,7 +180,7 @@ module AutosdeOpenapiClient
|
|
|
180
180
|
# Custom attribute writer method checking allowed values (enum).
|
|
181
181
|
# @param [Object] name Object to be assigned
|
|
182
182
|
def name=(name)
|
|
183
|
-
validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "
|
|
183
|
+
validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
|
|
184
184
|
unless validator.valid?(name)
|
|
185
185
|
fail ArgumentError, "invalid value for \"name\", must be one of #{validator.allowable_values}."
|
|
186
186
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Site Manager API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1.3
|
|
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 = '1.
|
|
14
|
+
VERSION = '1.1.3'
|
|
15
15
|
end
|
|
@@ -33,6 +33,7 @@ require 'autosde_openapi_client/models/host'
|
|
|
33
33
|
require 'autosde_openapi_client/models/host_cluster'
|
|
34
34
|
require 'autosde_openapi_client/models/host_cluster_create'
|
|
35
35
|
require 'autosde_openapi_client/models/host_cluster_membership'
|
|
36
|
+
require 'autosde_openapi_client/models/host_cluster_response'
|
|
36
37
|
require 'autosde_openapi_client/models/host_cluster_volume_mapping'
|
|
37
38
|
require 'autosde_openapi_client/models/host_cluster_volume_mapping_create'
|
|
38
39
|
require 'autosde_openapi_client/models/host_cluster_volume_mapping_response'
|
|
@@ -34,7 +34,7 @@ describe 'HostClusterApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for host_clusters_get
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
|
37
|
-
# @return [Array<
|
|
37
|
+
# @return [Array<HostClusterResponse>]
|
|
38
38
|
describe 'host_clusters_get test' do
|
|
39
39
|
it 'should work' do
|
|
40
40
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -64,7 +64,7 @@ describe 'HostClusterApi' do
|
|
|
64
64
|
# unit tests for host_clusters_post
|
|
65
65
|
# @param host_cluster_create
|
|
66
66
|
# @param [Hash] opts the optional parameters
|
|
67
|
-
# @return [
|
|
67
|
+
# @return [HostClusterResponse]
|
|
68
68
|
describe 'host_clusters_post test' do
|
|
69
69
|
it 'should work' do
|
|
70
70
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -0,0 +1,86 @@
|
|
|
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::HostClusterResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe AutosdeOpenapiClient::HostClusterResponse do
|
|
21
|
+
let(:instance) { AutosdeOpenapiClient::HostClusterResponse.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of HostClusterResponse' do
|
|
24
|
+
it 'should create an instance of HostClusterResponse' do
|
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterResponse)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
describe 'test attribute "component_state"' do
|
|
29
|
+
it 'should work' do
|
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
31
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
|
32
|
+
# validator.allowable_values.each do |value|
|
|
33
|
+
# expect { instance.component_state = value }.not_to raise_error
|
|
34
|
+
# end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
describe 'test attribute "name"' do
|
|
39
|
+
it 'should work' do
|
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
describe 'test attribute "owner_id"' 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 "owner_name"' 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 "protocol"' 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
|
+
|
|
62
|
+
describe 'test attribute "status"' do
|
|
63
|
+
it 'should work' do
|
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
describe 'test attribute "storage_system"' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
describe 'test attribute "uuid"' 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
|
+
|
|
80
|
+
describe 'test attribute "volumes"' do
|
|
81
|
+
it 'should work' do
|
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
end
|
|
@@ -47,6 +47,12 @@ describe AutosdeOpenapiClient::StorageHostResponse do
|
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
describe 'test attribute "host_cluster"' 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 "host_cluster_name"' do
|
|
51
57
|
it 'should work' do
|
|
52
58
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -41,6 +41,12 @@ describe AutosdeOpenapiClient::StorageHost do
|
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
describe 'test attribute "host_cluster"' 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 "host_cluster_name"' do
|
|
45
51
|
it 'should work' do
|
|
46
52
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -38,7 +38,7 @@ describe AutosdeOpenapiClient::SystemTypeCreate do
|
|
|
38
38
|
describe 'test attribute "name"' do
|
|
39
39
|
it 'should work' do
|
|
40
40
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
41
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "
|
|
41
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
|
|
42
42
|
# validator.allowable_values.each do |value|
|
|
43
43
|
# expect { instance.name = value }.not_to raise_error
|
|
44
44
|
# end
|
|
@@ -38,7 +38,7 @@ describe AutosdeOpenapiClient::SystemType do
|
|
|
38
38
|
describe 'test attribute "name"' do
|
|
39
39
|
it 'should work' do
|
|
40
40
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
41
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "
|
|
41
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
|
|
42
42
|
# validator.allowable_values.each do |value|
|
|
43
43
|
# expect { instance.name = value }.not_to raise_error
|
|
44
44
|
# 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: 1.
|
|
4
|
+
version: 1.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-12-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -87,6 +87,7 @@ files:
|
|
|
87
87
|
- docs/HostClusterCreate.md
|
|
88
88
|
- docs/HostClusterMembership.md
|
|
89
89
|
- docs/HostClusterMembershipApi.md
|
|
90
|
+
- docs/HostClusterResponse.md
|
|
90
91
|
- docs/HostClusterVolumeMapping.md
|
|
91
92
|
- docs/HostClusterVolumeMappingApi.md
|
|
92
93
|
- docs/HostClusterVolumeMappingCreate.md
|
|
@@ -191,6 +192,7 @@ files:
|
|
|
191
192
|
- lib/autosde_openapi_client/models/host_cluster.rb
|
|
192
193
|
- lib/autosde_openapi_client/models/host_cluster_create.rb
|
|
193
194
|
- lib/autosde_openapi_client/models/host_cluster_membership.rb
|
|
195
|
+
- lib/autosde_openapi_client/models/host_cluster_response.rb
|
|
194
196
|
- lib/autosde_openapi_client/models/host_cluster_volume_mapping.rb
|
|
195
197
|
- lib/autosde_openapi_client/models/host_cluster_volume_mapping_create.rb
|
|
196
198
|
- lib/autosde_openapi_client/models/host_cluster_volume_mapping_response.rb
|
|
@@ -274,6 +276,7 @@ files:
|
|
|
274
276
|
- spec/models/capability_translation_spec.rb
|
|
275
277
|
- spec/models/host_cluster_create_spec.rb
|
|
276
278
|
- spec/models/host_cluster_membership_spec.rb
|
|
279
|
+
- spec/models/host_cluster_response_spec.rb
|
|
277
280
|
- spec/models/host_cluster_spec.rb
|
|
278
281
|
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
|
279
282
|
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
|
@@ -316,7 +319,7 @@ files:
|
|
|
316
319
|
- spec/models/volume_spec.rb
|
|
317
320
|
- spec/models/volume_update_spec.rb
|
|
318
321
|
- spec/spec_helper.rb
|
|
319
|
-
homepage: https://github.com/Autosde/autosde-oas/
|
|
322
|
+
homepage: https://github.com/Autosde/autosde-oas/generated
|
|
320
323
|
licenses:
|
|
321
324
|
- Apache-2.0
|
|
322
325
|
metadata: {}
|
|
@@ -340,88 +343,89 @@ signing_key:
|
|
|
340
343
|
specification_version: 4
|
|
341
344
|
summary: Site Manager API Ruby Gem
|
|
342
345
|
test_files:
|
|
343
|
-
- spec/api/
|
|
344
|
-
- spec/api/
|
|
346
|
+
- spec/api/host_api_spec.rb
|
|
347
|
+
- spec/api/profile_api_spec.rb
|
|
345
348
|
- spec/api/native_capability_api_spec.rb
|
|
346
349
|
- spec/api/abstract_capability_api_spec.rb
|
|
347
|
-
- spec/api/
|
|
348
|
-
- spec/api/host_cluster_api_spec.rb
|
|
349
|
-
- spec/api/volume_safe_delete_api_spec.rb
|
|
350
|
-
- spec/api/host_cluster_membership_api_spec.rb
|
|
351
|
-
- spec/api/authentication_api_spec.rb
|
|
350
|
+
- spec/api/volume_api_spec.rb
|
|
352
351
|
- spec/api/account_api_spec.rb
|
|
353
|
-
- spec/api/
|
|
354
|
-
- spec/api/
|
|
352
|
+
- spec/api/host_volume_connection_api_spec.rb
|
|
353
|
+
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
|
354
|
+
- spec/api/service_resource_attachment_api_spec.rb
|
|
355
355
|
- spec/api/storage_system_api_spec.rb
|
|
356
|
-
- spec/api/snapshot_api_spec.rb
|
|
357
356
|
- spec/api/provisioning_strategy_api_spec.rb
|
|
357
|
+
- spec/api/volume_safe_delete_api_spec.rb
|
|
358
|
+
- spec/api/storage_host_api_spec.rb
|
|
359
|
+
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
|
360
|
+
- spec/api/host_cluster_membership_api_spec.rb
|
|
361
|
+
- spec/api/host_cluster_api_spec.rb
|
|
362
|
+
- spec/api/snapshot_api_spec.rb
|
|
363
|
+
- spec/api/storage_resource_api_spec.rb
|
|
364
|
+
- spec/api/authentication_api_spec.rb
|
|
358
365
|
- spec/api/service_api_spec.rb
|
|
359
|
-
- spec/api/job_api_spec.rb
|
|
360
|
-
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
|
361
|
-
- spec/api/host_api_spec.rb
|
|
362
366
|
- spec/api/capability_translation_api_spec.rb
|
|
363
|
-
- spec/api/
|
|
367
|
+
- spec/api/address_api_spec.rb
|
|
368
|
+
- spec/api/job_api_spec.rb
|
|
369
|
+
- spec/api/storage_host_volume_mapping_api_spec.rb
|
|
370
|
+
- spec/api/system_type_api_spec.rb
|
|
371
|
+
- spec/api/auto_sde_role_api_spec.rb
|
|
364
372
|
- spec/api/auto_sde_project_api_spec.rb
|
|
365
|
-
- spec/api/host_volume_connection_api_spec.rb
|
|
366
|
-
- spec/api/profile_api_spec.rb
|
|
367
|
-
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
|
368
|
-
- spec/api/service_resource_attachment_api_spec.rb
|
|
369
|
-
- spec/api/volume_api_spec.rb
|
|
370
373
|
- spec/api_client_spec.rb
|
|
371
374
|
- spec/configuration_spec.rb
|
|
372
375
|
- spec/models/volume_create_spec.rb
|
|
373
|
-
- spec/models/
|
|
374
|
-
- spec/models/
|
|
375
|
-
- spec/models/
|
|
376
|
-
- spec/models/host_create_spec.rb
|
|
377
|
-
- spec/models/address_create_spec.rb
|
|
378
|
-
- spec/models/storage_resource_response_spec.rb
|
|
379
|
-
- spec/models/snapshot_spec.rb
|
|
380
|
-
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
|
381
|
-
- spec/models/native_capability_spec.rb
|
|
382
|
-
- spec/models/authentication_spec.rb
|
|
383
|
-
- spec/models/system_type_create_spec.rb
|
|
384
|
-
- spec/models/storage_resource_spec.rb
|
|
385
|
-
- spec/models/storage_host_update_spec.rb
|
|
386
|
-
- spec/models/provisioning_strategy_spec.rb
|
|
387
|
-
- spec/models/account_post_request_spec.rb
|
|
376
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
|
377
|
+
- spec/models/storage_host_create_spec.rb
|
|
378
|
+
- spec/models/auto_sde_role_spec.rb
|
|
388
379
|
- spec/models/volume_spec.rb
|
|
389
|
-
- spec/models/
|
|
390
|
-
- spec/models/
|
|
391
|
-
- spec/models/storage_host_volume_mapping_create_spec.rb
|
|
392
|
-
- spec/models/service_create_spec.rb
|
|
393
|
-
- spec/models/capability_translation_spec.rb
|
|
394
|
-
- spec/models/host_volume_connection_spec.rb
|
|
395
|
-
- spec/models/volume_safe_delete_spec.rb
|
|
396
|
-
- spec/models/storage_system_update_spec.rb
|
|
397
|
-
- spec/models/auth_response_spec.rb
|
|
380
|
+
- spec/models/profile_spec.rb
|
|
381
|
+
- spec/models/storage_host_volume_mapping_spec.rb
|
|
398
382
|
- spec/models/system_type_spec.rb
|
|
399
|
-
- spec/models/storage_system_spec.rb
|
|
400
|
-
- spec/models/snapshot_create_spec.rb
|
|
401
383
|
- spec/models/storage_host_response_spec.rb
|
|
402
|
-
- spec/models/
|
|
384
|
+
- spec/models/storage_host_volume_mapping_create_spec.rb
|
|
403
385
|
- spec/models/host_cluster_create_spec.rb
|
|
404
|
-
- spec/models/service_abstract_capability_value_spec.rb
|
|
405
386
|
- spec/models/storage_resource_create_spec.rb
|
|
406
|
-
- spec/models/job_spec.rb
|
|
407
387
|
- spec/models/storage_host_spec.rb
|
|
408
|
-
- spec/models/
|
|
388
|
+
- spec/models/address_spec.rb
|
|
389
|
+
- spec/models/host_volume_connection_create_spec.rb
|
|
390
|
+
- spec/models/volume_safe_delete_spec.rb
|
|
409
391
|
- spec/models/host_spec.rb
|
|
410
|
-
- spec/models/
|
|
411
|
-
- spec/models/
|
|
412
|
-
- spec/models/
|
|
392
|
+
- spec/models/snapshot_spec.rb
|
|
393
|
+
- spec/models/storage_system_update_spec.rb
|
|
394
|
+
- spec/models/account_post_request_spec.rb
|
|
395
|
+
- spec/models/auth_response_spec.rb
|
|
396
|
+
- spec/models/service_create_spec.rb
|
|
413
397
|
- spec/models/service_spec.rb
|
|
398
|
+
- spec/models/abstract_capability_spec.rb
|
|
399
|
+
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
|
400
|
+
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
|
401
|
+
- spec/models/host_cluster_membership_spec.rb
|
|
414
402
|
- spec/models/volume_response_spec.rb
|
|
415
|
-
- spec/models/
|
|
416
|
-
- spec/models/storage_host_volume_mapping_response_spec.rb
|
|
403
|
+
- spec/models/authentication_spec.rb
|
|
417
404
|
- spec/models/account_post_response_spec.rb
|
|
418
|
-
- spec/models/volume_update_spec.rb
|
|
419
|
-
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
|
420
|
-
- spec/models/auto_sde_role_spec.rb
|
|
421
|
-
- spec/models/capability_translation_create_spec.rb
|
|
422
|
-
- spec/models/storage_host_volume_mapping_spec.rb
|
|
423
|
-
- spec/models/storage_host_wwpn_candidates_spec.rb
|
|
424
|
-
- spec/models/profile_spec.rb
|
|
425
405
|
- spec/models/storage_system_create_spec.rb
|
|
406
|
+
- spec/models/storage_resource_spec.rb
|
|
407
|
+
- spec/models/snapshot_create_spec.rb
|
|
408
|
+
- spec/models/host_volume_connection_spec.rb
|
|
409
|
+
- spec/models/host_cluster_volume_mapping_spec.rb
|
|
410
|
+
- spec/models/host_cluster_spec.rb
|
|
411
|
+
- spec/models/job_spec.rb
|
|
412
|
+
- spec/models/job_create_spec.rb
|
|
413
|
+
- spec/models/storage_system_spec.rb
|
|
414
|
+
- spec/models/service_resource_attachment_spec.rb
|
|
415
|
+
- spec/models/system_type_create_spec.rb
|
|
416
|
+
- spec/models/capability_translation_create_spec.rb
|
|
417
|
+
- spec/models/volume_safe_delete_create_spec.rb
|
|
418
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
|
419
|
+
- spec/models/host_create_spec.rb
|
|
420
|
+
- spec/models/address_create_spec.rb
|
|
421
|
+
- spec/models/storage_resource_response_spec.rb
|
|
422
|
+
- spec/models/native_capability_spec.rb
|
|
423
|
+
- spec/models/account_spec.rb
|
|
424
|
+
- spec/models/storage_host_update_spec.rb
|
|
425
|
+
- spec/models/volume_update_spec.rb
|
|
426
|
+
- spec/models/storage_host_volume_mapping_response_spec.rb
|
|
427
|
+
- spec/models/host_cluster_response_spec.rb
|
|
426
428
|
- spec/models/auto_sde_project_spec.rb
|
|
429
|
+
- spec/models/capability_translation_spec.rb
|
|
430
|
+
- spec/models/provisioning_strategy_spec.rb
|
|
427
431
|
- spec/spec_helper.rb
|