autosde_openapi_client 1.0.45 → 1.0.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -0
- data/docs/HostCluster.md +34 -0
- data/docs/HostClusterApi.md +276 -0
- data/docs/HostClusterCreate.md +30 -0
- data/docs/HostClusterMembership.md +24 -0
- data/docs/HostClusterMembershipApi.md +276 -0
- data/docs/HostClusterVolumeMapping.md +26 -0
- data/docs/HostClusterVolumeMappingApi.md +276 -0
- data/docs/HostClusterVolumeMappingCreate.md +24 -0
- data/docs/HostClusterVolumeMappingResponse.md +26 -0
- data/docs/StorageSystemApi.md +6 -6
- data/docs/StorageSystemUpdate.md +24 -0
- data/lib/autosde_openapi_client/api/host_cluster_api.rb +254 -0
- data/lib/autosde_openapi_client/api/host_cluster_membership_api.rb +254 -0
- data/lib/autosde_openapi_client/api/host_cluster_volume_mapping_api.rb +254 -0
- data/lib/autosde_openapi_client/api/storage_system_api.rb +9 -9
- data/lib/autosde_openapi_client/models/host_cluster.rb +397 -0
- data/lib/autosde_openapi_client/models/host_cluster_create.rb +338 -0
- data/lib/autosde_openapi_client/models/host_cluster_membership.rb +287 -0
- data/lib/autosde_openapi_client/models/host_cluster_volume_mapping.rb +299 -0
- data/lib/autosde_openapi_client/models/host_cluster_volume_mapping_create.rb +291 -0
- data/lib/autosde_openapi_client/models/host_cluster_volume_mapping_response.rb +301 -0
- data/lib/autosde_openapi_client/models/storage_system_update.rb +265 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +10 -0
- data/spec/api/host_cluster_api_spec.rb +74 -0
- data/spec/api/host_cluster_membership_api_spec.rb +74 -0
- data/spec/api/host_cluster_volume_mapping_api_spec.rb +74 -0
- data/spec/api/storage_system_api_spec.rb +1 -1
- data/spec/models/host_cluster_create_spec.rb +70 -0
- data/spec/models/host_cluster_membership_spec.rb +56 -0
- data/spec/models/host_cluster_spec.rb +86 -0
- data/spec/models/host_cluster_volume_mapping_create_spec.rb +56 -0
- data/spec/models/host_cluster_volume_mapping_response_spec.rb +62 -0
- data/spec/models/host_cluster_volume_mapping_spec.rb +62 -0
- data/spec/models/storage_system_update_spec.rb +52 -0
- metadata +94 -54
@@ -0,0 +1,265 @@
|
|
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 StorageSystemUpdate
|
19
|
+
# management_ip
|
20
|
+
attr_accessor :management_ip
|
21
|
+
|
22
|
+
# name
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
# password
|
26
|
+
attr_accessor :password
|
27
|
+
|
28
|
+
# user
|
29
|
+
attr_accessor :user
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'management_ip' => :'management_ip',
|
35
|
+
:'name' => :'name',
|
36
|
+
:'password' => :'password',
|
37
|
+
:'user' => :'user'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Returns all the JSON keys this model knows about
|
42
|
+
def self.acceptable_attributes
|
43
|
+
attribute_map.values
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute type mapping.
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'management_ip' => :'String',
|
50
|
+
:'name' => :'String',
|
51
|
+
:'password' => :'String',
|
52
|
+
:'user' => :'String'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# List of attributes with nullable: true
|
57
|
+
def self.openapi_nullable
|
58
|
+
Set.new([
|
59
|
+
])
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::StorageSystemUpdate` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::StorageSystemUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'management_ip')
|
78
|
+
self.management_ip = attributes[:'management_ip']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'name')
|
82
|
+
self.name = attributes[:'name']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'password')
|
86
|
+
self.password = attributes[:'password']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'user')
|
90
|
+
self.user = attributes[:'user']
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
95
|
+
# @return Array for valid properties with the reasons
|
96
|
+
def list_invalid_properties
|
97
|
+
invalid_properties = Array.new
|
98
|
+
if !@name.nil? && @name.to_s.length > 15
|
99
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 15.')
|
100
|
+
end
|
101
|
+
|
102
|
+
invalid_properties
|
103
|
+
end
|
104
|
+
|
105
|
+
# Check to see if the all the properties in the model are valid
|
106
|
+
# @return true if the model is valid
|
107
|
+
def valid?
|
108
|
+
return false if !@name.nil? && @name.to_s.length > 15
|
109
|
+
true
|
110
|
+
end
|
111
|
+
|
112
|
+
# Custom attribute writer method with validation
|
113
|
+
# @param [Object] name Value to be assigned
|
114
|
+
def name=(name)
|
115
|
+
if !name.nil? && name.to_s.length > 15
|
116
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 15.'
|
117
|
+
end
|
118
|
+
|
119
|
+
@name = name
|
120
|
+
end
|
121
|
+
|
122
|
+
# Checks equality by comparing each attribute.
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def ==(o)
|
125
|
+
return true if self.equal?(o)
|
126
|
+
self.class == o.class &&
|
127
|
+
management_ip == o.management_ip &&
|
128
|
+
name == o.name &&
|
129
|
+
password == o.password &&
|
130
|
+
user == o.user
|
131
|
+
end
|
132
|
+
|
133
|
+
# @see the `==` method
|
134
|
+
# @param [Object] Object to be compared
|
135
|
+
def eql?(o)
|
136
|
+
self == o
|
137
|
+
end
|
138
|
+
|
139
|
+
# Calculates hash code according to all attributes.
|
140
|
+
# @return [Integer] Hash code
|
141
|
+
def hash
|
142
|
+
[management_ip, name, password, user].hash
|
143
|
+
end
|
144
|
+
|
145
|
+
# Builds the object from hash
|
146
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
147
|
+
# @return [Object] Returns the model itself
|
148
|
+
def self.build_from_hash(attributes)
|
149
|
+
new.build_from_hash(attributes)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Builds the object from hash
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
154
|
+
# @return [Object] Returns the model itself
|
155
|
+
def build_from_hash(attributes)
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
157
|
+
self.class.openapi_types.each_pair do |key, type|
|
158
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
159
|
+
self.send("#{key}=", nil)
|
160
|
+
elsif type =~ /\AArray<(.*)>/i
|
161
|
+
# check to ensure the input is an array given that the attribute
|
162
|
+
# is documented as an array but the input is not
|
163
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
164
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
165
|
+
end
|
166
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
167
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
self
|
172
|
+
end
|
173
|
+
|
174
|
+
# Deserializes the data based on type
|
175
|
+
# @param string type Data type
|
176
|
+
# @param string value Value to be deserialized
|
177
|
+
# @return [Object] Deserialized data
|
178
|
+
def _deserialize(type, value)
|
179
|
+
case type.to_sym
|
180
|
+
when :Time
|
181
|
+
Time.parse(value)
|
182
|
+
when :Date
|
183
|
+
Date.parse(value)
|
184
|
+
when :String
|
185
|
+
value.to_s
|
186
|
+
when :Integer
|
187
|
+
value.to_i
|
188
|
+
when :Float
|
189
|
+
value.to_f
|
190
|
+
when :Boolean
|
191
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
192
|
+
true
|
193
|
+
else
|
194
|
+
false
|
195
|
+
end
|
196
|
+
when :Object
|
197
|
+
# generic object (usually a Hash), return directly
|
198
|
+
value
|
199
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
200
|
+
inner_type = Regexp.last_match[:inner_type]
|
201
|
+
value.map { |v| _deserialize(inner_type, v) }
|
202
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
203
|
+
k_type = Regexp.last_match[:k_type]
|
204
|
+
v_type = Regexp.last_match[:v_type]
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each do |k, v|
|
207
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
else # model
|
211
|
+
# models (e.g. Pet) or oneOf
|
212
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
213
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
# Returns the string representation of the object
|
218
|
+
# @return [String] String presentation of the object
|
219
|
+
def to_s
|
220
|
+
to_hash.to_s
|
221
|
+
end
|
222
|
+
|
223
|
+
# to_body is an alias to to_hash (backward compatibility)
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
225
|
+
def to_body
|
226
|
+
to_hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Returns the object in the form of hash
|
230
|
+
# @return [Hash] Returns the object in the form of hash
|
231
|
+
def to_hash
|
232
|
+
hash = {}
|
233
|
+
self.class.attribute_map.each_pair do |attr, param|
|
234
|
+
value = self.send(attr)
|
235
|
+
if value.nil?
|
236
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
237
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
238
|
+
end
|
239
|
+
|
240
|
+
hash[param] = _to_hash(value)
|
241
|
+
end
|
242
|
+
hash
|
243
|
+
end
|
244
|
+
|
245
|
+
# Outputs non-array value in the form of hash
|
246
|
+
# For object, use to_hash. Otherwise, just return the value
|
247
|
+
# @param [Object] value Any valid value
|
248
|
+
# @return [Hash] Returns the value in the form of hash
|
249
|
+
def _to_hash(value)
|
250
|
+
if value.is_a?(Array)
|
251
|
+
value.compact.map { |v| _to_hash(v) }
|
252
|
+
elsif value.is_a?(Hash)
|
253
|
+
{}.tap do |hash|
|
254
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
255
|
+
end
|
256
|
+
elsif value.respond_to? :to_hash
|
257
|
+
value.to_hash
|
258
|
+
else
|
259
|
+
value
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
end
|
264
|
+
|
265
|
+
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.49
|
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.49'
|
15
15
|
end
|
@@ -30,6 +30,12 @@ require 'autosde_openapi_client/models/auto_sde_role'
|
|
30
30
|
require 'autosde_openapi_client/models/capability_translation'
|
31
31
|
require 'autosde_openapi_client/models/capability_translation_create'
|
32
32
|
require 'autosde_openapi_client/models/host'
|
33
|
+
require 'autosde_openapi_client/models/host_cluster'
|
34
|
+
require 'autosde_openapi_client/models/host_cluster_create'
|
35
|
+
require 'autosde_openapi_client/models/host_cluster_membership'
|
36
|
+
require 'autosde_openapi_client/models/host_cluster_volume_mapping'
|
37
|
+
require 'autosde_openapi_client/models/host_cluster_volume_mapping_create'
|
38
|
+
require 'autosde_openapi_client/models/host_cluster_volume_mapping_response'
|
33
39
|
require 'autosde_openapi_client/models/host_create'
|
34
40
|
require 'autosde_openapi_client/models/host_volume_connection'
|
35
41
|
require 'autosde_openapi_client/models/host_volume_connection_create'
|
@@ -57,6 +63,7 @@ require 'autosde_openapi_client/models/storage_resource_create'
|
|
57
63
|
require 'autosde_openapi_client/models/storage_resource_response'
|
58
64
|
require 'autosde_openapi_client/models/storage_system'
|
59
65
|
require 'autosde_openapi_client/models/storage_system_create'
|
66
|
+
require 'autosde_openapi_client/models/storage_system_update'
|
60
67
|
require 'autosde_openapi_client/models/system_type'
|
61
68
|
require 'autosde_openapi_client/models/system_type_create'
|
62
69
|
require 'autosde_openapi_client/models/volume'
|
@@ -75,6 +82,9 @@ require 'autosde_openapi_client/api/auto_sde_project_api'
|
|
75
82
|
require 'autosde_openapi_client/api/auto_sde_role_api'
|
76
83
|
require 'autosde_openapi_client/api/capability_translation_api'
|
77
84
|
require 'autosde_openapi_client/api/host_api'
|
85
|
+
require 'autosde_openapi_client/api/host_cluster_api'
|
86
|
+
require 'autosde_openapi_client/api/host_cluster_membership_api'
|
87
|
+
require 'autosde_openapi_client/api/host_cluster_volume_mapping_api'
|
78
88
|
require 'autosde_openapi_client/api/host_volume_connection_api'
|
79
89
|
require 'autosde_openapi_client/api/job_api'
|
80
90
|
require 'autosde_openapi_client/api/native_capability_api'
|
@@ -0,0 +1,74 @@
|
|
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::HostClusterApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'HostClusterApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = AutosdeOpenapiClient::HostClusterApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of HostClusterApi' do
|
30
|
+
it 'should create an instance of HostClusterApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::HostClusterApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for host_clusters_get
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<HostCluster>]
|
38
|
+
describe 'host_clusters_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
|
+
# unit tests for host_clusters_pk_delete
|
45
|
+
# @param pk
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @return [Array<HostCluster>]
|
48
|
+
describe 'host_clusters_pk_delete test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for host_clusters_pk_get
|
55
|
+
# @param pk
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @return [Array<HostCluster>]
|
58
|
+
describe 'host_clusters_pk_get test' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# unit tests for host_clusters_post
|
65
|
+
# @param host_cluster_create
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @return [HostCluster]
|
68
|
+
describe 'host_clusters_post test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
@@ -0,0 +1,74 @@
|
|
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::HostClusterMembershipApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'HostClusterMembershipApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = AutosdeOpenapiClient::HostClusterMembershipApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of HostClusterMembershipApi' do
|
30
|
+
it 'should create an instance of HostClusterMembershipApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::HostClusterMembershipApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for host_cluster_membership_get
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<HostClusterMembership>]
|
38
|
+
describe 'host_cluster_membership_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
|
+
# unit tests for host_cluster_membership_pk_delete
|
45
|
+
# @param pk
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @return [Array<HostClusterMembership>]
|
48
|
+
describe 'host_cluster_membership_pk_delete test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for host_cluster_membership_pk_get
|
55
|
+
# @param pk
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @return [Array<HostClusterMembership>]
|
58
|
+
describe 'host_cluster_membership_pk_get test' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# unit tests for host_cluster_membership_post
|
65
|
+
# @param host_cluster_membership
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @return [HostClusterMembership]
|
68
|
+
describe 'host_cluster_membership_post test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|