ibm_cloud_power 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +68 -0
  3. data/LICENSE.txt +202 -0
  4. data/README.md +56 -10
  5. data/docs/CloudConnection.md +41 -0
  6. data/docs/CloudConnectionCreate.md +23 -0
  7. data/docs/CloudConnectionEndpointClassic.md +19 -0
  8. data/docs/CloudConnectionEndpointGRE.md +19 -0
  9. data/docs/CloudConnectionEndpointVPC.md +19 -0
  10. data/docs/CloudConnectionGRETunnel.md +21 -0
  11. data/docs/CloudConnectionSpeed.md +16 -0
  12. data/docs/CloudConnectionUpdate.md +27 -0
  13. data/docs/CloudConnectionVPC.md +19 -0
  14. data/docs/CloudConnectionVirtualPrivateClouds.md +17 -0
  15. data/docs/CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md +23 -0
  16. data/docs/CloudConnections.md +17 -0
  17. data/docs/CreateDataVolume.md +6 -6
  18. data/docs/CreateImage.md +3 -3
  19. data/docs/Image.md +2 -0
  20. data/docs/ImageReference.md +2 -0
  21. data/docs/MaximumStorageAllocation.md +21 -0
  22. data/docs/MultiVolumesCreate.md +6 -4
  23. data/docs/Network.md +1 -1
  24. data/docs/NetworkPort.md +2 -0
  25. data/docs/NetworkReference.md +1 -1
  26. data/docs/PCloudCloudConnectionsApi.md +394 -0
  27. data/docs/PCloudEventsApi.md +2 -2
  28. data/docs/PCloudImagesApi.md +104 -6
  29. data/docs/PCloudPVMInstancesApi.md +60 -5
  30. data/docs/PCloudPlacementGroupsApi.md +298 -0
  31. data/docs/PCloudStorageCapacityApi.md +196 -0
  32. data/docs/PCloudVolumesApi.md +344 -0
  33. data/docs/PVMInstance.md +3 -1
  34. data/docs/PVMInstanceCreate.md +5 -3
  35. data/docs/PlacementGroup.md +23 -0
  36. data/docs/PlacementGroupCreate.md +19 -0
  37. data/docs/PlacementGroupServer.md +17 -0
  38. data/docs/PlacementGroups.md +17 -0
  39. data/docs/SAPCreate.md +1 -1
  40. data/docs/StoragePoolCapacity.md +23 -0
  41. data/docs/StoragePoolsCapacity.md +19 -0
  42. data/docs/StorageTypeCapacity.md +21 -0
  43. data/docs/StorageTypesCapacity.md +19 -0
  44. data/docs/Volume.md +2 -0
  45. data/docs/VolumeReference.md +2 -0
  46. data/docs/VolumesCloneAsyncRequest.md +1 -1
  47. data/docs/VolumesCloneCancel.md +1 -1
  48. data/docs/VolumesCloneDetail.md +1 -1
  49. data/docs/VolumesCloneExecute.md +1 -1
  50. data/lib/ibm_cloud_power.rb +24 -0
  51. data/lib/ibm_cloud_power/api/p_cloud_cloud_connections_api.rb +560 -0
  52. data/lib/ibm_cloud_power/api/p_cloud_events_api.rb +2 -2
  53. data/lib/ibm_cloud_power/api/p_cloud_images_api.rb +133 -4
  54. data/lib/ibm_cloud_power/api/p_cloud_placement_groups_api.rb +430 -0
  55. data/lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb +82 -5
  56. data/lib/ibm_cloud_power/api/p_cloud_storage_capacity_api.rb +274 -0
  57. data/lib/ibm_cloud_power/api/p_cloud_volumes_api.rb +477 -0
  58. data/lib/ibm_cloud_power/models/cloud_connection.rb +379 -0
  59. data/lib/ibm_cloud_power/models/cloud_connection_create.rb +249 -0
  60. data/lib/ibm_cloud_power/models/cloud_connection_endpoint_classic.rb +218 -0
  61. data/lib/ibm_cloud_power/models/cloud_connection_endpoint_gre.rb +221 -0
  62. data/lib/ibm_cloud_power/models/cloud_connection_endpoint_vpc.rb +221 -0
  63. data/lib/ibm_cloud_power/models/cloud_connection_gre_tunnel.rb +239 -0
  64. data/lib/ibm_cloud_power/models/cloud_connection_speed.rb +42 -0
  65. data/lib/ibm_cloud_power/models/cloud_connection_update.rb +257 -0
  66. data/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds.rb +216 -0
  67. data/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds_virtual_private_clouds.rb +259 -0
  68. data/lib/ibm_cloud_power/models/cloud_connection_vpc.rb +224 -0
  69. data/lib/ibm_cloud_power/models/cloud_connections.rb +216 -0
  70. data/lib/ibm_cloud_power/models/create_data_volume.rb +17 -17
  71. data/lib/ibm_cloud_power/models/create_image.rb +3 -3
  72. data/lib/ibm_cloud_power/models/image.rb +16 -1
  73. data/lib/ibm_cloud_power/models/image_reference.rb +16 -1
  74. data/lib/ibm_cloud_power/models/maximum_storage_allocation.rb +245 -0
  75. data/lib/ibm_cloud_power/models/multi_volumes_create.rb +17 -7
  76. data/lib/ibm_cloud_power/models/network.rb +1 -1
  77. data/lib/ibm_cloud_power/models/network_port.rb +11 -1
  78. data/lib/ibm_cloud_power/models/network_reference.rb +1 -1
  79. data/lib/ibm_cloud_power/models/placement_group.rb +295 -0
  80. data/lib/ibm_cloud_power/models/placement_group_create.rb +263 -0
  81. data/lib/ibm_cloud_power/models/placement_group_server.rb +214 -0
  82. data/lib/ibm_cloud_power/models/placement_groups.rb +216 -0
  83. data/lib/ibm_cloud_power/models/pvm_instance.rb +17 -5
  84. data/lib/ibm_cloud_power/models/pvm_instance_create.rb +16 -6
  85. data/lib/ibm_cloud_power/models/pvm_instance_reference.rb +2 -2
  86. data/lib/ibm_cloud_power/models/sap_create.rb +1 -1
  87. data/lib/ibm_cloud_power/models/storage_pool_capacity.rb +245 -0
  88. data/lib/ibm_cloud_power/models/storage_pools_capacity.rb +220 -0
  89. data/lib/ibm_cloud_power/models/storage_type_capacity.rb +231 -0
  90. data/lib/ibm_cloud_power/models/storage_types_capacity.rb +220 -0
  91. data/lib/ibm_cloud_power/models/volume.rb +11 -1
  92. data/lib/ibm_cloud_power/models/volume_reference.rb +11 -1
  93. data/lib/ibm_cloud_power/models/volumes_clone_async_request.rb +1 -1
  94. data/lib/ibm_cloud_power/models/volumes_clone_cancel.rb +1 -1
  95. data/lib/ibm_cloud_power/models/volumes_clone_detail.rb +1 -1
  96. data/lib/ibm_cloud_power/models/volumes_clone_execute.rb +1 -1
  97. data/lib/ibm_cloud_power/version.rb +1 -1
  98. data/spec/api/p_cloud_cloud_connections_api_spec.rb +132 -0
  99. data/spec/api/p_cloud_placement_groups_api_spec.rb +108 -0
  100. data/spec/api/p_cloud_storage_capacity_api_spec.rb +81 -0
  101. data/spec/models/cloud_connection_create_spec.rb +59 -0
  102. data/spec/models/cloud_connection_endpoint_classic_spec.rb +47 -0
  103. data/spec/models/cloud_connection_endpoint_gre_spec.rb +47 -0
  104. data/spec/models/cloud_connection_endpoint_vpc_spec.rb +47 -0
  105. data/spec/models/cloud_connection_gre_tunnel_spec.rb +53 -0
  106. data/spec/models/cloud_connection_spec.rb +113 -0
  107. data/spec/models/cloud_connection_speed_spec.rb +35 -0
  108. data/spec/models/cloud_connection_update_spec.rb +71 -0
  109. data/spec/models/cloud_connection_virtual_private_clouds_spec.rb +41 -0
  110. data/spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb +59 -0
  111. data/spec/models/cloud_connection_vpc_spec.rb +47 -0
  112. data/spec/models/cloud_connections_spec.rb +41 -0
  113. data/spec/models/maximum_storage_allocation_spec.rb +53 -0
  114. data/spec/models/placement_group_create_spec.rb +51 -0
  115. data/spec/models/placement_group_server_spec.rb +41 -0
  116. data/spec/models/placement_group_spec.rb +63 -0
  117. data/spec/models/placement_groups_spec.rb +41 -0
  118. data/spec/models/storage_pool_capacity_spec.rb +59 -0
  119. data/spec/models/storage_pools_capacity_spec.rb +47 -0
  120. data/spec/models/storage_type_capacity_spec.rb +53 -0
  121. data/spec/models/storage_types_capacity_spec.rb +47 -0
  122. metadata +130 -32
@@ -41,6 +41,9 @@ module IbmCloudPower
41
41
  # Type of Disk
42
42
  attr_accessor :disk_type
43
43
 
44
+ # Volume type, name of storage template used to create the volume
45
+ attr_accessor :volume_type
46
+
44
47
  # Volume world wide name
45
48
  attr_accessor :wwn
46
49
 
@@ -65,6 +68,7 @@ module IbmCloudPower
65
68
  :'boot_volume' => :'bootVolume',
66
69
  :'delete_on_termination' => :'deleteOnTermination',
67
70
  :'disk_type' => :'diskType',
71
+ :'volume_type' => :'volumeType',
68
72
  :'wwn' => :'wwn',
69
73
  :'creation_date' => :'creationDate',
70
74
  :'last_update_date' => :'lastUpdateDate',
@@ -84,6 +88,7 @@ module IbmCloudPower
84
88
  :'boot_volume' => :'Boolean',
85
89
  :'delete_on_termination' => :'Boolean',
86
90
  :'disk_type' => :'String',
91
+ :'volume_type' => :'String',
87
92
  :'wwn' => :'String',
88
93
  :'creation_date' => :'DateTime',
89
94
  :'last_update_date' => :'DateTime',
@@ -148,6 +153,10 @@ module IbmCloudPower
148
153
  self.disk_type = attributes[:'disk_type']
149
154
  end
150
155
 
156
+ if attributes.key?(:'volume_type')
157
+ self.volume_type = attributes[:'volume_type']
158
+ end
159
+
151
160
  if attributes.key?(:'wwn')
152
161
  self.wwn = attributes[:'wwn']
153
162
  end
@@ -219,6 +228,7 @@ module IbmCloudPower
219
228
  boot_volume == o.boot_volume &&
220
229
  delete_on_termination == o.delete_on_termination &&
221
230
  disk_type == o.disk_type &&
231
+ volume_type == o.volume_type &&
222
232
  wwn == o.wwn &&
223
233
  creation_date == o.creation_date &&
224
234
  last_update_date == o.last_update_date &&
@@ -234,7 +244,7 @@ module IbmCloudPower
234
244
  # Calculates hash code according to all attributes.
235
245
  # @return [Integer] Hash code
236
246
  def hash
237
- [volume_id, name, state, size, shareable, bootable, boot_volume, delete_on_termination, disk_type, wwn, creation_date, last_update_date, pvm_instance_i_ds].hash
247
+ [volume_id, name, state, size, shareable, bootable, boot_volume, delete_on_termination, disk_type, volume_type, wwn, creation_date, last_update_date, pvm_instance_i_ds].hash
238
248
  end
239
249
 
240
250
  # Builds the object from hash
@@ -41,6 +41,9 @@ module IbmCloudPower
41
41
  # Type of Disk
42
42
  attr_accessor :disk_type
43
43
 
44
+ # Volume type, name of storage template used to create the volume
45
+ attr_accessor :volume_type
46
+
44
47
  # Volume world wide name
45
48
  attr_accessor :wwn
46
49
 
@@ -68,6 +71,7 @@ module IbmCloudPower
68
71
  :'boot_volume' => :'bootVolume',
69
72
  :'delete_on_termination' => :'deleteOnTermination',
70
73
  :'disk_type' => :'diskType',
74
+ :'volume_type' => :'volumeType',
71
75
  :'wwn' => :'wwn',
72
76
  :'creation_date' => :'creationDate',
73
77
  :'last_update_date' => :'lastUpdateDate',
@@ -88,6 +92,7 @@ module IbmCloudPower
88
92
  :'boot_volume' => :'Boolean',
89
93
  :'delete_on_termination' => :'Boolean',
90
94
  :'disk_type' => :'String',
95
+ :'volume_type' => :'String',
91
96
  :'wwn' => :'String',
92
97
  :'creation_date' => :'DateTime',
93
98
  :'last_update_date' => :'DateTime',
@@ -153,6 +158,10 @@ module IbmCloudPower
153
158
  self.disk_type = attributes[:'disk_type']
154
159
  end
155
160
 
161
+ if attributes.key?(:'volume_type')
162
+ self.volume_type = attributes[:'volume_type']
163
+ end
164
+
156
165
  if attributes.key?(:'wwn')
157
166
  self.wwn = attributes[:'wwn']
158
167
  end
@@ -258,6 +267,7 @@ module IbmCloudPower
258
267
  boot_volume == o.boot_volume &&
259
268
  delete_on_termination == o.delete_on_termination &&
260
269
  disk_type == o.disk_type &&
270
+ volume_type == o.volume_type &&
261
271
  wwn == o.wwn &&
262
272
  creation_date == o.creation_date &&
263
273
  last_update_date == o.last_update_date &&
@@ -274,7 +284,7 @@ module IbmCloudPower
274
284
  # Calculates hash code according to all attributes.
275
285
  # @return [Integer] Hash code
276
286
  def hash
277
- [volume_id, name, state, size, shareable, bootable, boot_volume, delete_on_termination, disk_type, wwn, creation_date, last_update_date, href, pvm_instance_i_ds].hash
287
+ [volume_id, name, state, size, shareable, bootable, boot_volume, delete_on_termination, disk_type, volume_type, wwn, creation_date, last_update_date, href, pvm_instance_i_ds].hash
278
288
  end
279
289
 
280
290
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module IbmCloudPower
16
16
  class VolumesCloneAsyncRequest
17
- # Base name of the new cloned volume(s). Cloned Volume names prefixed with'clone-' and suffixed with ‘-#####’ (where #####is a 5 digit random number) If multiple volumes cloned they will be furthersuffixed with an incremental number starting with 1. Example volume namesusing name=\"volume-abcdef\" single volume clone will be named \"clone-volume-abcdef-83081 multi volume clone will be named \"clone-volume-abcdef-73721-1”,\"clone-volume-abcdef-73721-2”, ...
17
+ # Base name of the new cloned volume(s). Cloned Volume names will be prefixed with 'clone-' and suffixed with ‘-#####’ (where ##### is a 5 digit random number) If multiple volumes cloned they will be further suffixed with an incremental number starting with 1. Example volume names using name=\"volume-abcdef\" single volume clone will be named \"clone-volume-abcdef-83081\" multi volume clone will be named \"clone-volume-abcdef-73721-1\", \"clone-volume-abcdef-73721-2\", ...
18
18
  attr_accessor :name
19
19
 
20
20
  # List of volumes to be cloned
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module IbmCloudPower
16
16
  class VolumesCloneCancel
17
- # default False, Cancel will only be allowed if the status is prepared’, or available True, Cancel will be allowed when the status is NOT completed, cancelling, cancelled, or failed
17
+ # default False, Cancel will only be allowed if the status is 'prepared', or 'available' True, Cancel will be allowed when the status is NOT completed, cancelling, cancelled, or failed
18
18
  attr_accessor :force
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -38,7 +38,7 @@ module IbmCloudPower
38
38
  # Last Update Date
39
39
  attr_accessor :last_update_date
40
40
 
41
- # List of cloned volumes created from the volumes-clone request
41
+ # List of cloned volumes created from the volumes-clone request. The clone volumes information is included only after the Execute step has completed successfully. The source and clone volume names might not be provided as this information is retrieved in a separate API call and might not complete in a timely manner.
42
42
  attr_accessor :cloned_volumes
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module IbmCloudPower
16
16
  class VolumesCloneExecute
17
- # Base name of the new cloned volume(s). Cloned Volume names will be prefixed with 'clone-' and suffixed with ‘-#####’ (where ##### is a 5 digit random number) If multiple volumes cloned they will be further suffixed with an incremental number starting with 1. Example volume names using name=\"volume-abcdef\" single volume clone will be named \"clone-volume-abcdef-83081multi volume clone will be named \"clone-volume-abcdef-73721-1”, \"clone-volume-abcdef-73721-2”, ...
17
+ # Base name of the new cloned volume(s). Cloned Volume names will be prefixed with 'clone-' and suffixed with ‘-#####’ (where ##### is a 5 digit random number) If multiple volumes cloned they will be further suffixed with an incremental number starting with 1. Example volume names using name \"volume-abcdef\" single volume clone will be named \"clone-volume-abcdef-83081\" multi volume clone will be named \"clone-volume-abcdef-73721-1\", \"clone-volume-abcdef-73721-2\", ...
18
18
  attr_accessor :name
19
19
 
20
20
  # default False, Execute failure rolls back clone activity but leaves prepared snapshot True, Execute failure rolls back clone activity and removes the prepared snapshot
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0-beta2
11
11
  =end
12
12
 
13
13
  module IbmCloudPower
14
- VERSION = '1.0.2'
14
+ VERSION = '1.1.0'
15
15
  end
@@ -0,0 +1,132 @@
1
+ =begin
2
+ #Power Cloud API
3
+
4
+ #IBM Power Cloud API for Power Hardware / Infrastructure
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: kylej@us.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-beta2
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for IbmCloudPower::PCloudCloudConnectionsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PCloudCloudConnectionsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PCloudCloudConnectionsApi' do
30
+ it 'should create an instance of PCloudCloudConnectionsApi' do
31
+ expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudCloudConnectionsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for pcloud_cloudconnections_delete
36
+ # Delete a Cloud connection
37
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
38
+ # @param cloud_connection_id Cloud connection ID
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Object]
41
+ describe 'pcloud_cloudconnections_delete test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for pcloud_cloudconnections_get
48
+ # Get a Cloud connection's state or information
49
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
50
+ # @param cloud_connection_id Cloud connection ID
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [CloudConnection]
53
+ describe 'pcloud_cloudconnections_get test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for pcloud_cloudconnections_getall
60
+ # Get all Cloud connections in a specific cloud instance
61
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [CloudConnections]
64
+ describe 'pcloud_cloudconnections_getall test' 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
+ # unit tests for pcloud_cloudconnections_networks_delete
71
+ # Delete a network from a Cloud connection
72
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
73
+ # @param cloud_connection_id Cloud connection ID
74
+ # @param network_id Network ID
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [CloudConnection]
77
+ describe 'pcloud_cloudconnections_networks_delete test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ # unit tests for pcloud_cloudconnections_networks_put
84
+ # Add a network to the Cloud connection
85
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
86
+ # @param cloud_connection_id Cloud connection ID
87
+ # @param network_id Network ID
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [CloudConnection]
90
+ describe 'pcloud_cloudconnections_networks_put test' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ end
94
+ end
95
+
96
+ # unit tests for pcloud_cloudconnections_post
97
+ # Create a new Cloud connection
98
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
99
+ # @param body Parameters for the creation of a new Cloud connection
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [CloudConnection]
102
+ describe 'pcloud_cloudconnections_post test' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ end
106
+ end
107
+
108
+ # unit tests for pcloud_cloudconnections_put
109
+ # Update a Cloud connection
110
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
111
+ # @param cloud_connection_id Cloud connection ID
112
+ # @param body Parameters to update a Cloud connection
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [CloudConnection]
115
+ describe 'pcloud_cloudconnections_put test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
+ end
119
+ end
120
+
121
+ # unit tests for pcloud_cloudconnections_virtualprivateclouds_getall
122
+ # Get all virtual private clouds in a specific cloud instance
123
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
124
+ # @param [Hash] opts the optional parameters
125
+ # @return [CloudConnectionVirtualPrivateClouds]
126
+ describe 'pcloud_cloudconnections_virtualprivateclouds_getall test' do
127
+ it 'should work' do
128
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
129
+ end
130
+ end
131
+
132
+ end
@@ -0,0 +1,108 @@
1
+ =begin
2
+ #Power Cloud API
3
+
4
+ #IBM Power Cloud API for Power Hardware / Infrastructure
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: kylej@us.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-beta2
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for IbmCloudPower::PCloudPlacementGroupsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PCloudPlacementGroupsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PCloudPlacementGroupsApi' do
30
+ it 'should create an instance of PCloudPlacementGroupsApi' do
31
+ expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudPlacementGroupsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for pcloud_placementgroups_delete
36
+ # Delete server placement group
37
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
38
+ # @param placement_group_id Placement Group ID or Placement Group Name
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Object]
41
+ describe 'pcloud_placementgroups_delete test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for pcloud_placementgroups_get
48
+ # Get server placement group details
49
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
50
+ # @param placement_group_id Placement Group ID or Placement Group Name
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [PlacementGroup]
53
+ describe 'pcloud_placementgroups_get test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for pcloud_placementgroups_getall
60
+ # Get all server placement groups
61
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [PlacementGroups]
64
+ describe 'pcloud_placementgroups_getall test' 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
+ # unit tests for pcloud_placementgroups_members_delete
71
+ # Remove server from placement group
72
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
73
+ # @param placement_group_id Placement Group ID or Placement Group Name
74
+ # @param body Parameters for removing a Server in a Placement Group
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [PlacementGroup]
77
+ describe 'pcloud_placementgroups_members_delete test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ # unit tests for pcloud_placementgroups_members_post
84
+ # Add server to placement group
85
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
86
+ # @param placement_group_id Placement Group ID or Placement Group Name
87
+ # @param body Parameters for adding a server to a Placement Group
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [PlacementGroup]
90
+ describe 'pcloud_placementgroups_members_post test' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ end
94
+ end
95
+
96
+ # unit tests for pcloud_placementgroups_post
97
+ # Create a server placement group
98
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
99
+ # @param body Parameters for the creating a server placement group
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [PlacementGroup]
102
+ describe 'pcloud_placementgroups_post test' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ end
106
+ end
107
+
108
+ end
@@ -0,0 +1,81 @@
1
+ =begin
2
+ #Power Cloud API
3
+
4
+ #IBM Power Cloud API for Power Hardware / Infrastructure
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: kylej@us.ibm.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.0-beta2
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for IbmCloudPower::PCloudStorageCapacityApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PCloudStorageCapacityApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = IbmCloudPower::PCloudStorageCapacityApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PCloudStorageCapacityApi' do
30
+ it 'should create an instance of PCloudStorageCapacityApi' do
31
+ expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudStorageCapacityApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for pcloud_storagecapacity_pools_get
36
+ # Storage capacity for a storage pool in a region
37
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
38
+ # @param storage_pool_name Storage pool name
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [StoragePoolCapacity]
41
+ describe 'pcloud_storagecapacity_pools_get test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for pcloud_storagecapacity_pools_getall
48
+ # Storage capacity for all available storage pools in a region
49
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [StoragePoolsCapacity]
52
+ describe 'pcloud_storagecapacity_pools_getall test' 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
+ # unit tests for pcloud_storagecapacity_types_get
59
+ # Storage capacity for a storage type in a region
60
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
61
+ # @param storage_type_name Storage type name
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [StorageTypeCapacity]
64
+ describe 'pcloud_storagecapacity_types_get test' 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
+ # unit tests for pcloud_storagecapacity_types_getall
71
+ # Storage capacity for all available storage types in a region
72
+ # @param cloud_instance_id Cloud Instance ID of a PCloud Instance
73
+ # @param [Hash] opts the optional parameters
74
+ # @return [StorageTypesCapacity]
75
+ describe 'pcloud_storagecapacity_types_getall test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ end