autosde_openapi_client 1.0.48 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -0
  3. data/docs/HostCluster.md +3 -1
  4. data/docs/HostClusterCreate.md +3 -1
  5. data/docs/HostClusterVolumeMapping.md +26 -0
  6. data/docs/HostClusterVolumeMappingApi.md +276 -0
  7. data/docs/HostClusterVolumeMappingCreate.md +24 -0
  8. data/docs/HostClusterVolumeMappingResponse.md +26 -0
  9. data/docs/SystemType.md +1 -1
  10. data/docs/SystemTypeCreate.md +1 -1
  11. data/docs/VolumeCreate.md +2 -0
  12. data/lib/autosde_openapi_client/api/host_cluster_volume_mapping_api.rb +254 -0
  13. data/lib/autosde_openapi_client/models/host_cluster.rb +13 -4
  14. data/lib/autosde_openapi_client/models/host_cluster_create.rb +13 -4
  15. data/lib/autosde_openapi_client/models/host_cluster_volume_mapping.rb +299 -0
  16. data/lib/autosde_openapi_client/models/host_cluster_volume_mapping_create.rb +291 -0
  17. data/lib/autosde_openapi_client/models/host_cluster_volume_mapping_response.rb +301 -0
  18. data/lib/autosde_openapi_client/models/storage_system.rb +0 -15
  19. data/lib/autosde_openapi_client/models/storage_system_create.rb +0 -15
  20. data/lib/autosde_openapi_client/models/system_type.rb +6 -6
  21. data/lib/autosde_openapi_client/models/system_type_create.rb +6 -6
  22. data/lib/autosde_openapi_client/models/volume_create.rb +13 -1
  23. data/lib/autosde_openapi_client/version.rb +2 -2
  24. data/lib/autosde_openapi_client.rb +4 -0
  25. data/spec/api/host_cluster_volume_mapping_api_spec.rb +74 -0
  26. data/spec/models/host_cluster_create_spec.rb +6 -0
  27. data/spec/models/host_cluster_spec.rb +6 -0
  28. data/spec/models/host_cluster_volume_mapping_create_spec.rb +56 -0
  29. data/spec/models/host_cluster_volume_mapping_response_spec.rb +62 -0
  30. data/spec/models/host_cluster_volume_mapping_spec.rb +62 -0
  31. data/spec/models/system_type_create_spec.rb +1 -1
  32. data/spec/models/system_type_spec.rb +1 -1
  33. data/spec/models/volume_create_spec.rb +6 -0
  34. metadata +83 -67
@@ -113,7 +113,7 @@ module AutosdeOpenapiClient
113
113
  if attributes.key?(:'name')
114
114
  self.name = attributes[:'name']
115
115
  else
116
- self.name = 'xiv'
116
+ self.name = 'FlashSystems/SVC'
117
117
  end
118
118
 
119
119
  if attributes.key?(:'short_version')
@@ -143,8 +143,8 @@ module AutosdeOpenapiClient
143
143
  invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
144
144
  end
145
145
 
146
- if !@name.nil? && @name.to_s.length > 10
147
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 10.')
146
+ if !@name.nil? && @name.to_s.length > 255
147
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
148
148
  end
149
149
 
150
150
  if !@short_version.nil? && @short_version.to_s.length > 255
@@ -160,9 +160,9 @@ module AutosdeOpenapiClient
160
160
  component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
161
161
  return false unless component_state_validator.valid?(@component_state)
162
162
  return false if !@component_state.nil? && @component_state.to_s.length > 32
163
- name_validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "svc"])
163
+ name_validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
164
164
  return false unless name_validator.valid?(@name)
165
- return false if !@name.nil? && @name.to_s.length > 10
165
+ return false if !@name.nil? && @name.to_s.length > 255
166
166
  return false if !@short_version.nil? && @short_version.to_s.length > 255
167
167
  true
168
168
  end
@@ -180,7 +180,7 @@ module AutosdeOpenapiClient
180
180
  # Custom attribute writer method checking allowed values (enum).
181
181
  # @param [Object] name Object to be assigned
182
182
  def name=(name)
183
- validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "svc"])
183
+ validator = EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
184
184
  unless validator.valid?(name)
185
185
  fail ArgumentError, "invalid value for \"name\", must be one of #{validator.allowable_values}."
186
186
  end
@@ -22,6 +22,9 @@ module AutosdeOpenapiClient
22
22
  # component_state
23
23
  attr_accessor :component_state
24
24
 
25
+ # count
26
+ attr_accessor :count
27
+
25
28
  # name
26
29
  attr_accessor :name
27
30
 
@@ -67,6 +70,7 @@ module AutosdeOpenapiClient
67
70
  {
68
71
  :'compliant' => :'compliant',
69
72
  :'component_state' => :'component_state',
73
+ :'count' => :'count',
70
74
  :'name' => :'name',
71
75
  :'service' => :'service',
72
76
  :'size' => :'size',
@@ -86,6 +90,7 @@ module AutosdeOpenapiClient
86
90
  {
87
91
  :'compliant' => :'Boolean',
88
92
  :'component_state' => :'String',
93
+ :'count' => :'Integer',
89
94
  :'name' => :'String',
90
95
  :'service' => :'String',
91
96
  :'size' => :'Integer',
@@ -126,6 +131,12 @@ module AutosdeOpenapiClient
126
131
  self.component_state = attributes[:'component_state']
127
132
  end
128
133
 
134
+ if attributes.key?(:'count')
135
+ self.count = attributes[:'count']
136
+ else
137
+ self.count = 1
138
+ end
139
+
129
140
  if attributes.key?(:'name')
130
141
  self.name = attributes[:'name']
131
142
  end
@@ -188,6 +199,7 @@ module AutosdeOpenapiClient
188
199
  self.class == o.class &&
189
200
  compliant == o.compliant &&
190
201
  component_state == o.component_state &&
202
+ count == o.count &&
191
203
  name == o.name &&
192
204
  service == o.service &&
193
205
  size == o.size &&
@@ -205,7 +217,7 @@ module AutosdeOpenapiClient
205
217
  # Calculates hash code according to all attributes.
206
218
  # @return [Integer] Hash code
207
219
  def hash
208
- [compliant, component_state, name, service, size, status, unmapped_since, uuid].hash
220
+ [compliant, component_state, count, name, service, size, status, unmapped_since, uuid].hash
209
221
  end
210
222
 
211
223
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.0.48
6
+ The version of the OpenAPI document: 1.0.0
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.48'
14
+ VERSION = '1.1.0'
15
15
  end
@@ -33,6 +33,9 @@ require 'autosde_openapi_client/models/host'
33
33
  require 'autosde_openapi_client/models/host_cluster'
34
34
  require 'autosde_openapi_client/models/host_cluster_create'
35
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'
36
39
  require 'autosde_openapi_client/models/host_create'
37
40
  require 'autosde_openapi_client/models/host_volume_connection'
38
41
  require 'autosde_openapi_client/models/host_volume_connection_create'
@@ -81,6 +84,7 @@ require 'autosde_openapi_client/api/capability_translation_api'
81
84
  require 'autosde_openapi_client/api/host_api'
82
85
  require 'autosde_openapi_client/api/host_cluster_api'
83
86
  require 'autosde_openapi_client/api/host_cluster_membership_api'
87
+ require 'autosde_openapi_client/api/host_cluster_volume_mapping_api'
84
88
  require 'autosde_openapi_client/api/host_volume_connection_api'
85
89
  require 'autosde_openapi_client/api/job_api'
86
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::HostClusterVolumeMappingApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'HostClusterVolumeMappingApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = AutosdeOpenapiClient::HostClusterVolumeMappingApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of HostClusterVolumeMappingApi' do
30
+ it 'should create an instance of HostClusterVolumeMappingApi' do
31
+ expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::HostClusterVolumeMappingApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for host_clusters_mapping_get
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<HostClusterVolumeMappingResponse>]
38
+ describe 'host_clusters_mapping_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_mapping_pk_delete
45
+ # @param pk
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [Array<HostClusterVolumeMappingResponse>]
48
+ describe 'host_clusters_mapping_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_mapping_pk_get
55
+ # @param pk
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [Array<HostClusterVolumeMappingResponse>]
58
+ describe 'host_clusters_mapping_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_mapping_post
65
+ # @param host_cluster_volume_mapping_create
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [HostClusterVolumeMapping]
68
+ describe 'host_clusters_mapping_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
@@ -61,4 +61,10 @@ describe AutosdeOpenapiClient::HostClusterCreate do
61
61
  end
62
62
  end
63
63
 
64
+ describe 'test attribute "volumes"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
64
70
  end
@@ -77,4 +77,10 @@ describe AutosdeOpenapiClient::HostCluster do
77
77
  end
78
78
  end
79
79
 
80
+ describe 'test attribute "volumes"' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
+ end
84
+ end
85
+
80
86
  end
@@ -0,0 +1,56 @@
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::HostClusterVolumeMappingCreate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::HostClusterVolumeMappingCreate do
21
+ let(:instance) { AutosdeOpenapiClient::HostClusterVolumeMappingCreate.new }
22
+
23
+ describe 'test an instance of HostClusterVolumeMappingCreate' do
24
+ it 'should create an instance of HostClusterVolumeMappingCreate' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterVolumeMappingCreate)
26
+ end
27
+ end
28
+ describe 'test attribute "cluster"' 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 "component_state"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
38
+ # validator.allowable_values.each do |value|
39
+ # expect { instance.component_state = value }.not_to raise_error
40
+ # end
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "lun"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "volume"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ end
@@ -0,0 +1,62 @@
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::HostClusterVolumeMappingResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::HostClusterVolumeMappingResponse do
21
+ let(:instance) { AutosdeOpenapiClient::HostClusterVolumeMappingResponse.new }
22
+
23
+ describe 'test an instance of HostClusterVolumeMappingResponse' do
24
+ it 'should create an instance of HostClusterVolumeMappingResponse' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterVolumeMappingResponse)
26
+ end
27
+ end
28
+ describe 'test attribute "cluster"' 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 "component_state"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
38
+ # validator.allowable_values.each do |value|
39
+ # expect { instance.component_state = value }.not_to raise_error
40
+ # end
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "lun"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "uuid"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "volume"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ end
@@ -0,0 +1,62 @@
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::HostClusterVolumeMapping
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::HostClusterVolumeMapping do
21
+ let(:instance) { AutosdeOpenapiClient::HostClusterVolumeMapping.new }
22
+
23
+ describe 'test an instance of HostClusterVolumeMapping' do
24
+ it 'should create an instance of HostClusterVolumeMapping' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterVolumeMapping)
26
+ end
27
+ end
28
+ describe 'test attribute "cluster"' 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 "component_state"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
38
+ # validator.allowable_values.each do |value|
39
+ # expect { instance.component_state = value }.not_to raise_error
40
+ # end
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "lun"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "uuid"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "volume"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ end
@@ -38,7 +38,7 @@ describe AutosdeOpenapiClient::SystemTypeCreate do
38
38
  describe 'test attribute "name"' do
39
39
  it 'should work' do
40
40
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "svc"])
41
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
42
42
  # validator.allowable_values.each do |value|
43
43
  # expect { instance.name = value }.not_to raise_error
44
44
  # end
@@ -38,7 +38,7 @@ describe AutosdeOpenapiClient::SystemType do
38
38
  describe 'test attribute "name"' do
39
39
  it 'should work' do
40
40
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "svc"])
41
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00", "FlashSystems/SVC"])
42
42
  # validator.allowable_values.each do |value|
43
43
  # expect { instance.name = value }.not_to raise_error
44
44
  # end
@@ -41,6 +41,12 @@ describe AutosdeOpenapiClient::VolumeCreate do
41
41
  end
42
42
  end
43
43
 
44
+ describe 'test attribute "count"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
44
50
  describe 'test attribute "name"' do
45
51
  it 'should work' do
46
52
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers