autosde_openapi_client 1.1.28 → 1.1.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b7b7a4a0d645d8f61447d7e07c37fe790fc4614d15ba2d55ff3d030360c9120
4
- data.tar.gz: c0ff7a1e374919b6d1ec7b3b5206061616a6e564bed4ec442a11c49fd125304d
3
+ metadata.gz: 918be861e5ff5f408851f8f151b3df19820c78c7661de1813f6d0a2dc15a6e44
4
+ data.tar.gz: faa07bf5c7bc96dfff6f5af6f336b917e8c0033c4383f74fe0fc3f7a25bc8943
5
5
  SHA512:
6
- metadata.gz: f9096afb3b4aaf93e777c8fe6df95ff7d9a8faa4d8eb2e012e56ff331a6ac39f784df0f155f435d17783e9a6cc9556aa50a8c6e19fbae77368b94170cdd2252a
7
- data.tar.gz: 81abe4013358b1f28cc7daefce64f4f569fc7d25eaba75bddf501f9216b6bdfd72113a42a05dc760809ecb8ef00c4c6dca65452ac42ee797f4962b581d3c8d6e
6
+ metadata.gz: ad72b8bbb83485fffd3b3f93cc86096323cda715851579fc3e5238e92eb3c2b01ecdccec6addbd0692cedcf753db2612fd08fc5f849e1f8408529ba898fc2a70
7
+ data.tar.gz: ee7743c15f39b0401a60acc15e95477103007934e99087254222dad1358fd83a2728b86675e8fdcc8e8c0017e1848b7bc80c444b0707f52e3a20083d43bd6c5d
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
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
12
12
 
13
13
  ## events_get
14
14
 
15
- > <Array<Event>> events_get
15
+ > <Array<EventResponse>> events_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<Event>>, Integer, Hash)> events_get_with_http_info
45
+ > <Array(<Array<EventResponse>>, Integer, Hash)> events_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.events_get_with_http_info
51
51
  p status_code # => 2xx
52
52
  p headers # => { ... }
53
- p data # => <Array<Event>>
53
+ p data # => <Array<EventResponse>>
54
54
  rescue AutosdeOpenapiClient::ApiError => e
55
55
  puts "Error when calling EventApi->events_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&lt;Event&gt;**](Event.md)
65
+ [**Array&lt;EventResponse&gt;**](EventResponse.md)
66
66
 
67
67
  ### Authorization
68
68
 
@@ -76,7 +76,7 @@ This endpoint does not need any parameter.
76
76
 
77
77
  ## events_pk_delete
78
78
 
79
- > <Array<Event>> events_pk_delete(pk)
79
+ > <Array<EventResponse>> events_pk_delete(pk)
80
80
 
81
81
 
82
82
 
@@ -107,7 +107,7 @@ end
107
107
 
108
108
  This returns an Array which contains the response data, status code and headers.
109
109
 
110
- > <Array(<Array<Event>>, Integer, Hash)> events_pk_delete_with_http_info(pk)
110
+ > <Array(<Array<EventResponse>>, Integer, Hash)> events_pk_delete_with_http_info(pk)
111
111
 
112
112
  ```ruby
113
113
  begin
@@ -115,7 +115,7 @@ begin
115
115
  data, status_code, headers = api_instance.events_pk_delete_with_http_info(pk)
116
116
  p status_code # => 2xx
117
117
  p headers # => { ... }
118
- p data # => <Array<Event>>
118
+ p data # => <Array<EventResponse>>
119
119
  rescue AutosdeOpenapiClient::ApiError => e
120
120
  puts "Error when calling EventApi->events_pk_delete_with_http_info: #{e}"
121
121
  end
@@ -129,7 +129,7 @@ end
129
129
 
130
130
  ### Return type
131
131
 
132
- [**Array&lt;Event&gt;**](Event.md)
132
+ [**Array&lt;EventResponse&gt;**](EventResponse.md)
133
133
 
134
134
  ### Authorization
135
135
 
@@ -143,7 +143,7 @@ end
143
143
 
144
144
  ## events_pk_get
145
145
 
146
- > <Array<Event>> events_pk_get(pk)
146
+ > <Array<EventResponse>> events_pk_get(pk)
147
147
 
148
148
 
149
149
 
@@ -174,7 +174,7 @@ end
174
174
 
175
175
  This returns an Array which contains the response data, status code and headers.
176
176
 
177
- > <Array(<Array<Event>>, Integer, Hash)> events_pk_get_with_http_info(pk)
177
+ > <Array(<Array<EventResponse>>, Integer, Hash)> events_pk_get_with_http_info(pk)
178
178
 
179
179
  ```ruby
180
180
  begin
@@ -182,7 +182,7 @@ begin
182
182
  data, status_code, headers = api_instance.events_pk_get_with_http_info(pk)
183
183
  p status_code # => 2xx
184
184
  p headers # => { ... }
185
- p data # => <Array<Event>>
185
+ p data # => <Array<EventResponse>>
186
186
  rescue AutosdeOpenapiClient::ApiError => e
187
187
  puts "Error when calling EventApi->events_pk_get_with_http_info: #{e}"
188
188
  end
@@ -196,7 +196,7 @@ end
196
196
 
197
197
  ### Return type
198
198
 
199
- [**Array&lt;Event&gt;**](Event.md)
199
+ [**Array&lt;EventResponse&gt;**](EventResponse.md)
200
200
 
201
201
  ### Authorization
202
202
 
@@ -210,7 +210,7 @@ end
210
210
 
211
211
  ## events_post
212
212
 
213
- > <Event> events_post(event)
213
+ > <EventResponse> events_post(event)
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(<Event>, Integer, Hash)> events_post_with_http_info(event)
244
+ > <Array(<EventResponse>, Integer, Hash)> events_post_with_http_info(event)
245
245
 
246
246
  ```ruby
247
247
  begin
@@ -249,7 +249,7 @@ begin
249
249
  data, status_code, headers = api_instance.events_post_with_http_info(event)
250
250
  p status_code # => 2xx
251
251
  p headers # => { ... }
252
- p data # => <Event>
252
+ p data # => <EventResponse>
253
253
  rescue AutosdeOpenapiClient::ApiError => e
254
254
  puts "Error when calling EventApi->events_post_with_http_info: #{e}"
255
255
  end
@@ -263,7 +263,7 @@ end
263
263
 
264
264
  ### Return type
265
265
 
266
- [**Event**](Event.md)
266
+ [**EventResponse**](EventResponse.md)
267
267
 
268
268
  ### Authorization
269
269
 
@@ -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
+
@@ -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<Event>]
23
+ # @return [Array<EventResponse>]
24
24
  def events_get(opts = {})
25
25
  data, _status_code, _headers = events_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<Event>, Integer, Hash)>] Array<Event> data, response status code and response headers
30
+ # @return [Array<(Array<EventResponse>, Integer, Hash)>] Array<EventResponse> data, response status code and response headers
31
31
  def events_get_with_http_info(opts = {})
32
32
  if @api_client.config.debugging
33
33
  @api_client.config.logger.debug 'Calling API: EventApi.events_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<Event>'
53
+ return_type = opts[:debug_return_type] || 'Array<EventResponse>'
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 [Array<Event>]
77
+ # @return [Array<EventResponse>]
78
78
  def events_pk_delete(pk, opts = {})
79
79
  data, _status_code, _headers = events_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<(Array<Event>, Integer, Hash)>] Array<Event> data, response status code and response headers
85
+ # @return [Array<(Array<EventResponse>, Integer, Hash)>] Array<EventResponse> data, response status code and response headers
86
86
  def events_pk_delete_with_http_info(pk, opts = {})
87
87
  if @api_client.config.debugging
88
88
  @api_client.config.logger.debug 'Calling API: EventApi.events_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] || 'Array<Event>'
112
+ return_type = opts[:debug_return_type] || 'Array<EventResponse>'
113
113
 
114
114
  # auth_names
115
115
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -133,7 +133,7 @@ module AutosdeOpenapiClient
133
133
 
134
134
  # @param pk [Integer]
135
135
  # @param [Hash] opts the optional parameters
136
- # @return [Array<Event>]
136
+ # @return [Array<EventResponse>]
137
137
  def events_pk_get(pk, opts = {})
138
138
  data, _status_code, _headers = events_pk_get_with_http_info(pk, opts)
139
139
  data
@@ -141,7 +141,7 @@ module AutosdeOpenapiClient
141
141
 
142
142
  # @param pk [Integer]
143
143
  # @param [Hash] opts the optional parameters
144
- # @return [Array<(Array<Event>, Integer, Hash)>] Array<Event> data, response status code and response headers
144
+ # @return [Array<(Array<EventResponse>, Integer, Hash)>] Array<EventResponse> data, response status code and response headers
145
145
  def events_pk_get_with_http_info(pk, opts = {})
146
146
  if @api_client.config.debugging
147
147
  @api_client.config.logger.debug 'Calling API: EventApi.events_pk_get ...'
@@ -168,7 +168,7 @@ module AutosdeOpenapiClient
168
168
  post_body = opts[:debug_body]
169
169
 
170
170
  # return_type
171
- return_type = opts[:debug_return_type] || 'Array<Event>'
171
+ return_type = opts[:debug_return_type] || 'Array<EventResponse>'
172
172
 
173
173
  # auth_names
174
174
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -192,7 +192,7 @@ module AutosdeOpenapiClient
192
192
 
193
193
  # @param event [Event]
194
194
  # @param [Hash] opts the optional parameters
195
- # @return [Event]
195
+ # @return [EventResponse]
196
196
  def events_post(event, opts = {})
197
197
  data, _status_code, _headers = events_post_with_http_info(event, opts)
198
198
  data
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
200
200
 
201
201
  # @param event [Event]
202
202
  # @param [Hash] opts the optional parameters
203
- # @return [Array<(Event, Integer, Hash)>] Event data, response status code and response headers
203
+ # @return [Array<(EventResponse, Integer, Hash)>] EventResponse data, response status code and response headers
204
204
  def events_post_with_http_info(event, opts = {})
205
205
  if @api_client.config.debugging
206
206
  @api_client.config.logger.debug 'Calling API: EventApi.events_post ...'
@@ -229,7 +229,7 @@ module AutosdeOpenapiClient
229
229
  post_body = opts[:debug_body] || @api_client.object_to_http_body(event)
230
230
 
231
231
  # return_type
232
- return_type = opts[:debug_return_type] || 'Event'
232
+ return_type = opts[:debug_return_type] || 'EventResponse'
233
233
 
234
234
  # auth_names
235
235
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module AutosdeOpenapiClient
17
- # Event object represents storage system alerts and messages.
17
+ # Event
18
18
  class Event
19
19
  # created_at
20
20
  attr_accessor :created_at
@@ -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.28
6
+ The version of the OpenAPI document: 1.1.31
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.28'
14
+ VERSION = '1.1.31'
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'
@@ -34,7 +34,7 @@ describe 'EventApi' do
34
34
 
35
35
  # unit tests for events_get
36
36
  # @param [Hash] opts the optional parameters
37
- # @return [Array<Event>]
37
+ # @return [Array<EventResponse>]
38
38
  describe 'events_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
@@ -44,7 +44,7 @@ describe 'EventApi' do
44
44
  # unit tests for events_pk_delete
45
45
  # @param pk
46
46
  # @param [Hash] opts the optional parameters
47
- # @return [Array<Event>]
47
+ # @return [Array<EventResponse>]
48
48
  describe 'events_pk_delete test' do
49
49
  it 'should work' do
50
50
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -54,7 +54,7 @@ describe 'EventApi' do
54
54
  # unit tests for events_pk_get
55
55
  # @param pk
56
56
  # @param [Hash] opts the optional parameters
57
- # @return [Array<Event>]
57
+ # @return [Array<EventResponse>]
58
58
  describe 'events_pk_get test' do
59
59
  it 'should work' do
60
60
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -64,7 +64,7 @@ describe 'EventApi' do
64
64
  # unit tests for events_post
65
65
  # @param event
66
66
  # @param [Hash] opts the optional parameters
67
- # @return [Event]
67
+ # @return [EventResponse]
68
68
  describe 'events_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,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.28
4
+ version: 1.1.31
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-24 00:00:00.000000000 Z
11
+ date: 2022-08-01 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/host_volume_connection_api_spec.rb
384
- - spec/api/system_type_api_spec.rb
385
- - spec/api/snapshot_api_spec.rb
386
- - spec/api/host_cluster_volume_mapping_api_spec.rb
387
- - spec/api/service_resource_attachment_api_spec.rb
386
+ - spec/api/capability_translation_api_spec.rb
387
+ - spec/api/auto_sde_project_api_spec.rb
388
+ - spec/api/job_api_spec.rb
389
+ - spec/api/validate_system_api_spec.rb
390
+ - spec/api/storage_host_wwpn_candidates_api_spec.rb
391
+ - spec/api/service_api_spec.rb
392
+ - spec/api/host_cluster_membership_api_spec.rb
393
+ - spec/api/celery_config_api_spec.rb
388
394
  - spec/api/abstract_capability_api_spec.rb
389
- - spec/api/user_api_spec.rb
390
- - spec/api/volume_safe_delete_api_spec.rb
391
395
  - spec/api/provisioning_strategy_api_spec.rb
392
- - spec/api/host_api_spec.rb
396
+ - spec/api/user_api_spec.rb
397
+ - spec/api/auto_sde_role_api_spec.rb
393
398
  - spec/api/account_api_spec.rb
394
- - spec/api/host_cluster_membership_api_spec.rb
395
- - spec/api/storage_system_api_spec.rb
396
- - spec/api/storage_host_api_spec.rb
397
- - spec/api/job_api_spec.rb
398
- - spec/api/capability_translation_api_spec.rb
399
- - spec/api/authentication_api_spec.rb
400
- - spec/api/storage_resource_api_spec.rb
399
+ - spec/api/refresh_system_api_spec.rb
400
+ - spec/api/host_api_spec.rb
401
+ - spec/api/service_resource_attachment_api_spec.rb
401
402
  - spec/api/storage_host_volume_mapping_api_spec.rb
403
+ - spec/api/volume_api_spec.rb
404
+ - spec/api/authentication_api_spec.rb
405
+ - spec/api/native_capability_api_spec.rb
406
+ - spec/api/host_cluster_volume_mapping_api_spec.rb
402
407
  - spec/api/profile_api_spec.rb
403
- - spec/api/service_api_spec.rb
404
- - spec/api/celery_config_api_spec.rb
405
- - spec/api/auto_sde_role_api_spec.rb
408
+ - spec/api/volume_safe_delete_api_spec.rb
409
+ - spec/api/storage_resource_api_spec.rb
410
+ - spec/api/address_api_spec.rb
406
411
  - spec/api/host_cluster_api_spec.rb
407
- - spec/api/volume_api_spec.rb
408
- - spec/api/auto_sde_project_api_spec.rb
412
+ - spec/api/host_volume_connection_api_spec.rb
409
413
  - spec/api/event_api_spec.rb
410
- - spec/api/address_api_spec.rb
411
- - spec/api/native_capability_api_spec.rb
412
- - spec/api/validate_system_api_spec.rb
413
- - spec/api/storage_host_wwpn_candidates_api_spec.rb
414
- - spec/api/refresh_system_api_spec.rb
414
+ - spec/api/storage_system_api_spec.rb
415
+ - spec/api/snapshot_api_spec.rb
416
+ - spec/api/system_type_api_spec.rb
417
+ - spec/api/storage_host_api_spec.rb
415
418
  - spec/api_client_spec.rb
416
419
  - spec/configuration_spec.rb
417
- - spec/models/storage_host_volume_mapping_spec.rb
418
- - spec/models/service_resource_attachment_spec.rb
419
- - spec/models/user_spec.rb
420
- - spec/models/storage_host_spec.rb
421
- - spec/models/storage_host_volume_mapping_create_spec.rb
422
- - spec/models/refresh_system_spec.rb
420
+ - spec/models/volume_create_spec.rb
421
+ - spec/models/system_type_spec.rb
422
+ - spec/models/volume_spec.rb
423
+ - spec/models/volume_safe_delete_spec.rb
423
424
  - spec/models/capability_translation_create_spec.rb
424
- - spec/models/system_type_create_spec.rb
425
- - spec/models/host_cluster_response_spec.rb
425
+ - spec/models/storage_host_response_spec.rb
426
+ - spec/models/snapshot_create_spec.rb
427
+ - spec/models/storage_resource_create_spec.rb
428
+ - spec/models/service_resource_attachment_spec.rb
429
+ - spec/models/auto_sde_project_spec.rb
426
430
  - spec/models/host_cluster_spec.rb
427
- - spec/models/service_create_spec.rb
431
+ - spec/models/storage_host_wwpn_candidates_spec.rb
428
432
  - spec/models/storage_resource_spec.rb
429
- - spec/models/host_spec.rb
430
- - spec/models/auth_response_spec.rb
431
- - spec/models/job_spec.rb
432
- - spec/models/host_cluster_volume_mapping_create_spec.rb
433
- - spec/models/volume_create_spec.rb
434
- - spec/models/native_capability_spec.rb
433
+ - spec/models/refresh_system_spec.rb
435
434
  - spec/models/storage_system_update_spec.rb
435
+ - spec/models/storage_resource_response_spec.rb
436
+ - spec/models/job_create_spec.rb
437
+ - spec/models/native_capability_spec.rb
436
438
  - 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
439
+ - spec/models/host_spec.rb
440
+ - spec/models/storage_host_update_spec.rb
441
+ - spec/models/storage_host_spec.rb
442
+ - spec/models/storage_host_volume_mapping_spec.rb
443
+ - spec/models/job_spec.rb
444
+ - spec/models/account_spec.rb
445
+ - spec/models/event_response_spec.rb
446
+ - spec/models/capability_translation_spec.rb
447
+ - spec/models/service_abstract_capability_value_spec.rb
448
+ - spec/models/auto_sde_role_spec.rb
449
+ - spec/models/host_cluster_volume_mapping_spec.rb
450
+ - spec/models/profile_spec.rb
451
+ - spec/models/snapshot_spec.rb
440
452
  - spec/models/event_spec.rb
441
- - spec/models/host_volume_connection_spec.rb
453
+ - spec/models/address_create_spec.rb
454
+ - spec/models/service_create_spec.rb
455
+ - spec/models/abstract_capability_spec.rb
456
+ - spec/models/authentication_spec.rb
457
+ - spec/models/system_type_create_spec.rb
458
+ - spec/models/host_create_spec.rb
459
+ - spec/models/user_spec.rb
442
460
  - spec/models/storage_system_create_spec.rb
443
- - spec/models/volume_spec.rb
444
- - spec/models/celery_config_spec.rb
461
+ - spec/models/host_cluster_response_spec.rb
462
+ - spec/models/storage_host_create_spec.rb
463
+ - spec/models/storage_host_volume_mapping_response_spec.rb
464
+ - spec/models/auth_response_spec.rb
465
+ - spec/models/account_post_request_spec.rb
466
+ - spec/models/account_post_response_spec.rb
467
+ - spec/models/provisioning_strategy_spec.rb
445
468
  - spec/models/volume_safe_delete_create_spec.rb
469
+ - spec/models/host_volume_connection_spec.rb
470
+ - spec/models/host_cluster_create_spec.rb
446
471
  - spec/models/service_spec.rb
447
- - spec/models/authentication_spec.rb
448
- - spec/models/abstract_capability_spec.rb
449
- - spec/models/storage_host_response_spec.rb
450
- - spec/models/account_post_response_spec.rb
451
- - spec/models/snapshot_spec.rb
452
- - spec/models/user_create_spec.rb
472
+ - spec/models/celery_config_spec.rb
473
+ - spec/models/host_volume_connection_create_spec.rb
474
+ - spec/models/volume_response_spec.rb
453
475
  - spec/models/storage_system_spec.rb
454
- - spec/models/account_post_request_spec.rb
455
- - spec/models/job_create_spec.rb
456
- - spec/models/auto_sde_project_spec.rb
457
- - spec/models/storage_host_volume_mapping_response_spec.rb
458
- - spec/models/storage_resource_response_spec.rb
459
- - spec/models/account_spec.rb
460
476
  - spec/models/validate_system_spec.rb
477
+ - spec/models/storage_host_volume_mapping_create_spec.rb
478
+ - spec/models/host_cluster_volume_mapping_response_spec.rb
461
479
  - spec/models/volume_update_spec.rb
462
- - spec/models/profile_spec.rb
463
- - spec/models/host_cluster_volume_mapping_spec.rb
464
- - spec/models/capability_translation_spec.rb
465
- - spec/models/storage_resource_create_spec.rb
466
- - spec/models/address_create_spec.rb
467
- - spec/models/storage_host_create_spec.rb
468
- - spec/models/volume_safe_delete_spec.rb
469
- - spec/models/volume_response_spec.rb
470
- - spec/models/host_create_spec.rb
471
- - spec/models/storage_host_update_spec.rb
472
- - spec/models/user_update_spec.rb
473
480
  - 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
481
+ - spec/models/user_create_spec.rb
482
+ - spec/models/host_cluster_volume_mapping_create_spec.rb
483
+ - spec/models/user_update_spec.rb
480
484
  - spec/spec_helper.rb