autosde_openapi_client 2.0.4 → 2.0.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 +1 -0
- data/docs/Event.md +2 -0
- data/docs/EventResponse.md +2 -0
- data/docs/RefreshSystem.md +4 -2
- data/docs/ServiceApi.md +12 -12
- data/docs/ServiceResponse.md +38 -0
- data/docs/StorageResourceResponse.md +2 -0
- data/docs/VolumeCreate.md +5 -1
- data/lib/autosde_openapi_client/api/service_api.rb +9 -9
- data/lib/autosde_openapi_client/models/event.rb +11 -1
- data/lib/autosde_openapi_client/models/event_response.rb +11 -1
- data/lib/autosde_openapi_client/models/refresh_system.rb +51 -7
- data/lib/autosde_openapi_client/models/service_response.rb +364 -0
- data/lib/autosde_openapi_client/models/storage_resource_response.rb +11 -1
- data/lib/autosde_openapi_client/models/volume_create.rb +26 -3
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +1 -0
- data/spec/api/service_api_spec.rb +3 -3
- data/spec/models/event_response_spec.rb +6 -0
- data/spec/models/event_spec.rb +6 -0
- data/spec/models/refresh_system_spec.rb +11 -1
- data/spec/models/service_response_spec.rb +98 -0
- data/spec/models/storage_resource_response_spec.rb +6 -0
- data/spec/models/volume_create_spec.rb +12 -0
- metadata +83 -79
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faea4a88bee593ca729b24f078163138d8386168895945d4ecacfb89e5502284
|
4
|
+
data.tar.gz: 351489d929aa947cb64f5e59b92e0aff55bbd1356340de2e0e49a4e918f2e88a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09ab7af8bf2cc5e4bdc4c4757bda66dfde96ec2067408c5c9e3f7f728a2b079d20829c0b7573564c6bf0d708c343c07f80aed08cf6e6778295f2e49e27de2513'
|
7
|
+
data.tar.gz: 8b52a2a424cbf59aded6e489436bc314754fa51ad77fd4aeb448b33f2759f4e210107727d65fbf7962cd9294dc0879d95d5a6cfa03534b80b2b47a3a739ed742
|
data/README.md
CHANGED
@@ -243,6 +243,7 @@ Class | Method | HTTP request | Description
|
|
243
243
|
- [AutosdeOpenapiClient::ServiceAbstractCapabilityValueResponse](docs/ServiceAbstractCapabilityValueResponse.md)
|
244
244
|
- [AutosdeOpenapiClient::ServiceCreate](docs/ServiceCreate.md)
|
245
245
|
- [AutosdeOpenapiClient::ServiceResourceAttachment](docs/ServiceResourceAttachment.md)
|
246
|
+
- [AutosdeOpenapiClient::ServiceResponse](docs/ServiceResponse.md)
|
246
247
|
- [AutosdeOpenapiClient::Snapshot](docs/Snapshot.md)
|
247
248
|
- [AutosdeOpenapiClient::SnapshotCreate](docs/SnapshotCreate.md)
|
248
249
|
- [AutosdeOpenapiClient::StorageHost](docs/StorageHost.md)
|
data/docs/Event.md
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
| **fixed** | **String** | fixed | [optional] |
|
12
12
|
| **last_timestamp** | **Time** | last_timestamp | [optional] |
|
13
13
|
| **refresh_interval** | **Integer** | refresh_interval | [optional] |
|
14
|
+
| **sequence_number** | **Integer** | sequence_number | [optional] |
|
14
15
|
| **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
|
15
16
|
| **uuid** | **String** | uuid | [optional] |
|
16
17
|
|
@@ -27,6 +28,7 @@ instance = AutosdeOpenapiClient::Event.new(
|
|
27
28
|
fixed: null,
|
28
29
|
last_timestamp: null,
|
29
30
|
refresh_interval: null,
|
31
|
+
sequence_number: null,
|
30
32
|
storage_system: null,
|
31
33
|
uuid: null
|
32
34
|
)
|
data/docs/EventResponse.md
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
| **fixed** | **String** | fixed | [optional] |
|
12
12
|
| **last_timestamp** | **Time** | last_timestamp | [optional] |
|
13
13
|
| **refresh_interval** | **Integer** | refresh_interval | [optional] |
|
14
|
+
| **sequence_number** | **Integer** | sequence_number | [optional] |
|
14
15
|
| **storage_system** | **String** | !!uuid of storage_system | [optional] |
|
15
16
|
| **uuid** | **String** | uuid | [optional] |
|
16
17
|
|
@@ -27,6 +28,7 @@ instance = AutosdeOpenapiClient::EventResponse.new(
|
|
27
28
|
fixed: null,
|
28
29
|
last_timestamp: null,
|
29
30
|
refresh_interval: null,
|
31
|
+
sequence_number: null,
|
30
32
|
storage_system: null,
|
31
33
|
uuid: null
|
32
34
|
)
|
data/docs/RefreshSystem.md
CHANGED
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **resource_type** | **String** | resource_type | [optional] |
|
8
|
+
| **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
|
8
9
|
|
9
10
|
## Example
|
10
11
|
|
@@ -12,7 +13,8 @@
|
|
12
13
|
require 'autosde_openapi_client'
|
13
14
|
|
14
15
|
instance = AutosdeOpenapiClient::RefreshSystem.new(
|
15
|
-
|
16
|
+
resource_type: null,
|
17
|
+
storage_system: null
|
16
18
|
)
|
17
19
|
```
|
18
20
|
|
data/docs/ServiceApi.md
CHANGED
@@ -13,7 +13,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
|
13
13
|
|
14
14
|
## services_get
|
15
15
|
|
16
|
-
> <Array<
|
16
|
+
> <Array<ServiceResponse>> services_get
|
17
17
|
|
18
18
|
|
19
19
|
|
@@ -43,7 +43,7 @@ end
|
|
43
43
|
|
44
44
|
This returns an Array which contains the response data, status code and headers.
|
45
45
|
|
46
|
-
> <Array(<Array<
|
46
|
+
> <Array(<Array<ServiceResponse>>, Integer, Hash)> services_get_with_http_info
|
47
47
|
|
48
48
|
```ruby
|
49
49
|
begin
|
@@ -51,7 +51,7 @@ begin
|
|
51
51
|
data, status_code, headers = api_instance.services_get_with_http_info
|
52
52
|
p status_code # => 2xx
|
53
53
|
p headers # => { ... }
|
54
|
-
p data # => <Array<
|
54
|
+
p data # => <Array<ServiceResponse>>
|
55
55
|
rescue AutosdeOpenapiClient::ApiError => e
|
56
56
|
puts "Error when calling ServiceApi->services_get_with_http_info: #{e}"
|
57
57
|
end
|
@@ -63,7 +63,7 @@ This endpoint does not need any parameter.
|
|
63
63
|
|
64
64
|
### Return type
|
65
65
|
|
66
|
-
[**Array<
|
66
|
+
[**Array<ServiceResponse>**](ServiceResponse.md)
|
67
67
|
|
68
68
|
### Authorization
|
69
69
|
|
@@ -77,7 +77,7 @@ This endpoint does not need any parameter.
|
|
77
77
|
|
78
78
|
## services_pk_delete
|
79
79
|
|
80
|
-
> <
|
80
|
+
> <Service> services_pk_delete(pk)
|
81
81
|
|
82
82
|
|
83
83
|
|
@@ -108,7 +108,7 @@ end
|
|
108
108
|
|
109
109
|
This returns an Array which contains the response data, status code and headers.
|
110
110
|
|
111
|
-
> <Array(<
|
111
|
+
> <Array(<Service>, Integer, Hash)> services_pk_delete_with_http_info(pk)
|
112
112
|
|
113
113
|
```ruby
|
114
114
|
begin
|
@@ -116,7 +116,7 @@ begin
|
|
116
116
|
data, status_code, headers = api_instance.services_pk_delete_with_http_info(pk)
|
117
117
|
p status_code # => 2xx
|
118
118
|
p headers # => { ... }
|
119
|
-
p data # => <
|
119
|
+
p data # => <Service>
|
120
120
|
rescue AutosdeOpenapiClient::ApiError => e
|
121
121
|
puts "Error when calling ServiceApi->services_pk_delete_with_http_info: #{e}"
|
122
122
|
end
|
@@ -130,7 +130,7 @@ end
|
|
130
130
|
|
131
131
|
### Return type
|
132
132
|
|
133
|
-
[**
|
133
|
+
[**Service**](Service.md)
|
134
134
|
|
135
135
|
### Authorization
|
136
136
|
|
@@ -280,7 +280,7 @@ end
|
|
280
280
|
|
281
281
|
## services_post
|
282
282
|
|
283
|
-
> <
|
283
|
+
> <ServiceResponse> services_post(service_create)
|
284
284
|
|
285
285
|
|
286
286
|
|
@@ -311,7 +311,7 @@ end
|
|
311
311
|
|
312
312
|
This returns an Array which contains the response data, status code and headers.
|
313
313
|
|
314
|
-
> <Array(<
|
314
|
+
> <Array(<ServiceResponse>, Integer, Hash)> services_post_with_http_info(service_create)
|
315
315
|
|
316
316
|
```ruby
|
317
317
|
begin
|
@@ -319,7 +319,7 @@ begin
|
|
319
319
|
data, status_code, headers = api_instance.services_post_with_http_info(service_create)
|
320
320
|
p status_code # => 2xx
|
321
321
|
p headers # => { ... }
|
322
|
-
p data # => <
|
322
|
+
p data # => <ServiceResponse>
|
323
323
|
rescue AutosdeOpenapiClient::ApiError => e
|
324
324
|
puts "Error when calling ServiceApi->services_post_with_http_info: #{e}"
|
325
325
|
end
|
@@ -333,7 +333,7 @@ end
|
|
333
333
|
|
334
334
|
### Return type
|
335
335
|
|
336
|
-
[**
|
336
|
+
[**ServiceResponse**](ServiceResponse.md)
|
337
337
|
|
338
338
|
### Authorization
|
339
339
|
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# AutosdeOpenapiClient::ServiceResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **capability_values** | [**ServiceAbstractCapabilityValue**](ServiceAbstractCapabilityValue.md) | | [optional] |
|
8
|
+
| **capability_values_json** | **String** | capability_values_json | [optional] |
|
9
|
+
| **component_state** | **String** | component_state | [optional] |
|
10
|
+
| **description** | **String** | description | [optional][default to ''] |
|
11
|
+
| **name** | **String** | name | [optional] |
|
12
|
+
| **profile** | **String** | !!uuid of profile | [optional] |
|
13
|
+
| **project** | **String** | !!uuid of project | [optional] |
|
14
|
+
| **provisioning_strategy** | **String** | !!uuid of provisioning_strategy | [optional] |
|
15
|
+
| **resource_service** | **Boolean** | resource_service | [optional][default to false] |
|
16
|
+
| **uuid** | **String** | uuid | [optional] |
|
17
|
+
| **version** | **Integer** | The version of the service | [optional][default to 1] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'autosde_openapi_client'
|
23
|
+
|
24
|
+
instance = AutosdeOpenapiClient::ServiceResponse.new(
|
25
|
+
capability_values: null,
|
26
|
+
capability_values_json: null,
|
27
|
+
component_state: null,
|
28
|
+
description: null,
|
29
|
+
name: null,
|
30
|
+
profile: null,
|
31
|
+
project: null,
|
32
|
+
provisioning_strategy: null,
|
33
|
+
resource_service: null,
|
34
|
+
uuid: null,
|
35
|
+
version: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -5,6 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **advanced_attributes_map** | **String** | advanced_attributes_map | [optional] |
|
8
|
+
| **capability_values_json** | **String** | capability_values_json | [optional] |
|
8
9
|
| **component_state** | **String** | component_state | [optional] |
|
9
10
|
| **logical_free** | **Integer** | logical_free | [optional][default to 0] |
|
10
11
|
| **logical_total** | **Integer** | The Total logical capacity of this resource (gb) | [optional][default to 0] |
|
@@ -21,6 +22,7 @@ require 'autosde_openapi_client'
|
|
21
22
|
|
22
23
|
instance = AutosdeOpenapiClient::StorageResourceResponse.new(
|
23
24
|
advanced_attributes_map: null,
|
25
|
+
capability_values_json: null,
|
24
26
|
component_state: null,
|
25
27
|
logical_free: null,
|
26
28
|
logical_total: null,
|
data/docs/VolumeCreate.md
CHANGED
@@ -8,7 +8,9 @@
|
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
9
9
|
| **count** | **Integer** | count | [optional][default to 1] |
|
10
10
|
| **name** | **String** | name | [optional] |
|
11
|
-
| **
|
11
|
+
| **resources** | **Array<String>** | resources | [optional] |
|
12
|
+
| **service** | [**Service**](Service.md) | | [optional] |
|
13
|
+
| **service_name** | **String** | service_name | [optional][default to 'null'] |
|
12
14
|
| **size** | **Integer** | size | [optional] |
|
13
15
|
| **status** | **String** | status | [optional] |
|
14
16
|
| **unmapped_since** | **Time** | unmapped_since | [optional] |
|
@@ -25,7 +27,9 @@ instance = AutosdeOpenapiClient::VolumeCreate.new(
|
|
25
27
|
component_state: null,
|
26
28
|
count: null,
|
27
29
|
name: null,
|
30
|
+
resources: null,
|
28
31
|
service: null,
|
32
|
+
service_name: null,
|
29
33
|
size: null,
|
30
34
|
status: null,
|
31
35
|
unmapped_since: null,
|
@@ -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<ServiceResponse>]
|
24
24
|
def services_get(opts = {})
|
25
25
|
data, _status_code, _headers = services_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<ServiceResponse>, Integer, Hash)>] Array<ServiceResponse> data, response status code and response headers
|
31
31
|
def services_get_with_http_info(opts = {})
|
32
32
|
if @api_client.config.debugging
|
33
33
|
@api_client.config.logger.debug 'Calling API: ServiceApi.services_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<ServiceResponse>'
|
54
54
|
|
55
55
|
# auth_names
|
56
56
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -74,7 +74,7 @@ module AutosdeOpenapiClient
|
|
74
74
|
|
75
75
|
# @param pk [Integer]
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [
|
77
|
+
# @return [Service]
|
78
78
|
def services_pk_delete(pk, opts = {})
|
79
79
|
data, _status_code, _headers = services_pk_delete_with_http_info(pk, opts)
|
80
80
|
data
|
@@ -82,7 +82,7 @@ module AutosdeOpenapiClient
|
|
82
82
|
|
83
83
|
# @param pk [Integer]
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
|
-
# @return [Array<(
|
85
|
+
# @return [Array<(Service, Integer, Hash)>] Service data, response status code and response headers
|
86
86
|
def services_pk_delete_with_http_info(pk, opts = {})
|
87
87
|
if @api_client.config.debugging
|
88
88
|
@api_client.config.logger.debug 'Calling API: ServiceApi.services_pk_delete ...'
|
@@ -109,7 +109,7 @@ module AutosdeOpenapiClient
|
|
109
109
|
post_body = opts[:debug_body]
|
110
110
|
|
111
111
|
# return_type
|
112
|
-
return_type = opts[:debug_return_type] || '
|
112
|
+
return_type = opts[:debug_return_type] || 'Service'
|
113
113
|
|
114
114
|
# auth_names
|
115
115
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -259,7 +259,7 @@ module AutosdeOpenapiClient
|
|
259
259
|
|
260
260
|
# @param service_create [ServiceCreate]
|
261
261
|
# @param [Hash] opts the optional parameters
|
262
|
-
# @return [
|
262
|
+
# @return [ServiceResponse]
|
263
263
|
def services_post(service_create, opts = {})
|
264
264
|
data, _status_code, _headers = services_post_with_http_info(service_create, opts)
|
265
265
|
data
|
@@ -267,7 +267,7 @@ module AutosdeOpenapiClient
|
|
267
267
|
|
268
268
|
# @param service_create [ServiceCreate]
|
269
269
|
# @param [Hash] opts the optional parameters
|
270
|
-
# @return [Array<(
|
270
|
+
# @return [Array<(ServiceResponse, Integer, Hash)>] ServiceResponse data, response status code and response headers
|
271
271
|
def services_post_with_http_info(service_create, opts = {})
|
272
272
|
if @api_client.config.debugging
|
273
273
|
@api_client.config.logger.debug 'Calling API: ServiceApi.services_post ...'
|
@@ -296,7 +296,7 @@ module AutosdeOpenapiClient
|
|
296
296
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(service_create)
|
297
297
|
|
298
298
|
# return_type
|
299
|
-
return_type = opts[:debug_return_type] || '
|
299
|
+
return_type = opts[:debug_return_type] || 'ServiceResponse'
|
300
300
|
|
301
301
|
# auth_names
|
302
302
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -37,6 +37,9 @@ module AutosdeOpenapiClient
|
|
37
37
|
# refresh_interval
|
38
38
|
attr_accessor :refresh_interval
|
39
39
|
|
40
|
+
# sequence_number
|
41
|
+
attr_accessor :sequence_number
|
42
|
+
|
40
43
|
attr_accessor :storage_system
|
41
44
|
|
42
45
|
# uuid
|
@@ -52,6 +55,7 @@ module AutosdeOpenapiClient
|
|
52
55
|
:'fixed' => :'fixed',
|
53
56
|
:'last_timestamp' => :'last_timestamp',
|
54
57
|
:'refresh_interval' => :'refresh_interval',
|
58
|
+
:'sequence_number' => :'sequence_number',
|
55
59
|
:'storage_system' => :'storage_system',
|
56
60
|
:'uuid' => :'uuid'
|
57
61
|
}
|
@@ -72,6 +76,7 @@ module AutosdeOpenapiClient
|
|
72
76
|
:'fixed' => :'String',
|
73
77
|
:'last_timestamp' => :'Time',
|
74
78
|
:'refresh_interval' => :'Integer',
|
79
|
+
:'sequence_number' => :'Integer',
|
75
80
|
:'storage_system' => :'StorageSystem',
|
76
81
|
:'uuid' => :'String'
|
77
82
|
}
|
@@ -126,6 +131,10 @@ module AutosdeOpenapiClient
|
|
126
131
|
self.refresh_interval = attributes[:'refresh_interval']
|
127
132
|
end
|
128
133
|
|
134
|
+
if attributes.key?(:'sequence_number')
|
135
|
+
self.sequence_number = attributes[:'sequence_number']
|
136
|
+
end
|
137
|
+
|
129
138
|
if attributes.key?(:'storage_system')
|
130
139
|
self.storage_system = attributes[:'storage_system']
|
131
140
|
end
|
@@ -160,6 +169,7 @@ module AutosdeOpenapiClient
|
|
160
169
|
fixed == o.fixed &&
|
161
170
|
last_timestamp == o.last_timestamp &&
|
162
171
|
refresh_interval == o.refresh_interval &&
|
172
|
+
sequence_number == o.sequence_number &&
|
163
173
|
storage_system == o.storage_system &&
|
164
174
|
uuid == o.uuid
|
165
175
|
end
|
@@ -173,7 +183,7 @@ module AutosdeOpenapiClient
|
|
173
183
|
# Calculates hash code according to all attributes.
|
174
184
|
# @return [Integer] Hash code
|
175
185
|
def hash
|
176
|
-
[description, error_code, event_id, event_type, fixed, last_timestamp, refresh_interval, storage_system, uuid].hash
|
186
|
+
[description, error_code, event_id, event_type, fixed, last_timestamp, refresh_interval, sequence_number, storage_system, uuid].hash
|
177
187
|
end
|
178
188
|
|
179
189
|
# Builds the object from hash
|
@@ -37,6 +37,9 @@ module AutosdeOpenapiClient
|
|
37
37
|
# refresh_interval
|
38
38
|
attr_accessor :refresh_interval
|
39
39
|
|
40
|
+
# sequence_number
|
41
|
+
attr_accessor :sequence_number
|
42
|
+
|
40
43
|
# !!uuid of storage_system
|
41
44
|
attr_accessor :storage_system
|
42
45
|
|
@@ -53,6 +56,7 @@ module AutosdeOpenapiClient
|
|
53
56
|
:'fixed' => :'fixed',
|
54
57
|
:'last_timestamp' => :'last_timestamp',
|
55
58
|
:'refresh_interval' => :'refresh_interval',
|
59
|
+
:'sequence_number' => :'sequence_number',
|
56
60
|
:'storage_system' => :'storage_system',
|
57
61
|
:'uuid' => :'uuid'
|
58
62
|
}
|
@@ -73,6 +77,7 @@ module AutosdeOpenapiClient
|
|
73
77
|
:'fixed' => :'String',
|
74
78
|
:'last_timestamp' => :'Time',
|
75
79
|
:'refresh_interval' => :'Integer',
|
80
|
+
:'sequence_number' => :'Integer',
|
76
81
|
:'storage_system' => :'String',
|
77
82
|
:'uuid' => :'String'
|
78
83
|
}
|
@@ -127,6 +132,10 @@ module AutosdeOpenapiClient
|
|
127
132
|
self.refresh_interval = attributes[:'refresh_interval']
|
128
133
|
end
|
129
134
|
|
135
|
+
if attributes.key?(:'sequence_number')
|
136
|
+
self.sequence_number = attributes[:'sequence_number']
|
137
|
+
end
|
138
|
+
|
130
139
|
if attributes.key?(:'storage_system')
|
131
140
|
self.storage_system = attributes[:'storage_system']
|
132
141
|
end
|
@@ -161,6 +170,7 @@ module AutosdeOpenapiClient
|
|
161
170
|
fixed == o.fixed &&
|
162
171
|
last_timestamp == o.last_timestamp &&
|
163
172
|
refresh_interval == o.refresh_interval &&
|
173
|
+
sequence_number == o.sequence_number &&
|
164
174
|
storage_system == o.storage_system &&
|
165
175
|
uuid == o.uuid
|
166
176
|
end
|
@@ -174,7 +184,7 @@ module AutosdeOpenapiClient
|
|
174
184
|
# Calculates hash code according to all attributes.
|
175
185
|
# @return [Integer] Hash code
|
176
186
|
def hash
|
177
|
-
[description, error_code, event_id, event_type, fixed, last_timestamp, refresh_interval, storage_system, uuid].hash
|
187
|
+
[description, error_code, event_id, event_type, fixed, last_timestamp, refresh_interval, sequence_number, storage_system, uuid].hash
|
178
188
|
end
|
179
189
|
|
180
190
|
# Builds the object from hash
|
@@ -16,12 +16,38 @@ require 'time'
|
|
16
16
|
module AutosdeOpenapiClient
|
17
17
|
# RefreshSystem object represents refreshing of the storage system.
|
18
18
|
class RefreshSystem
|
19
|
-
|
19
|
+
# resource_type
|
20
|
+
attr_accessor :resource_type
|
21
|
+
|
22
|
+
attr_accessor :storage_system
|
23
|
+
|
24
|
+
class EnumAttributeValidator
|
25
|
+
attr_reader :datatype
|
26
|
+
attr_reader :allowable_values
|
27
|
+
|
28
|
+
def initialize(datatype, allowable_values)
|
29
|
+
@allowable_values = allowable_values.map do |value|
|
30
|
+
case datatype.to_s
|
31
|
+
when /Integer/i
|
32
|
+
value.to_i
|
33
|
+
when /Float/i
|
34
|
+
value.to_f
|
35
|
+
else
|
36
|
+
value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def valid?(value)
|
42
|
+
!value || allowable_values.include?(value)
|
43
|
+
end
|
44
|
+
end
|
20
45
|
|
21
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
47
|
def self.attribute_map
|
23
48
|
{
|
24
|
-
:'
|
49
|
+
:'resource_type' => :'resource_type',
|
50
|
+
:'storage_system' => :'storage_system'
|
25
51
|
}
|
26
52
|
end
|
27
53
|
|
@@ -33,7 +59,8 @@ module AutosdeOpenapiClient
|
|
33
59
|
# Attribute type mapping.
|
34
60
|
def self.openapi_types
|
35
61
|
{
|
36
|
-
:'
|
62
|
+
:'resource_type' => :'String',
|
63
|
+
:'storage_system' => :'StorageSystem'
|
37
64
|
}
|
38
65
|
end
|
39
66
|
|
@@ -58,8 +85,12 @@ module AutosdeOpenapiClient
|
|
58
85
|
h[k.to_sym] = v
|
59
86
|
}
|
60
87
|
|
61
|
-
if attributes.key?(:'
|
62
|
-
self.
|
88
|
+
if attributes.key?(:'resource_type')
|
89
|
+
self.resource_type = attributes[:'resource_type']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'storage_system')
|
93
|
+
self.storage_system = attributes[:'storage_system']
|
63
94
|
end
|
64
95
|
end
|
65
96
|
|
@@ -73,15 +104,28 @@ module AutosdeOpenapiClient
|
|
73
104
|
# Check to see if the all the properties in the model are valid
|
74
105
|
# @return true if the model is valid
|
75
106
|
def valid?
|
107
|
+
resource_type_validator = EnumAttributeValidator.new('String', ["system_resources", "volumes", "hosts", "events"])
|
108
|
+
return false unless resource_type_validator.valid?(@resource_type)
|
76
109
|
true
|
77
110
|
end
|
78
111
|
|
112
|
+
# Custom attribute writer method checking allowed values (enum).
|
113
|
+
# @param [Object] resource_type Object to be assigned
|
114
|
+
def resource_type=(resource_type)
|
115
|
+
validator = EnumAttributeValidator.new('String', ["system_resources", "volumes", "hosts", "events"])
|
116
|
+
unless validator.valid?(resource_type)
|
117
|
+
fail ArgumentError, "invalid value for \"resource_type\", must be one of #{validator.allowable_values}."
|
118
|
+
end
|
119
|
+
@resource_type = resource_type
|
120
|
+
end
|
121
|
+
|
79
122
|
# Checks equality by comparing each attribute.
|
80
123
|
# @param [Object] Object to be compared
|
81
124
|
def ==(o)
|
82
125
|
return true if self.equal?(o)
|
83
126
|
self.class == o.class &&
|
84
|
-
|
127
|
+
resource_type == o.resource_type &&
|
128
|
+
storage_system == o.storage_system
|
85
129
|
end
|
86
130
|
|
87
131
|
# @see the `==` method
|
@@ -93,7 +137,7 @@ module AutosdeOpenapiClient
|
|
93
137
|
# Calculates hash code according to all attributes.
|
94
138
|
# @return [Integer] Hash code
|
95
139
|
def hash
|
96
|
-
[
|
140
|
+
[resource_type, storage_system].hash
|
97
141
|
end
|
98
142
|
|
99
143
|
# Builds the object from hash
|