ibm_cloud_power 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +255 -0
- data/Rakefile +10 -0
- data/docs/CloneTaskReference.md +19 -0
- data/docs/CloneTaskStatus.md +23 -0
- data/docs/ClonedVolume.md +19 -0
- data/docs/ClonedVolumeDetail.md +19 -0
- data/docs/CloudInstance.md +37 -0
- data/docs/CloudInstanceCreate.md +29 -0
- data/docs/CloudInstanceReference.md +31 -0
- data/docs/CloudInstanceUpdate.md +25 -0
- data/docs/CloudInstanceUsageLimits.md +37 -0
- data/docs/CreateDataVolume.md +29 -0
- data/docs/CreateImage.md +37 -0
- data/docs/Error.md +19 -0
- data/docs/Event.md +33 -0
- data/docs/EventUser.md +21 -0
- data/docs/Events.md +17 -0
- data/docs/ExportImage.md +23 -0
- data/docs/IPAddressRange.md +19 -0
- data/docs/Image.md +39 -0
- data/docs/ImageReference.md +33 -0
- data/docs/ImageSpecifications.md +29 -0
- data/docs/ImageVolume.md +23 -0
- data/docs/Images.md +17 -0
- data/docs/MinMaxDefault.md +21 -0
- data/docs/MultiVolumesCreate.md +29 -0
- data/docs/Network.md +37 -0
- data/docs/NetworkCreate.md +29 -0
- data/docs/NetworkIpAddressMetrics.md +23 -0
- data/docs/NetworkPort.md +29 -0
- data/docs/NetworkPortCreate.md +19 -0
- data/docs/NetworkPortPvmInstance.md +19 -0
- data/docs/NetworkPortUpdate.md +19 -0
- data/docs/NetworkPorts.md +17 -0
- data/docs/NetworkReference.md +27 -0
- data/docs/NetworkUpdate.md +23 -0
- data/docs/Networks.md +17 -0
- data/docs/Operations.md +21 -0
- data/docs/PCloudEventsApi.md +114 -0
- data/docs/PCloudImagesApi.md +342 -0
- data/docs/PCloudInstancesApi.md +148 -0
- data/docs/PCloudNetworksApi.md +504 -0
- data/docs/PCloudPVMInstancesApi.md +809 -0
- data/docs/PCloudSAPApi.md +150 -0
- data/docs/PCloudSnapshotsApi.md +200 -0
- data/docs/PCloudSystemPoolsApi.md +54 -0
- data/docs/PCloudTasksApi.md +100 -0
- data/docs/PCloudTenantsApi.md +102 -0
- data/docs/PCloudTenantsSSHKeysApi.md +248 -0
- data/docs/PCloudVolumesApi.md +746 -0
- data/docs/PVMInstance.md +77 -0
- data/docs/PVMInstanceAction.md +17 -0
- data/docs/PVMInstanceAddNetwork.md +19 -0
- data/docs/PVMInstanceCapture.md +29 -0
- data/docs/PVMInstanceClone.md +31 -0
- data/docs/PVMInstanceConsole.md +17 -0
- data/docs/PVMInstanceCreate.md +53 -0
- data/docs/PVMInstanceFault.md +23 -0
- data/docs/PVMInstanceHealth.md +21 -0
- data/docs/PVMInstanceMultiCreate.md +21 -0
- data/docs/PVMInstanceNetwork.md +33 -0
- data/docs/PVMInstanceNetworks.md +17 -0
- data/docs/PVMInstanceOperation.md +19 -0
- data/docs/PVMInstanceReference.md +71 -0
- data/docs/PVMInstanceRemoveNetwork.md +17 -0
- data/docs/PVMInstanceUpdate.md +33 -0
- data/docs/PVMInstanceUpdateResponse.md +27 -0
- data/docs/PVMInstanceVolumeUpdate.md +17 -0
- data/docs/PVMInstances.md +17 -0
- data/docs/PeeringNetwork.md +21 -0
- data/docs/PinPolicy.md +16 -0
- data/docs/SAPCreate.md +33 -0
- data/docs/SAPProfile.md +25 -0
- data/docs/SAPProfileReference.md +19 -0
- data/docs/SAPProfiles.md +17 -0
- data/docs/SRC.md +19 -0
- data/docs/SSHKey.md +21 -0
- data/docs/SSHKeys.md +17 -0
- data/docs/Snapshot.md +35 -0
- data/docs/SnapshotCreate.md +21 -0
- data/docs/SnapshotCreateResponse.md +17 -0
- data/docs/SnapshotRestore.md +17 -0
- data/docs/SnapshotUpdate.md +19 -0
- data/docs/Snapshots.md +17 -0
- data/docs/SoftwareLicenses.md +25 -0
- data/docs/StockImage.md +21 -0
- data/docs/System.md +21 -0
- data/docs/SystemPool.md +31 -0
- data/docs/Task.md +33 -0
- data/docs/TaskReference.md +19 -0
- data/docs/Tenant.md +29 -0
- data/docs/TenantUpdate.md +19 -0
- data/docs/UpdateVolume.md +23 -0
- data/docs/VirtualCores.md +21 -0
- data/docs/Volume.md +41 -0
- data/docs/VolumeInfo.md +19 -0
- data/docs/VolumeReference.md +43 -0
- data/docs/Volumes.md +17 -0
- data/docs/VolumesClone.md +31 -0
- data/docs/VolumesCloneAsyncRequest.md +19 -0
- data/docs/VolumesCloneCancel.md +17 -0
- data/docs/VolumesCloneCreate.md +19 -0
- data/docs/VolumesCloneDetail.md +33 -0
- data/docs/VolumesCloneExecute.md +19 -0
- data/docs/VolumesCloneRequest.md +19 -0
- data/docs/VolumesCloneResponse.md +17 -0
- data/docs/VolumesClones.md +17 -0
- data/git_push.sh +58 -0
- data/ibm_cloud_power.gemspec +38 -0
- data/lib/ibm_cloud_power.rb +144 -0
- data/lib/ibm_cloud_power/api/p_cloud_events_api.rb +163 -0
- data/lib/ibm_cloud_power/api/p_cloud_images_api.rb +473 -0
- data/lib/ibm_cloud_power/api/p_cloud_instances_api.rb +210 -0
- data/lib/ibm_cloud_power/api/p_cloud_networks_api.rb +719 -0
- data/lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb +1166 -0
- data/lib/ibm_cloud_power/api/p_cloud_sap_api.rb +216 -0
- data/lib/ibm_cloud_power/api/p_cloud_snapshots_api.rb +288 -0
- data/lib/ibm_cloud_power/api/p_cloud_system_pools_api.rb +82 -0
- data/lib/ibm_cloud_power/api/p_cloud_tasks_api.rb +142 -0
- data/lib/ibm_cloud_power/api/p_cloud_tenants_api.rb +150 -0
- data/lib/ibm_cloud_power/api/p_cloud_tenants_ssh_keys_api.rb +356 -0
- data/lib/ibm_cloud_power/api/p_cloud_volumes_api.rb +1065 -0
- data/lib/ibm_cloud_power/api_client.rb +387 -0
- data/lib/ibm_cloud_power/api_error.rb +57 -0
- data/lib/ibm_cloud_power/configuration.rb +241 -0
- data/lib/ibm_cloud_power/models/clone_task_reference.rb +229 -0
- data/lib/ibm_cloud_power/models/clone_task_status.rb +285 -0
- data/lib/ibm_cloud_power/models/cloned_volume.rb +219 -0
- data/lib/ibm_cloud_power/models/cloned_volume_detail.rb +227 -0
- data/lib/ibm_cloud_power/models/cloud_instance.rb +361 -0
- data/lib/ibm_cloud_power/models/cloud_instance_create.rb +294 -0
- data/lib/ibm_cloud_power/models/cloud_instance_reference.rb +315 -0
- data/lib/ibm_cloud_power/models/cloud_instance_update.rb +249 -0
- data/lib/ibm_cloud_power/models/cloud_instance_usage_limits.rb +334 -0
- data/lib/ibm_cloud_power/models/create_data_volume.rb +313 -0
- data/lib/ibm_cloud_power/models/create_image.rb +360 -0
- data/lib/ibm_cloud_power/models/error.rb +217 -0
- data/lib/ibm_cloud_power/models/event.rb +357 -0
- data/lib/ibm_cloud_power/models/event_user.rb +234 -0
- data/lib/ibm_cloud_power/models/events.rb +216 -0
- data/lib/ibm_cloud_power/models/export_image.rb +249 -0
- data/lib/ibm_cloud_power/models/image.rb +351 -0
- data/lib/ibm_cloud_power/models/image_reference.rb +333 -0
- data/lib/ibm_cloud_power/models/image_specifications.rb +269 -0
- data/lib/ibm_cloud_power/models/image_volume.rb +259 -0
- data/lib/ibm_cloud_power/models/images.rb +216 -0
- data/lib/ibm_cloud_power/models/ip_address_range.rb +229 -0
- data/lib/ibm_cloud_power/models/min_max_default.rb +244 -0
- data/lib/ibm_cloud_power/models/multi_volumes_create.rb +313 -0
- data/lib/ibm_cloud_power/models/network.rb +395 -0
- data/lib/ibm_cloud_power/models/network_create.rb +314 -0
- data/lib/ibm_cloud_power/models/network_ip_address_metrics.rb +260 -0
- data/lib/ibm_cloud_power/models/network_port.rb +293 -0
- data/lib/ibm_cloud_power/models/network_port_create.rb +219 -0
- data/lib/ibm_cloud_power/models/network_port_pvm_instance.rb +220 -0
- data/lib/ibm_cloud_power/models/network_port_update.rb +219 -0
- data/lib/ibm_cloud_power/models/network_ports.rb +216 -0
- data/lib/ibm_cloud_power/models/network_reference.rb +325 -0
- data/lib/ibm_cloud_power/models/network_update.rb +243 -0
- data/lib/ibm_cloud_power/models/networks.rb +216 -0
- data/lib/ibm_cloud_power/models/operations.rb +287 -0
- data/lib/ibm_cloud_power/models/peering_network.rb +241 -0
- data/lib/ibm_cloud_power/models/pin_policy.rb +37 -0
- data/lib/ibm_cloud_power/models/pvm_instance.rb +612 -0
- data/lib/ibm_cloud_power/models/pvm_instance_action.rb +248 -0
- data/lib/ibm_cloud_power/models/pvm_instance_add_network.rb +224 -0
- data/lib/ibm_cloud_power/models/pvm_instance_capture.rb +317 -0
- data/lib/ibm_cloud_power/models/pvm_instance_clone.rb +328 -0
- data/lib/ibm_cloud_power/models/pvm_instance_console.rb +214 -0
- data/lib/ibm_cloud_power/models/pvm_instance_create.rb +483 -0
- data/lib/ibm_cloud_power/models/pvm_instance_fault.rb +240 -0
- data/lib/ibm_cloud_power/models/pvm_instance_health.rb +230 -0
- data/lib/ibm_cloud_power/models/pvm_instance_multi_create.rb +279 -0
- data/lib/ibm_cloud_power/models/pvm_instance_network.rb +290 -0
- data/lib/ibm_cloud_power/models/pvm_instance_networks.rb +216 -0
- data/lib/ibm_cloud_power/models/pvm_instance_operation.rb +262 -0
- data/lib/ibm_cloud_power/models/pvm_instance_reference.rb +566 -0
- data/lib/ibm_cloud_power/models/pvm_instance_remove_network.rb +209 -0
- data/lib/ibm_cloud_power/models/pvm_instance_update.rb +322 -0
- data/lib/ibm_cloud_power/models/pvm_instance_update_response.rb +292 -0
- data/lib/ibm_cloud_power/models/pvm_instance_volume_update.rb +214 -0
- data/lib/ibm_cloud_power/models/pvm_instances.rb +216 -0
- data/lib/ibm_cloud_power/models/sap_create.rb +311 -0
- data/lib/ibm_cloud_power/models/sap_profile.rb +310 -0
- data/lib/ibm_cloud_power/models/sap_profile_reference.rb +229 -0
- data/lib/ibm_cloud_power/models/sap_profiles.rb +216 -0
- data/lib/ibm_cloud_power/models/snapshot.rb +321 -0
- data/lib/ibm_cloud_power/models/snapshot_create.rb +236 -0
- data/lib/ibm_cloud_power/models/snapshot_create_response.rb +214 -0
- data/lib/ibm_cloud_power/models/snapshot_restore.rb +211 -0
- data/lib/ibm_cloud_power/models/snapshot_update.rb +219 -0
- data/lib/ibm_cloud_power/models/snapshots.rb +216 -0
- data/lib/ibm_cloud_power/models/software_licenses.rb +257 -0
- data/lib/ibm_cloud_power/models/src.rb +219 -0
- data/lib/ibm_cloud_power/models/ssh_key.rb +239 -0
- data/lib/ibm_cloud_power/models/ssh_keys.rb +216 -0
- data/lib/ibm_cloud_power/models/stock_image.rb +230 -0
- data/lib/ibm_cloud_power/models/system.rb +239 -0
- data/lib/ibm_cloud_power/models/system_pool.rb +277 -0
- data/lib/ibm_cloud_power/models/task.rb +334 -0
- data/lib/ibm_cloud_power/models/task_reference.rb +229 -0
- data/lib/ibm_cloud_power/models/tenant.rb +295 -0
- data/lib/ibm_cloud_power/models/tenant_update.rb +221 -0
- data/lib/ibm_cloud_power/models/update_volume.rb +239 -0
- data/lib/ibm_cloud_power/models/virtual_cores.rb +253 -0
- data/lib/ibm_cloud_power/models/volume.rb +356 -0
- data/lib/ibm_cloud_power/models/volume_info.rb +219 -0
- data/lib/ibm_cloud_power/models/volume_reference.rb +396 -0
- data/lib/ibm_cloud_power/models/volumes.rb +216 -0
- data/lib/ibm_cloud_power/models/volumes_clone.rb +284 -0
- data/lib/ibm_cloud_power/models/volumes_clone_async_request.rb +231 -0
- data/lib/ibm_cloud_power/models/volumes_clone_cancel.rb +209 -0
- data/lib/ibm_cloud_power/models/volumes_clone_create.rb +231 -0
- data/lib/ibm_cloud_power/models/volumes_clone_detail.rb +296 -0
- data/lib/ibm_cloud_power/models/volumes_clone_execute.rb +224 -0
- data/lib/ibm_cloud_power/models/volumes_clone_request.rb +231 -0
- data/lib/ibm_cloud_power/models/volumes_clone_response.rb +211 -0
- data/lib/ibm_cloud_power/models/volumes_clones.rb +211 -0
- data/lib/ibm_cloud_power/version.rb +15 -0
- data/spec/api/p_cloud_events_api_spec.rb +62 -0
- data/spec/api/p_cloud_images_api_spec.rb +117 -0
- data/spec/api/p_cloud_instances_api_spec.rb +69 -0
- data/spec/api/p_cloud_networks_api_spec.rb +161 -0
- data/spec/api/p_cloud_pvm_instances_api_spec.rb +240 -0
- data/spec/api/p_cloud_sap_api_spec.rb +70 -0
- data/spec/api/p_cloud_snapshots_api_spec.rb +83 -0
- data/spec/api/p_cloud_system_pools_api_spec.rb +46 -0
- data/spec/api/p_cloud_tasks_api_spec.rb +57 -0
- data/spec/api/p_cloud_tenants_api_spec.rb +58 -0
- data/spec/api/p_cloud_tenants_ssh_keys_api_spec.rb +95 -0
- data/spec/api/p_cloud_volumes_api_spec.rb +223 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/clone_task_reference_spec.rb +47 -0
- data/spec/models/clone_task_status_spec.rb +63 -0
- data/spec/models/cloned_volume_detail_spec.rb +47 -0
- data/spec/models/cloned_volume_spec.rb +47 -0
- data/spec/models/cloud_instance_create_spec.rb +77 -0
- data/spec/models/cloud_instance_reference_spec.rb +83 -0
- data/spec/models/cloud_instance_spec.rb +101 -0
- data/spec/models/cloud_instance_update_spec.rb +65 -0
- data/spec/models/cloud_instance_usage_limits_spec.rb +101 -0
- data/spec/models/create_data_volume_spec.rb +81 -0
- data/spec/models/create_image_spec.rb +109 -0
- data/spec/models/error_spec.rb +47 -0
- data/spec/models/event_spec.rb +93 -0
- data/spec/models/event_user_spec.rb +53 -0
- data/spec/models/events_spec.rb +41 -0
- data/spec/models/export_image_spec.rb +59 -0
- data/spec/models/image_reference_spec.rb +89 -0
- data/spec/models/image_spec.rb +107 -0
- data/spec/models/image_specifications_spec.rb +77 -0
- data/spec/models/image_volume_spec.rb +59 -0
- data/spec/models/images_spec.rb +41 -0
- data/spec/models/ip_address_range_spec.rb +47 -0
- data/spec/models/min_max_default_spec.rb +53 -0
- data/spec/models/multi_volumes_create_spec.rb +81 -0
- data/spec/models/network_create_spec.rb +81 -0
- data/spec/models/network_ip_address_metrics_spec.rb +59 -0
- data/spec/models/network_port_create_spec.rb +47 -0
- data/spec/models/network_port_pvm_instance_spec.rb +47 -0
- data/spec/models/network_port_spec.rb +77 -0
- data/spec/models/network_port_update_spec.rb +47 -0
- data/spec/models/network_ports_spec.rb +41 -0
- data/spec/models/network_reference_spec.rb +75 -0
- data/spec/models/network_spec.rb +105 -0
- data/spec/models/network_update_spec.rb +59 -0
- data/spec/models/networks_spec.rb +41 -0
- data/spec/models/operations_spec.rb +65 -0
- data/spec/models/peering_network_spec.rb +53 -0
- data/spec/models/pin_policy_spec.rb +35 -0
- data/spec/models/pvm_instance_action_spec.rb +45 -0
- data/spec/models/pvm_instance_add_network_spec.rb +47 -0
- data/spec/models/pvm_instance_capture_spec.rb +81 -0
- data/spec/models/pvm_instance_clone_spec.rb +87 -0
- data/spec/models/pvm_instance_console_spec.rb +41 -0
- data/spec/models/pvm_instance_create_spec.rb +161 -0
- data/spec/models/pvm_instance_fault_spec.rb +59 -0
- data/spec/models/pvm_instance_health_spec.rb +53 -0
- data/spec/models/pvm_instance_multi_create_spec.rb +61 -0
- data/spec/models/pvm_instance_network_spec.rb +89 -0
- data/spec/models/pvm_instance_networks_spec.rb +41 -0
- data/spec/models/pvm_instance_operation_spec.rb +51 -0
- data/spec/models/pvm_instance_reference_spec.rb +207 -0
- data/spec/models/pvm_instance_remove_network_spec.rb +41 -0
- data/spec/models/pvm_instance_spec.rb +225 -0
- data/spec/models/pvm_instance_update_response_spec.rb +75 -0
- data/spec/models/pvm_instance_update_spec.rb +93 -0
- data/spec/models/pvm_instance_volume_update_spec.rb +41 -0
- data/spec/models/pvm_instances_spec.rb +41 -0
- data/spec/models/sap_create_spec.rb +89 -0
- data/spec/models/sap_profile_reference_spec.rb +47 -0
- data/spec/models/sap_profile_spec.rb +69 -0
- data/spec/models/sap_profiles_spec.rb +41 -0
- data/spec/models/snapshot_create_response_spec.rb +41 -0
- data/spec/models/snapshot_create_spec.rb +53 -0
- data/spec/models/snapshot_restore_spec.rb +41 -0
- data/spec/models/snapshot_spec.rb +95 -0
- data/spec/models/snapshot_update_spec.rb +47 -0
- data/spec/models/snapshots_spec.rb +41 -0
- data/spec/models/software_licenses_spec.rb +65 -0
- data/spec/models/src_spec.rb +47 -0
- data/spec/models/ssh_key_spec.rb +53 -0
- data/spec/models/ssh_keys_spec.rb +41 -0
- data/spec/models/stock_image_spec.rb +53 -0
- data/spec/models/system_pool_spec.rb +83 -0
- data/spec/models/system_spec.rb +53 -0
- data/spec/models/task_reference_spec.rb +47 -0
- data/spec/models/task_spec.rb +89 -0
- data/spec/models/tenant_spec.rb +77 -0
- data/spec/models/tenant_update_spec.rb +47 -0
- data/spec/models/update_volume_spec.rb +59 -0
- data/spec/models/virtual_cores_spec.rb +53 -0
- data/spec/models/volume_info_spec.rb +47 -0
- data/spec/models/volume_reference_spec.rb +119 -0
- data/spec/models/volume_spec.rb +113 -0
- data/spec/models/volumes_clone_async_request_spec.rb +47 -0
- data/spec/models/volumes_clone_cancel_spec.rb +41 -0
- data/spec/models/volumes_clone_create_spec.rb +47 -0
- data/spec/models/volumes_clone_detail_spec.rb +89 -0
- data/spec/models/volumes_clone_execute_spec.rb +47 -0
- data/spec/models/volumes_clone_request_spec.rb +47 -0
- data/spec/models/volumes_clone_response_spec.rb +47 -0
- data/spec/models/volumes_clone_spec.rb +83 -0
- data/spec/models/volumes_clones_spec.rb +41 -0
- data/spec/models/volumes_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +519 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
# IbmCloudPower::VolumesCloneCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | Unique name within a cloud instance used to identify a volumes-clone request name can be used in replace of a volumesCloneID when used as a URL path parameter |
|
8
|
+
**volume_i_ds** | **Array<String>** | List of volumes to be cloned |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'IbmCloudPower'
|
14
|
+
|
15
|
+
instance = IbmCloudPower::VolumesCloneCreate.new(name: null,
|
16
|
+
volume_i_ds: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# IbmCloudPower::VolumesCloneDetail
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**volumes_clone_id** | **String** | ID assigned to a volumes-clone request | [optional]
|
8
|
+
**name** | **String** | Name assigned to a volumes-clone request | [optional]
|
9
|
+
**status** | **String** | Current status of the volumes-clone request | [optional]
|
10
|
+
**action** | **String** | Current action performed for the volumes-clone request | [optional]
|
11
|
+
**percent_complete** | **Integer** | The percent completion for the current action |
|
12
|
+
**failure_message** | **String** | Failure reason for a failed volumes-clone request | [optional]
|
13
|
+
**creation_date** | **DateTime** | Creation Date | [optional]
|
14
|
+
**last_update_date** | **DateTime** | Last Update Date | [optional]
|
15
|
+
**cloned_volumes** | [**Array<ClonedVolumeDetail>**](ClonedVolumeDetail.md) | List of cloned volumes created from the volumes-clone request | [optional]
|
16
|
+
|
17
|
+
## Code Sample
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'IbmCloudPower'
|
21
|
+
|
22
|
+
instance = IbmCloudPower::VolumesCloneDetail.new(volumes_clone_id: null,
|
23
|
+
name: null,
|
24
|
+
status: null,
|
25
|
+
action: null,
|
26
|
+
percent_complete: null,
|
27
|
+
failure_message: null,
|
28
|
+
creation_date: null,
|
29
|
+
last_update_date: null,
|
30
|
+
cloned_volumes: null)
|
31
|
+
```
|
32
|
+
|
33
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# IbmCloudPower::VolumesCloneExecute
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | Base name of the new cloned volume(s). Cloned Volume names will be prefixed with 'clone-' and suffixed with ‘-#####’ (where ##### is a 5 digit random number) If multiple volumes cloned they will be further suffixed with an incremental number starting with 1. Example volume names using name=\"volume-abcdef\" single volume clone will be named \"clone-volume-abcdef-83081“ multi volume clone will be named \"clone-volume-abcdef-73721-1”, \"clone-volume-abcdef-73721-2”, ... |
|
8
|
+
**rollback_prepare** | **Boolean** | default False, Execute failure rolls back clone activity but leaves prepared snapshot True, Execute failure rolls back clone activity and removes the prepared snapshot | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'IbmCloudPower'
|
14
|
+
|
15
|
+
instance = IbmCloudPower::VolumesCloneExecute.new(name: null,
|
16
|
+
rollback_prepare: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# IbmCloudPower::VolumesCloneRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**display_name** | **String** | Display name for the new cloned volumes. Cloned Volume names will be prefixed with 'clone-'. If multiple volumes cloned they will be suffix with a '-' and an incremental number starting with 1. Example volume names using displayName=\"volume-abcdef\" single volume clone will be named \"clone-volume-abcdef\" multi volume clone will be named \"clone-volume-abcdef-1\", \"clone-volume-abcdef-2\", ... |
|
8
|
+
**volume_i_ds** | **Array<String>** | List of volumes to be cloned |
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'IbmCloudPower'
|
14
|
+
|
15
|
+
instance = IbmCloudPower::VolumesCloneRequest.new(display_name: null,
|
16
|
+
volume_i_ds: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# IbmCloudPower::VolumesCloneResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**cloned_volumes** | **Hash<String, String>** | A map of volume IDs to cloned volume IDs | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'IbmCloudPower'
|
13
|
+
|
14
|
+
instance = IbmCloudPower::VolumesCloneResponse.new(cloned_volumes: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# IbmCloudPower::VolumesClones
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**volumes_clone** | [**Array<VolumesClone>**](VolumesClone.md) | list of volumes-clone requests | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'IbmCloudPower'
|
13
|
+
|
14
|
+
instance = IbmCloudPower::VolumesClones.new(volumes_clone: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Power Cloud API
|
5
|
+
|
6
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
Contact: kylej@us.ibm.com
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 5.0.0-beta2
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "ibm_cloud_power/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "ibm_cloud_power"
|
20
|
+
s.version = IbmCloudPower::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["IBM Cloud Developers"]
|
23
|
+
s.email = ["kylej@us.ibm.com"]
|
24
|
+
s.homepage = "https://openapi-generator.tech"
|
25
|
+
s.summary = "IBM Cloud Power Cloud"
|
26
|
+
s.description = "Ruby gem for IBM Cloud Power Cloud"
|
27
|
+
s.license = 'Apache-2.0'
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
+
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
35
|
+
s.test_files = `find spec/*`.split("\n")
|
36
|
+
s.executables = []
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
end
|
@@ -0,0 +1,144 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'ibm_cloud_power/api_client'
|
15
|
+
require 'ibm_cloud_power/api_error'
|
16
|
+
require 'ibm_cloud_power/version'
|
17
|
+
require 'ibm_cloud_power/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'ibm_cloud_power/models/clone_task_reference'
|
21
|
+
require 'ibm_cloud_power/models/clone_task_status'
|
22
|
+
require 'ibm_cloud_power/models/cloned_volume'
|
23
|
+
require 'ibm_cloud_power/models/cloned_volume_detail'
|
24
|
+
require 'ibm_cloud_power/models/cloud_instance'
|
25
|
+
require 'ibm_cloud_power/models/cloud_instance_create'
|
26
|
+
require 'ibm_cloud_power/models/cloud_instance_reference'
|
27
|
+
require 'ibm_cloud_power/models/cloud_instance_update'
|
28
|
+
require 'ibm_cloud_power/models/cloud_instance_usage_limits'
|
29
|
+
require 'ibm_cloud_power/models/create_data_volume'
|
30
|
+
require 'ibm_cloud_power/models/create_image'
|
31
|
+
require 'ibm_cloud_power/models/error'
|
32
|
+
require 'ibm_cloud_power/models/event'
|
33
|
+
require 'ibm_cloud_power/models/event_user'
|
34
|
+
require 'ibm_cloud_power/models/events'
|
35
|
+
require 'ibm_cloud_power/models/export_image'
|
36
|
+
require 'ibm_cloud_power/models/ip_address_range'
|
37
|
+
require 'ibm_cloud_power/models/image'
|
38
|
+
require 'ibm_cloud_power/models/image_reference'
|
39
|
+
require 'ibm_cloud_power/models/image_specifications'
|
40
|
+
require 'ibm_cloud_power/models/image_volume'
|
41
|
+
require 'ibm_cloud_power/models/images'
|
42
|
+
require 'ibm_cloud_power/models/min_max_default'
|
43
|
+
require 'ibm_cloud_power/models/multi_volumes_create'
|
44
|
+
require 'ibm_cloud_power/models/network'
|
45
|
+
require 'ibm_cloud_power/models/network_create'
|
46
|
+
require 'ibm_cloud_power/models/network_ip_address_metrics'
|
47
|
+
require 'ibm_cloud_power/models/network_port'
|
48
|
+
require 'ibm_cloud_power/models/network_port_create'
|
49
|
+
require 'ibm_cloud_power/models/network_port_pvm_instance'
|
50
|
+
require 'ibm_cloud_power/models/network_port_update'
|
51
|
+
require 'ibm_cloud_power/models/network_ports'
|
52
|
+
require 'ibm_cloud_power/models/network_reference'
|
53
|
+
require 'ibm_cloud_power/models/network_update'
|
54
|
+
require 'ibm_cloud_power/models/networks'
|
55
|
+
require 'ibm_cloud_power/models/operations'
|
56
|
+
require 'ibm_cloud_power/models/pvm_instance'
|
57
|
+
require 'ibm_cloud_power/models/pvm_instance_action'
|
58
|
+
require 'ibm_cloud_power/models/pvm_instance_add_network'
|
59
|
+
require 'ibm_cloud_power/models/pvm_instance_capture'
|
60
|
+
require 'ibm_cloud_power/models/pvm_instance_clone'
|
61
|
+
require 'ibm_cloud_power/models/pvm_instance_console'
|
62
|
+
require 'ibm_cloud_power/models/pvm_instance_create'
|
63
|
+
require 'ibm_cloud_power/models/pvm_instance_fault'
|
64
|
+
require 'ibm_cloud_power/models/pvm_instance_health'
|
65
|
+
require 'ibm_cloud_power/models/pvm_instance_multi_create'
|
66
|
+
require 'ibm_cloud_power/models/pvm_instance_network'
|
67
|
+
require 'ibm_cloud_power/models/pvm_instance_networks'
|
68
|
+
require 'ibm_cloud_power/models/pvm_instance_operation'
|
69
|
+
require 'ibm_cloud_power/models/pvm_instance_reference'
|
70
|
+
require 'ibm_cloud_power/models/pvm_instance_remove_network'
|
71
|
+
require 'ibm_cloud_power/models/pvm_instance_update'
|
72
|
+
require 'ibm_cloud_power/models/pvm_instance_update_response'
|
73
|
+
require 'ibm_cloud_power/models/pvm_instance_volume_update'
|
74
|
+
require 'ibm_cloud_power/models/pvm_instances'
|
75
|
+
require 'ibm_cloud_power/models/peering_network'
|
76
|
+
require 'ibm_cloud_power/models/pin_policy'
|
77
|
+
require 'ibm_cloud_power/models/sap_create'
|
78
|
+
require 'ibm_cloud_power/models/sap_profile'
|
79
|
+
require 'ibm_cloud_power/models/sap_profile_reference'
|
80
|
+
require 'ibm_cloud_power/models/sap_profiles'
|
81
|
+
require 'ibm_cloud_power/models/src'
|
82
|
+
require 'ibm_cloud_power/models/ssh_key'
|
83
|
+
require 'ibm_cloud_power/models/ssh_keys'
|
84
|
+
require 'ibm_cloud_power/models/snapshot'
|
85
|
+
require 'ibm_cloud_power/models/snapshot_create'
|
86
|
+
require 'ibm_cloud_power/models/snapshot_create_response'
|
87
|
+
require 'ibm_cloud_power/models/snapshot_restore'
|
88
|
+
require 'ibm_cloud_power/models/snapshot_update'
|
89
|
+
require 'ibm_cloud_power/models/snapshots'
|
90
|
+
require 'ibm_cloud_power/models/software_licenses'
|
91
|
+
require 'ibm_cloud_power/models/stock_image'
|
92
|
+
require 'ibm_cloud_power/models/system'
|
93
|
+
require 'ibm_cloud_power/models/system_pool'
|
94
|
+
require 'ibm_cloud_power/models/task'
|
95
|
+
require 'ibm_cloud_power/models/task_reference'
|
96
|
+
require 'ibm_cloud_power/models/tenant'
|
97
|
+
require 'ibm_cloud_power/models/tenant_update'
|
98
|
+
require 'ibm_cloud_power/models/update_volume'
|
99
|
+
require 'ibm_cloud_power/models/virtual_cores'
|
100
|
+
require 'ibm_cloud_power/models/volume'
|
101
|
+
require 'ibm_cloud_power/models/volume_info'
|
102
|
+
require 'ibm_cloud_power/models/volume_reference'
|
103
|
+
require 'ibm_cloud_power/models/volumes'
|
104
|
+
require 'ibm_cloud_power/models/volumes_clone'
|
105
|
+
require 'ibm_cloud_power/models/volumes_clone_async_request'
|
106
|
+
require 'ibm_cloud_power/models/volumes_clone_cancel'
|
107
|
+
require 'ibm_cloud_power/models/volumes_clone_create'
|
108
|
+
require 'ibm_cloud_power/models/volumes_clone_detail'
|
109
|
+
require 'ibm_cloud_power/models/volumes_clone_execute'
|
110
|
+
require 'ibm_cloud_power/models/volumes_clone_request'
|
111
|
+
require 'ibm_cloud_power/models/volumes_clone_response'
|
112
|
+
require 'ibm_cloud_power/models/volumes_clones'
|
113
|
+
|
114
|
+
# APIs
|
115
|
+
require 'ibm_cloud_power/api/p_cloud_events_api'
|
116
|
+
require 'ibm_cloud_power/api/p_cloud_images_api'
|
117
|
+
require 'ibm_cloud_power/api/p_cloud_instances_api'
|
118
|
+
require 'ibm_cloud_power/api/p_cloud_networks_api'
|
119
|
+
require 'ibm_cloud_power/api/p_cloud_pvm_instances_api'
|
120
|
+
require 'ibm_cloud_power/api/p_cloud_sap_api'
|
121
|
+
require 'ibm_cloud_power/api/p_cloud_snapshots_api'
|
122
|
+
require 'ibm_cloud_power/api/p_cloud_system_pools_api'
|
123
|
+
require 'ibm_cloud_power/api/p_cloud_tasks_api'
|
124
|
+
require 'ibm_cloud_power/api/p_cloud_tenants_api'
|
125
|
+
require 'ibm_cloud_power/api/p_cloud_tenants_ssh_keys_api'
|
126
|
+
require 'ibm_cloud_power/api/p_cloud_volumes_api'
|
127
|
+
|
128
|
+
module IbmCloudPower
|
129
|
+
class << self
|
130
|
+
# Customize default settings for the SDK using block.
|
131
|
+
# IbmCloudPower.configure do |config|
|
132
|
+
# config.username = "xxx"
|
133
|
+
# config.password = "xxx"
|
134
|
+
# end
|
135
|
+
# If no block given, return the default Configuration object.
|
136
|
+
def configure
|
137
|
+
if block_given?
|
138
|
+
yield(Configuration.default)
|
139
|
+
else
|
140
|
+
Configuration.default
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,163 @@
|
|
1
|
+
=begin
|
2
|
+
#Power Cloud API
|
3
|
+
|
4
|
+
#IBM Power Cloud API for Power Hardware / Infrastructure
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: kylej@us.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-beta2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module IbmCloudPower
|
16
|
+
class PCloudEventsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get a single event
|
23
|
+
# @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance
|
24
|
+
# @param event_id [String] Event ID
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :accept_language The language requested for the return document
|
27
|
+
# @return [Event]
|
28
|
+
def pcloud_events_get(cloud_instance_id, event_id, opts = {})
|
29
|
+
data, _status_code, _headers = pcloud_events_get_with_http_info(cloud_instance_id, event_id, opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Get a single event
|
34
|
+
# @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance
|
35
|
+
# @param event_id [String] Event ID
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :accept_language The language requested for the return document
|
38
|
+
# @return [Array<(Event, Integer, Hash)>] Event data, response status code and response headers
|
39
|
+
def pcloud_events_get_with_http_info(cloud_instance_id, event_id, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: PCloudEventsApi.pcloud_events_get ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'cloud_instance_id' is set
|
44
|
+
if @api_client.config.client_side_validation && cloud_instance_id.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudEventsApi.pcloud_events_get"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'event_id' is set
|
48
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling PCloudEventsApi.pcloud_events_get"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/events/{event_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'event_id' + '}', CGI.escape(event_id.to_s))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
# HTTP header 'Accept' (if needed)
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
61
|
+
header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:body]
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:return_type] || 'Event'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:auth_names] || []
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:header_params => header_params,
|
77
|
+
:query_params => query_params,
|
78
|
+
:form_params => form_params,
|
79
|
+
:body => post_body,
|
80
|
+
:auth_names => auth_names,
|
81
|
+
:return_type => return_type
|
82
|
+
)
|
83
|
+
|
84
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: PCloudEventsApi#pcloud_events_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
91
|
+
# Get events from this cloud instance since a specific timestamp
|
92
|
+
# You must append the '?time=' query parameter to the cURL URL to get a list of events.
|
93
|
+
# @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance
|
94
|
+
# @param time [String] A time in either ISO 8601 or unix epoch format
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @option opts [String] :accept_language The language requested for the return document
|
97
|
+
# @return [Events]
|
98
|
+
def pcloud_events_getsince(cloud_instance_id, time, opts = {})
|
99
|
+
data, _status_code, _headers = pcloud_events_getsince_with_http_info(cloud_instance_id, time, opts)
|
100
|
+
data
|
101
|
+
end
|
102
|
+
|
103
|
+
# Get events from this cloud instance since a specific timestamp
|
104
|
+
# You must append the '?time=' query parameter to the cURL URL to get a list of events.
|
105
|
+
# @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance
|
106
|
+
# @param time [String] A time in either ISO 8601 or unix epoch format
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [String] :accept_language The language requested for the return document
|
109
|
+
# @return [Array<(Events, Integer, Hash)>] Events data, response status code and response headers
|
110
|
+
def pcloud_events_getsince_with_http_info(cloud_instance_id, time, opts = {})
|
111
|
+
if @api_client.config.debugging
|
112
|
+
@api_client.config.logger.debug 'Calling API: PCloudEventsApi.pcloud_events_getsince ...'
|
113
|
+
end
|
114
|
+
# verify the required parameter 'cloud_instance_id' is set
|
115
|
+
if @api_client.config.client_side_validation && cloud_instance_id.nil?
|
116
|
+
fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudEventsApi.pcloud_events_getsince"
|
117
|
+
end
|
118
|
+
# verify the required parameter 'time' is set
|
119
|
+
if @api_client.config.client_side_validation && time.nil?
|
120
|
+
fail ArgumentError, "Missing the required parameter 'time' when calling PCloudEventsApi.pcloud_events_getsince"
|
121
|
+
end
|
122
|
+
# resource path
|
123
|
+
local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/events'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s))
|
124
|
+
|
125
|
+
# query parameters
|
126
|
+
query_params = opts[:query_params] || {}
|
127
|
+
query_params[:'time'] = time
|
128
|
+
|
129
|
+
# header parameters
|
130
|
+
header_params = opts[:header_params] || {}
|
131
|
+
# HTTP header 'Accept' (if needed)
|
132
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
133
|
+
header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
|
134
|
+
|
135
|
+
# form parameters
|
136
|
+
form_params = opts[:form_params] || {}
|
137
|
+
|
138
|
+
# http body (model)
|
139
|
+
post_body = opts[:body]
|
140
|
+
|
141
|
+
# return_type
|
142
|
+
return_type = opts[:return_type] || 'Events'
|
143
|
+
|
144
|
+
# auth_names
|
145
|
+
auth_names = opts[:auth_names] || []
|
146
|
+
|
147
|
+
new_options = opts.merge(
|
148
|
+
:header_params => header_params,
|
149
|
+
:query_params => query_params,
|
150
|
+
:form_params => form_params,
|
151
|
+
:body => post_body,
|
152
|
+
:auth_names => auth_names,
|
153
|
+
:return_type => return_type
|
154
|
+
)
|
155
|
+
|
156
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
157
|
+
if @api_client.config.debugging
|
158
|
+
@api_client.config.logger.debug "API called: PCloudEventsApi#pcloud_events_getsince\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
|
+
end
|
160
|
+
return data, status_code, headers
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|