ibm_cloud_power 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (330) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +255 -0
  4. data/Rakefile +10 -0
  5. data/docs/CloneTaskReference.md +19 -0
  6. data/docs/CloneTaskStatus.md +23 -0
  7. data/docs/ClonedVolume.md +19 -0
  8. data/docs/ClonedVolumeDetail.md +19 -0
  9. data/docs/CloudInstance.md +37 -0
  10. data/docs/CloudInstanceCreate.md +29 -0
  11. data/docs/CloudInstanceReference.md +31 -0
  12. data/docs/CloudInstanceUpdate.md +25 -0
  13. data/docs/CloudInstanceUsageLimits.md +37 -0
  14. data/docs/CreateDataVolume.md +29 -0
  15. data/docs/CreateImage.md +37 -0
  16. data/docs/Error.md +19 -0
  17. data/docs/Event.md +33 -0
  18. data/docs/EventUser.md +21 -0
  19. data/docs/Events.md +17 -0
  20. data/docs/ExportImage.md +23 -0
  21. data/docs/IPAddressRange.md +19 -0
  22. data/docs/Image.md +39 -0
  23. data/docs/ImageReference.md +33 -0
  24. data/docs/ImageSpecifications.md +29 -0
  25. data/docs/ImageVolume.md +23 -0
  26. data/docs/Images.md +17 -0
  27. data/docs/MinMaxDefault.md +21 -0
  28. data/docs/MultiVolumesCreate.md +29 -0
  29. data/docs/Network.md +37 -0
  30. data/docs/NetworkCreate.md +29 -0
  31. data/docs/NetworkIpAddressMetrics.md +23 -0
  32. data/docs/NetworkPort.md +29 -0
  33. data/docs/NetworkPortCreate.md +19 -0
  34. data/docs/NetworkPortPvmInstance.md +19 -0
  35. data/docs/NetworkPortUpdate.md +19 -0
  36. data/docs/NetworkPorts.md +17 -0
  37. data/docs/NetworkReference.md +27 -0
  38. data/docs/NetworkUpdate.md +23 -0
  39. data/docs/Networks.md +17 -0
  40. data/docs/Operations.md +21 -0
  41. data/docs/PCloudEventsApi.md +114 -0
  42. data/docs/PCloudImagesApi.md +342 -0
  43. data/docs/PCloudInstancesApi.md +148 -0
  44. data/docs/PCloudNetworksApi.md +504 -0
  45. data/docs/PCloudPVMInstancesApi.md +809 -0
  46. data/docs/PCloudSAPApi.md +150 -0
  47. data/docs/PCloudSnapshotsApi.md +200 -0
  48. data/docs/PCloudSystemPoolsApi.md +54 -0
  49. data/docs/PCloudTasksApi.md +100 -0
  50. data/docs/PCloudTenantsApi.md +102 -0
  51. data/docs/PCloudTenantsSSHKeysApi.md +248 -0
  52. data/docs/PCloudVolumesApi.md +746 -0
  53. data/docs/PVMInstance.md +77 -0
  54. data/docs/PVMInstanceAction.md +17 -0
  55. data/docs/PVMInstanceAddNetwork.md +19 -0
  56. data/docs/PVMInstanceCapture.md +29 -0
  57. data/docs/PVMInstanceClone.md +31 -0
  58. data/docs/PVMInstanceConsole.md +17 -0
  59. data/docs/PVMInstanceCreate.md +53 -0
  60. data/docs/PVMInstanceFault.md +23 -0
  61. data/docs/PVMInstanceHealth.md +21 -0
  62. data/docs/PVMInstanceMultiCreate.md +21 -0
  63. data/docs/PVMInstanceNetwork.md +33 -0
  64. data/docs/PVMInstanceNetworks.md +17 -0
  65. data/docs/PVMInstanceOperation.md +19 -0
  66. data/docs/PVMInstanceReference.md +71 -0
  67. data/docs/PVMInstanceRemoveNetwork.md +17 -0
  68. data/docs/PVMInstanceUpdate.md +33 -0
  69. data/docs/PVMInstanceUpdateResponse.md +27 -0
  70. data/docs/PVMInstanceVolumeUpdate.md +17 -0
  71. data/docs/PVMInstances.md +17 -0
  72. data/docs/PeeringNetwork.md +21 -0
  73. data/docs/PinPolicy.md +16 -0
  74. data/docs/SAPCreate.md +33 -0
  75. data/docs/SAPProfile.md +25 -0
  76. data/docs/SAPProfileReference.md +19 -0
  77. data/docs/SAPProfiles.md +17 -0
  78. data/docs/SRC.md +19 -0
  79. data/docs/SSHKey.md +21 -0
  80. data/docs/SSHKeys.md +17 -0
  81. data/docs/Snapshot.md +35 -0
  82. data/docs/SnapshotCreate.md +21 -0
  83. data/docs/SnapshotCreateResponse.md +17 -0
  84. data/docs/SnapshotRestore.md +17 -0
  85. data/docs/SnapshotUpdate.md +19 -0
  86. data/docs/Snapshots.md +17 -0
  87. data/docs/SoftwareLicenses.md +25 -0
  88. data/docs/StockImage.md +21 -0
  89. data/docs/System.md +21 -0
  90. data/docs/SystemPool.md +31 -0
  91. data/docs/Task.md +33 -0
  92. data/docs/TaskReference.md +19 -0
  93. data/docs/Tenant.md +29 -0
  94. data/docs/TenantUpdate.md +19 -0
  95. data/docs/UpdateVolume.md +23 -0
  96. data/docs/VirtualCores.md +21 -0
  97. data/docs/Volume.md +41 -0
  98. data/docs/VolumeInfo.md +19 -0
  99. data/docs/VolumeReference.md +43 -0
  100. data/docs/Volumes.md +17 -0
  101. data/docs/VolumesClone.md +31 -0
  102. data/docs/VolumesCloneAsyncRequest.md +19 -0
  103. data/docs/VolumesCloneCancel.md +17 -0
  104. data/docs/VolumesCloneCreate.md +19 -0
  105. data/docs/VolumesCloneDetail.md +33 -0
  106. data/docs/VolumesCloneExecute.md +19 -0
  107. data/docs/VolumesCloneRequest.md +19 -0
  108. data/docs/VolumesCloneResponse.md +17 -0
  109. data/docs/VolumesClones.md +17 -0
  110. data/git_push.sh +58 -0
  111. data/ibm_cloud_power.gemspec +38 -0
  112. data/lib/ibm_cloud_power.rb +144 -0
  113. data/lib/ibm_cloud_power/api/p_cloud_events_api.rb +163 -0
  114. data/lib/ibm_cloud_power/api/p_cloud_images_api.rb +473 -0
  115. data/lib/ibm_cloud_power/api/p_cloud_instances_api.rb +210 -0
  116. data/lib/ibm_cloud_power/api/p_cloud_networks_api.rb +719 -0
  117. data/lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb +1166 -0
  118. data/lib/ibm_cloud_power/api/p_cloud_sap_api.rb +216 -0
  119. data/lib/ibm_cloud_power/api/p_cloud_snapshots_api.rb +288 -0
  120. data/lib/ibm_cloud_power/api/p_cloud_system_pools_api.rb +82 -0
  121. data/lib/ibm_cloud_power/api/p_cloud_tasks_api.rb +142 -0
  122. data/lib/ibm_cloud_power/api/p_cloud_tenants_api.rb +150 -0
  123. data/lib/ibm_cloud_power/api/p_cloud_tenants_ssh_keys_api.rb +356 -0
  124. data/lib/ibm_cloud_power/api/p_cloud_volumes_api.rb +1065 -0
  125. data/lib/ibm_cloud_power/api_client.rb +387 -0
  126. data/lib/ibm_cloud_power/api_error.rb +57 -0
  127. data/lib/ibm_cloud_power/configuration.rb +241 -0
  128. data/lib/ibm_cloud_power/models/clone_task_reference.rb +229 -0
  129. data/lib/ibm_cloud_power/models/clone_task_status.rb +285 -0
  130. data/lib/ibm_cloud_power/models/cloned_volume.rb +219 -0
  131. data/lib/ibm_cloud_power/models/cloned_volume_detail.rb +227 -0
  132. data/lib/ibm_cloud_power/models/cloud_instance.rb +361 -0
  133. data/lib/ibm_cloud_power/models/cloud_instance_create.rb +294 -0
  134. data/lib/ibm_cloud_power/models/cloud_instance_reference.rb +315 -0
  135. data/lib/ibm_cloud_power/models/cloud_instance_update.rb +249 -0
  136. data/lib/ibm_cloud_power/models/cloud_instance_usage_limits.rb +334 -0
  137. data/lib/ibm_cloud_power/models/create_data_volume.rb +313 -0
  138. data/lib/ibm_cloud_power/models/create_image.rb +360 -0
  139. data/lib/ibm_cloud_power/models/error.rb +217 -0
  140. data/lib/ibm_cloud_power/models/event.rb +357 -0
  141. data/lib/ibm_cloud_power/models/event_user.rb +234 -0
  142. data/lib/ibm_cloud_power/models/events.rb +216 -0
  143. data/lib/ibm_cloud_power/models/export_image.rb +249 -0
  144. data/lib/ibm_cloud_power/models/image.rb +351 -0
  145. data/lib/ibm_cloud_power/models/image_reference.rb +333 -0
  146. data/lib/ibm_cloud_power/models/image_specifications.rb +269 -0
  147. data/lib/ibm_cloud_power/models/image_volume.rb +259 -0
  148. data/lib/ibm_cloud_power/models/images.rb +216 -0
  149. data/lib/ibm_cloud_power/models/ip_address_range.rb +229 -0
  150. data/lib/ibm_cloud_power/models/min_max_default.rb +244 -0
  151. data/lib/ibm_cloud_power/models/multi_volumes_create.rb +313 -0
  152. data/lib/ibm_cloud_power/models/network.rb +395 -0
  153. data/lib/ibm_cloud_power/models/network_create.rb +314 -0
  154. data/lib/ibm_cloud_power/models/network_ip_address_metrics.rb +260 -0
  155. data/lib/ibm_cloud_power/models/network_port.rb +293 -0
  156. data/lib/ibm_cloud_power/models/network_port_create.rb +219 -0
  157. data/lib/ibm_cloud_power/models/network_port_pvm_instance.rb +220 -0
  158. data/lib/ibm_cloud_power/models/network_port_update.rb +219 -0
  159. data/lib/ibm_cloud_power/models/network_ports.rb +216 -0
  160. data/lib/ibm_cloud_power/models/network_reference.rb +325 -0
  161. data/lib/ibm_cloud_power/models/network_update.rb +243 -0
  162. data/lib/ibm_cloud_power/models/networks.rb +216 -0
  163. data/lib/ibm_cloud_power/models/operations.rb +287 -0
  164. data/lib/ibm_cloud_power/models/peering_network.rb +241 -0
  165. data/lib/ibm_cloud_power/models/pin_policy.rb +37 -0
  166. data/lib/ibm_cloud_power/models/pvm_instance.rb +612 -0
  167. data/lib/ibm_cloud_power/models/pvm_instance_action.rb +248 -0
  168. data/lib/ibm_cloud_power/models/pvm_instance_add_network.rb +224 -0
  169. data/lib/ibm_cloud_power/models/pvm_instance_capture.rb +317 -0
  170. data/lib/ibm_cloud_power/models/pvm_instance_clone.rb +328 -0
  171. data/lib/ibm_cloud_power/models/pvm_instance_console.rb +214 -0
  172. data/lib/ibm_cloud_power/models/pvm_instance_create.rb +483 -0
  173. data/lib/ibm_cloud_power/models/pvm_instance_fault.rb +240 -0
  174. data/lib/ibm_cloud_power/models/pvm_instance_health.rb +230 -0
  175. data/lib/ibm_cloud_power/models/pvm_instance_multi_create.rb +279 -0
  176. data/lib/ibm_cloud_power/models/pvm_instance_network.rb +290 -0
  177. data/lib/ibm_cloud_power/models/pvm_instance_networks.rb +216 -0
  178. data/lib/ibm_cloud_power/models/pvm_instance_operation.rb +262 -0
  179. data/lib/ibm_cloud_power/models/pvm_instance_reference.rb +566 -0
  180. data/lib/ibm_cloud_power/models/pvm_instance_remove_network.rb +209 -0
  181. data/lib/ibm_cloud_power/models/pvm_instance_update.rb +322 -0
  182. data/lib/ibm_cloud_power/models/pvm_instance_update_response.rb +292 -0
  183. data/lib/ibm_cloud_power/models/pvm_instance_volume_update.rb +214 -0
  184. data/lib/ibm_cloud_power/models/pvm_instances.rb +216 -0
  185. data/lib/ibm_cloud_power/models/sap_create.rb +311 -0
  186. data/lib/ibm_cloud_power/models/sap_profile.rb +310 -0
  187. data/lib/ibm_cloud_power/models/sap_profile_reference.rb +229 -0
  188. data/lib/ibm_cloud_power/models/sap_profiles.rb +216 -0
  189. data/lib/ibm_cloud_power/models/snapshot.rb +321 -0
  190. data/lib/ibm_cloud_power/models/snapshot_create.rb +236 -0
  191. data/lib/ibm_cloud_power/models/snapshot_create_response.rb +214 -0
  192. data/lib/ibm_cloud_power/models/snapshot_restore.rb +211 -0
  193. data/lib/ibm_cloud_power/models/snapshot_update.rb +219 -0
  194. data/lib/ibm_cloud_power/models/snapshots.rb +216 -0
  195. data/lib/ibm_cloud_power/models/software_licenses.rb +257 -0
  196. data/lib/ibm_cloud_power/models/src.rb +219 -0
  197. data/lib/ibm_cloud_power/models/ssh_key.rb +239 -0
  198. data/lib/ibm_cloud_power/models/ssh_keys.rb +216 -0
  199. data/lib/ibm_cloud_power/models/stock_image.rb +230 -0
  200. data/lib/ibm_cloud_power/models/system.rb +239 -0
  201. data/lib/ibm_cloud_power/models/system_pool.rb +277 -0
  202. data/lib/ibm_cloud_power/models/task.rb +334 -0
  203. data/lib/ibm_cloud_power/models/task_reference.rb +229 -0
  204. data/lib/ibm_cloud_power/models/tenant.rb +295 -0
  205. data/lib/ibm_cloud_power/models/tenant_update.rb +221 -0
  206. data/lib/ibm_cloud_power/models/update_volume.rb +239 -0
  207. data/lib/ibm_cloud_power/models/virtual_cores.rb +253 -0
  208. data/lib/ibm_cloud_power/models/volume.rb +356 -0
  209. data/lib/ibm_cloud_power/models/volume_info.rb +219 -0
  210. data/lib/ibm_cloud_power/models/volume_reference.rb +396 -0
  211. data/lib/ibm_cloud_power/models/volumes.rb +216 -0
  212. data/lib/ibm_cloud_power/models/volumes_clone.rb +284 -0
  213. data/lib/ibm_cloud_power/models/volumes_clone_async_request.rb +231 -0
  214. data/lib/ibm_cloud_power/models/volumes_clone_cancel.rb +209 -0
  215. data/lib/ibm_cloud_power/models/volumes_clone_create.rb +231 -0
  216. data/lib/ibm_cloud_power/models/volumes_clone_detail.rb +296 -0
  217. data/lib/ibm_cloud_power/models/volumes_clone_execute.rb +224 -0
  218. data/lib/ibm_cloud_power/models/volumes_clone_request.rb +231 -0
  219. data/lib/ibm_cloud_power/models/volumes_clone_response.rb +211 -0
  220. data/lib/ibm_cloud_power/models/volumes_clones.rb +211 -0
  221. data/lib/ibm_cloud_power/version.rb +15 -0
  222. data/spec/api/p_cloud_events_api_spec.rb +62 -0
  223. data/spec/api/p_cloud_images_api_spec.rb +117 -0
  224. data/spec/api/p_cloud_instances_api_spec.rb +69 -0
  225. data/spec/api/p_cloud_networks_api_spec.rb +161 -0
  226. data/spec/api/p_cloud_pvm_instances_api_spec.rb +240 -0
  227. data/spec/api/p_cloud_sap_api_spec.rb +70 -0
  228. data/spec/api/p_cloud_snapshots_api_spec.rb +83 -0
  229. data/spec/api/p_cloud_system_pools_api_spec.rb +46 -0
  230. data/spec/api/p_cloud_tasks_api_spec.rb +57 -0
  231. data/spec/api/p_cloud_tenants_api_spec.rb +58 -0
  232. data/spec/api/p_cloud_tenants_ssh_keys_api_spec.rb +95 -0
  233. data/spec/api/p_cloud_volumes_api_spec.rb +223 -0
  234. data/spec/api_client_spec.rb +226 -0
  235. data/spec/configuration_spec.rb +42 -0
  236. data/spec/models/clone_task_reference_spec.rb +47 -0
  237. data/spec/models/clone_task_status_spec.rb +63 -0
  238. data/spec/models/cloned_volume_detail_spec.rb +47 -0
  239. data/spec/models/cloned_volume_spec.rb +47 -0
  240. data/spec/models/cloud_instance_create_spec.rb +77 -0
  241. data/spec/models/cloud_instance_reference_spec.rb +83 -0
  242. data/spec/models/cloud_instance_spec.rb +101 -0
  243. data/spec/models/cloud_instance_update_spec.rb +65 -0
  244. data/spec/models/cloud_instance_usage_limits_spec.rb +101 -0
  245. data/spec/models/create_data_volume_spec.rb +81 -0
  246. data/spec/models/create_image_spec.rb +109 -0
  247. data/spec/models/error_spec.rb +47 -0
  248. data/spec/models/event_spec.rb +93 -0
  249. data/spec/models/event_user_spec.rb +53 -0
  250. data/spec/models/events_spec.rb +41 -0
  251. data/spec/models/export_image_spec.rb +59 -0
  252. data/spec/models/image_reference_spec.rb +89 -0
  253. data/spec/models/image_spec.rb +107 -0
  254. data/spec/models/image_specifications_spec.rb +77 -0
  255. data/spec/models/image_volume_spec.rb +59 -0
  256. data/spec/models/images_spec.rb +41 -0
  257. data/spec/models/ip_address_range_spec.rb +47 -0
  258. data/spec/models/min_max_default_spec.rb +53 -0
  259. data/spec/models/multi_volumes_create_spec.rb +81 -0
  260. data/spec/models/network_create_spec.rb +81 -0
  261. data/spec/models/network_ip_address_metrics_spec.rb +59 -0
  262. data/spec/models/network_port_create_spec.rb +47 -0
  263. data/spec/models/network_port_pvm_instance_spec.rb +47 -0
  264. data/spec/models/network_port_spec.rb +77 -0
  265. data/spec/models/network_port_update_spec.rb +47 -0
  266. data/spec/models/network_ports_spec.rb +41 -0
  267. data/spec/models/network_reference_spec.rb +75 -0
  268. data/spec/models/network_spec.rb +105 -0
  269. data/spec/models/network_update_spec.rb +59 -0
  270. data/spec/models/networks_spec.rb +41 -0
  271. data/spec/models/operations_spec.rb +65 -0
  272. data/spec/models/peering_network_spec.rb +53 -0
  273. data/spec/models/pin_policy_spec.rb +35 -0
  274. data/spec/models/pvm_instance_action_spec.rb +45 -0
  275. data/spec/models/pvm_instance_add_network_spec.rb +47 -0
  276. data/spec/models/pvm_instance_capture_spec.rb +81 -0
  277. data/spec/models/pvm_instance_clone_spec.rb +87 -0
  278. data/spec/models/pvm_instance_console_spec.rb +41 -0
  279. data/spec/models/pvm_instance_create_spec.rb +161 -0
  280. data/spec/models/pvm_instance_fault_spec.rb +59 -0
  281. data/spec/models/pvm_instance_health_spec.rb +53 -0
  282. data/spec/models/pvm_instance_multi_create_spec.rb +61 -0
  283. data/spec/models/pvm_instance_network_spec.rb +89 -0
  284. data/spec/models/pvm_instance_networks_spec.rb +41 -0
  285. data/spec/models/pvm_instance_operation_spec.rb +51 -0
  286. data/spec/models/pvm_instance_reference_spec.rb +207 -0
  287. data/spec/models/pvm_instance_remove_network_spec.rb +41 -0
  288. data/spec/models/pvm_instance_spec.rb +225 -0
  289. data/spec/models/pvm_instance_update_response_spec.rb +75 -0
  290. data/spec/models/pvm_instance_update_spec.rb +93 -0
  291. data/spec/models/pvm_instance_volume_update_spec.rb +41 -0
  292. data/spec/models/pvm_instances_spec.rb +41 -0
  293. data/spec/models/sap_create_spec.rb +89 -0
  294. data/spec/models/sap_profile_reference_spec.rb +47 -0
  295. data/spec/models/sap_profile_spec.rb +69 -0
  296. data/spec/models/sap_profiles_spec.rb +41 -0
  297. data/spec/models/snapshot_create_response_spec.rb +41 -0
  298. data/spec/models/snapshot_create_spec.rb +53 -0
  299. data/spec/models/snapshot_restore_spec.rb +41 -0
  300. data/spec/models/snapshot_spec.rb +95 -0
  301. data/spec/models/snapshot_update_spec.rb +47 -0
  302. data/spec/models/snapshots_spec.rb +41 -0
  303. data/spec/models/software_licenses_spec.rb +65 -0
  304. data/spec/models/src_spec.rb +47 -0
  305. data/spec/models/ssh_key_spec.rb +53 -0
  306. data/spec/models/ssh_keys_spec.rb +41 -0
  307. data/spec/models/stock_image_spec.rb +53 -0
  308. data/spec/models/system_pool_spec.rb +83 -0
  309. data/spec/models/system_spec.rb +53 -0
  310. data/spec/models/task_reference_spec.rb +47 -0
  311. data/spec/models/task_spec.rb +89 -0
  312. data/spec/models/tenant_spec.rb +77 -0
  313. data/spec/models/tenant_update_spec.rb +47 -0
  314. data/spec/models/update_volume_spec.rb +59 -0
  315. data/spec/models/virtual_cores_spec.rb +53 -0
  316. data/spec/models/volume_info_spec.rb +47 -0
  317. data/spec/models/volume_reference_spec.rb +119 -0
  318. data/spec/models/volume_spec.rb +113 -0
  319. data/spec/models/volumes_clone_async_request_spec.rb +47 -0
  320. data/spec/models/volumes_clone_cancel_spec.rb +41 -0
  321. data/spec/models/volumes_clone_create_spec.rb +47 -0
  322. data/spec/models/volumes_clone_detail_spec.rb +89 -0
  323. data/spec/models/volumes_clone_execute_spec.rb +47 -0
  324. data/spec/models/volumes_clone_request_spec.rb +47 -0
  325. data/spec/models/volumes_clone_response_spec.rb +47 -0
  326. data/spec/models/volumes_clone_spec.rb +83 -0
  327. data/spec/models/volumes_clones_spec.rb +41 -0
  328. data/spec/models/volumes_spec.rb +41 -0
  329. data/spec/spec_helper.rb +111 -0
  330. metadata +519 -0
@@ -0,0 +1,148 @@
1
+ # IbmCloudPower::PCloudInstancesApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**pcloud_cloudinstances_delete**](PCloudInstancesApi.md#pcloud_cloudinstances_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id} | Delete a Power Cloud instance
8
+ [**pcloud_cloudinstances_get**](PCloudInstancesApi.md#pcloud_cloudinstances_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id} | Get a cloud instance's current state or information
9
+ [**pcloud_cloudinstances_put**](PCloudInstancesApi.md#pcloud_cloudinstances_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id} | Update or upgrade a cloud instance
10
+
11
+
12
+
13
+ ## pcloud_cloudinstances_delete
14
+
15
+ > Object pcloud_cloudinstances_delete(cloud_instance_id)
16
+
17
+ Delete a Power Cloud instance
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'ibm_cloud_power'
24
+
25
+ api_instance = IbmCloudPower::PCloudInstancesApi.new
26
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
27
+
28
+ begin
29
+ #Delete a Power Cloud instance
30
+ result = api_instance.pcloud_cloudinstances_delete(cloud_instance_id)
31
+ p result
32
+ rescue IbmCloudPower::ApiError => e
33
+ puts "Exception when calling PCloudInstancesApi->pcloud_cloudinstances_delete: #{e}"
34
+ end
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
43
+
44
+ ### Return type
45
+
46
+ **Object**
47
+
48
+ ### Authorization
49
+
50
+ No authorization required
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: */*
56
+
57
+
58
+ ## pcloud_cloudinstances_get
59
+
60
+ > CloudInstance pcloud_cloudinstances_get(cloud_instance_id)
61
+
62
+ Get a cloud instance's current state or information
63
+
64
+ ### Example
65
+
66
+ ```ruby
67
+ # load the gem
68
+ require 'ibm_cloud_power'
69
+
70
+ api_instance = IbmCloudPower::PCloudInstancesApi.new
71
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
72
+
73
+ begin
74
+ #Get a cloud instance's current state or information
75
+ result = api_instance.pcloud_cloudinstances_get(cloud_instance_id)
76
+ p result
77
+ rescue IbmCloudPower::ApiError => e
78
+ puts "Exception when calling PCloudInstancesApi->pcloud_cloudinstances_get: #{e}"
79
+ end
80
+ ```
81
+
82
+ ### Parameters
83
+
84
+
85
+ Name | Type | Description | Notes
86
+ ------------- | ------------- | ------------- | -------------
87
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
88
+
89
+ ### Return type
90
+
91
+ [**CloudInstance**](CloudInstance.md)
92
+
93
+ ### Authorization
94
+
95
+ No authorization required
96
+
97
+ ### HTTP request headers
98
+
99
+ - **Content-Type**: Not defined
100
+ - **Accept**: application/json
101
+
102
+
103
+ ## pcloud_cloudinstances_put
104
+
105
+ > CloudInstance pcloud_cloudinstances_put(cloud_instance_id, body)
106
+
107
+ Update or upgrade a cloud instance
108
+
109
+ ### Example
110
+
111
+ ```ruby
112
+ # load the gem
113
+ require 'ibm_cloud_power'
114
+
115
+ api_instance = IbmCloudPower::PCloudInstancesApi.new
116
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
117
+ body = IbmCloudPower::CloudInstanceUpdate.new # CloudInstanceUpdate | Parameters for updating a Power Cloud instance
118
+
119
+ begin
120
+ #Update or upgrade a cloud instance
121
+ result = api_instance.pcloud_cloudinstances_put(cloud_instance_id, body)
122
+ p result
123
+ rescue IbmCloudPower::ApiError => e
124
+ puts "Exception when calling PCloudInstancesApi->pcloud_cloudinstances_put: #{e}"
125
+ end
126
+ ```
127
+
128
+ ### Parameters
129
+
130
+
131
+ Name | Type | Description | Notes
132
+ ------------- | ------------- | ------------- | -------------
133
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
134
+ **body** | [**CloudInstanceUpdate**](CloudInstanceUpdate.md)| Parameters for updating a Power Cloud instance |
135
+
136
+ ### Return type
137
+
138
+ [**CloudInstance**](CloudInstance.md)
139
+
140
+ ### Authorization
141
+
142
+ No authorization required
143
+
144
+ ### HTTP request headers
145
+
146
+ - **Content-Type**: application/json
147
+ - **Accept**: application/json
148
+
@@ -0,0 +1,504 @@
1
+ # IbmCloudPower::PCloudNetworksApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**pcloud_networks_delete**](PCloudNetworksApi.md#pcloud_networks_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id} | Delete a network
8
+ [**pcloud_networks_get**](PCloudNetworksApi.md#pcloud_networks_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id} | Get a network's current state or information
9
+ [**pcloud_networks_getall**](PCloudNetworksApi.md#pcloud_networks_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks | Get all networks in this cloud instance
10
+ [**pcloud_networks_ports_delete**](PCloudNetworksApi.md#pcloud_networks_ports_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id} | Delete a network port
11
+ [**pcloud_networks_ports_get**](PCloudNetworksApi.md#pcloud_networks_ports_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id} | Get a port's information
12
+ [**pcloud_networks_ports_getall**](PCloudNetworksApi.md#pcloud_networks_ports_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports | Get all ports for this network
13
+ [**pcloud_networks_ports_post**](PCloudNetworksApi.md#pcloud_networks_ports_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports | Perform port addition, deletion, and listing
14
+ [**pcloud_networks_ports_put**](PCloudNetworksApi.md#pcloud_networks_ports_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id} | Update a port's information
15
+ [**pcloud_networks_post**](PCloudNetworksApi.md#pcloud_networks_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks | Create a new network
16
+ [**pcloud_networks_put**](PCloudNetworksApi.md#pcloud_networks_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id} | Update a network
17
+
18
+
19
+
20
+ ## pcloud_networks_delete
21
+
22
+ > Object pcloud_networks_delete(cloud_instance_id, network_id)
23
+
24
+ Delete a network
25
+
26
+ ### Example
27
+
28
+ ```ruby
29
+ # load the gem
30
+ require 'ibm_cloud_power'
31
+
32
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
33
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
34
+ network_id = 'network_id_example' # String | Network ID
35
+
36
+ begin
37
+ #Delete a network
38
+ result = api_instance.pcloud_networks_delete(cloud_instance_id, network_id)
39
+ p result
40
+ rescue IbmCloudPower::ApiError => e
41
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_delete: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
51
+ **network_id** | **String**| Network ID |
52
+
53
+ ### Return type
54
+
55
+ **Object**
56
+
57
+ ### Authorization
58
+
59
+ No authorization required
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: Not defined
64
+ - **Accept**: */*
65
+
66
+
67
+ ## pcloud_networks_get
68
+
69
+ > Network pcloud_networks_get(cloud_instance_id, network_id)
70
+
71
+ Get a network's current state or information
72
+
73
+ ### Example
74
+
75
+ ```ruby
76
+ # load the gem
77
+ require 'ibm_cloud_power'
78
+
79
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
80
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
81
+ network_id = 'network_id_example' # String | Network ID
82
+
83
+ begin
84
+ #Get a network's current state or information
85
+ result = api_instance.pcloud_networks_get(cloud_instance_id, network_id)
86
+ p result
87
+ rescue IbmCloudPower::ApiError => e
88
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_get: #{e}"
89
+ end
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+
95
+ Name | Type | Description | Notes
96
+ ------------- | ------------- | ------------- | -------------
97
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
98
+ **network_id** | **String**| Network ID |
99
+
100
+ ### Return type
101
+
102
+ [**Network**](Network.md)
103
+
104
+ ### Authorization
105
+
106
+ No authorization required
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+ ## pcloud_networks_getall
115
+
116
+ > Networks pcloud_networks_getall(cloud_instance_id, opts)
117
+
118
+ Get all networks in this cloud instance
119
+
120
+ ### Example
121
+
122
+ ```ruby
123
+ # load the gem
124
+ require 'ibm_cloud_power'
125
+
126
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
127
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
128
+ opts = {
129
+ filter: 'filter_example' # String | A filter expression that filters resources listed in the response
130
+ }
131
+
132
+ begin
133
+ #Get all networks in this cloud instance
134
+ result = api_instance.pcloud_networks_getall(cloud_instance_id, opts)
135
+ p result
136
+ rescue IbmCloudPower::ApiError => e
137
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_getall: #{e}"
138
+ end
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+
144
+ Name | Type | Description | Notes
145
+ ------------- | ------------- | ------------- | -------------
146
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
147
+ **filter** | **String**| A filter expression that filters resources listed in the response | [optional]
148
+
149
+ ### Return type
150
+
151
+ [**Networks**](Networks.md)
152
+
153
+ ### Authorization
154
+
155
+ No authorization required
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: Not defined
160
+ - **Accept**: application/json
161
+
162
+
163
+ ## pcloud_networks_ports_delete
164
+
165
+ > Object pcloud_networks_ports_delete(cloud_instance_id, network_id, port_id)
166
+
167
+ Delete a network port
168
+
169
+ ### Example
170
+
171
+ ```ruby
172
+ # load the gem
173
+ require 'ibm_cloud_power'
174
+
175
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
176
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
177
+ network_id = 'network_id_example' # String | Network ID
178
+ port_id = 'port_id_example' # String | Port ID
179
+
180
+ begin
181
+ #Delete a network port
182
+ result = api_instance.pcloud_networks_ports_delete(cloud_instance_id, network_id, port_id)
183
+ p result
184
+ rescue IbmCloudPower::ApiError => e
185
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_delete: #{e}"
186
+ end
187
+ ```
188
+
189
+ ### Parameters
190
+
191
+
192
+ Name | Type | Description | Notes
193
+ ------------- | ------------- | ------------- | -------------
194
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
195
+ **network_id** | **String**| Network ID |
196
+ **port_id** | **String**| Port ID |
197
+
198
+ ### Return type
199
+
200
+ **Object**
201
+
202
+ ### Authorization
203
+
204
+ No authorization required
205
+
206
+ ### HTTP request headers
207
+
208
+ - **Content-Type**: Not defined
209
+ - **Accept**: application/json
210
+
211
+
212
+ ## pcloud_networks_ports_get
213
+
214
+ > NetworkPort pcloud_networks_ports_get(cloud_instance_id, network_id, port_id)
215
+
216
+ Get a port's information
217
+
218
+ ### Example
219
+
220
+ ```ruby
221
+ # load the gem
222
+ require 'ibm_cloud_power'
223
+
224
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
225
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
226
+ network_id = 'network_id_example' # String | Network ID
227
+ port_id = 'port_id_example' # String | Port ID
228
+
229
+ begin
230
+ #Get a port's information
231
+ result = api_instance.pcloud_networks_ports_get(cloud_instance_id, network_id, port_id)
232
+ p result
233
+ rescue IbmCloudPower::ApiError => e
234
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_get: #{e}"
235
+ end
236
+ ```
237
+
238
+ ### Parameters
239
+
240
+
241
+ Name | Type | Description | Notes
242
+ ------------- | ------------- | ------------- | -------------
243
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
244
+ **network_id** | **String**| Network ID |
245
+ **port_id** | **String**| Port ID |
246
+
247
+ ### Return type
248
+
249
+ [**NetworkPort**](NetworkPort.md)
250
+
251
+ ### Authorization
252
+
253
+ No authorization required
254
+
255
+ ### HTTP request headers
256
+
257
+ - **Content-Type**: Not defined
258
+ - **Accept**: application/json, applicaton/json
259
+
260
+
261
+ ## pcloud_networks_ports_getall
262
+
263
+ > NetworkPorts pcloud_networks_ports_getall(cloud_instance_id, network_id)
264
+
265
+ Get all ports for this network
266
+
267
+ ### Example
268
+
269
+ ```ruby
270
+ # load the gem
271
+ require 'ibm_cloud_power'
272
+
273
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
274
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
275
+ network_id = 'network_id_example' # String | Network ID
276
+
277
+ begin
278
+ #Get all ports for this network
279
+ result = api_instance.pcloud_networks_ports_getall(cloud_instance_id, network_id)
280
+ p result
281
+ rescue IbmCloudPower::ApiError => e
282
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_getall: #{e}"
283
+ end
284
+ ```
285
+
286
+ ### Parameters
287
+
288
+
289
+ Name | Type | Description | Notes
290
+ ------------- | ------------- | ------------- | -------------
291
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
292
+ **network_id** | **String**| Network ID |
293
+
294
+ ### Return type
295
+
296
+ [**NetworkPorts**](NetworkPorts.md)
297
+
298
+ ### Authorization
299
+
300
+ No authorization required
301
+
302
+ ### HTTP request headers
303
+
304
+ - **Content-Type**: Not defined
305
+ - **Accept**: application/json
306
+
307
+
308
+ ## pcloud_networks_ports_post
309
+
310
+ > NetworkPort pcloud_networks_ports_post(cloud_instance_id, network_id, opts)
311
+
312
+ Perform port addition, deletion, and listing
313
+
314
+ ### Example
315
+
316
+ ```ruby
317
+ # load the gem
318
+ require 'ibm_cloud_power'
319
+
320
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
321
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
322
+ network_id = 'network_id_example' # String | Network ID
323
+ opts = {
324
+ body: IbmCloudPower::NetworkPortCreate.new # NetworkPortCreate | Create a Network Port
325
+ }
326
+
327
+ begin
328
+ #Perform port addition, deletion, and listing
329
+ result = api_instance.pcloud_networks_ports_post(cloud_instance_id, network_id, opts)
330
+ p result
331
+ rescue IbmCloudPower::ApiError => e
332
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_post: #{e}"
333
+ end
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+
339
+ Name | Type | Description | Notes
340
+ ------------- | ------------- | ------------- | -------------
341
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
342
+ **network_id** | **String**| Network ID |
343
+ **body** | [**NetworkPortCreate**](NetworkPortCreate.md)| Create a Network Port | [optional]
344
+
345
+ ### Return type
346
+
347
+ [**NetworkPort**](NetworkPort.md)
348
+
349
+ ### Authorization
350
+
351
+ No authorization required
352
+
353
+ ### HTTP request headers
354
+
355
+ - **Content-Type**: application/json
356
+ - **Accept**: application/json
357
+
358
+
359
+ ## pcloud_networks_ports_put
360
+
361
+ > NetworkPort pcloud_networks_ports_put(cloud_instance_id, network_id, port_id, body)
362
+
363
+ Update a port's information
364
+
365
+ ### Example
366
+
367
+ ```ruby
368
+ # load the gem
369
+ require 'ibm_cloud_power'
370
+
371
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
372
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
373
+ network_id = 'network_id_example' # String | Network ID
374
+ port_id = 'port_id_example' # String | Port ID
375
+ body = IbmCloudPower::NetworkPortUpdate.new # NetworkPortUpdate | Parameters for updating a Port
376
+
377
+ begin
378
+ #Update a port's information
379
+ result = api_instance.pcloud_networks_ports_put(cloud_instance_id, network_id, port_id, body)
380
+ p result
381
+ rescue IbmCloudPower::ApiError => e
382
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_put: #{e}"
383
+ end
384
+ ```
385
+
386
+ ### Parameters
387
+
388
+
389
+ Name | Type | Description | Notes
390
+ ------------- | ------------- | ------------- | -------------
391
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
392
+ **network_id** | **String**| Network ID |
393
+ **port_id** | **String**| Port ID |
394
+ **body** | [**NetworkPortUpdate**](NetworkPortUpdate.md)| Parameters for updating a Port |
395
+
396
+ ### Return type
397
+
398
+ [**NetworkPort**](NetworkPort.md)
399
+
400
+ ### Authorization
401
+
402
+ No authorization required
403
+
404
+ ### HTTP request headers
405
+
406
+ - **Content-Type**: application/json
407
+ - **Accept**: application/json
408
+
409
+
410
+ ## pcloud_networks_post
411
+
412
+ > Network pcloud_networks_post(cloud_instance_id, body)
413
+
414
+ Create a new network
415
+
416
+ ### Example
417
+
418
+ ```ruby
419
+ # load the gem
420
+ require 'ibm_cloud_power'
421
+
422
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
423
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
424
+ body = IbmCloudPower::NetworkCreate.new # NetworkCreate | Parameters for the creation of a new network
425
+
426
+ begin
427
+ #Create a new network
428
+ result = api_instance.pcloud_networks_post(cloud_instance_id, body)
429
+ p result
430
+ rescue IbmCloudPower::ApiError => e
431
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_post: #{e}"
432
+ end
433
+ ```
434
+
435
+ ### Parameters
436
+
437
+
438
+ Name | Type | Description | Notes
439
+ ------------- | ------------- | ------------- | -------------
440
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
441
+ **body** | [**NetworkCreate**](NetworkCreate.md)| Parameters for the creation of a new network |
442
+
443
+ ### Return type
444
+
445
+ [**Network**](Network.md)
446
+
447
+ ### Authorization
448
+
449
+ No authorization required
450
+
451
+ ### HTTP request headers
452
+
453
+ - **Content-Type**: application/json
454
+ - **Accept**: application/json
455
+
456
+
457
+ ## pcloud_networks_put
458
+
459
+ > Network pcloud_networks_put(cloud_instance_id, network_id, body)
460
+
461
+ Update a network
462
+
463
+ ### Example
464
+
465
+ ```ruby
466
+ # load the gem
467
+ require 'ibm_cloud_power'
468
+
469
+ api_instance = IbmCloudPower::PCloudNetworksApi.new
470
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
471
+ network_id = 'network_id_example' # String | Network ID
472
+ body = IbmCloudPower::NetworkUpdate.new # NetworkUpdate | Parameters to update a Network
473
+
474
+ begin
475
+ #Update a network
476
+ result = api_instance.pcloud_networks_put(cloud_instance_id, network_id, body)
477
+ p result
478
+ rescue IbmCloudPower::ApiError => e
479
+ puts "Exception when calling PCloudNetworksApi->pcloud_networks_put: #{e}"
480
+ end
481
+ ```
482
+
483
+ ### Parameters
484
+
485
+
486
+ Name | Type | Description | Notes
487
+ ------------- | ------------- | ------------- | -------------
488
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
489
+ **network_id** | **String**| Network ID |
490
+ **body** | [**NetworkUpdate**](NetworkUpdate.md)| Parameters to update a Network |
491
+
492
+ ### Return type
493
+
494
+ [**Network**](Network.md)
495
+
496
+ ### Authorization
497
+
498
+ No authorization required
499
+
500
+ ### HTTP request headers
501
+
502
+ - **Content-Type**: application/json
503
+ - **Accept**: application/json
504
+