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