autosde_openapi_client 1.1.28 → 1.1.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/docs/EventApi.md +6 -6
- data/docs/EventResponse.md +36 -0
- data/lib/autosde_openapi_client/api/event_api.rb +9 -9
- data/lib/autosde_openapi_client/models/event.rb +1 -1
- data/lib/autosde_openapi_client/models/event_response.rb +310 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +1 -0
- data/spec/api/event_api_spec.rb +1 -1
- data/spec/models/event_response_spec.rb +88 -0
- metadata +76 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd0a4c46b29eca03130733ad77baefbdfb1e11768eb289ecd2f1b92adbba225c
|
4
|
+
data.tar.gz: 7c7cb67d6af702dac3647a88a17b09b7b4ce63e3fab3bb7073e019319ab58a26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50e77fc938cb7f149d2d621e0a609abdee04a13587193e60c97e1d587a1a0e7569269053cc1e5f8cf8b8abbd6dee8f2c210649ab26a9725b55f54d9d6d497b3b
|
7
|
+
data.tar.gz: 1f9f36c5c5932e16b4211e995bf4ca68723ee871cf8e14ace6c8f548fd97ca703f93603947e8f2b70c70c72f56536b6ecee063ba7cbd0ae38826a415e1d03c03
|
data/README.md
CHANGED
@@ -218,6 +218,7 @@ Class | Method | HTTP request | Description
|
|
218
218
|
- [AutosdeOpenapiClient::CapabilityTranslationCreate](docs/CapabilityTranslationCreate.md)
|
219
219
|
- [AutosdeOpenapiClient::CeleryConfig](docs/CeleryConfig.md)
|
220
220
|
- [AutosdeOpenapiClient::Event](docs/Event.md)
|
221
|
+
- [AutosdeOpenapiClient::EventResponse](docs/EventResponse.md)
|
221
222
|
- [AutosdeOpenapiClient::Host](docs/Host.md)
|
222
223
|
- [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
|
223
224
|
- [AutosdeOpenapiClient::HostClusterCreate](docs/HostClusterCreate.md)
|
data/docs/EventApi.md
CHANGED
@@ -210,7 +210,7 @@ end
|
|
210
210
|
|
211
211
|
## events_post
|
212
212
|
|
213
|
-
> <Event> events_post(
|
213
|
+
> <Event> events_post(storage_resource_response)
|
214
214
|
|
215
215
|
|
216
216
|
|
@@ -226,11 +226,11 @@ AutosdeOpenapiClient.configure do |config|
|
|
226
226
|
end
|
227
227
|
|
228
228
|
api_instance = AutosdeOpenapiClient::EventApi.new
|
229
|
-
|
229
|
+
storage_resource_response = AutosdeOpenapiClient::StorageResourceResponse.new # StorageResourceResponse |
|
230
230
|
|
231
231
|
begin
|
232
232
|
|
233
|
-
result = api_instance.events_post(
|
233
|
+
result = api_instance.events_post(storage_resource_response)
|
234
234
|
p result
|
235
235
|
rescue AutosdeOpenapiClient::ApiError => e
|
236
236
|
puts "Error when calling EventApi->events_post: #{e}"
|
@@ -241,12 +241,12 @@ end
|
|
241
241
|
|
242
242
|
This returns an Array which contains the response data, status code and headers.
|
243
243
|
|
244
|
-
> <Array(<Event>, Integer, Hash)> events_post_with_http_info(
|
244
|
+
> <Array(<Event>, Integer, Hash)> events_post_with_http_info(storage_resource_response)
|
245
245
|
|
246
246
|
```ruby
|
247
247
|
begin
|
248
248
|
|
249
|
-
data, status_code, headers = api_instance.events_post_with_http_info(
|
249
|
+
data, status_code, headers = api_instance.events_post_with_http_info(storage_resource_response)
|
250
250
|
p status_code # => 2xx
|
251
251
|
p headers # => { ... }
|
252
252
|
p data # => <Event>
|
@@ -259,7 +259,7 @@ end
|
|
259
259
|
|
260
260
|
| Name | Type | Description | Notes |
|
261
261
|
| ---- | ---- | ----------- | ----- |
|
262
|
-
| **
|
262
|
+
| **storage_resource_response** | [**StorageResourceResponse**](StorageResourceResponse.md) | | |
|
263
263
|
|
264
264
|
### Return type
|
265
265
|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# AutosdeOpenapiClient::EventResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **created_at** | **Time** | created_at | [optional] |
|
8
|
+
| **description** | **String** | description | [optional] |
|
9
|
+
| **error_code** | **String** | error_code | [optional] |
|
10
|
+
| **event_id** | **Integer** | event_id | [optional] |
|
11
|
+
| **event_type** | **String** | event_type | [optional] |
|
12
|
+
| **fixed** | **String** | fixed | [optional] |
|
13
|
+
| **last_timestamp** | **Time** | last_timestamp | [optional] |
|
14
|
+
| **refresh_interval** | **Integer** | refresh_interval | [optional] |
|
15
|
+
| **storage_system** | **String** | !!uuid of storage_system | [optional] |
|
16
|
+
| **uuid** | **String** | uuid | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'autosde_openapi_client'
|
22
|
+
|
23
|
+
instance = AutosdeOpenapiClient::EventResponse.new(
|
24
|
+
created_at: null,
|
25
|
+
description: null,
|
26
|
+
error_code: null,
|
27
|
+
event_id: null,
|
28
|
+
event_type: null,
|
29
|
+
fixed: null,
|
30
|
+
last_timestamp: null,
|
31
|
+
refresh_interval: null,
|
32
|
+
storage_system: null,
|
33
|
+
uuid: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -190,24 +190,24 @@ module AutosdeOpenapiClient
|
|
190
190
|
return data, status_code, headers
|
191
191
|
end
|
192
192
|
|
193
|
-
# @param
|
193
|
+
# @param storage_resource_response [StorageResourceResponse]
|
194
194
|
# @param [Hash] opts the optional parameters
|
195
195
|
# @return [Event]
|
196
|
-
def events_post(
|
197
|
-
data, _status_code, _headers = events_post_with_http_info(
|
196
|
+
def events_post(storage_resource_response, opts = {})
|
197
|
+
data, _status_code, _headers = events_post_with_http_info(storage_resource_response, opts)
|
198
198
|
data
|
199
199
|
end
|
200
200
|
|
201
|
-
# @param
|
201
|
+
# @param storage_resource_response [StorageResourceResponse]
|
202
202
|
# @param [Hash] opts the optional parameters
|
203
203
|
# @return [Array<(Event, Integer, Hash)>] Event data, response status code and response headers
|
204
|
-
def events_post_with_http_info(
|
204
|
+
def events_post_with_http_info(storage_resource_response, opts = {})
|
205
205
|
if @api_client.config.debugging
|
206
206
|
@api_client.config.logger.debug 'Calling API: EventApi.events_post ...'
|
207
207
|
end
|
208
|
-
# verify the required parameter '
|
209
|
-
if @api_client.config.client_side_validation &&
|
210
|
-
fail ArgumentError, "Missing the required parameter '
|
208
|
+
# verify the required parameter 'storage_resource_response' is set
|
209
|
+
if @api_client.config.client_side_validation && storage_resource_response.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'storage_resource_response' when calling EventApi.events_post"
|
211
211
|
end
|
212
212
|
# resource path
|
213
213
|
local_var_path = '/events'
|
@@ -226,7 +226,7 @@ module AutosdeOpenapiClient
|
|
226
226
|
form_params = opts[:form_params] || {}
|
227
227
|
|
228
228
|
# http body (model)
|
229
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_resource_response)
|
230
230
|
|
231
231
|
# return_type
|
232
232
|
return_type = opts[:debug_return_type] || 'Event'
|
@@ -0,0 +1,310 @@
|
|
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 EventResponse
|
19
|
+
# created_at
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
22
|
+
# description
|
23
|
+
attr_accessor :description
|
24
|
+
|
25
|
+
# error_code
|
26
|
+
attr_accessor :error_code
|
27
|
+
|
28
|
+
# event_id
|
29
|
+
attr_accessor :event_id
|
30
|
+
|
31
|
+
# event_type
|
32
|
+
attr_accessor :event_type
|
33
|
+
|
34
|
+
# fixed
|
35
|
+
attr_accessor :fixed
|
36
|
+
|
37
|
+
# last_timestamp
|
38
|
+
attr_accessor :last_timestamp
|
39
|
+
|
40
|
+
# refresh_interval
|
41
|
+
attr_accessor :refresh_interval
|
42
|
+
|
43
|
+
# !!uuid of storage_system
|
44
|
+
attr_accessor :storage_system
|
45
|
+
|
46
|
+
# uuid
|
47
|
+
attr_accessor :uuid
|
48
|
+
|
49
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
50
|
+
def self.attribute_map
|
51
|
+
{
|
52
|
+
:'created_at' => :'created_at',
|
53
|
+
:'description' => :'description',
|
54
|
+
:'error_code' => :'error_code',
|
55
|
+
:'event_id' => :'event_id',
|
56
|
+
:'event_type' => :'event_type',
|
57
|
+
:'fixed' => :'fixed',
|
58
|
+
:'last_timestamp' => :'last_timestamp',
|
59
|
+
:'refresh_interval' => :'refresh_interval',
|
60
|
+
:'storage_system' => :'storage_system',
|
61
|
+
:'uuid' => :'uuid'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Returns all the JSON keys this model knows about
|
66
|
+
def self.acceptable_attributes
|
67
|
+
attribute_map.values
|
68
|
+
end
|
69
|
+
|
70
|
+
# Attribute type mapping.
|
71
|
+
def self.openapi_types
|
72
|
+
{
|
73
|
+
:'created_at' => :'Time',
|
74
|
+
:'description' => :'String',
|
75
|
+
:'error_code' => :'String',
|
76
|
+
:'event_id' => :'Integer',
|
77
|
+
:'event_type' => :'String',
|
78
|
+
:'fixed' => :'String',
|
79
|
+
:'last_timestamp' => :'Time',
|
80
|
+
:'refresh_interval' => :'Integer',
|
81
|
+
:'storage_system' => :'String',
|
82
|
+
:'uuid' => :'String'
|
83
|
+
}
|
84
|
+
end
|
85
|
+
|
86
|
+
# List of attributes with nullable: true
|
87
|
+
def self.openapi_nullable
|
88
|
+
Set.new([
|
89
|
+
])
|
90
|
+
end
|
91
|
+
|
92
|
+
# Initializes the object
|
93
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
94
|
+
def initialize(attributes = {})
|
95
|
+
if (!attributes.is_a?(Hash))
|
96
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::EventResponse` initialize method"
|
97
|
+
end
|
98
|
+
|
99
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
100
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
101
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
102
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::EventResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
103
|
+
end
|
104
|
+
h[k.to_sym] = v
|
105
|
+
}
|
106
|
+
|
107
|
+
if attributes.key?(:'created_at')
|
108
|
+
self.created_at = attributes[:'created_at']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'description')
|
112
|
+
self.description = attributes[:'description']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'error_code')
|
116
|
+
self.error_code = attributes[:'error_code']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.key?(:'event_id')
|
120
|
+
self.event_id = attributes[:'event_id']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'event_type')
|
124
|
+
self.event_type = attributes[:'event_type']
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.key?(:'fixed')
|
128
|
+
self.fixed = attributes[:'fixed']
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.key?(:'last_timestamp')
|
132
|
+
self.last_timestamp = attributes[:'last_timestamp']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.key?(:'refresh_interval')
|
136
|
+
self.refresh_interval = attributes[:'refresh_interval']
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.key?(:'storage_system')
|
140
|
+
self.storage_system = attributes[:'storage_system']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'uuid')
|
144
|
+
self.uuid = attributes[:'uuid']
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
149
|
+
# @return Array for valid properties with the reasons
|
150
|
+
def list_invalid_properties
|
151
|
+
invalid_properties = Array.new
|
152
|
+
invalid_properties
|
153
|
+
end
|
154
|
+
|
155
|
+
# Check to see if the all the properties in the model are valid
|
156
|
+
# @return true if the model is valid
|
157
|
+
def valid?
|
158
|
+
true
|
159
|
+
end
|
160
|
+
|
161
|
+
# Checks equality by comparing each attribute.
|
162
|
+
# @param [Object] Object to be compared
|
163
|
+
def ==(o)
|
164
|
+
return true if self.equal?(o)
|
165
|
+
self.class == o.class &&
|
166
|
+
created_at == o.created_at &&
|
167
|
+
description == o.description &&
|
168
|
+
error_code == o.error_code &&
|
169
|
+
event_id == o.event_id &&
|
170
|
+
event_type == o.event_type &&
|
171
|
+
fixed == o.fixed &&
|
172
|
+
last_timestamp == o.last_timestamp &&
|
173
|
+
refresh_interval == o.refresh_interval &&
|
174
|
+
storage_system == o.storage_system &&
|
175
|
+
uuid == o.uuid
|
176
|
+
end
|
177
|
+
|
178
|
+
# @see the `==` method
|
179
|
+
# @param [Object] Object to be compared
|
180
|
+
def eql?(o)
|
181
|
+
self == o
|
182
|
+
end
|
183
|
+
|
184
|
+
# Calculates hash code according to all attributes.
|
185
|
+
# @return [Integer] Hash code
|
186
|
+
def hash
|
187
|
+
[created_at, description, error_code, event_id, event_type, fixed, last_timestamp, refresh_interval, storage_system, uuid].hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Builds the object from hash
|
191
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
192
|
+
# @return [Object] Returns the model itself
|
193
|
+
def self.build_from_hash(attributes)
|
194
|
+
new.build_from_hash(attributes)
|
195
|
+
end
|
196
|
+
|
197
|
+
# Builds the object from hash
|
198
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
199
|
+
# @return [Object] Returns the model itself
|
200
|
+
def build_from_hash(attributes)
|
201
|
+
return nil unless attributes.is_a?(Hash)
|
202
|
+
self.class.openapi_types.each_pair do |key, type|
|
203
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
204
|
+
self.send("#{key}=", nil)
|
205
|
+
elsif type =~ /\AArray<(.*)>/i
|
206
|
+
# check to ensure the input is an array given that the attribute
|
207
|
+
# is documented as an array but the input is not
|
208
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
209
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
210
|
+
end
|
211
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
212
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
self
|
217
|
+
end
|
218
|
+
|
219
|
+
# Deserializes the data based on type
|
220
|
+
# @param string type Data type
|
221
|
+
# @param string value Value to be deserialized
|
222
|
+
# @return [Object] Deserialized data
|
223
|
+
def _deserialize(type, value)
|
224
|
+
case type.to_sym
|
225
|
+
when :Time
|
226
|
+
Time.parse(value)
|
227
|
+
when :Date
|
228
|
+
Date.parse(value)
|
229
|
+
when :String
|
230
|
+
value.to_s
|
231
|
+
when :Integer
|
232
|
+
value.to_i
|
233
|
+
when :Float
|
234
|
+
value.to_f
|
235
|
+
when :Boolean
|
236
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
237
|
+
true
|
238
|
+
else
|
239
|
+
false
|
240
|
+
end
|
241
|
+
when :Object
|
242
|
+
# generic object (usually a Hash), return directly
|
243
|
+
value
|
244
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
245
|
+
inner_type = Regexp.last_match[:inner_type]
|
246
|
+
value.map { |v| _deserialize(inner_type, v) }
|
247
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
248
|
+
k_type = Regexp.last_match[:k_type]
|
249
|
+
v_type = Regexp.last_match[:v_type]
|
250
|
+
{}.tap do |hash|
|
251
|
+
value.each do |k, v|
|
252
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
253
|
+
end
|
254
|
+
end
|
255
|
+
else # model
|
256
|
+
# models (e.g. Pet) or oneOf
|
257
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
258
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
# Returns the string representation of the object
|
263
|
+
# @return [String] String presentation of the object
|
264
|
+
def to_s
|
265
|
+
to_hash.to_s
|
266
|
+
end
|
267
|
+
|
268
|
+
# to_body is an alias to to_hash (backward compatibility)
|
269
|
+
# @return [Hash] Returns the object in the form of hash
|
270
|
+
def to_body
|
271
|
+
to_hash
|
272
|
+
end
|
273
|
+
|
274
|
+
# Returns the object in the form of hash
|
275
|
+
# @return [Hash] Returns the object in the form of hash
|
276
|
+
def to_hash
|
277
|
+
hash = {}
|
278
|
+
self.class.attribute_map.each_pair do |attr, param|
|
279
|
+
value = self.send(attr)
|
280
|
+
if value.nil?
|
281
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
282
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
283
|
+
end
|
284
|
+
|
285
|
+
hash[param] = _to_hash(value)
|
286
|
+
end
|
287
|
+
hash
|
288
|
+
end
|
289
|
+
|
290
|
+
# Outputs non-array value in the form of hash
|
291
|
+
# For object, use to_hash. Otherwise, just return the value
|
292
|
+
# @param [Object] value Any valid value
|
293
|
+
# @return [Hash] Returns the value in the form of hash
|
294
|
+
def _to_hash(value)
|
295
|
+
if value.is_a?(Array)
|
296
|
+
value.compact.map { |v| _to_hash(v) }
|
297
|
+
elsif value.is_a?(Hash)
|
298
|
+
{}.tap do |hash|
|
299
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
300
|
+
end
|
301
|
+
elsif value.respond_to? :to_hash
|
302
|
+
value.to_hash
|
303
|
+
else
|
304
|
+
value
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
end
|
309
|
+
|
310
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Site Manager API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.1.
|
6
|
+
The version of the OpenAPI document: 1.1.29
|
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.1.
|
14
|
+
VERSION = '1.1.29'
|
15
15
|
end
|
@@ -31,6 +31,7 @@ require 'autosde_openapi_client/models/capability_translation'
|
|
31
31
|
require 'autosde_openapi_client/models/capability_translation_create'
|
32
32
|
require 'autosde_openapi_client/models/celery_config'
|
33
33
|
require 'autosde_openapi_client/models/event'
|
34
|
+
require 'autosde_openapi_client/models/event_response'
|
34
35
|
require 'autosde_openapi_client/models/host'
|
35
36
|
require 'autosde_openapi_client/models/host_cluster'
|
36
37
|
require 'autosde_openapi_client/models/host_cluster_create'
|
data/spec/api/event_api_spec.rb
CHANGED
@@ -0,0 +1,88 @@
|
|
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::EventResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::EventResponse do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::EventResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of EventResponse' do
|
24
|
+
it 'should create an instance of EventResponse' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::EventResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "created_at"' 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 "description"' 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
|
+
describe 'test attribute "error_code"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "event_id"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "event_type"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "fixed"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "last_timestamp"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "refresh_interval"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "storage_system"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "uuid"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
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.1.
|
4
|
+
version: 1.1.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- docs/CeleryConfigApi.md
|
86
86
|
- docs/Event.md
|
87
87
|
- docs/EventApi.md
|
88
|
+
- docs/EventResponse.md
|
88
89
|
- docs/Host.md
|
89
90
|
- docs/HostApi.md
|
90
91
|
- docs/HostCluster.md
|
@@ -208,6 +209,7 @@ files:
|
|
208
209
|
- lib/autosde_openapi_client/models/capability_translation_create.rb
|
209
210
|
- lib/autosde_openapi_client/models/celery_config.rb
|
210
211
|
- lib/autosde_openapi_client/models/event.rb
|
212
|
+
- lib/autosde_openapi_client/models/event_response.rb
|
211
213
|
- lib/autosde_openapi_client/models/host.rb
|
212
214
|
- lib/autosde_openapi_client/models/host_cluster.rb
|
213
215
|
- lib/autosde_openapi_client/models/host_cluster_create.rb
|
@@ -305,6 +307,7 @@ files:
|
|
305
307
|
- spec/models/capability_translation_create_spec.rb
|
306
308
|
- spec/models/capability_translation_spec.rb
|
307
309
|
- spec/models/celery_config_spec.rb
|
310
|
+
- spec/models/event_response_spec.rb
|
308
311
|
- spec/models/event_spec.rb
|
309
312
|
- spec/models/host_cluster_create_spec.rb
|
310
313
|
- spec/models/host_cluster_membership_spec.rb
|
@@ -380,101 +383,102 @@ signing_key:
|
|
380
383
|
specification_version: 4
|
381
384
|
summary: Site Manager API Ruby Gem
|
382
385
|
test_files:
|
383
|
-
- spec/api/
|
384
|
-
- spec/api/
|
385
|
-
- spec/api/snapshot_api_spec.rb
|
386
|
-
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
386
|
+
- spec/api/storage_resource_api_spec.rb
|
387
|
+
- spec/api/provisioning_strategy_api_spec.rb
|
387
388
|
- spec/api/service_resource_attachment_api_spec.rb
|
388
|
-
- spec/api/
|
389
|
+
- spec/api/authentication_api_spec.rb
|
389
390
|
- spec/api/user_api_spec.rb
|
390
|
-
- spec/api/
|
391
|
-
- spec/api/
|
391
|
+
- spec/api/volume_api_spec.rb
|
392
|
+
- spec/api/system_type_api_spec.rb
|
393
|
+
- spec/api/service_api_spec.rb
|
394
|
+
- spec/api/capability_translation_api_spec.rb
|
392
395
|
- spec/api/host_api_spec.rb
|
393
|
-
- spec/api/account_api_spec.rb
|
394
|
-
- spec/api/host_cluster_membership_api_spec.rb
|
395
396
|
- spec/api/storage_system_api_spec.rb
|
396
|
-
- spec/api/
|
397
|
-
- spec/api/
|
398
|
-
- spec/api/capability_translation_api_spec.rb
|
399
|
-
- spec/api/authentication_api_spec.rb
|
400
|
-
- spec/api/storage_resource_api_spec.rb
|
397
|
+
- spec/api/host_cluster_api_spec.rb
|
398
|
+
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
401
399
|
- spec/api/storage_host_volume_mapping_api_spec.rb
|
402
|
-
- spec/api/
|
403
|
-
- spec/api/
|
400
|
+
- spec/api/native_capability_api_spec.rb
|
401
|
+
- spec/api/host_cluster_membership_api_spec.rb
|
404
402
|
- spec/api/celery_config_api_spec.rb
|
405
|
-
- spec/api/auto_sde_role_api_spec.rb
|
406
|
-
- spec/api/host_cluster_api_spec.rb
|
407
|
-
- spec/api/volume_api_spec.rb
|
408
403
|
- spec/api/auto_sde_project_api_spec.rb
|
404
|
+
- spec/api/refresh_system_api_spec.rb
|
405
|
+
- spec/api/host_volume_connection_api_spec.rb
|
406
|
+
- spec/api/storage_host_api_spec.rb
|
409
407
|
- spec/api/event_api_spec.rb
|
410
|
-
- spec/api/
|
411
|
-
- spec/api/
|
408
|
+
- spec/api/volume_safe_delete_api_spec.rb
|
409
|
+
- spec/api/account_api_spec.rb
|
410
|
+
- spec/api/snapshot_api_spec.rb
|
411
|
+
- spec/api/auto_sde_role_api_spec.rb
|
412
|
+
- spec/api/profile_api_spec.rb
|
413
|
+
- spec/api/abstract_capability_api_spec.rb
|
412
414
|
- spec/api/validate_system_api_spec.rb
|
415
|
+
- spec/api/job_api_spec.rb
|
413
416
|
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
414
|
-
- spec/api/
|
417
|
+
- spec/api/address_api_spec.rb
|
415
418
|
- spec/api_client_spec.rb
|
416
419
|
- spec/configuration_spec.rb
|
417
|
-
- spec/models/
|
418
|
-
- spec/models/
|
420
|
+
- spec/models/storage_resource_spec.rb
|
421
|
+
- spec/models/host_cluster_spec.rb
|
419
422
|
- spec/models/user_spec.rb
|
420
|
-
- spec/models/
|
421
|
-
- spec/models/
|
422
|
-
- spec/models/refresh_system_spec.rb
|
423
|
-
- spec/models/capability_translation_create_spec.rb
|
424
|
-
- spec/models/system_type_create_spec.rb
|
423
|
+
- spec/models/account_post_response_spec.rb
|
424
|
+
- spec/models/account_spec.rb
|
425
425
|
- spec/models/host_cluster_response_spec.rb
|
426
|
-
- spec/models/
|
427
|
-
- spec/models/service_create_spec.rb
|
428
|
-
- spec/models/storage_resource_spec.rb
|
429
|
-
- spec/models/host_spec.rb
|
430
|
-
- spec/models/auth_response_spec.rb
|
426
|
+
- spec/models/volume_safe_delete_create_spec.rb
|
431
427
|
- spec/models/job_spec.rb
|
432
|
-
- spec/models/
|
428
|
+
- spec/models/storage_resource_create_spec.rb
|
429
|
+
- spec/models/volume_spec.rb
|
430
|
+
- spec/models/service_spec.rb
|
431
|
+
- spec/models/snapshot_create_spec.rb
|
433
432
|
- spec/models/volume_create_spec.rb
|
434
|
-
- spec/models/
|
435
|
-
- spec/models/
|
436
|
-
- spec/models/host_cluster_membership_spec.rb
|
437
|
-
- spec/models/host_cluster_create_spec.rb
|
438
|
-
- spec/models/system_type_spec.rb
|
439
|
-
- spec/models/provisioning_strategy_spec.rb
|
433
|
+
- spec/models/system_type_create_spec.rb
|
434
|
+
- spec/models/celery_config_spec.rb
|
440
435
|
- spec/models/event_spec.rb
|
436
|
+
- spec/models/address_spec.rb
|
437
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
441
438
|
- spec/models/host_volume_connection_spec.rb
|
439
|
+
- spec/models/host_create_spec.rb
|
440
|
+
- spec/models/system_type_spec.rb
|
442
441
|
- spec/models/storage_system_create_spec.rb
|
443
|
-
- spec/models/
|
444
|
-
- spec/models/
|
445
|
-
- spec/models/
|
446
|
-
- spec/models/service_spec.rb
|
447
|
-
- spec/models/authentication_spec.rb
|
442
|
+
- spec/models/service_resource_attachment_spec.rb
|
443
|
+
- spec/models/auto_sde_project_spec.rb
|
444
|
+
- spec/models/user_update_spec.rb
|
448
445
|
- spec/models/abstract_capability_spec.rb
|
446
|
+
- spec/models/storage_system_update_spec.rb
|
447
|
+
- spec/models/volume_response_spec.rb
|
448
|
+
- spec/models/profile_spec.rb
|
449
|
+
- spec/models/provisioning_strategy_spec.rb
|
450
|
+
- spec/models/host_cluster_create_spec.rb
|
451
|
+
- spec/models/auth_response_spec.rb
|
452
|
+
- spec/models/storage_host_volume_mapping_response_spec.rb
|
453
|
+
- spec/models/storage_host_create_spec.rb
|
449
454
|
- spec/models/storage_host_response_spec.rb
|
450
|
-
- spec/models/
|
451
|
-
- spec/models/snapshot_spec.rb
|
452
|
-
- spec/models/user_create_spec.rb
|
453
|
-
- spec/models/storage_system_spec.rb
|
455
|
+
- spec/models/address_create_spec.rb
|
454
456
|
- spec/models/account_post_request_spec.rb
|
455
|
-
- spec/models/
|
456
|
-
- spec/models/
|
457
|
-
- spec/models/
|
457
|
+
- spec/models/host_cluster_volume_mapping_spec.rb
|
458
|
+
- spec/models/storage_system_spec.rb
|
459
|
+
- spec/models/native_capability_spec.rb
|
460
|
+
- spec/models/event_response_spec.rb
|
461
|
+
- spec/models/service_create_spec.rb
|
462
|
+
- spec/models/host_spec.rb
|
463
|
+
- spec/models/storage_host_volume_mapping_spec.rb
|
464
|
+
- spec/models/authentication_spec.rb
|
458
465
|
- spec/models/storage_resource_response_spec.rb
|
459
|
-
- spec/models/
|
466
|
+
- spec/models/storage_host_volume_mapping_create_spec.rb
|
467
|
+
- spec/models/user_create_spec.rb
|
468
|
+
- spec/models/auto_sde_role_spec.rb
|
469
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
470
|
+
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
460
471
|
- spec/models/validate_system_spec.rb
|
461
|
-
- spec/models/volume_update_spec.rb
|
462
|
-
- spec/models/profile_spec.rb
|
463
|
-
- spec/models/host_cluster_volume_mapping_spec.rb
|
464
472
|
- spec/models/capability_translation_spec.rb
|
465
|
-
- spec/models/
|
466
|
-
- spec/models/
|
467
|
-
- spec/models/
|
473
|
+
- spec/models/volume_update_spec.rb
|
474
|
+
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
475
|
+
- spec/models/snapshot_spec.rb
|
476
|
+
- spec/models/refresh_system_spec.rb
|
477
|
+
- spec/models/job_create_spec.rb
|
478
|
+
- spec/models/host_cluster_membership_spec.rb
|
479
|
+
- spec/models/host_volume_connection_create_spec.rb
|
480
|
+
- spec/models/capability_translation_create_spec.rb
|
468
481
|
- spec/models/volume_safe_delete_spec.rb
|
469
|
-
- spec/models/volume_response_spec.rb
|
470
|
-
- spec/models/host_create_spec.rb
|
471
482
|
- spec/models/storage_host_update_spec.rb
|
472
|
-
- spec/models/
|
473
|
-
- spec/models/address_spec.rb
|
474
|
-
- spec/models/service_abstract_capability_value_spec.rb
|
475
|
-
- spec/models/snapshot_create_spec.rb
|
476
|
-
- spec/models/auto_sde_role_spec.rb
|
477
|
-
- spec/models/host_volume_connection_create_spec.rb
|
478
|
-
- spec/models/storage_host_wwpn_candidates_spec.rb
|
479
|
-
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
483
|
+
- spec/models/storage_host_spec.rb
|
480
484
|
- spec/spec_helper.rb
|