autosde_openapi_client 1.0.46 → 1.0.50

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -0
  3. data/docs/HostCluster.md +34 -0
  4. data/docs/HostClusterApi.md +276 -0
  5. data/docs/HostClusterCreate.md +30 -0
  6. data/docs/HostClusterMembership.md +24 -0
  7. data/docs/HostClusterMembershipApi.md +276 -0
  8. data/docs/HostClusterVolumeMapping.md +26 -0
  9. data/docs/HostClusterVolumeMappingApi.md +276 -0
  10. data/docs/HostClusterVolumeMappingCreate.md +24 -0
  11. data/docs/HostClusterVolumeMappingResponse.md +26 -0
  12. data/docs/VolumeCreate.md +2 -0
  13. data/lib/autosde_openapi_client/api/host_cluster_api.rb +254 -0
  14. data/lib/autosde_openapi_client/api/host_cluster_membership_api.rb +254 -0
  15. data/lib/autosde_openapi_client/api/host_cluster_volume_mapping_api.rb +254 -0
  16. data/lib/autosde_openapi_client/models/host_cluster.rb +397 -0
  17. data/lib/autosde_openapi_client/models/host_cluster_create.rb +338 -0
  18. data/lib/autosde_openapi_client/models/host_cluster_membership.rb +287 -0
  19. data/lib/autosde_openapi_client/models/host_cluster_volume_mapping.rb +299 -0
  20. data/lib/autosde_openapi_client/models/host_cluster_volume_mapping_create.rb +291 -0
  21. data/lib/autosde_openapi_client/models/host_cluster_volume_mapping_response.rb +301 -0
  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 +9 -0
  25. data/spec/api/host_cluster_api_spec.rb +74 -0
  26. data/spec/api/host_cluster_membership_api_spec.rb +74 -0
  27. data/spec/api/host_cluster_volume_mapping_api_spec.rb +74 -0
  28. data/spec/models/host_cluster_create_spec.rb +70 -0
  29. data/spec/models/host_cluster_membership_spec.rb +56 -0
  30. data/spec/models/host_cluster_spec.rb +86 -0
  31. data/spec/models/host_cluster_volume_mapping_create_spec.rb +56 -0
  32. data/spec/models/host_cluster_volume_mapping_response_spec.rb +62 -0
  33. data/spec/models/host_cluster_volume_mapping_spec.rb +62 -0
  34. data/spec/models/volume_create_spec.rb +6 -0
  35. metadata +91 -55
@@ -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.46
6
+ The version of the OpenAPI document: 1.0.50
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.46'
14
+ VERSION = '1.0.50'
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'
@@ -76,6 +82,9 @@ require 'autosde_openapi_client/api/auto_sde_project_api'
76
82
  require 'autosde_openapi_client/api/auto_sde_role_api'
77
83
  require 'autosde_openapi_client/api/capability_translation_api'
78
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'
79
88
  require 'autosde_openapi_client/api/host_volume_connection_api'
80
89
  require 'autosde_openapi_client/api/job_api'
81
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
@@ -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
@@ -0,0 +1,70 @@
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::HostClusterCreate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::HostClusterCreate do
21
+ let(:instance) { AutosdeOpenapiClient::HostClusterCreate.new }
22
+
23
+ describe 'test an instance of HostClusterCreate' do
24
+ it 'should create an instance of HostClusterCreate' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterCreate)
26
+ end
27
+ end
28
+ describe 'test attribute "name"' 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 "owner_id"' 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 "owner_name"' 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 "protocol"' 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 "status"' 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
+ describe 'test attribute "storage_system"' 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
+ 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
+
70
+ 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::HostClusterMembership
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::HostClusterMembership do
21
+ let(:instance) { AutosdeOpenapiClient::HostClusterMembership.new }
22
+
23
+ describe 'test an instance of HostClusterMembership' do
24
+ it 'should create an instance of HostClusterMembership' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::HostClusterMembership)
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 "host"' 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
+ end