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
@@ -76,7 +76,7 @@ require 'ibm_cloud_power'
76
76
 
77
77
  api_instance = IbmCloudPower::PCloudEventsApi.new
78
78
  cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
79
- time = 'time_example' # String | A time in either ISO 8601 or unix epoch format
79
+ time = 'time_example' # String | (deprecated - use from_time) A time in either ISO 8601 or unix epoch format
80
80
  opts = {
81
81
  accept_language: 'accept_language_example' # String | The language requested for the return document
82
82
  }
@@ -96,7 +96,7 @@ end
96
96
  Name | Type | Description | Notes
97
97
  ------------- | ------------- | ------------- | -------------
98
98
  **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
99
- **time** | **String**| A time in either ISO 8601 or unix epoch format |
99
+ **time** | **String**| (deprecated - use from_time) A time in either ISO 8601 or unix epoch format |
100
100
  **accept_language** | **String**| The language requested for the return document | [optional]
101
101
 
102
102
  ### Return type
@@ -9,8 +9,10 @@ Method | HTTP request | Description
9
9
  [**pcloud_cloudinstances_images_get**](PCloudImagesApi.md#pcloud_cloudinstances_images_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id} | Detailed information of an image
10
10
  [**pcloud_cloudinstances_images_getall**](PCloudImagesApi.md#pcloud_cloudinstances_images_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/images | List all of the images for this cloud instance
11
11
  [**pcloud_cloudinstances_images_post**](PCloudImagesApi.md#pcloud_cloudinstances_images_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/images | Create a new image from available images
12
- [**pcloud_images_get**](PCloudImagesApi.md#pcloud_images_get) | **GET** /pcloud/v1/images/{image_id} | Detailed information of an available image
13
- [**pcloud_images_getall**](PCloudImagesApi.md#pcloud_images_getall) | **GET** /pcloud/v1/images | List all images available for copying into cloud instances
12
+ [**pcloud_cloudinstances_stockimages_get**](PCloudImagesApi.md#pcloud_cloudinstances_stockimages_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images/{image_id} | Detailed info of an available stock image
13
+ [**pcloud_cloudinstances_stockimages_getall**](PCloudImagesApi.md#pcloud_cloudinstances_stockimages_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images | List all available stock images
14
+ [**pcloud_images_get**](PCloudImagesApi.md#pcloud_images_get) | **GET** /pcloud/v1/images/{image_id} | Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed info of an available stock image
15
+ [**pcloud_images_getall**](PCloudImagesApi.md#pcloud_images_getall) | **GET** /pcloud/v1/images | Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - List all available stock images
14
16
 
15
17
 
16
18
 
@@ -249,11 +251,107 @@ No authorization required
249
251
  - **Accept**: application/json
250
252
 
251
253
 
254
+ ## pcloud_cloudinstances_stockimages_get
255
+
256
+ > Image pcloud_cloudinstances_stockimages_get(cloud_instance_id, image_id)
257
+
258
+ Detailed info of an available stock image
259
+
260
+ ### Example
261
+
262
+ ```ruby
263
+ # load the gem
264
+ require 'ibm_cloud_power'
265
+
266
+ api_instance = IbmCloudPower::PCloudImagesApi.new
267
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
268
+ image_id = 'image_id_example' # String | Image ID of a image
269
+
270
+ begin
271
+ #Detailed info of an available stock image
272
+ result = api_instance.pcloud_cloudinstances_stockimages_get(cloud_instance_id, image_id)
273
+ p result
274
+ rescue IbmCloudPower::ApiError => e
275
+ puts "Exception when calling PCloudImagesApi->pcloud_cloudinstances_stockimages_get: #{e}"
276
+ end
277
+ ```
278
+
279
+ ### Parameters
280
+
281
+
282
+ Name | Type | Description | Notes
283
+ ------------- | ------------- | ------------- | -------------
284
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
285
+ **image_id** | **String**| Image ID of a image |
286
+
287
+ ### Return type
288
+
289
+ [**Image**](Image.md)
290
+
291
+ ### Authorization
292
+
293
+ No authorization required
294
+
295
+ ### HTTP request headers
296
+
297
+ - **Content-Type**: Not defined
298
+ - **Accept**: application/json
299
+
300
+
301
+ ## pcloud_cloudinstances_stockimages_getall
302
+
303
+ > Images pcloud_cloudinstances_stockimages_getall(cloud_instance_id, opts)
304
+
305
+ List all available stock images
306
+
307
+ ### Example
308
+
309
+ ```ruby
310
+ # load the gem
311
+ require 'ibm_cloud_power'
312
+
313
+ api_instance = IbmCloudPower::PCloudImagesApi.new
314
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
315
+ opts = {
316
+ sap: true # Boolean | Include SAP images with get available stock images
317
+ }
318
+
319
+ begin
320
+ #List all available stock images
321
+ result = api_instance.pcloud_cloudinstances_stockimages_getall(cloud_instance_id, opts)
322
+ p result
323
+ rescue IbmCloudPower::ApiError => e
324
+ puts "Exception when calling PCloudImagesApi->pcloud_cloudinstances_stockimages_getall: #{e}"
325
+ end
326
+ ```
327
+
328
+ ### Parameters
329
+
330
+
331
+ Name | Type | Description | Notes
332
+ ------------- | ------------- | ------------- | -------------
333
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
334
+ **sap** | **Boolean**| Include SAP images with get available stock images | [optional]
335
+
336
+ ### Return type
337
+
338
+ [**Images**](Images.md)
339
+
340
+ ### Authorization
341
+
342
+ No authorization required
343
+
344
+ ### HTTP request headers
345
+
346
+ - **Content-Type**: Not defined
347
+ - **Accept**: application/json
348
+
349
+
252
350
  ## pcloud_images_get
253
351
 
254
352
  > Images pcloud_images_get(image_id)
255
353
 
256
- Detailed information of an available image
354
+ Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed info of an available stock image
257
355
 
258
356
  ### Example
259
357
 
@@ -265,7 +363,7 @@ api_instance = IbmCloudPower::PCloudImagesApi.new
265
363
  image_id = 'image_id_example' # String | Image ID of a image
266
364
 
267
365
  begin
268
- #Detailed information of an available image
366
+ #Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed info of an available stock image
269
367
  result = api_instance.pcloud_images_get(image_id)
270
368
  p result
271
369
  rescue IbmCloudPower::ApiError => e
@@ -298,7 +396,7 @@ No authorization required
298
396
 
299
397
  > Images pcloud_images_getall(opts)
300
398
 
301
- List all images available for copying into cloud instances
399
+ Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - List all available stock images
302
400
 
303
401
  ### Example
304
402
 
@@ -312,7 +410,7 @@ opts = {
312
410
  }
313
411
 
314
412
  begin
315
- #List all images available for copying into cloud instances
413
+ #Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - List all available stock images
316
414
  result = api_instance.pcloud_images_getall(opts)
317
415
  p result
318
416
  rescue IbmCloudPower::ApiError => e
@@ -6,6 +6,7 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**pcloud_pvminstances_action_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_action_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/action | Perform an action (start stop reboot immediate-shutdown reset) on a PVMInstance
8
8
  [**pcloud_pvminstances_capture_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_capture_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/capture | Capture a PVM instance and create a deployable image
9
+ [**pcloud_pvminstances_clone_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_clone_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/clone | Clone a PVMInstance
9
10
  [**pcloud_pvminstances_console_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_console_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/console | Generate the noVNC console URL
10
11
  [**pcloud_pvminstances_delete**](PCloudPVMInstancesApi.md#pcloud_pvminstances_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id} | Delete a PCloud PVM instance
11
12
  [**pcloud_pvminstances_get**](PCloudPVMInstancesApi.md#pcloud_pvminstances_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id} | Get a PVM instance's current state or information
@@ -121,6 +122,55 @@ No authorization required
121
122
  - **Accept**: application/json
122
123
 
123
124
 
125
+ ## pcloud_pvminstances_clone_post
126
+
127
+ > PVMInstance pcloud_pvminstances_clone_post(cloud_instance_id, pvm_instance_id, body)
128
+
129
+ Clone a PVMInstance
130
+
131
+ ### Example
132
+
133
+ ```ruby
134
+ # load the gem
135
+ require 'ibm_cloud_power'
136
+
137
+ api_instance = IbmCloudPower::PCloudPVMInstancesApi.new
138
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
139
+ pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID
140
+ body = IbmCloudPower::PVMInstanceClone.new # PVMInstanceClone | Clone PVM Instance parameters
141
+
142
+ begin
143
+ #Clone a PVMInstance
144
+ result = api_instance.pcloud_pvminstances_clone_post(cloud_instance_id, pvm_instance_id, body)
145
+ p result
146
+ rescue IbmCloudPower::ApiError => e
147
+ puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_clone_post: #{e}"
148
+ end
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+
154
+ Name | Type | Description | Notes
155
+ ------------- | ------------- | ------------- | -------------
156
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
157
+ **pvm_instance_id** | **String**| PCloud PVM Instance ID |
158
+ **body** | [**PVMInstanceClone**](PVMInstanceClone.md)| Clone PVM Instance parameters |
159
+
160
+ ### Return type
161
+
162
+ [**PVMInstance**](PVMInstance.md)
163
+
164
+ ### Authorization
165
+
166
+ No authorization required
167
+
168
+ ### HTTP request headers
169
+
170
+ - **Content-Type**: application/json
171
+ - **Accept**: application/json
172
+
173
+
124
174
  ## pcloud_pvminstances_console_post
125
175
 
126
176
  > PVMInstanceConsole pcloud_pvminstances_console_post(cloud_instance_id, pvm_instance_id)
@@ -170,7 +220,7 @@ No authorization required
170
220
 
171
221
  ## pcloud_pvminstances_delete
172
222
 
173
- > Object pcloud_pvminstances_delete(cloud_instance_id, pvm_instance_id)
223
+ > Object pcloud_pvminstances_delete(cloud_instance_id, pvm_instance_id, opts)
174
224
 
175
225
  Delete a PCloud PVM instance
176
226
 
@@ -183,10 +233,13 @@ require 'ibm_cloud_power'
183
233
  api_instance = IbmCloudPower::PCloudPVMInstancesApi.new
184
234
  cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
185
235
  pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID
236
+ opts = {
237
+ delete_data_volumes: true # Boolean | Indicates whether all data volumes attached to the PVMInstance must be deleted when deleting the PVMInstance. Shared data volumes will be deleted if no other PVMInstances are attached.
238
+ }
186
239
 
187
240
  begin
188
241
  #Delete a PCloud PVM instance
189
- result = api_instance.pcloud_pvminstances_delete(cloud_instance_id, pvm_instance_id)
242
+ result = api_instance.pcloud_pvminstances_delete(cloud_instance_id, pvm_instance_id, opts)
190
243
  p result
191
244
  rescue IbmCloudPower::ApiError => e
192
245
  puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_delete: #{e}"
@@ -200,6 +253,7 @@ Name | Type | Description | Notes
200
253
  ------------- | ------------- | ------------- | -------------
201
254
  **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
202
255
  **pvm_instance_id** | **String**| PCloud PVM Instance ID |
256
+ **delete_data_volumes** | **Boolean**| Indicates whether all data volumes attached to the PVMInstance must be deleted when deleting the PVMInstance. Shared data volumes will be deleted if no other PVMInstances are attached. | [optional]
203
257
 
204
258
  ### Return type
205
259
 
@@ -754,7 +808,7 @@ No authorization required
754
808
 
755
809
  ## pcloud_pvminstances_snapshots_restore_post
756
810
 
757
- > pcloud_pvminstances_snapshots_restore_post(cloud_instance_id, pvm_instance_id, snapshot_id, body, opts)
811
+ > Snapshot pcloud_pvminstances_snapshots_restore_post(cloud_instance_id, pvm_instance_id, snapshot_id, body, opts)
758
812
 
759
813
  Restore a PVM Instance snapshot
760
814
 
@@ -777,7 +831,8 @@ opts = {
777
831
 
778
832
  begin
779
833
  #Restore a PVM Instance snapshot
780
- api_instance.pcloud_pvminstances_snapshots_restore_post(cloud_instance_id, pvm_instance_id, snapshot_id, body, opts)
834
+ result = api_instance.pcloud_pvminstances_snapshots_restore_post(cloud_instance_id, pvm_instance_id, snapshot_id, body, opts)
835
+ p result
781
836
  rescue IbmCloudPower::ApiError => e
782
837
  puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_snapshots_restore_post: #{e}"
783
838
  end
@@ -796,7 +851,7 @@ Name | Type | Description | Notes
796
851
 
797
852
  ### Return type
798
853
 
799
- nil (empty response body)
854
+ [**Snapshot**](Snapshot.md)
800
855
 
801
856
  ### Authorization
802
857
 
@@ -0,0 +1,298 @@
1
+ # IbmCloudPower::PCloudPlacementGroupsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**pcloud_placementgroups_delete**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id} | Delete server placement group
8
+ [**pcloud_placementgroups_get**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id} | Get server placement group details
9
+ [**pcloud_placementgroups_getall**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups | Get all server placement groups
10
+ [**pcloud_placementgroups_members_delete**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_members_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members | Remove server from placement group
11
+ [**pcloud_placementgroups_members_post**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_members_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members | Add server to placement group
12
+ [**pcloud_placementgroups_post**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups | Create a server placement group
13
+
14
+
15
+
16
+ ## pcloud_placementgroups_delete
17
+
18
+ > Object pcloud_placementgroups_delete(cloud_instance_id, placement_group_id)
19
+
20
+ Delete server placement group
21
+
22
+ ### Example
23
+
24
+ ```ruby
25
+ # load the gem
26
+ require 'ibm_cloud_power'
27
+
28
+ api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new
29
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
30
+ placement_group_id = 'placement_group_id_example' # String | Placement Group ID or Placement Group Name
31
+
32
+ begin
33
+ #Delete server placement group
34
+ result = api_instance.pcloud_placementgroups_delete(cloud_instance_id, placement_group_id)
35
+ p result
36
+ rescue IbmCloudPower::ApiError => e
37
+ puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_delete: #{e}"
38
+ end
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
47
+ **placement_group_id** | **String**| Placement Group ID or Placement Group Name |
48
+
49
+ ### Return type
50
+
51
+ **Object**
52
+
53
+ ### Authorization
54
+
55
+ No authorization required
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: Not defined
60
+ - **Accept**: */*
61
+
62
+
63
+ ## pcloud_placementgroups_get
64
+
65
+ > PlacementGroup pcloud_placementgroups_get(cloud_instance_id, placement_group_id)
66
+
67
+ Get server placement group details
68
+
69
+ ### Example
70
+
71
+ ```ruby
72
+ # load the gem
73
+ require 'ibm_cloud_power'
74
+
75
+ api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new
76
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
77
+ placement_group_id = 'placement_group_id_example' # String | Placement Group ID or Placement Group Name
78
+
79
+ begin
80
+ #Get server placement group details
81
+ result = api_instance.pcloud_placementgroups_get(cloud_instance_id, placement_group_id)
82
+ p result
83
+ rescue IbmCloudPower::ApiError => e
84
+ puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_get: #{e}"
85
+ end
86
+ ```
87
+
88
+ ### Parameters
89
+
90
+
91
+ Name | Type | Description | Notes
92
+ ------------- | ------------- | ------------- | -------------
93
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
94
+ **placement_group_id** | **String**| Placement Group ID or Placement Group Name |
95
+
96
+ ### Return type
97
+
98
+ [**PlacementGroup**](PlacementGroup.md)
99
+
100
+ ### Authorization
101
+
102
+ No authorization required
103
+
104
+ ### HTTP request headers
105
+
106
+ - **Content-Type**: Not defined
107
+ - **Accept**: application/json
108
+
109
+
110
+ ## pcloud_placementgroups_getall
111
+
112
+ > PlacementGroups pcloud_placementgroups_getall(cloud_instance_id)
113
+
114
+ Get all server placement groups
115
+
116
+ ### Example
117
+
118
+ ```ruby
119
+ # load the gem
120
+ require 'ibm_cloud_power'
121
+
122
+ api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new
123
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
124
+
125
+ begin
126
+ #Get all server placement groups
127
+ result = api_instance.pcloud_placementgroups_getall(cloud_instance_id)
128
+ p result
129
+ rescue IbmCloudPower::ApiError => e
130
+ puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_getall: #{e}"
131
+ end
132
+ ```
133
+
134
+ ### Parameters
135
+
136
+
137
+ Name | Type | Description | Notes
138
+ ------------- | ------------- | ------------- | -------------
139
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
140
+
141
+ ### Return type
142
+
143
+ [**PlacementGroups**](PlacementGroups.md)
144
+
145
+ ### Authorization
146
+
147
+ No authorization required
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
154
+
155
+ ## pcloud_placementgroups_members_delete
156
+
157
+ > PlacementGroup pcloud_placementgroups_members_delete(cloud_instance_id, placement_group_id, body)
158
+
159
+ Remove server from placement group
160
+
161
+ ### Example
162
+
163
+ ```ruby
164
+ # load the gem
165
+ require 'ibm_cloud_power'
166
+
167
+ api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new
168
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
169
+ placement_group_id = 'placement_group_id_example' # String | Placement Group ID or Placement Group Name
170
+ body = IbmCloudPower::PlacementGroupServer.new # PlacementGroupServer | Parameters for removing a Server in a Placement Group
171
+
172
+ begin
173
+ #Remove server from placement group
174
+ result = api_instance.pcloud_placementgroups_members_delete(cloud_instance_id, placement_group_id, body)
175
+ p result
176
+ rescue IbmCloudPower::ApiError => e
177
+ puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_members_delete: #{e}"
178
+ end
179
+ ```
180
+
181
+ ### Parameters
182
+
183
+
184
+ Name | Type | Description | Notes
185
+ ------------- | ------------- | ------------- | -------------
186
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
187
+ **placement_group_id** | **String**| Placement Group ID or Placement Group Name |
188
+ **body** | [**PlacementGroupServer**](PlacementGroupServer.md)| Parameters for removing a Server in a Placement Group |
189
+
190
+ ### Return type
191
+
192
+ [**PlacementGroup**](PlacementGroup.md)
193
+
194
+ ### Authorization
195
+
196
+ No authorization required
197
+
198
+ ### HTTP request headers
199
+
200
+ - **Content-Type**: application/json
201
+ - **Accept**: application/json
202
+
203
+
204
+ ## pcloud_placementgroups_members_post
205
+
206
+ > PlacementGroup pcloud_placementgroups_members_post(cloud_instance_id, placement_group_id, body)
207
+
208
+ Add server to placement group
209
+
210
+ ### Example
211
+
212
+ ```ruby
213
+ # load the gem
214
+ require 'ibm_cloud_power'
215
+
216
+ api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new
217
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
218
+ placement_group_id = 'placement_group_id_example' # String | Placement Group ID or Placement Group Name
219
+ body = IbmCloudPower::PlacementGroupServer.new # PlacementGroupServer | Parameters for adding a server to a Placement Group
220
+
221
+ begin
222
+ #Add server to placement group
223
+ result = api_instance.pcloud_placementgroups_members_post(cloud_instance_id, placement_group_id, body)
224
+ p result
225
+ rescue IbmCloudPower::ApiError => e
226
+ puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_members_post: #{e}"
227
+ end
228
+ ```
229
+
230
+ ### Parameters
231
+
232
+
233
+ Name | Type | Description | Notes
234
+ ------------- | ------------- | ------------- | -------------
235
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
236
+ **placement_group_id** | **String**| Placement Group ID or Placement Group Name |
237
+ **body** | [**PlacementGroupServer**](PlacementGroupServer.md)| Parameters for adding a server to a Placement Group |
238
+
239
+ ### Return type
240
+
241
+ [**PlacementGroup**](PlacementGroup.md)
242
+
243
+ ### Authorization
244
+
245
+ No authorization required
246
+
247
+ ### HTTP request headers
248
+
249
+ - **Content-Type**: application/json
250
+ - **Accept**: application/json
251
+
252
+
253
+ ## pcloud_placementgroups_post
254
+
255
+ > PlacementGroup pcloud_placementgroups_post(cloud_instance_id, body)
256
+
257
+ Create a server placement group
258
+
259
+ ### Example
260
+
261
+ ```ruby
262
+ # load the gem
263
+ require 'ibm_cloud_power'
264
+
265
+ api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new
266
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
267
+ body = IbmCloudPower::PlacementGroupCreate.new # PlacementGroupCreate | Parameters for the creating a server placement group
268
+
269
+ begin
270
+ #Create a server placement group
271
+ result = api_instance.pcloud_placementgroups_post(cloud_instance_id, body)
272
+ p result
273
+ rescue IbmCloudPower::ApiError => e
274
+ puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_post: #{e}"
275
+ end
276
+ ```
277
+
278
+ ### Parameters
279
+
280
+
281
+ Name | Type | Description | Notes
282
+ ------------- | ------------- | ------------- | -------------
283
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
284
+ **body** | [**PlacementGroupCreate**](PlacementGroupCreate.md)| Parameters for the creating a server placement group |
285
+
286
+ ### Return type
287
+
288
+ [**PlacementGroup**](PlacementGroup.md)
289
+
290
+ ### Authorization
291
+
292
+ No authorization required
293
+
294
+ ### HTTP request headers
295
+
296
+ - **Content-Type**: application/json
297
+ - **Accept**: application/json
298
+