autosde_openapi_client 1.0.36 → 1.0.37
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/StorageHostWWPNCandidates.md +20 -0
- data/docs/StorageHostWWPNCandidatesApi.md +72 -0
- data/lib/autosde_openapi_client.rb +2 -0
- data/lib/autosde_openapi_client/api/storage_host_wwpn_candidates_api.rb +75 -0
- data/lib/autosde_openapi_client/models/storage_host_wwpn_candidates.rb +230 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/spec/api/storage_host_wwpn_candidates_api_spec.rb +44 -0
- data/spec/models/storage_host_wwpn_candidates_spec.rb +40 -0
- metadata +64 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b7cbf17cb2f962895a91101f21e832fe84d28d0874c480b1ea4ed6ac7556961
|
4
|
+
data.tar.gz: d53d5bdf1c4a961fbcbbdf33f99e8eed2afffd3a8ffb7b0f9c6c5710b634173e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b004a7f6fa7f1656d6e576dacec4b176bfb6b192b86f2b16c80a0f9d1f6976113c8d8a211ca4ed355b8e1b44a05924e54344909db3bbd5c5f5dc90e158d5183
|
7
|
+
data.tar.gz: 989594c2e1cf8dfa584e067834e0a2140e0026f6e9f5011b1959be54a9da79eb4b7a2d5bd384dafe97ef39c73d6f5a304b0e7789584338e45ece98ea95b0c3ee
|
data/README.md
CHANGED
@@ -149,6 +149,7 @@ Class | Method | HTTP request | Description
|
|
149
149
|
*AutosdeOpenapiClient::StorageHostVolumeMappingApi* | [**storage_hosts_mapping_pk_delete**](docs/StorageHostVolumeMappingApi.md#storage_hosts_mapping_pk_delete) | **DELETE** /storage-hosts-mapping/{pk} |
|
150
150
|
*AutosdeOpenapiClient::StorageHostVolumeMappingApi* | [**storage_hosts_mapping_pk_get**](docs/StorageHostVolumeMappingApi.md#storage_hosts_mapping_pk_get) | **GET** /storage-hosts-mapping/{pk} |
|
151
151
|
*AutosdeOpenapiClient::StorageHostVolumeMappingApi* | [**storage_hosts_mapping_post**](docs/StorageHostVolumeMappingApi.md#storage_hosts_mapping_post) | **POST** /storage-hosts-mapping |
|
152
|
+
*AutosdeOpenapiClient::StorageHostWWPNCandidatesApi* | [**storage_hosts_wwpn_candidates_get**](docs/StorageHostWWPNCandidatesApi.md#storage_hosts_wwpn_candidates_get) | **GET** /storage-hosts-wwpn-candidates |
|
152
153
|
*AutosdeOpenapiClient::StorageResourceApi* | [**storage_resources_get**](docs/StorageResourceApi.md#storage_resources_get) | **GET** /storage-resources/ |
|
153
154
|
*AutosdeOpenapiClient::StorageResourceApi* | [**storage_resources_pk_delete**](docs/StorageResourceApi.md#storage_resources_pk_delete) | **DELETE** /storage-resources/{pk} |
|
154
155
|
*AutosdeOpenapiClient::StorageResourceApi* | [**storage_resources_pk_get**](docs/StorageResourceApi.md#storage_resources_pk_get) | **GET** /storage-resources/{pk} |
|
@@ -209,6 +210,7 @@ Class | Method | HTTP request | Description
|
|
209
210
|
- [AutosdeOpenapiClient::StorageHostVolumeMapping](docs/StorageHostVolumeMapping.md)
|
210
211
|
- [AutosdeOpenapiClient::StorageHostVolumeMappingCreate](docs/StorageHostVolumeMappingCreate.md)
|
211
212
|
- [AutosdeOpenapiClient::StorageHostVolumeMappingResponse](docs/StorageHostVolumeMappingResponse.md)
|
213
|
+
- [AutosdeOpenapiClient::StorageHostWWPNCandidates](docs/StorageHostWWPNCandidates.md)
|
212
214
|
- [AutosdeOpenapiClient::StorageResource](docs/StorageResource.md)
|
213
215
|
- [AutosdeOpenapiClient::StorageResourceCreate](docs/StorageResourceCreate.md)
|
214
216
|
- [AutosdeOpenapiClient::StorageResourceResponse](docs/StorageResourceResponse.md)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# AutosdeOpenapiClient::StorageHostWWPNCandidates
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **system_uuid** | **String** | system_uuid | [optional] |
|
8
|
+
| **wwpn** | **String** | wwpn | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'autosde_openapi_client'
|
14
|
+
|
15
|
+
instance = AutosdeOpenapiClient::StorageHostWWPNCandidates.new(
|
16
|
+
system_uuid: null,
|
17
|
+
wwpn: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# AutosdeOpenapiClient::StorageHostWWPNCandidatesApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**storage_hosts_wwpn_candidates_get**](StorageHostWWPNCandidatesApi.md#storage_hosts_wwpn_candidates_get) | **GET** /storage-hosts-wwpn-candidates | |
|
8
|
+
|
9
|
+
|
10
|
+
## storage_hosts_wwpn_candidates_get
|
11
|
+
|
12
|
+
> <Array<StorageHostWWPNCandidates>> storage_hosts_wwpn_candidates_get
|
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::StorageHostWWPNCandidatesApi.new
|
28
|
+
|
29
|
+
begin
|
30
|
+
|
31
|
+
result = api_instance.storage_hosts_wwpn_candidates_get
|
32
|
+
p result
|
33
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
34
|
+
puts "Error when calling StorageHostWWPNCandidatesApi->storage_hosts_wwpn_candidates_get: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
#### Using the storage_hosts_wwpn_candidates_get_with_http_info variant
|
39
|
+
|
40
|
+
This returns an Array which contains the response data, status code and headers.
|
41
|
+
|
42
|
+
> <Array(<Array<StorageHostWWPNCandidates>>, Integer, Hash)> storage_hosts_wwpn_candidates_get_with_http_info
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
begin
|
46
|
+
|
47
|
+
data, status_code, headers = api_instance.storage_hosts_wwpn_candidates_get_with_http_info
|
48
|
+
p status_code # => 2xx
|
49
|
+
p headers # => { ... }
|
50
|
+
p data # => <Array<StorageHostWWPNCandidates>>
|
51
|
+
rescue AutosdeOpenapiClient::ApiError => e
|
52
|
+
puts "Error when calling StorageHostWWPNCandidatesApi->storage_hosts_wwpn_candidates_get_with_http_info: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
### Parameters
|
57
|
+
|
58
|
+
This endpoint does not need any parameter.
|
59
|
+
|
60
|
+
### Return type
|
61
|
+
|
62
|
+
[**Array<StorageHostWWPNCandidates>**](StorageHostWWPNCandidates.md)
|
63
|
+
|
64
|
+
### Authorization
|
65
|
+
|
66
|
+
[bearerAuth](../README.md#bearerAuth)
|
67
|
+
|
68
|
+
### HTTP request headers
|
69
|
+
|
70
|
+
- **Content-Type**: Not defined
|
71
|
+
- **Accept**: */*
|
72
|
+
|
@@ -51,6 +51,7 @@ require 'autosde_openapi_client/models/storage_host_update'
|
|
51
51
|
require 'autosde_openapi_client/models/storage_host_volume_mapping'
|
52
52
|
require 'autosde_openapi_client/models/storage_host_volume_mapping_create'
|
53
53
|
require 'autosde_openapi_client/models/storage_host_volume_mapping_response'
|
54
|
+
require 'autosde_openapi_client/models/storage_host_wwpn_candidates'
|
54
55
|
require 'autosde_openapi_client/models/storage_resource'
|
55
56
|
require 'autosde_openapi_client/models/storage_resource_create'
|
56
57
|
require 'autosde_openapi_client/models/storage_resource_response'
|
@@ -84,6 +85,7 @@ require 'autosde_openapi_client/api/service_resource_attachment_api'
|
|
84
85
|
require 'autosde_openapi_client/api/snapshot_api'
|
85
86
|
require 'autosde_openapi_client/api/storage_host_api'
|
86
87
|
require 'autosde_openapi_client/api/storage_host_volume_mapping_api'
|
88
|
+
require 'autosde_openapi_client/api/storage_host_wwpn_candidates_api'
|
87
89
|
require 'autosde_openapi_client/api/storage_resource_api'
|
88
90
|
require 'autosde_openapi_client/api/storage_system_api'
|
89
91
|
require 'autosde_openapi_client/api/system_type_api'
|
@@ -0,0 +1,75 @@
|
|
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 StorageHostWWPNCandidatesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# @param [Hash] opts the optional parameters
|
23
|
+
# @return [Array<StorageHostWWPNCandidates>]
|
24
|
+
def storage_hosts_wwpn_candidates_get(opts = {})
|
25
|
+
data, _status_code, _headers = storage_hosts_wwpn_candidates_get_with_http_info(opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# @param [Hash] opts the optional parameters
|
30
|
+
# @return [Array<(Array<StorageHostWWPNCandidates>, Integer, Hash)>] Array<StorageHostWWPNCandidates> data, response status code and response headers
|
31
|
+
def storage_hosts_wwpn_candidates_get_with_http_info(opts = {})
|
32
|
+
if @api_client.config.debugging
|
33
|
+
@api_client.config.logger.debug 'Calling API: StorageHostWWPNCandidatesApi.storage_hosts_wwpn_candidates_get ...'
|
34
|
+
end
|
35
|
+
# resource path
|
36
|
+
local_var_path = '/storage-hosts-wwpn-candidates'
|
37
|
+
|
38
|
+
# query parameters
|
39
|
+
query_params = opts[:query_params] || {}
|
40
|
+
|
41
|
+
# header parameters
|
42
|
+
header_params = opts[:header_params] || {}
|
43
|
+
# HTTP header 'Accept' (if needed)
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
45
|
+
|
46
|
+
# form parameters
|
47
|
+
form_params = opts[:form_params] || {}
|
48
|
+
|
49
|
+
# http body (model)
|
50
|
+
post_body = opts[:debug_body]
|
51
|
+
|
52
|
+
# return_type
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<StorageHostWWPNCandidates>'
|
54
|
+
|
55
|
+
# auth_names
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
57
|
+
|
58
|
+
new_options = opts.merge(
|
59
|
+
:operation => :"StorageHostWWPNCandidatesApi.storage_hosts_wwpn_candidates_get",
|
60
|
+
:header_params => header_params,
|
61
|
+
:query_params => query_params,
|
62
|
+
:form_params => form_params,
|
63
|
+
:body => post_body,
|
64
|
+
:auth_names => auth_names,
|
65
|
+
:return_type => return_type
|
66
|
+
)
|
67
|
+
|
68
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
69
|
+
if @api_client.config.debugging
|
70
|
+
@api_client.config.logger.debug "API called: StorageHostWWPNCandidatesApi#storage_hosts_wwpn_candidates_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
+
end
|
72
|
+
return data, status_code, headers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,230 @@
|
|
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
|
+
# Storage host candidates
|
18
|
+
class StorageHostWWPNCandidates
|
19
|
+
# system_uuid
|
20
|
+
attr_accessor :system_uuid
|
21
|
+
|
22
|
+
# wwpn
|
23
|
+
attr_accessor :wwpn
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'system_uuid' => :'system_uuid',
|
29
|
+
:'wwpn' => :'wwpn'
|
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
|
+
:'system_uuid' => :'String',
|
42
|
+
:'wwpn' => :'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::StorageHostWWPNCandidates` 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::StorageHostWWPNCandidates`. 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?(:'system_uuid')
|
68
|
+
self.system_uuid = attributes[:'system_uuid']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'wwpn')
|
72
|
+
self.wwpn = attributes[:'wwpn']
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
77
|
+
# @return Array for valid properties with the reasons
|
78
|
+
def list_invalid_properties
|
79
|
+
invalid_properties = Array.new
|
80
|
+
invalid_properties
|
81
|
+
end
|
82
|
+
|
83
|
+
# Check to see if the all the properties in the model are valid
|
84
|
+
# @return true if the model is valid
|
85
|
+
def valid?
|
86
|
+
true
|
87
|
+
end
|
88
|
+
|
89
|
+
# Checks equality by comparing each attribute.
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def ==(o)
|
92
|
+
return true if self.equal?(o)
|
93
|
+
self.class == o.class &&
|
94
|
+
system_uuid == o.system_uuid &&
|
95
|
+
wwpn == o.wwpn
|
96
|
+
end
|
97
|
+
|
98
|
+
# @see the `==` method
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def eql?(o)
|
101
|
+
self == o
|
102
|
+
end
|
103
|
+
|
104
|
+
# Calculates hash code according to all attributes.
|
105
|
+
# @return [Integer] Hash code
|
106
|
+
def hash
|
107
|
+
[system_uuid, wwpn].hash
|
108
|
+
end
|
109
|
+
|
110
|
+
# Builds the object from hash
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
+
# @return [Object] Returns the model itself
|
113
|
+
def self.build_from_hash(attributes)
|
114
|
+
new.build_from_hash(attributes)
|
115
|
+
end
|
116
|
+
|
117
|
+
# Builds the object from hash
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
119
|
+
# @return [Object] Returns the model itself
|
120
|
+
def build_from_hash(attributes)
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
122
|
+
self.class.openapi_types.each_pair do |key, type|
|
123
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
124
|
+
self.send("#{key}=", nil)
|
125
|
+
elsif type =~ /\AArray<(.*)>/i
|
126
|
+
# check to ensure the input is an array given that the attribute
|
127
|
+
# is documented as an array but the input is not
|
128
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
129
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
130
|
+
end
|
131
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
self
|
137
|
+
end
|
138
|
+
|
139
|
+
# Deserializes the data based on type
|
140
|
+
# @param string type Data type
|
141
|
+
# @param string value Value to be deserialized
|
142
|
+
# @return [Object] Deserialized data
|
143
|
+
def _deserialize(type, value)
|
144
|
+
case type.to_sym
|
145
|
+
when :Time
|
146
|
+
Time.parse(value)
|
147
|
+
when :Date
|
148
|
+
Date.parse(value)
|
149
|
+
when :String
|
150
|
+
value.to_s
|
151
|
+
when :Integer
|
152
|
+
value.to_i
|
153
|
+
when :Float
|
154
|
+
value.to_f
|
155
|
+
when :Boolean
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
157
|
+
true
|
158
|
+
else
|
159
|
+
false
|
160
|
+
end
|
161
|
+
when :Object
|
162
|
+
# generic object (usually a Hash), return directly
|
163
|
+
value
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
170
|
+
{}.tap do |hash|
|
171
|
+
value.each do |k, v|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
else # model
|
176
|
+
# models (e.g. Pet) or oneOf
|
177
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
178
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# Returns the string representation of the object
|
183
|
+
# @return [String] String presentation of the object
|
184
|
+
def to_s
|
185
|
+
to_hash.to_s
|
186
|
+
end
|
187
|
+
|
188
|
+
# to_body is an alias to to_hash (backward compatibility)
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
190
|
+
def to_body
|
191
|
+
to_hash
|
192
|
+
end
|
193
|
+
|
194
|
+
# Returns the object in the form of hash
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
196
|
+
def to_hash
|
197
|
+
hash = {}
|
198
|
+
self.class.attribute_map.each_pair do |attr, param|
|
199
|
+
value = self.send(attr)
|
200
|
+
if value.nil?
|
201
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
202
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
203
|
+
end
|
204
|
+
|
205
|
+
hash[param] = _to_hash(value)
|
206
|
+
end
|
207
|
+
hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Outputs non-array value in the form of hash
|
211
|
+
# For object, use to_hash. Otherwise, just return the value
|
212
|
+
# @param [Object] value Any valid value
|
213
|
+
# @return [Hash] Returns the value in the form of hash
|
214
|
+
def _to_hash(value)
|
215
|
+
if value.is_a?(Array)
|
216
|
+
value.compact.map { |v| _to_hash(v) }
|
217
|
+
elsif value.is_a?(Hash)
|
218
|
+
{}.tap do |hash|
|
219
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
220
|
+
end
|
221
|
+
elsif value.respond_to? :to_hash
|
222
|
+
value.to_hash
|
223
|
+
else
|
224
|
+
value
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
229
|
+
|
230
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Site Manager API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0.
|
6
|
+
The version of the OpenAPI document: 1.0.37
|
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.0.
|
14
|
+
VERSION = '1.0.37'
|
15
15
|
end
|
@@ -0,0 +1,44 @@
|
|
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::StorageHostWWPNCandidatesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'StorageHostWWPNCandidatesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = AutosdeOpenapiClient::StorageHostWWPNCandidatesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of StorageHostWWPNCandidatesApi' do
|
30
|
+
it 'should create an instance of StorageHostWWPNCandidatesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::StorageHostWWPNCandidatesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for storage_hosts_wwpn_candidates_get
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<StorageHostWWPNCandidates>]
|
38
|
+
describe 'storage_hosts_wwpn_candidates_get test' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
@@ -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::StorageHostWWPNCandidates
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::StorageHostWWPNCandidates do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::StorageHostWWPNCandidates.new }
|
22
|
+
|
23
|
+
describe 'test an instance of StorageHostWWPNCandidates' do
|
24
|
+
it 'should create an instance of StorageHostWWPNCandidates' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::StorageHostWWPNCandidates)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "system_uuid"' 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 "wwpn"' 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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autosde_openapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
@@ -113,6 +113,8 @@ files:
|
|
113
113
|
- docs/StorageHostVolumeMappingApi.md
|
114
114
|
- docs/StorageHostVolumeMappingCreate.md
|
115
115
|
- docs/StorageHostVolumeMappingResponse.md
|
116
|
+
- docs/StorageHostWWPNCandidates.md
|
117
|
+
- docs/StorageHostWWPNCandidatesApi.md
|
116
118
|
- docs/StorageResource.md
|
117
119
|
- docs/StorageResourceApi.md
|
118
120
|
- docs/StorageResourceCreate.md
|
@@ -151,6 +153,7 @@ files:
|
|
151
153
|
- lib/autosde_openapi_client/api/snapshot_api.rb
|
152
154
|
- lib/autosde_openapi_client/api/storage_host_api.rb
|
153
155
|
- lib/autosde_openapi_client/api/storage_host_volume_mapping_api.rb
|
156
|
+
- lib/autosde_openapi_client/api/storage_host_wwpn_candidates_api.rb
|
154
157
|
- lib/autosde_openapi_client/api/storage_resource_api.rb
|
155
158
|
- lib/autosde_openapi_client/api/storage_system_api.rb
|
156
159
|
- lib/autosde_openapi_client/api/system_type_api.rb
|
@@ -193,6 +196,7 @@ files:
|
|
193
196
|
- lib/autosde_openapi_client/models/storage_host_volume_mapping.rb
|
194
197
|
- lib/autosde_openapi_client/models/storage_host_volume_mapping_create.rb
|
195
198
|
- lib/autosde_openapi_client/models/storage_host_volume_mapping_response.rb
|
199
|
+
- lib/autosde_openapi_client/models/storage_host_wwpn_candidates.rb
|
196
200
|
- lib/autosde_openapi_client/models/storage_resource.rb
|
197
201
|
- lib/autosde_openapi_client/models/storage_resource_create.rb
|
198
202
|
- lib/autosde_openapi_client/models/storage_resource_response.rb
|
@@ -225,6 +229,7 @@ files:
|
|
225
229
|
- spec/api/snapshot_api_spec.rb
|
226
230
|
- spec/api/storage_host_api_spec.rb
|
227
231
|
- spec/api/storage_host_volume_mapping_api_spec.rb
|
232
|
+
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
228
233
|
- spec/api/storage_resource_api_spec.rb
|
229
234
|
- spec/api/storage_system_api_spec.rb
|
230
235
|
- spec/api/system_type_api_spec.rb
|
@@ -266,6 +271,7 @@ files:
|
|
266
271
|
- spec/models/storage_host_volume_mapping_create_spec.rb
|
267
272
|
- spec/models/storage_host_volume_mapping_response_spec.rb
|
268
273
|
- spec/models/storage_host_volume_mapping_spec.rb
|
274
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
269
275
|
- spec/models/storage_resource_create_spec.rb
|
270
276
|
- spec/models/storage_resource_response_spec.rb
|
271
277
|
- spec/models/storage_resource_spec.rb
|
@@ -304,76 +310,78 @@ signing_key:
|
|
304
310
|
specification_version: 4
|
305
311
|
summary: Site Manager API Ruby Gem
|
306
312
|
test_files:
|
307
|
-
- spec/api/
|
308
|
-
- spec/api/
|
309
|
-
- spec/api/
|
310
|
-
- spec/api/volume_api_spec.rb
|
311
|
-
- spec/api/provisioning_strategy_api_spec.rb
|
312
|
-
- spec/api/system_type_api_spec.rb
|
313
|
+
- spec/api/storage_system_api_spec.rb
|
314
|
+
- spec/api/host_volume_connection_api_spec.rb
|
315
|
+
- spec/api/service_resource_attachment_api_spec.rb
|
313
316
|
- spec/api/native_capability_api_spec.rb
|
314
|
-
- spec/api/capability_translation_api_spec.rb
|
315
|
-
- spec/api/volume_safe_delete_api_spec.rb
|
316
317
|
- spec/api/storage_host_volume_mapping_api_spec.rb
|
318
|
+
- spec/api/snapshot_api_spec.rb
|
319
|
+
- spec/api/authentication_api_spec.rb
|
317
320
|
- spec/api/profile_api_spec.rb
|
318
|
-
- spec/api/
|
319
|
-
- spec/api/
|
320
|
-
- spec/api/
|
321
|
-
- spec/api/
|
322
|
-
- spec/api/host_api_spec.rb
|
321
|
+
- spec/api/storage_resource_api_spec.rb
|
322
|
+
- spec/api/capability_translation_api_spec.rb
|
323
|
+
- spec/api/storage_host_api_spec.rb
|
324
|
+
- spec/api/volume_safe_delete_api_spec.rb
|
323
325
|
- spec/api/address_api_spec.rb
|
324
|
-
- spec/api/
|
325
|
-
- spec/api/
|
326
|
+
- spec/api/auto_sde_role_api_spec.rb
|
327
|
+
- spec/api/host_api_spec.rb
|
326
328
|
- spec/api/account_api_spec.rb
|
327
|
-
- spec/api/
|
328
|
-
- spec/api/
|
329
|
-
- spec/api/
|
329
|
+
- spec/api/system_type_api_spec.rb
|
330
|
+
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
331
|
+
- spec/api/provisioning_strategy_api_spec.rb
|
332
|
+
- spec/api/job_api_spec.rb
|
333
|
+
- spec/api/auto_sde_project_api_spec.rb
|
334
|
+
- spec/api/volume_api_spec.rb
|
335
|
+
- spec/api/service_api_spec.rb
|
336
|
+
- spec/api/abstract_capability_api_spec.rb
|
330
337
|
- spec/api_client_spec.rb
|
331
338
|
- spec/configuration_spec.rb
|
332
|
-
- spec/models/
|
333
|
-
- spec/models/
|
334
|
-
- spec/models/
|
335
|
-
- spec/models/service_resource_attachment_spec.rb
|
336
|
-
- spec/models/storage_host_create_spec.rb
|
339
|
+
- spec/models/authentication_spec.rb
|
340
|
+
- spec/models/storage_host_response_spec.rb
|
341
|
+
- spec/models/service_create_spec.rb
|
337
342
|
- spec/models/abstract_capability_spec.rb
|
338
|
-
- spec/models/storage_host_update_spec.rb
|
339
|
-
- spec/models/storage_host_spec.rb
|
340
|
-
- spec/models/host_volume_connection_spec.rb
|
341
|
-
- spec/models/service_abstract_capability_value_spec.rb
|
342
|
-
- spec/models/job_spec.rb
|
343
|
-
- spec/models/profile_spec.rb
|
344
|
-
- spec/models/volume_safe_delete_create_spec.rb
|
345
|
-
- spec/models/capability_translation_spec.rb
|
346
|
-
- spec/models/job_create_spec.rb
|
347
|
-
- spec/models/volume_response_spec.rb
|
348
343
|
- spec/models/storage_resource_create_spec.rb
|
349
|
-
- spec/models/
|
344
|
+
- spec/models/snapshot_create_spec.rb
|
345
|
+
- spec/models/job_spec.rb
|
350
346
|
- spec/models/host_create_spec.rb
|
351
|
-
- spec/models/
|
352
|
-
- spec/models/
|
353
|
-
- spec/models/
|
354
|
-
- spec/models/service_spec.rb
|
355
|
-
- spec/models/storage_host_response_spec.rb
|
356
|
-
- spec/models/authentication_spec.rb
|
357
|
-
- spec/models/account_post_request_spec.rb
|
358
|
-
- spec/models/volume_create_spec.rb
|
359
|
-
- spec/models/account_post_response_spec.rb
|
360
|
-
- spec/models/storage_host_volume_mapping_response_spec.rb
|
361
|
-
- spec/models/storage_host_volume_mapping_create_spec.rb
|
347
|
+
- spec/models/volume_update_spec.rb
|
348
|
+
- spec/models/volume_spec.rb
|
349
|
+
- spec/models/volume_safe_delete_spec.rb
|
362
350
|
- spec/models/storage_resource_response_spec.rb
|
363
|
-
- spec/models/
|
351
|
+
- spec/models/volume_response_spec.rb
|
352
|
+
- spec/models/system_type_create_spec.rb
|
353
|
+
- spec/models/profile_spec.rb
|
354
|
+
- spec/models/capability_translation_create_spec.rb
|
364
355
|
- spec/models/snapshot_spec.rb
|
356
|
+
- spec/models/provisioning_strategy_spec.rb
|
357
|
+
- spec/models/service_spec.rb
|
358
|
+
- spec/models/host_volume_connection_spec.rb
|
365
359
|
- spec/models/auto_sde_role_spec.rb
|
366
|
-
- spec/models/
|
367
|
-
- spec/models/service_create_spec.rb
|
368
|
-
- spec/models/storage_host_volume_mapping_spec.rb
|
369
|
-
- spec/models/snapshot_create_spec.rb
|
360
|
+
- spec/models/host_spec.rb
|
370
361
|
- spec/models/host_volume_connection_create_spec.rb
|
362
|
+
- spec/models/account_post_request_spec.rb
|
371
363
|
- spec/models/storage_system_create_spec.rb
|
372
|
-
- spec/models/
|
364
|
+
- spec/models/auto_sde_project_spec.rb
|
365
|
+
- spec/models/job_create_spec.rb
|
366
|
+
- spec/models/storage_host_volume_mapping_create_spec.rb
|
367
|
+
- spec/models/service_resource_attachment_spec.rb
|
368
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
369
|
+
- spec/models/storage_resource_spec.rb
|
370
|
+
- spec/models/storage_host_spec.rb
|
371
|
+
- spec/models/storage_host_volume_mapping_response_spec.rb
|
372
|
+
- spec/models/volume_safe_delete_create_spec.rb
|
373
373
|
- spec/models/native_capability_spec.rb
|
374
|
-
- spec/models/
|
375
|
-
- spec/models/
|
376
|
-
- spec/models/account_spec.rb
|
377
|
-
- spec/models/volume_update_spec.rb
|
374
|
+
- spec/models/storage_host_update_spec.rb
|
375
|
+
- spec/models/address_create_spec.rb
|
378
376
|
- spec/models/system_type_spec.rb
|
377
|
+
- spec/models/account_post_response_spec.rb
|
378
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
379
|
+
- spec/models/address_spec.rb
|
380
|
+
- spec/models/storage_system_spec.rb
|
381
|
+
- spec/models/storage_host_volume_mapping_spec.rb
|
382
|
+
- spec/models/auth_response_spec.rb
|
383
|
+
- spec/models/storage_host_create_spec.rb
|
384
|
+
- spec/models/volume_create_spec.rb
|
385
|
+
- spec/models/capability_translation_spec.rb
|
386
|
+
- spec/models/account_spec.rb
|
379
387
|
- spec/spec_helper.rb
|