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
@@ -0,0 +1,23 @@
1
+ # IbmCloudPower::CloudConnectionCreate
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | name of the cloud connection |
8
+ **speed** | **Integer** | speed of the cloud connection (speed in megabits per second) |
9
+ **global_routing** | **Boolean** | enable global routing for this cloud connection (default=false) | [optional]
10
+ **metered** | **Boolean** | enable metered for this cloud connection (default=false) | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'IbmCloudPower'
16
+
17
+ instance = IbmCloudPower::CloudConnectionCreate.new(name: null,
18
+ speed: null,
19
+ global_routing: null,
20
+ metered: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,19 @@
1
+ # IbmCloudPower::CloudConnectionEndpointClassic
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **enabled** | **Boolean** | enable classic endpoint destination (default=false) | [optional]
8
+ **gre** | [**CloudConnectionEndpointGRE**](CloudConnectionEndpointGRE.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'IbmCloudPower'
14
+
15
+ instance = IbmCloudPower::CloudConnectionEndpointClassic.new(enabled: null,
16
+ gre: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # IbmCloudPower::CloudConnectionEndpointGRE
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **enabled** | **Boolean** | enable gre for this cloud connection (default=false) | [optional]
8
+ **tunnels** | [**Array<CloudConnectionGRETunnel>**](CloudConnectionGRETunnel.md) | gre tunnels configured | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'IbmCloudPower'
14
+
15
+ instance = IbmCloudPower::CloudConnectionEndpointGRE.new(enabled: null,
16
+ tunnels: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,19 @@
1
+ # IbmCloudPower::CloudConnectionEndpointVPC
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **enabled** | **Boolean** | enable vpc for this cloud connection (default=false) | [optional]
8
+ **vpcs** | [**Array<CloudConnectionVPC>**](CloudConnectionVPC.md) | vpc connections | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'IbmCloudPower'
14
+
15
+ instance = IbmCloudPower::CloudConnectionEndpointVPC.new(enabled: null,
16
+ vpcs: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,21 @@
1
+ # IbmCloudPower::CloudConnectionGRETunnel
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **source_ip_address** | **String** | gre auto-assigned source IP address | [optional]
8
+ **dest_ip_address** | **String** | gre destination IP address |
9
+ **cidr** | **String** | gre network in CIDR notation (192.168.0.0/24) |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'IbmCloudPower'
15
+
16
+ instance = IbmCloudPower::CloudConnectionGRETunnel.new(source_ip_address: null,
17
+ dest_ip_address: null,
18
+ cidr: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,16 @@
1
+ # IbmCloudPower::CloudConnectionSpeed
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'IbmCloudPower'
12
+
13
+ instance = IbmCloudPower::CloudConnectionSpeed.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,27 @@
1
+ # IbmCloudPower::CloudConnectionUpdate
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | name of the cloud connection | [optional]
8
+ **speed** | **Integer** | speed of the cloud connection (speed in megabits per second) | [optional]
9
+ **global_routing** | **Boolean** | enable global routing for this cloud connection (default=false) | [optional]
10
+ **metered** | **Boolean** | enable metered for this cloud connection (default=false) | [optional]
11
+ **classic** | [**CloudConnectionEndpointClassic**](CloudConnectionEndpointClassic.md) | | [optional]
12
+ **vpc** | [**CloudConnectionEndpointVPC**](CloudConnectionEndpointVPC.md) | | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'IbmCloudPower'
18
+
19
+ instance = IbmCloudPower::CloudConnectionUpdate.new(name: null,
20
+ speed: null,
21
+ global_routing: null,
22
+ metered: null,
23
+ classic: null,
24
+ vpc: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,19 @@
1
+ # IbmCloudPower::CloudConnectionVPC
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **vpc_id** | **String** | CRN of the specific service |
8
+ **name** | **String** | vpc name | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'IbmCloudPower'
14
+
15
+ instance = IbmCloudPower::CloudConnectionVPC.new(vpc_id: null,
16
+ name: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # IbmCloudPower::CloudConnectionVirtualPrivateClouds
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **virtual_private_clouds** | [**Array<CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds>**](CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md) | list of available virtual private clouds |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'IbmCloudPower'
13
+
14
+ instance = IbmCloudPower::CloudConnectionVirtualPrivateClouds.new(virtual_private_clouds: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,23 @@
1
+ # IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **classic_access** | **Boolean** | indicates if vpc uses classic architecture |
8
+ **vpc_id** | **String** | CRN of the specific service |
9
+ **name** | **String** | name for the vpc |
10
+ **status** | **String** | status of this vpc |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'IbmCloudPower'
16
+
17
+ instance = IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.new(classic_access: null,
18
+ vpc_id: null,
19
+ name: null,
20
+ status: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,17 @@
1
+ # IbmCloudPower::CloudConnections
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **cloud_connections** | [**Array<CloudConnection>**](CloudConnection.md) | Cloud Connections |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'IbmCloudPower'
13
+
14
+ instance = IbmCloudPower::CloudConnections.new(cloud_connections: null)
15
+ ```
16
+
17
+
@@ -4,13 +4,13 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **disk_type** | **String** | Type of Disk, required if affinityPolicy not used | [optional]
8
- **volume_pool** | **String** | Volume pool where the volume will be located | [optional]
7
+ **disk_type** | **String** | Type of disk, required if affinityPolicy is not provided, otherwise ignored | [optional]
9
8
  **name** | **String** | Volume Name |
10
9
  **size** | **Float** | Volume Size (GB) |
11
10
  **shareable** | **Boolean** | Indicates if the volume is shareable between VMs | [optional]
12
- **affinity_policy** | **String** | Affinity policy for data volume being created; requires affinityVolume to be specified | [optional]
13
- **affinity_volume** | **String** | Volume (ID or Name)to base volume affinity policy against; required if affinityPolicy provided | [optional]
11
+ **affinity_policy** | **String** | Affinity policy for data volume being created; requires affinityPVMInstance or affinityVolume to be specified; | [optional]
12
+ **affinity_volume** | **String** | Volume (ID or Name) to base volume affinity policy against; required if affinityPolicy is provided and affinityPVMInstance is not provided | [optional]
13
+ **affinity_pvm_instance** | **String** | PVM Instance (ID or Name) to base volume affinity policy against; required if affinityPolicy is provided and affinityVolume is not provided | [optional]
14
14
 
15
15
  ## Code Sample
16
16
 
@@ -18,12 +18,12 @@ Name | Type | Description | Notes
18
18
  require 'IbmCloudPower'
19
19
 
20
20
  instance = IbmCloudPower::CreateDataVolume.new(disk_type: null,
21
- volume_pool: null,
22
21
  name: null,
23
22
  size: null,
24
23
  shareable: null,
25
24
  affinity_policy: null,
26
- affinity_volume: null)
25
+ affinity_volume: null,
26
+ affinity_pvm_instance: null)
27
27
  ```
28
28
 
29
29
 
data/docs/CreateImage.md CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **source** | **String** | Source of the image |
8
- **image_id** | **String** | Image ID of existing source image; required for copy image | [optional]
9
- **image_name** | **String** | Name to give created image; required for import image | [optional]
7
+ **source** | **String** | Source of the image. The root-project value is used to import an available stock image into a PCloud instance image catalog. The url value is used to import a custom image from a Cloud storage account into a PCloud instance image catalog. |
8
+ **image_id** | **String** | Image ID of existing stock image; required for copy image | [optional]
9
+ **image_name** | **String** | Name to specify a custom image that is imported from Cloud Object Storage. You must not use this property when you import an available stock image. Stock image names cannot be changed. | [optional]
10
10
  **image_path** | **String** | (deprecated - replaced by region, imageFilename and bucketName) Path to image starting with service endpoint and ending with image filename | [optional]
11
11
  **region** | **String** | Cloud Storage Region; only required to access IBM Cloud Storage | [optional]
12
12
  **image_filename** | **String** | Cloud Storage image filename; required for import image | [optional]
data/docs/Image.md CHANGED
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **description** | **String** | Description | [optional]
11
11
  **size** | **Float** | Image Size |
12
12
  **storage_type** | **String** | Storage type for image |
13
+ **storage_pool** | **String** | Storage pool where the image is located |
13
14
  **creation_date** | **DateTime** | Creation Date |
14
15
  **last_update_date** | **DateTime** | Last Update Date |
15
16
  **specifications** | [**ImageSpecifications**](ImageSpecifications.md) | | [optional]
@@ -28,6 +29,7 @@ instance = IbmCloudPower::Image.new(image_id: null,
28
29
  description: null,
29
30
  size: null,
30
31
  storage_type: null,
32
+ storage_pool: null,
31
33
  creation_date: null,
32
34
  last_update_date: null,
33
35
  specifications: null,
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **state** | **String** | Image State |
10
10
  **description** | **String** | Description |
11
11
  **storage_type** | **String** | Storage type for image |
12
+ **storage_pool** | **String** | Storage pool where the image is located |
12
13
  **creation_date** | **DateTime** | Creation Date |
13
14
  **last_update_date** | **DateTime** | Last Update Date |
14
15
  **specifications** | [**ImageSpecifications**](ImageSpecifications.md) | |
@@ -24,6 +25,7 @@ instance = IbmCloudPower::ImageReference.new(image_id: null,
24
25
  state: null,
25
26
  description: null,
26
27
  storage_type: null,
28
+ storage_pool: null,
27
29
  creation_date: null,
28
30
  last_update_date: null,
29
31
  specifications: null,
@@ -0,0 +1,21 @@
1
+ # IbmCloudPower::MaximumStorageAllocation
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **storage_type** | **String** | Storage type |
8
+ **storage_pool** | **String** | Storage pool |
9
+ **max_allocation_size** | **Integer** | Maximum allocation storage size (GB) |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'IbmCloudPower'
15
+
16
+ instance = IbmCloudPower::MaximumStorageAllocation.new(storage_type: null,
17
+ storage_pool: null,
18
+ max_allocation_size: null)
19
+ ```
20
+
21
+
@@ -8,9 +8,10 @@ Name | Type | Description | Notes
8
8
  **size** | **Integer** | Volume Size (GB) |
9
9
  **count** | **Integer** | Number of volumes to create | [optional]
10
10
  **shareable** | **Boolean** | Indicates if the volume is shareable between VMs | [optional]
11
- **disk_type** | **String** | Type of Disk, required if affinityPolicy not used | [optional]
12
- **affinity_policy** | **String** | Affinity policy for data volume being created; requires affinityVolume to be specified | [optional]
13
- **affinity_volume** | **String** | Volume (ID or Name)to base volume affinity policy against; required if affinityPolicy provided | [optional]
11
+ **disk_type** | **String** | Type of Disk; required if affinityPolicy is not provided, otherwise ignored | [optional]
12
+ **affinity_policy** | **String** | Affinity policy for data volume being created; requires affinityPVMInstance or affinityVolume to be specified; | [optional]
13
+ **affinity_volume** | **String** | Volume (ID or Name) to base volume affinity policy against; required if affinityPolicy is provided and affinityPVMInstance is not provided | [optional]
14
+ **affinity_pvm_instance** | **String** | PVM Instance (ID or Name)to base volume affinity policy against; required if affinityPolicy is provided and affinityVolume is not provided | [optional]
14
15
 
15
16
  ## Code Sample
16
17
 
@@ -23,7 +24,8 @@ instance = IbmCloudPower::MultiVolumesCreate.new(name: null,
23
24
  shareable: null,
24
25
  disk_type: null,
25
26
  affinity_policy: null,
26
- affinity_volume: null)
27
+ affinity_volume: null,
28
+ affinity_pvm_instance: null)
27
29
  ```
28
30
 
29
31
 
data/docs/Network.md CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **network_id** | **String** | Unique Network ID |
8
8
  **name** | **String** | Network Name |
9
- **type** | **String** | Type of Network {vlan, vxlan} | [default to 'vlan']
9
+ **type** | **String** | Type of Network {vlan, pub-vlan} | [default to 'vlan']
10
10
  **vlan_id** | **Float** | VLAN ID |
11
11
  **cidr** | **String** | Network in CIDR notation (192.168.0.0/24) |
12
12
  **gateway** | **String** | Gateway IP Address | [optional]
data/docs/NetworkPort.md CHANGED
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **status** | **String** | Te |
10
10
  **mac_address** | **String** | The mac address of the network interface |
11
11
  **ip_address** | **String** | The ip address of this port |
12
+ **external_ip** | **String** | The external ip address (for pub-vlan networks) | [optional]
12
13
  **pvm_instance** | [**NetworkPortPvmInstance**](NetworkPortPvmInstance.md) | | [optional]
13
14
  **href** | **String** | Link to port resource | [optional]
14
15
 
@@ -22,6 +23,7 @@ instance = IbmCloudPower::NetworkPort.new(port_id: null,
22
23
  status: null,
23
24
  mac_address: null,
24
25
  ip_address: null,
26
+ external_ip: null,
25
27
  pvm_instance: null,
26
28
  href: null)
27
29
  ```
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **network_id** | **String** | Unique Network ID |
8
8
  **name** | **String** | Network Name |
9
9
  **vlan_id** | **Float** | VLAN ID |
10
- **type** | **String** | Type of Network {pub-vlan, vlan, vxlan} | [default to 'vlan']
10
+ **type** | **String** | Type of Network {vlan, pub-vlan} | [default to 'vlan']
11
11
  **jumbo** | **Boolean** | MTU Jumbo Network enabled |
12
12
  **href** | **String** | Link to Network resource |
13
13
 
@@ -0,0 +1,394 @@
1
+ # IbmCloudPower::PCloudCloudConnectionsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**pcloud_cloudconnections_delete**](PCloudCloudConnectionsApi.md#pcloud_cloudconnections_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id} | Delete a Cloud connection
8
+ [**pcloud_cloudconnections_get**](PCloudCloudConnectionsApi.md#pcloud_cloudconnections_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id} | Get a Cloud connection's state or information
9
+ [**pcloud_cloudconnections_getall**](PCloudCloudConnectionsApi.md#pcloud_cloudconnections_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections | Get all Cloud connections in a specific cloud instance
10
+ [**pcloud_cloudconnections_networks_delete**](PCloudCloudConnectionsApi.md#pcloud_cloudconnections_networks_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}/networks/{network_id} | Delete a network from a Cloud connection
11
+ [**pcloud_cloudconnections_networks_put**](PCloudCloudConnectionsApi.md#pcloud_cloudconnections_networks_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}/networks/{network_id} | Add a network to the Cloud connection
12
+ [**pcloud_cloudconnections_post**](PCloudCloudConnectionsApi.md#pcloud_cloudconnections_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections | Create a new Cloud connection
13
+ [**pcloud_cloudconnections_put**](PCloudCloudConnectionsApi.md#pcloud_cloudconnections_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id} | Update a Cloud connection
14
+ [**pcloud_cloudconnections_virtualprivateclouds_getall**](PCloudCloudConnectionsApi.md#pcloud_cloudconnections_virtualprivateclouds_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections-virtual-private-clouds | Get all virtual private clouds in a specific cloud instance
15
+
16
+
17
+
18
+ ## pcloud_cloudconnections_delete
19
+
20
+ > Object pcloud_cloudconnections_delete(cloud_instance_id, cloud_connection_id)
21
+
22
+ Delete a Cloud connection
23
+
24
+ ### Example
25
+
26
+ ```ruby
27
+ # load the gem
28
+ require 'ibm_cloud_power'
29
+
30
+ api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new
31
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
32
+ cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID
33
+
34
+ begin
35
+ #Delete a Cloud connection
36
+ result = api_instance.pcloud_cloudconnections_delete(cloud_instance_id, cloud_connection_id)
37
+ p result
38
+ rescue IbmCloudPower::ApiError => e
39
+ puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_delete: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
49
+ **cloud_connection_id** | **String**| Cloud connection ID |
50
+
51
+ ### Return type
52
+
53
+ **Object**
54
+
55
+ ### Authorization
56
+
57
+ No authorization required
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: Not defined
62
+ - **Accept**: */*, application/json,
63
+
64
+
65
+ ## pcloud_cloudconnections_get
66
+
67
+ > CloudConnection pcloud_cloudconnections_get(cloud_instance_id, cloud_connection_id)
68
+
69
+ Get a Cloud connection's state or information
70
+
71
+ ### Example
72
+
73
+ ```ruby
74
+ # load the gem
75
+ require 'ibm_cloud_power'
76
+
77
+ api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new
78
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
79
+ cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID
80
+
81
+ begin
82
+ #Get a Cloud connection's state or information
83
+ result = api_instance.pcloud_cloudconnections_get(cloud_instance_id, cloud_connection_id)
84
+ p result
85
+ rescue IbmCloudPower::ApiError => e
86
+ puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_get: #{e}"
87
+ end
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+
93
+ Name | Type | Description | Notes
94
+ ------------- | ------------- | ------------- | -------------
95
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
96
+ **cloud_connection_id** | **String**| Cloud connection ID |
97
+
98
+ ### Return type
99
+
100
+ [**CloudConnection**](CloudConnection.md)
101
+
102
+ ### Authorization
103
+
104
+ No authorization required
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: Not defined
109
+ - **Accept**: application/json
110
+
111
+
112
+ ## pcloud_cloudconnections_getall
113
+
114
+ > CloudConnections pcloud_cloudconnections_getall(cloud_instance_id)
115
+
116
+ Get all Cloud connections in a specific cloud instance
117
+
118
+ ### Example
119
+
120
+ ```ruby
121
+ # load the gem
122
+ require 'ibm_cloud_power'
123
+
124
+ api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new
125
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
126
+
127
+ begin
128
+ #Get all Cloud connections in a specific cloud instance
129
+ result = api_instance.pcloud_cloudconnections_getall(cloud_instance_id)
130
+ p result
131
+ rescue IbmCloudPower::ApiError => e
132
+ puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_getall: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+
139
+ Name | Type | Description | Notes
140
+ ------------- | ------------- | ------------- | -------------
141
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
142
+
143
+ ### Return type
144
+
145
+ [**CloudConnections**](CloudConnections.md)
146
+
147
+ ### Authorization
148
+
149
+ No authorization required
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: application/json
155
+
156
+
157
+ ## pcloud_cloudconnections_networks_delete
158
+
159
+ > CloudConnection pcloud_cloudconnections_networks_delete(cloud_instance_id, cloud_connection_id, network_id)
160
+
161
+ Delete a network from a Cloud connection
162
+
163
+ ### Example
164
+
165
+ ```ruby
166
+ # load the gem
167
+ require 'ibm_cloud_power'
168
+
169
+ api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new
170
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
171
+ cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID
172
+ network_id = 'network_id_example' # String | Network ID
173
+
174
+ begin
175
+ #Delete a network from a Cloud connection
176
+ result = api_instance.pcloud_cloudconnections_networks_delete(cloud_instance_id, cloud_connection_id, network_id)
177
+ p result
178
+ rescue IbmCloudPower::ApiError => e
179
+ puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_networks_delete: #{e}"
180
+ end
181
+ ```
182
+
183
+ ### Parameters
184
+
185
+
186
+ Name | Type | Description | Notes
187
+ ------------- | ------------- | ------------- | -------------
188
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
189
+ **cloud_connection_id** | **String**| Cloud connection ID |
190
+ **network_id** | **String**| Network ID |
191
+
192
+ ### Return type
193
+
194
+ [**CloudConnection**](CloudConnection.md)
195
+
196
+ ### Authorization
197
+
198
+ No authorization required
199
+
200
+ ### HTTP request headers
201
+
202
+ - **Content-Type**: Not defined
203
+ - **Accept**: */*, application/json,
204
+
205
+
206
+ ## pcloud_cloudconnections_networks_put
207
+
208
+ > CloudConnection pcloud_cloudconnections_networks_put(cloud_instance_id, cloud_connection_id, network_id)
209
+
210
+ Add a network to the Cloud connection
211
+
212
+ ### Example
213
+
214
+ ```ruby
215
+ # load the gem
216
+ require 'ibm_cloud_power'
217
+
218
+ api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new
219
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
220
+ cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID
221
+ network_id = 'network_id_example' # String | Network ID
222
+
223
+ begin
224
+ #Add a network to the Cloud connection
225
+ result = api_instance.pcloud_cloudconnections_networks_put(cloud_instance_id, cloud_connection_id, network_id)
226
+ p result
227
+ rescue IbmCloudPower::ApiError => e
228
+ puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_networks_put: #{e}"
229
+ end
230
+ ```
231
+
232
+ ### Parameters
233
+
234
+
235
+ Name | Type | Description | Notes
236
+ ------------- | ------------- | ------------- | -------------
237
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
238
+ **cloud_connection_id** | **String**| Cloud connection ID |
239
+ **network_id** | **String**| Network ID |
240
+
241
+ ### Return type
242
+
243
+ [**CloudConnection**](CloudConnection.md)
244
+
245
+ ### Authorization
246
+
247
+ No authorization required
248
+
249
+ ### HTTP request headers
250
+
251
+ - **Content-Type**: Not defined
252
+ - **Accept**: application/json
253
+
254
+
255
+ ## pcloud_cloudconnections_post
256
+
257
+ > CloudConnection pcloud_cloudconnections_post(cloud_instance_id, body)
258
+
259
+ Create a new Cloud connection
260
+
261
+ ### Example
262
+
263
+ ```ruby
264
+ # load the gem
265
+ require 'ibm_cloud_power'
266
+
267
+ api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new
268
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
269
+ body = IbmCloudPower::CloudConnectionCreate.new # CloudConnectionCreate | Parameters for the creation of a new Cloud connection
270
+
271
+ begin
272
+ #Create a new Cloud connection
273
+ result = api_instance.pcloud_cloudconnections_post(cloud_instance_id, body)
274
+ p result
275
+ rescue IbmCloudPower::ApiError => e
276
+ puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_post: #{e}"
277
+ end
278
+ ```
279
+
280
+ ### Parameters
281
+
282
+
283
+ Name | Type | Description | Notes
284
+ ------------- | ------------- | ------------- | -------------
285
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
286
+ **body** | [**CloudConnectionCreate**](CloudConnectionCreate.md)| Parameters for the creation of a new Cloud connection |
287
+
288
+ ### Return type
289
+
290
+ [**CloudConnection**](CloudConnection.md)
291
+
292
+ ### Authorization
293
+
294
+ No authorization required
295
+
296
+ ### HTTP request headers
297
+
298
+ - **Content-Type**: application/json
299
+ - **Accept**: application/json
300
+
301
+
302
+ ## pcloud_cloudconnections_put
303
+
304
+ > CloudConnection pcloud_cloudconnections_put(cloud_instance_id, cloud_connection_id, body)
305
+
306
+ Update a Cloud connection
307
+
308
+ ### Example
309
+
310
+ ```ruby
311
+ # load the gem
312
+ require 'ibm_cloud_power'
313
+
314
+ api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new
315
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
316
+ cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID
317
+ body = IbmCloudPower::CloudConnectionUpdate.new # CloudConnectionUpdate | Parameters to update a Cloud connection
318
+
319
+ begin
320
+ #Update a Cloud connection
321
+ result = api_instance.pcloud_cloudconnections_put(cloud_instance_id, cloud_connection_id, body)
322
+ p result
323
+ rescue IbmCloudPower::ApiError => e
324
+ puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_put: #{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
+ **cloud_connection_id** | **String**| Cloud connection ID |
335
+ **body** | [**CloudConnectionUpdate**](CloudConnectionUpdate.md)| Parameters to update a Cloud connection |
336
+
337
+ ### Return type
338
+
339
+ [**CloudConnection**](CloudConnection.md)
340
+
341
+ ### Authorization
342
+
343
+ No authorization required
344
+
345
+ ### HTTP request headers
346
+
347
+ - **Content-Type**: application/json
348
+ - **Accept**: application/json
349
+
350
+
351
+ ## pcloud_cloudconnections_virtualprivateclouds_getall
352
+
353
+ > CloudConnectionVirtualPrivateClouds pcloud_cloudconnections_virtualprivateclouds_getall(cloud_instance_id)
354
+
355
+ Get all virtual private clouds in a specific cloud instance
356
+
357
+ ### Example
358
+
359
+ ```ruby
360
+ # load the gem
361
+ require 'ibm_cloud_power'
362
+
363
+ api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new
364
+ cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance
365
+
366
+ begin
367
+ #Get all virtual private clouds in a specific cloud instance
368
+ result = api_instance.pcloud_cloudconnections_virtualprivateclouds_getall(cloud_instance_id)
369
+ p result
370
+ rescue IbmCloudPower::ApiError => e
371
+ puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_virtualprivateclouds_getall: #{e}"
372
+ end
373
+ ```
374
+
375
+ ### Parameters
376
+
377
+
378
+ Name | Type | Description | Notes
379
+ ------------- | ------------- | ------------- | -------------
380
+ **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance |
381
+
382
+ ### Return type
383
+
384
+ [**CloudConnectionVirtualPrivateClouds**](CloudConnectionVirtualPrivateClouds.md)
385
+
386
+ ### Authorization
387
+
388
+ No authorization required
389
+
390
+ ### HTTP request headers
391
+
392
+ - **Content-Type**: Not defined
393
+ - **Accept**: application/json
394
+