autosde_openapi_client 1.1.12 → 1.1.13
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 +2 -0
- data/docs/ValidateSystem.md +26 -0
- data/docs/ValidateSystemApi.md +75 -0
- data/lib/autosde_openapi_client/api/validate_system_api.rb +83 -0
- data/lib/autosde_openapi_client/models/validate_system.rb +260 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +2 -0
- data/spec/api/validate_system_api_spec.rb +45 -0
- data/spec/models/validate_system_spec.rb +58 -0
- metadata +73 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3fbcd3b0707476c8be8d0b7555d8f0a2e33897bae60850c49d62794cb819386
|
4
|
+
data.tar.gz: d6cdba828a2d54bacf808a21287626e418712b99f3f13ed1035ff4df1ee3e96e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc526940ee006562cb164a857f308ac538a0c2ff8975b10dc70a54081029454f924953bfa57a05f115062847fa52032becf5e892db8cd37e05c23bd93bce481d
|
7
|
+
data.tar.gz: 4e1d828ab6e0f8a9f65f2da9c11226fd4e2731ffc08837cecfe48b982979fecf1cdeff73afbb024f9df5b346760afcfe0264688585ea056e5fb4435ccaccfb11
|
data/README.md
CHANGED
@@ -181,6 +181,7 @@ Class | Method | HTTP request | Description
|
|
181
181
|
*AutosdeOpenapiClient::UserApi* | [**autosde_users_pk_get**](docs/UserApi.md#autosde_users_pk_get) | **GET** /autosde-users/{pk} |
|
182
182
|
*AutosdeOpenapiClient::UserApi* | [**autosde_users_pk_put**](docs/UserApi.md#autosde_users_pk_put) | **PUT** /autosde-users/{pk} |
|
183
183
|
*AutosdeOpenapiClient::UserApi* | [**autosde_users_post**](docs/UserApi.md#autosde_users_post) | **POST** /autosde-users |
|
184
|
+
*AutosdeOpenapiClient::ValidateSystemApi* | [**validate_system_post**](docs/ValidateSystemApi.md#validate_system_post) | **POST** /validate-system |
|
184
185
|
*AutosdeOpenapiClient::VolumeApi* | [**volumes_get**](docs/VolumeApi.md#volumes_get) | **GET** /volumes |
|
185
186
|
*AutosdeOpenapiClient::VolumeApi* | [**volumes_pk_delete**](docs/VolumeApi.md#volumes_pk_delete) | **DELETE** /volumes/{pk} |
|
186
187
|
*AutosdeOpenapiClient::VolumeApi* | [**volumes_pk_get**](docs/VolumeApi.md#volumes_pk_get) | **GET** /volumes/{pk} |
|
@@ -247,6 +248,7 @@ Class | Method | HTTP request | Description
|
|
247
248
|
- [AutosdeOpenapiClient::User](docs/User.md)
|
248
249
|
- [AutosdeOpenapiClient::UserCreate](docs/UserCreate.md)
|
249
250
|
- [AutosdeOpenapiClient::UserUpdate](docs/UserUpdate.md)
|
251
|
+
- [AutosdeOpenapiClient::ValidateSystem](docs/ValidateSystem.md)
|
250
252
|
- [AutosdeOpenapiClient::Volume](docs/Volume.md)
|
251
253
|
- [AutosdeOpenapiClient::VolumeCreate](docs/VolumeCreate.md)
|
252
254
|
- [AutosdeOpenapiClient::VolumeResponse](docs/VolumeResponse.md)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# AutosdeOpenapiClient::ValidateSystem
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **management_ip** | **String** | management_ip | [optional] |
|
8
|
+
| **name** | **String** | name | [optional] |
|
9
|
+
| **password** | **String** | password | [optional] |
|
10
|
+
| **system_type** | **String** | system_type | [optional] |
|
11
|
+
| **user** | **String** | user | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'autosde_openapi_client'
|
17
|
+
|
18
|
+
instance = AutosdeOpenapiClient::ValidateSystem.new(
|
19
|
+
management_ip: null,
|
20
|
+
name: null,
|
21
|
+
password: null,
|
22
|
+
system_type: null,
|
23
|
+
user: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# AutosdeOpenapiClient::ValidateSystemApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**validate_system_post**](ValidateSystemApi.md#validate_system_post) | **POST** /validate-system | |
|
8
|
+
|
9
|
+
|
10
|
+
## validate_system_post
|
11
|
+
|
12
|
+
> <ValidateSystem> validate_system_post(storage_system_create)
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
### Examples
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'time'
|
20
|
+
require 'autosde_openapi_client'
|
21
|
+
# setup authorization
|
22
|
+
AutosdeOpenapiClient.configure do |config|
|
23
|
+
# Configure Bearer authorization: bearerAuth
|
24
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = AutosdeOpenapiClient::ValidateSystemApi.new
|
28
|
+
storage_system_create = AutosdeOpenapiClient::StorageSystemCreate.new # StorageSystemCreate |
|
29
|
+
|
30
|
+
begin
|
31
|
+
|
32
|
+
result = api_instance.validate_system_post(storage_system_create)
|
33
|
+
p result
|
34
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
35
|
+
puts "Error when calling ValidateSystemApi->validate_system_post: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
#### Using the validate_system_post_with_http_info variant
|
40
|
+
|
41
|
+
This returns an Array which contains the response data, status code and headers.
|
42
|
+
|
43
|
+
> <Array(<ValidateSystem>, Integer, Hash)> validate_system_post_with_http_info(storage_system_create)
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
begin
|
47
|
+
|
48
|
+
data, status_code, headers = api_instance.validate_system_post_with_http_info(storage_system_create)
|
49
|
+
p status_code # => 2xx
|
50
|
+
p headers # => { ... }
|
51
|
+
p data # => <ValidateSystem>
|
52
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
53
|
+
puts "Error when calling ValidateSystemApi->validate_system_post_with_http_info: #{e}"
|
54
|
+
end
|
55
|
+
```
|
56
|
+
|
57
|
+
### Parameters
|
58
|
+
|
59
|
+
| Name | Type | Description | Notes |
|
60
|
+
| ---- | ---- | ----------- | ----- |
|
61
|
+
| **storage_system_create** | [**StorageSystemCreate**](StorageSystemCreate.md) | | |
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**ValidateSystem**](ValidateSystem.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[bearerAuth](../README.md#bearerAuth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: application/json
|
74
|
+
- **Accept**: */*
|
75
|
+
|
@@ -0,0 +1,83 @@
|
|
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 'cgi'
|
14
|
+
|
15
|
+
module AutosdeOpenapiClient
|
16
|
+
class ValidateSystemApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param storage_system_create [StorageSystemCreate]
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @return [ValidateSystem]
|
25
|
+
def validate_system_post(storage_system_create, opts = {})
|
26
|
+
data, _status_code, _headers = validate_system_post_with_http_info(storage_system_create, opts)
|
27
|
+
data
|
28
|
+
end
|
29
|
+
|
30
|
+
# @param storage_system_create [StorageSystemCreate]
|
31
|
+
# @param [Hash] opts the optional parameters
|
32
|
+
# @return [Array<(ValidateSystem, Integer, Hash)>] ValidateSystem data, response status code and response headers
|
33
|
+
def validate_system_post_with_http_info(storage_system_create, opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: ValidateSystemApi.validate_system_post ...'
|
36
|
+
end
|
37
|
+
# verify the required parameter 'storage_system_create' is set
|
38
|
+
if @api_client.config.client_side_validation && storage_system_create.nil?
|
39
|
+
fail ArgumentError, "Missing the required parameter 'storage_system_create' when calling ValidateSystemApi.validate_system_post"
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/validate-system'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_system_create)
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:debug_return_type] || 'ValidateSystem'
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:operation => :"ValidateSystemApi.validate_system_post",
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => return_type
|
74
|
+
)
|
75
|
+
|
76
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: ValidateSystemApi#validate_system_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,260 @@
|
|
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
|
+
# ValidateSystem object represents the validation of the storage system credentials.
|
18
|
+
class ValidateSystem
|
19
|
+
# management_ip
|
20
|
+
attr_accessor :management_ip
|
21
|
+
|
22
|
+
# name
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
# password
|
26
|
+
attr_accessor :password
|
27
|
+
|
28
|
+
# system_type
|
29
|
+
attr_accessor :system_type
|
30
|
+
|
31
|
+
# user
|
32
|
+
attr_accessor :user
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'management_ip' => :'management_ip',
|
38
|
+
:'name' => :'name',
|
39
|
+
:'password' => :'password',
|
40
|
+
:'system_type' => :'system_type',
|
41
|
+
:'user' => :'user'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Returns all the JSON keys this model knows about
|
46
|
+
def self.acceptable_attributes
|
47
|
+
attribute_map.values
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'management_ip' => :'String',
|
54
|
+
:'name' => :'String',
|
55
|
+
:'password' => :'String',
|
56
|
+
:'system_type' => :'String',
|
57
|
+
:'user' => :'String'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# List of attributes with nullable: true
|
62
|
+
def self.openapi_nullable
|
63
|
+
Set.new([
|
64
|
+
])
|
65
|
+
end
|
66
|
+
|
67
|
+
# Initializes the object
|
68
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
69
|
+
def initialize(attributes = {})
|
70
|
+
if (!attributes.is_a?(Hash))
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ValidateSystem` initialize method"
|
72
|
+
end
|
73
|
+
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ValidateSystem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
78
|
+
end
|
79
|
+
h[k.to_sym] = v
|
80
|
+
}
|
81
|
+
|
82
|
+
if attributes.key?(:'management_ip')
|
83
|
+
self.management_ip = attributes[:'management_ip']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'name')
|
87
|
+
self.name = attributes[:'name']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'password')
|
91
|
+
self.password = attributes[:'password']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'system_type')
|
95
|
+
self.system_type = attributes[:'system_type']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'user')
|
99
|
+
self.user = attributes[:'user']
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
104
|
+
# @return Array for valid properties with the reasons
|
105
|
+
def list_invalid_properties
|
106
|
+
invalid_properties = Array.new
|
107
|
+
invalid_properties
|
108
|
+
end
|
109
|
+
|
110
|
+
# Check to see if the all the properties in the model are valid
|
111
|
+
# @return true if the model is valid
|
112
|
+
def valid?
|
113
|
+
true
|
114
|
+
end
|
115
|
+
|
116
|
+
# Checks equality by comparing each attribute.
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def ==(o)
|
119
|
+
return true if self.equal?(o)
|
120
|
+
self.class == o.class &&
|
121
|
+
management_ip == o.management_ip &&
|
122
|
+
name == o.name &&
|
123
|
+
password == o.password &&
|
124
|
+
system_type == o.system_type &&
|
125
|
+
user == o.user
|
126
|
+
end
|
127
|
+
|
128
|
+
# @see the `==` method
|
129
|
+
# @param [Object] Object to be compared
|
130
|
+
def eql?(o)
|
131
|
+
self == o
|
132
|
+
end
|
133
|
+
|
134
|
+
# Calculates hash code according to all attributes.
|
135
|
+
# @return [Integer] Hash code
|
136
|
+
def hash
|
137
|
+
[management_ip, name, password, system_type, user].hash
|
138
|
+
end
|
139
|
+
|
140
|
+
# Builds the object from hash
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
+
# @return [Object] Returns the model itself
|
143
|
+
def self.build_from_hash(attributes)
|
144
|
+
new.build_from_hash(attributes)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Builds the object from hash
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
+
# @return [Object] Returns the model itself
|
150
|
+
def build_from_hash(attributes)
|
151
|
+
return nil unless attributes.is_a?(Hash)
|
152
|
+
self.class.openapi_types.each_pair do |key, type|
|
153
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
154
|
+
self.send("#{key}=", nil)
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
156
|
+
# check to ensure the input is an array given that the attribute
|
157
|
+
# is documented as an array but the input is not
|
158
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
159
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
160
|
+
end
|
161
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
162
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
self
|
167
|
+
end
|
168
|
+
|
169
|
+
# Deserializes the data based on type
|
170
|
+
# @param string type Data type
|
171
|
+
# @param string value Value to be deserialized
|
172
|
+
# @return [Object] Deserialized data
|
173
|
+
def _deserialize(type, value)
|
174
|
+
case type.to_sym
|
175
|
+
when :Time
|
176
|
+
Time.parse(value)
|
177
|
+
when :Date
|
178
|
+
Date.parse(value)
|
179
|
+
when :String
|
180
|
+
value.to_s
|
181
|
+
when :Integer
|
182
|
+
value.to_i
|
183
|
+
when :Float
|
184
|
+
value.to_f
|
185
|
+
when :Boolean
|
186
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
187
|
+
true
|
188
|
+
else
|
189
|
+
false
|
190
|
+
end
|
191
|
+
when :Object
|
192
|
+
# generic object (usually a Hash), return directly
|
193
|
+
value
|
194
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
195
|
+
inner_type = Regexp.last_match[:inner_type]
|
196
|
+
value.map { |v| _deserialize(inner_type, v) }
|
197
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
198
|
+
k_type = Regexp.last_match[:k_type]
|
199
|
+
v_type = Regexp.last_match[:v_type]
|
200
|
+
{}.tap do |hash|
|
201
|
+
value.each do |k, v|
|
202
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
else # model
|
206
|
+
# models (e.g. Pet) or oneOf
|
207
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
208
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
# Returns the string representation of the object
|
213
|
+
# @return [String] String presentation of the object
|
214
|
+
def to_s
|
215
|
+
to_hash.to_s
|
216
|
+
end
|
217
|
+
|
218
|
+
# to_body is an alias to to_hash (backward compatibility)
|
219
|
+
# @return [Hash] Returns the object in the form of hash
|
220
|
+
def to_body
|
221
|
+
to_hash
|
222
|
+
end
|
223
|
+
|
224
|
+
# Returns the object in the form of hash
|
225
|
+
# @return [Hash] Returns the object in the form of hash
|
226
|
+
def to_hash
|
227
|
+
hash = {}
|
228
|
+
self.class.attribute_map.each_pair do |attr, param|
|
229
|
+
value = self.send(attr)
|
230
|
+
if value.nil?
|
231
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
232
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
233
|
+
end
|
234
|
+
|
235
|
+
hash[param] = _to_hash(value)
|
236
|
+
end
|
237
|
+
hash
|
238
|
+
end
|
239
|
+
|
240
|
+
# Outputs non-array value in the form of hash
|
241
|
+
# For object, use to_hash. Otherwise, just return the value
|
242
|
+
# @param [Object] value Any valid value
|
243
|
+
# @return [Hash] Returns the value in the form of hash
|
244
|
+
def _to_hash(value)
|
245
|
+
if value.is_a?(Array)
|
246
|
+
value.compact.map { |v| _to_hash(v) }
|
247
|
+
elsif value.is_a?(Hash)
|
248
|
+
{}.tap do |hash|
|
249
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
250
|
+
end
|
251
|
+
elsif value.respond_to? :to_hash
|
252
|
+
value.to_hash
|
253
|
+
else
|
254
|
+
value
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
end
|
259
|
+
|
260
|
+
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.13
|
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.13'
|
15
15
|
end
|
@@ -70,6 +70,7 @@ require 'autosde_openapi_client/models/system_type_create'
|
|
70
70
|
require 'autosde_openapi_client/models/user'
|
71
71
|
require 'autosde_openapi_client/models/user_create'
|
72
72
|
require 'autosde_openapi_client/models/user_update'
|
73
|
+
require 'autosde_openapi_client/models/validate_system'
|
73
74
|
require 'autosde_openapi_client/models/volume'
|
74
75
|
require 'autosde_openapi_client/models/volume_create'
|
75
76
|
require 'autosde_openapi_client/models/volume_response'
|
@@ -104,6 +105,7 @@ require 'autosde_openapi_client/api/storage_resource_api'
|
|
104
105
|
require 'autosde_openapi_client/api/storage_system_api'
|
105
106
|
require 'autosde_openapi_client/api/system_type_api'
|
106
107
|
require 'autosde_openapi_client/api/user_api'
|
108
|
+
require 'autosde_openapi_client/api/validate_system_api'
|
107
109
|
require 'autosde_openapi_client/api/volume_api'
|
108
110
|
require 'autosde_openapi_client/api/volume_safe_delete_api'
|
109
111
|
|
@@ -0,0 +1,45 @@
|
|
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
|
+
|
16
|
+
# Unit tests for AutosdeOpenapiClient::ValidateSystemApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ValidateSystemApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = AutosdeOpenapiClient::ValidateSystemApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ValidateSystemApi' do
|
30
|
+
it 'should create an instance of ValidateSystemApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::ValidateSystemApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for validate_system_post
|
36
|
+
# @param storage_system_create
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [ValidateSystem]
|
39
|
+
describe 'validate_system_post test' do
|
40
|
+
it 'should work' do
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -0,0 +1,58 @@
|
|
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::ValidateSystem
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::ValidateSystem do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::ValidateSystem.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ValidateSystem' do
|
24
|
+
it 'should create an instance of ValidateSystem' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::ValidateSystem)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "management_ip"' 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
|
+
describe 'test attribute "password"' 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 "system_type"' 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 "user"' 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
|
+
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.13
|
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-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -141,6 +141,8 @@ files:
|
|
141
141
|
- docs/UserApi.md
|
142
142
|
- docs/UserCreate.md
|
143
143
|
- docs/UserUpdate.md
|
144
|
+
- docs/ValidateSystem.md
|
145
|
+
- docs/ValidateSystemApi.md
|
144
146
|
- docs/Volume.md
|
145
147
|
- docs/VolumeApi.md
|
146
148
|
- docs/VolumeCreate.md
|
@@ -177,6 +179,7 @@ files:
|
|
177
179
|
- lib/autosde_openapi_client/api/storage_system_api.rb
|
178
180
|
- lib/autosde_openapi_client/api/system_type_api.rb
|
179
181
|
- lib/autosde_openapi_client/api/user_api.rb
|
182
|
+
- lib/autosde_openapi_client/api/validate_system_api.rb
|
180
183
|
- lib/autosde_openapi_client/api/volume_api.rb
|
181
184
|
- lib/autosde_openapi_client/api/volume_safe_delete_api.rb
|
182
185
|
- lib/autosde_openapi_client/api_client.rb
|
@@ -235,6 +238,7 @@ files:
|
|
235
238
|
- lib/autosde_openapi_client/models/user.rb
|
236
239
|
- lib/autosde_openapi_client/models/user_create.rb
|
237
240
|
- lib/autosde_openapi_client/models/user_update.rb
|
241
|
+
- lib/autosde_openapi_client/models/validate_system.rb
|
238
242
|
- lib/autosde_openapi_client/models/volume.rb
|
239
243
|
- lib/autosde_openapi_client/models/volume_create.rb
|
240
244
|
- lib/autosde_openapi_client/models/volume_response.rb
|
@@ -268,6 +272,7 @@ files:
|
|
268
272
|
- spec/api/storage_system_api_spec.rb
|
269
273
|
- spec/api/system_type_api_spec.rb
|
270
274
|
- spec/api/user_api_spec.rb
|
275
|
+
- spec/api/validate_system_api_spec.rb
|
271
276
|
- spec/api/volume_api_spec.rb
|
272
277
|
- spec/api/volume_safe_delete_api_spec.rb
|
273
278
|
- spec/api_client_spec.rb
|
@@ -325,6 +330,7 @@ files:
|
|
325
330
|
- spec/models/user_create_spec.rb
|
326
331
|
- spec/models/user_spec.rb
|
327
332
|
- spec/models/user_update_spec.rb
|
333
|
+
- spec/models/validate_system_spec.rb
|
328
334
|
- spec/models/volume_create_spec.rb
|
329
335
|
- spec/models/volume_response_spec.rb
|
330
336
|
- spec/models/volume_safe_delete_create_spec.rb
|
@@ -356,93 +362,95 @@ signing_key:
|
|
356
362
|
specification_version: 4
|
357
363
|
summary: Site Manager API Ruby Gem
|
358
364
|
test_files:
|
359
|
-
- spec/api/
|
360
|
-
- spec/api/
|
361
|
-
- spec/api/
|
362
|
-
- spec/api/host_api_spec.rb
|
363
|
-
- spec/api/address_api_spec.rb
|
364
|
-
- spec/api/host_volume_connection_api_spec.rb
|
365
|
+
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
366
|
+
- spec/api/service_api_spec.rb
|
367
|
+
- spec/api/volume_api_spec.rb
|
365
368
|
- spec/api/capability_translation_api_spec.rb
|
366
369
|
- spec/api/profile_api_spec.rb
|
370
|
+
- spec/api/storage_system_api_spec.rb
|
371
|
+
- spec/api/address_api_spec.rb
|
367
372
|
- spec/api/auto_sde_project_api_spec.rb
|
368
|
-
- spec/api/volume_safe_delete_api_spec.rb
|
369
|
-
- spec/api/service_api_spec.rb
|
370
|
-
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
371
373
|
- spec/api/storage_host_volume_mapping_api_spec.rb
|
372
|
-
- spec/api/
|
374
|
+
- spec/api/validate_system_api_spec.rb
|
375
|
+
- spec/api/host_api_spec.rb
|
376
|
+
- spec/api/native_capability_api_spec.rb
|
377
|
+
- spec/api/host_volume_connection_api_spec.rb
|
373
378
|
- spec/api/storage_host_api_spec.rb
|
374
|
-
- spec/api/
|
375
|
-
- spec/api/user_api_spec.rb
|
376
|
-
- spec/api/system_type_api_spec.rb
|
377
|
-
- spec/api/service_resource_attachment_api_spec.rb
|
378
|
-
- spec/api/auto_sde_role_api_spec.rb
|
379
|
-
- spec/api/authentication_api_spec.rb
|
379
|
+
- spec/api/provisioning_strategy_api_spec.rb
|
380
380
|
- spec/api/abstract_capability_api_spec.rb
|
381
|
-
- spec/api/
|
382
|
-
- spec/api/
|
381
|
+
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
382
|
+
- spec/api/storage_resource_api_spec.rb
|
383
|
+
- spec/api/service_resource_attachment_api_spec.rb
|
384
|
+
- spec/api/user_api_spec.rb
|
383
385
|
- spec/api/snapshot_api_spec.rb
|
386
|
+
- spec/api/authentication_api_spec.rb
|
384
387
|
- spec/api/account_api_spec.rb
|
385
|
-
- spec/api/storage_resource_api_spec.rb
|
386
388
|
- spec/api/job_api_spec.rb
|
389
|
+
- spec/api/volume_safe_delete_api_spec.rb
|
390
|
+
- spec/api/system_type_api_spec.rb
|
391
|
+
- spec/api/auto_sde_role_api_spec.rb
|
392
|
+
- spec/api/host_cluster_api_spec.rb
|
393
|
+
- spec/api/host_cluster_membership_api_spec.rb
|
387
394
|
- spec/api_client_spec.rb
|
388
395
|
- spec/configuration_spec.rb
|
389
|
-
- spec/models/
|
390
|
-
- spec/models/host_cluster_spec.rb
|
391
|
-
- spec/models/host_volume_connection_create_spec.rb
|
392
|
-
- spec/models/profile_spec.rb
|
396
|
+
- spec/models/storage_system_spec.rb
|
393
397
|
- spec/models/address_create_spec.rb
|
394
|
-
- spec/models/
|
398
|
+
- spec/models/storage_host_update_spec.rb
|
395
399
|
- spec/models/address_spec.rb
|
396
|
-
- spec/models/
|
400
|
+
- spec/models/host_volume_connection_create_spec.rb
|
401
|
+
- spec/models/service_create_spec.rb
|
402
|
+
- spec/models/service_spec.rb
|
403
|
+
- spec/models/capability_translation_create_spec.rb
|
404
|
+
- spec/models/auto_sde_role_spec.rb
|
405
|
+
- spec/models/host_cluster_volume_mapping_spec.rb
|
406
|
+
- spec/models/volume_create_spec.rb
|
407
|
+
- spec/models/authentication_spec.rb
|
408
|
+
- spec/models/storage_host_spec.rb
|
409
|
+
- spec/models/user_spec.rb
|
397
410
|
- spec/models/volume_update_spec.rb
|
398
|
-
- spec/models/
|
399
|
-
- spec/models/
|
400
|
-
- spec/models/
|
411
|
+
- spec/models/host_create_spec.rb
|
412
|
+
- spec/models/storage_resource_create_spec.rb
|
413
|
+
- spec/models/host_cluster_response_spec.rb
|
414
|
+
- spec/models/storage_system_create_spec.rb
|
415
|
+
- spec/models/user_create_spec.rb
|
416
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
417
|
+
- spec/models/profile_spec.rb
|
418
|
+
- spec/models/system_type_spec.rb
|
401
419
|
- spec/models/storage_host_volume_mapping_create_spec.rb
|
402
|
-
- spec/models/capability_translation_create_spec.rb
|
403
|
-
- spec/models/user_update_spec.rb
|
404
|
-
- spec/models/storage_resource_spec.rb
|
405
|
-
- spec/models/native_capability_spec.rb
|
406
|
-
- spec/models/volume_response_spec.rb
|
407
|
-
- spec/models/storage_host_create_spec.rb
|
408
420
|
- spec/models/host_cluster_create_spec.rb
|
409
|
-
- spec/models/
|
410
|
-
- spec/models/
|
411
|
-
- spec/models/
|
412
|
-
- spec/models/host_volume_connection_spec.rb
|
421
|
+
- spec/models/snapshot_spec.rb
|
422
|
+
- spec/models/host_cluster_spec.rb
|
423
|
+
- spec/models/job_spec.rb
|
413
424
|
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
414
|
-
- spec/models/
|
415
|
-
- spec/models/storage_host_update_spec.rb
|
416
|
-
- spec/models/storage_system_spec.rb
|
417
|
-
- spec/models/storage_host_wwpn_candidates_spec.rb
|
425
|
+
- spec/models/volume_response_spec.rb
|
418
426
|
- spec/models/account_post_response_spec.rb
|
419
|
-
- spec/models/
|
420
|
-
- spec/models/
|
421
|
-
- spec/models/host_create_spec.rb
|
427
|
+
- spec/models/host_cluster_membership_spec.rb
|
428
|
+
- spec/models/storage_host_volume_mapping_response_spec.rb
|
422
429
|
- spec/models/capability_translation_spec.rb
|
423
430
|
- spec/models/snapshot_create_spec.rb
|
424
|
-
- spec/models/
|
425
|
-
- spec/models/
|
426
|
-
- spec/models/host_cluster_volume_mapping_spec.rb
|
431
|
+
- spec/models/volume_spec.rb
|
432
|
+
- spec/models/validate_system_spec.rb
|
427
433
|
- spec/models/job_create_spec.rb
|
434
|
+
- spec/models/storage_host_volume_mapping_spec.rb
|
435
|
+
- spec/models/volume_safe_delete_create_spec.rb
|
436
|
+
- spec/models/storage_resource_spec.rb
|
437
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
428
438
|
- spec/models/storage_resource_response_spec.rb
|
429
|
-
- spec/models/
|
430
|
-
- spec/models/
|
431
|
-
- spec/models/
|
432
|
-
- spec/models/
|
433
|
-
- spec/models/service_create_spec.rb
|
434
|
-
- spec/models/service_resource_attachment_spec.rb
|
435
|
-
- spec/models/authentication_spec.rb
|
436
|
-
- spec/models/user_spec.rb
|
439
|
+
- spec/models/host_volume_connection_spec.rb
|
440
|
+
- spec/models/user_update_spec.rb
|
441
|
+
- spec/models/native_capability_spec.rb
|
442
|
+
- spec/models/abstract_capability_spec.rb
|
437
443
|
- spec/models/storage_host_response_spec.rb
|
438
|
-
- spec/models/host_cluster_membership_spec.rb
|
439
|
-
- spec/models/service_abstract_capability_value_spec.rb
|
440
444
|
- spec/models/auto_sde_project_spec.rb
|
441
|
-
- spec/models/
|
442
|
-
- spec/models/
|
443
|
-
- spec/models/volume_safe_delete_spec.rb
|
444
|
-
- spec/models/volume_safe_delete_create_spec.rb
|
445
|
+
- spec/models/service_resource_attachment_spec.rb
|
446
|
+
- spec/models/system_type_create_spec.rb
|
445
447
|
- spec/models/host_spec.rb
|
446
|
-
- spec/models/
|
448
|
+
- spec/models/account_post_request_spec.rb
|
447
449
|
- spec/models/storage_system_update_spec.rb
|
450
|
+
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
451
|
+
- spec/models/storage_host_create_spec.rb
|
452
|
+
- spec/models/provisioning_strategy_spec.rb
|
453
|
+
- spec/models/volume_safe_delete_spec.rb
|
454
|
+
- spec/models/auth_response_spec.rb
|
455
|
+
- spec/models/account_spec.rb
|
448
456
|
- spec/spec_helper.rb
|