From 84be6de916e820d858372a2348cfdd7083060e3e Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Fri, 6 Aug 2021 10:35:50 -0400 Subject: [PATCH 1/2] New IbmCloud gem --- CHANGELOG.md | 48 +- .../CODE_OF_CONDUCT.md => CODE_OF_CONDUCT.md | 0 .../CONTRIBUTING.md => CONTRIBUTING.md | 0 Gemfile | 4 +- .../LICENSE => LICENSE | 0 LICENSE.txt | 202 --- README.md | 84 +- bin/console | 2 +- gems/ibm_cloud/.gitignore | 11 - gems/ibm_cloud/.rspec | 3 - gems/ibm_cloud/.travis.yml | 7 - gems/ibm_cloud/Gemfile | 7 - gems/ibm_cloud/LICENSE.txt | 202 --- gems/ibm_cloud/README.md | 36 - gems/ibm_cloud/Rakefile | 6 - gems/ibm_cloud/bin/console | 14 - gems/ibm_cloud/bin/setup | 8 - gems/ibm_cloud/ibm_cloud.gemspec | 33 - gems/ibm_cloud/lib/ibm_cloud.rb | 6 - gems/ibm_cloud/spec/ibm_cloud_spec.rb | 9 - gems/ibm_cloud/spec/spec_helper.rb | 14 - .../.bumpversion.cfg | 13 - gems/ibm_cloud_activity_tracker/.gitignore | 13 - gems/ibm_cloud_activity_tracker/.rspec | 3 - .../.secrets.baseline | 72 - gems/ibm_cloud_activity_tracker/.travis.yml | 49 - gems/ibm_cloud_activity_tracker/CHANGELOG.md | 2 - .../CONTRIBUTING.md | 13 - gems/ibm_cloud_activity_tracker/Gemfile | 7 - gems/ibm_cloud_activity_tracker/README.md | 84 - gems/ibm_cloud_activity_tracker/Rakefile | 6 - gems/ibm_cloud_activity_tracker/bin/console | 14 - gems/ibm_cloud_activity_tracker/bin/setup | 8 - .../ibm_cloud_activity_tracker.gemspec | 40 - .../lib/ibm_cloud_activity_tracker.rb | 10 - .../activity_tracker_api_v1.rb | 398 ----- .../lib/ibm_cloud_activity_tracker/common.rb | 24 - .../lib/ibm_cloud_activity_tracker/version.rb | 3 - .../spec/spec_helper.rb | 14 - .../ibm_cloud_global_tagging/.bumpversion.cfg | 13 - gems/ibm_cloud_global_tagging/.gitignore | 13 - gems/ibm_cloud_global_tagging/.rspec | 3 - gems/ibm_cloud_global_tagging/.travis.yml | 49 - gems/ibm_cloud_global_tagging/CHANGELOG.md | 2 - .../CODE_OF_CONDUCT.md | 76 - gems/ibm_cloud_global_tagging/Gemfile | 7 - gems/ibm_cloud_global_tagging/LICENSE | 201 --- gems/ibm_cloud_global_tagging/LICENSE.txt | 202 --- gems/ibm_cloud_global_tagging/README.md | 84 - gems/ibm_cloud_global_tagging/Rakefile | 6 - gems/ibm_cloud_global_tagging/bin/console | 14 - gems/ibm_cloud_global_tagging/bin/setup | 8 - .../lib/ibm_cloud_global_tagging.rb | 10 - .../global_tagging_v1.rb | 304 ---- .../lib/ibm_cloud_global_tagging/version.rb | 3 - .../ibm_cloud_global_tagging/common_spec.rb | 0 .../spec/spec_helper.rb | 14 - gems/ibm_cloud_iam/.gitignore | 39 - gems/ibm_cloud_iam/.openapi-config.json | 7 - gems/ibm_cloud_iam/.openapi-generator-ignore | 23 - gems/ibm_cloud_iam/.openapi-generator/FILES | 64 - gems/ibm_cloud_iam/.openapi-generator/VERSION | 1 - gems/ibm_cloud_iam/.rspec | 2 - gems/ibm_cloud_iam/.rubocop.yml | 148 -- gems/ibm_cloud_iam/.travis.yml | 10 - gems/ibm_cloud_iam/Gemfile | 9 - gems/ibm_cloud_iam/LICENSE.txt | 202 --- gems/ibm_cloud_iam/README.md | 131 -- gems/ibm_cloud_iam/Rakefile | 10 - gems/ibm_cloud_iam/docs/ApiKey.md | 43 - .../ApiKeyInsideCreateServiceIdRequest.md | 23 - gems/ibm_cloud_iam/docs/ApiKeyList.md | 29 - .../ibm_cloud_iam/docs/CreateApiKeyRequest.md | 27 - .../docs/CreateServiceIdRequest.md | 25 - gems/ibm_cloud_iam/docs/EnityHistoryRecord.md | 27 - gems/ibm_cloud_iam/docs/Error.md | 23 - gems/ibm_cloud_iam/docs/ExceptionResponse.md | 23 - .../docs/ExceptionResponseContext.md | 39 - .../docs/IdentityOperationsApi.md | 828 --------- gems/ibm_cloud_iam/docs/InlineObject.md | 19 - gems/ibm_cloud_iam/docs/InlineObject1.md | 23 - gems/ibm_cloud_iam/docs/InlineObject2.md | 21 - gems/ibm_cloud_iam/docs/InlineObject3.md | 25 - .../docs/MFARequirementsResponse.md | 21 - .../docs/OidcExceptionResponse.md | 25 - gems/ibm_cloud_iam/docs/ResponseContext.md | 37 - gems/ibm_cloud_iam/docs/ServiceId.md | 43 - gems/ibm_cloud_iam/docs/ServiceIdList.md | 29 - gems/ibm_cloud_iam/docs/TokenOperationsApi.md | 226 --- gems/ibm_cloud_iam/docs/TokenResponse.md | 27 - .../ibm_cloud_iam/docs/UpdateApiKeyRequest.md | 19 - .../docs/UpdateServiceIdRequest.md | 21 - gems/ibm_cloud_iam/git_push.sh | 58 - gems/ibm_cloud_iam/ibm_cloud_iam.gemspec | 39 - gems/ibm_cloud_iam/lib/ibm_cloud_iam.rb | 62 - .../api/identity_operations_api.rb | 1083 ------------ .../ibm_cloud_iam/api/token_operations_api.rb | 351 ---- .../lib/ibm_cloud_iam/api_client.rb | 387 ----- .../lib/ibm_cloud_iam/api_error.rb | 57 - .../lib/ibm_cloud_iam/configuration.rb | 241 --- .../lib/ibm_cloud_iam/models/api_key.rb | 381 ---- ...pi_key_inside_create_service_id_request.rb | 245 --- .../lib/ibm_cloud_iam/models/api_key_list.rb | 276 --- .../models/create_api_key_request.rb | 270 --- .../models/create_service_id_request.rb | 261 --- .../models/enity_history_record.rb | 292 ---- .../lib/ibm_cloud_iam/models/error.rb | 255 --- .../models/exception_response.rb | 251 --- .../models/exception_response_context.rb | 320 ---- .../lib/ibm_cloud_iam/models/inline_object.rb | 229 --- .../ibm_cloud_iam/models/inline_object1.rb | 254 --- .../ibm_cloud_iam/models/inline_object2.rb | 244 --- .../ibm_cloud_iam/models/inline_object3.rb | 269 --- .../models/mfa_requirements_response.rb | 245 --- .../models/oidc_exception_response.rb | 258 --- .../ibm_cloud_iam/models/response_context.rb | 310 ---- .../lib/ibm_cloud_iam/models/service_id.rb | 377 ---- .../ibm_cloud_iam/models/service_id_list.rb | 276 --- .../ibm_cloud_iam/models/token_response.rb | 260 --- .../models/update_api_key_request.rb | 220 --- .../models/update_service_id_request.rb | 232 --- .../lib/ibm_cloud_iam/version.rb | 15 - .../spec/api/identity_operations_api_spec.rb | 253 --- .../spec/api/token_operations_api_spec.rb | 94 - gems/ibm_cloud_iam/spec/api_client_spec.rb | 226 --- gems/ibm_cloud_iam/spec/configuration_spec.rb | 42 - ...y_inside_create_service_id_request_spec.rb | 59 - .../spec/models/api_key_list_spec.rb | 77 - .../ibm_cloud_iam/spec/models/api_key_spec.rb | 119 -- .../models/create_api_key_request_spec.rb | 71 - .../models/create_service_id_request_spec.rb | 65 - .../spec/models/enity_history_record_spec.rb | 71 - gems/ibm_cloud_iam/spec/models/error_spec.rb | 59 - .../models/exception_response_context_spec.rb | 107 -- .../spec/models/exception_response_spec.rb | 59 - .../spec/models/inline_object1_spec.rb | 59 - .../spec/models/inline_object2_spec.rb | 53 - .../spec/models/inline_object3_spec.rb | 65 - .../spec/models/inline_object_spec.rb | 47 - .../models/mfa_requirements_response_spec.rb | 53 - .../models/oidc_exception_response_spec.rb | 65 - .../spec/models/response_context_spec.rb | 101 -- .../spec/models/service_id_list_spec.rb | 77 - .../spec/models/service_id_spec.rb | 119 -- .../spec/models/token_response_spec.rb | 71 - .../models/update_api_key_request_spec.rb | 47 - .../models/update_service_id_request_spec.rb | 53 - gems/ibm_cloud_iam/spec/spec_helper.rb | 111 -- gems/ibm_cloud_power/.gitignore | 39 - gems/ibm_cloud_power/.openapi-config.json | 7 - .../ibm_cloud_power/.openapi-generator-ignore | 23 - gems/ibm_cloud_power/.openapi-generator/FILES | 300 ---- .../.openapi-generator/VERSION | 1 - gems/ibm_cloud_power/.rspec | 2 - gems/ibm_cloud_power/.rubocop.yml | 148 -- gems/ibm_cloud_power/.travis.yml | 11 - gems/ibm_cloud_power/Gemfile | 9 - gems/ibm_cloud_power/LICENSE.txt | 202 --- gems/ibm_cloud_power/README.md | 301 ---- gems/ibm_cloud_power/Rakefile | 10 - .../docs/CloneTaskReference.md | 19 - gems/ibm_cloud_power/docs/CloneTaskStatus.md | 23 - gems/ibm_cloud_power/docs/ClonedVolume.md | 19 - .../docs/ClonedVolumeDetail.md | 19 - gems/ibm_cloud_power/docs/CloudConnection.md | 41 - .../docs/CloudConnectionCreate.md | 23 - .../docs/CloudConnectionEndpointClassic.md | 19 - .../docs/CloudConnectionEndpointGRE.md | 19 - .../docs/CloudConnectionEndpointVPC.md | 19 - .../docs/CloudConnectionGRETunnel.md | 21 - .../docs/CloudConnectionSpeed.md | 16 - .../docs/CloudConnectionUpdate.md | 27 - .../docs/CloudConnectionVPC.md | 19 - .../CloudConnectionVirtualPrivateClouds.md | 17 - ...irtualPrivateCloudsVirtualPrivateClouds.md | 23 - gems/ibm_cloud_power/docs/CloudConnections.md | 17 - gems/ibm_cloud_power/docs/CloudInstance.md | 37 - .../docs/CloudInstanceCreate.md | 29 - .../docs/CloudInstanceReference.md | 31 - .../docs/CloudInstanceUpdate.md | 25 - .../docs/CloudInstanceUsageLimits.md | 37 - gems/ibm_cloud_power/docs/CreateDataVolume.md | 29 - gems/ibm_cloud_power/docs/CreateImage.md | 37 - gems/ibm_cloud_power/docs/Error.md | 19 - gems/ibm_cloud_power/docs/Event.md | 33 - gems/ibm_cloud_power/docs/EventUser.md | 21 - gems/ibm_cloud_power/docs/Events.md | 17 - gems/ibm_cloud_power/docs/ExportImage.md | 23 - gems/ibm_cloud_power/docs/IPAddressRange.md | 19 - gems/ibm_cloud_power/docs/Image.md | 41 - gems/ibm_cloud_power/docs/ImageReference.md | 35 - .../docs/ImageSpecifications.md | 29 - gems/ibm_cloud_power/docs/ImageVolume.md | 23 - gems/ibm_cloud_power/docs/Images.md | 17 - .../docs/MaximumStorageAllocation.md | 21 - gems/ibm_cloud_power/docs/MinMaxDefault.md | 21 - .../docs/MultiVolumesCreate.md | 31 - gems/ibm_cloud_power/docs/Network.md | 37 - gems/ibm_cloud_power/docs/NetworkCreate.md | 29 - .../docs/NetworkIpAddressMetrics.md | 23 - gems/ibm_cloud_power/docs/NetworkPort.md | 31 - .../ibm_cloud_power/docs/NetworkPortCreate.md | 19 - .../docs/NetworkPortPvmInstance.md | 19 - .../ibm_cloud_power/docs/NetworkPortUpdate.md | 19 - gems/ibm_cloud_power/docs/NetworkPorts.md | 17 - gems/ibm_cloud_power/docs/NetworkReference.md | 27 - gems/ibm_cloud_power/docs/NetworkUpdate.md | 23 - gems/ibm_cloud_power/docs/Networks.md | 17 - gems/ibm_cloud_power/docs/Operations.md | 21 - .../docs/PCloudCloudConnectionsApi.md | 394 ----- gems/ibm_cloud_power/docs/PCloudEventsApi.md | 114 -- gems/ibm_cloud_power/docs/PCloudImagesApi.md | 440 ----- .../docs/PCloudInstancesApi.md | 148 -- .../ibm_cloud_power/docs/PCloudNetworksApi.md | 504 ------ .../docs/PCloudPVMInstancesApi.md | 864 --------- .../docs/PCloudPlacementGroupsApi.md | 298 ---- gems/ibm_cloud_power/docs/PCloudSAPApi.md | 150 -- .../docs/PCloudSnapshotsApi.md | 200 --- .../docs/PCloudStorageCapacityApi.md | 196 --- .../docs/PCloudSystemPoolsApi.md | 54 - gems/ibm_cloud_power/docs/PCloudTasksApi.md | 100 -- gems/ibm_cloud_power/docs/PCloudTenantsApi.md | 102 -- .../docs/PCloudTenantsSSHKeysApi.md | 248 --- gems/ibm_cloud_power/docs/PCloudVolumesApi.md | 1090 ------------ gems/ibm_cloud_power/docs/PVMInstance.md | 79 - .../ibm_cloud_power/docs/PVMInstanceAction.md | 17 - .../docs/PVMInstanceAddNetwork.md | 19 - .../docs/PVMInstanceCapture.md | 29 - gems/ibm_cloud_power/docs/PVMInstanceClone.md | 31 - .../docs/PVMInstanceConsole.md | 17 - .../ibm_cloud_power/docs/PVMInstanceCreate.md | 55 - gems/ibm_cloud_power/docs/PVMInstanceFault.md | 23 - .../ibm_cloud_power/docs/PVMInstanceHealth.md | 21 - .../docs/PVMInstanceMultiCreate.md | 21 - .../docs/PVMInstanceNetwork.md | 33 - .../docs/PVMInstanceNetworks.md | 17 - .../docs/PVMInstanceOperation.md | 19 - .../docs/PVMInstanceReference.md | 71 - .../docs/PVMInstanceRemoveNetwork.md | 17 - .../ibm_cloud_power/docs/PVMInstanceUpdate.md | 33 - .../docs/PVMInstanceUpdateResponse.md | 27 - .../docs/PVMInstanceVolumeUpdate.md | 17 - gems/ibm_cloud_power/docs/PVMInstances.md | 17 - gems/ibm_cloud_power/docs/PeeringNetwork.md | 21 - gems/ibm_cloud_power/docs/PinPolicy.md | 16 - gems/ibm_cloud_power/docs/PlacementGroup.md | 23 - .../docs/PlacementGroupCreate.md | 19 - .../docs/PlacementGroupServer.md | 17 - gems/ibm_cloud_power/docs/PlacementGroups.md | 17 - gems/ibm_cloud_power/docs/SAPCreate.md | 33 - gems/ibm_cloud_power/docs/SAPProfile.md | 25 - .../docs/SAPProfileReference.md | 19 - gems/ibm_cloud_power/docs/SAPProfiles.md | 17 - gems/ibm_cloud_power/docs/SRC.md | 19 - gems/ibm_cloud_power/docs/SSHKey.md | 21 - gems/ibm_cloud_power/docs/SSHKeys.md | 17 - gems/ibm_cloud_power/docs/Snapshot.md | 35 - gems/ibm_cloud_power/docs/SnapshotCreate.md | 21 - .../docs/SnapshotCreateResponse.md | 17 - gems/ibm_cloud_power/docs/SnapshotRestore.md | 17 - gems/ibm_cloud_power/docs/SnapshotUpdate.md | 19 - gems/ibm_cloud_power/docs/Snapshots.md | 17 - gems/ibm_cloud_power/docs/SoftwareLicenses.md | 25 - gems/ibm_cloud_power/docs/StockImage.md | 21 - .../docs/StoragePoolCapacity.md | 23 - .../docs/StoragePoolsCapacity.md | 19 - .../docs/StorageTypeCapacity.md | 21 - .../docs/StorageTypesCapacity.md | 19 - gems/ibm_cloud_power/docs/System.md | 21 - gems/ibm_cloud_power/docs/SystemPool.md | 31 - gems/ibm_cloud_power/docs/Task.md | 33 - gems/ibm_cloud_power/docs/TaskReference.md | 19 - gems/ibm_cloud_power/docs/Tenant.md | 29 - gems/ibm_cloud_power/docs/TenantUpdate.md | 19 - gems/ibm_cloud_power/docs/UpdateVolume.md | 23 - gems/ibm_cloud_power/docs/VirtualCores.md | 21 - gems/ibm_cloud_power/docs/Volume.md | 43 - gems/ibm_cloud_power/docs/VolumeInfo.md | 19 - gems/ibm_cloud_power/docs/VolumeReference.md | 45 - gems/ibm_cloud_power/docs/Volumes.md | 17 - gems/ibm_cloud_power/docs/VolumesClone.md | 31 - .../docs/VolumesCloneAsyncRequest.md | 19 - .../docs/VolumesCloneCancel.md | 17 - .../docs/VolumesCloneCreate.md | 19 - .../docs/VolumesCloneDetail.md | 33 - .../docs/VolumesCloneExecute.md | 19 - .../docs/VolumesCloneRequest.md | 19 - .../docs/VolumesCloneResponse.md | 17 - gems/ibm_cloud_power/docs/VolumesClones.md | 17 - gems/ibm_cloud_power/git_push.sh | 58 - gems/ibm_cloud_power/ibm_cloud_power.gemspec | 38 - gems/ibm_cloud_power/lib/ibm_cloud_power.rb | 168 -- .../api/p_cloud_cloud_connections_api.rb | 560 ------ .../ibm_cloud_power/api/p_cloud_events_api.rb | 163 -- .../ibm_cloud_power/api/p_cloud_images_api.rb | 602 ------- .../api/p_cloud_instances_api.rb | 210 --- .../api/p_cloud_networks_api.rb | 719 -------- .../api/p_cloud_placement_groups_api.rb | 430 ----- .../api/p_cloud_pvm_instances_api.rb | 1243 ------------- .../ibm_cloud_power/api/p_cloud_sap_api.rb | 216 --- .../api/p_cloud_snapshots_api.rb | 288 --- .../api/p_cloud_storage_capacity_api.rb | 274 --- .../api/p_cloud_system_pools_api.rb | 82 - .../ibm_cloud_power/api/p_cloud_tasks_api.rb | 142 -- .../api/p_cloud_tenants_api.rb | 150 -- .../api/p_cloud_tenants_ssh_keys_api.rb | 356 ---- .../api/p_cloud_volumes_api.rb | 1542 ----------------- .../lib/ibm_cloud_power/api_client.rb | 387 ----- .../lib/ibm_cloud_power/api_error.rb | 57 - .../lib/ibm_cloud_power/configuration.rb | 241 --- .../models/clone_task_reference.rb | 229 --- .../models/clone_task_status.rb | 285 --- .../ibm_cloud_power/models/cloned_volume.rb | 219 --- .../models/cloned_volume_detail.rb | 227 --- .../models/cloud_connection.rb | 379 ---- .../models/cloud_connection_create.rb | 249 --- .../cloud_connection_endpoint_classic.rb | 218 --- .../models/cloud_connection_endpoint_gre.rb | 221 --- .../models/cloud_connection_endpoint_vpc.rb | 221 --- .../models/cloud_connection_gre_tunnel.rb | 239 --- .../models/cloud_connection_speed.rb | 42 - .../models/cloud_connection_update.rb | 257 --- ...cloud_connection_virtual_private_clouds.rb | 216 --- ...l_private_clouds_virtual_private_clouds.rb | 259 --- .../models/cloud_connection_vpc.rb | 224 --- .../models/cloud_connections.rb | 216 --- .../ibm_cloud_power/models/cloud_instance.rb | 361 ---- .../models/cloud_instance_create.rb | 294 ---- .../models/cloud_instance_reference.rb | 315 ---- .../models/cloud_instance_update.rb | 249 --- .../models/cloud_instance_usage_limits.rb | 334 ---- .../models/create_data_volume.rb | 313 ---- .../ibm_cloud_power/models/create_image.rb | 360 ---- .../lib/ibm_cloud_power/models/error.rb | 217 --- .../lib/ibm_cloud_power/models/event.rb | 357 ---- .../lib/ibm_cloud_power/models/event_user.rb | 234 --- .../lib/ibm_cloud_power/models/events.rb | 216 --- .../ibm_cloud_power/models/export_image.rb | 249 --- .../lib/ibm_cloud_power/models/image.rb | 366 ---- .../ibm_cloud_power/models/image_reference.rb | 348 ---- .../models/image_specifications.rb | 269 --- .../ibm_cloud_power/models/image_volume.rb | 259 --- .../lib/ibm_cloud_power/models/images.rb | 216 --- .../models/ip_address_range.rb | 229 --- .../models/maximum_storage_allocation.rb | 245 --- .../ibm_cloud_power/models/min_max_default.rb | 244 --- .../models/multi_volumes_create.rb | 323 ---- .../lib/ibm_cloud_power/models/network.rb | 395 ----- .../ibm_cloud_power/models/network_create.rb | 314 ---- .../models/network_ip_address_metrics.rb | 260 --- .../ibm_cloud_power/models/network_port.rb | 303 ---- .../models/network_port_create.rb | 219 --- .../models/network_port_pvm_instance.rb | 220 --- .../models/network_port_update.rb | 219 --- .../ibm_cloud_power/models/network_ports.rb | 216 --- .../models/network_reference.rb | 325 ---- .../ibm_cloud_power/models/network_update.rb | 243 --- .../lib/ibm_cloud_power/models/networks.rb | 216 --- .../lib/ibm_cloud_power/models/operations.rb | 287 --- .../ibm_cloud_power/models/peering_network.rb | 241 --- .../lib/ibm_cloud_power/models/pin_policy.rb | 37 - .../ibm_cloud_power/models/placement_group.rb | 295 ---- .../models/placement_group_create.rb | 263 --- .../models/placement_group_server.rb | 214 --- .../models/placement_groups.rb | 216 --- .../ibm_cloud_power/models/pvm_instance.rb | 624 ------- .../models/pvm_instance_action.rb | 248 --- .../models/pvm_instance_add_network.rb | 224 --- .../models/pvm_instance_capture.rb | 317 ---- .../models/pvm_instance_clone.rb | 328 ---- .../models/pvm_instance_console.rb | 214 --- .../models/pvm_instance_create.rb | 493 ------ .../models/pvm_instance_fault.rb | 240 --- .../models/pvm_instance_health.rb | 230 --- .../models/pvm_instance_multi_create.rb | 279 --- .../models/pvm_instance_network.rb | 290 ---- .../models/pvm_instance_networks.rb | 216 --- .../models/pvm_instance_operation.rb | 262 --- .../models/pvm_instance_reference.rb | 566 ------ .../models/pvm_instance_remove_network.rb | 209 --- .../models/pvm_instance_update.rb | 322 ---- .../models/pvm_instance_update_response.rb | 292 ---- .../models/pvm_instance_volume_update.rb | 214 --- .../ibm_cloud_power/models/pvm_instances.rb | 216 --- .../lib/ibm_cloud_power/models/sap_create.rb | 311 ---- .../lib/ibm_cloud_power/models/sap_profile.rb | 310 ---- .../models/sap_profile_reference.rb | 229 --- .../ibm_cloud_power/models/sap_profiles.rb | 216 --- .../lib/ibm_cloud_power/models/snapshot.rb | 321 ---- .../ibm_cloud_power/models/snapshot_create.rb | 236 --- .../models/snapshot_create_response.rb | 214 --- .../models/snapshot_restore.rb | 211 --- .../ibm_cloud_power/models/snapshot_update.rb | 219 --- .../lib/ibm_cloud_power/models/snapshots.rb | 216 --- .../models/software_licenses.rb | 257 --- .../lib/ibm_cloud_power/models/src.rb | 219 --- .../lib/ibm_cloud_power/models/ssh_key.rb | 239 --- .../lib/ibm_cloud_power/models/ssh_keys.rb | 216 --- .../lib/ibm_cloud_power/models/stock_image.rb | 230 --- .../models/storage_pool_capacity.rb | 245 --- .../models/storage_pools_capacity.rb | 220 --- .../models/storage_type_capacity.rb | 231 --- .../models/storage_types_capacity.rb | 220 --- .../lib/ibm_cloud_power/models/system.rb | 239 --- .../lib/ibm_cloud_power/models/system_pool.rb | 277 --- .../lib/ibm_cloud_power/models/task.rb | 334 ---- .../ibm_cloud_power/models/task_reference.rb | 229 --- .../lib/ibm_cloud_power/models/tenant.rb | 295 ---- .../ibm_cloud_power/models/tenant_update.rb | 221 --- .../ibm_cloud_power/models/update_volume.rb | 239 --- .../ibm_cloud_power/models/virtual_cores.rb | 253 --- .../lib/ibm_cloud_power/models/volume.rb | 366 ---- .../lib/ibm_cloud_power/models/volume_info.rb | 219 --- .../models/volume_reference.rb | 406 ----- .../lib/ibm_cloud_power/models/volumes.rb | 216 --- .../ibm_cloud_power/models/volumes_clone.rb | 284 --- .../models/volumes_clone_async_request.rb | 231 --- .../models/volumes_clone_cancel.rb | 209 --- .../models/volumes_clone_create.rb | 231 --- .../models/volumes_clone_detail.rb | 296 ---- .../models/volumes_clone_execute.rb | 224 --- .../models/volumes_clone_request.rb | 231 --- .../models/volumes_clone_response.rb | 211 --- .../ibm_cloud_power/models/volumes_clones.rb | 211 --- .../lib/ibm_cloud_power/version.rb | 15 - .../api/p_cloud_cloud_connections_api_spec.rb | 132 -- .../spec/api/p_cloud_events_api_spec.rb | 62 - .../spec/api/p_cloud_images_api_spec.rb | 117 -- .../spec/api/p_cloud_instances_api_spec.rb | 69 - .../spec/api/p_cloud_networks_api_spec.rb | 161 -- .../api/p_cloud_placement_groups_api_spec.rb | 108 -- .../api/p_cloud_pvm_instances_api_spec.rb | 240 --- .../spec/api/p_cloud_sap_api_spec.rb | 70 - .../spec/api/p_cloud_snapshots_api_spec.rb | 83 - .../api/p_cloud_storage_capacity_api_spec.rb | 81 - .../spec/api/p_cloud_system_pools_api_spec.rb | 46 - .../spec/api/p_cloud_tasks_api_spec.rb | 57 - .../spec/api/p_cloud_tenants_api_spec.rb | 58 - .../api/p_cloud_tenants_ssh_keys_api_spec.rb | 95 - .../spec/api/p_cloud_volumes_api_spec.rb | 223 --- gems/ibm_cloud_power/spec/api_client_spec.rb | 226 --- .../spec/configuration_spec.rb | 42 - .../spec/models/clone_task_reference_spec.rb | 47 - .../spec/models/clone_task_status_spec.rb | 63 - .../spec/models/cloned_volume_detail_spec.rb | 47 - .../spec/models/cloned_volume_spec.rb | 47 - .../models/cloud_connection_create_spec.rb | 59 - .../cloud_connection_endpoint_classic_spec.rb | 47 - .../cloud_connection_endpoint_gre_spec.rb | 47 - .../cloud_connection_endpoint_vpc_spec.rb | 47 - .../cloud_connection_gre_tunnel_spec.rb | 53 - .../spec/models/cloud_connection_spec.rb | 113 -- .../models/cloud_connection_speed_spec.rb | 35 - .../models/cloud_connection_update_spec.rb | 71 - ..._connection_virtual_private_clouds_spec.rb | 41 - ...vate_clouds_virtual_private_clouds_spec.rb | 59 - .../spec/models/cloud_connection_vpc_spec.rb | 47 - .../spec/models/cloud_connections_spec.rb | 41 - .../spec/models/cloud_instance_create_spec.rb | 77 - .../models/cloud_instance_reference_spec.rb | 83 - .../spec/models/cloud_instance_spec.rb | 101 -- .../spec/models/cloud_instance_update_spec.rb | 65 - .../cloud_instance_usage_limits_spec.rb | 101 -- .../spec/models/create_data_volume_spec.rb | 81 - .../spec/models/create_image_spec.rb | 109 -- .../ibm_cloud_power/spec/models/error_spec.rb | 47 - .../ibm_cloud_power/spec/models/event_spec.rb | 93 - .../spec/models/event_user_spec.rb | 53 - .../spec/models/events_spec.rb | 41 - .../spec/models/export_image_spec.rb | 59 - .../spec/models/image_reference_spec.rb | 89 - .../ibm_cloud_power/spec/models/image_spec.rb | 107 -- .../spec/models/image_specifications_spec.rb | 77 - .../spec/models/image_volume_spec.rb | 59 - .../spec/models/images_spec.rb | 41 - .../spec/models/ip_address_range_spec.rb | 47 - .../models/maximum_storage_allocation_spec.rb | 53 - .../spec/models/min_max_default_spec.rb | 53 - .../spec/models/multi_volumes_create_spec.rb | 81 - .../spec/models/network_create_spec.rb | 81 - .../models/network_ip_address_metrics_spec.rb | 59 - .../spec/models/network_port_create_spec.rb | 47 - .../models/network_port_pvm_instance_spec.rb | 47 - .../spec/models/network_port_spec.rb | 77 - .../spec/models/network_port_update_spec.rb | 47 - .../spec/models/network_ports_spec.rb | 41 - .../spec/models/network_reference_spec.rb | 75 - .../spec/models/network_spec.rb | 105 -- .../spec/models/network_update_spec.rb | 59 - .../spec/models/networks_spec.rb | 41 - .../spec/models/operations_spec.rb | 65 - .../spec/models/peering_network_spec.rb | 53 - .../spec/models/pin_policy_spec.rb | 35 - .../models/placement_group_create_spec.rb | 51 - .../models/placement_group_server_spec.rb | 41 - .../spec/models/placement_group_spec.rb | 63 - .../spec/models/placement_groups_spec.rb | 41 - .../spec/models/pvm_instance_action_spec.rb | 45 - .../models/pvm_instance_add_network_spec.rb | 47 - .../spec/models/pvm_instance_capture_spec.rb | 81 - .../spec/models/pvm_instance_clone_spec.rb | 87 - .../spec/models/pvm_instance_console_spec.rb | 41 - .../spec/models/pvm_instance_create_spec.rb | 161 -- .../spec/models/pvm_instance_fault_spec.rb | 59 - .../spec/models/pvm_instance_health_spec.rb | 53 - .../models/pvm_instance_multi_create_spec.rb | 61 - .../spec/models/pvm_instance_network_spec.rb | 89 - .../spec/models/pvm_instance_networks_spec.rb | 41 - .../models/pvm_instance_operation_spec.rb | 51 - .../models/pvm_instance_reference_spec.rb | 207 --- .../pvm_instance_remove_network_spec.rb | 41 - .../spec/models/pvm_instance_spec.rb | 225 --- .../pvm_instance_update_response_spec.rb | 75 - .../spec/models/pvm_instance_update_spec.rb | 93 - .../models/pvm_instance_volume_update_spec.rb | 41 - .../spec/models/pvm_instances_spec.rb | 41 - .../spec/models/sap_create_spec.rb | 89 - .../spec/models/sap_profile_reference_spec.rb | 47 - .../spec/models/sap_profile_spec.rb | 69 - .../spec/models/sap_profiles_spec.rb | 41 - .../models/snapshot_create_response_spec.rb | 41 - .../spec/models/snapshot_create_spec.rb | 53 - .../spec/models/snapshot_restore_spec.rb | 41 - .../spec/models/snapshot_spec.rb | 95 - .../spec/models/snapshot_update_spec.rb | 47 - .../spec/models/snapshots_spec.rb | 41 - .../spec/models/software_licenses_spec.rb | 65 - gems/ibm_cloud_power/spec/models/src_spec.rb | 47 - .../spec/models/ssh_key_spec.rb | 53 - .../spec/models/ssh_keys_spec.rb | 41 - .../spec/models/stock_image_spec.rb | 53 - .../spec/models/storage_pool_capacity_spec.rb | 59 - .../models/storage_pools_capacity_spec.rb | 47 - .../spec/models/storage_type_capacity_spec.rb | 53 - .../models/storage_types_capacity_spec.rb | 47 - .../spec/models/system_pool_spec.rb | 83 - .../spec/models/system_spec.rb | 53 - .../spec/models/task_reference_spec.rb | 47 - gems/ibm_cloud_power/spec/models/task_spec.rb | 89 - .../spec/models/tenant_spec.rb | 77 - .../spec/models/tenant_update_spec.rb | 47 - .../spec/models/update_volume_spec.rb | 59 - .../spec/models/virtual_cores_spec.rb | 53 - .../spec/models/volume_info_spec.rb | 47 - .../spec/models/volume_reference_spec.rb | 119 -- .../spec/models/volume_spec.rb | 113 -- .../volumes_clone_async_request_spec.rb | 47 - .../spec/models/volumes_clone_cancel_spec.rb | 41 - .../spec/models/volumes_clone_create_spec.rb | 47 - .../spec/models/volumes_clone_detail_spec.rb | 89 - .../spec/models/volumes_clone_execute_spec.rb | 47 - .../spec/models/volumes_clone_request_spec.rb | 47 - .../models/volumes_clone_response_spec.rb | 47 - .../spec/models/volumes_clone_spec.rb | 83 - .../spec/models/volumes_clones_spec.rb | 41 - .../spec/models/volumes_spec.rb | 41 - gems/ibm_cloud_power/spec/spec_helper.rb | 111 -- .../.bumpversion.cfg | 13 - gems/ibm_cloud_resource_controller/.gitignore | 13 - .../.openapi-generator-ignore | 23 - .../.openapi-generator/VERSION | 1 - gems/ibm_cloud_resource_controller/.rspec | 3 - .../ibm_cloud_resource_controller/.travis.yml | 49 - .../CHANGELOG.md | 2 - .../CODE_OF_CONDUCT.md | 76 - .../CONTRIBUTING.md | 13 - gems/ibm_cloud_resource_controller/Gemfile | 7 - gems/ibm_cloud_resource_controller/LICENSE | 201 --- .../ibm_cloud_resource_controller/LICENSE.txt | 202 --- gems/ibm_cloud_resource_controller/README.md | 84 - gems/ibm_cloud_resource_controller/Rakefile | 6 - .../ibm_cloud_resource_controller/bin/console | 14 - gems/ibm_cloud_resource_controller/bin/setup | 8 - .../ibm_cloud_resource_controller.gemspec | 35 - .../lib/ibm_cloud_resource_controller.rb | 12 - .../authenticators.rb | 15 - .../ibm_cloud_resource_controller/common.rb | 22 - .../resource_controller_v2.rb | 982 ----------- .../resource_manager_v2.rb | 303 ---- .../ibm_cloud_resource_controller/version.rb | 3 - .../common_spec.rb | 0 .../spec/spec_helper.rb | 14 - ibm-cloud-sdk.gemspec | 28 - ...lobal_tagging.gemspec => ibm_cloud.gemspec | 15 +- lib/ibm-cloud-sdk.rb | 1 - lib/ibm/cloud/sdk.rb | 20 - lib/ibm/cloud/sdk/base_service.rb | 37 - lib/ibm/cloud/sdk/iam.rb | 43 - lib/ibm/cloud/sdk/iam/token.rb | 22 - lib/ibm/cloud/sdk/logging.rb | 21 - lib/ibm/cloud/sdk/null_logger.rb | 19 - lib/ibm/cloud/sdk/power_iaas.rb | 350 ---- lib/ibm/cloud/sdk/resource_controller.rb | 34 - .../cloud/sdk/resource_controller/resource.rb | 33 - lib/ibm/cloud/sdk/tags.rb | 28 - lib/ibm/cloud/sdk/tags/http.rb | 5 - lib/ibm/cloud/sdk/tags/http/tag_collection.rb | 99 -- lib/ibm/cloud/sdk/version.rb | 7 - lib/ibm/cloud/sdk/vpc.rb | 134 -- lib/ibm/cloud/sdk/vpc/floatingips.rb | 20 - lib/ibm/cloud/sdk/vpc/flowlogcollectors.rb | 20 - lib/ibm/cloud/sdk/vpc/http.rb | 7 - lib/ibm/cloud/sdk/vpc/http/vpc_collection.rb | 82 - lib/ibm/cloud/sdk/vpc/http/vpc_http.rb | 28 - lib/ibm/cloud/sdk/vpc/http/vpc_instance.rb | 30 - lib/ibm/cloud/sdk/vpc/ike_policies.rb | 24 - lib/ibm/cloud/sdk/vpc/images.rb | 21 - lib/ibm/cloud/sdk/vpc/instance/actions.rb | 94 - .../cloud/sdk/vpc/instance/floating_ips.rb | 23 - .../sdk/vpc/instance/network_interfaces.rb | 28 - .../sdk/vpc/instance/volume_attachments.rb | 23 - lib/ibm/cloud/sdk/vpc/instance_profiles.rb | 21 - lib/ibm/cloud/sdk/vpc/instances.rb | 157 -- lib/ibm/cloud/sdk/vpc/ipsec_policies.rb | 24 - lib/ibm/cloud/sdk/vpc/keys.rb | 21 - lib/ibm/cloud/sdk/vpc/load_balancer.rb | 23 - .../cloud/sdk/vpc/load_balancer/listeners.rb | 30 - .../cloud/sdk/vpc/load_balancer/members.rb | 23 - .../cloud/sdk/vpc/load_balancer/policies.rb | 30 - lib/ibm/cloud/sdk/vpc/load_balancer/pools.rb | 28 - lib/ibm/cloud/sdk/vpc/load_balancer/rules.rb | 25 - lib/ibm/cloud/sdk/vpc/load_balancers.rb | 19 - lib/ibm/cloud/sdk/vpc/network_acls.rb | 39 - lib/ibm/cloud/sdk/vpc/operating_systems.rb | 21 - lib/ibm/cloud/sdk/vpc/public_gateways.rb | 21 - lib/ibm/cloud/sdk/vpc/regions.rb | 35 - lib/ibm/cloud/sdk/vpc/security_groups.rb | 48 - lib/ibm/cloud/sdk/vpc/subnets.rb | 21 - lib/ibm/cloud/sdk/vpc/volume_profiles.rb | 21 - lib/ibm/cloud/sdk/vpc/volumes.rb | 21 - lib/ibm/cloud/sdk/vpc/vpcs.rb | 60 - .../cloud/sdk/vpc/vpn_gateway/connections.rb | 35 - .../cloud/sdk/vpc/vpn_gateway/local_cidrs.rb | 32 - .../cloud/sdk/vpc/vpn_gateway/peer_cidrs.rb | 32 - lib/ibm/cloud/sdk/vpc/vpn_gateways.rb | 25 - lib/ibm/cloud/sdk_http.rb | 16 - lib/ibm/cloud/sdk_http/base_collection.rb | 121 -- lib/ibm/cloud/sdk_http/base_http_mixin.rb | 120 -- lib/ibm/cloud/sdk_http/base_instance.rb | 55 - lib/ibm/cloud/sdk_http/connection.rb | 38 - lib/ibm/cloud/sdk_http/exceptions.rb | 31 - lib/ibm/cloud/sdk_http/has_child.rb | 23 - lib/ibm/cloud/sdk_http/iam_token.rb | 53 - lib/ibm/cloud/sdk_http/sdk_response.rb | 132 -- lib/ibm/cloud_sdk.rb | 39 - lib/ibm_cloud.rb | 9 + .../ibm_cloud}/common.rb | 4 +- .../lib => lib}/ibm_cloud/version.rb | 0 spec/ibm/cloud/sdk/logging_spec.rb | 39 - spec/ibm/cloud/sdk/tags_spec.rb | 59 - spec/ibm/cloud/sdk/vpc/instance_spec.rb | 94 - spec/ibm/cloud/sdk/vpc_exception_spec.rb | 37 - spec/ibm/cloud/sdk/vpc_spec.rb | 80 - spec/ibm/cloud/sdk/vpc_vcr.rb | 81 - spec/ibm/cloud/sdk_spec.rb | 5 - spec/ibm/cloud_sdk_spec.rb | 49 - .../ibm_cloud}/common_spec.rb | 0 spec/spec_helper.rb | 2 +- spec/vcr/IBM_Cloud_SDK_Tags/can_get_all.yml | 674 ------- spec/vcr/IBM_Cloud_SDK_Tags/can_get_fetch.yml | 187 -- .../IBM_Cloud_SDK_Tags/can_set_parameters.yml | 187 -- .../floating_ips_vpc_API/can_access_fetch.yml | 111 -- .../can_access_has_count_.yml | 111 -- .../floating_ips_vpc_API/can_get_all.yml | 176 -- .../can_get_an_instance.yml | 111 -- .../can_access_fetch.yml | 109 -- .../can_access_has_count_.yml | 109 -- .../can_get_all.yml | 172 -- .../can_get_an_instance.yml | 109 -- .../ike_policies_vpc_API/can_access_fetch.yml | 97 -- .../can_access_has_count_.yml | 97 -- .../ike_policies_vpc_API/can_get_all.yml | 148 -- .../can_get_an_instance.yml | 97 -- .../images_vpc_API/can_access_fetch.yml | 187 -- .../images_vpc_API/can_access_has_count_.yml | 187 -- .../images_vpc_API/can_get_all.yml | 187 -- .../images_vpc_API/can_get_an_instance.yml | 187 -- .../can_access_fetch.yml | 111 -- .../can_access_has_count_.yml | 111 -- .../instance_profiles_vpc_API/can_get_all.yml | 111 -- .../can_get_an_instance.yml | 111 -- .../instances_vpc_API/can_access_fetch.yml | 109 -- .../can_access_has_count_.yml | 109 -- .../instances_vpc_API/can_get_all.yml | 172 -- .../instances_vpc_API/can_get_an_instance.yml | 109 -- .../can_access_fetch.yml | 97 -- .../can_access_has_count_.yml | 97 -- .../ipsec_policies_vpc_API/can_get_all.yml | 148 -- .../can_get_an_instance.yml | 97 -- .../keys_vpc_API/can_access_fetch.yml | 110 -- .../keys_vpc_API/can_access_has_count_.yml | 110 -- .../Test_vpc_API/keys_vpc_API/can_get_all.yml | 110 -- .../keys_vpc_API/can_get_an_instance.yml | 110 -- .../can_access_fetch.yml | 97 -- .../can_access_has_count_.yml | 97 -- .../load_balancers_vpc_API/can_get_all.yml | 97 -- .../can_get_an_instance.yml | 97 -- .../network_acls_vpc_API/can_access_fetch.yml | 111 -- .../can_access_has_count_.yml | 111 -- .../network_acls_vpc_API/can_get_all.yml | 176 -- .../can_get_an_instance.yml | 111 -- .../can_access_fetch.yml | 149 -- .../can_access_has_count_.yml | 149 -- .../operating_systems_vpc_API/can_get_all.yml | 149 -- .../can_get_an_instance.yml | 149 -- .../can_access_fetch.yml | 111 -- .../can_access_has_count_.yml | 111 -- .../public_gateways_vpc_API/can_get_all.yml | 176 -- .../can_get_an_instance.yml | 111 -- .../regions_vpc_API/can_access_fetch.yml | 109 -- .../regions_vpc_API/can_access_has_count_.yml | 109 -- .../regions_vpc_API/can_get_all.yml | 109 -- .../regions_vpc_API/can_get_an_instance.yml | 109 -- .../can_access_fetch.yml | 111 -- .../can_access_has_count_.yml | 111 -- .../security_groups_vpc_API/can_get_all.yml | 176 -- .../can_get_an_instance.yml | 111 -- .../subnets_vpc_API/can_access_fetch.yml | 111 -- .../subnets_vpc_API/can_access_has_count_.yml | 111 -- .../subnets_vpc_API/can_get_all.yml | 176 -- .../subnets_vpc_API/can_get_an_instance.yml | 111 -- .../can_access_fetch.yml | 111 -- .../can_access_has_count_.yml | 111 -- .../volumes_profiles_vpc_API/can_get_all.yml | 176 -- .../can_get_an_instance.yml | 111 -- .../volumes_vpc_API/can_access_fetch.yml | 109 -- .../volumes_vpc_API/can_access_has_count_.yml | 109 -- .../volumes_vpc_API/can_get_all.yml | 109 -- .../volumes_vpc_API/can_get_an_instance.yml | 109 -- .../vpcs_vpc_API/can_access_fetch.yml | 111 -- .../vpcs_vpc_API/can_access_has_count_.yml | 111 -- .../Test_vpc_API/vpcs_vpc_API/can_get_all.yml | 176 -- .../vpcs_vpc_API/can_get_an_instance.yml | 111 -- .../vpn_gateways_vpc_API/can_access_fetch.yml | 97 -- .../can_access_has_count_.yml | 97 -- .../vpn_gateways_vpc_API/can_get_all.yml | 148 -- .../can_get_an_instance.yml | 97 -- .../can_access_fetch.yml | 237 --- .../can_be_called.yml | 172 -- .../can_call_an_instance.yml | 237 --- .../can_get_all.yml | 237 --- .../collection_has_no_count_returns_nil.yml | 237 --- .../can_access_fetch.yml | 174 -- .../Test_subclass_actions/can_be_called.yml | 109 -- .../Test_subclass_actions/can_get_all.yml | 174 -- .../collection_has_no_count_returns_nil.yml | 174 -- .../does_not_have_details.yml | 109 -- .../can_access_fetch.yml | 172 -- .../can_be_called.yml | 109 -- .../can_call_an_instance.yml | 172 -- .../can_get_all.yml | 172 -- .../collection_has_no_count_returns_nil.yml | 172 -- .../can_access_fetch.yml | 174 -- .../can_be_called.yml | 109 -- .../can_call_an_instance.yml | 174 -- .../can_get_all.yml | 174 -- .../collection_has_no_count_returns_nil.yml | 174 -- .../can_be_instantiated.yml | 109 -- .../Exception_has_response_as_method.yml | 106 -- .../Exception_when_status_is_not_2xx.yml | 112 -- .../No_exception_when_status_is_2xx.yml | 109 -- .../does_not_throw_on_404.yml | 106 -- ...ExceptionWithResponse_body_is_not_json.yml | 106 -- ...throws_HttpStatusError_on_error_occurs.yml | 47 - 764 files changed, 88 insertions(+), 90676 deletions(-) rename gems/ibm_cloud_activity_tracker/CODE_OF_CONDUCT.md => CODE_OF_CONDUCT.md (100%) rename gems/ibm_cloud_global_tagging/CONTRIBUTING.md => CONTRIBUTING.md (100%) rename gems/ibm_cloud_activity_tracker/LICENSE => LICENSE (100%) delete mode 100644 LICENSE.txt delete mode 100644 gems/ibm_cloud/.gitignore delete mode 100644 gems/ibm_cloud/.rspec delete mode 100644 gems/ibm_cloud/.travis.yml delete mode 100644 gems/ibm_cloud/Gemfile delete mode 100644 gems/ibm_cloud/LICENSE.txt delete mode 100644 gems/ibm_cloud/README.md delete mode 100644 gems/ibm_cloud/Rakefile delete mode 100755 gems/ibm_cloud/bin/console delete mode 100755 gems/ibm_cloud/bin/setup delete mode 100644 gems/ibm_cloud/ibm_cloud.gemspec delete mode 100644 gems/ibm_cloud/lib/ibm_cloud.rb delete mode 100644 gems/ibm_cloud/spec/ibm_cloud_spec.rb delete mode 100644 gems/ibm_cloud/spec/spec_helper.rb delete mode 100644 gems/ibm_cloud_activity_tracker/.bumpversion.cfg delete mode 100644 gems/ibm_cloud_activity_tracker/.gitignore delete mode 100644 gems/ibm_cloud_activity_tracker/.rspec delete mode 100644 gems/ibm_cloud_activity_tracker/.secrets.baseline delete mode 100644 gems/ibm_cloud_activity_tracker/.travis.yml delete mode 100644 gems/ibm_cloud_activity_tracker/CHANGELOG.md delete mode 100644 gems/ibm_cloud_activity_tracker/CONTRIBUTING.md delete mode 100644 gems/ibm_cloud_activity_tracker/Gemfile delete mode 100644 gems/ibm_cloud_activity_tracker/README.md delete mode 100644 gems/ibm_cloud_activity_tracker/Rakefile delete mode 100644 gems/ibm_cloud_activity_tracker/bin/console delete mode 100644 gems/ibm_cloud_activity_tracker/bin/setup delete mode 100644 gems/ibm_cloud_activity_tracker/ibm_cloud_activity_tracker.gemspec delete mode 100644 gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker.rb delete mode 100644 gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/activity_tracker_api_v1.rb delete mode 100644 gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/common.rb delete mode 100644 gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/version.rb delete mode 100644 gems/ibm_cloud_activity_tracker/spec/spec_helper.rb delete mode 100644 gems/ibm_cloud_global_tagging/.bumpversion.cfg delete mode 100644 gems/ibm_cloud_global_tagging/.gitignore delete mode 100644 gems/ibm_cloud_global_tagging/.rspec delete mode 100644 gems/ibm_cloud_global_tagging/.travis.yml delete mode 100644 gems/ibm_cloud_global_tagging/CHANGELOG.md delete mode 100644 gems/ibm_cloud_global_tagging/CODE_OF_CONDUCT.md delete mode 100644 gems/ibm_cloud_global_tagging/Gemfile delete mode 100644 gems/ibm_cloud_global_tagging/LICENSE delete mode 100644 gems/ibm_cloud_global_tagging/LICENSE.txt delete mode 100644 gems/ibm_cloud_global_tagging/README.md delete mode 100644 gems/ibm_cloud_global_tagging/Rakefile delete mode 100755 gems/ibm_cloud_global_tagging/bin/console delete mode 100755 gems/ibm_cloud_global_tagging/bin/setup delete mode 100644 gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging.rb delete mode 100644 gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/global_tagging_v1.rb delete mode 100644 gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/version.rb delete mode 100644 gems/ibm_cloud_global_tagging/spec/ibm_cloud_global_tagging/common_spec.rb delete mode 100644 gems/ibm_cloud_global_tagging/spec/spec_helper.rb delete mode 100644 gems/ibm_cloud_iam/.gitignore delete mode 100644 gems/ibm_cloud_iam/.openapi-config.json delete mode 100644 gems/ibm_cloud_iam/.openapi-generator-ignore delete mode 100644 gems/ibm_cloud_iam/.openapi-generator/FILES delete mode 100644 gems/ibm_cloud_iam/.openapi-generator/VERSION delete mode 100644 gems/ibm_cloud_iam/.rspec delete mode 100644 gems/ibm_cloud_iam/.rubocop.yml delete mode 100644 gems/ibm_cloud_iam/.travis.yml delete mode 100644 gems/ibm_cloud_iam/Gemfile delete mode 100644 gems/ibm_cloud_iam/LICENSE.txt delete mode 100644 gems/ibm_cloud_iam/README.md delete mode 100644 gems/ibm_cloud_iam/Rakefile delete mode 100644 gems/ibm_cloud_iam/docs/ApiKey.md delete mode 100644 gems/ibm_cloud_iam/docs/ApiKeyInsideCreateServiceIdRequest.md delete mode 100644 gems/ibm_cloud_iam/docs/ApiKeyList.md delete mode 100644 gems/ibm_cloud_iam/docs/CreateApiKeyRequest.md delete mode 100644 gems/ibm_cloud_iam/docs/CreateServiceIdRequest.md delete mode 100644 gems/ibm_cloud_iam/docs/EnityHistoryRecord.md delete mode 100644 gems/ibm_cloud_iam/docs/Error.md delete mode 100644 gems/ibm_cloud_iam/docs/ExceptionResponse.md delete mode 100644 gems/ibm_cloud_iam/docs/ExceptionResponseContext.md delete mode 100644 gems/ibm_cloud_iam/docs/IdentityOperationsApi.md delete mode 100644 gems/ibm_cloud_iam/docs/InlineObject.md delete mode 100644 gems/ibm_cloud_iam/docs/InlineObject1.md delete mode 100644 gems/ibm_cloud_iam/docs/InlineObject2.md delete mode 100644 gems/ibm_cloud_iam/docs/InlineObject3.md delete mode 100644 gems/ibm_cloud_iam/docs/MFARequirementsResponse.md delete mode 100644 gems/ibm_cloud_iam/docs/OidcExceptionResponse.md delete mode 100644 gems/ibm_cloud_iam/docs/ResponseContext.md delete mode 100644 gems/ibm_cloud_iam/docs/ServiceId.md delete mode 100644 gems/ibm_cloud_iam/docs/ServiceIdList.md delete mode 100644 gems/ibm_cloud_iam/docs/TokenOperationsApi.md delete mode 100644 gems/ibm_cloud_iam/docs/TokenResponse.md delete mode 100644 gems/ibm_cloud_iam/docs/UpdateApiKeyRequest.md delete mode 100644 gems/ibm_cloud_iam/docs/UpdateServiceIdRequest.md delete mode 100644 gems/ibm_cloud_iam/git_push.sh delete mode 100644 gems/ibm_cloud_iam/ibm_cloud_iam.gemspec delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/api/identity_operations_api.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/api/token_operations_api.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/api_client.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/api_error.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/configuration.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key_inside_create_service_id_request.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key_list.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/create_api_key_request.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/create_service_id_request.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/enity_history_record.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/error.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/exception_response.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/exception_response_context.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object1.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object2.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object3.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/mfa_requirements_response.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/oidc_exception_response.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/response_context.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/service_id.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/service_id_list.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/token_response.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/update_api_key_request.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/update_service_id_request.rb delete mode 100644 gems/ibm_cloud_iam/lib/ibm_cloud_iam/version.rb delete mode 100644 gems/ibm_cloud_iam/spec/api/identity_operations_api_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/api/token_operations_api_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/api_client_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/configuration_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/api_key_inside_create_service_id_request_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/api_key_list_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/api_key_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/create_api_key_request_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/create_service_id_request_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/enity_history_record_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/error_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/exception_response_context_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/exception_response_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/inline_object1_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/inline_object2_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/inline_object3_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/inline_object_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/mfa_requirements_response_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/oidc_exception_response_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/response_context_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/service_id_list_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/service_id_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/token_response_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/update_api_key_request_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/models/update_service_id_request_spec.rb delete mode 100644 gems/ibm_cloud_iam/spec/spec_helper.rb delete mode 100644 gems/ibm_cloud_power/.gitignore delete mode 100644 gems/ibm_cloud_power/.openapi-config.json delete mode 100644 gems/ibm_cloud_power/.openapi-generator-ignore delete mode 100644 gems/ibm_cloud_power/.openapi-generator/FILES delete mode 100644 gems/ibm_cloud_power/.openapi-generator/VERSION delete mode 100644 gems/ibm_cloud_power/.rspec delete mode 100644 gems/ibm_cloud_power/.rubocop.yml delete mode 100644 gems/ibm_cloud_power/.travis.yml delete mode 100644 gems/ibm_cloud_power/Gemfile delete mode 100644 gems/ibm_cloud_power/LICENSE.txt delete mode 100644 gems/ibm_cloud_power/README.md delete mode 100644 gems/ibm_cloud_power/Rakefile delete mode 100644 gems/ibm_cloud_power/docs/CloneTaskReference.md delete mode 100644 gems/ibm_cloud_power/docs/CloneTaskStatus.md delete mode 100644 gems/ibm_cloud_power/docs/ClonedVolume.md delete mode 100644 gems/ibm_cloud_power/docs/ClonedVolumeDetail.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnection.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionCreate.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionEndpointClassic.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionEndpointGRE.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionEndpointVPC.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionGRETunnel.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionSpeed.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionUpdate.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionVPC.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionVirtualPrivateClouds.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md delete mode 100644 gems/ibm_cloud_power/docs/CloudConnections.md delete mode 100644 gems/ibm_cloud_power/docs/CloudInstance.md delete mode 100644 gems/ibm_cloud_power/docs/CloudInstanceCreate.md delete mode 100644 gems/ibm_cloud_power/docs/CloudInstanceReference.md delete mode 100644 gems/ibm_cloud_power/docs/CloudInstanceUpdate.md delete mode 100644 gems/ibm_cloud_power/docs/CloudInstanceUsageLimits.md delete mode 100644 gems/ibm_cloud_power/docs/CreateDataVolume.md delete mode 100644 gems/ibm_cloud_power/docs/CreateImage.md delete mode 100644 gems/ibm_cloud_power/docs/Error.md delete mode 100644 gems/ibm_cloud_power/docs/Event.md delete mode 100644 gems/ibm_cloud_power/docs/EventUser.md delete mode 100644 gems/ibm_cloud_power/docs/Events.md delete mode 100644 gems/ibm_cloud_power/docs/ExportImage.md delete mode 100644 gems/ibm_cloud_power/docs/IPAddressRange.md delete mode 100644 gems/ibm_cloud_power/docs/Image.md delete mode 100644 gems/ibm_cloud_power/docs/ImageReference.md delete mode 100644 gems/ibm_cloud_power/docs/ImageSpecifications.md delete mode 100644 gems/ibm_cloud_power/docs/ImageVolume.md delete mode 100644 gems/ibm_cloud_power/docs/Images.md delete mode 100644 gems/ibm_cloud_power/docs/MaximumStorageAllocation.md delete mode 100644 gems/ibm_cloud_power/docs/MinMaxDefault.md delete mode 100644 gems/ibm_cloud_power/docs/MultiVolumesCreate.md delete mode 100644 gems/ibm_cloud_power/docs/Network.md delete mode 100644 gems/ibm_cloud_power/docs/NetworkCreate.md delete mode 100644 gems/ibm_cloud_power/docs/NetworkIpAddressMetrics.md delete mode 100644 gems/ibm_cloud_power/docs/NetworkPort.md delete mode 100644 gems/ibm_cloud_power/docs/NetworkPortCreate.md delete mode 100644 gems/ibm_cloud_power/docs/NetworkPortPvmInstance.md delete mode 100644 gems/ibm_cloud_power/docs/NetworkPortUpdate.md delete mode 100644 gems/ibm_cloud_power/docs/NetworkPorts.md delete mode 100644 gems/ibm_cloud_power/docs/NetworkReference.md delete mode 100644 gems/ibm_cloud_power/docs/NetworkUpdate.md delete mode 100644 gems/ibm_cloud_power/docs/Networks.md delete mode 100644 gems/ibm_cloud_power/docs/Operations.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudCloudConnectionsApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudEventsApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudImagesApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudInstancesApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudNetworksApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudPVMInstancesApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudPlacementGroupsApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudSAPApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudSnapshotsApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudStorageCapacityApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudSystemPoolsApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudTasksApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudTenantsApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudTenantsSSHKeysApi.md delete mode 100644 gems/ibm_cloud_power/docs/PCloudVolumesApi.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstance.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceAction.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceAddNetwork.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceCapture.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceClone.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceConsole.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceCreate.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceFault.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceHealth.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceMultiCreate.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceNetwork.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceNetworks.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceOperation.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceReference.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceRemoveNetwork.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceUpdate.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceUpdateResponse.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstanceVolumeUpdate.md delete mode 100644 gems/ibm_cloud_power/docs/PVMInstances.md delete mode 100644 gems/ibm_cloud_power/docs/PeeringNetwork.md delete mode 100644 gems/ibm_cloud_power/docs/PinPolicy.md delete mode 100644 gems/ibm_cloud_power/docs/PlacementGroup.md delete mode 100644 gems/ibm_cloud_power/docs/PlacementGroupCreate.md delete mode 100644 gems/ibm_cloud_power/docs/PlacementGroupServer.md delete mode 100644 gems/ibm_cloud_power/docs/PlacementGroups.md delete mode 100644 gems/ibm_cloud_power/docs/SAPCreate.md delete mode 100644 gems/ibm_cloud_power/docs/SAPProfile.md delete mode 100644 gems/ibm_cloud_power/docs/SAPProfileReference.md delete mode 100644 gems/ibm_cloud_power/docs/SAPProfiles.md delete mode 100644 gems/ibm_cloud_power/docs/SRC.md delete mode 100644 gems/ibm_cloud_power/docs/SSHKey.md delete mode 100644 gems/ibm_cloud_power/docs/SSHKeys.md delete mode 100644 gems/ibm_cloud_power/docs/Snapshot.md delete mode 100644 gems/ibm_cloud_power/docs/SnapshotCreate.md delete mode 100644 gems/ibm_cloud_power/docs/SnapshotCreateResponse.md delete mode 100644 gems/ibm_cloud_power/docs/SnapshotRestore.md delete mode 100644 gems/ibm_cloud_power/docs/SnapshotUpdate.md delete mode 100644 gems/ibm_cloud_power/docs/Snapshots.md delete mode 100644 gems/ibm_cloud_power/docs/SoftwareLicenses.md delete mode 100644 gems/ibm_cloud_power/docs/StockImage.md delete mode 100644 gems/ibm_cloud_power/docs/StoragePoolCapacity.md delete mode 100644 gems/ibm_cloud_power/docs/StoragePoolsCapacity.md delete mode 100644 gems/ibm_cloud_power/docs/StorageTypeCapacity.md delete mode 100644 gems/ibm_cloud_power/docs/StorageTypesCapacity.md delete mode 100644 gems/ibm_cloud_power/docs/System.md delete mode 100644 gems/ibm_cloud_power/docs/SystemPool.md delete mode 100644 gems/ibm_cloud_power/docs/Task.md delete mode 100644 gems/ibm_cloud_power/docs/TaskReference.md delete mode 100644 gems/ibm_cloud_power/docs/Tenant.md delete mode 100644 gems/ibm_cloud_power/docs/TenantUpdate.md delete mode 100644 gems/ibm_cloud_power/docs/UpdateVolume.md delete mode 100644 gems/ibm_cloud_power/docs/VirtualCores.md delete mode 100644 gems/ibm_cloud_power/docs/Volume.md delete mode 100644 gems/ibm_cloud_power/docs/VolumeInfo.md delete mode 100644 gems/ibm_cloud_power/docs/VolumeReference.md delete mode 100644 gems/ibm_cloud_power/docs/Volumes.md delete mode 100644 gems/ibm_cloud_power/docs/VolumesClone.md delete mode 100644 gems/ibm_cloud_power/docs/VolumesCloneAsyncRequest.md delete mode 100644 gems/ibm_cloud_power/docs/VolumesCloneCancel.md delete mode 100644 gems/ibm_cloud_power/docs/VolumesCloneCreate.md delete mode 100644 gems/ibm_cloud_power/docs/VolumesCloneDetail.md delete mode 100644 gems/ibm_cloud_power/docs/VolumesCloneExecute.md delete mode 100644 gems/ibm_cloud_power/docs/VolumesCloneRequest.md delete mode 100644 gems/ibm_cloud_power/docs/VolumesCloneResponse.md delete mode 100644 gems/ibm_cloud_power/docs/VolumesClones.md delete mode 100644 gems/ibm_cloud_power/git_push.sh delete mode 100644 gems/ibm_cloud_power/ibm_cloud_power.gemspec delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_cloud_connections_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_events_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_images_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_instances_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_networks_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_placement_groups_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_sap_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_snapshots_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_storage_capacity_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_system_pools_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tasks_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tenants_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tenants_ssh_keys_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_volumes_api.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api_client.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/api_error.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/configuration.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/clone_task_reference.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/clone_task_status.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloned_volume.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloned_volume_detail.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_classic.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_gre.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_vpc.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_gre_tunnel.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_speed.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_update.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds_virtual_private_clouds.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_vpc.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connections.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_reference.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_update.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_usage_limits.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/create_data_volume.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/create_image.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/error.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/event.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/event_user.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/events.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/export_image.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/image.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_reference.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_specifications.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_volume.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/images.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/ip_address_range.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/maximum_storage_allocation.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/min_max_default.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/multi_volumes_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_ip_address_metrics.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_pvm_instance.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_update.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_ports.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_reference.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_update.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/networks.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/operations.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/peering_network.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pin_policy.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group_server.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_groups.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_action.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_add_network.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_capture.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_clone.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_console.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_fault.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_health.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_multi_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_network.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_networks.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_operation.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_reference.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_remove_network.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_update.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_update_response.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_volume_update.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instances.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profile.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profile_reference.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profiles.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_create_response.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_restore.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_update.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshots.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/software_licenses.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/src.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/ssh_key.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/ssh_keys.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/stock_image.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_pool_capacity.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_pools_capacity.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_type_capacity.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_types_capacity.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/system.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/system_pool.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/task.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/task_reference.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/tenant.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/tenant_update.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/update_volume.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/virtual_cores.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume_info.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume_reference.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_async_request.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_cancel.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_create.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_detail.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_execute.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_request.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_response.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clones.rb delete mode 100644 gems/ibm_cloud_power/lib/ibm_cloud_power/version.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_cloud_connections_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_events_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_images_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_instances_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_networks_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_placement_groups_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_pvm_instances_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_sap_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_snapshots_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_storage_capacity_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_system_pools_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_tasks_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_tenants_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_tenants_ssh_keys_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api/p_cloud_volumes_api_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/api_client_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/configuration_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/clone_task_reference_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/clone_task_status_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloned_volume_detail_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloned_volume_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_classic_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_gre_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_vpc_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_gre_tunnel_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_speed_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_update_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_virtual_private_clouds_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connection_vpc_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_connections_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_instance_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_instance_reference_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_instance_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_instance_update_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/cloud_instance_usage_limits_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/create_data_volume_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/create_image_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/error_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/event_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/event_user_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/events_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/export_image_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/image_reference_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/image_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/image_specifications_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/image_volume_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/images_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/ip_address_range_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/maximum_storage_allocation_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/min_max_default_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/multi_volumes_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_ip_address_metrics_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_port_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_port_pvm_instance_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_port_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_port_update_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_ports_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_reference_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/network_update_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/networks_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/operations_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/peering_network_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pin_policy_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/placement_group_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/placement_group_server_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/placement_group_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/placement_groups_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_action_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_add_network_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_capture_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_clone_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_console_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_fault_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_health_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_multi_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_network_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_networks_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_operation_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_reference_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_remove_network_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_update_response_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_update_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instance_volume_update_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/pvm_instances_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/sap_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/sap_profile_reference_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/sap_profile_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/sap_profiles_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/snapshot_create_response_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/snapshot_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/snapshot_restore_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/snapshot_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/snapshot_update_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/snapshots_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/software_licenses_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/src_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/ssh_key_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/ssh_keys_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/stock_image_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/storage_pool_capacity_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/storage_pools_capacity_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/storage_type_capacity_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/storage_types_capacity_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/system_pool_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/system_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/task_reference_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/task_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/tenant_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/tenant_update_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/update_volume_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/virtual_cores_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volume_info_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volume_reference_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volume_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_clone_async_request_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_clone_cancel_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_clone_create_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_clone_detail_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_clone_execute_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_clone_request_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_clone_response_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_clone_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_clones_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/models/volumes_spec.rb delete mode 100644 gems/ibm_cloud_power/spec/spec_helper.rb delete mode 100644 gems/ibm_cloud_resource_controller/.bumpversion.cfg delete mode 100644 gems/ibm_cloud_resource_controller/.gitignore delete mode 100644 gems/ibm_cloud_resource_controller/.openapi-generator-ignore delete mode 100644 gems/ibm_cloud_resource_controller/.openapi-generator/VERSION delete mode 100644 gems/ibm_cloud_resource_controller/.rspec delete mode 100644 gems/ibm_cloud_resource_controller/.travis.yml delete mode 100644 gems/ibm_cloud_resource_controller/CHANGELOG.md delete mode 100644 gems/ibm_cloud_resource_controller/CODE_OF_CONDUCT.md delete mode 100644 gems/ibm_cloud_resource_controller/CONTRIBUTING.md delete mode 100644 gems/ibm_cloud_resource_controller/Gemfile delete mode 100644 gems/ibm_cloud_resource_controller/LICENSE delete mode 100644 gems/ibm_cloud_resource_controller/LICENSE.txt delete mode 100644 gems/ibm_cloud_resource_controller/README.md delete mode 100644 gems/ibm_cloud_resource_controller/Rakefile delete mode 100755 gems/ibm_cloud_resource_controller/bin/console delete mode 100755 gems/ibm_cloud_resource_controller/bin/setup delete mode 100644 gems/ibm_cloud_resource_controller/ibm_cloud_resource_controller.gemspec delete mode 100644 gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller.rb delete mode 100644 gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/authenticators.rb delete mode 100644 gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/common.rb delete mode 100644 gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/resource_controller_v2.rb delete mode 100644 gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/resource_manager_v2.rb delete mode 100644 gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/version.rb delete mode 100644 gems/ibm_cloud_resource_controller/spec/ibm_cloud_resource_controller/common_spec.rb delete mode 100644 gems/ibm_cloud_resource_controller/spec/spec_helper.rb delete mode 100644 ibm-cloud-sdk.gemspec rename gems/ibm_cloud_global_tagging/ibm_cloud_global_tagging.gemspec => ibm_cloud.gemspec (67%) delete mode 100644 lib/ibm-cloud-sdk.rb delete mode 100644 lib/ibm/cloud/sdk.rb delete mode 100644 lib/ibm/cloud/sdk/base_service.rb delete mode 100644 lib/ibm/cloud/sdk/iam.rb delete mode 100644 lib/ibm/cloud/sdk/iam/token.rb delete mode 100644 lib/ibm/cloud/sdk/logging.rb delete mode 100644 lib/ibm/cloud/sdk/null_logger.rb delete mode 100644 lib/ibm/cloud/sdk/power_iaas.rb delete mode 100644 lib/ibm/cloud/sdk/resource_controller.rb delete mode 100644 lib/ibm/cloud/sdk/resource_controller/resource.rb delete mode 100644 lib/ibm/cloud/sdk/tags.rb delete mode 100644 lib/ibm/cloud/sdk/tags/http.rb delete mode 100644 lib/ibm/cloud/sdk/tags/http/tag_collection.rb delete mode 100644 lib/ibm/cloud/sdk/version.rb delete mode 100644 lib/ibm/cloud/sdk/vpc.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/floatingips.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/flowlogcollectors.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/http.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/http/vpc_collection.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/http/vpc_http.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/http/vpc_instance.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/ike_policies.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/images.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/instance/actions.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/instance/floating_ips.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/instance/network_interfaces.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/instance/volume_attachments.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/instance_profiles.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/instances.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/ipsec_policies.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/keys.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/load_balancer.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/load_balancer/listeners.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/load_balancer/members.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/load_balancer/policies.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/load_balancer/pools.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/load_balancer/rules.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/load_balancers.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/network_acls.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/operating_systems.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/public_gateways.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/regions.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/security_groups.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/subnets.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/volume_profiles.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/volumes.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/vpcs.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/vpn_gateway/connections.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/vpn_gateway/local_cidrs.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/vpn_gateway/peer_cidrs.rb delete mode 100644 lib/ibm/cloud/sdk/vpc/vpn_gateways.rb delete mode 100644 lib/ibm/cloud/sdk_http.rb delete mode 100644 lib/ibm/cloud/sdk_http/base_collection.rb delete mode 100644 lib/ibm/cloud/sdk_http/base_http_mixin.rb delete mode 100644 lib/ibm/cloud/sdk_http/base_instance.rb delete mode 100644 lib/ibm/cloud/sdk_http/connection.rb delete mode 100644 lib/ibm/cloud/sdk_http/exceptions.rb delete mode 100644 lib/ibm/cloud/sdk_http/has_child.rb delete mode 100644 lib/ibm/cloud/sdk_http/iam_token.rb delete mode 100644 lib/ibm/cloud/sdk_http/sdk_response.rb delete mode 100644 lib/ibm/cloud_sdk.rb create mode 100644 lib/ibm_cloud.rb rename {gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging => lib/ibm_cloud}/common.rb (80%) rename {gems/ibm_cloud/lib => lib}/ibm_cloud/version.rb (100%) delete mode 100644 spec/ibm/cloud/sdk/logging_spec.rb delete mode 100644 spec/ibm/cloud/sdk/tags_spec.rb delete mode 100644 spec/ibm/cloud/sdk/vpc/instance_spec.rb delete mode 100644 spec/ibm/cloud/sdk/vpc_exception_spec.rb delete mode 100644 spec/ibm/cloud/sdk/vpc_spec.rb delete mode 100644 spec/ibm/cloud/sdk/vpc_vcr.rb delete mode 100644 spec/ibm/cloud/sdk_spec.rb delete mode 100644 spec/ibm/cloud_sdk_spec.rb rename {gems/ibm_cloud_activity_tracker/spec/ibm_cloud_activity_tracker => spec/ibm_cloud}/common_spec.rb (100%) delete mode 100644 spec/vcr/IBM_Cloud_SDK_Tags/can_get_all.yml delete mode 100644 spec/vcr/IBM_Cloud_SDK_Tags/can_get_fetch.yml delete mode 100644 spec/vcr/IBM_Cloud_SDK_Tags/can_set_parameters.yml delete mode 100644 spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/images_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/images_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/images_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/images_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/instances_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/instances_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/instances_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/instances_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/keys_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/keys_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/keys_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/keys_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/network_acls_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/network_acls_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/network_acls_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/network_acls_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/regions_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/regions_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/regions_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/regions_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/security_groups_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/security_groups_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/security_groups_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/security_groups_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/subnets_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/subnets_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/subnets_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/subnets_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/volumes_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/volumes_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/volumes_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/volumes_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/vpcs_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/vpcs_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/vpcs_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/vpcs_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_access_has_count_.yml delete mode 100644 spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_get_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_be_called.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_call_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/collection_has_no_count_returns_nil.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_be_called.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_actions/collection_has_no_count_returns_nil.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_actions/does_not_have_details.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_be_called.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_call_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/collection_has_no_count_returns_nil.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_access_fetch.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_be_called.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_call_an_instance.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_get_all.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/collection_has_no_count_returns_nil.yml delete mode 100644 spec/vcr/Test_vpc_instance_API/can_be_instantiated.yml delete mode 100644 spec/vcr/Test_vpc_response_exceptions/Exception_has_response_as_method.yml delete mode 100644 spec/vcr/Test_vpc_response_exceptions/Exception_when_status_is_not_2xx.yml delete mode 100644 spec/vcr/Test_vpc_response_exceptions/No_exception_when_status_is_2xx.yml delete mode 100644 spec/vcr/Test_vpc_response_exceptions/does_not_throw_on_404.yml delete mode 100644 spec/vcr/Test_vpc_response_exceptions/json_method_throws_ExceptionWithResponse_body_is_not_json.yml delete mode 100644 spec/vcr/Test_vpc_response_exceptions/throws_HttpStatusError_on_error_occurs.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 8439114b..0e0058dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,46 +1,2 @@ -# Changelog -All notable changes to the gem ibm-cloud-sdk-ruby will be documented here. - -## v0.1.11 - 2020-10-28 -- Add start, stop, and reboot actions on VPC instances - -## v0.1.10 - 2020-10-08 -- Change VPC http provider to HTTParty -- Add Tags API and clean up VPC -- Log ResourceController and IAM calls - -## v0.1.9 - 2020-10-02 -- Fix PowerVS Volume Attach/Detach calls - -## v0.1.8 - 2020-10-01 -- Add second level instances - -## v0.1.7 - 2020-09-28 -- Added Logging in IBM Cloud -- Add VCR to vpc spec -- Add exception when status of response is not in 200 range or 404 -- Power IaaS Update docstrings, VM actions volumes - -## v0.1.6 - 2020-09-23 -- Add PowerIaaS method to get instance info -- Return region specific PowerVS storage types -- Move VPC instance into instances and add initialization method. - -## v0.1.5 - 2020-09-21 -- Added Enumerable based pagination support -- Move instance profiles -- Improve resource lookup by GUID -- Add support to create a PowerIaas volume - -## v0.1.4 - 2020-09-17 -- Added support for the IBM Virtual Private Cloud (VPC) service - -## v0.1.3 - 2020-08-31 -### Added the following rest api calls for Power System Virtual Server service -- Add PowerIaas 'delete_volume' method -- Add PowerVS SAP API calls -- get list of available system pools within a particular data center -- get list of all storage type availble in the data center. There may be - update to the call once PowerVS service updates the storage type rest api - for Power System Virtual Server service . - += 0.0.1 +* Initial release diff --git a/gems/ibm_cloud_activity_tracker/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md similarity index 100% rename from gems/ibm_cloud_activity_tracker/CODE_OF_CONDUCT.md rename to CODE_OF_CONDUCT.md diff --git a/gems/ibm_cloud_global_tagging/CONTRIBUTING.md b/CONTRIBUTING.md similarity index 100% rename from gems/ibm_cloud_global_tagging/CONTRIBUTING.md rename to CONTRIBUTING.md diff --git a/Gemfile b/Gemfile index ce9d104b..09e7e424 100644 --- a/Gemfile +++ b/Gemfile @@ -1,9 +1,7 @@ source "https://rubygems.org" -# Specify your gem's dependencies in ibm-cloud-sdk.gemspec +# Specify your gem's dependencies in ibm_cloud.gemspec gemspec gem "rake", "~> 12.0" gem "rspec", "~> 3.0" -gem 'vcr' -gem 'webmock' diff --git a/gems/ibm_cloud_activity_tracker/LICENSE b/LICENSE similarity index 100% rename from gems/ibm_cloud_activity_tracker/LICENSE rename to LICENSE diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index d6456956..00000000 --- a/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/README.md b/README.md index 88b6d259..caa3bb28 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,84 @@ -# IBM::Cloud::SDK +[![Build Status](https://travis-ci.com/IBM-Cloud/ibm-cloud-sdk-ruby.svg?token=eW5FVD71iyte6tTby8gr&branch=master)](https://travis.ibm.com/IBM-Cloud/ibm-cloud-sdk-ruby) +[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) +# IBM Cloud Ruby SDK -## Installation +Ruby client library to interact with various [IBM Cloud IBM Cloud APIs](https://cloud.ibm.com/apidocs?category=platform-services). -Add this line to your application's Gemfile: +Disclaimer: this SDK is being released initially as a **pre-release** version. +Changes might occur which impact applications that use this SDK. -```ruby -gem 'ibm-cloud-sdk' -``` +## Table of Contents + + + + + +- [Overview](#overview) +- [Prerequisites](#prerequisites) +- [Installation](#installation) +- [Using the SDK](#using-the-sdk) +- [Questions](#questions) +- [Issues](#issues) +- [Open source @ IBM](#open-source--ibm) +- [Contributing](#contributing) +- [License](#license) -And then execute: + - $ bundle install +## Overview -Or install it yourself as: +The IBM Cloud IBM Cloud Ruby SDK allows developers to programmatically interact with the following +IBM Cloud services: - $ gem install ibm-cloud-sdk +Service Name | Imported Class Name +--- | --- + + +## Prerequisites + +[ibm-cloud-onboarding]: https://cloud.ibm.com/registration + +* An [IBM Cloud][ibm-cloud-onboarding] account. +* An IAM API key to allow the SDK to access your account. Create one [here](https://cloud.ibm.com/iam/apikeys). +* Ruby 2.3.0 or above. + +## Installation + +To install, use `gem` + +```bash +gem install "ibm_cloud" +``` -## Usage +## Using the SDK +For general SDK usage information, please see [this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) -TODO: Write usage instructions here +## Questions -## Development +If you are having difficulties using this SDK or have a question about the IBM Cloud services, +please ask a question +[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud). -After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. +## Issues +If you encounter an issue with the project, you are welcome to submit a +[bug report](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/issues). +Before that, please search for similar issues. It's possible that someone has already reported the problem. -To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). +## Open source @ IBM +Find more open source projects on the [IBM Github Page](http://ibm.github.io/) ## Contributing +See [CONTRIBUTING.md](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/master/CONTRIBUTING.md). -Bug reports and pull requests are welcome on GitHub at https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby. +## License +This SDK is released under the Apache 2.0 license. +The license's full text can be found in [LICENSE](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/master/LICENSE). diff --git a/bin/console b/bin/console index 434945d2..b80eda7e 100755 --- a/bin/console +++ b/bin/console @@ -1,7 +1,7 @@ #!/usr/bin/env ruby require "bundler/setup" -require "ibm/cloud/sdk" +require "ibm_cloud" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. diff --git a/gems/ibm_cloud/.gitignore b/gems/ibm_cloud/.gitignore deleted file mode 100644 index b04a8c84..00000000 --- a/gems/ibm_cloud/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -/.bundle/ -/.yardoc -/_yardoc/ -/coverage/ -/doc/ -/pkg/ -/spec/reports/ -/tmp/ - -# rspec failure tracking -.rspec_status diff --git a/gems/ibm_cloud/.rspec b/gems/ibm_cloud/.rspec deleted file mode 100644 index 34c5164d..00000000 --- a/gems/ibm_cloud/.rspec +++ /dev/null @@ -1,3 +0,0 @@ ---format documentation ---color ---require spec_helper diff --git a/gems/ibm_cloud/.travis.yml b/gems/ibm_cloud/.travis.yml deleted file mode 100644 index 8015c811..00000000 --- a/gems/ibm_cloud/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -language: ruby -cache: bundler -rvm: - - 2.5.8 - - 2.6.6 -before_install: gem install bundler -v 2.1.4 diff --git a/gems/ibm_cloud/Gemfile b/gems/ibm_cloud/Gemfile deleted file mode 100644 index 09e7e424..00000000 --- a/gems/ibm_cloud/Gemfile +++ /dev/null @@ -1,7 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem's dependencies in ibm_cloud.gemspec -gemspec - -gem "rake", "~> 12.0" -gem "rspec", "~> 3.0" diff --git a/gems/ibm_cloud/LICENSE.txt b/gems/ibm_cloud/LICENSE.txt deleted file mode 100644 index d6456956..00000000 --- a/gems/ibm_cloud/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/gems/ibm_cloud/README.md b/gems/ibm_cloud/README.md deleted file mode 100644 index 26fb4944..00000000 --- a/gems/ibm_cloud/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# IbmCloud - -Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ibm_cloud`. To experiment with that code, run `bin/console` for an interactive prompt. - -TODO: Delete this and the text above, and describe your gem - -## Installation - -Add this line to your application's Gemfile: - -```ruby -gem 'ibm_cloud' -``` - -And then execute: - - $ bundle install - -Or install it yourself as: - - $ gem install ibm_cloud - -## Usage - -TODO: Write usage instructions here - -## Development - -After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. - -To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). - -## Contributing - -Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ibm_cloud. - diff --git a/gems/ibm_cloud/Rakefile b/gems/ibm_cloud/Rakefile deleted file mode 100644 index b7e9ed54..00000000 --- a/gems/ibm_cloud/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -require "bundler/gem_tasks" -require "rspec/core/rake_task" - -RSpec::Core::RakeTask.new(:spec) - -task :default => :spec diff --git a/gems/ibm_cloud/bin/console b/gems/ibm_cloud/bin/console deleted file mode 100755 index b80eda7e..00000000 --- a/gems/ibm_cloud/bin/console +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -require "bundler/setup" -require "ibm_cloud" - -# You can add fixtures and/or initialization code here to make experimenting -# with your gem easier. You can also use a different console, if you like. - -# (If you use this, don't forget to add pry to your Gemfile!) -# require "pry" -# Pry.start - -require "irb" -IRB.start(__FILE__) diff --git a/gems/ibm_cloud/bin/setup b/gems/ibm_cloud/bin/setup deleted file mode 100755 index dce67d86..00000000 --- a/gems/ibm_cloud/bin/setup +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -IFS=$'\n\t' -set -vx - -bundle install - -# Do any other automated setup that you need to do here diff --git a/gems/ibm_cloud/ibm_cloud.gemspec b/gems/ibm_cloud/ibm_cloud.gemspec deleted file mode 100644 index a4ac5d09..00000000 --- a/gems/ibm_cloud/ibm_cloud.gemspec +++ /dev/null @@ -1,33 +0,0 @@ -require_relative 'lib/ibm_cloud/version' - -Gem::Specification.new do |spec| - spec.name = "ibm_cloud" - spec.version = IbmCloud::VERSION - spec.authors = ["IBM Cloud Developers"] - - spec.summary = %q{IBM Cloud SDK} - spec.description = %q{A Ruby gem for IBM Cloud APIs.} - spec.homepage = "Put your gem's website or public repo URL here." - spec.licenses = ["Apache-2.0"] - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") - - spec.metadata["allowed_push_host"] = "Set to 'http://mygemserver.com'" - - spec.metadata["homepage_uri"] = spec.homepage - spec.metadata["source_code_uri"] = "Put your gem's public repo URL here." - spec.metadata["changelog_uri"] = "Put your gem's CHANGELOG.md URL here." - - # Specify which files should be added to the gem when it is released. - # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - end - spec.bindir = "exe" - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ["lib"] - - spec.add_dependency("ibm_cloud_global_tagging") - spec.add_dependency("ibm_cloud_iam") - spec.add_dependency("ibm_cloud_power") - spec.add_dependency("ibm_cloud_resource_controller") -end diff --git a/gems/ibm_cloud/lib/ibm_cloud.rb b/gems/ibm_cloud/lib/ibm_cloud.rb deleted file mode 100644 index cd8e809f..00000000 --- a/gems/ibm_cloud/lib/ibm_cloud.rb +++ /dev/null @@ -1,6 +0,0 @@ -require "ibm_cloud/version" - -module IbmCloud - class Error < StandardError; end - # Your code goes here... -end diff --git a/gems/ibm_cloud/spec/ibm_cloud_spec.rb b/gems/ibm_cloud/spec/ibm_cloud_spec.rb deleted file mode 100644 index 56079c68..00000000 --- a/gems/ibm_cloud/spec/ibm_cloud_spec.rb +++ /dev/null @@ -1,9 +0,0 @@ -RSpec.describe IbmCloud do - it "has a version number" do - expect(IbmCloud::VERSION).not_to be nil - end - - it "does something useful" do - expect(false).to eq(true) - end -end diff --git a/gems/ibm_cloud/spec/spec_helper.rb b/gems/ibm_cloud/spec/spec_helper.rb deleted file mode 100644 index 2d584eac..00000000 --- a/gems/ibm_cloud/spec/spec_helper.rb +++ /dev/null @@ -1,14 +0,0 @@ -require "bundler/setup" -require "ibm_cloud" - -RSpec.configure do |config| - # Enable flags like --only-failures and --next-failure - config.example_status_persistence_file_path = ".rspec_status" - - # Disable RSpec exposing methods globally on `Module` and `main` - config.disable_monkey_patching! - - config.expect_with :rspec do |c| - c.syntax = :expect - end -end diff --git a/gems/ibm_cloud_activity_tracker/.bumpversion.cfg b/gems/ibm_cloud_activity_tracker/.bumpversion.cfg deleted file mode 100644 index 03a5d9d2..00000000 --- a/gems/ibm_cloud_activity_tracker/.bumpversion.cfg +++ /dev/null @@ -1,13 +0,0 @@ -[bumpversion] -current_version = 0.0.1 -commit = True -message = Update version {current_version} -> {new_version} - -[bumpversion:file:lib/ibm_cloud_activity_tracker/version.rb] -search = VERSION = '{current_version}' -replace = VERSION = '{new_version}' - -[bumpversion:file:README.md] -search = {current_version} -replace = {new_version} - diff --git a/gems/ibm_cloud_activity_tracker/.gitignore b/gems/ibm_cloud_activity_tracker/.gitignore deleted file mode 100644 index 922a8938..00000000 --- a/gems/ibm_cloud_activity_tracker/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -/*.gem -/.bundle/ -/.yardoc -/_yardoc/ -/coverage/ -/doc/ -/pkg/ -/spec/reports/ -/tmp/ -/Gemfile.lock - -# rspec failure tracking -.rspec_status diff --git a/gems/ibm_cloud_activity_tracker/.rspec b/gems/ibm_cloud_activity_tracker/.rspec deleted file mode 100644 index 34c5164d..00000000 --- a/gems/ibm_cloud_activity_tracker/.rspec +++ /dev/null @@ -1,3 +0,0 @@ ---format documentation ---color ---require spec_helper diff --git a/gems/ibm_cloud_activity_tracker/.secrets.baseline b/gems/ibm_cloud_activity_tracker/.secrets.baseline deleted file mode 100644 index e36ff35b..00000000 --- a/gems/ibm_cloud_activity_tracker/.secrets.baseline +++ /dev/null @@ -1,72 +0,0 @@ -{ - "exclude": { - "files": "^.secrets.baseline$", - "lines": null - }, - "generated_at": "2021-02-25T12:35:57Z", - "plugins_used": [ - { - "name": "AWSKeyDetector" - }, - { - "name": "ArtifactoryDetector" - }, - { - "base64_limit": 4.5, - "name": "Base64HighEntropyString" - }, - { - "name": "BasicAuthDetector" - }, - { - "name": "BoxDetector" - }, - { - "name": "CloudantDetector" - }, - { - "name": "GheDetector" - }, - { - "hex_limit": 3, - "name": "HexHighEntropyString" - }, - { - "name": "IbmCloudIamDetector" - }, - { - "name": "IbmCosHmacDetector" - }, - { - "name": "JwtTokenDetector" - }, - { - "keyword_exclude": null, - "name": "KeywordDetector" - }, - { - "name": "MailchimpDetector" - }, - { - "name": "PrivateKeyDetector" - }, - { - "name": "SlackDetector" - }, - { - "name": "SoftlayerDetector" - }, - { - "name": "StripeDetector" - }, - { - "name": "TwilioKeyDetector" - } - ], - "results": {}, - "version": "0.13.1+ibm.29.dss", - "word_list": { - "file": null, - "hash": null - } -} diff --git a/gems/ibm_cloud_activity_tracker/.travis.yml b/gems/ibm_cloud_activity_tracker/.travis.yml deleted file mode 100644 index 20073bf0..00000000 --- a/gems/ibm_cloud_activity_tracker/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -language: ruby -dist: trusty -cache: bundler - -notifications: - email: true - -matrix: - fast_finish: true - -before_install: - - git fetch --tags - - sudo apt-get update - - sudo apt-get install python - - nvm install node - - nvm use node - - gem install bundler:1.16.3 - -install: - - bundle _1.16.3_ install - -script: -- bundle exec rake - -# To enable semantic-release, uncomment these sections. -# before_deploy: -# - pip install --user bumpversion -# - npm install -g semantic-release -# - npm install -g @semantic-release/changelog -# - npm install -g @semantic-release/exec -# - npm install -g @semantic-release/git -# - npm install -g @semantic-release/github -# - npm install -g @semantic-release/commit-analyzer -# -# deploy: -# - provider: script -# script: npx semantic-release -# skip_cleanup: true -# on: -# branch: main -# rvm: 2.5.1 -# -# - provider: rubygems -# api_key: $RUBYGEMS_API_KEY -# gem: ibm_cloud_activity_tracker -# on: -# rvm: '2.5.1' -# branch: main -# diff --git a/gems/ibm_cloud_activity_tracker/CHANGELOG.md b/gems/ibm_cloud_activity_tracker/CHANGELOG.md deleted file mode 100644 index 0e0058dd..00000000 --- a/gems/ibm_cloud_activity_tracker/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -= 0.0.1 -* Initial release diff --git a/gems/ibm_cloud_activity_tracker/CONTRIBUTING.md b/gems/ibm_cloud_activity_tracker/CONTRIBUTING.md deleted file mode 100644 index 52bb4f1e..00000000 --- a/gems/ibm_cloud_activity_tracker/CONTRIBUTING.md +++ /dev/null @@ -1,13 +0,0 @@ -# Questions -If you are having problems using the APIs or have a question about IBM Cloud services, -please ask a question at -[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud). - -# Issues -If you encounter an issue with the project, you are welcome to submit a -[bug report](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/issues). -Before that, please search for similar issues. It's possible that someone has already reported the problem. - -# General Information -For general guidance on contributing to this project, please see -[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/CONTRIBUTING_ruby.md) diff --git a/gems/ibm_cloud_activity_tracker/Gemfile b/gems/ibm_cloud_activity_tracker/Gemfile deleted file mode 100644 index 10696637..00000000 --- a/gems/ibm_cloud_activity_tracker/Gemfile +++ /dev/null @@ -1,7 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem's dependencies in ibm_cloud_activity_tracker.gemspec -gemspec - -gem "rake", "~> 12.0" -gem "rspec", "~> 3.0" diff --git a/gems/ibm_cloud_activity_tracker/README.md b/gems/ibm_cloud_activity_tracker/README.md deleted file mode 100644 index 4650e170..00000000 --- a/gems/ibm_cloud_activity_tracker/README.md +++ /dev/null @@ -1,84 +0,0 @@ -[![Build Status](https://travis-ci.com/IBM-Cloud/ibm-cloud-sdk-ruby.svg?token=eW5FVD71iyte6tTby8gr&branch=master)](https://travis.ibm.com/IBM-Cloud/ibm-cloud-sdk-ruby) -[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) -# IBM Cloud Activity Tracker Ruby SDK - -Ruby client library to interact with various [IBM Cloud Activity Tracker APIs](https://cloud.ibm.com/apidocs/activity-tracker). - -Disclaimer: this SDK is being released initially as a **pre-release** version. -Changes might occur which impact applications that use this SDK. - -## Table of Contents - - - - - -- [Overview](#overview) -- [Prerequisites](#prerequisites) -- [Installation](#installation) -- [Using the SDK](#using-the-sdk) -- [Questions](#questions) -- [Issues](#issues) -- [Open source @ IBM](#open-source--ibm) -- [Contributing](#contributing) -- [License](#license) - - - -## Overview - -The IBM Cloud Activity Tracker Ruby SDK allows developers to programmatically interact with the following -IBM Cloud services: - -Service Name | Imported Class Name ---- | --- -[Activity Tracker](https://cloud.ibm.com/apidocs/activity-tracker) | `IbmCloudActivityTracker::ActivityTrackerApiV1` - -## Prerequisites - -[ibm-cloud-onboarding]: https://cloud.ibm.com/registration - -* An [IBM Cloud][ibm-cloud-onboarding] account. -* An IAM API key to allow the SDK to access your account. Create one [here](https://cloud.ibm.com/iam/apikeys). -* Ruby 2.3.0 or above. - -## Installation - -To install, use `gem` - -```bash -gem install "ibm_cloud_activity_tracker" -``` - -## Using the SDK -For general SDK usage information, please see [this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/main/README.md) - -## Questions - -If you are having difficulties using this SDK or have a question about the IBM Cloud services, -please ask a question -[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud). - -## Issues -If you encounter an issue with the project, you are welcome to submit a -[bug report](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/issues). -Before that, please search for similar issues. It's possible that someone has already reported the problem. - -## Open source @ IBM -Find more open source projects on the [IBM Github Page](http://ibm.github.io/) - -## Contributing -See [CONTRIBUTING.md](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/master/gems/ibm_cloud_activity_tracker/CONTRIBUTING.md). - -## License - -This SDK is released under the Apache 2.0 license. -The license's full text can be found in [LICENSE](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/master/gems/ibm_cloud_activity_tracker/LICENSE). diff --git a/gems/ibm_cloud_activity_tracker/Rakefile b/gems/ibm_cloud_activity_tracker/Rakefile deleted file mode 100644 index b7e9ed54..00000000 --- a/gems/ibm_cloud_activity_tracker/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -require "bundler/gem_tasks" -require "rspec/core/rake_task" - -RSpec::Core::RakeTask.new(:spec) - -task :default => :spec diff --git a/gems/ibm_cloud_activity_tracker/bin/console b/gems/ibm_cloud_activity_tracker/bin/console deleted file mode 100644 index b523588f..00000000 --- a/gems/ibm_cloud_activity_tracker/bin/console +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -require "bundler/setup" -require "ibm_cloud_activity_tracker" - -# You can add fixtures and/or initialization code here to make experimenting -# with your gem easier. You can also use a different console, if you like. - -# (If you use this, don't forget to add pry to your Gemfile!) -# require "pry" -# Pry.start - -require "irb" -IRB.start(__FILE__) diff --git a/gems/ibm_cloud_activity_tracker/bin/setup b/gems/ibm_cloud_activity_tracker/bin/setup deleted file mode 100644 index dce67d86..00000000 --- a/gems/ibm_cloud_activity_tracker/bin/setup +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -IFS=$'\n\t' -set -vx - -bundle install - -# Do any other automated setup that you need to do here diff --git a/gems/ibm_cloud_activity_tracker/ibm_cloud_activity_tracker.gemspec b/gems/ibm_cloud_activity_tracker/ibm_cloud_activity_tracker.gemspec deleted file mode 100644 index 0663b022..00000000 --- a/gems/ibm_cloud_activity_tracker/ibm_cloud_activity_tracker.gemspec +++ /dev/null @@ -1,40 +0,0 @@ -require_relative 'lib/ibm_cloud_activity_tracker/version' - -Gem::Specification.new do |spec| - spec.name = "ibm_cloud_activity_tracker" - spec.version = IbmCloudActivityTracker::VERSION - spec.authors = ["nasar.khan@ibm.com"] - spec.email = ["nasar.khan@ibm.com"] - - spec.summary = %q{IBM Cloud Activity Tracker Ruby SDK} - spec.homepage = "https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby" - spec.licenses = ["Apache-2.0"] - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") - - spec.metadata["allowed_push_host"] = "https://rubygems.org" - - spec.metadata["homepage_uri"] = spec.homepage - spec.metadata["source_code_uri"] = spec.homepage - spec.metadata["changelog_uri"] = "#{spec.metadata["source_code_uri"]}/blob/main/CHANGELOG.md" - - # Specify which files should be added to the gem when it is released. - # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - end - spec.bindir = "exe" - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ["lib"] - - spec.add_runtime_dependency "concurrent-ruby", "~> 1.0" - spec.add_runtime_dependency "http", "~> 4.4.1" - spec.add_runtime_dependency "ibm_cloud_sdk_core", "~> 1.1.1" - spec.add_runtime_dependency "jwt", "~> 2.2.1" - - spec.add_development_dependency "bundler", "~> 2.1" - spec.add_development_dependency "codecov", "~> 0.1" - spec.add_development_dependency "rake", "~> 13.0" - spec.add_development_dependency "rubocop", "0.62" - spec.add_development_dependency "simplecov", "~> 0.16" - spec.add_development_dependency "webmock", "~> 3.4" -end diff --git a/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker.rb b/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker.rb deleted file mode 100644 index 306f9b91..00000000 --- a/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker.rb +++ /dev/null @@ -1,10 +0,0 @@ -require "ibm_cloud_activity_tracker/version" -require "ibm_cloud_sdk_core" - -module IbmCloudActivityTracker - ApiException = IBMCloudSdkCore::ApiException - DetailedResponse = IBMCloudSdkCore::DetailedResponse - - require_relative "./ibm_cloud_activity_tracker/common.rb" - require_relative "./ibm_cloud_activity_tracker/activity_tracker_api_v1.rb" -end diff --git a/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/activity_tracker_api_v1.rb b/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/activity_tracker_api_v1.rb deleted file mode 100644 index 6f2133a3..00000000 --- a/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/activity_tracker_api_v1.rb +++ /dev/null @@ -1,398 +0,0 @@ -# frozen_string_literal: true - -# (C) Copyright IBM Corp. 2021. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# IBM OpenAPI SDK Code Generator Version: 3.36.0-6f5b0381-20210716-180747 -# -# REST API to manage the IBM Cloud Activity Tracker service - -require "concurrent" -require "erb" -require "json" -require "ibm_cloud_sdk_core" -require_relative "./common.rb" - -module IbmCloudActivityTracker - ## - # The Activity Tracker API V1 service. - class ActivityTrackerApiV1 < IBMCloudSdkCore::BaseService - include Concurrent::Async - DEFAULT_SERVICE_NAME = "activity_tracker_api" - DEFAULT_SERVICE_URL = "https://api.us-south.logging.cloud.ibm.com" - ## - # @!method initialize(args) - # Construct a new client for the Activity Tracker API service. - # - # @param args [Hash] The args to initialize with - # @option args service_url [String] The base service URL to use when contacting the service. - # The base service_url may differ between IBM Cloud regions. - # @option args authenticator [Object] The Authenticator instance to be configured for this service. - # @option args service_name [String] The name of the service to configure. Will be used as the key to load - # any external configuration, if applicable. - # @option args service_key [String] The Activity Tracker service key - def initialize(args = {}) - @__async_initialized__ = false - @service_key = args[:service_key] - raise ArgumentError.new("service_key must be provided") if @service_key.nil? - args.delete(:service_key) - - defaults = {} - defaults[:service_url] = DEFAULT_SERVICE_URL - defaults[:service_name] = DEFAULT_SERVICE_NAME - defaults[:authenticator] = nil - user_service_url = args[:service_url] unless args[:service_url].nil? - args = defaults.merge(args) - super - @service_url = user_service_url unless user_service_url.nil? - end - - ######################### - # Export - ######################### - - ## - # @!method export(from:, to:, size: nil, hosts: nil, apps: nil, levels: nil, query: nil, prefer: nil, email: nil, email_subject: nil) - # Export logs V1. - # Use this method to export logs in JSON format from a logging instance. - # @param from [String] Start time. Set as UNIX timestamp in seconds or milliseconds. - # @param to [String] End time. Set as UNIX timestamp in seconds or milliseconds. - # @param size [String] Number of log lines to include in the export. - # @param hosts [String] Comma-separated list of hosts. - # @param apps [String] Comma-separated list of applications. - # @param levels [String] Comma-separated list of log levels. - # @param query [String] Search query. - # @param prefer [String] Defines the log lines that you want to export. Valid values are head, first log - # lines, and tail, last log lines. If not specified, defaults to tail. - # @param email [String] Specifies the email with the downloadable link of your export. By default, the log - # lines are streamed. - # @param email_subject [String] Use to set the subject of the email. Use %20 to represent a space. For example, a - # sample value is Export%20logs. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def export(from:, to:, size: nil, hosts: nil, apps: nil, levels: nil, query: nil, prefer: nil, email: nil, email_subject: nil) - raise ArgumentError.new("from must be provided") if from.nil? - - raise ArgumentError.new("to must be provided") if to.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "export", @service_key) - headers.merge!(sdk_headers) - - params = { - "from" => from, - "to" => to, - "size" => size, - "hosts" => hosts, - "apps" => apps, - "levels" => levels, - "query" => query, - "prefer" => prefer, - "email" => email, - "emailSubject" => email_subject - } - - method_url = "/v1/export" - - response = request( - method: "GET", - url: method_url, - headers: headers, - params: params, - accept_json: false - ) - response - end - - ## - # @!method exportv2(from:, to:, size: nil, hosts: nil, apps: nil, levels: nil, query: nil, prefer: nil, pagination_id: nil) - # Export logs V2. - # Use this method to export logs in JSON format from a logging instance. - # @param from [String] Start time. Set as UNIX timestamp in seconds or milliseconds. - # @param to [String] End time. Set as UNIX timestamp in seconds or milliseconds. - # @param size [String] Number of log lines to include in the export. - # @param hosts [String] Comma-separated list of hosts. - # @param apps [String] Comma-separated list of applications. - # @param levels [String] Comma-separated list of log levels. - # @param query [String] Search query. - # @param prefer [String] Defines the log lines that you want to export. Valid values are head, first log - # lines, and tail, last log lines. If not specified, defaults to tail. - # @param pagination_id [String] ID that indicates which page of results to be retrieved. Leave empty for the - # initial export request. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def exportv2(from:, to:, size: nil, hosts: nil, apps: nil, levels: nil, query: nil, prefer: nil, pagination_id: nil) - raise ArgumentError.new("from must be provided") if from.nil? - - raise ArgumentError.new("to must be provided") if to.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "exportv2", @service_key) - headers.merge!(sdk_headers) - - params = { - "from" => from, - "to" => to, - "size" => size, - "hosts" => hosts, - "apps" => apps, - "levels" => levels, - "query" => query, - "prefer" => prefer, - "pagination_id" => pagination_id - } - - method_url = "/v2/export" - - response = request( - method: "GET", - url: method_url, - headers: headers, - params: params, - accept_json: false - ) - response - end - ######################### - # Configuration - ######################### - - ## - # @!method create_view(config_request:, content_type: nil) - # Create a view. - # Use this method to create a view and attach alerts to the view. - # @param config_request [File] Request parameters. - # @param content_type [String] The type of the input. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def create_view(config_request:, content_type: nil) - raise ArgumentError.new("config_request must be provided") if config_request.nil? - - headers = { - "Content-Type" => content_type - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "create_view", @service_key) - headers.merge!(sdk_headers) - - data = config_request - - method_url = "/v1/config/view" - - response = request( - method: "POST", - url: method_url, - headers: headers, - data: data, - accept_json: false - ) - response - end - - ## - # @!method update_view(view_id:, config_request:, content_type: nil) - # Update view. - # Use this method to update a view. You can change the view configuration details, - # attach or modify alerts, and detach alerts. - # @param view_id [String] ID of a view. - # @param config_request [File] Request parameters. - # @param content_type [String] The type of the input. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def update_view(view_id:, config_request:, content_type: nil) - raise ArgumentError.new("view_id must be provided") if view_id.nil? - - raise ArgumentError.new("config_request must be provided") if config_request.nil? - - headers = { - "Content-Type" => content_type - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "update_view", @service_key) - headers.merge!(sdk_headers) - - data = config_request - - method_url = "/v1/config/view/%s" % [ERB::Util.url_encode(view_id)] - - response = request( - method: "PUT", - url: method_url, - headers: headers, - data: data, - accept_json: false - ) - response - end - - ## - # @!method delete_view(view_id:) - # Delete a view. - # Use this method to delete a view and any attached alerts. - # @param view_id [String] ID of a view. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def delete_view(view_id:) - raise ArgumentError.new("view_id must be provided") if view_id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "delete_view", @service_key) - headers.merge!(sdk_headers) - - method_url = "/v1/config/view/%s" % [ERB::Util.url_encode(view_id)] - - response = request( - method: "DELETE", - url: method_url, - headers: headers, - accept_json: false - ) - response - end - - ## - # @!method list_group - # List groups. - # Use this method to list the log groups. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_group - headers = { - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "list_group", @service_key) - headers.merge!(sdk_headers) - - method_url = "/v1/config/groups" - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: false - ) - response - end - - ## - # @!method create_group(groups_request:, content_type: nil) - # Create group. - # Use this method to create a log group where you can scope the data that is - # accessible by members in that group. - # @param groups_request [File] Request parameters. - # @param content_type [String] The type of the input. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def create_group(groups_request:, content_type: nil) - raise ArgumentError.new("groups_request must be provided") if groups_request.nil? - - headers = { - "Content-Type" => content_type - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "create_group", @service_key) - headers.merge!(sdk_headers) - - data = groups_request - - method_url = "/v1/config/groups" - - response = request( - method: "POST", - url: method_url, - headers: headers, - data: data, - accept_json: false - ) - response - end - - ## - # @!method read_group(group_id:) - # Get details of a group. - # Use this method to get information on a group. - # @param group_id [String] ID of a group. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def read_group(group_id:) - raise ArgumentError.new("group_id must be provided") if group_id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "read_group", @service_key) - headers.merge!(sdk_headers) - - method_url = "/v1/config/groups/%s" % [ERB::Util.url_encode(group_id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: false - ) - response - end - - ## - # @!method delete_group(group_id:) - # Delete a group. - # Use this method to list the log groups. - # @param group_id [String] ID of a group. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def delete_group(group_id:) - raise ArgumentError.new("group_id must be provided") if group_id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "delete_group", @service_key) - headers.merge!(sdk_headers) - - method_url = "/v1/config/groups/%s" % [ERB::Util.url_encode(group_id)] - - response = request( - method: "DELETE", - url: method_url, - headers: headers, - accept_json: false - ) - response - end - - ## - # @!method update_group(group_id:, groups_request:, content_type: nil) - # Update group. - # Use this method to modify a log group. You can change the name of the group and - # the access scope that defines the data that is accessible by members in that - # group. - # @param group_id [String] ID of a group. - # @param groups_request [File] Request parameters. - # @param content_type [String] The type of the input. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def update_group(group_id:, groups_request:, content_type: nil) - raise ArgumentError.new("group_id must be provided") if group_id.nil? - - raise ArgumentError.new("groups_request must be provided") if groups_request.nil? - - headers = { - "Content-Type" => content_type - } - sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "update_group", @service_key) - headers.merge!(sdk_headers) - - data = groups_request - - method_url = "/v1/config/groups/%s" % [ERB::Util.url_encode(group_id)] - - response = request( - method: "PATCH", - url: method_url, - headers: headers, - data: data, - accept_json: false - ) - response - end - end -end diff --git a/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/common.rb b/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/common.rb deleted file mode 100644 index c68d4fa7..00000000 --- a/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/common.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true - -require_relative "./version.rb" - -module IbmCloudActivityTracker - # SDK Common class - class Common - def initialize(*); end - - def get_sdk_headers(service_name, service_version, operation_id, service_key) - headers = {} - user_agent_string = "ibm_cloud_activity_tracker-ruby-sdk-" + IbmCloudActivityTracker::VERSION + " #{RbConfig::CONFIG["host"]}" - user_agent_string += " #{RbConfig::CONFIG["RUBY_BASE_NAME"]}-#{RbConfig::CONFIG["RUBY_PROGRAM_VERSION"]}" - - headers["User-Agent"] = user_agent_string - return headers if service_name.nil? || service_version.nil? || operation_id.nil? - - headers["servicekey"] = service_key - - headers["X-IBMCloud-SDK-Analytics"] = "service_name=#{service_name};service_version=#{service_version};operation_id=#{operation_id}" - headers - end - end -end diff --git a/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/version.rb b/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/version.rb deleted file mode 100644 index c96a6630..00000000 --- a/gems/ibm_cloud_activity_tracker/lib/ibm_cloud_activity_tracker/version.rb +++ /dev/null @@ -1,3 +0,0 @@ -module IbmCloudActivityTracker - VERSION = "0.1.0" -end diff --git a/gems/ibm_cloud_activity_tracker/spec/spec_helper.rb b/gems/ibm_cloud_activity_tracker/spec/spec_helper.rb deleted file mode 100644 index 2134554e..00000000 --- a/gems/ibm_cloud_activity_tracker/spec/spec_helper.rb +++ /dev/null @@ -1,14 +0,0 @@ -require "bundler/setup" -require "ibm_cloud_activity_tracker" - -RSpec.configure do |config| - # Enable flags like --only-failures and --next-failure - config.example_status_persistence_file_path = ".rspec_status" - - # Disable RSpec exposing methods globally on `Module` and `main` - config.disable_monkey_patching! - - config.expect_with :rspec do |c| - c.syntax = :expect - end -end diff --git a/gems/ibm_cloud_global_tagging/.bumpversion.cfg b/gems/ibm_cloud_global_tagging/.bumpversion.cfg deleted file mode 100644 index 479be385..00000000 --- a/gems/ibm_cloud_global_tagging/.bumpversion.cfg +++ /dev/null @@ -1,13 +0,0 @@ -[bumpversion] -current_version = 0.0.1 -commit = True -message = Update version {current_version} -> {new_version} - -[bumpversion:file:lib/ibm_cloud_global_tagging/version.rb] -search = VERSION = '{current_version}' -replace = VERSION = '{new_version}' - -[bumpversion:file:README.md] -search = {current_version} -replace = {new_version} - diff --git a/gems/ibm_cloud_global_tagging/.gitignore b/gems/ibm_cloud_global_tagging/.gitignore deleted file mode 100644 index 922a8938..00000000 --- a/gems/ibm_cloud_global_tagging/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -/*.gem -/.bundle/ -/.yardoc -/_yardoc/ -/coverage/ -/doc/ -/pkg/ -/spec/reports/ -/tmp/ -/Gemfile.lock - -# rspec failure tracking -.rspec_status diff --git a/gems/ibm_cloud_global_tagging/.rspec b/gems/ibm_cloud_global_tagging/.rspec deleted file mode 100644 index 34c5164d..00000000 --- a/gems/ibm_cloud_global_tagging/.rspec +++ /dev/null @@ -1,3 +0,0 @@ ---format documentation ---color ---require spec_helper diff --git a/gems/ibm_cloud_global_tagging/.travis.yml b/gems/ibm_cloud_global_tagging/.travis.yml deleted file mode 100644 index 0f4a3763..00000000 --- a/gems/ibm_cloud_global_tagging/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -language: ruby -dist: trusty -cache: bundler - -notifications: - email: true - -matrix: - fast_finish: true - -before_install: - - git fetch --tags - - sudo apt-get update - - sudo apt-get install python - - nvm install node - - nvm use node - - gem install bundler:1.16.3 - -install: - - bundle _1.16.3_ install - -script: -- bundle exec rake - -# To enable semantic-release, uncomment these sections. -# before_deploy: -# - pip install --user bumpversion -# - npm install -g semantic-release -# - npm install -g @semantic-release/changelog -# - npm install -g @semantic-release/exec -# - npm install -g @semantic-release/git -# - npm install -g @semantic-release/github -# - npm install -g @semantic-release/commit-analyzer -# -# deploy: -# - provider: script -# script: npx semantic-release -# skip_cleanup: true -# on: -# branch: master -# rvm: 2.5.1 -# -# - provider: rubygems -# api_key: $RUBYGEMS_API_KEY -# gem: ibm_cloud_global_tagging -# on: -# rvm: '2.5.1' -# branch: master -# diff --git a/gems/ibm_cloud_global_tagging/CHANGELOG.md b/gems/ibm_cloud_global_tagging/CHANGELOG.md deleted file mode 100644 index 0e0058dd..00000000 --- a/gems/ibm_cloud_global_tagging/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -= 0.0.1 -* Initial release diff --git a/gems/ibm_cloud_global_tagging/CODE_OF_CONDUCT.md b/gems/ibm_cloud_global_tagging/CODE_OF_CONDUCT.md deleted file mode 100644 index 7303c878..00000000 --- a/gems/ibm_cloud_global_tagging/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,76 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, sex characteristics, gender identity and expression, -level of experience, education, socio-economic status, nationality, personal -appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. Examples of -representing a project or community include using an official project e-mail -address, posting via an official social media account, or acting as an appointed -representative at an online or offline event. Representation of a project may be -further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at phil_adams@us.ibm.com. All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see -https://www.contributor-covenant.org/faq diff --git a/gems/ibm_cloud_global_tagging/Gemfile b/gems/ibm_cloud_global_tagging/Gemfile deleted file mode 100644 index 60e69d86..00000000 --- a/gems/ibm_cloud_global_tagging/Gemfile +++ /dev/null @@ -1,7 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem's dependencies in ibm_cloud_global_tagging.gemspec -gemspec - -gem "rake", "~> 12.0" -gem "rspec", "~> 3.0" diff --git a/gems/ibm_cloud_global_tagging/LICENSE b/gems/ibm_cloud_global_tagging/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/gems/ibm_cloud_global_tagging/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/gems/ibm_cloud_global_tagging/LICENSE.txt b/gems/ibm_cloud_global_tagging/LICENSE.txt deleted file mode 100644 index d6456956..00000000 --- a/gems/ibm_cloud_global_tagging/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/gems/ibm_cloud_global_tagging/README.md b/gems/ibm_cloud_global_tagging/README.md deleted file mode 100644 index 23459dd4..00000000 --- a/gems/ibm_cloud_global_tagging/README.md +++ /dev/null @@ -1,84 +0,0 @@ -[![Build Status](https://travis-ci.com/IBM-Cloud/ibm-cloud-sdk-ruby.svg?token=eW5FVD71iyte6tTby8gr&branch=master)](https://travis.ibm.com/IBM-Cloud/ibm-cloud-sdk-ruby) -[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) -# IBM Cloud Global Tagging Ruby SDK - -Ruby client library to interact with various [IBM Cloud Platform Services APIs](https://cloud.ibm.com/apidocs?category=platform-services). - -Disclaimer: this SDK is being released initially as a **pre-release** version. -Changes might occur which impact applications that use this SDK. - -## Table of Contents - - - - - -- [Overview](#overview) -- [Prerequisites](#prerequisites) -- [Installation](#installation) -- [Using the SDK](#using-the-sdk) -- [Questions](#questions) -- [Issues](#issues) -- [Open source @ IBM](#open-source--ibm) -- [Contributing](#contributing) -- [License](#license) - - - -## Overview - -The IBM Cloud Platform Services Ruby SDK allows developers to programmatically interact with the following -IBM Cloud services: - -Service Name | Imported Class Name ---- | --- - - -## Prerequisites - -[ibm-cloud-onboarding]: https://cloud.ibm.com/registration - -* An [IBM Cloud][ibm-cloud-onboarding] account. -* An IAM API key to allow the SDK to access your account. Create one [here](https://cloud.ibm.com/iam/apikeys). -* Ruby 2.3.0 or above. - -## Installation - -To install, use `gem` - -```bash -gem install "ibm_cloud_global_tagging" -``` - -## Using the SDK -For general SDK usage information, please see [this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/gems/ibm_cloud_global_tagging/README.md) - -## Questions - -If you are having difficulties using this SDK or have a question about the IBM Cloud services, -please ask a question -[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud). - -## Issues -If you encounter an issue with the project, you are welcome to submit a -[bug report](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/issues). -Before that, please search for similar issues. It's possible that someone has already reported the problem. - -## Open source @ IBM -Find more open source projects on the [IBM Github Page](http://ibm.github.io/) - -## Contributing -See [CONTRIBUTING.md](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/master/gems/ibm_cloud_global_tagging/CONTRIBUTING.md). - -## License - -This SDK is released under the Apache 2.0 license. -The license's full text can be found in [LICENSE](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/master/gems/ibm_cloud_global_tagging/LICENSE). diff --git a/gems/ibm_cloud_global_tagging/Rakefile b/gems/ibm_cloud_global_tagging/Rakefile deleted file mode 100644 index b7e9ed54..00000000 --- a/gems/ibm_cloud_global_tagging/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -require "bundler/gem_tasks" -require "rspec/core/rake_task" - -RSpec::Core::RakeTask.new(:spec) - -task :default => :spec diff --git a/gems/ibm_cloud_global_tagging/bin/console b/gems/ibm_cloud_global_tagging/bin/console deleted file mode 100755 index 09adb9c0..00000000 --- a/gems/ibm_cloud_global_tagging/bin/console +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -require "bundler/setup" -require "ibm_cloud_global_tagging" - -# You can add fixtures and/or initialization code here to make experimenting -# with your gem easier. You can also use a different console, if you like. - -# (If you use this, don't forget to add pry to your Gemfile!) -# require "pry" -# Pry.start - -require "irb" -IRB.start(__FILE__) diff --git a/gems/ibm_cloud_global_tagging/bin/setup b/gems/ibm_cloud_global_tagging/bin/setup deleted file mode 100755 index dce67d86..00000000 --- a/gems/ibm_cloud_global_tagging/bin/setup +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -IFS=$'\n\t' -set -vx - -bundle install - -# Do any other automated setup that you need to do here diff --git a/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging.rb b/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging.rb deleted file mode 100644 index df1f9c2b..00000000 --- a/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging.rb +++ /dev/null @@ -1,10 +0,0 @@ -require "ibm_cloud_global_tagging/version" -require "ibm_cloud_sdk_core" - -module IbmCloudGlobalTagging - ApiException = IBMCloudSdkCore::ApiException - DetailedResponse = IBMCloudSdkCore::DetailedResponse - - require_relative "./ibm_cloud_global_tagging/common.rb" - require_relative "./ibm_cloud_global_tagging/global_tagging_v1.rb" -end diff --git a/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/global_tagging_v1.rb b/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/global_tagging_v1.rb deleted file mode 100644 index 47804d1d..00000000 --- a/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/global_tagging_v1.rb +++ /dev/null @@ -1,304 +0,0 @@ -# frozen_string_literal: true - -# (C) Copyright IBM Corp. 2021. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-891116d3-20210112-104458 -# -# Manage your tags with the Tagging API in IBM Cloud. You can attach, detach, delete a -# tag or list all tags in your billing account with the Tagging API. The tag name must be -# unique within a billing account. You can create tags in two formats: `key:value` or -# `label`. The tagging API supports two types of tag: `user` and `service`. `service` tags -# cannot be attached to IMS resources (see `providers=ims` query parameter). `service` -# tags must be in the form `service_prefix:tag_label` where `service_prefix` identifies -# the Service owning the tag. - -require "concurrent" -require "erb" -require "json" -require "ibm_cloud_sdk_core" -require_relative "./common.rb" - -module IbmCloudGlobalTagging - ## - # The global_tagging V1 service. - class GlobalTaggingV1 < IBMCloudSdkCore::BaseService - include Concurrent::Async - DEFAULT_SERVICE_NAME = "global_tagging" - DEFAULT_SERVICE_URL = "https://tags.global-search-tagging.cloud.ibm.com" - ## - # @!method initialize(args) - # Construct a new client for the global_tagging service. - # - # @param args [Hash] The args to initialize with - # @option args service_url [String] The base service URL to use when contacting the service. - # The base service_url may differ between IBM Cloud regions. - # @option args authenticator [Object] The Authenticator instance to be configured for this service. - # @option args service_name [String] The name of the service to configure. Will be used as the key to load - # any external configuration, if applicable. - def initialize(args = {}) - @__async_initialized__ = false - defaults = {} - defaults[:service_url] = DEFAULT_SERVICE_URL - defaults[:service_name] = DEFAULT_SERVICE_NAME - defaults[:authenticator] = nil - user_service_url = args[:service_url] unless args[:service_url].nil? - args = defaults.merge(args) - super - @service_url = user_service_url unless user_service_url.nil? - end - - ######################### - # tags - ######################### - - ## - # @!method list_tags(account_id: nil, tag_type: nil, full_data: nil, providers: nil, attached_to: nil, offset: nil, limit: nil, timeout: nil, order_by_name: nil, attached_only: nil) - # Get all tags. - # Lists all tags in a billing account. Use the `attached_to` parameter to return the - # list of tags attached to the specified resource. - # @param account_id [String] The ID of the billing account to list the tags for. If it is not set, then it is - # taken from the authorization token. This parameter is required if `tag_type` is - # set to `service`. - # @param tag_type [String] The type of the tag you want to list. Supported values are `user` and `service`. - # @param full_data [Boolean] If set to `true`, this query returns the provider, `ghost`, `ims` or `ghost,ims`, - # where the tag exists and the number of attached resources. - # @param providers [Array[String]] Select a provider. Supported values are `ghost` and `ims`. To list GhoST tags and - # infrastructure tags use `ghost,ims`. `service` tags can only be attached to GhoST - # onboarded resources, so you don't need to set this parameter when listing - # `service` tags. - # @param attached_to [String] If you want to return only the list of tags attached to a specified resource, pass - # the ID of the resource on this parameter. For GhoST onboarded resources, the - # resource ID is the CRN; for IMS resources, it is the IMS ID. When using this - # parameter, you must specify the appropriate provider (`ims` or `ghost`). - # @param offset [Fixnum] The offset is the index of the item from which you want to start returning data - # from. - # @param limit [Fixnum] The number of tags to return. - # @param timeout [Fixnum] The search timeout bounds the search request to be executed within the specified - # time value. It returns the hits accumulated until time runs out. - # @param order_by_name [String] Order the output by tag name. - # @param attached_only [Boolean] Filter on attached tags. If `true`, it returns only tags that are attached to one - # or more resources. If `false`, it returns all tags. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_tags(account_id: nil, tag_type: nil, full_data: nil, providers: nil, attached_to: nil, offset: nil, limit: nil, timeout: nil, order_by_name: nil, attached_only: nil) - headers = { - } - sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "list_tags") - headers.merge!(sdk_headers) - providers *= "," unless providers.nil? - - params = { - "account_id" => account_id, - "tag_type" => tag_type, - "full_data" => full_data, - "providers" => providers, - "attached_to" => attached_to, - "offset" => offset, - "limit" => limit, - "timeout" => timeout, - "order_by_name" => order_by_name, - "attached_only" => attached_only - } - - method_url = "/v3/tags" - - response = request( - method: "GET", - url: method_url, - headers: headers, - params: params, - accept_json: true - ) - response - end - - ## - # @!method delete_tag_all(providers: nil, account_id: nil, tag_type: nil) - # Delete all unused tags. - # Delete the tags that are not attached to any resource. - # @param providers [String] Select a provider. Supported values are `ghost` and `ims`. - # @param account_id [String] The ID of the billing account to delete the tags for. If it is not set, then it is - # taken from the authorization token. It is a required parameter if `tag_type` is - # set to `service`. - # @param tag_type [String] The type of the tag. Supported values are `user` and `service`. `service` is not - # supported if the `providers` parameter is set to `ims`. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def delete_tag_all(providers: nil, account_id: nil, tag_type: nil) - headers = { - } - sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "delete_tag_all") - headers.merge!(sdk_headers) - - params = { - "providers" => providers, - "account_id" => account_id, - "tag_type" => tag_type - } - - method_url = "/v3/tags" - - response = request( - method: "DELETE", - url: method_url, - headers: headers, - params: params, - accept_json: true - ) - response - end - - ## - # @!method delete_tag(tag_name:, providers: nil, account_id: nil, tag_type: nil) - # Delete an unused tag. - # Delete an existing tag. A tag can be deleted only if it is not attached to any - # resource. - # @param tag_name [String] The name of tag to be deleted. - # @param providers [Array[String]] Select a provider. Supported values are `ghost` and `ims`. To delete tag both in - # GhoST in IMS, use `ghost,ims`. - # @param account_id [String] The ID of the billing account to delete the tag for. It is a required parameter if - # `tag_type` is set to `service`, otherwise it is inferred from the authorization - # IAM token. - # @param tag_type [String] The type of the tag. Supported values are `user` and `service`. `service` is not - # supported for `providers=ims`. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def delete_tag(tag_name:, providers: nil, account_id: nil, tag_type: nil) - raise ArgumentError.new("tag_name must be provided") if tag_name.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "delete_tag") - headers.merge!(sdk_headers) - providers *= "," unless providers.nil? - - params = { - "providers" => providers, - "account_id" => account_id, - "tag_type" => tag_type - } - - method_url = "/v3/tags/%s" % [ERB::Util.url_encode(tag_name)] - - response = request( - method: "DELETE", - url: method_url, - headers: headers, - params: params, - accept_json: true - ) - response - end - - ## - # @!method attach_tag(resources:, tag_name: nil, tag_names: nil, account_id: nil, tag_type: nil) - # Attach tags. - # Attaches one or more tags to one or more resources. To attach a `user` tag on a - # resource, you must have the access listed in the [Granting users access to tag - # resources](https://cloud.ibm.com/docs/account?topic=account-access) documentation. - # To attach a `service` tag, you must be an authorized service. If that is the case, - # then you can attach a `service` tag with your registered `prefix` to any resource - # in any account. The account ID must be set through the `account_id` query - # parameter. - # @param resources [Array[Resource]] List of resources on which the tag or tags should be attached. - # @param tag_name [String] The name of the tag to attach. - # @param tag_names [Array[String]] An array of tag names to attach. - # @param account_id [String] The ID of the billing account where the resources to be tagged lives. It is a - # required parameter if `tag_type` is set to `service`. Otherwise, it is inferred - # from the authorization IAM token. - # @param tag_type [String] The type of the tag. Supported values are `user` and `service`. `service` is not - # supported if `providers` is set to `ims`. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def attach_tag(resources:, tag_name: nil, tag_names: nil, account_id: nil, tag_type: nil) - raise ArgumentError.new("resources must be provided") if resources.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "attach_tag") - headers.merge!(sdk_headers) - - params = { - "account_id" => account_id, - "tag_type" => tag_type - } - - data = { - "resources" => resources, - "tag_name" => tag_name, - "tag_names" => tag_names - } - - method_url = "/v3/tags/attach" - - response = request( - method: "POST", - url: method_url, - headers: headers, - params: params, - json: data, - accept_json: true - ) - response - end - - ## - # @!method detach_tag(resources:, tag_name: nil, tag_names: nil, account_id: nil, tag_type: nil) - # Detach tags. - # Detaches one or more tags from one or more resources. To detach a `user` tag on a - # resource you must have the permissions listed in the [Granting users access to tag - # resources](https://cloud.ibm.com/docs/account?topic=account-access) documentation. - # To detach a `service` tag you must be an authorized Service. If that is the case, - # then you can detach a `service` tag with your registered `prefix` from any - # resource in any account. The account ID must be set through the `account_id` query - # parameter. - # @param resources [Array[Resource]] List of resources on which the tag or tags should be detached. - # @param tag_name [String] The name of the tag to detach. - # @param tag_names [Array[String]] An array of tag names to detach. - # @param account_id [String] The ID of the billing account where the resources to be un-tagged lives. It is a - # required parameter if `tag_type` is set to `service`, otherwise it is inferred - # from the authorization IAM token. - # @param tag_type [String] The type of the tag. Supported values are `user` and `service`. `service` is not - # supported for `providers=ims`. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def detach_tag(resources:, tag_name: nil, tag_names: nil, account_id: nil, tag_type: nil) - raise ArgumentError.new("resources must be provided") if resources.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "detach_tag") - headers.merge!(sdk_headers) - - params = { - "account_id" => account_id, - "tag_type" => tag_type - } - - data = { - "resources" => resources, - "tag_name" => tag_name, - "tag_names" => tag_names - } - - method_url = "/v3/tags/detach" - - response = request( - method: "POST", - url: method_url, - headers: headers, - params: params, - json: data, - accept_json: true - ) - response - end - end -end diff --git a/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/version.rb b/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/version.rb deleted file mode 100644 index 06d58658..00000000 --- a/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/version.rb +++ /dev/null @@ -1,3 +0,0 @@ -module IbmCloudGlobalTagging - VERSION = "0.1.1" -end diff --git a/gems/ibm_cloud_global_tagging/spec/ibm_cloud_global_tagging/common_spec.rb b/gems/ibm_cloud_global_tagging/spec/ibm_cloud_global_tagging/common_spec.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/gems/ibm_cloud_global_tagging/spec/spec_helper.rb b/gems/ibm_cloud_global_tagging/spec/spec_helper.rb deleted file mode 100644 index 801528a0..00000000 --- a/gems/ibm_cloud_global_tagging/spec/spec_helper.rb +++ /dev/null @@ -1,14 +0,0 @@ -require "bundler/setup" -require "ibm_cloud_global_tagging" - -RSpec.configure do |config| - # Enable flags like --only-failures and --next-failure - config.example_status_persistence_file_path = ".rspec_status" - - # Disable RSpec exposing methods globally on `Module` and `main` - config.disable_monkey_patching! - - config.expect_with :rspec do |c| - c.syntax = :expect - end -end diff --git a/gems/ibm_cloud_iam/.gitignore b/gems/ibm_cloud_iam/.gitignore deleted file mode 100644 index 05a17cb8..00000000 --- a/gems/ibm_cloud_iam/.gitignore +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by: https://openapi-generator.tech -# - -*.gem -*.rbc -/.config -/coverage/ -/InstalledFiles -/pkg/ -/spec/reports/ -/spec/examples.txt -/test/tmp/ -/test/version_tmp/ -/tmp/ - -## Specific to RubyMotion: -.dat* -.repl_history -build/ - -## Documentation cache and generated files: -/.yardoc/ -/_yardoc/ -/doc/ -/rdoc/ - -## Environment normalization: -/.bundle/ -/vendor/bundle -/lib/bundler/man/ - -# for a library or gem, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# Gemfile.lock -# .ruby-version -# .ruby-gemset - -# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: -.rvmrc diff --git a/gems/ibm_cloud_iam/.openapi-config.json b/gems/ibm_cloud_iam/.openapi-config.json deleted file mode 100644 index 470d4aa2..00000000 --- a/gems/ibm_cloud_iam/.openapi-config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "gemName": "ibm_cloud_iam", - "gemAuthor": "IBM Cloud Developers", - "gemSummary": "IBM Cloud IAM Identity Services", - "gemDescription": "Ruby gem for IBM Cloud IAM Identity Services", - "gemLicense": "Apache-2.0" -} diff --git a/gems/ibm_cloud_iam/.openapi-generator-ignore b/gems/ibm_cloud_iam/.openapi-generator-ignore deleted file mode 100644 index 7484ee59..00000000 --- a/gems/ibm_cloud_iam/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/gems/ibm_cloud_iam/.openapi-generator/FILES b/gems/ibm_cloud_iam/.openapi-generator/FILES deleted file mode 100644 index 4520b229..00000000 --- a/gems/ibm_cloud_iam/.openapi-generator/FILES +++ /dev/null @@ -1,64 +0,0 @@ -.gitignore -.rspec -.rubocop.yml -.travis.yml -Gemfile -README.md -Rakefile -docs/ApiKey.md -docs/ApiKeyInsideCreateServiceIdRequest.md -docs/ApiKeyList.md -docs/CreateApiKeyRequest.md -docs/CreateServiceIdRequest.md -docs/EnityHistoryRecord.md -docs/Error.md -docs/ExceptionResponse.md -docs/ExceptionResponseContext.md -docs/IdentityOperationsApi.md -docs/InlineObject.md -docs/InlineObject1.md -docs/InlineObject2.md -docs/InlineObject3.md -docs/MFARequirementsResponse.md -docs/OidcExceptionResponse.md -docs/ResponseContext.md -docs/ServiceId.md -docs/ServiceIdList.md -docs/TokenOperationsApi.md -docs/TokenResponse.md -docs/UpdateApiKeyRequest.md -docs/UpdateServiceIdRequest.md -git_push.sh -ibm_cloud_iam.gemspec -lib/ibm_cloud_iam.rb -lib/ibm_cloud_iam/api/identity_operations_api.rb -lib/ibm_cloud_iam/api/token_operations_api.rb -lib/ibm_cloud_iam/api_client.rb -lib/ibm_cloud_iam/api_error.rb -lib/ibm_cloud_iam/configuration.rb -lib/ibm_cloud_iam/configuration.rb -lib/ibm_cloud_iam/models/api_key.rb -lib/ibm_cloud_iam/models/api_key_inside_create_service_id_request.rb -lib/ibm_cloud_iam/models/api_key_list.rb -lib/ibm_cloud_iam/models/create_api_key_request.rb -lib/ibm_cloud_iam/models/create_service_id_request.rb -lib/ibm_cloud_iam/models/enity_history_record.rb -lib/ibm_cloud_iam/models/error.rb -lib/ibm_cloud_iam/models/exception_response.rb -lib/ibm_cloud_iam/models/exception_response_context.rb -lib/ibm_cloud_iam/models/inline_object.rb -lib/ibm_cloud_iam/models/inline_object1.rb -lib/ibm_cloud_iam/models/inline_object2.rb -lib/ibm_cloud_iam/models/inline_object3.rb -lib/ibm_cloud_iam/models/mfa_requirements_response.rb -lib/ibm_cloud_iam/models/oidc_exception_response.rb -lib/ibm_cloud_iam/models/response_context.rb -lib/ibm_cloud_iam/models/service_id.rb -lib/ibm_cloud_iam/models/service_id_list.rb -lib/ibm_cloud_iam/models/token_response.rb -lib/ibm_cloud_iam/models/update_api_key_request.rb -lib/ibm_cloud_iam/models/update_service_id_request.rb -lib/ibm_cloud_iam/version.rb -spec/api_client_spec.rb -spec/configuration_spec.rb -spec/spec_helper.rb diff --git a/gems/ibm_cloud_iam/.openapi-generator/VERSION b/gems/ibm_cloud_iam/.openapi-generator/VERSION deleted file mode 100644 index 1a487e1a..00000000 --- a/gems/ibm_cloud_iam/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.0.0-beta2 \ No newline at end of file diff --git a/gems/ibm_cloud_iam/.rspec b/gems/ibm_cloud_iam/.rspec deleted file mode 100644 index 83e16f80..00000000 --- a/gems/ibm_cloud_iam/.rspec +++ /dev/null @@ -1,2 +0,0 @@ ---color ---require spec_helper diff --git a/gems/ibm_cloud_iam/.rubocop.yml b/gems/ibm_cloud_iam/.rubocop.yml deleted file mode 100644 index d32b2b1c..00000000 --- a/gems/ibm_cloud_iam/.rubocop.yml +++ /dev/null @@ -1,148 +0,0 @@ -# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) -# Automatically generated by OpenAPI Generator (https://openapi-generator.tech) -AllCops: - TargetRubyVersion: 2.4 - # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop - # to ignore them, so only the ones explicitly set in this file are enabled. - DisabledByDefault: true - Exclude: - - '**/templates/**/*' - - '**/vendor/**/*' - - 'actionpack/lib/action_dispatch/journey/parser.rb' - -# Prefer &&/|| over and/or. -Style/AndOr: - Enabled: true - -# Align `when` with `case`. -Layout/CaseIndentation: - Enabled: true - -# Align comments with method definitions. -Layout/CommentIndentation: - Enabled: true - -Layout/ElseAlignment: - Enabled: true - -Layout/EmptyLineAfterMagicComment: - Enabled: true - -# In a regular class definition, no empty lines around the body. -Layout/EmptyLinesAroundClassBody: - Enabled: true - -# In a regular method definition, no empty lines around the body. -Layout/EmptyLinesAroundMethodBody: - Enabled: true - -# In a regular module definition, no empty lines around the body. -Layout/EmptyLinesAroundModuleBody: - Enabled: true - -Layout/FirstArgumentIndentation: - Enabled: true - -# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. -Style/HashSyntax: - Enabled: false - -# Method definitions after `private` or `protected` isolated calls need one -# extra level of indentation. -Layout/IndentationConsistency: - Enabled: true - EnforcedStyle: indented_internal_methods - -# Two spaces, no tabs (for indentation). -Layout/IndentationWidth: - Enabled: true - -Layout/LeadingCommentSpace: - Enabled: true - -Layout/SpaceAfterColon: - Enabled: true - -Layout/SpaceAfterComma: - Enabled: true - -Layout/SpaceAroundEqualsInParameterDefault: - Enabled: true - -Layout/SpaceAroundKeyword: - Enabled: true - -Layout/SpaceAroundOperators: - Enabled: true - -Layout/SpaceBeforeComma: - Enabled: true - -Layout/SpaceBeforeFirstArg: - Enabled: true - -Style/DefWithParentheses: - Enabled: true - -# Defining a method with parameters needs parentheses. -Style/MethodDefParentheses: - Enabled: true - -Style/FrozenStringLiteralComment: - Enabled: false - EnforcedStyle: always - -# Use `foo {}` not `foo{}`. -Layout/SpaceBeforeBlockBraces: - Enabled: true - -# Use `foo { bar }` not `foo {bar}`. -Layout/SpaceInsideBlockBraces: - Enabled: true - -# Use `{ a: 1 }` not `{a:1}`. -Layout/SpaceInsideHashLiteralBraces: - Enabled: true - -Layout/SpaceInsideParens: - Enabled: true - -# Check quotes usage according to lint rule below. -#Style/StringLiterals: -# Enabled: true -# EnforcedStyle: single_quotes - -# Detect hard tabs, no hard tabs. -Layout/IndentationStyle: - Enabled: true - -# Blank lines should not have any spaces. -Layout/TrailingEmptyLines: - Enabled: true - -# No trailing whitespace. -Layout/TrailingWhitespace: - Enabled: false - -# Use quotes for string literals when they are enough. -Style/RedundantPercentQ: - Enabled: true - -# Align `end` with the matching keyword or starting expression except for -# assignments, where it should be aligned with the LHS. -Layout/EndAlignment: - Enabled: true - EnforcedStyleAlignWith: variable - AutoCorrect: true - -# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. -Lint/RequireParentheses: - Enabled: true - -Style/RedundantReturn: - Enabled: true - AllowMultipleReturnValues: true - -Style/Semicolon: - Enabled: true - AllowAsExpressionSeparator: true diff --git a/gems/ibm_cloud_iam/.travis.yml b/gems/ibm_cloud_iam/.travis.yml deleted file mode 100644 index ce662490..00000000 --- a/gems/ibm_cloud_iam/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: ruby -cache: bundler -rvm: - - 2.5.8 - - 2.6.6 -script: - - bundle install --path vendor/bundle - - bundle exec rspec - - gem build ibm_cloud_iam.gemspec - - gem install ./ibm_cloud_iam-1.0.0.gem diff --git a/gems/ibm_cloud_iam/Gemfile b/gems/ibm_cloud_iam/Gemfile deleted file mode 100644 index c2e3127c..00000000 --- a/gems/ibm_cloud_iam/Gemfile +++ /dev/null @@ -1,9 +0,0 @@ -source 'https://rubygems.org' - -gemspec - -group :development, :test do - gem 'rake', '~> 13.0.1' - gem 'pry-byebug' - gem 'rubocop', '~> 0.66.0' -end diff --git a/gems/ibm_cloud_iam/LICENSE.txt b/gems/ibm_cloud_iam/LICENSE.txt deleted file mode 100644 index d6456956..00000000 --- a/gems/ibm_cloud_iam/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/gems/ibm_cloud_iam/README.md b/gems/ibm_cloud_iam/README.md deleted file mode 100644 index d20a1102..00000000 --- a/gems/ibm_cloud_iam/README.md +++ /dev/null @@ -1,131 +0,0 @@ -# ibm_cloud_iam - -IbmCloudIam - the Ruby gem for the IAM Identity Services API - -The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.0.0 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.RubyClientCodegen - -## Installation - -### Build a gem - -To build the Ruby code into a gem: - -```shell -gem build ibm_cloud_iam.gemspec -``` - -Then either install the gem locally: - -```shell -gem install ./ibm_cloud_iam-1.0.0.gem -``` - -(for development, run `gem install --dev ./ibm_cloud_iam-1.0.0.gem` to install the development dependencies) - -or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). - -Finally add this to the Gemfile: - - gem 'ibm_cloud_iam', '~> 1.0.0' - -### Install from Git - -If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile: - - gem 'ibm_cloud_iam', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git' - -### Include the Ruby code directly - -Include the Ruby code directly using `-I` as follows: - -```shell -ruby -Ilib script.rb -``` - -## Getting Started - -Please follow the [installation](#installation) procedure and then run the following code: - -```ruby -# Load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -create_api_key_request = IbmCloudIam::CreateApiKeyRequest.new # CreateApiKeyRequest | Request to create an API key -opts = { - authorization: 'authorization_example', # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - entity_lock: 'false' # String | Indicates if the API key is locked for further write operations. False by default. -} - -begin - #Create an API key - result = api_instance.create_api_key(create_api_key_request, opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->create_api_key: #{e}" -end - -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://iam.cloud.ibm.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*IbmCloudIam::IdentityOperationsApi* | [**create_api_key**](docs/IdentityOperationsApi.md#create_api_key) | **POST** /v1/apikeys | Create an API key -*IbmCloudIam::IdentityOperationsApi* | [**create_service_id**](docs/IdentityOperationsApi.md#create_service_id) | **POST** /v1/serviceids/ | Create a service ID -*IbmCloudIam::IdentityOperationsApi* | [**delete_api_key**](docs/IdentityOperationsApi.md#delete_api_key) | **DELETE** /v1/apikeys/{id} | Deletes an API key -*IbmCloudIam::IdentityOperationsApi* | [**delete_service_id**](docs/IdentityOperationsApi.md#delete_service_id) | **DELETE** /v1/serviceids/{id} | Deletes a service ID and associated API keys -*IbmCloudIam::IdentityOperationsApi* | [**get_api_key**](docs/IdentityOperationsApi.md#get_api_key) | **GET** /v1/apikeys/{id} | Get details of an API key -*IbmCloudIam::IdentityOperationsApi* | [**get_api_keys_details**](docs/IdentityOperationsApi.md#get_api_keys_details) | **GET** /v1/apikeys/details | Get details of an API key by its value -*IbmCloudIam::IdentityOperationsApi* | [**get_service_id**](docs/IdentityOperationsApi.md#get_service_id) | **GET** /v1/serviceids/{id} | Get details of a service ID -*IbmCloudIam::IdentityOperationsApi* | [**list_api_keys**](docs/IdentityOperationsApi.md#list_api_keys) | **GET** /v1/apikeys | Get API keys for a given service or user IAM ID and account ID -*IbmCloudIam::IdentityOperationsApi* | [**list_service_ids**](docs/IdentityOperationsApi.md#list_service_ids) | **GET** /v1/serviceids/ | List service IDs -*IbmCloudIam::IdentityOperationsApi* | [**lock_api_key**](docs/IdentityOperationsApi.md#lock_api_key) | **POST** /v1/apikeys/{id}/lock | Lock the API key -*IbmCloudIam::IdentityOperationsApi* | [**lock_service_id**](docs/IdentityOperationsApi.md#lock_service_id) | **POST** /v1/serviceids/{id}/lock | Lock the service ID -*IbmCloudIam::IdentityOperationsApi* | [**unlock_api_key**](docs/IdentityOperationsApi.md#unlock_api_key) | **DELETE** /v1/apikeys/{id}/lock | Unlock the API key -*IbmCloudIam::IdentityOperationsApi* | [**unlock_service_id**](docs/IdentityOperationsApi.md#unlock_service_id) | **DELETE** /v1/serviceids/{id}/lock | Unlock the service ID -*IbmCloudIam::IdentityOperationsApi* | [**update_api_key**](docs/IdentityOperationsApi.md#update_api_key) | **PUT** /v1/apikeys/{id} | Updates an API key -*IbmCloudIam::IdentityOperationsApi* | [**update_service_id**](docs/IdentityOperationsApi.md#update_service_id) | **PUT** /v1/serviceids/{id} | Update service ID -*IbmCloudIam::TokenOperationsApi* | [**get_token_api_key**](docs/TokenOperationsApi.md#get_token_api_key) | **POST** /identity/token#apikey | Create an IAM access token for a user or service ID using an API key -*IbmCloudIam::TokenOperationsApi* | [**get_token_api_key_delegated_refresh_token**](docs/TokenOperationsApi.md#get_token_api_key_delegated_refresh_token) | **POST** /identity/token#apikey-delegated-refresh-token | Create an IAM access token and delegated refresh token for a user or service ID -*IbmCloudIam::TokenOperationsApi* | [**get_token_iam_authz**](docs/TokenOperationsApi.md#get_token_iam_authz) | **POST** /identity/token#iam-authz | Create an IAM access token based on an authorization policy -*IbmCloudIam::TokenOperationsApi* | [**get_token_password**](docs/TokenOperationsApi.md#get_token_password) | **POST** /identity/token#password | Create an IAM access token for a user using username / password credentials and an optional account identifier - - -## Documentation for Models - - - [IbmCloudIam::ApiKey](docs/ApiKey.md) - - [IbmCloudIam::ApiKeyInsideCreateServiceIdRequest](docs/ApiKeyInsideCreateServiceIdRequest.md) - - [IbmCloudIam::ApiKeyList](docs/ApiKeyList.md) - - [IbmCloudIam::CreateApiKeyRequest](docs/CreateApiKeyRequest.md) - - [IbmCloudIam::CreateServiceIdRequest](docs/CreateServiceIdRequest.md) - - [IbmCloudIam::EnityHistoryRecord](docs/EnityHistoryRecord.md) - - [IbmCloudIam::Error](docs/Error.md) - - [IbmCloudIam::ExceptionResponse](docs/ExceptionResponse.md) - - [IbmCloudIam::ExceptionResponseContext](docs/ExceptionResponseContext.md) - - [IbmCloudIam::InlineObject](docs/InlineObject.md) - - [IbmCloudIam::InlineObject1](docs/InlineObject1.md) - - [IbmCloudIam::InlineObject2](docs/InlineObject2.md) - - [IbmCloudIam::InlineObject3](docs/InlineObject3.md) - - [IbmCloudIam::MFARequirementsResponse](docs/MFARequirementsResponse.md) - - [IbmCloudIam::OidcExceptionResponse](docs/OidcExceptionResponse.md) - - [IbmCloudIam::ResponseContext](docs/ResponseContext.md) - - [IbmCloudIam::ServiceId](docs/ServiceId.md) - - [IbmCloudIam::ServiceIdList](docs/ServiceIdList.md) - - [IbmCloudIam::TokenResponse](docs/TokenResponse.md) - - [IbmCloudIam::UpdateApiKeyRequest](docs/UpdateApiKeyRequest.md) - - [IbmCloudIam::UpdateServiceIdRequest](docs/UpdateServiceIdRequest.md) - - -## Documentation for Authorization - - All endpoints do not require authorization. - diff --git a/gems/ibm_cloud_iam/Rakefile b/gems/ibm_cloud_iam/Rakefile deleted file mode 100644 index c72ca30d..00000000 --- a/gems/ibm_cloud_iam/Rakefile +++ /dev/null @@ -1,10 +0,0 @@ -require "bundler/gem_tasks" - -begin - require 'rspec/core/rake_task' - - RSpec::Core::RakeTask.new(:spec) - task default: :spec -rescue LoadError - # no rspec available -end diff --git a/gems/ibm_cloud_iam/docs/ApiKey.md b/gems/ibm_cloud_iam/docs/ApiKey.md deleted file mode 100644 index 1014b193..00000000 --- a/gems/ibm_cloud_iam/docs/ApiKey.md +++ /dev/null @@ -1,43 +0,0 @@ -# IbmCloudIam::ApiKey - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**ResponseContext**](ResponseContext.md) | | [optional] -**id** | **String** | Unique identifier of this API Key. | -**entity_tag** | **String** | Version of the API Key details object. You need to specify this value when updating the API key to avoid stale updates. | [optional] -**crn** | **String** | Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::apikey:1234-9012-5678' | -**locked** | **Boolean** | The API key cannot be changed if set to true. | -**created_at** | **DateTime** | If set contains a date time string of the creation date in ISO format | [optional] -**created_by** | **String** | IAM ID of the user or service which created the API key. | -**modified_at** | **DateTime** | If set contains a date time string of the last modification date in ISO format | [optional] -**name** | **String** | Name of the API key. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the API key. | -**description** | **String** | The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key. | [optional] -**iam_id** | **String** | The iam_id that this API key authenticates. | -**account_id** | **String** | ID of the account that this API key authenticates for. | -**apikey** | **String** | The API key value. This property only contains the API key value for the following cases: create an API key, update a service ID API key that stores the API key value as retrievable, or get a service ID API key that stores the API key value as retrievable. All other operations don't return the API key value, for example all user API key related operations, except for create, don't contain the API key value. | -**history** | [**Array<EnityHistoryRecord>**](EnityHistoryRecord.md) | History of the API key | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::ApiKey.new(context: null, - id: null, - entity_tag: null, - crn: null, - locked: null, - created_at: null, - created_by: null, - modified_at: null, - name: null, - description: null, - iam_id: null, - account_id: null, - apikey: null, - history: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/ApiKeyInsideCreateServiceIdRequest.md b/gems/ibm_cloud_iam/docs/ApiKeyInsideCreateServiceIdRequest.md deleted file mode 100644 index b48afeb6..00000000 --- a/gems/ibm_cloud_iam/docs/ApiKeyInsideCreateServiceIdRequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudIam::ApiKeyInsideCreateServiceIdRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the API key. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the API key. | -**description** | **String** | The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key. | [optional] -**apikey** | **String** | You can optionally passthrough the API key value for this API key. If passed, NO validation of that apiKey value is done, i.e. the value can be non-URL safe. If omitted, the API key management will create an URL safe opaque API key value. The value of the API key is checked for uniqueness. Please ensure enough variations when passing in this value. | [optional] -**store_value** | **Boolean** | Send true or false to set whether the API key value is retrievable in the future by using the Get details of an API key request. If you create an API key for a user, you must specify `false` or omit the value. We don't allow storing of API keys for users. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::ApiKeyInsideCreateServiceIdRequest.new(name: null, - description: null, - apikey: null, - store_value: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/ApiKeyList.md b/gems/ibm_cloud_iam/docs/ApiKeyList.md deleted file mode 100644 index c7b45081..00000000 --- a/gems/ibm_cloud_iam/docs/ApiKeyList.md +++ /dev/null @@ -1,29 +0,0 @@ -# IbmCloudIam::ApiKeyList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**ResponseContext**](ResponseContext.md) | | [optional] -**offset** | **Integer** | The offset of the current page. | [optional] -**limit** | **Integer** | Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100 | [optional] -**first** | **String** | Link to the first page. | [optional] -**previous** | **String** | Link to the previous available page. If 'previous' property is not part of the response no previous page is available. | [optional] -**_next** | **String** | Link to the next available page. If 'next' property is not part of the response no next page is available. | [optional] -**apikeys** | [**Array<ApiKey>**](ApiKey.md) | List of API keys based on the query paramters and the page size. The apikeys array is always part of the response but might be empty depending on the query parameters values provided. | - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::ApiKeyList.new(context: null, - offset: null, - limit: null, - first: null, - previous: null, - _next: null, - apikeys: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/CreateApiKeyRequest.md b/gems/ibm_cloud_iam/docs/CreateApiKeyRequest.md deleted file mode 100644 index 877331d9..00000000 --- a/gems/ibm_cloud_iam/docs/CreateApiKeyRequest.md +++ /dev/null @@ -1,27 +0,0 @@ -# IbmCloudIam::CreateApiKeyRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the API key. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the API key. | -**description** | **String** | The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key. | [optional] -**iam_id** | **String** | The iam_id that this API key authenticates. | -**account_id** | **String** | The account ID of the API key. | [optional] -**apikey** | **String** | You can optionally passthrough the API key value for this API key. If passed, NO validation of that apiKey value is done, i.e. the value can be non-URL safe. If omitted, the API key management will create an URL safe opaque API key value. The value of the API key is checked for uniqueness. Please ensure enough variations when passing in this value. | [optional] -**store_value** | **Boolean** | Send true or false to set whether the API key value is retrievable in the future by using the Get details of an API key request. If you create an API key for a user, you must specify `false` or omit the value. We don't allow storing of API keys for users. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::CreateApiKeyRequest.new(name: null, - description: null, - iam_id: null, - account_id: null, - apikey: null, - store_value: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/CreateServiceIdRequest.md b/gems/ibm_cloud_iam/docs/CreateServiceIdRequest.md deleted file mode 100644 index 2be1a9eb..00000000 --- a/gems/ibm_cloud_iam/docs/CreateServiceIdRequest.md +++ /dev/null @@ -1,25 +0,0 @@ -# IbmCloudIam::CreateServiceIdRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**account_id** | **String** | ID of the account the service ID belongs to. | -**name** | **String** | Name of the Service Id. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the Service Id. | -**description** | **String** | The optional description of the Service Id. The 'description' property is only available if a description was provided during a create of a Service Id. | [optional] -**unique_instance_crns** | **Array<String>** | Optional list of CRNs (string array) which point to the services connected to the service ID. | [optional] -**apikey** | [**ApiKeyInsideCreateServiceIdRequest**](ApiKeyInsideCreateServiceIdRequest.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::CreateServiceIdRequest.new(account_id: null, - name: null, - description: null, - unique_instance_crns: null, - apikey: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/EnityHistoryRecord.md b/gems/ibm_cloud_iam/docs/EnityHistoryRecord.md deleted file mode 100644 index 7d7227e0..00000000 --- a/gems/ibm_cloud_iam/docs/EnityHistoryRecord.md +++ /dev/null @@ -1,27 +0,0 @@ -# IbmCloudIam::EnityHistoryRecord - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timestamp** | **String** | Timestamp when the action was triggered | -**iam_id** | **String** | IAM ID of the identity which triggered the action | -**iam_id_account** | **String** | Account of the identity which triggered the action | -**action** | **String** | Action of the history entry | -**params** | **Array<String>** | Params of the history entry | -**message** | **String** | Message which summarizes the executed action | - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::EnityHistoryRecord.new(timestamp: null, - iam_id: null, - iam_id_account: null, - action: null, - params: null, - message: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/Error.md b/gems/ibm_cloud_iam/docs/Error.md deleted file mode 100644 index 5abd982a..00000000 --- a/gems/ibm_cloud_iam/docs/Error.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudIam::Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | Error code of the REST Exception. | -**message_code** | **String** | Error message code of the REST Exception. | -**message** | **String** | Error message of the REST Exception. Error messages are derived base on the input locale of the REST request and the available Message catalogs. Dynamic fallback to 'us-english' is happening if no message catalog is available for the provided input locale. | -**details** | **String** | Error details of the REST Exception. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::Error.new(code: null, - message_code: null, - message: null, - details: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/ExceptionResponse.md b/gems/ibm_cloud_iam/docs/ExceptionResponse.md deleted file mode 100644 index 1667cc5c..00000000 --- a/gems/ibm_cloud_iam/docs/ExceptionResponse.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudIam::ExceptionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**ResponseContext**](ResponseContext.md) | | [optional] -**status_code** | **String** | Error message code of the REST Exception. | -**errors** | [**Array<Error>**](Error.md) | List of errors that occured. | -**trace** | **String** | Unique ID of the requst. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::ExceptionResponse.new(context: null, - status_code: null, - errors: null, - trace: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/ExceptionResponseContext.md b/gems/ibm_cloud_iam/docs/ExceptionResponseContext.md deleted file mode 100644 index 7eb5396a..00000000 --- a/gems/ibm_cloud_iam/docs/ExceptionResponseContext.md +++ /dev/null @@ -1,39 +0,0 @@ -# IbmCloudIam::ExceptionResponseContext - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**request_id** | **String** | The request ID of the inbound REST request. | [optional] -**request_type** | **String** | The request type of the inbound REST request. | [optional] -**user_agent** | **String** | The user agent of the inbound REST request. | [optional] -**url** | **String** | The URL of that cluster. | [optional] -**instance_id** | **String** | The instance ID of the server instance processing the request. | [optional] -**thread_id** | **String** | The thread ID of the server instance processing the request. | [optional] -**host** | **String** | The host of the server instance processing the request. | [optional] -**start_time** | **String** | The start time of the request. | [optional] -**end_time** | **String** | The finish time of the request. | [optional] -**elapsed_time** | **String** | The elapsed time in msec. | [optional] -**locale** | **String** | The language used to present the error message. | [optional] -**cluster_name** | **String** | The cluster name. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::ExceptionResponseContext.new(request_id: null, - request_type: null, - user_agent: null, - url: null, - instance_id: null, - thread_id: null, - host: null, - start_time: null, - end_time: null, - elapsed_time: null, - locale: null, - cluster_name: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/IdentityOperationsApi.md b/gems/ibm_cloud_iam/docs/IdentityOperationsApi.md deleted file mode 100644 index 60a0fe89..00000000 --- a/gems/ibm_cloud_iam/docs/IdentityOperationsApi.md +++ /dev/null @@ -1,828 +0,0 @@ -# IbmCloudIam::IdentityOperationsApi - -All URIs are relative to *https://iam.cloud.ibm.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**create_api_key**](IdentityOperationsApi.md#create_api_key) | **POST** /v1/apikeys | Create an API key -[**create_service_id**](IdentityOperationsApi.md#create_service_id) | **POST** /v1/serviceids/ | Create a service ID -[**delete_api_key**](IdentityOperationsApi.md#delete_api_key) | **DELETE** /v1/apikeys/{id} | Deletes an API key -[**delete_service_id**](IdentityOperationsApi.md#delete_service_id) | **DELETE** /v1/serviceids/{id} | Deletes a service ID and associated API keys -[**get_api_key**](IdentityOperationsApi.md#get_api_key) | **GET** /v1/apikeys/{id} | Get details of an API key -[**get_api_keys_details**](IdentityOperationsApi.md#get_api_keys_details) | **GET** /v1/apikeys/details | Get details of an API key by its value -[**get_service_id**](IdentityOperationsApi.md#get_service_id) | **GET** /v1/serviceids/{id} | Get details of a service ID -[**list_api_keys**](IdentityOperationsApi.md#list_api_keys) | **GET** /v1/apikeys | Get API keys for a given service or user IAM ID and account ID -[**list_service_ids**](IdentityOperationsApi.md#list_service_ids) | **GET** /v1/serviceids/ | List service IDs -[**lock_api_key**](IdentityOperationsApi.md#lock_api_key) | **POST** /v1/apikeys/{id}/lock | Lock the API key -[**lock_service_id**](IdentityOperationsApi.md#lock_service_id) | **POST** /v1/serviceids/{id}/lock | Lock the service ID -[**unlock_api_key**](IdentityOperationsApi.md#unlock_api_key) | **DELETE** /v1/apikeys/{id}/lock | Unlock the API key -[**unlock_service_id**](IdentityOperationsApi.md#unlock_service_id) | **DELETE** /v1/serviceids/{id}/lock | Unlock the service ID -[**update_api_key**](IdentityOperationsApi.md#update_api_key) | **PUT** /v1/apikeys/{id} | Updates an API key -[**update_service_id**](IdentityOperationsApi.md#update_service_id) | **PUT** /v1/serviceids/{id} | Update service ID - - - -## create_api_key - -> ApiKey create_api_key(create_api_key_request, opts) - -Create an API key - -Creates an API key for a UserID or service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -create_api_key_request = IbmCloudIam::CreateApiKeyRequest.new # CreateApiKeyRequest | Request to create an API key -opts = { - authorization: 'authorization_example', # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - entity_lock: 'false' # String | Indicates if the API key is locked for further write operations. False by default. -} - -begin - #Create an API key - result = api_instance.create_api_key(create_api_key_request, opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->create_api_key: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_api_key_request** | [**CreateApiKeyRequest**](CreateApiKeyRequest.md)| Request to create an API key | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - **entity_lock** | **String**| Indicates if the API key is locked for further write operations. False by default. | [optional] [default to 'false'] - -### Return type - -[**ApiKey**](ApiKey.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## create_service_id - -> ServiceId create_service_id(create_service_id_request, opts) - -Create a service ID - -Creates a service ID for an IBM Cloud account. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -create_service_id_request = IbmCloudIam::CreateServiceIdRequest.new # CreateServiceIdRequest | Request to create a service ID -opts = { - authorization: 'authorization_example', # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - entity_lock: 'false' # String | Indicates if the service ID is locked for further write operations. False by default. -} - -begin - #Create a service ID - result = api_instance.create_service_id(create_service_id_request, opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->create_service_id: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **create_service_id_request** | [**CreateServiceIdRequest**](CreateServiceIdRequest.md)| Request to create a service ID | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - **entity_lock** | **String**| Indicates if the service ID is locked for further write operations. False by default. | [optional] [default to 'false'] - -### Return type - -[**ServiceId**](ServiceId.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## delete_api_key - -> delete_api_key(id, opts) - -Deletes an API key - -Deletes an API key. Existing tokens will remain valid until expired. Refresh tokens will not work any more for this API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the API key. -opts = { - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Deletes an API key - api_instance.delete_api_key(id, opts) -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->delete_api_key: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the API key. | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -nil (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## delete_service_id - -> delete_service_id(id, opts) - -Deletes a service ID and associated API keys - -Deletes a service ID and all API keys associated to it. Before deleting the service ID, all associated API keys are deleted. In case a Delete Conflict (status code 409) a retry of the request may help as the service ID is only deleted if the associated API keys were successfully deleted before. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the service ID. -opts = { - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Deletes a service ID and associated API keys - api_instance.delete_service_id(id, opts) -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->delete_service_id: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the service ID. | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -nil (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## get_api_key - -> ApiKey get_api_key(id, opts) - -Get details of an API key - -Returns the details of an API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the API key. -opts = { - include_history: false, # Boolean | Defines if the entity history is included in the response. - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Get details of an API key - result = api_instance.get_api_key(id, opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->get_api_key: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the API key. | - **include_history** | **Boolean**| Defines if the entity history is included in the response. | [optional] [default to false] - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -[**ApiKey**](ApiKey.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## get_api_keys_details - -> ApiKey get_api_keys_details(opts) - -Get details of an API key by its value - -Returns the details of an API key by its value. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -opts = { - iam_api_key: 'iam_api_key_example', # String | API key value. - include_history: false, # Boolean | Defines if the entity history is included in the response - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Get details of an API key by its value - result = api_instance.get_api_keys_details(opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->get_api_keys_details: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **iam_api_key** | **String**| API key value. | [optional] - **include_history** | **Boolean**| Defines if the entity history is included in the response | [optional] [default to false] - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -[**ApiKey**](ApiKey.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## get_service_id - -> ServiceId get_service_id(id, opts) - -Get details of a service ID - -Returns the details of a service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the service ID. -opts = { - authorization: 'authorization_example', # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - include_history: false # Boolean | Defines if the entity history is included in the response. -} - -begin - #Get details of a service ID - result = api_instance.get_service_id(id, opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->get_service_id: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the service ID. | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - **include_history** | **Boolean**| Defines if the entity history is included in the response. | [optional] [default to false] - -### Return type - -[**ServiceId**](ServiceId.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## list_api_keys - -> ApiKeyList list_api_keys(opts) - -Get API keys for a given service or user IAM ID and account ID - -Returns the list of API key details for a given service or user IAM ID and account ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -opts = { - account_id: 'account_id_example', # String | Account ID of the API keys(s) to query. If a service IAM ID is specified in iam_id then account_id must match the account of the IAM ID. If a user IAM ID is specified in iam_id then then account_id must match the account of the Authorization token. - iam_id: 'iam_id_example', # String | IAM ID of the API key(s) to be queried. The IAM ID may be that of a user or a service. For a user IAM ID iam_id must match the Authorization token. - pagesize: 56, # Integer | Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. - pagetoken: 'pagetoken_example', # String | Optional Prev or Next page token returned from a previous query execution. Default is start with first page. - scope: 'entity', # String | Optional parameter to define the scope of the queried API Keys. Can be 'entity' (default) or 'account'. - type: 'type_example', # String | Optional parameter to filter the type of the queried API Keys. Can be 'user' or 'serviceid'. - sort: 'sort_example', # String | Optional sort property, valid values are name, description, created_at and created_by. If specified, the items are sorted by the value of this property. - order: 'asc', # String | Optional sort order, valid values are asc and desc. Default: asc. - include_history: false, # Boolean | Defines if the entity history is included in the response. - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Get API keys for a given service or user IAM ID and account ID - result = api_instance.list_api_keys(opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->list_api_keys: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **account_id** | **String**| Account ID of the API keys(s) to query. If a service IAM ID is specified in iam_id then account_id must match the account of the IAM ID. If a user IAM ID is specified in iam_id then then account_id must match the account of the Authorization token. | [optional] - **iam_id** | **String**| IAM ID of the API key(s) to be queried. The IAM ID may be that of a user or a service. For a user IAM ID iam_id must match the Authorization token. | [optional] - **pagesize** | **Integer**| Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. | [optional] - **pagetoken** | **String**| Optional Prev or Next page token returned from a previous query execution. Default is start with first page. | [optional] - **scope** | **String**| Optional parameter to define the scope of the queried API Keys. Can be 'entity' (default) or 'account'. | [optional] [default to 'entity'] - **type** | **String**| Optional parameter to filter the type of the queried API Keys. Can be 'user' or 'serviceid'. | [optional] - **sort** | **String**| Optional sort property, valid values are name, description, created_at and created_by. If specified, the items are sorted by the value of this property. | [optional] - **order** | **String**| Optional sort order, valid values are asc and desc. Default: asc. | [optional] [default to 'asc'] - **include_history** | **Boolean**| Defines if the entity history is included in the response. | [optional] [default to false] - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -[**ApiKeyList**](ApiKeyList.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## list_service_ids - -> ServiceIdList list_service_ids(opts) - -List service IDs - -Returns a list of service IDs. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -opts = { - account_id: 'account_id_example', # String | Account ID of the service ID(s) to query. This parameter is required (unless using a pagetoken). - name: 'name_example', # String | Name of the service ID(s) to query. Optional.20 items per page. Valid range is 1 to 100. - pagesize: 56, # Integer | Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. - pagetoken: 'pagetoken_example', # String | Optional Prev or Next page token returned from a previous query execution. Default is start with first page. - sort: 'sort_example', # String | Optional sort property, valid values are name, description, created_at and modified_at. If specified, the items are sorted by the value of this property. - order: 'asc', # String | Optional sort order, valid values are asc and desc. Default: asc. - include_history: false, # Boolean | Defines if the entity history is included in the response - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #List service IDs - result = api_instance.list_service_ids(opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->list_service_ids: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **account_id** | **String**| Account ID of the service ID(s) to query. This parameter is required (unless using a pagetoken). | [optional] - **name** | **String**| Name of the service ID(s) to query. Optional.20 items per page. Valid range is 1 to 100. | [optional] - **pagesize** | **Integer**| Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. | [optional] - **pagetoken** | **String**| Optional Prev or Next page token returned from a previous query execution. Default is start with first page. | [optional] - **sort** | **String**| Optional sort property, valid values are name, description, created_at and modified_at. If specified, the items are sorted by the value of this property. | [optional] - **order** | **String**| Optional sort order, valid values are asc and desc. Default: asc. | [optional] [default to 'asc'] - **include_history** | **Boolean**| Defines if the entity history is included in the response | [optional] [default to false] - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -[**ServiceIdList**](ServiceIdList.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## lock_api_key - -> lock_api_key(id, opts) - -Lock the API key - -Locks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the API key. -opts = { - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Lock the API key - api_instance.lock_api_key(id, opts) -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->lock_api_key: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the API key. | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -nil (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## lock_service_id - -> lock_service_id(id, opts) - -Lock the service ID - -Locks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the service ID. -opts = { - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Lock the service ID - api_instance.lock_service_id(id, opts) -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->lock_service_id: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the service ID. | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -nil (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## unlock_api_key - -> unlock_api_key(id, opts) - -Unlock the API key - -Unlocks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the API key. -opts = { - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Unlock the API key - api_instance.unlock_api_key(id, opts) -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->unlock_api_key: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the API key. | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -nil (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## unlock_service_id - -> unlock_service_id(id, opts) - -Unlock the service ID - -Unlocks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the service ID. -opts = { - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Unlock the service ID - api_instance.unlock_service_id(id, opts) -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->unlock_service_id: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the service ID. | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -nil (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## update_api_key - -> ApiKey update_api_key(id, if_match, update_api_key_request, opts) - -Updates an API key - -Updates properties of an API key. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update an API key, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the API key to be updated. -if_match = 'if_match_example' # String | Version of the API key to be updated. Specify the version that you retrieved when reading the API key. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. -update_api_key_request = IbmCloudIam::UpdateApiKeyRequest.new # UpdateApiKeyRequest | Request to update an API key -opts = { - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Updates an API key - result = api_instance.update_api_key(id, if_match, update_api_key_request, opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->update_api_key: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the API key to be updated. | - **if_match** | **String**| Version of the API key to be updated. Specify the version that you retrieved when reading the API key. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. | - **update_api_key_request** | [**UpdateApiKeyRequest**](UpdateApiKeyRequest.md)| Request to update an API key | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -[**ApiKey**](ApiKey.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## update_service_id - -> ServiceId update_service_id(id, if_match, update_service_id_request, opts) - -Update service ID - -Updates properties of a service ID. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update a service ID, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::IdentityOperationsApi.new -id = 'id_example' # String | Unique ID of the service ID to be updated. -if_match = 'if_match_example' # String | Version of the service ID to be updated. Specify the version that you retrieved as entity_tag (ETag header) when reading the service ID. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. -update_service_id_request = IbmCloudIam::UpdateServiceIdRequest.new # UpdateServiceIdRequest | Request to update a service ID -opts = { - authorization: 'authorization_example' # String | Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. -} - -begin - #Update service ID - result = api_instance.update_service_id(id, if_match, update_service_id_request, opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling IdentityOperationsApi->update_service_id: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique ID of the service ID to be updated. | - **if_match** | **String**| Version of the service ID to be updated. Specify the version that you retrieved as entity_tag (ETag header) when reading the service ID. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. | - **update_service_id_request** | [**UpdateServiceIdRequest**](UpdateServiceIdRequest.md)| Request to update a service ID | - **authorization** | **String**| Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. | [optional] - -### Return type - -[**ServiceId**](ServiceId.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_iam/docs/InlineObject.md b/gems/ibm_cloud_iam/docs/InlineObject.md deleted file mode 100644 index 04e20ead..00000000 --- a/gems/ibm_cloud_iam/docs/InlineObject.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudIam::InlineObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**grant_type** | **String** | Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. | -**apikey** | **String** | The value of the api key | - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::InlineObject.new(grant_type: null, - apikey: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/InlineObject1.md b/gems/ibm_cloud_iam/docs/InlineObject1.md deleted file mode 100644 index 2879dc93..00000000 --- a/gems/ibm_cloud_iam/docs/InlineObject1.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudIam::InlineObject1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**grant_type** | **String** | Grant type for this API call. You must set the grant type to `password`. | -**username** | **String** | The value of the username | -**password** | **String** | The value of the password | -**account** | **String** | The 32 character identifier of the account. Specify this parameter to get an account-specific IAM token. IBM Cloud APIs require that IAM tokens are account-specific. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::InlineObject1.new(grant_type: null, - username: null, - password: null, - account: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/InlineObject2.md b/gems/ibm_cloud_iam/docs/InlineObject2.md deleted file mode 100644 index 8ac6729b..00000000 --- a/gems/ibm_cloud_iam/docs/InlineObject2.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudIam::InlineObject2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**grant_type** | **String** | Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:iam-authz`. | -**access_token** | **String** | The IAM access token of the identity that has the appropriate authorization to create an IAM access token for a given resource. | -**desired_iam_id** | **String** | The IAM ID of the IAM access token identity that should be created. The desired_iam_id identifies a resource identity. The IAM ID consists of the prefix crn- and the CRN of the target identity, e.g. crn-crn:v1:bluemix:public:cloud-object-storage:global:a/59bcbfa6ea2f006b4ed7094c1a08dcdd:1a0ec336-f391-4091-a6fb-5e084a4c56f4::. | - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::InlineObject2.new(grant_type: null, - access_token: null, - desired_iam_id: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/InlineObject3.md b/gems/ibm_cloud_iam/docs/InlineObject3.md deleted file mode 100644 index 3e5ddc11..00000000 --- a/gems/ibm_cloud_iam/docs/InlineObject3.md +++ /dev/null @@ -1,25 +0,0 @@ -# IbmCloudIam::InlineObject3 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**grant_type** | **String** | Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. | -**apikey** | **String** | The value of the API key. | -**response_type** | **String** | Either 'delegated_refresh_token' to receive a delegated refresh token only, or 'cloud_iam delegated_refresh_token' to receive both an IAM access token and a delegated refresh token in one API call. | -**receiver_client_ids** | **String** | A comma separated list of one or more client IDs that will be able to consume the delegated refresh token. The service that accepts a delegated refresh token as API parameter must expose its client ID to allow this API call. The receiver of the delegated refresh token will be able to use the refresh token until it expires. | -**delegated_refresh_token_expiry** | **Integer** | Expiration in seconds until the delegated refresh token must be consumed by the receiver client IDs. After the expiration, no client ID can consume the delegated refresh token, even if the life time of the refresh token inside is still not expired. The default, if not specified, is 518,400 seconds which corresponds to 6 days. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::InlineObject3.new(grant_type: null, - apikey: null, - response_type: null, - receiver_client_ids: null, - delegated_refresh_token_expiry: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/MFARequirementsResponse.md b/gems/ibm_cloud_iam/docs/MFARequirementsResponse.md deleted file mode 100644 index 495e1dae..00000000 --- a/gems/ibm_cloud_iam/docs/MFARequirementsResponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudIam::MFARequirementsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **String** | MFA error. | -**code** | **String** | MFA Code. | -**authorization_token** | **String** | MFA AuthorizationToken. | - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::MFARequirementsResponse.new(error: null, - code: null, - authorization_token: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/OidcExceptionResponse.md b/gems/ibm_cloud_iam/docs/OidcExceptionResponse.md deleted file mode 100644 index 6314f299..00000000 --- a/gems/ibm_cloud_iam/docs/OidcExceptionResponse.md +++ /dev/null @@ -1,25 +0,0 @@ -# IbmCloudIam::OidcExceptionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**ExceptionResponseContext**](ExceptionResponseContext.md) | | [optional] -**error_code** | **String** | Error message code of the REST Exception. | -**error_message** | **String** | Error message of the REST Exception. Error messages are derived base on the input locale of the REST request and the available Message catalogs. Dynamic fallback to 'us-english' is happening if no message catalog is available for the provided input locale. | -**error_details** | **String** | Error details of the REST Exception. | [optional] -**requirements** | [**MFARequirementsResponse**](MFARequirementsResponse.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::OidcExceptionResponse.new(context: null, - error_code: null, - error_message: null, - error_details: null, - requirements: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/ResponseContext.md b/gems/ibm_cloud_iam/docs/ResponseContext.md deleted file mode 100644 index d9640c73..00000000 --- a/gems/ibm_cloud_iam/docs/ResponseContext.md +++ /dev/null @@ -1,37 +0,0 @@ -# IbmCloudIam::ResponseContext - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**transaction_id** | **String** | The transaction ID of the inbound REST request. | [optional] -**operation** | **String** | The operation of the inbound REST request. | [optional] -**user_agent** | **String** | The user agent of the inbound REST request. | [optional] -**url** | **String** | The URL of that cluster. | [optional] -**instance_id** | **String** | The instance ID of the server instance processing the request. | [optional] -**thread_id** | **String** | The thread ID of the server instance processing the request. | [optional] -**host** | **String** | The host of the server instance processing the request. | [optional] -**start_time** | **String** | The start time of the request. | [optional] -**end_time** | **String** | The finish time of the request. | [optional] -**elapsed_time** | **String** | The elapsed time in msec. | [optional] -**cluster_name** | **String** | The cluster name. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::ResponseContext.new(transaction_id: null, - operation: null, - user_agent: null, - url: null, - instance_id: null, - thread_id: null, - host: null, - start_time: null, - end_time: null, - elapsed_time: null, - cluster_name: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/ServiceId.md b/gems/ibm_cloud_iam/docs/ServiceId.md deleted file mode 100644 index f0259ef0..00000000 --- a/gems/ibm_cloud_iam/docs/ServiceId.md +++ /dev/null @@ -1,43 +0,0 @@ -# IbmCloudIam::ServiceId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**ResponseContext**](ResponseContext.md) | | [optional] -**id** | **String** | Unique identifier of this Service Id. | -**iam_id** | **String** | Cloud wide identifier for identities of this service ID. | -**entity_tag** | **String** | Version of the service ID details object. You need to specify this value when updating the service ID to avoid stale updates. | [optional] -**crn** | **String** | Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::serviceid:1234-5678-9012' | -**locked** | **Boolean** | The service ID cannot be changed if set to true. | -**created_at** | **DateTime** | If set contains a date time string of the creation date in ISO format | [optional] -**modified_at** | **DateTime** | If set contains a date time string of the last modification date in ISO format | [optional] -**account_id** | **String** | ID of the account the service ID belongs to. | -**name** | **String** | Name of the Service Id. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the Service Id. | -**description** | **String** | The optional description of the Service Id. The 'description' property is only available if a description was provided during a create of a Service Id. | [optional] -**unique_instance_crns** | **Array<String>** | Optional list of CRNs (string array) which point to the services connected to the service ID. | [optional] -**history** | [**Array<EnityHistoryRecord>**](EnityHistoryRecord.md) | History of the Service ID | [optional] -**apikey** | [**ApiKey**](ApiKey.md) | | - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::ServiceId.new(context: null, - id: null, - iam_id: null, - entity_tag: null, - crn: null, - locked: null, - created_at: null, - modified_at: null, - account_id: null, - name: null, - description: null, - unique_instance_crns: null, - history: null, - apikey: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/ServiceIdList.md b/gems/ibm_cloud_iam/docs/ServiceIdList.md deleted file mode 100644 index f0bcb5b7..00000000 --- a/gems/ibm_cloud_iam/docs/ServiceIdList.md +++ /dev/null @@ -1,29 +0,0 @@ -# IbmCloudIam::ServiceIdList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**context** | [**ResponseContext**](ResponseContext.md) | | [optional] -**offset** | **Integer** | The offset of the current page. | [optional] -**limit** | **Integer** | Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100 | [optional] -**first** | **String** | Link to the first page. | [optional] -**previous** | **String** | Link to the previous available page. If 'previous' property is not part of the response no previous page is available. | [optional] -**_next** | **String** | Link to the next available page. If 'next' property is not part of the response no next page is available. | [optional] -**serviceids** | [**Array<ServiceId>**](ServiceId.md) | List of service IDs based on the query paramters and the page size. The service IDs array is always part of the response but might be empty depending on the query parameter values provided. | - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::ServiceIdList.new(context: null, - offset: null, - limit: null, - first: null, - previous: null, - _next: null, - serviceids: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/TokenOperationsApi.md b/gems/ibm_cloud_iam/docs/TokenOperationsApi.md deleted file mode 100644 index c5cbde4c..00000000 --- a/gems/ibm_cloud_iam/docs/TokenOperationsApi.md +++ /dev/null @@ -1,226 +0,0 @@ -# IbmCloudIam::TokenOperationsApi - -All URIs are relative to *https://iam.cloud.ibm.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**get_token_api_key**](TokenOperationsApi.md#get_token_api_key) | **POST** /identity/token#apikey | Create an IAM access token for a user or service ID using an API key -[**get_token_api_key_delegated_refresh_token**](TokenOperationsApi.md#get_token_api_key_delegated_refresh_token) | **POST** /identity/token#apikey-delegated-refresh-token | Create an IAM access token and delegated refresh token for a user or service ID -[**get_token_iam_authz**](TokenOperationsApi.md#get_token_iam_authz) | **POST** /identity/token#iam-authz | Create an IAM access token based on an authorization policy -[**get_token_password**](TokenOperationsApi.md#get_token_password) | **POST** /identity/token#password | Create an IAM access token for a user using username / password credentials and an optional account identifier - - - -## get_token_api_key - -> TokenResponse get_token_api_key(grant_type, apikey) - -Create an IAM access token for a user or service ID using an API key - -Creates a non-opaque access token for an API key. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::TokenOperationsApi.new -grant_type = 'grant_type_example' # String | Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. -apikey = 'apikey_example' # String | The value of the api key - -begin - #Create an IAM access token for a user or service ID using an API key - result = api_instance.get_token_api_key(grant_type, apikey) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling TokenOperationsApi->get_token_api_key: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **grant_type** | **String**| Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. | - **apikey** | **String**| The value of the api key | - -### Return type - -[**TokenResponse**](TokenResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - - -## get_token_api_key_delegated_refresh_token - -> TokenResponse get_token_api_key_delegated_refresh_token(grant_type, apikey, response_type, receiver_client_ids, opts) - -Create an IAM access token and delegated refresh token for a user or service ID - -Creates a non-opaque access token and a delegated refresh token for an API key. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::TokenOperationsApi.new -grant_type = 'grant_type_example' # String | Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. -apikey = 'apikey_example' # String | The value of the API key. -response_type = 'response_type_example' # String | Either 'delegated_refresh_token' to receive a delegated refresh token only, or 'cloud_iam delegated_refresh_token' to receive both an IAM access token and a delegated refresh token in one API call. -receiver_client_ids = 'receiver_client_ids_example' # String | A comma separated list of one or more client IDs that will be able to consume the delegated refresh token. The service that accepts a delegated refresh token as API parameter must expose its client ID to allow this API call. The receiver of the delegated refresh token will be able to use the refresh token until it expires. -opts = { - delegated_refresh_token_expiry: 56 # Integer | Expiration in seconds until the delegated refresh token must be consumed by the receiver client IDs. After the expiration, no client ID can consume the delegated refresh token, even if the life time of the refresh token inside is still not expired. The default, if not specified, is 518,400 seconds which corresponds to 6 days. -} - -begin - #Create an IAM access token and delegated refresh token for a user or service ID - result = api_instance.get_token_api_key_delegated_refresh_token(grant_type, apikey, response_type, receiver_client_ids, opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling TokenOperationsApi->get_token_api_key_delegated_refresh_token: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **grant_type** | **String**| Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. | - **apikey** | **String**| The value of the API key. | - **response_type** | **String**| Either 'delegated_refresh_token' to receive a delegated refresh token only, or 'cloud_iam delegated_refresh_token' to receive both an IAM access token and a delegated refresh token in one API call. | - **receiver_client_ids** | **String**| A comma separated list of one or more client IDs that will be able to consume the delegated refresh token. The service that accepts a delegated refresh token as API parameter must expose its client ID to allow this API call. The receiver of the delegated refresh token will be able to use the refresh token until it expires. | - **delegated_refresh_token_expiry** | **Integer**| Expiration in seconds until the delegated refresh token must be consumed by the receiver client IDs. After the expiration, no client ID can consume the delegated refresh token, even if the life time of the refresh token inside is still not expired. The default, if not specified, is 518,400 seconds which corresponds to 6 days. | [optional] - -### Return type - -[**TokenResponse**](TokenResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - - -## get_token_iam_authz - -> TokenResponse get_token_iam_authz(grant_type, access_token, desired_iam_id) - -Create an IAM access token based on an authorization policy - -Creates a non-opaque access token, if an appropriate authorization policy is in place. This kind of IAM access token is typically used for access between services. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::TokenOperationsApi.new -grant_type = 'grant_type_example' # String | Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:iam-authz`. -access_token = 'access_token_example' # String | The IAM access token of the identity that has the appropriate authorization to create an IAM access token for a given resource. -desired_iam_id = 'desired_iam_id_example' # String | The IAM ID of the IAM access token identity that should be created. The desired_iam_id identifies a resource identity. The IAM ID consists of the prefix crn- and the CRN of the target identity, e.g. crn-crn:v1:bluemix:public:cloud-object-storage:global:a/59bcbfa6ea2f006b4ed7094c1a08dcdd:1a0ec336-f391-4091-a6fb-5e084a4c56f4::. - -begin - #Create an IAM access token based on an authorization policy - result = api_instance.get_token_iam_authz(grant_type, access_token, desired_iam_id) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling TokenOperationsApi->get_token_iam_authz: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **grant_type** | **String**| Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:iam-authz`. | - **access_token** | **String**| The IAM access token of the identity that has the appropriate authorization to create an IAM access token for a given resource. | - **desired_iam_id** | **String**| The IAM ID of the IAM access token identity that should be created. The desired_iam_id identifies a resource identity. The IAM ID consists of the prefix crn- and the CRN of the target identity, e.g. crn-crn:v1:bluemix:public:cloud-object-storage:global:a/59bcbfa6ea2f006b4ed7094c1a08dcdd:1a0ec336-f391-4091-a6fb-5e084a4c56f4::. | - -### Return type - -[**TokenResponse**](TokenResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - - -## get_token_password - -> TokenResponse get_token_password(authorization, grant_type, username, password, opts) - -Create an IAM access token for a user using username / password credentials and an optional account identifier - -Creates a non-opaque access token for a username and password. To be able to call IBM Cloud APIs, the token must be made account-specific. For this purpose, also pass the 32 character long identifier for your account in the API call. This API call is possible only for non-federated IBMid users. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_iam' - -api_instance = IbmCloudIam::TokenOperationsApi.new -authorization = 'authorization_example' # String | Basic Authorization Header containing a valid client ID and secret. If this header is omitted the request fails with BXNIM0308E: 'No authorization header found'. You can use the client ID and secret that is used by the IBM Cloud CLI: `bx / bx` -grant_type = 'grant_type_example' # String | Grant type for this API call. You must set the grant type to `password`. -username = 'username_example' # String | The value of the username -password = 'password_example' # String | The value of the password -opts = { - account: 'account_example' # String | The 32 character identifier of the account. Specify this parameter to get an account-specific IAM token. IBM Cloud APIs require that IAM tokens are account-specific. -} - -begin - #Create an IAM access token for a user using username / password credentials and an optional account identifier - result = api_instance.get_token_password(authorization, grant_type, username, password, opts) - p result -rescue IbmCloudIam::ApiError => e - puts "Exception when calling TokenOperationsApi->get_token_password: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **authorization** | **String**| Basic Authorization Header containing a valid client ID and secret. If this header is omitted the request fails with BXNIM0308E: 'No authorization header found'. You can use the client ID and secret that is used by the IBM Cloud CLI: `bx / bx` | - **grant_type** | **String**| Grant type for this API call. You must set the grant type to `password`. | - **username** | **String**| The value of the username | - **password** | **String**| The value of the password | - **account** | **String**| The 32 character identifier of the account. Specify this parameter to get an account-specific IAM token. IBM Cloud APIs require that IAM tokens are account-specific. | [optional] - -### Return type - -[**TokenResponse**](TokenResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - diff --git a/gems/ibm_cloud_iam/docs/TokenResponse.md b/gems/ibm_cloud_iam/docs/TokenResponse.md deleted file mode 100644 index 0f628eb9..00000000 --- a/gems/ibm_cloud_iam/docs/TokenResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# IbmCloudIam::TokenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**access_token** | **String** | The IAM access token that can be used to invoke various IBM Cloud APIs. Use this token with the prefix Bearer in the HTTP header Authorization for invocations of IAM compatible APIs. | [optional] -**refresh_token** | **String** | (optional) A refresh token that can be used to get a new IAM access token if that token is expired. When using the default client (no basic authorization header) as described in this documentation, this refresh_token cannot be used to retrieve a new IAM access token. When the IAM access token is about to be expired, use the API key to create a new access token. | [optional] -**delegated_refresh_token** | **String** | (optional) A delegated refresh token that can only be consumed by the clients that have been specified in the API call as 'receiver_client_ids' | [optional] -**token_type** | **String** | The type of the token. Currently, only Bearer is returned. | [optional] -**expires_in** | **Integer** | Number of seconds until the IAM access token will expire. | [optional] -**expiration** | **Integer** | Number of seconds counted since January 1st, 1970, until the IAM access token will expire. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::TokenResponse.new(access_token: null, - refresh_token: null, - delegated_refresh_token: null, - token_type: null, - expires_in: null, - expiration: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/UpdateApiKeyRequest.md b/gems/ibm_cloud_iam/docs/UpdateApiKeyRequest.md deleted file mode 100644 index 0ff4bba2..00000000 --- a/gems/ibm_cloud_iam/docs/UpdateApiKeyRequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudIam::UpdateApiKeyRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the API key to update. If specified in the request the parameter must not be empty. The name is not checked for uniqueness. Failure to this will result in an Error condition. | [optional] -**description** | **String** | The description of the API key to update. If specified an empty description will clear the description of the API key. If a non empty value is provided the API key will be updated. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::UpdateApiKeyRequest.new(name: null, - description: null) -``` - - diff --git a/gems/ibm_cloud_iam/docs/UpdateServiceIdRequest.md b/gems/ibm_cloud_iam/docs/UpdateServiceIdRequest.md deleted file mode 100644 index ab0af07e..00000000 --- a/gems/ibm_cloud_iam/docs/UpdateServiceIdRequest.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudIam::UpdateServiceIdRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the service ID to update. If specified in the request the parameter must not be empty. The name is not checked for uniqueness. Failure to this will result in an Error condition. | [optional] -**description** | **String** | The description of the service ID to update. If specified an empty description will clear the description of the service ID. If an non empty value is provided the service ID will be updated. | [optional] -**unique_instance_crns** | **Array<String>** | List of CRNs which point to the services connected to this service ID. If specified an empty list will clear all existing unique instance crns of the service ID. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudIam' - -instance = IbmCloudIam::UpdateServiceIdRequest.new(name: null, - description: null, - unique_instance_crns: null) -``` - - diff --git a/gems/ibm_cloud_iam/git_push.sh b/gems/ibm_cloud_iam/git_push.sh deleted file mode 100644 index ced3be2b..00000000 --- a/gems/ibm_cloud_iam/git_push.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/gems/ibm_cloud_iam/ibm_cloud_iam.gemspec b/gems/ibm_cloud_iam/ibm_cloud_iam.gemspec deleted file mode 100644 index 28c75347..00000000 --- a/gems/ibm_cloud_iam/ibm_cloud_iam.gemspec +++ /dev/null @@ -1,39 +0,0 @@ -# -*- encoding: utf-8 -*- - -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -$:.push File.expand_path("../lib", __FILE__) -require "ibm_cloud_iam/version" - -Gem::Specification.new do |s| - s.name = "ibm_cloud_iam" - s.version = IbmCloudIam::VERSION - s.platform = Gem::Platform::RUBY - s.authors = ["IBM Cloud Developers"] - s.email = [""] - s.homepage = "https://openapi-generator.tech" - s.licenses = ["Apache-2.0"] - s.summary = "IBM Cloud IAM Identity Services" - s.description = "Ruby gem for IBM Cloud IAM Identity Services" - s.license = 'Apache-2.0' - s.required_ruby_version = ">= 1.9" - - s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' - - s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' - - s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } - s.test_files = `find spec/*`.split("\n") - s.executables = [] - s.require_paths = ["lib"] -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam.rb deleted file mode 100644 index 9290e918..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam.rb +++ /dev/null @@ -1,62 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -# Common files -require 'ibm_cloud_iam/api_client' -require 'ibm_cloud_iam/api_error' -require 'ibm_cloud_iam/version' -require 'ibm_cloud_iam/configuration' - -# Models -require 'ibm_cloud_iam/models/api_key' -require 'ibm_cloud_iam/models/api_key_inside_create_service_id_request' -require 'ibm_cloud_iam/models/api_key_list' -require 'ibm_cloud_iam/models/create_api_key_request' -require 'ibm_cloud_iam/models/create_service_id_request' -require 'ibm_cloud_iam/models/enity_history_record' -require 'ibm_cloud_iam/models/error' -require 'ibm_cloud_iam/models/exception_response' -require 'ibm_cloud_iam/models/exception_response_context' -require 'ibm_cloud_iam/models/inline_object' -require 'ibm_cloud_iam/models/inline_object1' -require 'ibm_cloud_iam/models/inline_object2' -require 'ibm_cloud_iam/models/inline_object3' -require 'ibm_cloud_iam/models/mfa_requirements_response' -require 'ibm_cloud_iam/models/oidc_exception_response' -require 'ibm_cloud_iam/models/response_context' -require 'ibm_cloud_iam/models/service_id' -require 'ibm_cloud_iam/models/service_id_list' -require 'ibm_cloud_iam/models/token_response' -require 'ibm_cloud_iam/models/update_api_key_request' -require 'ibm_cloud_iam/models/update_service_id_request' - -# APIs -require 'ibm_cloud_iam/api/identity_operations_api' -require 'ibm_cloud_iam/api/token_operations_api' - -module IbmCloudIam - class << self - # Customize default settings for the SDK using block. - # IbmCloudIam.configure do |config| - # config.username = "xxx" - # config.password = "xxx" - # end - # If no block given, return the default Configuration object. - def configure - if block_given? - yield(Configuration.default) - else - Configuration.default - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api/identity_operations_api.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api/identity_operations_api.rb deleted file mode 100644 index bb66ae7b..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api/identity_operations_api.rb +++ /dev/null @@ -1,1083 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudIam - class IdentityOperationsApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Create an API key - # Creates an API key for a UserID or service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param create_api_key_request [CreateApiKeyRequest] Request to create an API key - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @option opts [String] :entity_lock Indicates if the API key is locked for further write operations. False by default. (default to 'false') - # @return [ApiKey] - def create_api_key(create_api_key_request, opts = {}) - data, _status_code, _headers = create_api_key_with_http_info(create_api_key_request, opts) - data - end - - # Create an API key - # Creates an API key for a UserID or service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param create_api_key_request [CreateApiKeyRequest] Request to create an API key - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @option opts [String] :entity_lock Indicates if the API key is locked for further write operations. False by default. - # @return [Array<(ApiKey, Integer, Hash)>] ApiKey data, response status code and response headers - def create_api_key_with_http_info(create_api_key_request, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.create_api_key ...' - end - # verify the required parameter 'create_api_key_request' is set - if @api_client.config.client_side_validation && create_api_key_request.nil? - fail ArgumentError, "Missing the required parameter 'create_api_key_request' when calling IdentityOperationsApi.create_api_key" - end - # resource path - local_var_path = '/v1/apikeys' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - header_params[:'Entity-Lock'] = opts[:'entity_lock'] if !opts[:'entity_lock'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(create_api_key_request) - - # return_type - return_type = opts[:return_type] || 'ApiKey' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#create_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a service ID - # Creates a service ID for an IBM Cloud account. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param create_service_id_request [CreateServiceIdRequest] Request to create a service ID - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @option opts [String] :entity_lock Indicates if the service ID is locked for further write operations. False by default. (default to 'false') - # @return [ServiceId] - def create_service_id(create_service_id_request, opts = {}) - data, _status_code, _headers = create_service_id_with_http_info(create_service_id_request, opts) - data - end - - # Create a service ID - # Creates a service ID for an IBM Cloud account. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param create_service_id_request [CreateServiceIdRequest] Request to create a service ID - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @option opts [String] :entity_lock Indicates if the service ID is locked for further write operations. False by default. - # @return [Array<(ServiceId, Integer, Hash)>] ServiceId data, response status code and response headers - def create_service_id_with_http_info(create_service_id_request, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.create_service_id ...' - end - # verify the required parameter 'create_service_id_request' is set - if @api_client.config.client_side_validation && create_service_id_request.nil? - fail ArgumentError, "Missing the required parameter 'create_service_id_request' when calling IdentityOperationsApi.create_service_id" - end - # resource path - local_var_path = '/v1/serviceids/' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - header_params[:'Entity-Lock'] = opts[:'entity_lock'] if !opts[:'entity_lock'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(create_service_id_request) - - # return_type - return_type = opts[:return_type] || 'ServiceId' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#create_service_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Deletes an API key - # Deletes an API key. Existing tokens will remain valid until expired. Refresh tokens will not work any more for this API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - def delete_api_key(id, opts = {}) - delete_api_key_with_http_info(id, opts) - nil - end - - # Deletes an API key - # Deletes an API key. Existing tokens will remain valid until expired. Refresh tokens will not work any more for this API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def delete_api_key_with_http_info(id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.delete_api_key ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.delete_api_key" - end - # resource path - local_var_path = '/v1/apikeys/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#delete_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Deletes a service ID and associated API keys - # Deletes a service ID and all API keys associated to it. Before deleting the service ID, all associated API keys are deleted. In case a Delete Conflict (status code 409) a retry of the request may help as the service ID is only deleted if the associated API keys were successfully deleted before. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - def delete_service_id(id, opts = {}) - delete_service_id_with_http_info(id, opts) - nil - end - - # Deletes a service ID and associated API keys - # Deletes a service ID and all API keys associated to it. Before deleting the service ID, all associated API keys are deleted. In case a Delete Conflict (status code 409) a retry of the request may help as the service ID is only deleted if the associated API keys were successfully deleted before. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def delete_service_id_with_http_info(id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.delete_service_id ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.delete_service_id" - end - # resource path - local_var_path = '/v1/serviceids/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#delete_service_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get details of an API key - # Returns the details of an API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :include_history Defines if the entity history is included in the response. (default to false) - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ApiKey] - def get_api_key(id, opts = {}) - data, _status_code, _headers = get_api_key_with_http_info(id, opts) - data - end - - # Get details of an API key - # Returns the details of an API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :include_history Defines if the entity history is included in the response. - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(ApiKey, Integer, Hash)>] ApiKey data, response status code and response headers - def get_api_key_with_http_info(id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.get_api_key ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.get_api_key" - end - # resource path - local_var_path = '/v1/apikeys/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'include_history'] = opts[:'include_history'] if !opts[:'include_history'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'ApiKey' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#get_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get details of an API key by its value - # Returns the details of an API key by its value. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param [Hash] opts the optional parameters - # @option opts [String] :iam_api_key API key value. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response (default to false) - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ApiKey] - def get_api_keys_details(opts = {}) - data, _status_code, _headers = get_api_keys_details_with_http_info(opts) - data - end - - # Get details of an API key by its value - # Returns the details of an API key by its value. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param [Hash] opts the optional parameters - # @option opts [String] :iam_api_key API key value. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(ApiKey, Integer, Hash)>] ApiKey data, response status code and response headers - def get_api_keys_details_with_http_info(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.get_api_keys_details ...' - end - # resource path - local_var_path = '/v1/apikeys/details' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'include_history'] = opts[:'include_history'] if !opts[:'include_history'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - header_params[:'IAM-ApiKey'] = opts[:'iam_api_key'] if !opts[:'iam_api_key'].nil? - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'ApiKey' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#get_api_keys_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get details of a service ID - # Returns the details of a service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response. (default to false) - # @return [ServiceId] - def get_service_id(id, opts = {}) - data, _status_code, _headers = get_service_id_with_http_info(id, opts) - data - end - - # Get details of a service ID - # Returns the details of a service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response. - # @return [Array<(ServiceId, Integer, Hash)>] ServiceId data, response status code and response headers - def get_service_id_with_http_info(id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.get_service_id ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.get_service_id" - end - # resource path - local_var_path = '/v1/serviceids/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'include_history'] = opts[:'include_history'] if !opts[:'include_history'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'ServiceId' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#get_service_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get API keys for a given service or user IAM ID and account ID - # Returns the list of API key details for a given service or user IAM ID and account ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Account ID of the API keys(s) to query. If a service IAM ID is specified in iam_id then account_id must match the account of the IAM ID. If a user IAM ID is specified in iam_id then then account_id must match the account of the Authorization token. - # @option opts [String] :iam_id IAM ID of the API key(s) to be queried. The IAM ID may be that of a user or a service. For a user IAM ID iam_id must match the Authorization token. - # @option opts [Integer] :pagesize Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. - # @option opts [String] :pagetoken Optional Prev or Next page token returned from a previous query execution. Default is start with first page. - # @option opts [String] :scope Optional parameter to define the scope of the queried API Keys. Can be 'entity' (default) or 'account'. (default to 'entity') - # @option opts [String] :type Optional parameter to filter the type of the queried API Keys. Can be 'user' or 'serviceid'. - # @option opts [String] :sort Optional sort property, valid values are name, description, created_at and created_by. If specified, the items are sorted by the value of this property. - # @option opts [String] :order Optional sort order, valid values are asc and desc. Default: asc. (default to 'asc') - # @option opts [Boolean] :include_history Defines if the entity history is included in the response. (default to false) - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ApiKeyList] - def list_api_keys(opts = {}) - data, _status_code, _headers = list_api_keys_with_http_info(opts) - data - end - - # Get API keys for a given service or user IAM ID and account ID - # Returns the list of API key details for a given service or user IAM ID and account ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Account ID of the API keys(s) to query. If a service IAM ID is specified in iam_id then account_id must match the account of the IAM ID. If a user IAM ID is specified in iam_id then then account_id must match the account of the Authorization token. - # @option opts [String] :iam_id IAM ID of the API key(s) to be queried. The IAM ID may be that of a user or a service. For a user IAM ID iam_id must match the Authorization token. - # @option opts [Integer] :pagesize Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. - # @option opts [String] :pagetoken Optional Prev or Next page token returned from a previous query execution. Default is start with first page. - # @option opts [String] :scope Optional parameter to define the scope of the queried API Keys. Can be 'entity' (default) or 'account'. - # @option opts [String] :type Optional parameter to filter the type of the queried API Keys. Can be 'user' or 'serviceid'. - # @option opts [String] :sort Optional sort property, valid values are name, description, created_at and created_by. If specified, the items are sorted by the value of this property. - # @option opts [String] :order Optional sort order, valid values are asc and desc. Default: asc. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response. - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(ApiKeyList, Integer, Hash)>] ApiKeyList data, response status code and response headers - def list_api_keys_with_http_info(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.list_api_keys ...' - end - allowable_values = ["entity", "account"] - if @api_client.config.client_side_validation && opts[:'scope'] && !allowable_values.include?(opts[:'scope']) - fail ArgumentError, "invalid value for \"scope\", must be one of #{allowable_values}" - end - allowable_values = ["user", "serviceid"] - if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type']) - fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" - end - allowable_values = ["asc", "desc"] - if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order']) - fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}" - end - # resource path - local_var_path = '/v1/apikeys' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'account_id'] = opts[:'account_id'] if !opts[:'account_id'].nil? - query_params[:'iam_id'] = opts[:'iam_id'] if !opts[:'iam_id'].nil? - query_params[:'pagesize'] = opts[:'pagesize'] if !opts[:'pagesize'].nil? - query_params[:'pagetoken'] = opts[:'pagetoken'] if !opts[:'pagetoken'].nil? - query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil? - query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? - query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? - query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? - query_params[:'include_history'] = opts[:'include_history'] if !opts[:'include_history'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'ApiKeyList' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#list_api_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # List service IDs - # Returns a list of service IDs. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Account ID of the service ID(s) to query. This parameter is required (unless using a pagetoken). - # @option opts [String] :name Name of the service ID(s) to query. Optional.20 items per page. Valid range is 1 to 100. - # @option opts [Integer] :pagesize Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. - # @option opts [String] :pagetoken Optional Prev or Next page token returned from a previous query execution. Default is start with first page. - # @option opts [String] :sort Optional sort property, valid values are name, description, created_at and modified_at. If specified, the items are sorted by the value of this property. - # @option opts [String] :order Optional sort order, valid values are asc and desc. Default: asc. (default to 'asc') - # @option opts [Boolean] :include_history Defines if the entity history is included in the response (default to false) - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ServiceIdList] - def list_service_ids(opts = {}) - data, _status_code, _headers = list_service_ids_with_http_info(opts) - data - end - - # List service IDs - # Returns a list of service IDs. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Account ID of the service ID(s) to query. This parameter is required (unless using a pagetoken). - # @option opts [String] :name Name of the service ID(s) to query. Optional.20 items per page. Valid range is 1 to 100. - # @option opts [Integer] :pagesize Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. - # @option opts [String] :pagetoken Optional Prev or Next page token returned from a previous query execution. Default is start with first page. - # @option opts [String] :sort Optional sort property, valid values are name, description, created_at and modified_at. If specified, the items are sorted by the value of this property. - # @option opts [String] :order Optional sort order, valid values are asc and desc. Default: asc. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(ServiceIdList, Integer, Hash)>] ServiceIdList data, response status code and response headers - def list_service_ids_with_http_info(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.list_service_ids ...' - end - allowable_values = ["asc", "desc"] - if @api_client.config.client_side_validation && opts[:'order'] && !allowable_values.include?(opts[:'order']) - fail ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}" - end - # resource path - local_var_path = '/v1/serviceids/' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'account_id'] = opts[:'account_id'] if !opts[:'account_id'].nil? - query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil? - query_params[:'pagesize'] = opts[:'pagesize'] if !opts[:'pagesize'].nil? - query_params[:'pagetoken'] = opts[:'pagetoken'] if !opts[:'pagetoken'].nil? - query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? - query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? - query_params[:'include_history'] = opts[:'include_history'] if !opts[:'include_history'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'ServiceIdList' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#list_service_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Lock the API key - # Locks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - def lock_api_key(id, opts = {}) - lock_api_key_with_http_info(id, opts) - nil - end - - # Lock the API key - # Locks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def lock_api_key_with_http_info(id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.lock_api_key ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.lock_api_key" - end - # resource path - local_var_path = '/v1/apikeys/{id}/lock'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#lock_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Lock the service ID - # Locks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - def lock_service_id(id, opts = {}) - lock_service_id_with_http_info(id, opts) - nil - end - - # Lock the service ID - # Locks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def lock_service_id_with_http_info(id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.lock_service_id ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.lock_service_id" - end - # resource path - local_var_path = '/v1/serviceids/{id}/lock'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#lock_service_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Unlock the API key - # Unlocks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - def unlock_api_key(id, opts = {}) - unlock_api_key_with_http_info(id, opts) - nil - end - - # Unlock the API key - # Unlocks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def unlock_api_key_with_http_info(id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.unlock_api_key ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.unlock_api_key" - end - # resource path - local_var_path = '/v1/apikeys/{id}/lock'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#unlock_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Unlock the service ID - # Unlocks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - def unlock_service_id(id, opts = {}) - unlock_service_id_with_http_info(id, opts) - nil - end - - # Unlock the service ID - # Unlocks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id [String] Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers - def unlock_service_id_with_http_info(id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.unlock_service_id ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.unlock_service_id" - end - # resource path - local_var_path = '/v1/serviceids/{id}/lock'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#unlock_service_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Updates an API key - # Updates properties of an API key. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update an API key, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the API key to be updated. - # @param if_match [String] Version of the API key to be updated. Specify the version that you retrieved when reading the API key. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. - # @param update_api_key_request [UpdateApiKeyRequest] Request to update an API key - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ApiKey] - def update_api_key(id, if_match, update_api_key_request, opts = {}) - data, _status_code, _headers = update_api_key_with_http_info(id, if_match, update_api_key_request, opts) - data - end - - # Updates an API key - # Updates properties of an API key. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update an API key, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the API key to be updated. - # @param if_match [String] Version of the API key to be updated. Specify the version that you retrieved when reading the API key. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. - # @param update_api_key_request [UpdateApiKeyRequest] Request to update an API key - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(ApiKey, Integer, Hash)>] ApiKey data, response status code and response headers - def update_api_key_with_http_info(id, if_match, update_api_key_request, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.update_api_key ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.update_api_key" - end - # verify the required parameter 'if_match' is set - if @api_client.config.client_side_validation && if_match.nil? - fail ArgumentError, "Missing the required parameter 'if_match' when calling IdentityOperationsApi.update_api_key" - end - # verify the required parameter 'update_api_key_request' is set - if @api_client.config.client_side_validation && update_api_key_request.nil? - fail ArgumentError, "Missing the required parameter 'update_api_key_request' when calling IdentityOperationsApi.update_api_key" - end - # resource path - local_var_path = '/v1/apikeys/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - header_params[:'If-Match'] = if_match - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(update_api_key_request) - - # return_type - return_type = opts[:return_type] || 'ApiKey' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#update_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update service ID - # Updates properties of a service ID. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update a service ID, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the service ID to be updated. - # @param if_match [String] Version of the service ID to be updated. Specify the version that you retrieved as entity_tag (ETag header) when reading the service ID. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. - # @param update_service_id_request [UpdateServiceIdRequest] Request to update a service ID - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ServiceId] - def update_service_id(id, if_match, update_service_id_request, opts = {}) - data, _status_code, _headers = update_service_id_with_http_info(id, if_match, update_service_id_request, opts) - data - end - - # Update service ID - # Updates properties of a service ID. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update a service ID, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id [String] Unique ID of the service ID to be updated. - # @param if_match [String] Version of the service ID to be updated. Specify the version that you retrieved as entity_tag (ETag header) when reading the service ID. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. - # @param update_service_id_request [UpdateServiceIdRequest] Request to update a service ID - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [Array<(ServiceId, Integer, Hash)>] ServiceId data, response status code and response headers - def update_service_id_with_http_info(id, if_match, update_service_id_request, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: IdentityOperationsApi.update_service_id ...' - end - # verify the required parameter 'id' is set - if @api_client.config.client_side_validation && id.nil? - fail ArgumentError, "Missing the required parameter 'id' when calling IdentityOperationsApi.update_service_id" - end - # verify the required parameter 'if_match' is set - if @api_client.config.client_side_validation && if_match.nil? - fail ArgumentError, "Missing the required parameter 'if_match' when calling IdentityOperationsApi.update_service_id" - end - # verify the required parameter 'update_service_id_request' is set - if @api_client.config.client_side_validation && update_service_id_request.nil? - fail ArgumentError, "Missing the required parameter 'update_service_id_request' when calling IdentityOperationsApi.update_service_id" - end - # resource path - local_var_path = '/v1/serviceids/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - header_params[:'If-Match'] = if_match - header_params[:'Authorization'] = opts[:'authorization'] if !opts[:'authorization'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(update_service_id_request) - - # return_type - return_type = opts[:return_type] || 'ServiceId' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: IdentityOperationsApi#update_service_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api/token_operations_api.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api/token_operations_api.rb deleted file mode 100644 index 0b83da9e..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api/token_operations_api.rb +++ /dev/null @@ -1,351 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudIam - class TokenOperationsApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Create an IAM access token for a user or service ID using an API key - # Creates a non-opaque access token for an API key. - # @param grant_type [String] Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. - # @param apikey [String] The value of the api key - # @param [Hash] opts the optional parameters - # @return [TokenResponse] - def get_token_api_key(grant_type, apikey, opts = {}) - data, _status_code, _headers = get_token_api_key_with_http_info(grant_type, apikey, opts) - data - end - - # Create an IAM access token for a user or service ID using an API key - # Creates a non-opaque access token for an API key. - # @param grant_type [String] Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. - # @param apikey [String] The value of the api key - # @param [Hash] opts the optional parameters - # @return [Array<(TokenResponse, Integer, Hash)>] TokenResponse data, response status code and response headers - def get_token_api_key_with_http_info(grant_type, apikey, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TokenOperationsApi.get_token_api_key ...' - end - # verify the required parameter 'grant_type' is set - if @api_client.config.client_side_validation && grant_type.nil? - fail ArgumentError, "Missing the required parameter 'grant_type' when calling TokenOperationsApi.get_token_api_key" - end - # verify the required parameter 'apikey' is set - if @api_client.config.client_side_validation && apikey.nil? - fail ArgumentError, "Missing the required parameter 'apikey' when calling TokenOperationsApi.get_token_api_key" - end - # resource path - local_var_path = '/identity/token#apikey' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded']) - - # form parameters - form_params = opts[:form_params] || {} - form_params['grant_type'] = grant_type - form_params['apikey'] = apikey - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'TokenResponse' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: TokenOperationsApi#get_token_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create an IAM access token and delegated refresh token for a user or service ID - # Creates a non-opaque access token and a delegated refresh token for an API key. - # @param grant_type [String] Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. - # @param apikey [String] The value of the API key. - # @param response_type [String] Either 'delegated_refresh_token' to receive a delegated refresh token only, or 'cloud_iam delegated_refresh_token' to receive both an IAM access token and a delegated refresh token in one API call. - # @param receiver_client_ids [String] A comma separated list of one or more client IDs that will be able to consume the delegated refresh token. The service that accepts a delegated refresh token as API parameter must expose its client ID to allow this API call. The receiver of the delegated refresh token will be able to use the refresh token until it expires. - # @param [Hash] opts the optional parameters - # @option opts [Integer] :delegated_refresh_token_expiry Expiration in seconds until the delegated refresh token must be consumed by the receiver client IDs. After the expiration, no client ID can consume the delegated refresh token, even if the life time of the refresh token inside is still not expired. The default, if not specified, is 518,400 seconds which corresponds to 6 days. - # @return [TokenResponse] - def get_token_api_key_delegated_refresh_token(grant_type, apikey, response_type, receiver_client_ids, opts = {}) - data, _status_code, _headers = get_token_api_key_delegated_refresh_token_with_http_info(grant_type, apikey, response_type, receiver_client_ids, opts) - data - end - - # Create an IAM access token and delegated refresh token for a user or service ID - # Creates a non-opaque access token and a delegated refresh token for an API key. - # @param grant_type [String] Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. - # @param apikey [String] The value of the API key. - # @param response_type [String] Either 'delegated_refresh_token' to receive a delegated refresh token only, or 'cloud_iam delegated_refresh_token' to receive both an IAM access token and a delegated refresh token in one API call. - # @param receiver_client_ids [String] A comma separated list of one or more client IDs that will be able to consume the delegated refresh token. The service that accepts a delegated refresh token as API parameter must expose its client ID to allow this API call. The receiver of the delegated refresh token will be able to use the refresh token until it expires. - # @param [Hash] opts the optional parameters - # @option opts [Integer] :delegated_refresh_token_expiry Expiration in seconds until the delegated refresh token must be consumed by the receiver client IDs. After the expiration, no client ID can consume the delegated refresh token, even if the life time of the refresh token inside is still not expired. The default, if not specified, is 518,400 seconds which corresponds to 6 days. - # @return [Array<(TokenResponse, Integer, Hash)>] TokenResponse data, response status code and response headers - def get_token_api_key_delegated_refresh_token_with_http_info(grant_type, apikey, response_type, receiver_client_ids, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TokenOperationsApi.get_token_api_key_delegated_refresh_token ...' - end - # verify the required parameter 'grant_type' is set - if @api_client.config.client_side_validation && grant_type.nil? - fail ArgumentError, "Missing the required parameter 'grant_type' when calling TokenOperationsApi.get_token_api_key_delegated_refresh_token" - end - # verify the required parameter 'apikey' is set - if @api_client.config.client_side_validation && apikey.nil? - fail ArgumentError, "Missing the required parameter 'apikey' when calling TokenOperationsApi.get_token_api_key_delegated_refresh_token" - end - # verify the required parameter 'response_type' is set - if @api_client.config.client_side_validation && response_type.nil? - fail ArgumentError, "Missing the required parameter 'response_type' when calling TokenOperationsApi.get_token_api_key_delegated_refresh_token" - end - # verify the required parameter 'receiver_client_ids' is set - if @api_client.config.client_side_validation && receiver_client_ids.nil? - fail ArgumentError, "Missing the required parameter 'receiver_client_ids' when calling TokenOperationsApi.get_token_api_key_delegated_refresh_token" - end - # resource path - local_var_path = '/identity/token#apikey-delegated-refresh-token' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded']) - - # form parameters - form_params = opts[:form_params] || {} - form_params['grant_type'] = grant_type - form_params['apikey'] = apikey - form_params['response_type'] = response_type - form_params['receiver_client_ids'] = receiver_client_ids - form_params['delegated_refresh_token_expiry'] = opts[:'delegated_refresh_token_expiry'] if !opts[:'delegated_refresh_token_expiry'].nil? - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'TokenResponse' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: TokenOperationsApi#get_token_api_key_delegated_refresh_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create an IAM access token based on an authorization policy - # Creates a non-opaque access token, if an appropriate authorization policy is in place. This kind of IAM access token is typically used for access between services. - # @param grant_type [String] Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:iam-authz`. - # @param access_token [String] The IAM access token of the identity that has the appropriate authorization to create an IAM access token for a given resource. - # @param desired_iam_id [String] The IAM ID of the IAM access token identity that should be created. The desired_iam_id identifies a resource identity. The IAM ID consists of the prefix crn- and the CRN of the target identity, e.g. crn-crn:v1:bluemix:public:cloud-object-storage:global:a/59bcbfa6ea2f006b4ed7094c1a08dcdd:1a0ec336-f391-4091-a6fb-5e084a4c56f4::. - # @param [Hash] opts the optional parameters - # @return [TokenResponse] - def get_token_iam_authz(grant_type, access_token, desired_iam_id, opts = {}) - data, _status_code, _headers = get_token_iam_authz_with_http_info(grant_type, access_token, desired_iam_id, opts) - data - end - - # Create an IAM access token based on an authorization policy - # Creates a non-opaque access token, if an appropriate authorization policy is in place. This kind of IAM access token is typically used for access between services. - # @param grant_type [String] Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:iam-authz`. - # @param access_token [String] The IAM access token of the identity that has the appropriate authorization to create an IAM access token for a given resource. - # @param desired_iam_id [String] The IAM ID of the IAM access token identity that should be created. The desired_iam_id identifies a resource identity. The IAM ID consists of the prefix crn- and the CRN of the target identity, e.g. crn-crn:v1:bluemix:public:cloud-object-storage:global:a/59bcbfa6ea2f006b4ed7094c1a08dcdd:1a0ec336-f391-4091-a6fb-5e084a4c56f4::. - # @param [Hash] opts the optional parameters - # @return [Array<(TokenResponse, Integer, Hash)>] TokenResponse data, response status code and response headers - def get_token_iam_authz_with_http_info(grant_type, access_token, desired_iam_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TokenOperationsApi.get_token_iam_authz ...' - end - # verify the required parameter 'grant_type' is set - if @api_client.config.client_side_validation && grant_type.nil? - fail ArgumentError, "Missing the required parameter 'grant_type' when calling TokenOperationsApi.get_token_iam_authz" - end - # verify the required parameter 'access_token' is set - if @api_client.config.client_side_validation && access_token.nil? - fail ArgumentError, "Missing the required parameter 'access_token' when calling TokenOperationsApi.get_token_iam_authz" - end - # verify the required parameter 'desired_iam_id' is set - if @api_client.config.client_side_validation && desired_iam_id.nil? - fail ArgumentError, "Missing the required parameter 'desired_iam_id' when calling TokenOperationsApi.get_token_iam_authz" - end - # resource path - local_var_path = '/identity/token#iam-authz' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded']) - - # form parameters - form_params = opts[:form_params] || {} - form_params['grant_type'] = grant_type - form_params['access_token'] = access_token - form_params['desired_iam_id'] = desired_iam_id - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'TokenResponse' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: TokenOperationsApi#get_token_iam_authz\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create an IAM access token for a user using username / password credentials and an optional account identifier - # Creates a non-opaque access token for a username and password. To be able to call IBM Cloud APIs, the token must be made account-specific. For this purpose, also pass the 32 character long identifier for your account in the API call. This API call is possible only for non-federated IBMid users. - # @param authorization [String] Basic Authorization Header containing a valid client ID and secret. If this header is omitted the request fails with BXNIM0308E: 'No authorization header found'. You can use the client ID and secret that is used by the IBM Cloud CLI: `bx / bx` - # @param grant_type [String] Grant type for this API call. You must set the grant type to `password`. - # @param username [String] The value of the username - # @param password [String] The value of the password - # @param [Hash] opts the optional parameters - # @option opts [String] :account The 32 character identifier of the account. Specify this parameter to get an account-specific IAM token. IBM Cloud APIs require that IAM tokens are account-specific. - # @return [TokenResponse] - def get_token_password(authorization, grant_type, username, password, opts = {}) - data, _status_code, _headers = get_token_password_with_http_info(authorization, grant_type, username, password, opts) - data - end - - # Create an IAM access token for a user using username / password credentials and an optional account identifier - # Creates a non-opaque access token for a username and password. To be able to call IBM Cloud APIs, the token must be made account-specific. For this purpose, also pass the 32 character long identifier for your account in the API call. This API call is possible only for non-federated IBMid users. - # @param authorization [String] Basic Authorization Header containing a valid client ID and secret. If this header is omitted the request fails with BXNIM0308E: 'No authorization header found'. You can use the client ID and secret that is used by the IBM Cloud CLI: `bx / bx` - # @param grant_type [String] Grant type for this API call. You must set the grant type to `password`. - # @param username [String] The value of the username - # @param password [String] The value of the password - # @param [Hash] opts the optional parameters - # @option opts [String] :account The 32 character identifier of the account. Specify this parameter to get an account-specific IAM token. IBM Cloud APIs require that IAM tokens are account-specific. - # @return [Array<(TokenResponse, Integer, Hash)>] TokenResponse data, response status code and response headers - def get_token_password_with_http_info(authorization, grant_type, username, password, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TokenOperationsApi.get_token_password ...' - end - # verify the required parameter 'authorization' is set - if @api_client.config.client_side_validation && authorization.nil? - fail ArgumentError, "Missing the required parameter 'authorization' when calling TokenOperationsApi.get_token_password" - end - # verify the required parameter 'grant_type' is set - if @api_client.config.client_side_validation && grant_type.nil? - fail ArgumentError, "Missing the required parameter 'grant_type' when calling TokenOperationsApi.get_token_password" - end - # verify the required parameter 'username' is set - if @api_client.config.client_side_validation && username.nil? - fail ArgumentError, "Missing the required parameter 'username' when calling TokenOperationsApi.get_token_password" - end - # verify the required parameter 'password' is set - if @api_client.config.client_side_validation && password.nil? - fail ArgumentError, "Missing the required parameter 'password' when calling TokenOperationsApi.get_token_password" - end - # resource path - local_var_path = '/identity/token#password' - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded']) - header_params[:'Authorization'] = authorization - - # form parameters - form_params = opts[:form_params] || {} - form_params['grant_type'] = grant_type - form_params['username'] = username - form_params['password'] = password - form_params['account'] = opts[:'account'] if !opts[:'account'].nil? - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'TokenResponse' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: TokenOperationsApi#get_token_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api_client.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api_client.rb deleted file mode 100644 index 7486c42c..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api_client.rb +++ /dev/null @@ -1,387 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' -require 'json' -require 'logger' -require 'tempfile' -require 'typhoeus' - -module IbmCloudIam - class ApiClient - # The Configuration object holding settings to be used in the API client. - attr_accessor :config - - # Defines the headers to be used in HTTP requests of all API calls by default. - # - # @return [Hash] - attr_accessor :default_headers - - # Initializes the ApiClient - # @option config [Configuration] Configuration for initializing the object, default to Configuration.default - def initialize(config = Configuration.default) - @config = config - @user_agent = "OpenAPI-Generator/#{VERSION}/ruby" - @default_headers = { - 'Content-Type' => 'application/json', - 'User-Agent' => @user_agent - } - end - - def self.default - @@default ||= ApiClient.new - end - - # Call an API with given options. - # - # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: - # the data deserialized from response body (could be nil), response status code and response headers. - def call_api(http_method, path, opts = {}) - request = build_request(http_method, path, opts) - response = request.run - - if @config.debugging - @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n" - end - - unless response.success? - if response.timed_out? - fail ApiError.new('Connection timed out') - elsif response.code == 0 - # Errors from libcurl will be made visible here - fail ApiError.new(:code => 0, - :message => response.return_message) - else - fail ApiError.new(:code => response.code, - :response_headers => response.headers, - :response_body => response.body), - response.status_message - end - end - - if opts[:return_type] - data = deserialize(response, opts[:return_type]) - else - data = nil - end - return data, response.code, response.headers - end - - # Builds the HTTP request - # - # @param [String] http_method HTTP method/verb (e.g. POST) - # @param [String] path URL path (e.g. /account/new) - # @option opts [Hash] :header_params Header parameters - # @option opts [Hash] :query_params Query parameters - # @option opts [Hash] :form_params Query parameters - # @option opts [Object] :body HTTP body (JSON/XML) - # @return [Typhoeus::Request] A Typhoeus Request - def build_request(http_method, path, opts = {}) - url = build_request_url(path) - http_method = http_method.to_sym.downcase - - header_params = @default_headers.merge(opts[:header_params] || {}) - query_params = opts[:query_params] || {} - form_params = opts[:form_params] || {} - - - # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false) - _verify_ssl_host = @config.verify_ssl_host ? 2 : 0 - - req_opts = { - :method => http_method, - :headers => header_params, - :params => query_params, - :params_encoding => @config.params_encoding, - :timeout => @config.timeout, - :ssl_verifypeer => @config.verify_ssl, - :ssl_verifyhost => _verify_ssl_host, - :sslcert => @config.cert_file, - :sslkey => @config.key_file, - :verbose => @config.debugging - } - - # set custom cert, if provided - req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert - - if [:post, :patch, :put, :delete].include?(http_method) - req_body = build_request_body(header_params, form_params, opts[:body]) - req_opts.update :body => req_body - if @config.debugging - @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" - end - end - - request = Typhoeus::Request.new(url, req_opts) - download_file(request) if opts[:return_type] == 'File' - request - end - - # Builds the HTTP request body - # - # @param [Hash] header_params Header parameters - # @param [Hash] form_params Query parameters - # @param [Object] body HTTP body (JSON/XML) - # @return [String] HTTP body data in the form of string - def build_request_body(header_params, form_params, body) - # http form - if header_params['Content-Type'] == 'application/x-www-form-urlencoded' || - header_params['Content-Type'] == 'multipart/form-data' - data = {} - form_params.each do |key, value| - case value - when ::File, ::Array, nil - # let typhoeus handle File, Array and nil parameters - data[key] = value - else - data[key] = value.to_s - end - end - elsif body - data = body.is_a?(String) ? body : body.to_json - else - data = nil - end - data - end - - # Check if the given MIME is a JSON MIME. - # JSON MIME examples: - # application/json - # application/json; charset=UTF8 - # APPLICATION/JSON - # */* - # @param [String] mime MIME - # @return [Boolean] True if the MIME is application/json - def json_mime?(mime) - (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? - end - - # Deserialize the response to the given return type. - # - # @param [Response] response HTTP response - # @param [String] return_type some examples: "User", "Array", "Hash" - def deserialize(response, return_type) - body = response.body - - # handle file downloading - return the File instance processed in request callbacks - # note that response body is empty when the file is written in chunks in request on_body callback - return @tempfile if return_type == 'File' - - return nil if body.nil? || body.empty? - - # return response body directly for String return type - return body if return_type == 'String' - - # ensuring a default content type - content_type = response.headers['Content-Type'] || 'application/json' - - fail "Content-Type is not supported: #{content_type}" unless json_mime?(content_type) - - begin - data = JSON.parse("[#{body}]", :symbolize_names => true)[0] - rescue JSON::ParserError => e - if %w(String Date DateTime).include?(return_type) - data = body - else - raise e - end - end - - convert_to_type data, return_type - end - - # Convert data to the given return type. - # @param [Object] data Data to be converted - # @param [String] return_type Return type - # @return [Mixed] Data in a particular type - def convert_to_type(data, return_type) - return nil if data.nil? - case return_type - when 'String' - data.to_s - when 'Integer' - data.to_i - when 'Float' - data.to_f - when 'Boolean' - data == true - when 'DateTime' - # parse date time (expecting ISO 8601 format) - DateTime.parse data - when 'Date' - # parse date time (expecting ISO 8601 format) - Date.parse data - when 'Object' - # generic object (usually a Hash), return directly - data - when /\AArray<(.+)>\z/ - # e.g. Array - sub_type = $1 - data.map { |item| convert_to_type(item, sub_type) } - when /\AHash\\z/ - # e.g. Hash - sub_type = $1 - {}.tap do |hash| - data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } - end - else - # models, e.g. Pet - IbmCloudIam.const_get(return_type).build_from_hash(data) - end - end - - # Save response body into a file in (the defined) temporary folder, using the filename - # from the "Content-Disposition" header if provided, otherwise a random filename. - # The response body is written to the file in chunks in order to handle files which - # size is larger than maximum Ruby String or even larger than the maximum memory a Ruby - # process can use. - # - # @see Configuration#temp_folder_path - def download_file(request) - tempfile = nil - encoding = nil - request.on_headers do |response| - content_disposition = response.headers['Content-Disposition'] - if content_disposition && content_disposition =~ /filename=/i - filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] - prefix = sanitize_filename(filename) - else - prefix = 'download-' - end - prefix = prefix + '-' unless prefix.end_with?('-') - encoding = response.body.encoding - tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding) - @tempfile = tempfile - end - request.on_body do |chunk| - chunk.force_encoding(encoding) - tempfile.write(chunk) - end - request.on_complete do |response| - if tempfile - tempfile.close - @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ - "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ - "will be deleted automatically with GC. It's also recommended to delete the temp file "\ - "explicitly with `tempfile.delete`" - end - end - end - - # Sanitize filename by removing path. - # e.g. ../../sun.gif becomes sun.gif - # - # @param [String] filename the filename to be sanitized - # @return [String] the sanitized filename - def sanitize_filename(filename) - filename.gsub(/.*[\/\\]/, '') - end - - def build_request_url(path) - # Add leading and trailing slashes to path - path = "/#{path}".gsub(/\/+/, '/') - @config.base_url + path - end - - # Update hearder and query params based on authentication settings. - # - # @param [Hash] header_params Header parameters - # @param [Hash] query_params Query parameters - # @param [String] auth_names Authentication scheme name - def update_params_for_auth!(header_params, query_params, auth_names) - Array(auth_names).each do |auth_name| - auth_setting = @config.auth_settings[auth_name] - next unless auth_setting - case auth_setting[:in] - when 'header' then header_params[auth_setting[:key]] = auth_setting[:value] - when 'query' then query_params[auth_setting[:key]] = auth_setting[:value] - else fail ArgumentError, 'Authentication token must be in `query` of `header`' - end - end - end - - # Sets user agent in HTTP header - # - # @param [String] user_agent User agent (e.g. openapi-generator/ruby/1.0.0) - def user_agent=(user_agent) - @user_agent = user_agent - @default_headers['User-Agent'] = @user_agent - end - - # Return Accept header based on an array of accepts provided. - # @param [Array] accepts array for Accept - # @return [String] the Accept header (e.g. application/json) - def select_header_accept(accepts) - return nil if accepts.nil? || accepts.empty? - # use JSON when present, otherwise use all of the provided - json_accept = accepts.find { |s| json_mime?(s) } - json_accept || accepts.join(',') - end - - # Return Content-Type header based on an array of content types provided. - # @param [Array] content_types array for Content-Type - # @return [String] the Content-Type header (e.g. application/json) - def select_header_content_type(content_types) - # use application/json by default - return 'application/json' if content_types.nil? || content_types.empty? - # use JSON when present, otherwise use the first one - json_content_type = content_types.find { |s| json_mime?(s) } - json_content_type || content_types.first - end - - # Convert object (array, hash, object, etc) to JSON string. - # @param [Object] model object to be converted into JSON string - # @return [String] JSON string representation of the object - def object_to_http_body(model) - return model if model.nil? || model.is_a?(String) - local_body = nil - if model.is_a?(Array) - local_body = model.map { |m| object_to_hash(m) } - else - local_body = object_to_hash(model) - end - local_body.to_json - end - - # Convert object(non-array) to hash. - # @param [Object] obj object to be converted into JSON string - # @return [String] JSON string representation of the object - def object_to_hash(obj) - if obj.respond_to?(:to_hash) - obj.to_hash - else - obj - end - end - - # Build parameter value according to the given collection format. - # @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi - def build_collection_param(param, collection_format) - case collection_format - when :csv - param.join(',') - when :ssv - param.join(' ') - when :tsv - param.join("\t") - when :pipes - param.join('|') - when :multi - # return the array directly as typhoeus will handle it as expected - param - else - fail "unknown collection format: #{collection_format.inspect}" - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api_error.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api_error.rb deleted file mode 100644 index c02e9ee4..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/api_error.rb +++ /dev/null @@ -1,57 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -module IbmCloudIam - class ApiError < StandardError - attr_reader :code, :response_headers, :response_body - - # Usage examples: - # ApiError.new - # ApiError.new("message") - # ApiError.new(:code => 500, :response_headers => {}, :response_body => "") - # ApiError.new(:code => 404, :message => "Not Found") - def initialize(arg = nil) - if arg.is_a? Hash - if arg.key?(:message) || arg.key?('message') - super(arg[:message] || arg['message']) - else - super arg - end - - arg.each do |k, v| - instance_variable_set "@#{k}", v - end - else - super arg - end - end - - # Override to_s to display a friendly error message - def to_s - message - end - - def message - if @message.nil? - msg = "Error message: the server returns an error" - else - msg = @message - end - - msg += "\nHTTP status code: #{code}" if code - msg += "\nResponse headers: #{response_headers}" if response_headers - msg += "\nResponse body: #{response_body}" if response_body - - msg - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/configuration.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/configuration.rb deleted file mode 100644 index 326a46a4..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/configuration.rb +++ /dev/null @@ -1,241 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -module IbmCloudIam - class Configuration - # Defines url scheme - attr_accessor :scheme - - # Defines url host - attr_accessor :host - - # Defines url base path - attr_accessor :base_path - - # Defines API keys used with API Key authentications. - # - # @return [Hash] key: parameter name, value: parameter value (API key) - # - # @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string) - # config.api_key['api_key'] = 'xxx' - attr_accessor :api_key - - # Defines API key prefixes used with API Key authentications. - # - # @return [Hash] key: parameter name, value: API key prefix - # - # @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers) - # config.api_key_prefix['api_key'] = 'Token' - attr_accessor :api_key_prefix - - # Defines the username used with HTTP basic authentication. - # - # @return [String] - attr_accessor :username - - # Defines the password used with HTTP basic authentication. - # - # @return [String] - attr_accessor :password - - # Defines the access token (Bearer) used with OAuth2. - attr_accessor :access_token - - # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response - # details will be logged with `logger.debug` (see the `logger` attribute). - # Default to false. - # - # @return [true, false] - attr_accessor :debugging - - # Defines the logger used for debugging. - # Default to `Rails.logger` (when in Rails) or logging to STDOUT. - # - # @return [#debug] - attr_accessor :logger - - # Defines the temporary folder to store downloaded files - # (for API endpoints that have file response). - # Default to use `Tempfile`. - # - # @return [String] - attr_accessor :temp_folder_path - - # The time limit for HTTP request in seconds. - # Default to 0 (never times out). - attr_accessor :timeout - - # Set this to false to skip client side validation in the operation. - # Default to true. - # @return [true, false] - attr_accessor :client_side_validation - - ### TLS/SSL setting - # Set this to false to skip verifying SSL certificate when calling API from https server. - # Default to true. - # - # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. - # - # @return [true, false] - attr_accessor :verify_ssl - - ### TLS/SSL setting - # Set this to false to skip verifying SSL host name - # Default to true. - # - # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. - # - # @return [true, false] - attr_accessor :verify_ssl_host - - ### TLS/SSL setting - # Set this to customize the certificate file to verify the peer. - # - # @return [String] the path to the certificate file - # - # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code: - # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145 - attr_accessor :ssl_ca_cert - - ### TLS/SSL setting - # Client certificate file (for client certificate) - attr_accessor :cert_file - - ### TLS/SSL setting - # Client private key file (for client certificate) - attr_accessor :key_file - - # Set this to customize parameters encoding of array parameter with multi collectionFormat. - # Default to nil. - # - # @see The params_encoding option of Ethon. Related source code: - # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96 - attr_accessor :params_encoding - - attr_accessor :inject_format - - attr_accessor :force_ending_format - - def initialize - @scheme = 'https' - @host = 'iam.cloud.ibm.com' - @base_path = '' - @api_key = {} - @api_key_prefix = {} - @timeout = 0 - @client_side_validation = true - @verify_ssl = true - @verify_ssl_host = true - @params_encoding = nil - @cert_file = nil - @key_file = nil - @debugging = false - @inject_format = false - @force_ending_format = false - @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) - - yield(self) if block_given? - end - - # The default Configuration object. - def self.default - @@default ||= Configuration.new - end - - def configure - yield(self) if block_given? - end - - def scheme=(scheme) - # remove :// from scheme - @scheme = scheme.sub(/:\/\//, '') - end - - def host=(host) - # remove http(s):// and anything after a slash - @host = host.sub(/https?:\/\//, '').split('/').first - end - - def base_path=(base_path) - # Add leading and trailing slashes to base_path - @base_path = "/#{base_path}".gsub(/\/+/, '/') - @base_path = '' if @base_path == '/' - end - - def base_url - "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') - end - - # Gets API key (with prefix if set). - # @param [String] param_name the parameter name of API key auth - def api_key_with_prefix(param_name) - if @api_key_prefix[param_name] - "#{@api_key_prefix[param_name]} #{@api_key[param_name]}" - else - @api_key[param_name] - end - end - - # Gets Basic Auth token string - def basic_auth_token - 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n") - end - - # Returns Auth Settings hash for api client. - def auth_settings - { - } - end - - # Returns an array of Server setting - def server_settings - [ - { - url: "https://iam.cloud.ibm.com", - description: "No description provided", - } - ] - end - - # Returns URL based on server settings - # - # @param index array index of the server settings - # @param variables hash of variable and the corresponding value - def server_url(index, variables = {}) - servers = server_settings - - # check array index out of bound - if (index < 0 || index >= servers.size) - fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}" - end - - server = servers[index] - url = server[:url] - - # go through variable and assign a value - server[:variables].each do |name, variable| - if variables.key?(name) - if (server[:variables][name][:enum_values].include? variables[name]) - url.gsub! "{" + name.to_s + "}", variables[name] - else - fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}." - end - else - # use default value - url.gsub! "{" + name.to_s + "}", server[:variables][name][:default_value] - end - end - - url - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key.rb deleted file mode 100644 index 520259d8..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key.rb +++ /dev/null @@ -1,381 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Response body format for API key V1 REST requests - class ApiKey - attr_accessor :context - - # Unique identifier of this API Key. - attr_accessor :id - - # Version of the API Key details object. You need to specify this value when updating the API key to avoid stale updates. - attr_accessor :entity_tag - - # Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::apikey:1234-9012-5678' - attr_accessor :crn - - # The API key cannot be changed if set to true. - attr_accessor :locked - - # If set contains a date time string of the creation date in ISO format - attr_accessor :created_at - - # IAM ID of the user or service which created the API key. - attr_accessor :created_by - - # If set contains a date time string of the last modification date in ISO format - attr_accessor :modified_at - - # Name of the API key. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the API key. - attr_accessor :name - - # The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key. - attr_accessor :description - - # The iam_id that this API key authenticates. - attr_accessor :iam_id - - # ID of the account that this API key authenticates for. - attr_accessor :account_id - - # The API key value. This property only contains the API key value for the following cases: create an API key, update a service ID API key that stores the API key value as retrievable, or get a service ID API key that stores the API key value as retrievable. All other operations don't return the API key value, for example all user API key related operations, except for create, don't contain the API key value. - attr_accessor :apikey - - # History of the API key - attr_accessor :history - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'context' => :'context', - :'id' => :'id', - :'entity_tag' => :'entity_tag', - :'crn' => :'crn', - :'locked' => :'locked', - :'created_at' => :'created_at', - :'created_by' => :'created_by', - :'modified_at' => :'modified_at', - :'name' => :'name', - :'description' => :'description', - :'iam_id' => :'iam_id', - :'account_id' => :'account_id', - :'apikey' => :'apikey', - :'history' => :'history' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'context' => :'ResponseContext', - :'id' => :'String', - :'entity_tag' => :'String', - :'crn' => :'String', - :'locked' => :'Boolean', - :'created_at' => :'DateTime', - :'created_by' => :'String', - :'modified_at' => :'DateTime', - :'name' => :'String', - :'description' => :'String', - :'iam_id' => :'String', - :'account_id' => :'String', - :'apikey' => :'String', - :'history' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::ApiKey` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::ApiKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'context') - self.context = attributes[:'context'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'entity_tag') - self.entity_tag = attributes[:'entity_tag'] - end - - if attributes.key?(:'crn') - self.crn = attributes[:'crn'] - end - - if attributes.key?(:'locked') - self.locked = attributes[:'locked'] - end - - if attributes.key?(:'created_at') - self.created_at = attributes[:'created_at'] - end - - if attributes.key?(:'created_by') - self.created_by = attributes[:'created_by'] - end - - if attributes.key?(:'modified_at') - self.modified_at = attributes[:'modified_at'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'iam_id') - self.iam_id = attributes[:'iam_id'] - end - - if attributes.key?(:'account_id') - self.account_id = attributes[:'account_id'] - end - - if attributes.key?(:'apikey') - self.apikey = attributes[:'apikey'] - end - - if attributes.key?(:'history') - if (value = attributes[:'history']).is_a?(Array) - self.history = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') - end - - if @crn.nil? - invalid_properties.push('invalid value for "crn", crn cannot be nil.') - end - - if @locked.nil? - invalid_properties.push('invalid value for "locked", locked cannot be nil.') - end - - if @created_by.nil? - invalid_properties.push('invalid value for "created_by", created_by cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @iam_id.nil? - invalid_properties.push('invalid value for "iam_id", iam_id cannot be nil.') - end - - if @account_id.nil? - invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') - end - - if @apikey.nil? - invalid_properties.push('invalid value for "apikey", apikey cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @id.nil? - return false if @crn.nil? - return false if @locked.nil? - return false if @created_by.nil? - return false if @name.nil? - return false if @iam_id.nil? - return false if @account_id.nil? - return false if @apikey.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - context == o.context && - id == o.id && - entity_tag == o.entity_tag && - crn == o.crn && - locked == o.locked && - created_at == o.created_at && - created_by == o.created_by && - modified_at == o.modified_at && - name == o.name && - description == o.description && - iam_id == o.iam_id && - account_id == o.account_id && - apikey == o.apikey && - history == o.history - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [context, id, entity_tag, crn, locked, created_at, created_by, modified_at, name, description, iam_id, account_id, apikey, history].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key_inside_create_service_id_request.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key_inside_create_service_id_request.rb deleted file mode 100644 index 270b15b7..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key_inside_create_service_id_request.rb +++ /dev/null @@ -1,245 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Parameters for the API key in the Create service Id V1 REST request. - class ApiKeyInsideCreateServiceIdRequest - # Name of the API key. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the API key. - attr_accessor :name - - # The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key. - attr_accessor :description - - # You can optionally passthrough the API key value for this API key. If passed, NO validation of that apiKey value is done, i.e. the value can be non-URL safe. If omitted, the API key management will create an URL safe opaque API key value. The value of the API key is checked for uniqueness. Please ensure enough variations when passing in this value. - attr_accessor :apikey - - # Send true or false to set whether the API key value is retrievable in the future by using the Get details of an API key request. If you create an API key for a user, you must specify `false` or omit the value. We don't allow storing of API keys for users. - attr_accessor :store_value - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'description' => :'description', - :'apikey' => :'apikey', - :'store_value' => :'store_value' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'description' => :'String', - :'apikey' => :'String', - :'store_value' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::ApiKeyInsideCreateServiceIdRequest` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::ApiKeyInsideCreateServiceIdRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'apikey') - self.apikey = attributes[:'apikey'] - end - - if attributes.key?(:'store_value') - self.store_value = attributes[:'store_value'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - description == o.description && - apikey == o.apikey && - store_value == o.store_value - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, description, apikey, store_value].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key_list.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key_list.rb deleted file mode 100644 index 9d1e7f99..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/api_key_list.rb +++ /dev/null @@ -1,276 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Response body format for the List API keys V1 REST request - class ApiKeyList - attr_accessor :context - - # The offset of the current page. - attr_accessor :offset - - # Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100 - attr_accessor :limit - - # Link to the first page. - attr_accessor :first - - # Link to the previous available page. If 'previous' property is not part of the response no previous page is available. - attr_accessor :previous - - # Link to the next available page. If 'next' property is not part of the response no next page is available. - attr_accessor :_next - - # List of API keys based on the query paramters and the page size. The apikeys array is always part of the response but might be empty depending on the query parameters values provided. - attr_accessor :apikeys - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'context' => :'context', - :'offset' => :'offset', - :'limit' => :'limit', - :'first' => :'first', - :'previous' => :'previous', - :'_next' => :'next', - :'apikeys' => :'apikeys' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'context' => :'ResponseContext', - :'offset' => :'Integer', - :'limit' => :'Integer', - :'first' => :'String', - :'previous' => :'String', - :'_next' => :'String', - :'apikeys' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::ApiKeyList` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::ApiKeyList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'context') - self.context = attributes[:'context'] - end - - if attributes.key?(:'offset') - self.offset = attributes[:'offset'] - end - - if attributes.key?(:'limit') - self.limit = attributes[:'limit'] - end - - if attributes.key?(:'first') - self.first = attributes[:'first'] - end - - if attributes.key?(:'previous') - self.previous = attributes[:'previous'] - end - - if attributes.key?(:'_next') - self._next = attributes[:'_next'] - end - - if attributes.key?(:'apikeys') - if (value = attributes[:'apikeys']).is_a?(Array) - self.apikeys = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @apikeys.nil? - invalid_properties.push('invalid value for "apikeys", apikeys cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @apikeys.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - context == o.context && - offset == o.offset && - limit == o.limit && - first == o.first && - previous == o.previous && - _next == o._next && - apikeys == o.apikeys - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [context, offset, limit, first, previous, _next, apikeys].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/create_api_key_request.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/create_api_key_request.rb deleted file mode 100644 index 00980239..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/create_api_key_request.rb +++ /dev/null @@ -1,270 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Input body parameters for the Create API key V1 REST request. - class CreateApiKeyRequest - # Name of the API key. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the API key. - attr_accessor :name - - # The optional description of the API key. The 'description' property is only available if a description was provided during a create of an API key. - attr_accessor :description - - # The iam_id that this API key authenticates. - attr_accessor :iam_id - - # The account ID of the API key. - attr_accessor :account_id - - # You can optionally passthrough the API key value for this API key. If passed, NO validation of that apiKey value is done, i.e. the value can be non-URL safe. If omitted, the API key management will create an URL safe opaque API key value. The value of the API key is checked for uniqueness. Please ensure enough variations when passing in this value. - attr_accessor :apikey - - # Send true or false to set whether the API key value is retrievable in the future by using the Get details of an API key request. If you create an API key for a user, you must specify `false` or omit the value. We don't allow storing of API keys for users. - attr_accessor :store_value - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'description' => :'description', - :'iam_id' => :'iam_id', - :'account_id' => :'account_id', - :'apikey' => :'apikey', - :'store_value' => :'store_value' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'description' => :'String', - :'iam_id' => :'String', - :'account_id' => :'String', - :'apikey' => :'String', - :'store_value' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::CreateApiKeyRequest` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::CreateApiKeyRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'iam_id') - self.iam_id = attributes[:'iam_id'] - end - - if attributes.key?(:'account_id') - self.account_id = attributes[:'account_id'] - end - - if attributes.key?(:'apikey') - self.apikey = attributes[:'apikey'] - end - - if attributes.key?(:'store_value') - self.store_value = attributes[:'store_value'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @iam_id.nil? - invalid_properties.push('invalid value for "iam_id", iam_id cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - return false if @iam_id.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - description == o.description && - iam_id == o.iam_id && - account_id == o.account_id && - apikey == o.apikey && - store_value == o.store_value - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, description, iam_id, account_id, apikey, store_value].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/create_service_id_request.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/create_service_id_request.rb deleted file mode 100644 index b4108531..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/create_service_id_request.rb +++ /dev/null @@ -1,261 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Input body parameters for the Create service ID V1 REST request. - class CreateServiceIdRequest - # ID of the account the service ID belongs to. - attr_accessor :account_id - - # Name of the Service Id. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the Service Id. - attr_accessor :name - - # The optional description of the Service Id. The 'description' property is only available if a description was provided during a create of a Service Id. - attr_accessor :description - - # Optional list of CRNs (string array) which point to the services connected to the service ID. - attr_accessor :unique_instance_crns - - attr_accessor :apikey - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'account_id' => :'account_id', - :'name' => :'name', - :'description' => :'description', - :'unique_instance_crns' => :'unique_instance_crns', - :'apikey' => :'apikey' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'account_id' => :'String', - :'name' => :'String', - :'description' => :'String', - :'unique_instance_crns' => :'Array', - :'apikey' => :'ApiKeyInsideCreateServiceIdRequest' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::CreateServiceIdRequest` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::CreateServiceIdRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'account_id') - self.account_id = attributes[:'account_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'unique_instance_crns') - if (value = attributes[:'unique_instance_crns']).is_a?(Array) - self.unique_instance_crns = value - end - end - - if attributes.key?(:'apikey') - self.apikey = attributes[:'apikey'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @account_id.nil? - invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @account_id.nil? - return false if @name.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - account_id == o.account_id && - name == o.name && - description == o.description && - unique_instance_crns == o.unique_instance_crns && - apikey == o.apikey - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [account_id, name, description, unique_instance_crns, apikey].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/enity_history_record.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/enity_history_record.rb deleted file mode 100644 index d7da6175..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/enity_history_record.rb +++ /dev/null @@ -1,292 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Response body format for an entity history record - class EnityHistoryRecord - # Timestamp when the action was triggered - attr_accessor :timestamp - - # IAM ID of the identity which triggered the action - attr_accessor :iam_id - - # Account of the identity which triggered the action - attr_accessor :iam_id_account - - # Action of the history entry - attr_accessor :action - - # Params of the history entry - attr_accessor :params - - # Message which summarizes the executed action - attr_accessor :message - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'timestamp' => :'timestamp', - :'iam_id' => :'iam_id', - :'iam_id_account' => :'iam_id_account', - :'action' => :'action', - :'params' => :'params', - :'message' => :'message' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'timestamp' => :'String', - :'iam_id' => :'String', - :'iam_id_account' => :'String', - :'action' => :'String', - :'params' => :'Array', - :'message' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::EnityHistoryRecord` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::EnityHistoryRecord`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'timestamp') - self.timestamp = attributes[:'timestamp'] - end - - if attributes.key?(:'iam_id') - self.iam_id = attributes[:'iam_id'] - end - - if attributes.key?(:'iam_id_account') - self.iam_id_account = attributes[:'iam_id_account'] - end - - if attributes.key?(:'action') - self.action = attributes[:'action'] - end - - if attributes.key?(:'params') - if (value = attributes[:'params']).is_a?(Array) - self.params = value - end - end - - if attributes.key?(:'message') - self.message = attributes[:'message'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @timestamp.nil? - invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.') - end - - if @iam_id.nil? - invalid_properties.push('invalid value for "iam_id", iam_id cannot be nil.') - end - - if @iam_id_account.nil? - invalid_properties.push('invalid value for "iam_id_account", iam_id_account cannot be nil.') - end - - if @action.nil? - invalid_properties.push('invalid value for "action", action cannot be nil.') - end - - if @params.nil? - invalid_properties.push('invalid value for "params", params cannot be nil.') - end - - if @message.nil? - invalid_properties.push('invalid value for "message", message cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @timestamp.nil? - return false if @iam_id.nil? - return false if @iam_id_account.nil? - return false if @action.nil? - return false if @params.nil? - return false if @message.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - timestamp == o.timestamp && - iam_id == o.iam_id && - iam_id_account == o.iam_id_account && - action == o.action && - params == o.params && - message == o.message - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [timestamp, iam_id, iam_id_account, action, params, message].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/error.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/error.rb deleted file mode 100644 index d173fa00..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/error.rb +++ /dev/null @@ -1,255 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Error information. - class Error - # Error code of the REST Exception. - attr_accessor :code - - # Error message code of the REST Exception. - attr_accessor :message_code - - # Error message of the REST Exception. Error messages are derived base on the input locale of the REST request and the available Message catalogs. Dynamic fallback to 'us-english' is happening if no message catalog is available for the provided input locale. - attr_accessor :message - - # Error details of the REST Exception. - attr_accessor :details - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'code' => :'code', - :'message_code' => :'message_code', - :'message' => :'message', - :'details' => :'details' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'code' => :'String', - :'message_code' => :'String', - :'message' => :'String', - :'details' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::Error` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::Error`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'code') - self.code = attributes[:'code'] - end - - if attributes.key?(:'message_code') - self.message_code = attributes[:'message_code'] - end - - if attributes.key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.key?(:'details') - self.details = attributes[:'details'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @code.nil? - invalid_properties.push('invalid value for "code", code cannot be nil.') - end - - if @message_code.nil? - invalid_properties.push('invalid value for "message_code", message_code cannot be nil.') - end - - if @message.nil? - invalid_properties.push('invalid value for "message", message cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @code.nil? - return false if @message_code.nil? - return false if @message.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - code == o.code && - message_code == o.message_code && - message == o.message && - details == o.details - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [code, message_code, message, details].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/exception_response.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/exception_response.rb deleted file mode 100644 index bf3a8b5d..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/exception_response.rb +++ /dev/null @@ -1,251 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Response body parameters in case of error situations. - class ExceptionResponse - attr_accessor :context - - # Error message code of the REST Exception. - attr_accessor :status_code - - # List of errors that occured. - attr_accessor :errors - - # Unique ID of the requst. - attr_accessor :trace - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'context' => :'context', - :'status_code' => :'status_code', - :'errors' => :'errors', - :'trace' => :'trace' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'context' => :'ResponseContext', - :'status_code' => :'String', - :'errors' => :'Array', - :'trace' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::ExceptionResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::ExceptionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'context') - self.context = attributes[:'context'] - end - - if attributes.key?(:'status_code') - self.status_code = attributes[:'status_code'] - end - - if attributes.key?(:'errors') - if (value = attributes[:'errors']).is_a?(Array) - self.errors = value - end - end - - if attributes.key?(:'trace') - self.trace = attributes[:'trace'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @status_code.nil? - invalid_properties.push('invalid value for "status_code", status_code cannot be nil.') - end - - if @errors.nil? - invalid_properties.push('invalid value for "errors", errors cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @status_code.nil? - return false if @errors.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - context == o.context && - status_code == o.status_code && - errors == o.errors && - trace == o.trace - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [context, status_code, errors, trace].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/exception_response_context.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/exception_response_context.rb deleted file mode 100644 index b24a8a16..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/exception_response_context.rb +++ /dev/null @@ -1,320 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Context fill with key properties for problem determination. - class ExceptionResponseContext - # The request ID of the inbound REST request. - attr_accessor :request_id - - # The request type of the inbound REST request. - attr_accessor :request_type - - # The user agent of the inbound REST request. - attr_accessor :user_agent - - # The URL of that cluster. - attr_accessor :url - - # The instance ID of the server instance processing the request. - attr_accessor :instance_id - - # The thread ID of the server instance processing the request. - attr_accessor :thread_id - - # The host of the server instance processing the request. - attr_accessor :host - - # The start time of the request. - attr_accessor :start_time - - # The finish time of the request. - attr_accessor :end_time - - # The elapsed time in msec. - attr_accessor :elapsed_time - - # The language used to present the error message. - attr_accessor :locale - - # The cluster name. - attr_accessor :cluster_name - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'request_id' => :'requestId', - :'request_type' => :'requestType', - :'user_agent' => :'userAgent', - :'url' => :'url', - :'instance_id' => :'instanceId', - :'thread_id' => :'threadId', - :'host' => :'host', - :'start_time' => :'startTime', - :'end_time' => :'endTime', - :'elapsed_time' => :'elapsedTime', - :'locale' => :'locale', - :'cluster_name' => :'clusterName' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'request_id' => :'String', - :'request_type' => :'String', - :'user_agent' => :'String', - :'url' => :'String', - :'instance_id' => :'String', - :'thread_id' => :'String', - :'host' => :'String', - :'start_time' => :'String', - :'end_time' => :'String', - :'elapsed_time' => :'String', - :'locale' => :'String', - :'cluster_name' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::ExceptionResponseContext` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::ExceptionResponseContext`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'request_id') - self.request_id = attributes[:'request_id'] - end - - if attributes.key?(:'request_type') - self.request_type = attributes[:'request_type'] - end - - if attributes.key?(:'user_agent') - self.user_agent = attributes[:'user_agent'] - end - - if attributes.key?(:'url') - self.url = attributes[:'url'] - end - - if attributes.key?(:'instance_id') - self.instance_id = attributes[:'instance_id'] - end - - if attributes.key?(:'thread_id') - self.thread_id = attributes[:'thread_id'] - end - - if attributes.key?(:'host') - self.host = attributes[:'host'] - end - - if attributes.key?(:'start_time') - self.start_time = attributes[:'start_time'] - end - - if attributes.key?(:'end_time') - self.end_time = attributes[:'end_time'] - end - - if attributes.key?(:'elapsed_time') - self.elapsed_time = attributes[:'elapsed_time'] - end - - if attributes.key?(:'locale') - self.locale = attributes[:'locale'] - end - - if attributes.key?(:'cluster_name') - self.cluster_name = attributes[:'cluster_name'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - request_id == o.request_id && - request_type == o.request_type && - user_agent == o.user_agent && - url == o.url && - instance_id == o.instance_id && - thread_id == o.thread_id && - host == o.host && - start_time == o.start_time && - end_time == o.end_time && - elapsed_time == o.elapsed_time && - locale == o.locale && - cluster_name == o.cluster_name - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [request_id, request_type, user_agent, url, instance_id, thread_id, host, start_time, end_time, elapsed_time, locale, cluster_name].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object.rb deleted file mode 100644 index 4a814f42..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object.rb +++ /dev/null @@ -1,229 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - class InlineObject - # Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. - attr_accessor :grant_type - - # The value of the api key - attr_accessor :apikey - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'grant_type' => :'grant_type', - :'apikey' => :'apikey' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'grant_type' => :'String', - :'apikey' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::InlineObject` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::InlineObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'grant_type') - self.grant_type = attributes[:'grant_type'] - end - - if attributes.key?(:'apikey') - self.apikey = attributes[:'apikey'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @grant_type.nil? - invalid_properties.push('invalid value for "grant_type", grant_type cannot be nil.') - end - - if @apikey.nil? - invalid_properties.push('invalid value for "apikey", apikey cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @grant_type.nil? - return false if @apikey.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - grant_type == o.grant_type && - apikey == o.apikey - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [grant_type, apikey].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object1.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object1.rb deleted file mode 100644 index 1440a5d4..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object1.rb +++ /dev/null @@ -1,254 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - class InlineObject1 - # Grant type for this API call. You must set the grant type to `password`. - attr_accessor :grant_type - - # The value of the username - attr_accessor :username - - # The value of the password - attr_accessor :password - - # The 32 character identifier of the account. Specify this parameter to get an account-specific IAM token. IBM Cloud APIs require that IAM tokens are account-specific. - attr_accessor :account - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'grant_type' => :'grant_type', - :'username' => :'username', - :'password' => :'password', - :'account' => :'account' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'grant_type' => :'String', - :'username' => :'String', - :'password' => :'String', - :'account' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::InlineObject1` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::InlineObject1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'grant_type') - self.grant_type = attributes[:'grant_type'] - end - - if attributes.key?(:'username') - self.username = attributes[:'username'] - end - - if attributes.key?(:'password') - self.password = attributes[:'password'] - end - - if attributes.key?(:'account') - self.account = attributes[:'account'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @grant_type.nil? - invalid_properties.push('invalid value for "grant_type", grant_type cannot be nil.') - end - - if @username.nil? - invalid_properties.push('invalid value for "username", username cannot be nil.') - end - - if @password.nil? - invalid_properties.push('invalid value for "password", password cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @grant_type.nil? - return false if @username.nil? - return false if @password.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - grant_type == o.grant_type && - username == o.username && - password == o.password && - account == o.account - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [grant_type, username, password, account].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object2.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object2.rb deleted file mode 100644 index bf001614..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object2.rb +++ /dev/null @@ -1,244 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - class InlineObject2 - # Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:iam-authz`. - attr_accessor :grant_type - - # The IAM access token of the identity that has the appropriate authorization to create an IAM access token for a given resource. - attr_accessor :access_token - - # The IAM ID of the IAM access token identity that should be created. The desired_iam_id identifies a resource identity. The IAM ID consists of the prefix crn- and the CRN of the target identity, e.g. crn-crn:v1:bluemix:public:cloud-object-storage:global:a/59bcbfa6ea2f006b4ed7094c1a08dcdd:1a0ec336-f391-4091-a6fb-5e084a4c56f4::. - attr_accessor :desired_iam_id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'grant_type' => :'grant_type', - :'access_token' => :'access_token', - :'desired_iam_id' => :'desired_iam_id' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'grant_type' => :'String', - :'access_token' => :'String', - :'desired_iam_id' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::InlineObject2` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::InlineObject2`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'grant_type') - self.grant_type = attributes[:'grant_type'] - end - - if attributes.key?(:'access_token') - self.access_token = attributes[:'access_token'] - end - - if attributes.key?(:'desired_iam_id') - self.desired_iam_id = attributes[:'desired_iam_id'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @grant_type.nil? - invalid_properties.push('invalid value for "grant_type", grant_type cannot be nil.') - end - - if @access_token.nil? - invalid_properties.push('invalid value for "access_token", access_token cannot be nil.') - end - - if @desired_iam_id.nil? - invalid_properties.push('invalid value for "desired_iam_id", desired_iam_id cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @grant_type.nil? - return false if @access_token.nil? - return false if @desired_iam_id.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - grant_type == o.grant_type && - access_token == o.access_token && - desired_iam_id == o.desired_iam_id - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [grant_type, access_token, desired_iam_id].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object3.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object3.rb deleted file mode 100644 index 8a7a302a..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/inline_object3.rb +++ /dev/null @@ -1,269 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - class InlineObject3 - # Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. - attr_accessor :grant_type - - # The value of the API key. - attr_accessor :apikey - - # Either 'delegated_refresh_token' to receive a delegated refresh token only, or 'cloud_iam delegated_refresh_token' to receive both an IAM access token and a delegated refresh token in one API call. - attr_accessor :response_type - - # A comma separated list of one or more client IDs that will be able to consume the delegated refresh token. The service that accepts a delegated refresh token as API parameter must expose its client ID to allow this API call. The receiver of the delegated refresh token will be able to use the refresh token until it expires. - attr_accessor :receiver_client_ids - - # Expiration in seconds until the delegated refresh token must be consumed by the receiver client IDs. After the expiration, no client ID can consume the delegated refresh token, even if the life time of the refresh token inside is still not expired. The default, if not specified, is 518,400 seconds which corresponds to 6 days. - attr_accessor :delegated_refresh_token_expiry - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'grant_type' => :'grant_type', - :'apikey' => :'apikey', - :'response_type' => :'response_type', - :'receiver_client_ids' => :'receiver_client_ids', - :'delegated_refresh_token_expiry' => :'delegated_refresh_token_expiry' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'grant_type' => :'String', - :'apikey' => :'String', - :'response_type' => :'String', - :'receiver_client_ids' => :'String', - :'delegated_refresh_token_expiry' => :'Integer' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::InlineObject3` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::InlineObject3`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'grant_type') - self.grant_type = attributes[:'grant_type'] - end - - if attributes.key?(:'apikey') - self.apikey = attributes[:'apikey'] - end - - if attributes.key?(:'response_type') - self.response_type = attributes[:'response_type'] - end - - if attributes.key?(:'receiver_client_ids') - self.receiver_client_ids = attributes[:'receiver_client_ids'] - end - - if attributes.key?(:'delegated_refresh_token_expiry') - self.delegated_refresh_token_expiry = attributes[:'delegated_refresh_token_expiry'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @grant_type.nil? - invalid_properties.push('invalid value for "grant_type", grant_type cannot be nil.') - end - - if @apikey.nil? - invalid_properties.push('invalid value for "apikey", apikey cannot be nil.') - end - - if @response_type.nil? - invalid_properties.push('invalid value for "response_type", response_type cannot be nil.') - end - - if @receiver_client_ids.nil? - invalid_properties.push('invalid value for "receiver_client_ids", receiver_client_ids cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @grant_type.nil? - return false if @apikey.nil? - return false if @response_type.nil? - return false if @receiver_client_ids.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - grant_type == o.grant_type && - apikey == o.apikey && - response_type == o.response_type && - receiver_client_ids == o.receiver_client_ids && - delegated_refresh_token_expiry == o.delegated_refresh_token_expiry - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [grant_type, apikey, response_type, receiver_client_ids, delegated_refresh_token_expiry].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/mfa_requirements_response.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/mfa_requirements_response.rb deleted file mode 100644 index 907704d2..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/mfa_requirements_response.rb +++ /dev/null @@ -1,245 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Response properties for MFA requirements. - class MFARequirementsResponse - # MFA error. - attr_accessor :error - - # MFA Code. - attr_accessor :code - - # MFA AuthorizationToken. - attr_accessor :authorization_token - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'error' => :'error', - :'code' => :'code', - :'authorization_token' => :'authorizationToken' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'error' => :'String', - :'code' => :'String', - :'authorization_token' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::MFARequirementsResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::MFARequirementsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'error') - self.error = attributes[:'error'] - end - - if attributes.key?(:'code') - self.code = attributes[:'code'] - end - - if attributes.key?(:'authorization_token') - self.authorization_token = attributes[:'authorization_token'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @error.nil? - invalid_properties.push('invalid value for "error", error cannot be nil.') - end - - if @code.nil? - invalid_properties.push('invalid value for "code", code cannot be nil.') - end - - if @authorization_token.nil? - invalid_properties.push('invalid value for "authorization_token", authorization_token cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @error.nil? - return false if @code.nil? - return false if @authorization_token.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - error == o.error && - code == o.code && - authorization_token == o.authorization_token - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [error, code, authorization_token].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/oidc_exception_response.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/oidc_exception_response.rb deleted file mode 100644 index 75d2cddf..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/oidc_exception_response.rb +++ /dev/null @@ -1,258 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Response body parameters in case of oidc error situations. - class OidcExceptionResponse - attr_accessor :context - - # Error message code of the REST Exception. - attr_accessor :error_code - - # Error message of the REST Exception. Error messages are derived base on the input locale of the REST request and the available Message catalogs. Dynamic fallback to 'us-english' is happening if no message catalog is available for the provided input locale. - attr_accessor :error_message - - # Error details of the REST Exception. - attr_accessor :error_details - - attr_accessor :requirements - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'context' => :'context', - :'error_code' => :'errorCode', - :'error_message' => :'errorMessage', - :'error_details' => :'errorDetails', - :'requirements' => :'requirements' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'context' => :'ExceptionResponseContext', - :'error_code' => :'String', - :'error_message' => :'String', - :'error_details' => :'String', - :'requirements' => :'MFARequirementsResponse' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::OidcExceptionResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::OidcExceptionResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'context') - self.context = attributes[:'context'] - end - - if attributes.key?(:'error_code') - self.error_code = attributes[:'error_code'] - end - - if attributes.key?(:'error_message') - self.error_message = attributes[:'error_message'] - end - - if attributes.key?(:'error_details') - self.error_details = attributes[:'error_details'] - end - - if attributes.key?(:'requirements') - self.requirements = attributes[:'requirements'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @error_code.nil? - invalid_properties.push('invalid value for "error_code", error_code cannot be nil.') - end - - if @error_message.nil? - invalid_properties.push('invalid value for "error_message", error_message cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @error_code.nil? - return false if @error_message.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - context == o.context && - error_code == o.error_code && - error_message == o.error_message && - error_details == o.error_details && - requirements == o.requirements - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [context, error_code, error_message, error_details, requirements].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/response_context.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/response_context.rb deleted file mode 100644 index c1885fb7..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/response_context.rb +++ /dev/null @@ -1,310 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Context with key properties for problem determination. - class ResponseContext - # The transaction ID of the inbound REST request. - attr_accessor :transaction_id - - # The operation of the inbound REST request. - attr_accessor :operation - - # The user agent of the inbound REST request. - attr_accessor :user_agent - - # The URL of that cluster. - attr_accessor :url - - # The instance ID of the server instance processing the request. - attr_accessor :instance_id - - # The thread ID of the server instance processing the request. - attr_accessor :thread_id - - # The host of the server instance processing the request. - attr_accessor :host - - # The start time of the request. - attr_accessor :start_time - - # The finish time of the request. - attr_accessor :end_time - - # The elapsed time in msec. - attr_accessor :elapsed_time - - # The cluster name. - attr_accessor :cluster_name - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'transaction_id' => :'transaction_id', - :'operation' => :'operation', - :'user_agent' => :'user_agent', - :'url' => :'url', - :'instance_id' => :'instance_id', - :'thread_id' => :'thread_id', - :'host' => :'host', - :'start_time' => :'start_time', - :'end_time' => :'end_time', - :'elapsed_time' => :'elapsed_time', - :'cluster_name' => :'cluster_name' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'transaction_id' => :'String', - :'operation' => :'String', - :'user_agent' => :'String', - :'url' => :'String', - :'instance_id' => :'String', - :'thread_id' => :'String', - :'host' => :'String', - :'start_time' => :'String', - :'end_time' => :'String', - :'elapsed_time' => :'String', - :'cluster_name' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::ResponseContext` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::ResponseContext`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'transaction_id') - self.transaction_id = attributes[:'transaction_id'] - end - - if attributes.key?(:'operation') - self.operation = attributes[:'operation'] - end - - if attributes.key?(:'user_agent') - self.user_agent = attributes[:'user_agent'] - end - - if attributes.key?(:'url') - self.url = attributes[:'url'] - end - - if attributes.key?(:'instance_id') - self.instance_id = attributes[:'instance_id'] - end - - if attributes.key?(:'thread_id') - self.thread_id = attributes[:'thread_id'] - end - - if attributes.key?(:'host') - self.host = attributes[:'host'] - end - - if attributes.key?(:'start_time') - self.start_time = attributes[:'start_time'] - end - - if attributes.key?(:'end_time') - self.end_time = attributes[:'end_time'] - end - - if attributes.key?(:'elapsed_time') - self.elapsed_time = attributes[:'elapsed_time'] - end - - if attributes.key?(:'cluster_name') - self.cluster_name = attributes[:'cluster_name'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - transaction_id == o.transaction_id && - operation == o.operation && - user_agent == o.user_agent && - url == o.url && - instance_id == o.instance_id && - thread_id == o.thread_id && - host == o.host && - start_time == o.start_time && - end_time == o.end_time && - elapsed_time == o.elapsed_time && - cluster_name == o.cluster_name - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [transaction_id, operation, user_agent, url, instance_id, thread_id, host, start_time, end_time, elapsed_time, cluster_name].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/service_id.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/service_id.rb deleted file mode 100644 index b48ab351..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/service_id.rb +++ /dev/null @@ -1,377 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Response body format for service ID V1 REST requests. - class ServiceId - attr_accessor :context - - # Unique identifier of this Service Id. - attr_accessor :id - - # Cloud wide identifier for identities of this service ID. - attr_accessor :iam_id - - # Version of the service ID details object. You need to specify this value when updating the service ID to avoid stale updates. - attr_accessor :entity_tag - - # Cloud Resource Name of the item. Example Cloud Resource Name: 'crn:v1:bluemix:public:iam-identity:us-south:a/myaccount::serviceid:1234-5678-9012' - attr_accessor :crn - - # The service ID cannot be changed if set to true. - attr_accessor :locked - - # If set contains a date time string of the creation date in ISO format - attr_accessor :created_at - - # If set contains a date time string of the last modification date in ISO format - attr_accessor :modified_at - - # ID of the account the service ID belongs to. - attr_accessor :account_id - - # Name of the Service Id. The name is not checked for uniqueness. Therefore multiple names with the same value can exist. Access is done via the UUID of the Service Id. - attr_accessor :name - - # The optional description of the Service Id. The 'description' property is only available if a description was provided during a create of a Service Id. - attr_accessor :description - - # Optional list of CRNs (string array) which point to the services connected to the service ID. - attr_accessor :unique_instance_crns - - # History of the Service ID - attr_accessor :history - - attr_accessor :apikey - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'context' => :'context', - :'id' => :'id', - :'iam_id' => :'iam_id', - :'entity_tag' => :'entity_tag', - :'crn' => :'crn', - :'locked' => :'locked', - :'created_at' => :'created_at', - :'modified_at' => :'modified_at', - :'account_id' => :'account_id', - :'name' => :'name', - :'description' => :'description', - :'unique_instance_crns' => :'unique_instance_crns', - :'history' => :'history', - :'apikey' => :'apikey' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'context' => :'ResponseContext', - :'id' => :'String', - :'iam_id' => :'String', - :'entity_tag' => :'String', - :'crn' => :'String', - :'locked' => :'Boolean', - :'created_at' => :'DateTime', - :'modified_at' => :'DateTime', - :'account_id' => :'String', - :'name' => :'String', - :'description' => :'String', - :'unique_instance_crns' => :'Array', - :'history' => :'Array', - :'apikey' => :'ApiKey' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::ServiceId` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::ServiceId`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'context') - self.context = attributes[:'context'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'iam_id') - self.iam_id = attributes[:'iam_id'] - end - - if attributes.key?(:'entity_tag') - self.entity_tag = attributes[:'entity_tag'] - end - - if attributes.key?(:'crn') - self.crn = attributes[:'crn'] - end - - if attributes.key?(:'locked') - self.locked = attributes[:'locked'] - end - - if attributes.key?(:'created_at') - self.created_at = attributes[:'created_at'] - end - - if attributes.key?(:'modified_at') - self.modified_at = attributes[:'modified_at'] - end - - if attributes.key?(:'account_id') - self.account_id = attributes[:'account_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'unique_instance_crns') - if (value = attributes[:'unique_instance_crns']).is_a?(Array) - self.unique_instance_crns = value - end - end - - if attributes.key?(:'history') - if (value = attributes[:'history']).is_a?(Array) - self.history = value - end - end - - if attributes.key?(:'apikey') - self.apikey = attributes[:'apikey'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') - end - - if @iam_id.nil? - invalid_properties.push('invalid value for "iam_id", iam_id cannot be nil.') - end - - if @crn.nil? - invalid_properties.push('invalid value for "crn", crn cannot be nil.') - end - - if @locked.nil? - invalid_properties.push('invalid value for "locked", locked cannot be nil.') - end - - if @account_id.nil? - invalid_properties.push('invalid value for "account_id", account_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @apikey.nil? - invalid_properties.push('invalid value for "apikey", apikey cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @id.nil? - return false if @iam_id.nil? - return false if @crn.nil? - return false if @locked.nil? - return false if @account_id.nil? - return false if @name.nil? - return false if @apikey.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - context == o.context && - id == o.id && - iam_id == o.iam_id && - entity_tag == o.entity_tag && - crn == o.crn && - locked == o.locked && - created_at == o.created_at && - modified_at == o.modified_at && - account_id == o.account_id && - name == o.name && - description == o.description && - unique_instance_crns == o.unique_instance_crns && - history == o.history && - apikey == o.apikey - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [context, id, iam_id, entity_tag, crn, locked, created_at, modified_at, account_id, name, description, unique_instance_crns, history, apikey].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/service_id_list.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/service_id_list.rb deleted file mode 100644 index 339a0c5a..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/service_id_list.rb +++ /dev/null @@ -1,276 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Response body format for the list service ID V1 REST request - class ServiceIdList - attr_accessor :context - - # The offset of the current page. - attr_accessor :offset - - # Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100 - attr_accessor :limit - - # Link to the first page. - attr_accessor :first - - # Link to the previous available page. If 'previous' property is not part of the response no previous page is available. - attr_accessor :previous - - # Link to the next available page. If 'next' property is not part of the response no next page is available. - attr_accessor :_next - - # List of service IDs based on the query paramters and the page size. The service IDs array is always part of the response but might be empty depending on the query parameter values provided. - attr_accessor :serviceids - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'context' => :'context', - :'offset' => :'offset', - :'limit' => :'limit', - :'first' => :'first', - :'previous' => :'previous', - :'_next' => :'next', - :'serviceids' => :'serviceids' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'context' => :'ResponseContext', - :'offset' => :'Integer', - :'limit' => :'Integer', - :'first' => :'String', - :'previous' => :'String', - :'_next' => :'String', - :'serviceids' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::ServiceIdList` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::ServiceIdList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'context') - self.context = attributes[:'context'] - end - - if attributes.key?(:'offset') - self.offset = attributes[:'offset'] - end - - if attributes.key?(:'limit') - self.limit = attributes[:'limit'] - end - - if attributes.key?(:'first') - self.first = attributes[:'first'] - end - - if attributes.key?(:'previous') - self.previous = attributes[:'previous'] - end - - if attributes.key?(:'_next') - self._next = attributes[:'_next'] - end - - if attributes.key?(:'serviceids') - if (value = attributes[:'serviceids']).is_a?(Array) - self.serviceids = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @serviceids.nil? - invalid_properties.push('invalid value for "serviceids", serviceids cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @serviceids.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - context == o.context && - offset == o.offset && - limit == o.limit && - first == o.first && - previous == o.previous && - _next == o._next && - serviceids == o.serviceids - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [context, offset, limit, first, previous, _next, serviceids].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/token_response.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/token_response.rb deleted file mode 100644 index f58a8852..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/token_response.rb +++ /dev/null @@ -1,260 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Response body for POST /identity/token. - class TokenResponse - # The IAM access token that can be used to invoke various IBM Cloud APIs. Use this token with the prefix Bearer in the HTTP header Authorization for invocations of IAM compatible APIs. - attr_accessor :access_token - - # (optional) A refresh token that can be used to get a new IAM access token if that token is expired. When using the default client (no basic authorization header) as described in this documentation, this refresh_token cannot be used to retrieve a new IAM access token. When the IAM access token is about to be expired, use the API key to create a new access token. - attr_accessor :refresh_token - - # (optional) A delegated refresh token that can only be consumed by the clients that have been specified in the API call as 'receiver_client_ids' - attr_accessor :delegated_refresh_token - - # The type of the token. Currently, only Bearer is returned. - attr_accessor :token_type - - # Number of seconds until the IAM access token will expire. - attr_accessor :expires_in - - # Number of seconds counted since January 1st, 1970, until the IAM access token will expire. - attr_accessor :expiration - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'access_token' => :'access_token', - :'refresh_token' => :'refresh_token', - :'delegated_refresh_token' => :'delegated_refresh_token', - :'token_type' => :'token_type', - :'expires_in' => :'expires_in', - :'expiration' => :'expiration' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'access_token' => :'String', - :'refresh_token' => :'String', - :'delegated_refresh_token' => :'String', - :'token_type' => :'String', - :'expires_in' => :'Integer', - :'expiration' => :'Integer' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::TokenResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::TokenResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'access_token') - self.access_token = attributes[:'access_token'] - end - - if attributes.key?(:'refresh_token') - self.refresh_token = attributes[:'refresh_token'] - end - - if attributes.key?(:'delegated_refresh_token') - self.delegated_refresh_token = attributes[:'delegated_refresh_token'] - end - - if attributes.key?(:'token_type') - self.token_type = attributes[:'token_type'] - end - - if attributes.key?(:'expires_in') - self.expires_in = attributes[:'expires_in'] - end - - if attributes.key?(:'expiration') - self.expiration = attributes[:'expiration'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - access_token == o.access_token && - refresh_token == o.refresh_token && - delegated_refresh_token == o.delegated_refresh_token && - token_type == o.token_type && - expires_in == o.expires_in && - expiration == o.expiration - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [access_token, refresh_token, delegated_refresh_token, token_type, expires_in, expiration].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/update_api_key_request.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/update_api_key_request.rb deleted file mode 100644 index 5eb0c585..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/update_api_key_request.rb +++ /dev/null @@ -1,220 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Input body parameters for the Update API key V1 REST request - class UpdateApiKeyRequest - # The name of the API key to update. If specified in the request the parameter must not be empty. The name is not checked for uniqueness. Failure to this will result in an Error condition. - attr_accessor :name - - # The description of the API key to update. If specified an empty description will clear the description of the API key. If a non empty value is provided the API key will be updated. - attr_accessor :description - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'description' => :'description' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'description' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::UpdateApiKeyRequest` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::UpdateApiKeyRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - description == o.description - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, description].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/update_service_id_request.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/update_service_id_request.rb deleted file mode 100644 index 81c44feb..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/models/update_service_id_request.rb +++ /dev/null @@ -1,232 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudIam - # Input body parameters for the Update service ID V1 REST request - class UpdateServiceIdRequest - # The name of the service ID to update. If specified in the request the parameter must not be empty. The name is not checked for uniqueness. Failure to this will result in an Error condition. - attr_accessor :name - - # The description of the service ID to update. If specified an empty description will clear the description of the service ID. If an non empty value is provided the service ID will be updated. - attr_accessor :description - - # List of CRNs which point to the services connected to this service ID. If specified an empty list will clear all existing unique instance crns of the service ID. - attr_accessor :unique_instance_crns - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'description' => :'description', - :'unique_instance_crns' => :'unique_instance_crns' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'description' => :'String', - :'unique_instance_crns' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudIam::UpdateServiceIdRequest` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudIam::UpdateServiceIdRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'unique_instance_crns') - if (value = attributes[:'unique_instance_crns']).is_a?(Array) - self.unique_instance_crns = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - description == o.description && - unique_instance_crns == o.unique_instance_crns - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, description, unique_instance_crns].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudIam.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/version.rb b/gems/ibm_cloud_iam/lib/ibm_cloud_iam/version.rb deleted file mode 100644 index b16a12ef..00000000 --- a/gems/ibm_cloud_iam/lib/ibm_cloud_iam/version.rb +++ /dev/null @@ -1,15 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -module IbmCloudIam - VERSION = '1.0.1' -end diff --git a/gems/ibm_cloud_iam/spec/api/identity_operations_api_spec.rb b/gems/ibm_cloud_iam/spec/api/identity_operations_api_spec.rb deleted file mode 100644 index 8eed4988..00000000 --- a/gems/ibm_cloud_iam/spec/api/identity_operations_api_spec.rb +++ /dev/null @@ -1,253 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudIam::IdentityOperationsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'IdentityOperationsApi' do - before do - # run before each test - @api_instance = IbmCloudIam::IdentityOperationsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of IdentityOperationsApi' do - it 'should create an instance of IdentityOperationsApi' do - expect(@api_instance).to be_instance_of(IbmCloudIam::IdentityOperationsApi) - end - end - - # unit tests for create_api_key - # Create an API key - # Creates an API key for a UserID or service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param create_api_key_request Request to create an API key - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @option opts [String] :entity_lock Indicates if the API key is locked for further write operations. False by default. - # @return [ApiKey] - describe 'create_api_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for create_service_id - # Create a service ID - # Creates a service ID for an IBM Cloud account. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param create_service_id_request Request to create a service ID - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @option opts [String] :entity_lock Indicates if the service ID is locked for further write operations. False by default. - # @return [ServiceId] - describe 'create_service_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_api_key - # Deletes an API key - # Deletes an API key. Existing tokens will remain valid until expired. Refresh tokens will not work any more for this API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - describe 'delete_api_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_service_id - # Deletes a service ID and associated API keys - # Deletes a service ID and all API keys associated to it. Before deleting the service ID, all associated API keys are deleted. In case a Delete Conflict (status code 409) a retry of the request may help as the service ID is only deleted if the associated API keys were successfully deleted before. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - describe 'delete_service_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_api_key - # Get details of an API key - # Returns the details of an API key. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :include_history Defines if the entity history is included in the response. - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ApiKey] - describe 'get_api_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_api_keys_details - # Get details of an API key by its value - # Returns the details of an API key by its value. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param [Hash] opts the optional parameters - # @option opts [String] :iam_api_key API key value. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ApiKey] - describe 'get_api_keys_details test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_service_id - # Get details of a service ID - # Returns the details of a service ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response. - # @return [ServiceId] - describe 'get_service_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_api_keys - # Get API keys for a given service or user IAM ID and account ID. - # Returns the list of API key details for a given service or user IAM ID and account ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Account ID of the API keys(s) to query. If a service IAM ID is specified in iam_id then account_id must match the account of the IAM ID. If a user IAM ID is specified in iam_id then then account_id must match the account of the Authorization token. - # @option opts [String] :iam_id IAM ID of the API key(s) to be queried. The IAM ID may be that of a user or a service. For a user IAM ID iam_id must match the Authorization token. - # @option opts [Integer] :pagesize Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. - # @option opts [String] :pagetoken Optional Prev or Next page token returned from a previous query execution. Default is start with first page. - # @option opts [String] :scope Optional parameter to define the scope of the queried API Keys. Can be 'entity' (default) or 'account'. - # @option opts [String] :type Optional parameter to filter the type of the queried API Keys. Can be 'user' or 'serviceid'. - # @option opts [String] :sort Optional sort property, valid values are name, description, created_at and created_by. If specified, the items are sorted by the value of this property. - # @option opts [String] :order Optional sort order, valid values are asc and desc. Default: asc. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response. - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ApiKeyList] - describe 'list_api_keys test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_service_ids - # List service IDs - # Returns a list of service IDs. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param [Hash] opts the optional parameters - # @option opts [String] :account_id Account ID of the service ID(s) to query. This parameter is required (unless using a pagetoken). - # @option opts [String] :name Name of the service ID(s) to query. Optional.20 items per page. Valid range is 1 to 100. - # @option opts [Integer] :pagesize Optional size of a single page. Default is 20 items per page. Valid range is 1 to 100. - # @option opts [String] :pagetoken Optional Prev or Next page token returned from a previous query execution. Default is start with first page. - # @option opts [String] :sort Optional sort property, valid values are name, description, created_at and modified_at. If specified, the items are sorted by the value of this property. - # @option opts [String] :order Optional sort order, valid values are asc and desc. Default: asc. - # @option opts [Boolean] :include_history Defines if the entity history is included in the response - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ServiceIdList] - describe 'list_service_ids test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for lock_api_key - # Lock the API key - # Locks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - describe 'lock_api_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for lock_service_id - # Lock the service ID - # Locks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ServiceId] - describe 'lock_service_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for unlock_api_key - # Unlock the API key - # Unlocks an API key by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id Unique ID of the API key. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [nil] - describe 'unlock_api_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for unlock_service_id - # Unlock the service ID - # Unlocks a service ID by ID. Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. In case of service IDs and their API keys, a user must be either an account owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs of the entity. - # @param id Unique ID of the service ID. - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ServiceId] - describe 'unlock_service_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for update_api_key - # Updates an API key - # Updates properties of an API key. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update an API key, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id Unique ID of the API key to be updated. - # @param if_match Version of the API key to be updated. Specify the version that you retrieved when reading the API key. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. - # @param update_api_key_request Request to update an API key - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ApiKey] - describe 'update_api_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for update_service_id - # Update service ID - # Updates properties of a service ID. This does NOT affect existing access tokens. Their token content will stay unchanged until the access token is refreshed. To update a service ID, pass the property to be modified. To delete one property's value, pass the property with an empty value \"\".Users can manage user API keys for themself, or service ID API keys for service IDs that are bound to an entity they have access to. - # @param id Unique ID of the service ID to be updated. - # @param if_match Version of the service ID to be updated. Specify the version that you retrieved as entity_tag (ETag header) when reading the service ID. This value helps identifying parallel usage of this API. Pass * to indicate to update any version available. This might result in stale updates. - # @param update_service_id_request Request to update a service ID - # @param [Hash] opts the optional parameters - # @option opts [String] :authorization Authorization Token used for the request. The supported token type is a Cloud IAM Access Token. If the token is omitted the request will fail with BXNIM0308E: 'No authorization header found'. Please make sure that the provided token has the required authority for the request. - # @return [ServiceId] - describe 'update_service_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/api/token_operations_api_spec.rb b/gems/ibm_cloud_iam/spec/api/token_operations_api_spec.rb deleted file mode 100644 index ec84d433..00000000 --- a/gems/ibm_cloud_iam/spec/api/token_operations_api_spec.rb +++ /dev/null @@ -1,94 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudIam::TokenOperationsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'TokenOperationsApi' do - before do - # run before each test - @api_instance = IbmCloudIam::TokenOperationsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of TokenOperationsApi' do - it 'should create an instance of TokenOperationsApi' do - expect(@api_instance).to be_instance_of(IbmCloudIam::TokenOperationsApi) - end - end - - # unit tests for get_token_api_key - # Create an IAM access token for a user or service ID using an API key. - # Creates a non-opaque access token for an API key. - # @param grant_type Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. - # @param apikey The value of the api key - # @param [Hash] opts the optional parameters - # @return [TokenResponse] - describe 'get_token_api_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_token_api_key_delegated_refresh_token - # Create an IAM access token and delegated refresh token for a user or service ID. - # Creates a non-opaque access token and a delegated refresh token for an API key. - # @param grant_type Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:apikey`. - # @param apikey The value of the API key. - # @param response_type Either 'delegated_refresh_token' to receive a delegated refresh token only, or 'cloud_iam delegated_refresh_token' to receive both an IAM access token and a delegated refresh token in one API call. - # @param receiver_client_ids A comma separated list of one or more client IDs that will be able to consume the delegated refresh token. The service that accepts a delegated refresh token as API parameter must expose its client ID to allow this API call. The receiver of the delegated refresh token will be able to use the refresh token until it expires. - # @param [Hash] opts the optional parameters - # @option opts [Integer] :delegated_refresh_token_expiry Expiration in seconds until the delegated refresh token must be consumed by the receiver client IDs. After the expiration, no client ID can consume the delegated refresh token, even if the life time of the refresh token inside is still not expired. The default, if not specified, is 518,400 seconds which corresponds to 6 days. - # @return [TokenResponse] - describe 'get_token_api_key_delegated_refresh_token test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_token_iam_authz - # Create an IAM access token based on an authorization policy. - # Creates a non-opaque access token, if an appropriate authorization policy is in place. This kind of IAM access token is typically used for access between services. - # @param grant_type Grant type for this API call. You must set the grant type to `urn:ibm:params:oauth:grant-type:iam-authz`. - # @param access_token The IAM access token of the identity that has the appropriate authorization to create an IAM access token for a given resource. - # @param desired_iam_id The IAM ID of the IAM access token identity that should be created. The desired_iam_id identifies a resource identity. The IAM ID consists of the prefix crn- and the CRN of the target identity, e.g. crn-crn:v1:bluemix:public:cloud-object-storage:global:a/59bcbfa6ea2f006b4ed7094c1a08dcdd:1a0ec336-f391-4091-a6fb-5e084a4c56f4::. - # @param [Hash] opts the optional parameters - # @return [TokenResponse] - describe 'get_token_iam_authz test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_token_password - # Create an IAM access token for a user using username / password credentials and an optional account identifier. - # Creates a non-opaque access token for a username and password. To be able to call IBM Cloud APIs, the token must be made account-specific. For this purpose, also pass the 32 character long identifier for your account in the API call. This API call is possible only for non-federated IBMid users. - # @param authorization Basic Authorization Header containing a valid client ID and secret. If this header is omitted the request fails with BXNIM0308E: 'No authorization header found'. You can use the client ID and secret that is used by the IBM Cloud CLI: `bx / bx` - # @param grant_type Grant type for this API call. You must set the grant type to `password`. - # @param username The value of the username - # @param password The value of the password - # @param [Hash] opts the optional parameters - # @option opts [String] :account The 32 character identifier of the account. Specify this parameter to get an account-specific IAM token. IBM Cloud APIs require that IAM tokens are account-specific. - # @return [TokenResponse] - describe 'get_token_password test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/api_client_spec.rb b/gems/ibm_cloud_iam/spec/api_client_spec.rb deleted file mode 100644 index 12807615..00000000 --- a/gems/ibm_cloud_iam/spec/api_client_spec.rb +++ /dev/null @@ -1,226 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' - -describe IbmCloudIam::ApiClient do - context 'initialization' do - context 'URL stuff' do - context 'host' do - it 'removes http from host' do - IbmCloudIam.configure { |c| c.host = 'http://example.com' } - expect(IbmCloudIam::Configuration.default.host).to eq('example.com') - end - - it 'removes https from host' do - IbmCloudIam.configure { |c| c.host = 'https://wookiee.com' } - expect(IbmCloudIam::ApiClient.default.config.host).to eq('wookiee.com') - end - - it 'removes trailing path from host' do - IbmCloudIam.configure { |c| c.host = 'hobo.com/v4' } - expect(IbmCloudIam::Configuration.default.host).to eq('hobo.com') - end - end - - context 'base_path' do - it "prepends a slash to base_path" do - IbmCloudIam.configure { |c| c.base_path = 'v4/dog' } - expect(IbmCloudIam::Configuration.default.base_path).to eq('/v4/dog') - end - - it "doesn't prepend a slash if one is already there" do - IbmCloudIam.configure { |c| c.base_path = '/v4/dog' } - expect(IbmCloudIam::Configuration.default.base_path).to eq('/v4/dog') - end - - it "ends up as a blank string if nil" do - IbmCloudIam.configure { |c| c.base_path = nil } - expect(IbmCloudIam::Configuration.default.base_path).to eq('') - end - end - end - end - - describe 'params_encoding in #build_request' do - let(:config) { IbmCloudIam::Configuration.new } - let(:api_client) { IbmCloudIam::ApiClient.new(config) } - - it 'defaults to nil' do - expect(IbmCloudIam::Configuration.default.params_encoding).to eq(nil) - expect(config.params_encoding).to eq(nil) - - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(nil) - end - - it 'can be customized' do - config.params_encoding = :multi - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(:multi) - end - end - - describe 'timeout in #build_request' do - let(:config) { IbmCloudIam::Configuration.new } - let(:api_client) { IbmCloudIam::ApiClient.new(config) } - - it 'defaults to 0' do - expect(IbmCloudIam::Configuration.default.timeout).to eq(0) - expect(config.timeout).to eq(0) - - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(0) - end - - it 'can be customized' do - config.timeout = 100 - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(100) - end - end - - describe '#deserialize' do - it "handles Array" do - api_client = IbmCloudIam::ApiClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '[12, 34]') - data = api_client.deserialize(response, 'Array') - expect(data).to be_instance_of(Array) - expect(data).to eq([12, 34]) - end - - it 'handles Array>' do - api_client = IbmCloudIam::ApiClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '[[12, 34], [56]]') - data = api_client.deserialize(response, 'Array>') - expect(data).to be_instance_of(Array) - expect(data).to eq([[12, 34], [56]]) - end - - it 'handles Hash' do - api_client = IbmCloudIam::ApiClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '{"message": "Hello"}') - data = api_client.deserialize(response, 'Hash') - expect(data).to be_instance_of(Hash) - expect(data).to eq(:message => 'Hello') - end - end - - describe "#object_to_hash" do - it 'ignores nils and includes empty arrays' do - # uncomment below to test object_to_hash for model - # api_client = IbmCloudIam::ApiClient.new - # _model = IbmCloudIam::ModelName.new - # update the model attribute below - # _model.id = 1 - # update the expected value (hash) below - # expected = {id: 1, name: '', tags: []} - # expect(api_client.object_to_hash(_model)).to eq(expected) - end - end - - describe '#build_collection_param' do - let(:param) { ['aa', 'bb', 'cc'] } - let(:api_client) { IbmCloudIam::ApiClient.new } - - it 'works for csv' do - expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc') - end - - it 'works for ssv' do - expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc') - end - - it 'works for tsv' do - expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc") - end - - it 'works for pipes' do - expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc') - end - - it 'works for multi' do - expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc']) - end - - it 'fails for invalid collection format' do - expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID') - end - end - - describe '#json_mime?' do - let(:api_client) { IbmCloudIam::ApiClient.new } - - it 'works' do - expect(api_client.json_mime?(nil)).to eq false - expect(api_client.json_mime?('')).to eq false - - expect(api_client.json_mime?('application/json')).to eq true - expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true - expect(api_client.json_mime?('APPLICATION/JSON')).to eq true - - expect(api_client.json_mime?('application/xml')).to eq false - expect(api_client.json_mime?('text/plain')).to eq false - expect(api_client.json_mime?('application/jsonp')).to eq false - end - end - - describe '#select_header_accept' do - let(:api_client) { IbmCloudIam::ApiClient.new } - - it 'works' do - expect(api_client.select_header_accept(nil)).to be_nil - expect(api_client.select_header_accept([])).to be_nil - - expect(api_client.select_header_accept(['application/json'])).to eq('application/json') - expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8') - expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON') - - expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml') - expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml') - end - end - - describe '#select_header_content_type' do - let(:api_client) { IbmCloudIam::ApiClient.new } - - it 'works' do - expect(api_client.select_header_content_type(nil)).to eq('application/json') - expect(api_client.select_header_content_type([])).to eq('application/json') - - expect(api_client.select_header_content_type(['application/json'])).to eq('application/json') - expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8') - expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON') - expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml') - expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain') - end - end - - describe '#sanitize_filename' do - let(:api_client) { IbmCloudIam::ApiClient.new } - - it 'works' do - expect(api_client.sanitize_filename('sun')).to eq('sun') - expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif') - end - end -end diff --git a/gems/ibm_cloud_iam/spec/configuration_spec.rb b/gems/ibm_cloud_iam/spec/configuration_spec.rb deleted file mode 100644 index 9cd5f3c4..00000000 --- a/gems/ibm_cloud_iam/spec/configuration_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' - -describe IbmCloudIam::Configuration do - let(:config) { IbmCloudIam::Configuration.default } - - before(:each) do - # uncomment below to setup host and base_path - # require 'URI' - # uri = URI.parse("https://iam.cloud.ibm.com") - # IbmCloudIam.configure do |c| - # c.host = uri.host - # c.base_path = uri.path - # end - end - - describe '#base_url' do - it 'should have the default value' do - # uncomment below to test default value of the base path - # expect(config.base_url).to eq("https://iam.cloud.ibm.com") - end - - it 'should remove trailing slashes' do - [nil, '', '/', '//'].each do |base_path| - config.base_path = base_path - # uncomment below to test trailing slashes - # expect(config.base_url).to eq("https://iam.cloud.ibm.com") - end - end - end -end diff --git a/gems/ibm_cloud_iam/spec/models/api_key_inside_create_service_id_request_spec.rb b/gems/ibm_cloud_iam/spec/models/api_key_inside_create_service_id_request_spec.rb deleted file mode 100644 index 87b37ead..00000000 --- a/gems/ibm_cloud_iam/spec/models/api_key_inside_create_service_id_request_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::ApiKeyInsideCreateServiceIdRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ApiKeyInsideCreateServiceIdRequest' do - before do - # run before each test - @instance = IbmCloudIam::ApiKeyInsideCreateServiceIdRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of ApiKeyInsideCreateServiceIdRequest' do - it 'should create an instance of ApiKeyInsideCreateServiceIdRequest' do - expect(@instance).to be_instance_of(IbmCloudIam::ApiKeyInsideCreateServiceIdRequest) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apikey"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "store_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/api_key_list_spec.rb b/gems/ibm_cloud_iam/spec/models/api_key_list_spec.rb deleted file mode 100644 index 8e69d9d7..00000000 --- a/gems/ibm_cloud_iam/spec/models/api_key_list_spec.rb +++ /dev/null @@ -1,77 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::ApiKeyList -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ApiKeyList' do - before do - # run before each test - @instance = IbmCloudIam::ApiKeyList.new - end - - after do - # run after each test - end - - describe 'test an instance of ApiKeyList' do - it 'should create an instance of ApiKeyList' do - expect(@instance).to be_instance_of(IbmCloudIam::ApiKeyList) - end - end - describe 'test attribute "context"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "offset"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "limit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "first"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "previous"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "_next"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apikeys"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/api_key_spec.rb b/gems/ibm_cloud_iam/spec/models/api_key_spec.rb deleted file mode 100644 index facfd07b..00000000 --- a/gems/ibm_cloud_iam/spec/models/api_key_spec.rb +++ /dev/null @@ -1,119 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::ApiKey -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ApiKey' do - before do - # run before each test - @instance = IbmCloudIam::ApiKey.new - end - - after do - # run after each test - end - - describe 'test an instance of ApiKey' do - it 'should create an instance of ApiKey' do - expect(@instance).to be_instance_of(IbmCloudIam::ApiKey) - end - end - describe 'test attribute "context"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "entity_tag"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "crn"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "locked"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_by"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "modified_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "iam_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "account_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apikey"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "history"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/create_api_key_request_spec.rb b/gems/ibm_cloud_iam/spec/models/create_api_key_request_spec.rb deleted file mode 100644 index 261e0fc4..00000000 --- a/gems/ibm_cloud_iam/spec/models/create_api_key_request_spec.rb +++ /dev/null @@ -1,71 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::CreateApiKeyRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateApiKeyRequest' do - before do - # run before each test - @instance = IbmCloudIam::CreateApiKeyRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateApiKeyRequest' do - it 'should create an instance of CreateApiKeyRequest' do - expect(@instance).to be_instance_of(IbmCloudIam::CreateApiKeyRequest) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "iam_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "account_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apikey"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "store_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/create_service_id_request_spec.rb b/gems/ibm_cloud_iam/spec/models/create_service_id_request_spec.rb deleted file mode 100644 index 8d7b7a2a..00000000 --- a/gems/ibm_cloud_iam/spec/models/create_service_id_request_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::CreateServiceIdRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateServiceIdRequest' do - before do - # run before each test - @instance = IbmCloudIam::CreateServiceIdRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateServiceIdRequest' do - it 'should create an instance of CreateServiceIdRequest' do - expect(@instance).to be_instance_of(IbmCloudIam::CreateServiceIdRequest) - end - end - describe 'test attribute "account_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "unique_instance_crns"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apikey"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/enity_history_record_spec.rb b/gems/ibm_cloud_iam/spec/models/enity_history_record_spec.rb deleted file mode 100644 index 268bfe9c..00000000 --- a/gems/ibm_cloud_iam/spec/models/enity_history_record_spec.rb +++ /dev/null @@ -1,71 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::EnityHistoryRecord -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'EnityHistoryRecord' do - before do - # run before each test - @instance = IbmCloudIam::EnityHistoryRecord.new - end - - after do - # run after each test - end - - describe 'test an instance of EnityHistoryRecord' do - it 'should create an instance of EnityHistoryRecord' do - expect(@instance).to be_instance_of(IbmCloudIam::EnityHistoryRecord) - end - end - describe 'test attribute "timestamp"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "iam_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "iam_id_account"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "params"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/error_spec.rb b/gems/ibm_cloud_iam/spec/models/error_spec.rb deleted file mode 100644 index 06c93880..00000000 --- a/gems/ibm_cloud_iam/spec/models/error_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::Error -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Error' do - before do - # run before each test - @instance = IbmCloudIam::Error.new - end - - after do - # run after each test - end - - describe 'test an instance of Error' do - it 'should create an instance of Error' do - expect(@instance).to be_instance_of(IbmCloudIam::Error) - end - end - describe 'test attribute "code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "message_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "details"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/exception_response_context_spec.rb b/gems/ibm_cloud_iam/spec/models/exception_response_context_spec.rb deleted file mode 100644 index b1fb0f22..00000000 --- a/gems/ibm_cloud_iam/spec/models/exception_response_context_spec.rb +++ /dev/null @@ -1,107 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::ExceptionResponseContext -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ExceptionResponseContext' do - before do - # run before each test - @instance = IbmCloudIam::ExceptionResponseContext.new - end - - after do - # run after each test - end - - describe 'test an instance of ExceptionResponseContext' do - it 'should create an instance of ExceptionResponseContext' do - expect(@instance).to be_instance_of(IbmCloudIam::ExceptionResponseContext) - end - end - describe 'test attribute "request_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "request_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_agent"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "thread_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "host"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "start_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "end_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "elapsed_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "locale"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cluster_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/exception_response_spec.rb b/gems/ibm_cloud_iam/spec/models/exception_response_spec.rb deleted file mode 100644 index 721f9114..00000000 --- a/gems/ibm_cloud_iam/spec/models/exception_response_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::ExceptionResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ExceptionResponse' do - before do - # run before each test - @instance = IbmCloudIam::ExceptionResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ExceptionResponse' do - it 'should create an instance of ExceptionResponse' do - expect(@instance).to be_instance_of(IbmCloudIam::ExceptionResponse) - end - end - describe 'test attribute "context"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "errors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "trace"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/inline_object1_spec.rb b/gems/ibm_cloud_iam/spec/models/inline_object1_spec.rb deleted file mode 100644 index ab7c9a78..00000000 --- a/gems/ibm_cloud_iam/spec/models/inline_object1_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::InlineObject1 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'InlineObject1' do - before do - # run before each test - @instance = IbmCloudIam::InlineObject1.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineObject1' do - it 'should create an instance of InlineObject1' do - expect(@instance).to be_instance_of(IbmCloudIam::InlineObject1) - end - end - describe 'test attribute "grant_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "username"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "password"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "account"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/inline_object2_spec.rb b/gems/ibm_cloud_iam/spec/models/inline_object2_spec.rb deleted file mode 100644 index bab06f1d..00000000 --- a/gems/ibm_cloud_iam/spec/models/inline_object2_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::InlineObject2 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'InlineObject2' do - before do - # run before each test - @instance = IbmCloudIam::InlineObject2.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineObject2' do - it 'should create an instance of InlineObject2' do - expect(@instance).to be_instance_of(IbmCloudIam::InlineObject2) - end - end - describe 'test attribute "grant_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "access_token"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "desired_iam_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/inline_object3_spec.rb b/gems/ibm_cloud_iam/spec/models/inline_object3_spec.rb deleted file mode 100644 index 1dfea23a..00000000 --- a/gems/ibm_cloud_iam/spec/models/inline_object3_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::InlineObject3 -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'InlineObject3' do - before do - # run before each test - @instance = IbmCloudIam::InlineObject3.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineObject3' do - it 'should create an instance of InlineObject3' do - expect(@instance).to be_instance_of(IbmCloudIam::InlineObject3) - end - end - describe 'test attribute "grant_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apikey"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "response_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "receiver_client_ids"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "delegated_refresh_token_expiry"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/inline_object_spec.rb b/gems/ibm_cloud_iam/spec/models/inline_object_spec.rb deleted file mode 100644 index 456eb7f6..00000000 --- a/gems/ibm_cloud_iam/spec/models/inline_object_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::InlineObject -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'InlineObject' do - before do - # run before each test - @instance = IbmCloudIam::InlineObject.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineObject' do - it 'should create an instance of InlineObject' do - expect(@instance).to be_instance_of(IbmCloudIam::InlineObject) - end - end - describe 'test attribute "grant_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apikey"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/mfa_requirements_response_spec.rb b/gems/ibm_cloud_iam/spec/models/mfa_requirements_response_spec.rb deleted file mode 100644 index 4acf9ce7..00000000 --- a/gems/ibm_cloud_iam/spec/models/mfa_requirements_response_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::MFARequirementsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'MFARequirementsResponse' do - before do - # run before each test - @instance = IbmCloudIam::MFARequirementsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of MFARequirementsResponse' do - it 'should create an instance of MFARequirementsResponse' do - expect(@instance).to be_instance_of(IbmCloudIam::MFARequirementsResponse) - end - end - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "authorization_token"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/oidc_exception_response_spec.rb b/gems/ibm_cloud_iam/spec/models/oidc_exception_response_spec.rb deleted file mode 100644 index 76223aba..00000000 --- a/gems/ibm_cloud_iam/spec/models/oidc_exception_response_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::OidcExceptionResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'OidcExceptionResponse' do - before do - # run before each test - @instance = IbmCloudIam::OidcExceptionResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of OidcExceptionResponse' do - it 'should create an instance of OidcExceptionResponse' do - expect(@instance).to be_instance_of(IbmCloudIam::OidcExceptionResponse) - end - end - describe 'test attribute "context"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "error_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "error_message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "error_details"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "requirements"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/response_context_spec.rb b/gems/ibm_cloud_iam/spec/models/response_context_spec.rb deleted file mode 100644 index 3c23f400..00000000 --- a/gems/ibm_cloud_iam/spec/models/response_context_spec.rb +++ /dev/null @@ -1,101 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::ResponseContext -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ResponseContext' do - before do - # run before each test - @instance = IbmCloudIam::ResponseContext.new - end - - after do - # run after each test - end - - describe 'test an instance of ResponseContext' do - it 'should create an instance of ResponseContext' do - expect(@instance).to be_instance_of(IbmCloudIam::ResponseContext) - end - end - describe 'test attribute "transaction_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "operation"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_agent"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "thread_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "host"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "start_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "end_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "elapsed_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cluster_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/service_id_list_spec.rb b/gems/ibm_cloud_iam/spec/models/service_id_list_spec.rb deleted file mode 100644 index adf3df4a..00000000 --- a/gems/ibm_cloud_iam/spec/models/service_id_list_spec.rb +++ /dev/null @@ -1,77 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::ServiceIdList -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ServiceIdList' do - before do - # run before each test - @instance = IbmCloudIam::ServiceIdList.new - end - - after do - # run after each test - end - - describe 'test an instance of ServiceIdList' do - it 'should create an instance of ServiceIdList' do - expect(@instance).to be_instance_of(IbmCloudIam::ServiceIdList) - end - end - describe 'test attribute "context"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "offset"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "limit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "first"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "previous"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "_next"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "serviceids"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/service_id_spec.rb b/gems/ibm_cloud_iam/spec/models/service_id_spec.rb deleted file mode 100644 index e9c333ea..00000000 --- a/gems/ibm_cloud_iam/spec/models/service_id_spec.rb +++ /dev/null @@ -1,119 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::ServiceId -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ServiceId' do - before do - # run before each test - @instance = IbmCloudIam::ServiceId.new - end - - after do - # run after each test - end - - describe 'test an instance of ServiceId' do - it 'should create an instance of ServiceId' do - expect(@instance).to be_instance_of(IbmCloudIam::ServiceId) - end - end - describe 'test attribute "context"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "iam_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "entity_tag"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "crn"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "locked"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "modified_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "account_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "unique_instance_crns"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "history"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "apikey"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/token_response_spec.rb b/gems/ibm_cloud_iam/spec/models/token_response_spec.rb deleted file mode 100644 index a3445ebd..00000000 --- a/gems/ibm_cloud_iam/spec/models/token_response_spec.rb +++ /dev/null @@ -1,71 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::TokenResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'TokenResponse' do - before do - # run before each test - @instance = IbmCloudIam::TokenResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of TokenResponse' do - it 'should create an instance of TokenResponse' do - expect(@instance).to be_instance_of(IbmCloudIam::TokenResponse) - end - end - describe 'test attribute "access_token"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "refresh_token"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "delegated_refresh_token"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "token_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "expires_in"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "expiration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/update_api_key_request_spec.rb b/gems/ibm_cloud_iam/spec/models/update_api_key_request_spec.rb deleted file mode 100644 index 72b562ec..00000000 --- a/gems/ibm_cloud_iam/spec/models/update_api_key_request_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::UpdateApiKeyRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'UpdateApiKeyRequest' do - before do - # run before each test - @instance = IbmCloudIam::UpdateApiKeyRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of UpdateApiKeyRequest' do - it 'should create an instance of UpdateApiKeyRequest' do - expect(@instance).to be_instance_of(IbmCloudIam::UpdateApiKeyRequest) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/models/update_service_id_request_spec.rb b/gems/ibm_cloud_iam/spec/models/update_service_id_request_spec.rb deleted file mode 100644 index c978b520..00000000 --- a/gems/ibm_cloud_iam/spec/models/update_service_id_request_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudIam::UpdateServiceIdRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'UpdateServiceIdRequest' do - before do - # run before each test - @instance = IbmCloudIam::UpdateServiceIdRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of UpdateServiceIdRequest' do - it 'should create an instance of UpdateServiceIdRequest' do - expect(@instance).to be_instance_of(IbmCloudIam::UpdateServiceIdRequest) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "unique_instance_crns"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_iam/spec/spec_helper.rb b/gems/ibm_cloud_iam/spec/spec_helper.rb deleted file mode 100644 index 0f8fd05a..00000000 --- a/gems/ibm_cloud_iam/spec/spec_helper.rb +++ /dev/null @@ -1,111 +0,0 @@ -=begin -#IAM Identity Services API - -#The IAM Identity Service API allows for the management of Identities (Service IDs, ApiKeys). - -The version of the OpenAPI document: 1.0.0 - -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -# load the gem -require 'ibm_cloud_iam' - -# The following was generated by the `rspec --init` command. Conventionally, all -# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. -# The generated `.rspec` file contains `--require spec_helper` which will cause -# this file to always be loaded, without a need to explicitly require it in any -# files. -# -# Given that it is always loaded, you are encouraged to keep this file as -# light-weight as possible. Requiring heavyweight dependencies from this file -# will add to the boot time of your test suite on EVERY test run, even for an -# individual file that may not need all of that loaded. Instead, consider making -# a separate helper file that requires the additional dependencies and performs -# the additional setup, and require it from the spec files that actually need -# it. -# -# The `.rspec` file also contains a few flags that are not defaults but that -# users commonly want. -# -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration -RSpec.configure do |config| - # rspec-expectations config goes here. You can use an alternate - # assertion/expectation library such as wrong or the stdlib/minitest - # assertions if you prefer. - config.expect_with :rspec do |expectations| - # This option will default to `true` in RSpec 4. It makes the `description` - # and `failure_message` of custom matchers include text for helper methods - # defined using `chain`, e.g.: - # be_bigger_than(2).and_smaller_than(4).description - # # => "be bigger than 2 and smaller than 4" - # ...rather than: - # # => "be bigger than 2" - expectations.include_chain_clauses_in_custom_matcher_descriptions = true - end - - # rspec-mocks config goes here. You can use an alternate test double - # library (such as bogus or mocha) by changing the `mock_with` option here. - config.mock_with :rspec do |mocks| - # Prevents you from mocking or stubbing a method that does not exist on - # a real object. This is generally recommended, and will default to - # `true` in RSpec 4. - mocks.verify_partial_doubles = true - end - -# The settings below are suggested to provide a good initial experience -# with RSpec, but feel free to customize to your heart's content. -=begin - # These two settings work together to allow you to limit a spec run - # to individual examples or groups you care about by tagging them with - # `:focus` metadata. When nothing is tagged with `:focus`, all examples - # get run. - config.filter_run :focus - config.run_all_when_everything_filtered = true - - # Allows RSpec to persist some state between runs in order to support - # the `--only-failures` and `--next-failure` CLI options. We recommend - # you configure your source control system to ignore this file. - config.example_status_persistence_file_path = "spec/examples.txt" - - # Limits the available syntax to the non-monkey patched syntax that is - # recommended. For more details, see: - # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ - # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ - # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode - config.disable_monkey_patching! - - # This setting enables warnings. It's recommended, but in some cases may - # be too noisy due to issues in dependencies. - config.warnings = true - - # Many RSpec users commonly either run the entire suite or an individual - # file, and it's useful to allow more verbose output when running an - # individual spec file. - if config.files_to_run.one? - # Use the documentation formatter for detailed output, - # unless a formatter has already been configured - # (e.g. via a command-line flag). - config.default_formatter = 'doc' - end - - # Print the 10 slowest examples and example groups at the - # end of the spec run, to help surface which specs are running - # particularly slow. - config.profile_examples = 10 - - # Run specs in random order to surface order dependencies. If you find an - # order dependency and want to debug it, you can fix the order by providing - # the seed, which is printed after each run. - # --seed 1234 - config.order = :random - - # Seed global randomization in this process using the `--seed` CLI option. - # Setting this allows you to use `--seed` to deterministically reproduce - # test failures related to randomization by passing the same `--seed` value - # as the one that triggered the failure. - Kernel.srand config.seed -=end -end diff --git a/gems/ibm_cloud_power/.gitignore b/gems/ibm_cloud_power/.gitignore deleted file mode 100644 index 05a17cb8..00000000 --- a/gems/ibm_cloud_power/.gitignore +++ /dev/null @@ -1,39 +0,0 @@ -# Generated by: https://openapi-generator.tech -# - -*.gem -*.rbc -/.config -/coverage/ -/InstalledFiles -/pkg/ -/spec/reports/ -/spec/examples.txt -/test/tmp/ -/test/version_tmp/ -/tmp/ - -## Specific to RubyMotion: -.dat* -.repl_history -build/ - -## Documentation cache and generated files: -/.yardoc/ -/_yardoc/ -/doc/ -/rdoc/ - -## Environment normalization: -/.bundle/ -/vendor/bundle -/lib/bundler/man/ - -# for a library or gem, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# Gemfile.lock -# .ruby-version -# .ruby-gemset - -# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: -.rvmrc diff --git a/gems/ibm_cloud_power/.openapi-config.json b/gems/ibm_cloud_power/.openapi-config.json deleted file mode 100644 index 7c776d04..00000000 --- a/gems/ibm_cloud_power/.openapi-config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "gemName": "ibm_cloud_power", - "gemAuthor": "IBM Cloud Developers", - "gemSummary": "IBM Cloud Power Cloud", - "gemDescription": "Ruby gem for IBM Cloud Power Cloud", - "gemLicense": "Apache-2.0" -} diff --git a/gems/ibm_cloud_power/.openapi-generator-ignore b/gems/ibm_cloud_power/.openapi-generator-ignore deleted file mode 100644 index 7484ee59..00000000 --- a/gems/ibm_cloud_power/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/gems/ibm_cloud_power/.openapi-generator/FILES b/gems/ibm_cloud_power/.openapi-generator/FILES deleted file mode 100644 index af8f6bde..00000000 --- a/gems/ibm_cloud_power/.openapi-generator/FILES +++ /dev/null @@ -1,300 +0,0 @@ -.gitignore -.rspec -.rubocop.yml -.travis.yml -Gemfile -README.md -Rakefile -docs/CloneTaskReference.md -docs/CloneTaskStatus.md -docs/ClonedVolume.md -docs/ClonedVolumeDetail.md -docs/CloudConnection.md -docs/CloudConnectionCreate.md -docs/CloudConnectionEndpointClassic.md -docs/CloudConnectionEndpointGRE.md -docs/CloudConnectionEndpointVPC.md -docs/CloudConnectionGRETunnel.md -docs/CloudConnectionSpeed.md -docs/CloudConnectionUpdate.md -docs/CloudConnectionVPC.md -docs/CloudConnectionVirtualPrivateClouds.md -docs/CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md -docs/CloudConnections.md -docs/CloudInstance.md -docs/CloudInstanceCreate.md -docs/CloudInstanceReference.md -docs/CloudInstanceUpdate.md -docs/CloudInstanceUsageLimits.md -docs/CreateDataVolume.md -docs/CreateImage.md -docs/Error.md -docs/Event.md -docs/EventUser.md -docs/Events.md -docs/ExportImage.md -docs/IPAddressRange.md -docs/Image.md -docs/ImageReference.md -docs/ImageSpecifications.md -docs/ImageVolume.md -docs/Images.md -docs/MaximumStorageAllocation.md -docs/MinMaxDefault.md -docs/MultiVolumesCreate.md -docs/Network.md -docs/NetworkCreate.md -docs/NetworkIpAddressMetrics.md -docs/NetworkPort.md -docs/NetworkPortCreate.md -docs/NetworkPortPvmInstance.md -docs/NetworkPortUpdate.md -docs/NetworkPorts.md -docs/NetworkReference.md -docs/NetworkUpdate.md -docs/Networks.md -docs/Operations.md -docs/PCloudCloudConnectionsApi.md -docs/PCloudEventsApi.md -docs/PCloudImagesApi.md -docs/PCloudInstancesApi.md -docs/PCloudNetworksApi.md -docs/PCloudPVMInstancesApi.md -docs/PCloudPlacementGroupsApi.md -docs/PCloudSAPApi.md -docs/PCloudSnapshotsApi.md -docs/PCloudStorageCapacityApi.md -docs/PCloudSystemPoolsApi.md -docs/PCloudTasksApi.md -docs/PCloudTenantsApi.md -docs/PCloudTenantsSSHKeysApi.md -docs/PCloudVolumesApi.md -docs/PVMInstance.md -docs/PVMInstanceAction.md -docs/PVMInstanceAddNetwork.md -docs/PVMInstanceCapture.md -docs/PVMInstanceClone.md -docs/PVMInstanceConsole.md -docs/PVMInstanceCreate.md -docs/PVMInstanceFault.md -docs/PVMInstanceHealth.md -docs/PVMInstanceMultiCreate.md -docs/PVMInstanceNetwork.md -docs/PVMInstanceNetworks.md -docs/PVMInstanceOperation.md -docs/PVMInstanceReference.md -docs/PVMInstanceRemoveNetwork.md -docs/PVMInstanceUpdate.md -docs/PVMInstanceUpdateResponse.md -docs/PVMInstanceVolumeUpdate.md -docs/PVMInstances.md -docs/PeeringNetwork.md -docs/PinPolicy.md -docs/PlacementGroup.md -docs/PlacementGroupCreate.md -docs/PlacementGroupServer.md -docs/PlacementGroups.md -docs/SAPCreate.md -docs/SAPProfile.md -docs/SAPProfileReference.md -docs/SAPProfiles.md -docs/SRC.md -docs/SSHKey.md -docs/SSHKeys.md -docs/Snapshot.md -docs/SnapshotCreate.md -docs/SnapshotCreateResponse.md -docs/SnapshotRestore.md -docs/SnapshotUpdate.md -docs/Snapshots.md -docs/SoftwareLicenses.md -docs/StockImage.md -docs/StoragePoolCapacity.md -docs/StoragePoolsCapacity.md -docs/StorageTypeCapacity.md -docs/StorageTypesCapacity.md -docs/System.md -docs/SystemPool.md -docs/Task.md -docs/TaskReference.md -docs/Tenant.md -docs/TenantUpdate.md -docs/UpdateVolume.md -docs/VirtualCores.md -docs/Volume.md -docs/VolumeInfo.md -docs/VolumeReference.md -docs/Volumes.md -docs/VolumesClone.md -docs/VolumesCloneAsyncRequest.md -docs/VolumesCloneCancel.md -docs/VolumesCloneCreate.md -docs/VolumesCloneDetail.md -docs/VolumesCloneExecute.md -docs/VolumesCloneRequest.md -docs/VolumesCloneResponse.md -docs/VolumesClones.md -git_push.sh -ibm_cloud_power.gemspec -lib/ibm_cloud_power.rb -lib/ibm_cloud_power/api/p_cloud_cloud_connections_api.rb -lib/ibm_cloud_power/api/p_cloud_events_api.rb -lib/ibm_cloud_power/api/p_cloud_images_api.rb -lib/ibm_cloud_power/api/p_cloud_instances_api.rb -lib/ibm_cloud_power/api/p_cloud_networks_api.rb -lib/ibm_cloud_power/api/p_cloud_placement_groups_api.rb -lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb -lib/ibm_cloud_power/api/p_cloud_sap_api.rb -lib/ibm_cloud_power/api/p_cloud_snapshots_api.rb -lib/ibm_cloud_power/api/p_cloud_storage_capacity_api.rb -lib/ibm_cloud_power/api/p_cloud_system_pools_api.rb -lib/ibm_cloud_power/api/p_cloud_tasks_api.rb -lib/ibm_cloud_power/api/p_cloud_tenants_api.rb -lib/ibm_cloud_power/api/p_cloud_tenants_ssh_keys_api.rb -lib/ibm_cloud_power/api/p_cloud_volumes_api.rb -lib/ibm_cloud_power/api_client.rb -lib/ibm_cloud_power/api_error.rb -lib/ibm_cloud_power/configuration.rb -lib/ibm_cloud_power/configuration.rb -lib/ibm_cloud_power/models/clone_task_reference.rb -lib/ibm_cloud_power/models/clone_task_status.rb -lib/ibm_cloud_power/models/cloned_volume.rb -lib/ibm_cloud_power/models/cloned_volume_detail.rb -lib/ibm_cloud_power/models/cloud_connection.rb -lib/ibm_cloud_power/models/cloud_connection_create.rb -lib/ibm_cloud_power/models/cloud_connection_endpoint_classic.rb -lib/ibm_cloud_power/models/cloud_connection_endpoint_gre.rb -lib/ibm_cloud_power/models/cloud_connection_endpoint_vpc.rb -lib/ibm_cloud_power/models/cloud_connection_gre_tunnel.rb -lib/ibm_cloud_power/models/cloud_connection_speed.rb -lib/ibm_cloud_power/models/cloud_connection_update.rb -lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds.rb -lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds_virtual_private_clouds.rb -lib/ibm_cloud_power/models/cloud_connection_vpc.rb -lib/ibm_cloud_power/models/cloud_connections.rb -lib/ibm_cloud_power/models/cloud_instance.rb -lib/ibm_cloud_power/models/cloud_instance_create.rb -lib/ibm_cloud_power/models/cloud_instance_reference.rb -lib/ibm_cloud_power/models/cloud_instance_update.rb -lib/ibm_cloud_power/models/cloud_instance_usage_limits.rb -lib/ibm_cloud_power/models/create_data_volume.rb -lib/ibm_cloud_power/models/create_image.rb -lib/ibm_cloud_power/models/error.rb -lib/ibm_cloud_power/models/event.rb -lib/ibm_cloud_power/models/event_user.rb -lib/ibm_cloud_power/models/events.rb -lib/ibm_cloud_power/models/export_image.rb -lib/ibm_cloud_power/models/image.rb -lib/ibm_cloud_power/models/image_reference.rb -lib/ibm_cloud_power/models/image_specifications.rb -lib/ibm_cloud_power/models/image_volume.rb -lib/ibm_cloud_power/models/images.rb -lib/ibm_cloud_power/models/ip_address_range.rb -lib/ibm_cloud_power/models/maximum_storage_allocation.rb -lib/ibm_cloud_power/models/min_max_default.rb -lib/ibm_cloud_power/models/multi_volumes_create.rb -lib/ibm_cloud_power/models/network.rb -lib/ibm_cloud_power/models/network_create.rb -lib/ibm_cloud_power/models/network_ip_address_metrics.rb -lib/ibm_cloud_power/models/network_port.rb -lib/ibm_cloud_power/models/network_port_create.rb -lib/ibm_cloud_power/models/network_port_pvm_instance.rb -lib/ibm_cloud_power/models/network_port_update.rb -lib/ibm_cloud_power/models/network_ports.rb -lib/ibm_cloud_power/models/network_reference.rb -lib/ibm_cloud_power/models/network_update.rb -lib/ibm_cloud_power/models/networks.rb -lib/ibm_cloud_power/models/operations.rb -lib/ibm_cloud_power/models/peering_network.rb -lib/ibm_cloud_power/models/pin_policy.rb -lib/ibm_cloud_power/models/placement_group.rb -lib/ibm_cloud_power/models/placement_group_create.rb -lib/ibm_cloud_power/models/placement_group_server.rb -lib/ibm_cloud_power/models/placement_groups.rb -lib/ibm_cloud_power/models/pvm_instance.rb -lib/ibm_cloud_power/models/pvm_instance_action.rb -lib/ibm_cloud_power/models/pvm_instance_add_network.rb -lib/ibm_cloud_power/models/pvm_instance_capture.rb -lib/ibm_cloud_power/models/pvm_instance_clone.rb -lib/ibm_cloud_power/models/pvm_instance_console.rb -lib/ibm_cloud_power/models/pvm_instance_create.rb -lib/ibm_cloud_power/models/pvm_instance_fault.rb -lib/ibm_cloud_power/models/pvm_instance_health.rb -lib/ibm_cloud_power/models/pvm_instance_multi_create.rb -lib/ibm_cloud_power/models/pvm_instance_network.rb -lib/ibm_cloud_power/models/pvm_instance_networks.rb -lib/ibm_cloud_power/models/pvm_instance_operation.rb -lib/ibm_cloud_power/models/pvm_instance_reference.rb -lib/ibm_cloud_power/models/pvm_instance_remove_network.rb -lib/ibm_cloud_power/models/pvm_instance_update.rb -lib/ibm_cloud_power/models/pvm_instance_update_response.rb -lib/ibm_cloud_power/models/pvm_instance_volume_update.rb -lib/ibm_cloud_power/models/pvm_instances.rb -lib/ibm_cloud_power/models/sap_create.rb -lib/ibm_cloud_power/models/sap_profile.rb -lib/ibm_cloud_power/models/sap_profile_reference.rb -lib/ibm_cloud_power/models/sap_profiles.rb -lib/ibm_cloud_power/models/snapshot.rb -lib/ibm_cloud_power/models/snapshot_create.rb -lib/ibm_cloud_power/models/snapshot_create_response.rb -lib/ibm_cloud_power/models/snapshot_restore.rb -lib/ibm_cloud_power/models/snapshot_update.rb -lib/ibm_cloud_power/models/snapshots.rb -lib/ibm_cloud_power/models/software_licenses.rb -lib/ibm_cloud_power/models/src.rb -lib/ibm_cloud_power/models/ssh_key.rb -lib/ibm_cloud_power/models/ssh_keys.rb -lib/ibm_cloud_power/models/stock_image.rb -lib/ibm_cloud_power/models/storage_pool_capacity.rb -lib/ibm_cloud_power/models/storage_pools_capacity.rb -lib/ibm_cloud_power/models/storage_type_capacity.rb -lib/ibm_cloud_power/models/storage_types_capacity.rb -lib/ibm_cloud_power/models/system.rb -lib/ibm_cloud_power/models/system_pool.rb -lib/ibm_cloud_power/models/task.rb -lib/ibm_cloud_power/models/task_reference.rb -lib/ibm_cloud_power/models/tenant.rb -lib/ibm_cloud_power/models/tenant_update.rb -lib/ibm_cloud_power/models/update_volume.rb -lib/ibm_cloud_power/models/virtual_cores.rb -lib/ibm_cloud_power/models/volume.rb -lib/ibm_cloud_power/models/volume_info.rb -lib/ibm_cloud_power/models/volume_reference.rb -lib/ibm_cloud_power/models/volumes.rb -lib/ibm_cloud_power/models/volumes_clone.rb -lib/ibm_cloud_power/models/volumes_clone_async_request.rb -lib/ibm_cloud_power/models/volumes_clone_cancel.rb -lib/ibm_cloud_power/models/volumes_clone_create.rb -lib/ibm_cloud_power/models/volumes_clone_detail.rb -lib/ibm_cloud_power/models/volumes_clone_execute.rb -lib/ibm_cloud_power/models/volumes_clone_request.rb -lib/ibm_cloud_power/models/volumes_clone_response.rb -lib/ibm_cloud_power/models/volumes_clones.rb -lib/ibm_cloud_power/version.rb -spec/api/p_cloud_cloud_connections_api_spec.rb -spec/api/p_cloud_placement_groups_api_spec.rb -spec/api/p_cloud_storage_capacity_api_spec.rb -spec/api_client_spec.rb -spec/configuration_spec.rb -spec/models/cloud_connection_create_spec.rb -spec/models/cloud_connection_endpoint_classic_spec.rb -spec/models/cloud_connection_endpoint_gre_spec.rb -spec/models/cloud_connection_endpoint_vpc_spec.rb -spec/models/cloud_connection_gre_tunnel_spec.rb -spec/models/cloud_connection_spec.rb -spec/models/cloud_connection_speed_spec.rb -spec/models/cloud_connection_update_spec.rb -spec/models/cloud_connection_virtual_private_clouds_spec.rb -spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb -spec/models/cloud_connection_vpc_spec.rb -spec/models/cloud_connections_spec.rb -spec/models/maximum_storage_allocation_spec.rb -spec/models/placement_group_create_spec.rb -spec/models/placement_group_server_spec.rb -spec/models/placement_group_spec.rb -spec/models/placement_groups_spec.rb -spec/models/storage_pool_capacity_spec.rb -spec/models/storage_pools_capacity_spec.rb -spec/models/storage_type_capacity_spec.rb -spec/models/storage_types_capacity_spec.rb -spec/spec_helper.rb diff --git a/gems/ibm_cloud_power/.openapi-generator/VERSION b/gems/ibm_cloud_power/.openapi-generator/VERSION deleted file mode 100644 index 1a487e1a..00000000 --- a/gems/ibm_cloud_power/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.0.0-beta2 \ No newline at end of file diff --git a/gems/ibm_cloud_power/.rspec b/gems/ibm_cloud_power/.rspec deleted file mode 100644 index 83e16f80..00000000 --- a/gems/ibm_cloud_power/.rspec +++ /dev/null @@ -1,2 +0,0 @@ ---color ---require spec_helper diff --git a/gems/ibm_cloud_power/.rubocop.yml b/gems/ibm_cloud_power/.rubocop.yml deleted file mode 100644 index d32b2b1c..00000000 --- a/gems/ibm_cloud_power/.rubocop.yml +++ /dev/null @@ -1,148 +0,0 @@ -# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) -# Automatically generated by OpenAPI Generator (https://openapi-generator.tech) -AllCops: - TargetRubyVersion: 2.4 - # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop - # to ignore them, so only the ones explicitly set in this file are enabled. - DisabledByDefault: true - Exclude: - - '**/templates/**/*' - - '**/vendor/**/*' - - 'actionpack/lib/action_dispatch/journey/parser.rb' - -# Prefer &&/|| over and/or. -Style/AndOr: - Enabled: true - -# Align `when` with `case`. -Layout/CaseIndentation: - Enabled: true - -# Align comments with method definitions. -Layout/CommentIndentation: - Enabled: true - -Layout/ElseAlignment: - Enabled: true - -Layout/EmptyLineAfterMagicComment: - Enabled: true - -# In a regular class definition, no empty lines around the body. -Layout/EmptyLinesAroundClassBody: - Enabled: true - -# In a regular method definition, no empty lines around the body. -Layout/EmptyLinesAroundMethodBody: - Enabled: true - -# In a regular module definition, no empty lines around the body. -Layout/EmptyLinesAroundModuleBody: - Enabled: true - -Layout/FirstArgumentIndentation: - Enabled: true - -# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. -Style/HashSyntax: - Enabled: false - -# Method definitions after `private` or `protected` isolated calls need one -# extra level of indentation. -Layout/IndentationConsistency: - Enabled: true - EnforcedStyle: indented_internal_methods - -# Two spaces, no tabs (for indentation). -Layout/IndentationWidth: - Enabled: true - -Layout/LeadingCommentSpace: - Enabled: true - -Layout/SpaceAfterColon: - Enabled: true - -Layout/SpaceAfterComma: - Enabled: true - -Layout/SpaceAroundEqualsInParameterDefault: - Enabled: true - -Layout/SpaceAroundKeyword: - Enabled: true - -Layout/SpaceAroundOperators: - Enabled: true - -Layout/SpaceBeforeComma: - Enabled: true - -Layout/SpaceBeforeFirstArg: - Enabled: true - -Style/DefWithParentheses: - Enabled: true - -# Defining a method with parameters needs parentheses. -Style/MethodDefParentheses: - Enabled: true - -Style/FrozenStringLiteralComment: - Enabled: false - EnforcedStyle: always - -# Use `foo {}` not `foo{}`. -Layout/SpaceBeforeBlockBraces: - Enabled: true - -# Use `foo { bar }` not `foo {bar}`. -Layout/SpaceInsideBlockBraces: - Enabled: true - -# Use `{ a: 1 }` not `{a:1}`. -Layout/SpaceInsideHashLiteralBraces: - Enabled: true - -Layout/SpaceInsideParens: - Enabled: true - -# Check quotes usage according to lint rule below. -#Style/StringLiterals: -# Enabled: true -# EnforcedStyle: single_quotes - -# Detect hard tabs, no hard tabs. -Layout/IndentationStyle: - Enabled: true - -# Blank lines should not have any spaces. -Layout/TrailingEmptyLines: - Enabled: true - -# No trailing whitespace. -Layout/TrailingWhitespace: - Enabled: false - -# Use quotes for string literals when they are enough. -Style/RedundantPercentQ: - Enabled: true - -# Align `end` with the matching keyword or starting expression except for -# assignments, where it should be aligned with the LHS. -Layout/EndAlignment: - Enabled: true - EnforcedStyleAlignWith: variable - AutoCorrect: true - -# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. -Lint/RequireParentheses: - Enabled: true - -Style/RedundantReturn: - Enabled: true - AllowMultipleReturnValues: true - -Style/Semicolon: - Enabled: true - AllowAsExpressionSeparator: true diff --git a/gems/ibm_cloud_power/.travis.yml b/gems/ibm_cloud_power/.travis.yml deleted file mode 100644 index ee4f71ec..00000000 --- a/gems/ibm_cloud_power/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: ruby -cache: bundler -rvm: - - 2.3 - - 2.4 - - 2.5 -script: - - bundle install --path vendor/bundle - - bundle exec rspec - - gem build ibm_cloud_power.gemspec - - gem install ./ibm_cloud_power-1.0.0.gem diff --git a/gems/ibm_cloud_power/Gemfile b/gems/ibm_cloud_power/Gemfile deleted file mode 100644 index c2e3127c..00000000 --- a/gems/ibm_cloud_power/Gemfile +++ /dev/null @@ -1,9 +0,0 @@ -source 'https://rubygems.org' - -gemspec - -group :development, :test do - gem 'rake', '~> 13.0.1' - gem 'pry-byebug' - gem 'rubocop', '~> 0.66.0' -end diff --git a/gems/ibm_cloud_power/LICENSE.txt b/gems/ibm_cloud_power/LICENSE.txt deleted file mode 100644 index d6456956..00000000 --- a/gems/ibm_cloud_power/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/gems/ibm_cloud_power/README.md b/gems/ibm_cloud_power/README.md deleted file mode 100644 index fecd906d..00000000 --- a/gems/ibm_cloud_power/README.md +++ /dev/null @@ -1,301 +0,0 @@ -# ibm_cloud_power - -IbmCloudPower - the Ruby gem for the Power Cloud API - -IBM Power Cloud API for Power Hardware / Infrastructure - -This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 1.0.0 -- Package version: 1.0.0 -- Build package: org.openapitools.codegen.languages.RubyClientCodegen -For more information, please visit [https://github.ibm.com/power-iaas](https://github.ibm.com/power-iaas) - -## Installation - -### Build a gem - -To build the Ruby code into a gem: - -```shell -gem build ibm_cloud_power.gemspec -``` - -Then either install the gem locally: - -```shell -gem install ./ibm_cloud_power-1.0.0.gem -``` - -(for development, run `gem install --dev ./ibm_cloud_power-1.0.0.gem` to install the development dependencies) - -or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). - -Finally add this to the Gemfile: - - gem 'ibm_cloud_power', '~> 1.0.0' - -### Install from Git - -If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile: - - gem 'ibm_cloud_power', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git' - -### Include the Ruby code directly - -Include the Ruby code directly using `-I` as follows: - -```shell -ruby -Ilib script.rb -``` - -## Getting Started - -Please follow the [installation](#installation) procedure and then run the following code: - -```ruby -# Load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID - -begin - #Delete a Cloud connection - result = api_instance.pcloud_cloudconnections_delete(cloud_instance_id, cloud_connection_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_delete: #{e}" -end - -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*IbmCloudPower::PCloudCloudConnectionsApi* | [**pcloud_cloudconnections_delete**](docs/PCloudCloudConnectionsApi.md#pcloud_cloudconnections_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id} | Delete a Cloud connection -*IbmCloudPower::PCloudCloudConnectionsApi* | [**pcloud_cloudconnections_get**](docs/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 -*IbmCloudPower::PCloudCloudConnectionsApi* | [**pcloud_cloudconnections_getall**](docs/PCloudCloudConnectionsApi.md#pcloud_cloudconnections_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections | Get all Cloud connections in a specific cloud instance -*IbmCloudPower::PCloudCloudConnectionsApi* | [**pcloud_cloudconnections_networks_delete**](docs/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 -*IbmCloudPower::PCloudCloudConnectionsApi* | [**pcloud_cloudconnections_networks_put**](docs/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 -*IbmCloudPower::PCloudCloudConnectionsApi* | [**pcloud_cloudconnections_post**](docs/PCloudCloudConnectionsApi.md#pcloud_cloudconnections_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections | Create a new Cloud connection -*IbmCloudPower::PCloudCloudConnectionsApi* | [**pcloud_cloudconnections_put**](docs/PCloudCloudConnectionsApi.md#pcloud_cloudconnections_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id} | Update a Cloud connection -*IbmCloudPower::PCloudCloudConnectionsApi* | [**pcloud_cloudconnections_virtualprivateclouds_getall**](docs/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 -*IbmCloudPower::PCloudEventsApi* | [**pcloud_events_get**](docs/PCloudEventsApi.md#pcloud_events_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/events/{event_id} | Get a single event -*IbmCloudPower::PCloudEventsApi* | [**pcloud_events_getsince**](docs/PCloudEventsApi.md#pcloud_events_getsince) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/events | Get events from this cloud instance since a specific timestamp -*IbmCloudPower::PCloudImagesApi* | [**pcloud_cloudinstances_images_delete**](docs/PCloudImagesApi.md#pcloud_cloudinstances_images_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id} | Delete an image from a cloud instance -*IbmCloudPower::PCloudImagesApi* | [**pcloud_cloudinstances_images_export_post**](docs/PCloudImagesApi.md#pcloud_cloudinstances_images_export_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id}/export | Export an image -*IbmCloudPower::PCloudImagesApi* | [**pcloud_cloudinstances_images_get**](docs/PCloudImagesApi.md#pcloud_cloudinstances_images_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id} | Detailed information of an image -*IbmCloudPower::PCloudImagesApi* | [**pcloud_cloudinstances_images_getall**](docs/PCloudImagesApi.md#pcloud_cloudinstances_images_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/images | List all of the images for this cloud instance -*IbmCloudPower::PCloudImagesApi* | [**pcloud_cloudinstances_images_post**](docs/PCloudImagesApi.md#pcloud_cloudinstances_images_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/images | Create a new image from available images -*IbmCloudPower::PCloudImagesApi* | [**pcloud_cloudinstances_stockimages_get**](docs/PCloudImagesApi.md#pcloud_cloudinstances_stockimages_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images/{image_id} | Detailed info of an available stock image -*IbmCloudPower::PCloudImagesApi* | [**pcloud_cloudinstances_stockimages_getall**](docs/PCloudImagesApi.md#pcloud_cloudinstances_stockimages_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images | List all available stock images -*IbmCloudPower::PCloudImagesApi* | [**pcloud_images_get**](docs/PCloudImagesApi.md#pcloud_images_get) | **GET** /pcloud/v1/images/{image_id} | Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed info of an available stock image -*IbmCloudPower::PCloudImagesApi* | [**pcloud_images_getall**](docs/PCloudImagesApi.md#pcloud_images_getall) | **GET** /pcloud/v1/images | Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - List all available stock images -*IbmCloudPower::PCloudInstancesApi* | [**pcloud_cloudinstances_delete**](docs/PCloudInstancesApi.md#pcloud_cloudinstances_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id} | Delete a Power Cloud instance -*IbmCloudPower::PCloudInstancesApi* | [**pcloud_cloudinstances_get**](docs/PCloudInstancesApi.md#pcloud_cloudinstances_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id} | Get a cloud instance's current state or information -*IbmCloudPower::PCloudInstancesApi* | [**pcloud_cloudinstances_put**](docs/PCloudInstancesApi.md#pcloud_cloudinstances_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id} | Update or upgrade a cloud instance -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_delete**](docs/PCloudNetworksApi.md#pcloud_networks_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id} | Delete a network -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_get**](docs/PCloudNetworksApi.md#pcloud_networks_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id} | Get a network's current state or information -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_getall**](docs/PCloudNetworksApi.md#pcloud_networks_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks | Get all networks in this cloud instance -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_ports_delete**](docs/PCloudNetworksApi.md#pcloud_networks_ports_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id} | Delete a network port -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_ports_get**](docs/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 -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_ports_getall**](docs/PCloudNetworksApi.md#pcloud_networks_ports_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports | Get all ports for this network -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_ports_post**](docs/PCloudNetworksApi.md#pcloud_networks_ports_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports | Perform port addition, deletion, and listing -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_ports_put**](docs/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 -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_post**](docs/PCloudNetworksApi.md#pcloud_networks_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks | Create a new network -*IbmCloudPower::PCloudNetworksApi* | [**pcloud_networks_put**](docs/PCloudNetworksApi.md#pcloud_networks_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id} | Update a network -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_action_post**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_action_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/action | Perform an action (start stop reboot immediate-shutdown reset) on a PVMInstance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_capture_post**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_capture_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/capture | Capture a PVM instance and create a deployable image -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_clone_post**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_clone_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/clone | Clone a PVMInstance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_console_post**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_console_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/console | Generate the noVNC console URL -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_delete**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id} | Delete a PCloud PVM instance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_get**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id} | Get a PVM instance's current state or information -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_getall**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances | Get all the PVM instances for this cloud instance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_networks_delete**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_networks_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks/{network_id} | Remove all addresses of network from a PVM instance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_networks_get**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_networks_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks/{network_id} | Get a PVM instance's network information -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_networks_getall**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_networks_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks | Get all networks for this PVM instance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_networks_post**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_networks_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks | Perform network addition, deletion, and listing -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_operations_post**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_operations_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/operations | Perform an operation on a PVMInstance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_post**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances | Create a new PVM instance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_put**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id} | Update a PCloud PVM instance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_snapshots_getall**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_snapshots_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots | Get all snapshots for this PVM instance -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_snapshots_post**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_snapshots_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots | Create a PVM instance snapshot -*IbmCloudPower::PCloudPVMInstancesApi* | [**pcloud_pvminstances_snapshots_restore_post**](docs/PCloudPVMInstancesApi.md#pcloud_pvminstances_snapshots_restore_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots/{snapshot_id}/restore | Restore a PVM Instance snapshot -*IbmCloudPower::PCloudPlacementGroupsApi* | [**pcloud_placementgroups_delete**](docs/PCloudPlacementGroupsApi.md#pcloud_placementgroups_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id} | Delete server placement group -*IbmCloudPower::PCloudPlacementGroupsApi* | [**pcloud_placementgroups_get**](docs/PCloudPlacementGroupsApi.md#pcloud_placementgroups_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id} | Get server placement group details -*IbmCloudPower::PCloudPlacementGroupsApi* | [**pcloud_placementgroups_getall**](docs/PCloudPlacementGroupsApi.md#pcloud_placementgroups_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups | Get all server placement groups -*IbmCloudPower::PCloudPlacementGroupsApi* | [**pcloud_placementgroups_members_delete**](docs/PCloudPlacementGroupsApi.md#pcloud_placementgroups_members_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members | Remove server from placement group -*IbmCloudPower::PCloudPlacementGroupsApi* | [**pcloud_placementgroups_members_post**](docs/PCloudPlacementGroupsApi.md#pcloud_placementgroups_members_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members | Add server to placement group -*IbmCloudPower::PCloudPlacementGroupsApi* | [**pcloud_placementgroups_post**](docs/PCloudPlacementGroupsApi.md#pcloud_placementgroups_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups | Create a server placement group -*IbmCloudPower::PCloudSAPApi* | [**pcloud_sap_get**](docs/PCloudSAPApi.md#pcloud_sap_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/sap/{sap_profile_id} | Get the information on an SAP profile -*IbmCloudPower::PCloudSAPApi* | [**pcloud_sap_getall**](docs/PCloudSAPApi.md#pcloud_sap_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/sap | Get list of SAP profiles -*IbmCloudPower::PCloudSAPApi* | [**pcloud_sap_post**](docs/PCloudSAPApi.md#pcloud_sap_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/sap | Create a new SAP PVM Instance -*IbmCloudPower::PCloudSnapshotsApi* | [**pcloud_cloudinstances_snapshots_delete**](docs/PCloudSnapshotsApi.md#pcloud_cloudinstances_snapshots_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id} | Delete a PVM instance snapshot of a cloud instance -*IbmCloudPower::PCloudSnapshotsApi* | [**pcloud_cloudinstances_snapshots_get**](docs/PCloudSnapshotsApi.md#pcloud_cloudinstances_snapshots_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id} | Get the detail of a snapshot -*IbmCloudPower::PCloudSnapshotsApi* | [**pcloud_cloudinstances_snapshots_getall**](docs/PCloudSnapshotsApi.md#pcloud_cloudinstances_snapshots_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots | List all PVM instance snapshots for this cloud instance -*IbmCloudPower::PCloudSnapshotsApi* | [**pcloud_cloudinstances_snapshots_put**](docs/PCloudSnapshotsApi.md#pcloud_cloudinstances_snapshots_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id} | Update a PVM instance snapshot -*IbmCloudPower::PCloudStorageCapacityApi* | [**pcloud_storagecapacity_pools_get**](docs/PCloudStorageCapacityApi.md#pcloud_storagecapacity_pools_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools/{storage_pool_name} | Storage capacity for a storage pool in a region -*IbmCloudPower::PCloudStorageCapacityApi* | [**pcloud_storagecapacity_pools_getall**](docs/PCloudStorageCapacityApi.md#pcloud_storagecapacity_pools_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools | Storage capacity for all available storage pools in a region -*IbmCloudPower::PCloudStorageCapacityApi* | [**pcloud_storagecapacity_types_get**](docs/PCloudStorageCapacityApi.md#pcloud_storagecapacity_types_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types/{storage_type_name} | Storage capacity for a storage type in a region -*IbmCloudPower::PCloudStorageCapacityApi* | [**pcloud_storagecapacity_types_getall**](docs/PCloudStorageCapacityApi.md#pcloud_storagecapacity_types_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types | Storage capacity for all available storage types in a region -*IbmCloudPower::PCloudSystemPoolsApi* | [**pcloud_systempools_get**](docs/PCloudSystemPoolsApi.md#pcloud_systempools_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/system-pools | List of available system pools within a particular data center -*IbmCloudPower::PCloudTasksApi* | [**pcloud_tasks_delete**](docs/PCloudTasksApi.md#pcloud_tasks_delete) | **DELETE** /pcloud/v1/tasks/{task_id} | Delete a task -*IbmCloudPower::PCloudTasksApi* | [**pcloud_tasks_get**](docs/PCloudTasksApi.md#pcloud_tasks_get) | **GET** /pcloud/v1/tasks/{task_id} | Get a task -*IbmCloudPower::PCloudTenantsApi* | [**pcloud_tenants_get**](docs/PCloudTenantsApi.md#pcloud_tenants_get) | **GET** /pcloud/v1/tenants/{tenant_id} | Get a tenant's current state or information -*IbmCloudPower::PCloudTenantsApi* | [**pcloud_tenants_put**](docs/PCloudTenantsApi.md#pcloud_tenants_put) | **PUT** /pcloud/v1/tenants/{tenant_id} | Update a tenant -*IbmCloudPower::PCloudTenantsSSHKeysApi* | [**pcloud_tenants_sshkeys_delete**](docs/PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_delete) | **DELETE** /pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name} | Delete a tenant's SSH key -*IbmCloudPower::PCloudTenantsSSHKeysApi* | [**pcloud_tenants_sshkeys_get**](docs/PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_get) | **GET** /pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name} | Get a tenant's SSH Key by name -*IbmCloudPower::PCloudTenantsSSHKeysApi* | [**pcloud_tenants_sshkeys_getall**](docs/PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_getall) | **GET** /pcloud/v1/tenants/{tenant_id}/sshkeys | List a tenant's SSH Keys -*IbmCloudPower::PCloudTenantsSSHKeysApi* | [**pcloud_tenants_sshkeys_post**](docs/PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_post) | **POST** /pcloud/v1/tenants/{tenant_id}/sshkeys | Add a new SSH key to the tenant -*IbmCloudPower::PCloudTenantsSSHKeysApi* | [**pcloud_tenants_sshkeys_put**](docs/PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_put) | **PUT** /pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name} | Update an SSH Key -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_cloudinstances_volumes_delete**](docs/PCloudVolumesApi.md#pcloud_cloudinstances_volumes_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id} | Delete a cloud instance volume -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_cloudinstances_volumes_get**](docs/PCloudVolumesApi.md#pcloud_cloudinstances_volumes_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id} | Detailed information of a volume -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_cloudinstances_volumes_getall**](docs/PCloudVolumesApi.md#pcloud_cloudinstances_volumes_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes | List all volumes for this cloud instance -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_cloudinstances_volumes_post**](docs/PCloudVolumesApi.md#pcloud_cloudinstances_volumes_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes | Create a new data volume -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_cloudinstances_volumes_put**](docs/PCloudVolumesApi.md#pcloud_cloudinstances_volumes_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id} | Update a cloud instance volume -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_pvminstances_volumes_delete**](docs/PCloudVolumesApi.md#pcloud_pvminstances_volumes_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id} | Detach a volume from a PVM Instance -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_pvminstances_volumes_get**](docs/PCloudVolumesApi.md#pcloud_pvminstances_volumes_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id} | Detailed information of a volume attached to a PVM Instance -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_pvminstances_volumes_getall**](docs/PCloudVolumesApi.md#pcloud_pvminstances_volumes_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes | List all volumes attached to a PVM Instance -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_pvminstances_volumes_post**](docs/PCloudVolumesApi.md#pcloud_pvminstances_volumes_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id} | Attach a volume to a PVM Instance -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_pvminstances_volumes_put**](docs/PCloudVolumesApi.md#pcloud_pvminstances_volumes_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id} | Update a volume attached to a PVMInstance -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_pvminstances_volumes_setboot_put**](docs/PCloudVolumesApi.md#pcloud_pvminstances_volumes_setboot_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}/setboot | Set the PVMInstance volume as the boot volume -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumes_clone_post**](docs/PCloudVolumesApi.md#pcloud_v2_volumes_clone_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone | Create a volume clone for specified volumes (version 2) -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumes_clonetasks_get**](docs/PCloudVolumesApi.md#pcloud_v2_volumes_clonetasks_get) | **GET** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone-tasks/{clone_task_id} | Get the status of a volume clone request for the specified clone task ID -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumes_post**](docs/PCloudVolumesApi.md#pcloud_v2_volumes_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes | Create multiple data volumes from a single definition -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumesclone_cancel_post**](docs/PCloudVolumesApi.md#pcloud_v2_volumesclone_cancel_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/cancel | Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action performs the cleanup of the preparatory clones and snapshot volumes. -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumesclone_delete**](docs/PCloudVolumesApi.md#pcloud_v2_volumesclone_delete) | **DELETE** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id} | Delete a volumes-clone request -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumesclone_execute_post**](docs/PCloudVolumesApi.md#pcloud_v2_volumesclone_execute_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/execute | Initiate the Execute action for a volumes-clone request. The Execute action creates the cloned volumes using the volume snapshots. -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumesclone_get**](docs/PCloudVolumesApi.md#pcloud_v2_volumesclone_get) | **GET** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id} | Get the details for a volumes-clone request -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumesclone_getall**](docs/PCloudVolumesApi.md#pcloud_v2_volumesclone_getall) | **GET** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone | Get the list of volumes-clone request for a cloud instance -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumesclone_post**](docs/PCloudVolumesApi.md#pcloud_v2_volumesclone_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone | Create a new volumes clone request and initiate the Prepare action -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_v2_volumesclone_start_post**](docs/PCloudVolumesApi.md#pcloud_v2_volumesclone_start_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/start | Initiate the Start action for a volume-clone request. The Start action starts the consistency group to initiate the flash copy. -*IbmCloudPower::PCloudVolumesApi* | [**pcloud_volumes_clone_post**](docs/PCloudVolumesApi.md#pcloud_volumes_clone_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/clone | Create a volume clone for specified volumes (version 1 - depricated) - - -## Documentation for Models - - - [IbmCloudPower::CloneTaskReference](docs/CloneTaskReference.md) - - [IbmCloudPower::CloneTaskStatus](docs/CloneTaskStatus.md) - - [IbmCloudPower::ClonedVolume](docs/ClonedVolume.md) - - [IbmCloudPower::ClonedVolumeDetail](docs/ClonedVolumeDetail.md) - - [IbmCloudPower::CloudConnection](docs/CloudConnection.md) - - [IbmCloudPower::CloudConnectionCreate](docs/CloudConnectionCreate.md) - - [IbmCloudPower::CloudConnectionEndpointClassic](docs/CloudConnectionEndpointClassic.md) - - [IbmCloudPower::CloudConnectionEndpointGRE](docs/CloudConnectionEndpointGRE.md) - - [IbmCloudPower::CloudConnectionEndpointVPC](docs/CloudConnectionEndpointVPC.md) - - [IbmCloudPower::CloudConnectionGRETunnel](docs/CloudConnectionGRETunnel.md) - - [IbmCloudPower::CloudConnectionSpeed](docs/CloudConnectionSpeed.md) - - [IbmCloudPower::CloudConnectionUpdate](docs/CloudConnectionUpdate.md) - - [IbmCloudPower::CloudConnectionVPC](docs/CloudConnectionVPC.md) - - [IbmCloudPower::CloudConnectionVirtualPrivateClouds](docs/CloudConnectionVirtualPrivateClouds.md) - - [IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds](docs/CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md) - - [IbmCloudPower::CloudConnections](docs/CloudConnections.md) - - [IbmCloudPower::CloudInstance](docs/CloudInstance.md) - - [IbmCloudPower::CloudInstanceCreate](docs/CloudInstanceCreate.md) - - [IbmCloudPower::CloudInstanceReference](docs/CloudInstanceReference.md) - - [IbmCloudPower::CloudInstanceUpdate](docs/CloudInstanceUpdate.md) - - [IbmCloudPower::CloudInstanceUsageLimits](docs/CloudInstanceUsageLimits.md) - - [IbmCloudPower::CreateDataVolume](docs/CreateDataVolume.md) - - [IbmCloudPower::CreateImage](docs/CreateImage.md) - - [IbmCloudPower::Error](docs/Error.md) - - [IbmCloudPower::Event](docs/Event.md) - - [IbmCloudPower::EventUser](docs/EventUser.md) - - [IbmCloudPower::Events](docs/Events.md) - - [IbmCloudPower::ExportImage](docs/ExportImage.md) - - [IbmCloudPower::IPAddressRange](docs/IPAddressRange.md) - - [IbmCloudPower::Image](docs/Image.md) - - [IbmCloudPower::ImageReference](docs/ImageReference.md) - - [IbmCloudPower::ImageSpecifications](docs/ImageSpecifications.md) - - [IbmCloudPower::ImageVolume](docs/ImageVolume.md) - - [IbmCloudPower::Images](docs/Images.md) - - [IbmCloudPower::MaximumStorageAllocation](docs/MaximumStorageAllocation.md) - - [IbmCloudPower::MinMaxDefault](docs/MinMaxDefault.md) - - [IbmCloudPower::MultiVolumesCreate](docs/MultiVolumesCreate.md) - - [IbmCloudPower::Network](docs/Network.md) - - [IbmCloudPower::NetworkCreate](docs/NetworkCreate.md) - - [IbmCloudPower::NetworkIpAddressMetrics](docs/NetworkIpAddressMetrics.md) - - [IbmCloudPower::NetworkPort](docs/NetworkPort.md) - - [IbmCloudPower::NetworkPortCreate](docs/NetworkPortCreate.md) - - [IbmCloudPower::NetworkPortPvmInstance](docs/NetworkPortPvmInstance.md) - - [IbmCloudPower::NetworkPortUpdate](docs/NetworkPortUpdate.md) - - [IbmCloudPower::NetworkPorts](docs/NetworkPorts.md) - - [IbmCloudPower::NetworkReference](docs/NetworkReference.md) - - [IbmCloudPower::NetworkUpdate](docs/NetworkUpdate.md) - - [IbmCloudPower::Networks](docs/Networks.md) - - [IbmCloudPower::Operations](docs/Operations.md) - - [IbmCloudPower::PVMInstance](docs/PVMInstance.md) - - [IbmCloudPower::PVMInstanceAction](docs/PVMInstanceAction.md) - - [IbmCloudPower::PVMInstanceAddNetwork](docs/PVMInstanceAddNetwork.md) - - [IbmCloudPower::PVMInstanceCapture](docs/PVMInstanceCapture.md) - - [IbmCloudPower::PVMInstanceClone](docs/PVMInstanceClone.md) - - [IbmCloudPower::PVMInstanceConsole](docs/PVMInstanceConsole.md) - - [IbmCloudPower::PVMInstanceCreate](docs/PVMInstanceCreate.md) - - [IbmCloudPower::PVMInstanceFault](docs/PVMInstanceFault.md) - - [IbmCloudPower::PVMInstanceHealth](docs/PVMInstanceHealth.md) - - [IbmCloudPower::PVMInstanceMultiCreate](docs/PVMInstanceMultiCreate.md) - - [IbmCloudPower::PVMInstanceNetwork](docs/PVMInstanceNetwork.md) - - [IbmCloudPower::PVMInstanceNetworks](docs/PVMInstanceNetworks.md) - - [IbmCloudPower::PVMInstanceOperation](docs/PVMInstanceOperation.md) - - [IbmCloudPower::PVMInstanceReference](docs/PVMInstanceReference.md) - - [IbmCloudPower::PVMInstanceRemoveNetwork](docs/PVMInstanceRemoveNetwork.md) - - [IbmCloudPower::PVMInstanceUpdate](docs/PVMInstanceUpdate.md) - - [IbmCloudPower::PVMInstanceUpdateResponse](docs/PVMInstanceUpdateResponse.md) - - [IbmCloudPower::PVMInstanceVolumeUpdate](docs/PVMInstanceVolumeUpdate.md) - - [IbmCloudPower::PVMInstances](docs/PVMInstances.md) - - [IbmCloudPower::PeeringNetwork](docs/PeeringNetwork.md) - - [IbmCloudPower::PinPolicy](docs/PinPolicy.md) - - [IbmCloudPower::PlacementGroup](docs/PlacementGroup.md) - - [IbmCloudPower::PlacementGroupCreate](docs/PlacementGroupCreate.md) - - [IbmCloudPower::PlacementGroupServer](docs/PlacementGroupServer.md) - - [IbmCloudPower::PlacementGroups](docs/PlacementGroups.md) - - [IbmCloudPower::SAPCreate](docs/SAPCreate.md) - - [IbmCloudPower::SAPProfile](docs/SAPProfile.md) - - [IbmCloudPower::SAPProfileReference](docs/SAPProfileReference.md) - - [IbmCloudPower::SAPProfiles](docs/SAPProfiles.md) - - [IbmCloudPower::SRC](docs/SRC.md) - - [IbmCloudPower::SSHKey](docs/SSHKey.md) - - [IbmCloudPower::SSHKeys](docs/SSHKeys.md) - - [IbmCloudPower::Snapshot](docs/Snapshot.md) - - [IbmCloudPower::SnapshotCreate](docs/SnapshotCreate.md) - - [IbmCloudPower::SnapshotCreateResponse](docs/SnapshotCreateResponse.md) - - [IbmCloudPower::SnapshotRestore](docs/SnapshotRestore.md) - - [IbmCloudPower::SnapshotUpdate](docs/SnapshotUpdate.md) - - [IbmCloudPower::Snapshots](docs/Snapshots.md) - - [IbmCloudPower::SoftwareLicenses](docs/SoftwareLicenses.md) - - [IbmCloudPower::StockImage](docs/StockImage.md) - - [IbmCloudPower::StoragePoolCapacity](docs/StoragePoolCapacity.md) - - [IbmCloudPower::StoragePoolsCapacity](docs/StoragePoolsCapacity.md) - - [IbmCloudPower::StorageTypeCapacity](docs/StorageTypeCapacity.md) - - [IbmCloudPower::StorageTypesCapacity](docs/StorageTypesCapacity.md) - - [IbmCloudPower::System](docs/System.md) - - [IbmCloudPower::SystemPool](docs/SystemPool.md) - - [IbmCloudPower::Task](docs/Task.md) - - [IbmCloudPower::TaskReference](docs/TaskReference.md) - - [IbmCloudPower::Tenant](docs/Tenant.md) - - [IbmCloudPower::TenantUpdate](docs/TenantUpdate.md) - - [IbmCloudPower::UpdateVolume](docs/UpdateVolume.md) - - [IbmCloudPower::VirtualCores](docs/VirtualCores.md) - - [IbmCloudPower::Volume](docs/Volume.md) - - [IbmCloudPower::VolumeInfo](docs/VolumeInfo.md) - - [IbmCloudPower::VolumeReference](docs/VolumeReference.md) - - [IbmCloudPower::Volumes](docs/Volumes.md) - - [IbmCloudPower::VolumesClone](docs/VolumesClone.md) - - [IbmCloudPower::VolumesCloneAsyncRequest](docs/VolumesCloneAsyncRequest.md) - - [IbmCloudPower::VolumesCloneCancel](docs/VolumesCloneCancel.md) - - [IbmCloudPower::VolumesCloneCreate](docs/VolumesCloneCreate.md) - - [IbmCloudPower::VolumesCloneDetail](docs/VolumesCloneDetail.md) - - [IbmCloudPower::VolumesCloneExecute](docs/VolumesCloneExecute.md) - - [IbmCloudPower::VolumesCloneRequest](docs/VolumesCloneRequest.md) - - [IbmCloudPower::VolumesCloneResponse](docs/VolumesCloneResponse.md) - - [IbmCloudPower::VolumesClones](docs/VolumesClones.md) - - -## Documentation for Authorization - - All endpoints do not require authorization. - diff --git a/gems/ibm_cloud_power/Rakefile b/gems/ibm_cloud_power/Rakefile deleted file mode 100644 index c72ca30d..00000000 --- a/gems/ibm_cloud_power/Rakefile +++ /dev/null @@ -1,10 +0,0 @@ -require "bundler/gem_tasks" - -begin - require 'rspec/core/rake_task' - - RSpec::Core::RakeTask.new(:spec) - task default: :spec -rescue LoadError - # no rspec available -end diff --git a/gems/ibm_cloud_power/docs/CloneTaskReference.md b/gems/ibm_cloud_power/docs/CloneTaskReference.md deleted file mode 100644 index 0d03801f..00000000 --- a/gems/ibm_cloud_power/docs/CloneTaskReference.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::CloneTaskReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clone_task_id** | **String** | ID of a long running PowerVC clone task | -**href** | **String** | Link to PowerVC clone task resource | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloneTaskReference.new(clone_task_id: null, - href: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloneTaskStatus.md b/gems/ibm_cloud_power/docs/CloneTaskStatus.md deleted file mode 100644 index 04ff50c2..00000000 --- a/gems/ibm_cloud_power/docs/CloneTaskStatus.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::CloneTaskStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **String** | Status of the clone volumes task | -**percent_complete** | **Integer** | Snapshot completion percentage | -**cloned_volumes** | [**Array<ClonedVolume>**](ClonedVolume.md) | List of cloned volumes created from the clone volumes task | [optional] -**failed_reason** | **String** | The reason the clone volumes task has failed | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloneTaskStatus.new(status: null, - percent_complete: null, - cloned_volumes: null, - failed_reason: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/ClonedVolume.md b/gems/ibm_cloud_power/docs/ClonedVolume.md deleted file mode 100644 index 1ae9302f..00000000 --- a/gems/ibm_cloud_power/docs/ClonedVolume.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::ClonedVolume - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**source_volume_id** | **String** | ID of the source volume to be cloned | [optional] -**cloned_volume_id** | **String** | ID of the new cloned volume | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::ClonedVolume.new(source_volume_id: null, - cloned_volume_id: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/ClonedVolumeDetail.md b/gems/ibm_cloud_power/docs/ClonedVolumeDetail.md deleted file mode 100644 index 0d5edc91..00000000 --- a/gems/ibm_cloud_power/docs/ClonedVolumeDetail.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::ClonedVolumeDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**source** | [**VolumeInfo**](VolumeInfo.md) | | -**clone** | [**VolumeInfo**](VolumeInfo.md) | | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::ClonedVolumeDetail.new(source: null, - clone: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnection.md b/gems/ibm_cloud_power/docs/CloudConnection.md deleted file mode 100644 index 40b5eb69..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnection.md +++ /dev/null @@ -1,41 +0,0 @@ -# IbmCloudPower::CloudConnection - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cloud_connection_id** | **String** | cloud connection ID | -**name** | **String** | name of the cloud connection | -**speed** | **Integer** | speed of the cloud connection (speed in megabits per second) | -**global_routing** | **Boolean** | enable global routing for this cloud connection (default=false) | -**classic** | [**CloudConnectionEndpointClassic**](CloudConnectionEndpointClassic.md) | | [optional] -**vpc** | [**CloudConnectionEndpointVPC**](CloudConnectionEndpointVPC.md) | | [optional] -**creation_date** | **DateTime** | creation date | -**user_ip_address** | **String** | user IP address | -**ibm_ip_address** | **String** | IBM IP address | -**port** | **Integer** | port | -**link_status** | **String** | link status | -**metered** | **Boolean** | metered | -**networks** | [**Array<NetworkReference>**](NetworkReference.md) | Network References | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnection.new(cloud_connection_id: null, - name: null, - speed: null, - global_routing: null, - classic: null, - vpc: null, - creation_date: null, - user_ip_address: null, - ibm_ip_address: null, - port: null, - link_status: null, - metered: null, - networks: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionCreate.md b/gems/ibm_cloud_power/docs/CloudConnectionCreate.md deleted file mode 100644 index 3d22f534..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionCreate.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::CloudConnectionCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name of the cloud connection | -**speed** | **Integer** | speed of the cloud connection (speed in megabits per second) | -**global_routing** | **Boolean** | enable global routing for this cloud connection (default=false) | [optional] -**metered** | **Boolean** | enable metered for this cloud connection (default=false) | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionCreate.new(name: null, - speed: null, - global_routing: null, - metered: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionEndpointClassic.md b/gems/ibm_cloud_power/docs/CloudConnectionEndpointClassic.md deleted file mode 100644 index 787964c0..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionEndpointClassic.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::CloudConnectionEndpointClassic - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **Boolean** | enable classic endpoint destination (default=false) | [optional] -**gre** | [**CloudConnectionEndpointGRE**](CloudConnectionEndpointGRE.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionEndpointClassic.new(enabled: null, - gre: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionEndpointGRE.md b/gems/ibm_cloud_power/docs/CloudConnectionEndpointGRE.md deleted file mode 100644 index 7a0666e7..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionEndpointGRE.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::CloudConnectionEndpointGRE - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **Boolean** | enable gre for this cloud connection (default=false) | [optional] -**tunnels** | [**Array<CloudConnectionGRETunnel>**](CloudConnectionGRETunnel.md) | gre tunnels configured | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionEndpointGRE.new(enabled: null, - tunnels: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionEndpointVPC.md b/gems/ibm_cloud_power/docs/CloudConnectionEndpointVPC.md deleted file mode 100644 index 4bc91487..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionEndpointVPC.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::CloudConnectionEndpointVPC - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **Boolean** | enable vpc for this cloud connection (default=false) | [optional] -**vpcs** | [**Array<CloudConnectionVPC>**](CloudConnectionVPC.md) | vpc connections | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionEndpointVPC.new(enabled: null, - vpcs: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionGRETunnel.md b/gems/ibm_cloud_power/docs/CloudConnectionGRETunnel.md deleted file mode 100644 index 21af5760..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionGRETunnel.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::CloudConnectionGRETunnel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**source_ip_address** | **String** | gre auto-assigned source IP address | [optional] -**dest_ip_address** | **String** | gre destination IP address | -**cidr** | **String** | gre network in CIDR notation (192.168.0.0/24) | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionGRETunnel.new(source_ip_address: null, - dest_ip_address: null, - cidr: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionSpeed.md b/gems/ibm_cloud_power/docs/CloudConnectionSpeed.md deleted file mode 100644 index 6729c10f..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionSpeed.md +++ /dev/null @@ -1,16 +0,0 @@ -# IbmCloudPower::CloudConnectionSpeed - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionSpeed.new() -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionUpdate.md b/gems/ibm_cloud_power/docs/CloudConnectionUpdate.md deleted file mode 100644 index 6c35fd09..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionUpdate.md +++ /dev/null @@ -1,27 +0,0 @@ -# IbmCloudPower::CloudConnectionUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name of the cloud connection | [optional] -**speed** | **Integer** | speed of the cloud connection (speed in megabits per second) | [optional] -**global_routing** | **Boolean** | enable global routing for this cloud connection (default=false) | [optional] -**metered** | **Boolean** | enable metered for this cloud connection (default=false) | [optional] -**classic** | [**CloudConnectionEndpointClassic**](CloudConnectionEndpointClassic.md) | | [optional] -**vpc** | [**CloudConnectionEndpointVPC**](CloudConnectionEndpointVPC.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionUpdate.new(name: null, - speed: null, - global_routing: null, - metered: null, - classic: null, - vpc: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionVPC.md b/gems/ibm_cloud_power/docs/CloudConnectionVPC.md deleted file mode 100644 index f3af261f..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionVPC.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::CloudConnectionVPC - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**vpc_id** | **String** | CRN of the specific service | -**name** | **String** | vpc name | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionVPC.new(vpc_id: null, - name: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionVirtualPrivateClouds.md b/gems/ibm_cloud_power/docs/CloudConnectionVirtualPrivateClouds.md deleted file mode 100644 index 444d50a1..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionVirtualPrivateClouds.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::CloudConnectionVirtualPrivateClouds - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**virtual_private_clouds** | [**Array<CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds>**](CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md) | list of available virtual private clouds | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionVirtualPrivateClouds.new(virtual_private_clouds: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md b/gems/ibm_cloud_power/docs/CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md deleted file mode 100644 index 0895b5de..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**classic_access** | **Boolean** | indicates if vpc uses classic architecture | -**vpc_id** | **String** | CRN of the specific service | -**name** | **String** | name for the vpc | -**status** | **String** | status of this vpc | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.new(classic_access: null, - vpc_id: null, - name: null, - status: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudConnections.md b/gems/ibm_cloud_power/docs/CloudConnections.md deleted file mode 100644 index 2c89f8d7..00000000 --- a/gems/ibm_cloud_power/docs/CloudConnections.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::CloudConnections - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cloud_connections** | [**Array<CloudConnection>**](CloudConnection.md) | Cloud Connections | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudConnections.new(cloud_connections: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudInstance.md b/gems/ibm_cloud_power/docs/CloudInstance.md deleted file mode 100644 index f05c0daf..00000000 --- a/gems/ibm_cloud_power/docs/CloudInstance.md +++ /dev/null @@ -1,37 +0,0 @@ -# IbmCloudPower::CloudInstance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cloud_instance_id** | **String** | Cloud Instance ID | -**name** | **String** | Cloud Instance Name | -**tenant_id** | **String** | The tenant ID that owns this cloud instance | -**openstack_id** | **String** | The open stack ID that controls this cloud instance | -**region** | **String** | The region the cloud instance lives | -**enabled** | **Boolean** | Indicates if the cloud instance is enabled | -**initialized** | **Boolean** | Indicates if the cloud instance is initialized and ready for use | -**limits** | [**CloudInstanceUsageLimits**](CloudInstanceUsageLimits.md) | | -**usage** | [**CloudInstanceUsageLimits**](CloudInstanceUsageLimits.md) | | -**capabilities** | **Array<String>** | Cloud Instance Capabilities | [optional] -**pvm_instances** | [**Array<PVMInstanceReference>**](PVMInstanceReference.md) | PVM instances owned by the Cloud Instance | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudInstance.new(cloud_instance_id: null, - name: null, - tenant_id: null, - openstack_id: null, - region: null, - enabled: null, - initialized: null, - limits: null, - usage: null, - capabilities: null, - pvm_instances: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudInstanceCreate.md b/gems/ibm_cloud_power/docs/CloudInstanceCreate.md deleted file mode 100644 index d71260af..00000000 --- a/gems/ibm_cloud_power/docs/CloudInstanceCreate.md +++ /dev/null @@ -1,29 +0,0 @@ -# IbmCloudPower::CloudInstanceCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tenant_id** | **String** | The tenant ID that owns this cloud instance | -**region** | **String** | The region the cloud instance lives | -**processors** | **Float** | Number of processors allowed | -**proc_units** | **Float** | Number of processor units allowed | -**memory** | **Float** | Amount of memory allowed | -**instances** | **Float** | Number of power instances allowed | [optional] -**storage** | **Float** | Amount of storage allowed (TB) | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudInstanceCreate.new(tenant_id: null, - region: null, - processors: null, - proc_units: null, - memory: null, - instances: null, - storage: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudInstanceReference.md b/gems/ibm_cloud_power/docs/CloudInstanceReference.md deleted file mode 100644 index 0f22eec0..00000000 --- a/gems/ibm_cloud_power/docs/CloudInstanceReference.md +++ /dev/null @@ -1,31 +0,0 @@ -# IbmCloudPower::CloudInstanceReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cloud_instance_id** | **String** | Cloud Instance ID | -**name** | **String** | Cloud Instance Name | -**region** | **String** | The region the cloud instance lives | -**enabled** | **Boolean** | Indicates if the cloud instance is enabled | -**initialized** | **Boolean** | Indicates if the cloud instance is initialized and ready for use | -**limits** | [**CloudInstanceUsageLimits**](CloudInstanceUsageLimits.md) | | -**capabilities** | **Array<String>** | Cloud Instance Capabilities | [optional] -**href** | **String** | Link to Cloud Instance resource | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudInstanceReference.new(cloud_instance_id: null, - name: null, - region: null, - enabled: null, - initialized: null, - limits: null, - capabilities: null, - href: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudInstanceUpdate.md b/gems/ibm_cloud_power/docs/CloudInstanceUpdate.md deleted file mode 100644 index dfc82677..00000000 --- a/gems/ibm_cloud_power/docs/CloudInstanceUpdate.md +++ /dev/null @@ -1,25 +0,0 @@ -# IbmCloudPower::CloudInstanceUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**processors** | **Float** | Number of processors allowed | [optional] -**proc_units** | **Float** | Number of processor units allowed | [optional] -**memory** | **Float** | Amount of memory allowed | [optional] -**instances** | **Float** | Number of power instances allowed | [optional] -**storage** | **Float** | Amount of storage allowed (TB) | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudInstanceUpdate.new(processors: null, - proc_units: null, - memory: null, - instances: null, - storage: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CloudInstanceUsageLimits.md b/gems/ibm_cloud_power/docs/CloudInstanceUsageLimits.md deleted file mode 100644 index 53b2d407..00000000 --- a/gems/ibm_cloud_power/docs/CloudInstanceUsageLimits.md +++ /dev/null @@ -1,37 +0,0 @@ -# IbmCloudPower::CloudInstanceUsageLimits - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**instances** | **Float** | Number of power instances allowed | -**memory** | **Float** | Amount of memory allowed | -**proc_units** | **Float** | Number of processor units allowed | -**processors** | **Float** | Number of processors allowed | -**storage** | **Float** | Amount of storage allowed (TB) | -**instance_memory** | **Float** | Maximum memory (in GB) per PVMInstance | [optional] -**instance_proc_units** | **Float** | Maximum proc units per PVMInstance | [optional] -**peering_networks** | **Integer** | Amount of peering networks allowed | [optional] -**peering_bandwidth** | **Integer** | Maximum network bandwidth to GCP Mbps | [optional] -**storage_ssd** | **Float** | Amount of SSD storage allowed (TB) | [optional] -**storage_standard** | **Float** | Amount of standard (HDD) storage allowed (TB) | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CloudInstanceUsageLimits.new(instances: null, - memory: null, - proc_units: null, - processors: null, - storage: null, - instance_memory: null, - instance_proc_units: null, - peering_networks: null, - peering_bandwidth: null, - storage_ssd: null, - storage_standard: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CreateDataVolume.md b/gems/ibm_cloud_power/docs/CreateDataVolume.md deleted file mode 100644 index 2b50f918..00000000 --- a/gems/ibm_cloud_power/docs/CreateDataVolume.md +++ /dev/null @@ -1,29 +0,0 @@ -# IbmCloudPower::CreateDataVolume - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**disk_type** | **String** | Type of disk, required if affinityPolicy is not provided, otherwise ignored | [optional] -**name** | **String** | Volume Name | -**size** | **Float** | Volume Size (GB) | -**shareable** | **Boolean** | Indicates if the volume is shareable between VMs | [optional] -**affinity_policy** | **String** | Affinity policy for data volume being created; requires affinityPVMInstance or affinityVolume to be specified; | [optional] -**affinity_volume** | **String** | Volume (ID or Name) to base volume affinity policy against; required if affinityPolicy is provided and affinityPVMInstance is not provided | [optional] -**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] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CreateDataVolume.new(disk_type: null, - name: null, - size: null, - shareable: null, - affinity_policy: null, - affinity_volume: null, - affinity_pvm_instance: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/CreateImage.md b/gems/ibm_cloud_power/docs/CreateImage.md deleted file mode 100644 index 7a2f61e9..00000000 --- a/gems/ibm_cloud_power/docs/CreateImage.md +++ /dev/null @@ -1,37 +0,0 @@ -# IbmCloudPower::CreateImage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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. | -**image_id** | **String** | Image ID of existing stock image; required for copy image | [optional] -**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] -**image_path** | **String** | (deprecated - replaced by region, imageFilename and bucketName) Path to image starting with service endpoint and ending with image filename | [optional] -**region** | **String** | Cloud Storage Region; only required to access IBM Cloud Storage | [optional] -**image_filename** | **String** | Cloud Storage image filename; required for import image | [optional] -**bucket_name** | **String** | Cloud Storage bucket name; bucket-name[/optional/folder]; required for import image | [optional] -**access_key** | **String** | Cloud Storage access key; required for import image | [optional] -**secret_key** | **String** | Cloud Storage secret key; required for import image | [optional] -**os_type** | **String** | Image OS Type, required if importing a raw image; raw images can only be imported using the command line interface | [optional] -**disk_type** | **String** | Type of Disk | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::CreateImage.new(source: null, - image_id: null, - image_name: null, - image_path: null, - region: null, - image_filename: null, - bucket_name: null, - access_key: null, - secret_key: null, - os_type: null, - disk_type: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Error.md b/gems/ibm_cloud_power/docs/Error.md deleted file mode 100644 index 555ffed3..00000000 --- a/gems/ibm_cloud_power/docs/Error.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::Error - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | **String** | | [optional] -**description** | **String** | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Error.new(error: null, - description: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Event.md b/gems/ibm_cloud_power/docs/Event.md deleted file mode 100644 index 619cac70..00000000 --- a/gems/ibm_cloud_power/docs/Event.md +++ /dev/null @@ -1,33 +0,0 @@ -# IbmCloudPower::Event - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**event_id** | **String** | ID of the Activity | -**time** | **DateTime** | Time of activity in ISO 8601 - RFC3339 | -**timestamp** | **Integer** | Time of activity in unix epoch | -**user** | [**EventUser**](EventUser.md) | | [optional] -**level** | **String** | Level of the event (notice, info, warning, error) | -**resource** | **String** | Type of resource for this event | -**action** | **String** | Type of action for this event | -**message** | **String** | The (translated) message of the event | -**metadata** | **Object** | Any metadata associated with the event | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Event.new(event_id: null, - time: null, - timestamp: null, - user: null, - level: null, - resource: null, - action: null, - message: null, - metadata: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/EventUser.md b/gems/ibm_cloud_power/docs/EventUser.md deleted file mode 100644 index ba2694c1..00000000 --- a/gems/ibm_cloud_power/docs/EventUser.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::EventUser - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **String** | ID of user who created/caused the event | -**name** | **String** | Name of the User | [optional] -**email** | **String** | Email of the User | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::EventUser.new(user_id: null, - name: null, - email: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Events.md b/gems/ibm_cloud_power/docs/Events.md deleted file mode 100644 index 2250d65b..00000000 --- a/gems/ibm_cloud_power/docs/Events.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::Events - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**events** | [**Array<Event>**](Event.md) | Events | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Events.new(events: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/ExportImage.md b/gems/ibm_cloud_power/docs/ExportImage.md deleted file mode 100644 index b9a27b2b..00000000 --- a/gems/ibm_cloud_power/docs/ExportImage.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::ExportImage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bucket_name** | **String** | Cloud Object Storage Bucket name | -**region** | **String** | Cloud Object Storage Region; required for IBM COS | [optional] -**access_key** | **String** | Cloud Object Storage Access key | -**secret_key** | **String** | Cloud Object Storage Secret key | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::ExportImage.new(bucket_name: null, - region: null, - access_key: null, - secret_key: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/IPAddressRange.md b/gems/ibm_cloud_power/docs/IPAddressRange.md deleted file mode 100644 index 5b620362..00000000 --- a/gems/ibm_cloud_power/docs/IPAddressRange.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::IPAddressRange - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**starting_ip_address** | **String** | Starting IP Address | -**ending_ip_address** | **String** | Ending IP Address | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::IPAddressRange.new(starting_ip_address: null, - ending_ip_address: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Image.md b/gems/ibm_cloud_power/docs/Image.md deleted file mode 100644 index 43160efc..00000000 --- a/gems/ibm_cloud_power/docs/Image.md +++ /dev/null @@ -1,41 +0,0 @@ -# IbmCloudPower::Image - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**image_id** | **String** | Image ID | -**name** | **String** | Image Name | -**state** | **String** | Image State | [optional] -**description** | **String** | Description | [optional] -**size** | **Float** | Image Size | -**storage_type** | **String** | Storage type for image | -**storage_pool** | **String** | Storage pool where the image is located | -**creation_date** | **DateTime** | Creation Date | -**last_update_date** | **DateTime** | Last Update Date | -**specifications** | [**ImageSpecifications**](ImageSpecifications.md) | | [optional] -**volumes** | [**Array<ImageVolume>**](ImageVolume.md) | Image Volumes | [optional] -**servers** | **Array<String>** | List of Servers that have deployed the image | [optional] -**taskref** | [**TaskReference**](TaskReference.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Image.new(image_id: null, - name: null, - state: null, - description: null, - size: null, - storage_type: null, - storage_pool: null, - creation_date: null, - last_update_date: null, - specifications: null, - volumes: null, - servers: null, - taskref: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/ImageReference.md b/gems/ibm_cloud_power/docs/ImageReference.md deleted file mode 100644 index b17d9724..00000000 --- a/gems/ibm_cloud_power/docs/ImageReference.md +++ /dev/null @@ -1,35 +0,0 @@ -# IbmCloudPower::ImageReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**image_id** | **String** | Image ID | -**name** | **String** | Image Name | -**state** | **String** | Image State | -**description** | **String** | Description | -**storage_type** | **String** | Storage type for image | -**storage_pool** | **String** | Storage pool where the image is located | -**creation_date** | **DateTime** | Creation Date | -**last_update_date** | **DateTime** | Last Update Date | -**specifications** | [**ImageSpecifications**](ImageSpecifications.md) | | -**href** | **String** | Link to Image resource | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::ImageReference.new(image_id: null, - name: null, - state: null, - description: null, - storage_type: null, - storage_pool: null, - creation_date: null, - last_update_date: null, - specifications: null, - href: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/ImageSpecifications.md b/gems/ibm_cloud_power/docs/ImageSpecifications.md deleted file mode 100644 index 497be593..00000000 --- a/gems/ibm_cloud_power/docs/ImageSpecifications.md +++ /dev/null @@ -1,29 +0,0 @@ -# IbmCloudPower::ImageSpecifications - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**image_type** | **String** | Image Type | [optional] -**container_format** | **String** | Container Format | [optional] -**disk_format** | **String** | Disk Format | [optional] -**operating_system** | **String** | Operating System | [optional] -**hypervisor_type** | **String** | Hypervisor Type | [optional] -**architecture** | **String** | Architecture | [optional] -**endianness** | **String** | Endianness | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::ImageSpecifications.new(image_type: null, - container_format: null, - disk_format: null, - operating_system: null, - hypervisor_type: null, - architecture: null, - endianness: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/ImageVolume.md b/gems/ibm_cloud_power/docs/ImageVolume.md deleted file mode 100644 index 27d8150a..00000000 --- a/gems/ibm_cloud_power/docs/ImageVolume.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::ImageVolume - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**volume_id** | **String** | Volume ID | -**name** | **String** | Volume Name | -**size** | **Float** | Volume Size | -**bootable** | **Boolean** | Indicates if the volume is boot capable | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::ImageVolume.new(volume_id: null, - name: null, - size: null, - bootable: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Images.md b/gems/ibm_cloud_power/docs/Images.md deleted file mode 100644 index f44281ea..00000000 --- a/gems/ibm_cloud_power/docs/Images.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::Images - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**images** | [**Array<ImageReference>**](ImageReference.md) | Images | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Images.new(images: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/MaximumStorageAllocation.md b/gems/ibm_cloud_power/docs/MaximumStorageAllocation.md deleted file mode 100644 index dbe9e050..00000000 --- a/gems/ibm_cloud_power/docs/MaximumStorageAllocation.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::MaximumStorageAllocation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**storage_type** | **String** | Storage type | -**storage_pool** | **String** | Storage pool | -**max_allocation_size** | **Integer** | Maximum allocation storage size (GB) | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::MaximumStorageAllocation.new(storage_type: null, - storage_pool: null, - max_allocation_size: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/MinMaxDefault.md b/gems/ibm_cloud_power/docs/MinMaxDefault.md deleted file mode 100644 index aa721960..00000000 --- a/gems/ibm_cloud_power/docs/MinMaxDefault.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::MinMaxDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min** | **Float** | min value | -**max** | **Float** | max value | -**default** | **Float** | default value | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::MinMaxDefault.new(min: null, - max: null, - default: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/MultiVolumesCreate.md b/gems/ibm_cloud_power/docs/MultiVolumesCreate.md deleted file mode 100644 index 0364eda9..00000000 --- a/gems/ibm_cloud_power/docs/MultiVolumesCreate.md +++ /dev/null @@ -1,31 +0,0 @@ -# IbmCloudPower::MultiVolumesCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Base name of the volume(s) | -**size** | **Integer** | Volume Size (GB) | -**count** | **Integer** | Number of volumes to create | [optional] -**shareable** | **Boolean** | Indicates if the volume is shareable between VMs | [optional] -**disk_type** | **String** | Type of Disk; required if affinityPolicy is not provided, otherwise ignored | [optional] -**affinity_policy** | **String** | Affinity policy for data volume being created; requires affinityPVMInstance or affinityVolume to be specified; | [optional] -**affinity_volume** | **String** | Volume (ID or Name) to base volume affinity policy against; required if affinityPolicy is provided and affinityPVMInstance is not provided | [optional] -**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] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::MultiVolumesCreate.new(name: null, - size: null, - count: null, - shareable: null, - disk_type: null, - affinity_policy: null, - affinity_volume: null, - affinity_pvm_instance: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Network.md b/gems/ibm_cloud_power/docs/Network.md deleted file mode 100644 index 7eb6748c..00000000 --- a/gems/ibm_cloud_power/docs/Network.md +++ /dev/null @@ -1,37 +0,0 @@ -# IbmCloudPower::Network - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**network_id** | **String** | Unique Network ID | -**name** | **String** | Network Name | -**type** | **String** | Type of Network {vlan, pub-vlan} | [default to 'vlan'] -**vlan_id** | **Float** | VLAN ID | -**cidr** | **String** | Network in CIDR notation (192.168.0.0/24) | -**gateway** | **String** | Gateway IP Address | [optional] -**dns_servers** | **Array<String>** | DNS Servers | -**ip_address_ranges** | [**Array<IPAddressRange>**](IPAddressRange.md) | IP Address Ranges | -**ip_address_metrics** | [**NetworkIpAddressMetrics**](NetworkIpAddressMetrics.md) | | -**public_ip_address_ranges** | [**Array<IPAddressRange>**](IPAddressRange.md) | Public IP Address Ranges (for pub-vlan networks) | [optional] -**jumbo** | **Boolean** | MTU Jumbo Network enabled | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Network.new(network_id: null, - name: null, - type: null, - vlan_id: null, - cidr: null, - gateway: null, - dns_servers: null, - ip_address_ranges: null, - ip_address_metrics: null, - public_ip_address_ranges: null, - jumbo: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/NetworkCreate.md b/gems/ibm_cloud_power/docs/NetworkCreate.md deleted file mode 100644 index 322b94bc..00000000 --- a/gems/ibm_cloud_power/docs/NetworkCreate.md +++ /dev/null @@ -1,29 +0,0 @@ -# IbmCloudPower::NetworkCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Network Name | [optional] -**type** | **String** | Type of Network - 'vlan' (private network) 'pub-vlan' (public network) | [default to 'vlan'] -**cidr** | **String** | Network in CIDR notation (192.168.0.0/24) | [optional] -**gateway** | **String** | Gateway IP Address | [optional] -**dns_servers** | **Array<String>** | DNS Servers | [optional] -**ip_address_ranges** | [**Array<IPAddressRange>**](IPAddressRange.md) | IP Address Ranges | [optional] -**jumbo** | **Boolean** | Enable MTU Jumbo Network | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::NetworkCreate.new(name: null, - type: null, - cidr: null, - gateway: null, - dns_servers: null, - ip_address_ranges: null, - jumbo: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/NetworkIpAddressMetrics.md b/gems/ibm_cloud_power/docs/NetworkIpAddressMetrics.md deleted file mode 100644 index e342ceb7..00000000 --- a/gems/ibm_cloud_power/docs/NetworkIpAddressMetrics.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::NetworkIpAddressMetrics - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**available** | **Float** | Number of available IP addresses | -**used** | **Float** | Number of IP addresses currently in use | -**total** | **Float** | Total number of all IP addresses in all ipAddressRanges | -**utilization** | **Float** | Utilization of IP addresses in percent form (used / total) [0 - 100] | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::NetworkIpAddressMetrics.new(available: null, - used: null, - total: null, - utilization: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/NetworkPort.md b/gems/ibm_cloud_power/docs/NetworkPort.md deleted file mode 100644 index f2e25936..00000000 --- a/gems/ibm_cloud_power/docs/NetworkPort.md +++ /dev/null @@ -1,31 +0,0 @@ -# IbmCloudPower::NetworkPort - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**port_id** | **String** | The unique Port ID | -**description** | **String** | The description of the port (not unique or indexable) | -**status** | **String** | Te | -**mac_address** | **String** | The mac address of the network interface | -**ip_address** | **String** | The ip address of this port | -**external_ip** | **String** | The external ip address (for pub-vlan networks) | [optional] -**pvm_instance** | [**NetworkPortPvmInstance**](NetworkPortPvmInstance.md) | | [optional] -**href** | **String** | Link to port resource | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::NetworkPort.new(port_id: null, - description: null, - status: null, - mac_address: null, - ip_address: null, - external_ip: null, - pvm_instance: null, - href: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/NetworkPortCreate.md b/gems/ibm_cloud_power/docs/NetworkPortCreate.md deleted file mode 100644 index 3b8e8459..00000000 --- a/gems/ibm_cloud_power/docs/NetworkPortCreate.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::NetworkPortCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | Description of the port (not unique or indexable) | [optional] -**ip_address** | **String** | The requested ip address of this port | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::NetworkPortCreate.new(description: null, - ip_address: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/NetworkPortPvmInstance.md b/gems/ibm_cloud_power/docs/NetworkPortPvmInstance.md deleted file mode 100644 index 0a178709..00000000 --- a/gems/ibm_cloud_power/docs/NetworkPortPvmInstance.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::NetworkPortPvmInstance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pvm_instance_id** | **String** | The attahed pvm-instance ID | [optional] -**href** | **String** | Link to pvm-instance resource | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::NetworkPortPvmInstance.new(pvm_instance_id: null, - href: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/NetworkPortUpdate.md b/gems/ibm_cloud_power/docs/NetworkPortUpdate.md deleted file mode 100644 index 4ec0631c..00000000 --- a/gems/ibm_cloud_power/docs/NetworkPortUpdate.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::NetworkPortUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | Description of the port (not unique or indexable) | [optional] -**pvm_instance_id** | **String** | If supplied populated it attaches to the PVMInstanceID, if empty detaches from PVMInstanceID | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::NetworkPortUpdate.new(description: null, - pvm_instance_id: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/NetworkPorts.md b/gems/ibm_cloud_power/docs/NetworkPorts.md deleted file mode 100644 index 239e990a..00000000 --- a/gems/ibm_cloud_power/docs/NetworkPorts.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::NetworkPorts - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ports** | [**Array<NetworkPort>**](NetworkPort.md) | Network Ports | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::NetworkPorts.new(ports: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/NetworkReference.md b/gems/ibm_cloud_power/docs/NetworkReference.md deleted file mode 100644 index 1c546f71..00000000 --- a/gems/ibm_cloud_power/docs/NetworkReference.md +++ /dev/null @@ -1,27 +0,0 @@ -# IbmCloudPower::NetworkReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**network_id** | **String** | Unique Network ID | -**name** | **String** | Network Name | -**vlan_id** | **Float** | VLAN ID | -**type** | **String** | Type of Network {vlan, pub-vlan} | [default to 'vlan'] -**jumbo** | **Boolean** | MTU Jumbo Network enabled | -**href** | **String** | Link to Network resource | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::NetworkReference.new(network_id: null, - name: null, - vlan_id: null, - type: null, - jumbo: null, - href: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/NetworkUpdate.md b/gems/ibm_cloud_power/docs/NetworkUpdate.md deleted file mode 100644 index 27172365..00000000 --- a/gems/ibm_cloud_power/docs/NetworkUpdate.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::NetworkUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Replaces the current Network Name | [optional] -**gateway** | **String** | Replaces the current Gateway IP Address | [optional] -**dns_servers** | **Array<String>** | Replaces the current DNS Servers | [optional] -**ip_address_ranges** | [**Array<IPAddressRange>**](IPAddressRange.md) | Replaces the current IP Address Ranges | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::NetworkUpdate.new(name: null, - gateway: null, - dns_servers: null, - ip_address_ranges: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Networks.md b/gems/ibm_cloud_power/docs/Networks.md deleted file mode 100644 index 344a6603..00000000 --- a/gems/ibm_cloud_power/docs/Networks.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::Networks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**networks** | [**Array<NetworkReference>**](NetworkReference.md) | Network References | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Networks.new(networks: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Operations.md b/gems/ibm_cloud_power/docs/Operations.md deleted file mode 100644 index d29bdf99..00000000 --- a/gems/ibm_cloud_power/docs/Operations.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::Operations - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**boot_mode** | **String** | Name of the server boot mode a(Boot from disk using copy A), b(Boot from disk using copy B), c(Reserved for IBM lab use only), d(Boot from media/drives) | [optional] -**operating_mode** | **String** | Name of the server operating mode | [optional] -**task** | **String** | Name of the job task to execute | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Operations.new(boot_mode: null, - operating_mode: null, - task: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PCloudCloudConnectionsApi.md b/gems/ibm_cloud_power/docs/PCloudCloudConnectionsApi.md deleted file mode 100644 index e55f6616..00000000 --- a/gems/ibm_cloud_power/docs/PCloudCloudConnectionsApi.md +++ /dev/null @@ -1,394 +0,0 @@ -# IbmCloudPower::PCloudCloudConnectionsApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**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 -[**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 -[**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 -[**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 -[**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 -[**pcloud_cloudconnections_post**](PCloudCloudConnectionsApi.md#pcloud_cloudconnections_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections | Create a new Cloud connection -[**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 -[**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 - - - -## pcloud_cloudconnections_delete - -> Object pcloud_cloudconnections_delete(cloud_instance_id, cloud_connection_id) - -Delete a Cloud connection - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID - -begin - #Delete a Cloud connection - result = api_instance.pcloud_cloudconnections_delete(cloud_instance_id, cloud_connection_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **cloud_connection_id** | **String**| Cloud connection ID | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */*, application/json, - - -## pcloud_cloudconnections_get - -> CloudConnection pcloud_cloudconnections_get(cloud_instance_id, cloud_connection_id) - -Get a Cloud connection's state or information - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID - -begin - #Get a Cloud connection's state or information - result = api_instance.pcloud_cloudconnections_get(cloud_instance_id, cloud_connection_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **cloud_connection_id** | **String**| Cloud connection ID | - -### Return type - -[**CloudConnection**](CloudConnection.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudconnections_getall - -> CloudConnections pcloud_cloudconnections_getall(cloud_instance_id) - -Get all Cloud connections in a specific cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #Get all Cloud connections in a specific cloud instance - result = api_instance.pcloud_cloudconnections_getall(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**CloudConnections**](CloudConnections.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudconnections_networks_delete - -> CloudConnection pcloud_cloudconnections_networks_delete(cloud_instance_id, cloud_connection_id, network_id) - -Delete a network from a Cloud connection - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID -network_id = 'network_id_example' # String | Network ID - -begin - #Delete a network from a Cloud connection - result = api_instance.pcloud_cloudconnections_networks_delete(cloud_instance_id, cloud_connection_id, network_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_networks_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **cloud_connection_id** | **String**| Cloud connection ID | - **network_id** | **String**| Network ID | - -### Return type - -[**CloudConnection**](CloudConnection.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */*, application/json, - - -## pcloud_cloudconnections_networks_put - -> CloudConnection pcloud_cloudconnections_networks_put(cloud_instance_id, cloud_connection_id, network_id) - -Add a network to the Cloud connection - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID -network_id = 'network_id_example' # String | Network ID - -begin - #Add a network to the Cloud connection - result = api_instance.pcloud_cloudconnections_networks_put(cloud_instance_id, cloud_connection_id, network_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_networks_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **cloud_connection_id** | **String**| Cloud connection ID | - **network_id** | **String**| Network ID | - -### Return type - -[**CloudConnection**](CloudConnection.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudconnections_post - -> CloudConnection pcloud_cloudconnections_post(cloud_instance_id, body) - -Create a new Cloud connection - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::CloudConnectionCreate.new # CloudConnectionCreate | Parameters for the creation of a new Cloud connection - -begin - #Create a new Cloud connection - result = api_instance.pcloud_cloudconnections_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**CloudConnectionCreate**](CloudConnectionCreate.md)| Parameters for the creation of a new Cloud connection | - -### Return type - -[**CloudConnection**](CloudConnection.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_cloudconnections_put - -> CloudConnection pcloud_cloudconnections_put(cloud_instance_id, cloud_connection_id, body) - -Update a Cloud connection - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -cloud_connection_id = 'cloud_connection_id_example' # String | Cloud connection ID -body = IbmCloudPower::CloudConnectionUpdate.new # CloudConnectionUpdate | Parameters to update a Cloud connection - -begin - #Update a Cloud connection - result = api_instance.pcloud_cloudconnections_put(cloud_instance_id, cloud_connection_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **cloud_connection_id** | **String**| Cloud connection ID | - **body** | [**CloudConnectionUpdate**](CloudConnectionUpdate.md)| Parameters to update a Cloud connection | - -### Return type - -[**CloudConnection**](CloudConnection.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_cloudconnections_virtualprivateclouds_getall - -> CloudConnectionVirtualPrivateClouds pcloud_cloudconnections_virtualprivateclouds_getall(cloud_instance_id) - -Get all virtual private clouds in a specific cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #Get all virtual private clouds in a specific cloud instance - result = api_instance.pcloud_cloudconnections_virtualprivateclouds_getall(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudCloudConnectionsApi->pcloud_cloudconnections_virtualprivateclouds_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**CloudConnectionVirtualPrivateClouds**](CloudConnectionVirtualPrivateClouds.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudEventsApi.md b/gems/ibm_cloud_power/docs/PCloudEventsApi.md deleted file mode 100644 index 2c3cfb5a..00000000 --- a/gems/ibm_cloud_power/docs/PCloudEventsApi.md +++ /dev/null @@ -1,114 +0,0 @@ -# IbmCloudPower::PCloudEventsApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_events_get**](PCloudEventsApi.md#pcloud_events_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/events/{event_id} | Get a single event -[**pcloud_events_getsince**](PCloudEventsApi.md#pcloud_events_getsince) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/events | Get events from this cloud instance since a specific timestamp - - - -## pcloud_events_get - -> Event pcloud_events_get(cloud_instance_id, event_id, opts) - -Get a single event - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudEventsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -event_id = 'event_id_example' # String | Event ID -opts = { - accept_language: 'accept_language_example' # String | The language requested for the return document -} - -begin - #Get a single event - result = api_instance.pcloud_events_get(cloud_instance_id, event_id, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudEventsApi->pcloud_events_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **event_id** | **String**| Event ID | - **accept_language** | **String**| The language requested for the return document | [optional] - -### Return type - -[**Event**](Event.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_events_getsince - -> Events pcloud_events_getsince(cloud_instance_id, time, opts) - -Get events from this cloud instance since a specific timestamp - -You must append the '?time=' query parameter to the cURL URL to get a list of events. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudEventsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -time = 'time_example' # String | (deprecated - use from_time) A time in either ISO 8601 or unix epoch format -opts = { - accept_language: 'accept_language_example' # String | The language requested for the return document -} - -begin - #Get events from this cloud instance since a specific timestamp - result = api_instance.pcloud_events_getsince(cloud_instance_id, time, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudEventsApi->pcloud_events_getsince: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **time** | **String**| (deprecated - use from_time) A time in either ISO 8601 or unix epoch format | - **accept_language** | **String**| The language requested for the return document | [optional] - -### Return type - -[**Events**](Events.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudImagesApi.md b/gems/ibm_cloud_power/docs/PCloudImagesApi.md deleted file mode 100644 index 8fcf2baa..00000000 --- a/gems/ibm_cloud_power/docs/PCloudImagesApi.md +++ /dev/null @@ -1,440 +0,0 @@ -# IbmCloudPower::PCloudImagesApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_cloudinstances_images_delete**](PCloudImagesApi.md#pcloud_cloudinstances_images_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id} | Delete an image from a cloud instance -[**pcloud_cloudinstances_images_export_post**](PCloudImagesApi.md#pcloud_cloudinstances_images_export_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id}/export | Export an image -[**pcloud_cloudinstances_images_get**](PCloudImagesApi.md#pcloud_cloudinstances_images_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id} | Detailed information of an image -[**pcloud_cloudinstances_images_getall**](PCloudImagesApi.md#pcloud_cloudinstances_images_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/images | List all of the images for this cloud instance -[**pcloud_cloudinstances_images_post**](PCloudImagesApi.md#pcloud_cloudinstances_images_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/images | Create a new image from available images -[**pcloud_cloudinstances_stockimages_get**](PCloudImagesApi.md#pcloud_cloudinstances_stockimages_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images/{image_id} | Detailed info of an available stock image -[**pcloud_cloudinstances_stockimages_getall**](PCloudImagesApi.md#pcloud_cloudinstances_stockimages_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images | List all available stock images -[**pcloud_images_get**](PCloudImagesApi.md#pcloud_images_get) | **GET** /pcloud/v1/images/{image_id} | Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed info of an available stock image -[**pcloud_images_getall**](PCloudImagesApi.md#pcloud_images_getall) | **GET** /pcloud/v1/images | Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - List all available stock images - - - -## pcloud_cloudinstances_images_delete - -> Object pcloud_cloudinstances_images_delete(cloud_instance_id, image_id) - -Delete an image from a cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudImagesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -image_id = 'image_id_example' # String | Image ID of a image - -begin - #Delete an image from a cloud instance - result = api_instance.pcloud_cloudinstances_images_delete(cloud_instance_id, image_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudImagesApi->pcloud_cloudinstances_images_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **image_id** | **String**| Image ID of a image | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_cloudinstances_images_export_post - -> Object pcloud_cloudinstances_images_export_post(cloud_instance_id, image_id, body) - -Export an image - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudImagesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -image_id = 'image_id_example' # String | Image ID of a image -body = IbmCloudPower::ExportImage.new # ExportImage | Parameters for exporting an image - -begin - #Export an image - result = api_instance.pcloud_cloudinstances_images_export_post(cloud_instance_id, image_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudImagesApi->pcloud_cloudinstances_images_export_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **image_id** | **String**| Image ID of a image | - **body** | [**ExportImage**](ExportImage.md)| Parameters for exporting an image | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_cloudinstances_images_get - -> Image pcloud_cloudinstances_images_get(cloud_instance_id, image_id) - -Detailed information of an image - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudImagesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -image_id = 'image_id_example' # String | Image ID of a image - -begin - #Detailed information of an image - result = api_instance.pcloud_cloudinstances_images_get(cloud_instance_id, image_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudImagesApi->pcloud_cloudinstances_images_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **image_id** | **String**| Image ID of a image | - -### Return type - -[**Image**](Image.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudinstances_images_getall - -> Images pcloud_cloudinstances_images_getall(cloud_instance_id) - -List all of the images for this cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudImagesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #List all of the images for this cloud instance - result = api_instance.pcloud_cloudinstances_images_getall(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudImagesApi->pcloud_cloudinstances_images_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**Images**](Images.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudinstances_images_post - -> Image pcloud_cloudinstances_images_post(cloud_instance_id, body) - -Create a new image from available images - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudImagesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::CreateImage.new # CreateImage | Parameters for the creation of a new image from available images - -begin - #Create a new image from available images - result = api_instance.pcloud_cloudinstances_images_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudImagesApi->pcloud_cloudinstances_images_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**CreateImage**](CreateImage.md)| Parameters for the creation of a new image from available images | - -### Return type - -[**Image**](Image.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_cloudinstances_stockimages_get - -> Image pcloud_cloudinstances_stockimages_get(cloud_instance_id, image_id) - -Detailed info of an available stock image - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudImagesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -image_id = 'image_id_example' # String | Image ID of a image - -begin - #Detailed info of an available stock image - result = api_instance.pcloud_cloudinstances_stockimages_get(cloud_instance_id, image_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudImagesApi->pcloud_cloudinstances_stockimages_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **image_id** | **String**| Image ID of a image | - -### Return type - -[**Image**](Image.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudinstances_stockimages_getall - -> Images pcloud_cloudinstances_stockimages_getall(cloud_instance_id, opts) - -List all available stock images - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudImagesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -opts = { - sap: true # Boolean | Include SAP images with get available stock images -} - -begin - #List all available stock images - result = api_instance.pcloud_cloudinstances_stockimages_getall(cloud_instance_id, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudImagesApi->pcloud_cloudinstances_stockimages_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **sap** | **Boolean**| Include SAP images with get available stock images | [optional] - -### Return type - -[**Images**](Images.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_images_get - -> Images pcloud_images_get(image_id) - -Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed info of an available stock image - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudImagesApi.new -image_id = 'image_id_example' # String | Image ID of a image - -begin - #Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed info of an available stock image - result = api_instance.pcloud_images_get(image_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudImagesApi->pcloud_images_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **image_id** | **String**| Image ID of a image | - -### Return type - -[**Images**](Images.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_images_getall - -> Images pcloud_images_getall(opts) - -Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - List all available stock images - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudImagesApi.new -opts = { - sap: true # Boolean | Include SAP images with get available stock images -} - -begin - #Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - List all available stock images - result = api_instance.pcloud_images_getall(opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudImagesApi->pcloud_images_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sap** | **Boolean**| Include SAP images with get available stock images | [optional] - -### Return type - -[**Images**](Images.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudInstancesApi.md b/gems/ibm_cloud_power/docs/PCloudInstancesApi.md deleted file mode 100644 index 888483db..00000000 --- a/gems/ibm_cloud_power/docs/PCloudInstancesApi.md +++ /dev/null @@ -1,148 +0,0 @@ -# IbmCloudPower::PCloudInstancesApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_cloudinstances_delete**](PCloudInstancesApi.md#pcloud_cloudinstances_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id} | Delete a Power Cloud instance -[**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 -[**pcloud_cloudinstances_put**](PCloudInstancesApi.md#pcloud_cloudinstances_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id} | Update or upgrade a cloud instance - - - -## pcloud_cloudinstances_delete - -> Object pcloud_cloudinstances_delete(cloud_instance_id) - -Delete a Power Cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #Delete a Power Cloud instance - result = api_instance.pcloud_cloudinstances_delete(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudInstancesApi->pcloud_cloudinstances_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_cloudinstances_get - -> CloudInstance pcloud_cloudinstances_get(cloud_instance_id) - -Get a cloud instance's current state or information - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #Get a cloud instance's current state or information - result = api_instance.pcloud_cloudinstances_get(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudInstancesApi->pcloud_cloudinstances_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**CloudInstance**](CloudInstance.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudinstances_put - -> CloudInstance pcloud_cloudinstances_put(cloud_instance_id, body) - -Update or upgrade a cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::CloudInstanceUpdate.new # CloudInstanceUpdate | Parameters for updating a Power Cloud instance - -begin - #Update or upgrade a cloud instance - result = api_instance.pcloud_cloudinstances_put(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudInstancesApi->pcloud_cloudinstances_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**CloudInstanceUpdate**](CloudInstanceUpdate.md)| Parameters for updating a Power Cloud instance | - -### Return type - -[**CloudInstance**](CloudInstance.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudNetworksApi.md b/gems/ibm_cloud_power/docs/PCloudNetworksApi.md deleted file mode 100644 index 58c7f351..00000000 --- a/gems/ibm_cloud_power/docs/PCloudNetworksApi.md +++ /dev/null @@ -1,504 +0,0 @@ -# IbmCloudPower::PCloudNetworksApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_networks_delete**](PCloudNetworksApi.md#pcloud_networks_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id} | Delete a network -[**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 -[**pcloud_networks_getall**](PCloudNetworksApi.md#pcloud_networks_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks | Get all networks in this cloud instance -[**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 -[**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 -[**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 -[**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 -[**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 -[**pcloud_networks_post**](PCloudNetworksApi.md#pcloud_networks_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks | Create a new network -[**pcloud_networks_put**](PCloudNetworksApi.md#pcloud_networks_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id} | Update a network - - - -## pcloud_networks_delete - -> Object pcloud_networks_delete(cloud_instance_id, network_id) - -Delete a network - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -network_id = 'network_id_example' # String | Network ID - -begin - #Delete a network - result = api_instance.pcloud_networks_delete(cloud_instance_id, network_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **network_id** | **String**| Network ID | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_networks_get - -> Network pcloud_networks_get(cloud_instance_id, network_id) - -Get a network's current state or information - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -network_id = 'network_id_example' # String | Network ID - -begin - #Get a network's current state or information - result = api_instance.pcloud_networks_get(cloud_instance_id, network_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **network_id** | **String**| Network ID | - -### Return type - -[**Network**](Network.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_networks_getall - -> Networks pcloud_networks_getall(cloud_instance_id, opts) - -Get all networks in this cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -opts = { - filter: 'filter_example' # String | A filter expression that filters resources listed in the response -} - -begin - #Get all networks in this cloud instance - result = api_instance.pcloud_networks_getall(cloud_instance_id, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **filter** | **String**| A filter expression that filters resources listed in the response | [optional] - -### Return type - -[**Networks**](Networks.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_networks_ports_delete - -> Object pcloud_networks_ports_delete(cloud_instance_id, network_id, port_id) - -Delete a network port - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -network_id = 'network_id_example' # String | Network ID -port_id = 'port_id_example' # String | Port ID - -begin - #Delete a network port - result = api_instance.pcloud_networks_ports_delete(cloud_instance_id, network_id, port_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **network_id** | **String**| Network ID | - **port_id** | **String**| Port ID | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_networks_ports_get - -> NetworkPort pcloud_networks_ports_get(cloud_instance_id, network_id, port_id) - -Get a port's information - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -network_id = 'network_id_example' # String | Network ID -port_id = 'port_id_example' # String | Port ID - -begin - #Get a port's information - result = api_instance.pcloud_networks_ports_get(cloud_instance_id, network_id, port_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **network_id** | **String**| Network ID | - **port_id** | **String**| Port ID | - -### Return type - -[**NetworkPort**](NetworkPort.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json, applicaton/json - - -## pcloud_networks_ports_getall - -> NetworkPorts pcloud_networks_ports_getall(cloud_instance_id, network_id) - -Get all ports for this network - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -network_id = 'network_id_example' # String | Network ID - -begin - #Get all ports for this network - result = api_instance.pcloud_networks_ports_getall(cloud_instance_id, network_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **network_id** | **String**| Network ID | - -### Return type - -[**NetworkPorts**](NetworkPorts.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_networks_ports_post - -> NetworkPort pcloud_networks_ports_post(cloud_instance_id, network_id, opts) - -Perform port addition, deletion, and listing - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -network_id = 'network_id_example' # String | Network ID -opts = { - body: IbmCloudPower::NetworkPortCreate.new # NetworkPortCreate | Create a Network Port -} - -begin - #Perform port addition, deletion, and listing - result = api_instance.pcloud_networks_ports_post(cloud_instance_id, network_id, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **network_id** | **String**| Network ID | - **body** | [**NetworkPortCreate**](NetworkPortCreate.md)| Create a Network Port | [optional] - -### Return type - -[**NetworkPort**](NetworkPort.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_networks_ports_put - -> NetworkPort pcloud_networks_ports_put(cloud_instance_id, network_id, port_id, body) - -Update a port's information - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -network_id = 'network_id_example' # String | Network ID -port_id = 'port_id_example' # String | Port ID -body = IbmCloudPower::NetworkPortUpdate.new # NetworkPortUpdate | Parameters for updating a Port - -begin - #Update a port's information - result = api_instance.pcloud_networks_ports_put(cloud_instance_id, network_id, port_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_ports_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **network_id** | **String**| Network ID | - **port_id** | **String**| Port ID | - **body** | [**NetworkPortUpdate**](NetworkPortUpdate.md)| Parameters for updating a Port | - -### Return type - -[**NetworkPort**](NetworkPort.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_networks_post - -> Network pcloud_networks_post(cloud_instance_id, body) - -Create a new network - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::NetworkCreate.new # NetworkCreate | Parameters for the creation of a new network - -begin - #Create a new network - result = api_instance.pcloud_networks_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**NetworkCreate**](NetworkCreate.md)| Parameters for the creation of a new network | - -### Return type - -[**Network**](Network.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_networks_put - -> Network pcloud_networks_put(cloud_instance_id, network_id, body) - -Update a network - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudNetworksApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -network_id = 'network_id_example' # String | Network ID -body = IbmCloudPower::NetworkUpdate.new # NetworkUpdate | Parameters to update a Network - -begin - #Update a network - result = api_instance.pcloud_networks_put(cloud_instance_id, network_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudNetworksApi->pcloud_networks_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **network_id** | **String**| Network ID | - **body** | [**NetworkUpdate**](NetworkUpdate.md)| Parameters to update a Network | - -### Return type - -[**Network**](Network.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudPVMInstancesApi.md b/gems/ibm_cloud_power/docs/PCloudPVMInstancesApi.md deleted file mode 100644 index ab543ba4..00000000 --- a/gems/ibm_cloud_power/docs/PCloudPVMInstancesApi.md +++ /dev/null @@ -1,864 +0,0 @@ -# IbmCloudPower::PCloudPVMInstancesApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_pvminstances_action_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_action_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/action | Perform an action (start stop reboot immediate-shutdown reset) on a PVMInstance -[**pcloud_pvminstances_capture_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_capture_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/capture | Capture a PVM instance and create a deployable image -[**pcloud_pvminstances_clone_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_clone_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/clone | Clone a PVMInstance -[**pcloud_pvminstances_console_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_console_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/console | Generate the noVNC console URL -[**pcloud_pvminstances_delete**](PCloudPVMInstancesApi.md#pcloud_pvminstances_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id} | Delete a PCloud PVM instance -[**pcloud_pvminstances_get**](PCloudPVMInstancesApi.md#pcloud_pvminstances_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id} | Get a PVM instance's current state or information -[**pcloud_pvminstances_getall**](PCloudPVMInstancesApi.md#pcloud_pvminstances_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances | Get all the PVM instances for this cloud instance -[**pcloud_pvminstances_networks_delete**](PCloudPVMInstancesApi.md#pcloud_pvminstances_networks_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks/{network_id} | Remove all addresses of network from a PVM instance -[**pcloud_pvminstances_networks_get**](PCloudPVMInstancesApi.md#pcloud_pvminstances_networks_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks/{network_id} | Get a PVM instance's network information -[**pcloud_pvminstances_networks_getall**](PCloudPVMInstancesApi.md#pcloud_pvminstances_networks_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks | Get all networks for this PVM instance -[**pcloud_pvminstances_networks_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_networks_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks | Perform network addition, deletion, and listing -[**pcloud_pvminstances_operations_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_operations_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/operations | Perform an operation on a PVMInstance -[**pcloud_pvminstances_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances | Create a new PVM instance -[**pcloud_pvminstances_put**](PCloudPVMInstancesApi.md#pcloud_pvminstances_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id} | Update a PCloud PVM instance -[**pcloud_pvminstances_snapshots_getall**](PCloudPVMInstancesApi.md#pcloud_pvminstances_snapshots_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots | Get all snapshots for this PVM instance -[**pcloud_pvminstances_snapshots_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_snapshots_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots | Create a PVM instance snapshot -[**pcloud_pvminstances_snapshots_restore_post**](PCloudPVMInstancesApi.md#pcloud_pvminstances_snapshots_restore_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots/{snapshot_id}/restore | Restore a PVM Instance snapshot - - - -## pcloud_pvminstances_action_post - -> Object pcloud_pvminstances_action_post(cloud_instance_id, pvm_instance_id, body) - -Perform an action (start stop reboot immediate-shutdown reset) on a PVMInstance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -body = IbmCloudPower::PVMInstanceAction.new # PVMInstanceAction | Parameters for the desired action - -begin - #Perform an action (start stop reboot immediate-shutdown reset) on a PVMInstance - result = api_instance.pcloud_pvminstances_action_post(cloud_instance_id, pvm_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_action_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **body** | [**PVMInstanceAction**](PVMInstanceAction.md)| Parameters for the desired action | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_capture_post - -> Object pcloud_pvminstances_capture_post(cloud_instance_id, pvm_instance_id, body) - -Capture a PVM instance and create a deployable image - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -body = IbmCloudPower::PVMInstanceCapture.new # PVMInstanceCapture | Parameters for the capture PVMInstance - -begin - #Capture a PVM instance and create a deployable image - result = api_instance.pcloud_pvminstances_capture_post(cloud_instance_id, pvm_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_capture_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **body** | [**PVMInstanceCapture**](PVMInstanceCapture.md)| Parameters for the capture PVMInstance | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_clone_post - -> PVMInstance pcloud_pvminstances_clone_post(cloud_instance_id, pvm_instance_id, body) - -Clone a PVMInstance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -body = IbmCloudPower::PVMInstanceClone.new # PVMInstanceClone | Clone PVM Instance parameters - -begin - #Clone a PVMInstance - result = api_instance.pcloud_pvminstances_clone_post(cloud_instance_id, pvm_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_clone_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **body** | [**PVMInstanceClone**](PVMInstanceClone.md)| Clone PVM Instance parameters | - -### Return type - -[**PVMInstance**](PVMInstance.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_console_post - -> PVMInstanceConsole pcloud_pvminstances_console_post(cloud_instance_id, pvm_instance_id) - -Generate the noVNC console URL - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID - -begin - #Generate the noVNC console URL - result = api_instance.pcloud_pvminstances_console_post(cloud_instance_id, pvm_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_console_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - -### Return type - -[**PVMInstanceConsole**](PVMInstanceConsole.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_delete - -> Object pcloud_pvminstances_delete(cloud_instance_id, pvm_instance_id, opts) - -Delete a PCloud PVM instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -opts = { - delete_data_volumes: true # Boolean | Indicates whether all data volumes attached to the PVMInstance must be deleted when deleting the PVMInstance. Shared data volumes will be deleted if no other PVMInstances are attached. -} - -begin - #Delete a PCloud PVM instance - result = api_instance.pcloud_pvminstances_delete(cloud_instance_id, pvm_instance_id, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **delete_data_volumes** | **Boolean**| Indicates whether all data volumes attached to the PVMInstance must be deleted when deleting the PVMInstance. Shared data volumes will be deleted if no other PVMInstances are attached. | [optional] - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_pvminstances_get - -> PVMInstance pcloud_pvminstances_get(cloud_instance_id, pvm_instance_id) - -Get a PVM instance's current state or information - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID - -begin - #Get a PVM instance's current state or information - result = api_instance.pcloud_pvminstances_get(cloud_instance_id, pvm_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - -### Return type - -[**PVMInstance**](PVMInstance.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_getall - -> PVMInstances pcloud_pvminstances_getall(cloud_instance_id) - -Get all the PVM instances for this cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #Get all the PVM instances for this cloud instance - result = api_instance.pcloud_pvminstances_getall(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**PVMInstances**](PVMInstances.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_networks_delete - -> Object pcloud_pvminstances_networks_delete(cloud_instance_id, pvm_instance_id, network_id, opts) - -Remove all addresses of network from a PVM instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -network_id = 'network_id_example' # String | Network ID -opts = { - body: IbmCloudPower::PVMInstanceRemoveNetwork.new # PVMInstanceRemoveNetwork | Remove a network from PVM Instance parameters -} - -begin - #Remove all addresses of network from a PVM instance - result = api_instance.pcloud_pvminstances_networks_delete(cloud_instance_id, pvm_instance_id, network_id, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_networks_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **network_id** | **String**| Network ID | - **body** | [**PVMInstanceRemoveNetwork**](PVMInstanceRemoveNetwork.md)| Remove a network from PVM Instance parameters | [optional] - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_networks_get - -> PVMInstanceNetworks pcloud_pvminstances_networks_get(cloud_instance_id, pvm_instance_id, network_id) - -Get a PVM instance's network information - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -network_id = 'network_id_example' # String | Network ID - -begin - #Get a PVM instance's network information - result = api_instance.pcloud_pvminstances_networks_get(cloud_instance_id, pvm_instance_id, network_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_networks_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **network_id** | **String**| Network ID | - -### Return type - -[**PVMInstanceNetworks**](PVMInstanceNetworks.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_networks_getall - -> PVMInstanceNetworks pcloud_pvminstances_networks_getall(cloud_instance_id, pvm_instance_id) - -Get all networks for this PVM instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID - -begin - #Get all networks for this PVM instance - result = api_instance.pcloud_pvminstances_networks_getall(cloud_instance_id, pvm_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_networks_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - -### Return type - -[**PVMInstanceNetworks**](PVMInstanceNetworks.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_networks_post - -> PVMInstanceNetwork pcloud_pvminstances_networks_post(cloud_instance_id, pvm_instance_id, body) - -Perform network addition, deletion, and listing - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -body = IbmCloudPower::PVMInstanceAddNetwork.new # PVMInstanceAddNetwork | Add network to PVM Instance parameters - -begin - #Perform network addition, deletion, and listing - result = api_instance.pcloud_pvminstances_networks_post(cloud_instance_id, pvm_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_networks_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **body** | [**PVMInstanceAddNetwork**](PVMInstanceAddNetwork.md)| Add network to PVM Instance parameters | - -### Return type - -[**PVMInstanceNetwork**](PVMInstanceNetwork.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_operations_post - -> Object pcloud_pvminstances_operations_post(cloud_instance_id, pvm_instance_id, body) - -Perform an operation on a PVMInstance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -body = IbmCloudPower::PVMInstanceOperation.new # PVMInstanceOperation | Parameters for the desired operations - -begin - #Perform an operation on a PVMInstance - result = api_instance.pcloud_pvminstances_operations_post(cloud_instance_id, pvm_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_operations_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **body** | [**PVMInstanceOperation**](PVMInstanceOperation.md)| Parameters for the desired operations | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_post - -> Array<PVMInstance> pcloud_pvminstances_post(cloud_instance_id, body, opts) - -Create a new PVM instance - -The order of network IDs passed in will be the order of interfaces defined to the VM. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::PVMInstanceCreate.new # PVMInstanceCreate | Parameters for the creation of a new tenant -opts = { - skip_host_validation: true # Boolean | Option to skip host validation on PVMInstance Create API -} - -begin - #Create a new PVM instance - result = api_instance.pcloud_pvminstances_post(cloud_instance_id, body, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**PVMInstanceCreate**](PVMInstanceCreate.md)| Parameters for the creation of a new tenant | - **skip_host_validation** | **Boolean**| Option to skip host validation on PVMInstance Create API | [optional] - -### Return type - -[**Array<PVMInstance>**](PVMInstance.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_put - -> PVMInstanceUpdateResponse pcloud_pvminstances_put(cloud_instance_id, pvm_instance_id, body) - -Update a PCloud PVM instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -body = IbmCloudPower::PVMInstanceUpdate.new # PVMInstanceUpdate | Parameters to update a PCloud PVM instance - -begin - #Update a PCloud PVM instance - result = api_instance.pcloud_pvminstances_put(cloud_instance_id, pvm_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **body** | [**PVMInstanceUpdate**](PVMInstanceUpdate.md)| Parameters to update a PCloud PVM instance | - -### Return type - -[**PVMInstanceUpdateResponse**](PVMInstanceUpdateResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_snapshots_getall - -> Snapshots pcloud_pvminstances_snapshots_getall(cloud_instance_id, pvm_instance_id) - -Get all snapshots for this PVM instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID - -begin - #Get all snapshots for this PVM instance - result = api_instance.pcloud_pvminstances_snapshots_getall(cloud_instance_id, pvm_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_snapshots_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - -### Return type - -[**Snapshots**](Snapshots.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_snapshots_post - -> SnapshotCreateResponse pcloud_pvminstances_snapshots_post(cloud_instance_id, pvm_instance_id, body) - -Create a PVM instance snapshot - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -body = IbmCloudPower::SnapshotCreate.new # SnapshotCreate | PVM Instance snapshot create parameters - -begin - #Create a PVM instance snapshot - result = api_instance.pcloud_pvminstances_snapshots_post(cloud_instance_id, pvm_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_snapshots_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **body** | [**SnapshotCreate**](SnapshotCreate.md)| PVM Instance snapshot create parameters | - -### Return type - -[**SnapshotCreateResponse**](SnapshotCreateResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_snapshots_restore_post - -> Snapshot pcloud_pvminstances_snapshots_restore_post(cloud_instance_id, pvm_instance_id, snapshot_id, body, opts) - -Restore a PVM Instance snapshot - -To roll back the clone operation, append '?restore_fail_action=rollback' to the cURL URL. If you'd like to try the clone operation again, append '?restore_fail_action=retry' to the cURL URL. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPVMInstancesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -snapshot_id = 'snapshot_id_example' # String | PVM Instance snapshot id -body = IbmCloudPower::SnapshotRestore.new # SnapshotRestore | PVM Instance snapshot restore parameters -opts = { - restore_fail_action: 'restore_fail_action_example' # String | Action to take on a failed snapshot restore -} - -begin - #Restore a PVM Instance snapshot - result = api_instance.pcloud_pvminstances_snapshots_restore_post(cloud_instance_id, pvm_instance_id, snapshot_id, body, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPVMInstancesApi->pcloud_pvminstances_snapshots_restore_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **snapshot_id** | **String**| PVM Instance snapshot id | - **body** | [**SnapshotRestore**](SnapshotRestore.md)| PVM Instance snapshot restore parameters | - **restore_fail_action** | **String**| Action to take on a failed snapshot restore | [optional] - -### Return type - -[**Snapshot**](Snapshot.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudPlacementGroupsApi.md b/gems/ibm_cloud_power/docs/PCloudPlacementGroupsApi.md deleted file mode 100644 index ffb98635..00000000 --- a/gems/ibm_cloud_power/docs/PCloudPlacementGroupsApi.md +++ /dev/null @@ -1,298 +0,0 @@ -# IbmCloudPower::PCloudPlacementGroupsApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_placementgroups_delete**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id} | Delete server placement group -[**pcloud_placementgroups_get**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id} | Get server placement group details -[**pcloud_placementgroups_getall**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups | Get all server placement groups -[**pcloud_placementgroups_members_delete**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_members_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members | Remove server from placement group -[**pcloud_placementgroups_members_post**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_members_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members | Add server to placement group -[**pcloud_placementgroups_post**](PCloudPlacementGroupsApi.md#pcloud_placementgroups_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups | Create a server placement group - - - -## pcloud_placementgroups_delete - -> Object pcloud_placementgroups_delete(cloud_instance_id, placement_group_id) - -Delete server placement group - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -placement_group_id = 'placement_group_id_example' # String | Placement Group ID or Placement Group Name - -begin - #Delete server placement group - result = api_instance.pcloud_placementgroups_delete(cloud_instance_id, placement_group_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **placement_group_id** | **String**| Placement Group ID or Placement Group Name | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_placementgroups_get - -> PlacementGroup pcloud_placementgroups_get(cloud_instance_id, placement_group_id) - -Get server placement group details - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -placement_group_id = 'placement_group_id_example' # String | Placement Group ID or Placement Group Name - -begin - #Get server placement group details - result = api_instance.pcloud_placementgroups_get(cloud_instance_id, placement_group_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **placement_group_id** | **String**| Placement Group ID or Placement Group Name | - -### Return type - -[**PlacementGroup**](PlacementGroup.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_placementgroups_getall - -> PlacementGroups pcloud_placementgroups_getall(cloud_instance_id) - -Get all server placement groups - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #Get all server placement groups - result = api_instance.pcloud_placementgroups_getall(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**PlacementGroups**](PlacementGroups.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_placementgroups_members_delete - -> PlacementGroup pcloud_placementgroups_members_delete(cloud_instance_id, placement_group_id, body) - -Remove server from placement group - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -placement_group_id = 'placement_group_id_example' # String | Placement Group ID or Placement Group Name -body = IbmCloudPower::PlacementGroupServer.new # PlacementGroupServer | Parameters for removing a Server in a Placement Group - -begin - #Remove server from placement group - result = api_instance.pcloud_placementgroups_members_delete(cloud_instance_id, placement_group_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_members_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **placement_group_id** | **String**| Placement Group ID or Placement Group Name | - **body** | [**PlacementGroupServer**](PlacementGroupServer.md)| Parameters for removing a Server in a Placement Group | - -### Return type - -[**PlacementGroup**](PlacementGroup.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_placementgroups_members_post - -> PlacementGroup pcloud_placementgroups_members_post(cloud_instance_id, placement_group_id, body) - -Add server to placement group - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -placement_group_id = 'placement_group_id_example' # String | Placement Group ID or Placement Group Name -body = IbmCloudPower::PlacementGroupServer.new # PlacementGroupServer | Parameters for adding a server to a Placement Group - -begin - #Add server to placement group - result = api_instance.pcloud_placementgroups_members_post(cloud_instance_id, placement_group_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_members_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **placement_group_id** | **String**| Placement Group ID or Placement Group Name | - **body** | [**PlacementGroupServer**](PlacementGroupServer.md)| Parameters for adding a server to a Placement Group | - -### Return type - -[**PlacementGroup**](PlacementGroup.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_placementgroups_post - -> PlacementGroup pcloud_placementgroups_post(cloud_instance_id, body) - -Create a server placement group - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::PlacementGroupCreate.new # PlacementGroupCreate | Parameters for the creating a server placement group - -begin - #Create a server placement group - result = api_instance.pcloud_placementgroups_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudPlacementGroupsApi->pcloud_placementgroups_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**PlacementGroupCreate**](PlacementGroupCreate.md)| Parameters for the creating a server placement group | - -### Return type - -[**PlacementGroup**](PlacementGroup.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudSAPApi.md b/gems/ibm_cloud_power/docs/PCloudSAPApi.md deleted file mode 100644 index a8e2b0c2..00000000 --- a/gems/ibm_cloud_power/docs/PCloudSAPApi.md +++ /dev/null @@ -1,150 +0,0 @@ -# IbmCloudPower::PCloudSAPApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_sap_get**](PCloudSAPApi.md#pcloud_sap_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/sap/{sap_profile_id} | Get the information on an SAP profile -[**pcloud_sap_getall**](PCloudSAPApi.md#pcloud_sap_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/sap | Get list of SAP profiles -[**pcloud_sap_post**](PCloudSAPApi.md#pcloud_sap_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/sap | Create a new SAP PVM Instance - - - -## pcloud_sap_get - -> SAPProfile pcloud_sap_get(cloud_instance_id, sap_profile_id) - -Get the information on an SAP profile - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudSAPApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -sap_profile_id = 'sap_profile_id_example' # String | SAP Profile ID - -begin - #Get the information on an SAP profile - result = api_instance.pcloud_sap_get(cloud_instance_id, sap_profile_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudSAPApi->pcloud_sap_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **sap_profile_id** | **String**| SAP Profile ID | - -### Return type - -[**SAPProfile**](SAPProfile.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_sap_getall - -> SAPProfiles pcloud_sap_getall(cloud_instance_id) - -Get list of SAP profiles - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudSAPApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #Get list of SAP profiles - result = api_instance.pcloud_sap_getall(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudSAPApi->pcloud_sap_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**SAPProfiles**](SAPProfiles.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_sap_post - -> Array<PVMInstance> pcloud_sap_post(cloud_instance_id, body) - -Create a new SAP PVM Instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudSAPApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::SAPCreate.new # SAPCreate | Parameters for the creation of a new SAP PVM Instance - -begin - #Create a new SAP PVM Instance - result = api_instance.pcloud_sap_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudSAPApi->pcloud_sap_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**SAPCreate**](SAPCreate.md)| Parameters for the creation of a new SAP PVM Instance | - -### Return type - -[**Array<PVMInstance>**](PVMInstance.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudSnapshotsApi.md b/gems/ibm_cloud_power/docs/PCloudSnapshotsApi.md deleted file mode 100644 index bdff1e7c..00000000 --- a/gems/ibm_cloud_power/docs/PCloudSnapshotsApi.md +++ /dev/null @@ -1,200 +0,0 @@ -# IbmCloudPower::PCloudSnapshotsApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_cloudinstances_snapshots_delete**](PCloudSnapshotsApi.md#pcloud_cloudinstances_snapshots_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id} | Delete a PVM instance snapshot of a cloud instance -[**pcloud_cloudinstances_snapshots_get**](PCloudSnapshotsApi.md#pcloud_cloudinstances_snapshots_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id} | Get the detail of a snapshot -[**pcloud_cloudinstances_snapshots_getall**](PCloudSnapshotsApi.md#pcloud_cloudinstances_snapshots_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots | List all PVM instance snapshots for this cloud instance -[**pcloud_cloudinstances_snapshots_put**](PCloudSnapshotsApi.md#pcloud_cloudinstances_snapshots_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id} | Update a PVM instance snapshot - - - -## pcloud_cloudinstances_snapshots_delete - -> Object pcloud_cloudinstances_snapshots_delete(cloud_instance_id, snapshot_id) - -Delete a PVM instance snapshot of a cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudSnapshotsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -snapshot_id = 'snapshot_id_example' # String | PVM Instance snapshot id - -begin - #Delete a PVM instance snapshot of a cloud instance - result = api_instance.pcloud_cloudinstances_snapshots_delete(cloud_instance_id, snapshot_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudSnapshotsApi->pcloud_cloudinstances_snapshots_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **snapshot_id** | **String**| PVM Instance snapshot id | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_cloudinstances_snapshots_get - -> Snapshot pcloud_cloudinstances_snapshots_get(cloud_instance_id, snapshot_id) - -Get the detail of a snapshot - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudSnapshotsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -snapshot_id = 'snapshot_id_example' # String | PVM Instance snapshot id - -begin - #Get the detail of a snapshot - result = api_instance.pcloud_cloudinstances_snapshots_get(cloud_instance_id, snapshot_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudSnapshotsApi->pcloud_cloudinstances_snapshots_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **snapshot_id** | **String**| PVM Instance snapshot id | - -### Return type - -[**Snapshot**](Snapshot.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudinstances_snapshots_getall - -> Snapshots pcloud_cloudinstances_snapshots_getall(cloud_instance_id) - -List all PVM instance snapshots for this cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudSnapshotsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #List all PVM instance snapshots for this cloud instance - result = api_instance.pcloud_cloudinstances_snapshots_getall(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudSnapshotsApi->pcloud_cloudinstances_snapshots_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**Snapshots**](Snapshots.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudinstances_snapshots_put - -> Object pcloud_cloudinstances_snapshots_put(cloud_instance_id, snapshot_id, body) - -Update a PVM instance snapshot - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudSnapshotsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -snapshot_id = 'snapshot_id_example' # String | PVM Instance snapshot id -body = IbmCloudPower::SnapshotUpdate.new # SnapshotUpdate | Parameters for the update of a PVM instance snapshot - -begin - #Update a PVM instance snapshot - result = api_instance.pcloud_cloudinstances_snapshots_put(cloud_instance_id, snapshot_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudSnapshotsApi->pcloud_cloudinstances_snapshots_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **snapshot_id** | **String**| PVM Instance snapshot id | - **body** | [**SnapshotUpdate**](SnapshotUpdate.md)| Parameters for the update of a PVM instance snapshot | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudStorageCapacityApi.md b/gems/ibm_cloud_power/docs/PCloudStorageCapacityApi.md deleted file mode 100644 index 3cbfcf29..00000000 --- a/gems/ibm_cloud_power/docs/PCloudStorageCapacityApi.md +++ /dev/null @@ -1,196 +0,0 @@ -# IbmCloudPower::PCloudStorageCapacityApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_storagecapacity_pools_get**](PCloudStorageCapacityApi.md#pcloud_storagecapacity_pools_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools/{storage_pool_name} | Storage capacity for a storage pool in a region -[**pcloud_storagecapacity_pools_getall**](PCloudStorageCapacityApi.md#pcloud_storagecapacity_pools_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools | Storage capacity for all available storage pools in a region -[**pcloud_storagecapacity_types_get**](PCloudStorageCapacityApi.md#pcloud_storagecapacity_types_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types/{storage_type_name} | Storage capacity for a storage type in a region -[**pcloud_storagecapacity_types_getall**](PCloudStorageCapacityApi.md#pcloud_storagecapacity_types_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types | Storage capacity for all available storage types in a region - - - -## pcloud_storagecapacity_pools_get - -> StoragePoolCapacity pcloud_storagecapacity_pools_get(cloud_instance_id, storage_pool_name) - -Storage capacity for a storage pool in a region - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudStorageCapacityApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -storage_pool_name = 'storage_pool_name_example' # String | Storage pool name - -begin - #Storage capacity for a storage pool in a region - result = api_instance.pcloud_storagecapacity_pools_get(cloud_instance_id, storage_pool_name) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudStorageCapacityApi->pcloud_storagecapacity_pools_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **storage_pool_name** | **String**| Storage pool name | - -### Return type - -[**StoragePoolCapacity**](StoragePoolCapacity.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_storagecapacity_pools_getall - -> StoragePoolsCapacity pcloud_storagecapacity_pools_getall(cloud_instance_id) - -Storage capacity for all available storage pools in a region - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudStorageCapacityApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #Storage capacity for all available storage pools in a region - result = api_instance.pcloud_storagecapacity_pools_getall(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudStorageCapacityApi->pcloud_storagecapacity_pools_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**StoragePoolsCapacity**](StoragePoolsCapacity.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_storagecapacity_types_get - -> StorageTypeCapacity pcloud_storagecapacity_types_get(cloud_instance_id, storage_type_name) - -Storage capacity for a storage type in a region - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudStorageCapacityApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -storage_type_name = 'storage_type_name_example' # String | Storage type name - -begin - #Storage capacity for a storage type in a region - result = api_instance.pcloud_storagecapacity_types_get(cloud_instance_id, storage_type_name) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudStorageCapacityApi->pcloud_storagecapacity_types_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **storage_type_name** | **String**| Storage type name | - -### Return type - -[**StorageTypeCapacity**](StorageTypeCapacity.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_storagecapacity_types_getall - -> StorageTypesCapacity pcloud_storagecapacity_types_getall(cloud_instance_id) - -Storage capacity for all available storage types in a region - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudStorageCapacityApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #Storage capacity for all available storage types in a region - result = api_instance.pcloud_storagecapacity_types_getall(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudStorageCapacityApi->pcloud_storagecapacity_types_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**StorageTypesCapacity**](StorageTypesCapacity.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudSystemPoolsApi.md b/gems/ibm_cloud_power/docs/PCloudSystemPoolsApi.md deleted file mode 100644 index f0c20f3d..00000000 --- a/gems/ibm_cloud_power/docs/PCloudSystemPoolsApi.md +++ /dev/null @@ -1,54 +0,0 @@ -# IbmCloudPower::PCloudSystemPoolsApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_systempools_get**](PCloudSystemPoolsApi.md#pcloud_systempools_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/system-pools | List of available system pools within a particular data center - - - -## pcloud_systempools_get - -> Hash<String, SystemPool> pcloud_systempools_get(cloud_instance_id) - -List of available system pools within a particular data center - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudSystemPoolsApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance - -begin - #List of available system pools within a particular data center - result = api_instance.pcloud_systempools_get(cloud_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudSystemPoolsApi->pcloud_systempools_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - -### Return type - -[**Hash<String, SystemPool>**](SystemPool.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudTasksApi.md b/gems/ibm_cloud_power/docs/PCloudTasksApi.md deleted file mode 100644 index e371b978..00000000 --- a/gems/ibm_cloud_power/docs/PCloudTasksApi.md +++ /dev/null @@ -1,100 +0,0 @@ -# IbmCloudPower::PCloudTasksApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_tasks_delete**](PCloudTasksApi.md#pcloud_tasks_delete) | **DELETE** /pcloud/v1/tasks/{task_id} | Delete a task -[**pcloud_tasks_get**](PCloudTasksApi.md#pcloud_tasks_get) | **GET** /pcloud/v1/tasks/{task_id} | Get a task - - - -## pcloud_tasks_delete - -> Object pcloud_tasks_delete(task_id) - -Delete a task - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudTasksApi.new -task_id = 'task_id_example' # String | PCloud Task ID - -begin - #Delete a task - result = api_instance.pcloud_tasks_delete(task_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudTasksApi->pcloud_tasks_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **task_id** | **String**| PCloud Task ID | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_tasks_get - -> Task pcloud_tasks_get(task_id) - -Get a task - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudTasksApi.new -task_id = 'task_id_example' # String | PCloud Task ID - -begin - #Get a task - result = api_instance.pcloud_tasks_get(task_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudTasksApi->pcloud_tasks_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **task_id** | **String**| PCloud Task ID | - -### Return type - -[**Task**](Task.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudTenantsApi.md b/gems/ibm_cloud_power/docs/PCloudTenantsApi.md deleted file mode 100644 index b0dafa55..00000000 --- a/gems/ibm_cloud_power/docs/PCloudTenantsApi.md +++ /dev/null @@ -1,102 +0,0 @@ -# IbmCloudPower::PCloudTenantsApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_tenants_get**](PCloudTenantsApi.md#pcloud_tenants_get) | **GET** /pcloud/v1/tenants/{tenant_id} | Get a tenant's current state or information -[**pcloud_tenants_put**](PCloudTenantsApi.md#pcloud_tenants_put) | **PUT** /pcloud/v1/tenants/{tenant_id} | Update a tenant - - - -## pcloud_tenants_get - -> Tenant pcloud_tenants_get(tenant_id) - -Get a tenant's current state or information - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudTenantsApi.new -tenant_id = 'tenant_id_example' # String | Tenant ID of a pcloud tenant - -begin - #Get a tenant's current state or information - result = api_instance.pcloud_tenants_get(tenant_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudTenantsApi->pcloud_tenants_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tenant_id** | **String**| Tenant ID of a pcloud tenant | - -### Return type - -[**Tenant**](Tenant.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_tenants_put - -> Tenant pcloud_tenants_put(tenant_id, body) - -Update a tenant - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudTenantsApi.new -tenant_id = 'tenant_id_example' # String | Tenant ID of a pcloud tenant -body = IbmCloudPower::TenantUpdate.new # TenantUpdate | Parameters for updating a Tenant - -begin - #Update a tenant - result = api_instance.pcloud_tenants_put(tenant_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudTenantsApi->pcloud_tenants_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tenant_id** | **String**| Tenant ID of a pcloud tenant | - **body** | [**TenantUpdate**](TenantUpdate.md)| Parameters for updating a Tenant | - -### Return type - -[**Tenant**](Tenant.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudTenantsSSHKeysApi.md b/gems/ibm_cloud_power/docs/PCloudTenantsSSHKeysApi.md deleted file mode 100644 index 91e80910..00000000 --- a/gems/ibm_cloud_power/docs/PCloudTenantsSSHKeysApi.md +++ /dev/null @@ -1,248 +0,0 @@ -# IbmCloudPower::PCloudTenantsSSHKeysApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_tenants_sshkeys_delete**](PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_delete) | **DELETE** /pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name} | Delete a tenant's SSH key -[**pcloud_tenants_sshkeys_get**](PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_get) | **GET** /pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name} | Get a tenant's SSH Key by name -[**pcloud_tenants_sshkeys_getall**](PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_getall) | **GET** /pcloud/v1/tenants/{tenant_id}/sshkeys | List a tenant's SSH Keys -[**pcloud_tenants_sshkeys_post**](PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_post) | **POST** /pcloud/v1/tenants/{tenant_id}/sshkeys | Add a new SSH key to the tenant -[**pcloud_tenants_sshkeys_put**](PCloudTenantsSSHKeysApi.md#pcloud_tenants_sshkeys_put) | **PUT** /pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name} | Update an SSH Key - - - -## pcloud_tenants_sshkeys_delete - -> Object pcloud_tenants_sshkeys_delete(tenant_id, sshkey_name) - -Delete a tenant's SSH key - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudTenantsSSHKeysApi.new -tenant_id = 'tenant_id_example' # String | Tenant ID of a pcloud tenant -sshkey_name = 'sshkey_name_example' # String | SSH key name for a pcloud tenant - -begin - #Delete a tenant's SSH key - result = api_instance.pcloud_tenants_sshkeys_delete(tenant_id, sshkey_name) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudTenantsSSHKeysApi->pcloud_tenants_sshkeys_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tenant_id** | **String**| Tenant ID of a pcloud tenant | - **sshkey_name** | **String**| SSH key name for a pcloud tenant | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_tenants_sshkeys_get - -> SSHKey pcloud_tenants_sshkeys_get(tenant_id, sshkey_name) - -Get a tenant's SSH Key by name - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudTenantsSSHKeysApi.new -tenant_id = 'tenant_id_example' # String | Tenant ID of a pcloud tenant -sshkey_name = 'sshkey_name_example' # String | SSH key name for a pcloud tenant - -begin - #Get a tenant's SSH Key by name - result = api_instance.pcloud_tenants_sshkeys_get(tenant_id, sshkey_name) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudTenantsSSHKeysApi->pcloud_tenants_sshkeys_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tenant_id** | **String**| Tenant ID of a pcloud tenant | - **sshkey_name** | **String**| SSH key name for a pcloud tenant | - -### Return type - -[**SSHKey**](SSHKey.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_tenants_sshkeys_getall - -> SSHKeys pcloud_tenants_sshkeys_getall(tenant_id) - -List a tenant's SSH Keys - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudTenantsSSHKeysApi.new -tenant_id = 'tenant_id_example' # String | Tenant ID of a pcloud tenant - -begin - #List a tenant's SSH Keys - result = api_instance.pcloud_tenants_sshkeys_getall(tenant_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudTenantsSSHKeysApi->pcloud_tenants_sshkeys_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tenant_id** | **String**| Tenant ID of a pcloud tenant | - -### Return type - -[**SSHKeys**](SSHKeys.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_tenants_sshkeys_post - -> SSHKey pcloud_tenants_sshkeys_post(tenant_id, body) - -Add a new SSH key to the tenant - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudTenantsSSHKeysApi.new -tenant_id = 'tenant_id_example' # String | Tenant ID of a pcloud tenant -body = IbmCloudPower::SSHKey.new # SSHKey | Parameters for the creation of a new SSH key - -begin - #Add a new SSH key to the tenant - result = api_instance.pcloud_tenants_sshkeys_post(tenant_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudTenantsSSHKeysApi->pcloud_tenants_sshkeys_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tenant_id** | **String**| Tenant ID of a pcloud tenant | - **body** | [**SSHKey**](SSHKey.md)| Parameters for the creation of a new SSH key | - -### Return type - -[**SSHKey**](SSHKey.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_tenants_sshkeys_put - -> SSHKey pcloud_tenants_sshkeys_put(tenant_id, sshkey_name, body) - -Update an SSH Key - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudTenantsSSHKeysApi.new -tenant_id = 'tenant_id_example' # String | Tenant ID of a pcloud tenant -sshkey_name = 'sshkey_name_example' # String | SSH key name for a pcloud tenant -body = IbmCloudPower::SSHKey.new # SSHKey | Parameters for updating a Tenant's SSH Key - -begin - #Update an SSH Key - result = api_instance.pcloud_tenants_sshkeys_put(tenant_id, sshkey_name, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudTenantsSSHKeysApi->pcloud_tenants_sshkeys_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tenant_id** | **String**| Tenant ID of a pcloud tenant | - **sshkey_name** | **String**| SSH key name for a pcloud tenant | - **body** | [**SSHKey**](SSHKey.md)| Parameters for updating a Tenant's SSH Key | - -### Return type - -[**SSHKey**](SSHKey.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PCloudVolumesApi.md b/gems/ibm_cloud_power/docs/PCloudVolumesApi.md deleted file mode 100644 index b7329a1d..00000000 --- a/gems/ibm_cloud_power/docs/PCloudVolumesApi.md +++ /dev/null @@ -1,1090 +0,0 @@ -# IbmCloudPower::PCloudVolumesApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**pcloud_cloudinstances_volumes_delete**](PCloudVolumesApi.md#pcloud_cloudinstances_volumes_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id} | Delete a cloud instance volume -[**pcloud_cloudinstances_volumes_get**](PCloudVolumesApi.md#pcloud_cloudinstances_volumes_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id} | Detailed information of a volume -[**pcloud_cloudinstances_volumes_getall**](PCloudVolumesApi.md#pcloud_cloudinstances_volumes_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes | List all volumes for this cloud instance -[**pcloud_cloudinstances_volumes_post**](PCloudVolumesApi.md#pcloud_cloudinstances_volumes_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes | Create a new data volume -[**pcloud_cloudinstances_volumes_put**](PCloudVolumesApi.md#pcloud_cloudinstances_volumes_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id} | Update a cloud instance volume -[**pcloud_pvminstances_volumes_delete**](PCloudVolumesApi.md#pcloud_pvminstances_volumes_delete) | **DELETE** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id} | Detach a volume from a PVM Instance -[**pcloud_pvminstances_volumes_get**](PCloudVolumesApi.md#pcloud_pvminstances_volumes_get) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id} | Detailed information of a volume attached to a PVM Instance -[**pcloud_pvminstances_volumes_getall**](PCloudVolumesApi.md#pcloud_pvminstances_volumes_getall) | **GET** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes | List all volumes attached to a PVM Instance -[**pcloud_pvminstances_volumes_post**](PCloudVolumesApi.md#pcloud_pvminstances_volumes_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id} | Attach a volume to a PVM Instance -[**pcloud_pvminstances_volumes_put**](PCloudVolumesApi.md#pcloud_pvminstances_volumes_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id} | Update a volume attached to a PVMInstance -[**pcloud_pvminstances_volumes_setboot_put**](PCloudVolumesApi.md#pcloud_pvminstances_volumes_setboot_put) | **PUT** /pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}/setboot | Set the PVMInstance volume as the boot volume -[**pcloud_v2_volumes_clone_post**](PCloudVolumesApi.md#pcloud_v2_volumes_clone_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone | Create a volume clone for specified volumes (version 2) -[**pcloud_v2_volumes_clonetasks_get**](PCloudVolumesApi.md#pcloud_v2_volumes_clonetasks_get) | **GET** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone-tasks/{clone_task_id} | Get the status of a volume clone request for the specified clone task ID -[**pcloud_v2_volumes_post**](PCloudVolumesApi.md#pcloud_v2_volumes_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes | Create multiple data volumes from a single definition -[**pcloud_v2_volumesclone_cancel_post**](PCloudVolumesApi.md#pcloud_v2_volumesclone_cancel_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/cancel | Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action performs the cleanup of the preparatory clones and snapshot volumes. -[**pcloud_v2_volumesclone_delete**](PCloudVolumesApi.md#pcloud_v2_volumesclone_delete) | **DELETE** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id} | Delete a volumes-clone request -[**pcloud_v2_volumesclone_execute_post**](PCloudVolumesApi.md#pcloud_v2_volumesclone_execute_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/execute | Initiate the Execute action for a volumes-clone request. The Execute action creates the cloned volumes using the volume snapshots. -[**pcloud_v2_volumesclone_get**](PCloudVolumesApi.md#pcloud_v2_volumesclone_get) | **GET** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id} | Get the details for a volumes-clone request -[**pcloud_v2_volumesclone_getall**](PCloudVolumesApi.md#pcloud_v2_volumesclone_getall) | **GET** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone | Get the list of volumes-clone request for a cloud instance -[**pcloud_v2_volumesclone_post**](PCloudVolumesApi.md#pcloud_v2_volumesclone_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone | Create a new volumes clone request and initiate the Prepare action -[**pcloud_v2_volumesclone_start_post**](PCloudVolumesApi.md#pcloud_v2_volumesclone_start_post) | **POST** /pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/start | Initiate the Start action for a volume-clone request. The Start action starts the consistency group to initiate the flash copy. -[**pcloud_volumes_clone_post**](PCloudVolumesApi.md#pcloud_volumes_clone_post) | **POST** /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/clone | Create a volume clone for specified volumes (version 1 - depricated) - - - -## pcloud_cloudinstances_volumes_delete - -> Object pcloud_cloudinstances_volumes_delete(cloud_instance_id, volume_id) - -Delete a cloud instance volume - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -volume_id = 'volume_id_example' # String | Volume ID - -begin - #Delete a cloud instance volume - result = api_instance.pcloud_cloudinstances_volumes_delete(cloud_instance_id, volume_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_cloudinstances_volumes_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **volume_id** | **String**| Volume ID | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_cloudinstances_volumes_get - -> Volume pcloud_cloudinstances_volumes_get(cloud_instance_id, volume_id) - -Detailed information of a volume - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -volume_id = 'volume_id_example' # String | Volume ID - -begin - #Detailed information of a volume - result = api_instance.pcloud_cloudinstances_volumes_get(cloud_instance_id, volume_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_cloudinstances_volumes_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **volume_id** | **String**| Volume ID | - -### Return type - -[**Volume**](Volume.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudinstances_volumes_getall - -> Volumes pcloud_cloudinstances_volumes_getall(cloud_instance_id, opts) - -List all volumes for this cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -opts = { - affinity: 'affinity_example' # String | A pvmInstance (id or name), limits a volumes list response to only volumes that have affinity to the pvmInstance -} - -begin - #List all volumes for this cloud instance - result = api_instance.pcloud_cloudinstances_volumes_getall(cloud_instance_id, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_cloudinstances_volumes_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **affinity** | **String**| A pvmInstance (id or name), limits a volumes list response to only volumes that have affinity to the pvmInstance | [optional] - -### Return type - -[**Volumes**](Volumes.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_cloudinstances_volumes_post - -> Volume pcloud_cloudinstances_volumes_post(cloud_instance_id, body) - -Create a new data volume - -All regions use Tier 1 (NVMe-based flash storage) or Tier 3 (SSD flash storage) storage types. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::CreateDataVolume.new # CreateDataVolume | Parameters for the creation of a new data volume - -begin - #Create a new data volume - result = api_instance.pcloud_cloudinstances_volumes_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_cloudinstances_volumes_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**CreateDataVolume**](CreateDataVolume.md)| Parameters for the creation of a new data volume | - -### Return type - -[**Volume**](Volume.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_cloudinstances_volumes_put - -> Volume pcloud_cloudinstances_volumes_put(cloud_instance_id, volume_id, body) - -Update a cloud instance volume - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -volume_id = 'volume_id_example' # String | Volume ID -body = IbmCloudPower::UpdateVolume.new # UpdateVolume | Parameters to update a cloud instance volume - -begin - #Update a cloud instance volume - result = api_instance.pcloud_cloudinstances_volumes_put(cloud_instance_id, volume_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_cloudinstances_volumes_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **volume_id** | **String**| Volume ID | - **body** | [**UpdateVolume**](UpdateVolume.md)| Parameters to update a cloud instance volume | - -### Return type - -[**Volume**](Volume.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_volumes_delete - -> Object pcloud_pvminstances_volumes_delete(cloud_instance_id, pvm_instance_id, volume_id) - -Detach a volume from a PVM Instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -volume_id = 'volume_id_example' # String | Volume ID - -begin - #Detach a volume from a PVM Instance - result = api_instance.pcloud_pvminstances_volumes_delete(cloud_instance_id, pvm_instance_id, volume_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_pvminstances_volumes_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **volume_id** | **String**| Volume ID | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_volumes_get - -> Volume pcloud_pvminstances_volumes_get(cloud_instance_id, pvm_instance_id, volume_id) - -Detailed information of a volume attached to a PVM Instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -volume_id = 'volume_id_example' # String | Volume ID - -begin - #Detailed information of a volume attached to a PVM Instance - result = api_instance.pcloud_pvminstances_volumes_get(cloud_instance_id, pvm_instance_id, volume_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_pvminstances_volumes_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **volume_id** | **String**| Volume ID | - -### Return type - -[**Volume**](Volume.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_volumes_getall - -> Volumes pcloud_pvminstances_volumes_getall(cloud_instance_id, pvm_instance_id) - -List all volumes attached to a PVM Instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID - -begin - #List all volumes attached to a PVM Instance - result = api_instance.pcloud_pvminstances_volumes_getall(cloud_instance_id, pvm_instance_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_pvminstances_volumes_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - -### Return type - -[**Volumes**](Volumes.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_volumes_post - -> Object pcloud_pvminstances_volumes_post(cloud_instance_id, pvm_instance_id, volume_id) - -Attach a volume to a PVM Instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -volume_id = 'volume_id_example' # String | Volume ID - -begin - #Attach a volume to a PVM Instance - result = api_instance.pcloud_pvminstances_volumes_post(cloud_instance_id, pvm_instance_id, volume_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_pvminstances_volumes_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **volume_id** | **String**| Volume ID | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_pvminstances_volumes_put - -> Object pcloud_pvminstances_volumes_put(cloud_instance_id, pvm_instance_id, volume_id, body) - -Update a volume attached to a PVMInstance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -volume_id = 'volume_id_example' # String | Volume ID -body = IbmCloudPower::PVMInstanceVolumeUpdate.new # PVMInstanceVolumeUpdate | Parameters to update a volume attached to a PVMInstance - -begin - #Update a volume attached to a PVMInstance - result = api_instance.pcloud_pvminstances_volumes_put(cloud_instance_id, pvm_instance_id, volume_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_pvminstances_volumes_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **volume_id** | **String**| Volume ID | - **body** | [**PVMInstanceVolumeUpdate**](PVMInstanceVolumeUpdate.md)| Parameters to update a volume attached to a PVMInstance | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_pvminstances_volumes_setboot_put - -> Object pcloud_pvminstances_volumes_setboot_put(cloud_instance_id, pvm_instance_id, volume_id) - -Set the PVMInstance volume as the boot volume - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -pvm_instance_id = 'pvm_instance_id_example' # String | PCloud PVM Instance ID -volume_id = 'volume_id_example' # String | Volume ID - -begin - #Set the PVMInstance volume as the boot volume - result = api_instance.pcloud_pvminstances_volumes_setboot_put(cloud_instance_id, pvm_instance_id, volume_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_pvminstances_volumes_setboot_put: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **pvm_instance_id** | **String**| PCloud PVM Instance ID | - **volume_id** | **String**| Volume ID | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_v2_volumes_clone_post - -> CloneTaskReference pcloud_v2_volumes_clone_post(cloud_instance_id, body) - -Create a volume clone for specified volumes (version 2) - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::VolumesCloneAsyncRequest.new # VolumesCloneAsyncRequest | Parameters for the cloning of volumes - -begin - #Create a volume clone for specified volumes (version 2) - result = api_instance.pcloud_v2_volumes_clone_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumes_clone_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**VolumesCloneAsyncRequest**](VolumesCloneAsyncRequest.md)| Parameters for the cloning of volumes | - -### Return type - -[**CloneTaskReference**](CloneTaskReference.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_v2_volumes_clonetasks_get - -> CloneTaskStatus pcloud_v2_volumes_clonetasks_get(cloud_instance_id, clone_task_id) - -Get the status of a volume clone request for the specified clone task ID - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -clone_task_id = 'clone_task_id_example' # String | Volumes Clone Task ID - -begin - #Get the status of a volume clone request for the specified clone task ID - result = api_instance.pcloud_v2_volumes_clonetasks_get(cloud_instance_id, clone_task_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumes_clonetasks_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **clone_task_id** | **String**| Volumes Clone Task ID | - -### Return type - -[**CloneTaskStatus**](CloneTaskStatus.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_v2_volumes_post - -> Volumes pcloud_v2_volumes_post(cloud_instance_id, body) - -Create multiple data volumes from a single definition - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::MultiVolumesCreate.new # MultiVolumesCreate | Parameters for creating multiple volumes - -begin - #Create multiple data volumes from a single definition - result = api_instance.pcloud_v2_volumes_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumes_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**MultiVolumesCreate**](MultiVolumesCreate.md)| Parameters for creating multiple volumes | - -### Return type - -[**Volumes**](Volumes.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_v2_volumesclone_cancel_post - -> VolumesClone pcloud_v2_volumesclone_cancel_post(cloud_instance_id, volumes_clone_id, opts) - -Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action performs the cleanup of the preparatory clones and snapshot volumes. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name -opts = { - body: IbmCloudPower::VolumesCloneCancel.new # VolumesCloneCancel | Parameters for cancelling a volumes-clone request -} - -begin - #Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action performs the cleanup of the preparatory clones and snapshot volumes. - result = api_instance.pcloud_v2_volumesclone_cancel_post(cloud_instance_id, volumes_clone_id, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_cancel_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name | - **body** | [**VolumesCloneCancel**](VolumesCloneCancel.md)| Parameters for cancelling a volumes-clone request | [optional] - -### Return type - -[**VolumesClone**](VolumesClone.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_v2_volumesclone_delete - -> Object pcloud_v2_volumesclone_delete(cloud_instance_id, volumes_clone_id) - -Delete a volumes-clone request - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - -begin - #Delete a volumes-clone request - result = api_instance.pcloud_v2_volumesclone_delete(cloud_instance_id, volumes_clone_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_delete: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */* - - -## pcloud_v2_volumesclone_execute_post - -> VolumesClone pcloud_v2_volumesclone_execute_post(cloud_instance_id, volumes_clone_id, body) - -Initiate the Execute action for a volumes-clone request. The Execute action creates the cloned volumes using the volume snapshots. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name -body = IbmCloudPower::VolumesCloneExecute.new # VolumesCloneExecute | Parameters for the cloning of volumes - -begin - #Initiate the Execute action for a volumes-clone request. The Execute action creates the cloned volumes using the volume snapshots. - result = api_instance.pcloud_v2_volumesclone_execute_post(cloud_instance_id, volumes_clone_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_execute_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name | - **body** | [**VolumesCloneExecute**](VolumesCloneExecute.md)| Parameters for the cloning of volumes | - -### Return type - -[**VolumesClone**](VolumesClone.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_v2_volumesclone_get - -> VolumesCloneDetail pcloud_v2_volumesclone_get(cloud_instance_id, volumes_clone_id) - -Get the details for a volumes-clone request - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - -begin - #Get the details for a volumes-clone request - result = api_instance.pcloud_v2_volumesclone_get(cloud_instance_id, volumes_clone_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_get: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name | - -### Return type - -[**VolumesCloneDetail**](VolumesCloneDetail.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_v2_volumesclone_getall - -> VolumesClones pcloud_v2_volumesclone_getall(cloud_instance_id, opts) - -Get the list of volumes-clone request for a cloud instance - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -opts = { - filter: 'filter_example' # String | volumes-clone filter to limit list items: prepare - includes status values (preparing, prepared) start - includes status values (starting, available) execute - includes status values (executing, available-rollback) cancel - includes status values (cancelling) completed - includes status values (completed) failed - includes status values (failed) cancelled - includes status values (cancelled) finalized - included status values (completed, failed, cancelled) -} - -begin - #Get the list of volumes-clone request for a cloud instance - result = api_instance.pcloud_v2_volumesclone_getall(cloud_instance_id, opts) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_getall: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **filter** | **String**| volumes-clone filter to limit list items: prepare - includes status values (preparing, prepared) start - includes status values (starting, available) execute - includes status values (executing, available-rollback) cancel - includes status values (cancelling) completed - includes status values (completed) failed - includes status values (failed) cancelled - includes status values (cancelled) finalized - included status values (completed, failed, cancelled) | [optional] - -### Return type - -[**VolumesClones**](VolumesClones.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## pcloud_v2_volumesclone_post - -> VolumesClone pcloud_v2_volumesclone_post(cloud_instance_id, body) - -Create a new volumes clone request and initiate the Prepare action - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::VolumesCloneCreate.new # VolumesCloneCreate | Parameters for preparing a set of volumes to be cloned (This API requires a minimum of two volumes, a minimum of one volume to be in the 'in-use' state, and a unique volume clone name. The Prepare action does the preparatory work for creating the snapshot volumes.) - -begin - #Create a new volumes clone request and initiate the Prepare action - result = api_instance.pcloud_v2_volumesclone_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**VolumesCloneCreate**](VolumesCloneCreate.md)| Parameters for preparing a set of volumes to be cloned (This API requires a minimum of two volumes, a minimum of one volume to be in the 'in-use' state, and a unique volume clone name. The Prepare action does the preparatory work for creating the snapshot volumes.) | - -### Return type - -[**VolumesClone**](VolumesClone.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## pcloud_v2_volumesclone_start_post - -> VolumesClone pcloud_v2_volumesclone_start_post(cloud_instance_id, volumes_clone_id) - -Initiate the Start action for a volume-clone request. The Start action starts the consistency group to initiate the flash copy. - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -volumes_clone_id = 'volumes_clone_id_example' # String | Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - -begin - #Initiate the Start action for a volume-clone request. The Start action starts the consistency group to initiate the flash copy. - result = api_instance.pcloud_v2_volumesclone_start_post(cloud_instance_id, volumes_clone_id) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_v2_volumesclone_start_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **volumes_clone_id** | **String**| Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name | - -### Return type - -[**VolumesClone**](VolumesClone.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: */*, application/json - - -## pcloud_volumes_clone_post - -> VolumesCloneResponse pcloud_volumes_clone_post(cloud_instance_id, body) - -Create a volume clone for specified volumes (version 1 - depricated) - -### Example - -```ruby -# load the gem -require 'ibm_cloud_power' - -api_instance = IbmCloudPower::PCloudVolumesApi.new -cloud_instance_id = 'cloud_instance_id_example' # String | Cloud Instance ID of a PCloud Instance -body = IbmCloudPower::VolumesCloneRequest.new # VolumesCloneRequest | Parameters for the cloning of volumes - -begin - #Create a volume clone for specified volumes (version 1 - depricated) - result = api_instance.pcloud_volumes_clone_post(cloud_instance_id, body) - p result -rescue IbmCloudPower::ApiError => e - puts "Exception when calling PCloudVolumesApi->pcloud_volumes_clone_post: #{e}" -end -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cloud_instance_id** | **String**| Cloud Instance ID of a PCloud Instance | - **body** | [**VolumesCloneRequest**](VolumesCloneRequest.md)| Parameters for the cloning of volumes | - -### Return type - -[**VolumesCloneResponse**](VolumesCloneResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/gems/ibm_cloud_power/docs/PVMInstance.md b/gems/ibm_cloud_power/docs/PVMInstance.md deleted file mode 100644 index cc227018..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstance.md +++ /dev/null @@ -1,79 +0,0 @@ -# IbmCloudPower::PVMInstance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pvm_instance_id** | **String** | PCloud PVM Instance ID | -**server_name** | **String** | Name of the server | -**image_id** | **String** | The ImageID used by the server | -**processors** | **Float** | Number of processors allocated | -**minproc** | **Float** | Minimum number of processors that can be allocated (for resize) | [optional] -**maxproc** | **Float** | Maximum number of processors that can be allocated (for resize) | [optional] -**proc_type** | **String** | Processor type (dedicated, shared, capped) | [default to 'dedicated'] -**memory** | **Float** | Amount of memory allocated (in GB) | -**minmem** | **Float** | Minimum amount of memory that can be allocated (in GB, for resize) | [optional] -**maxmem** | **Float** | Maximum amount of memory that can be allocated (in GB, for resize) | [optional] -**disk_size** | **Float** | Size of allocated disk (in GB) | -**network_i_ds** | **Array<String>** | (deprecated - replaced by networks) List of Network IDs | -**volume_i_ds** | **Array<String>** | List of volume IDs | -**addresses** | [**Array<PVMInstanceNetwork>**](PVMInstanceNetwork.md) | (deprecated - replaced by networks) The list of addresses and their network information | [optional] -**networks** | [**Array<PVMInstanceNetwork>**](PVMInstanceNetwork.md) | The pvm instance networks information | [optional] -**status** | **String** | The status of the instance | -**progress** | **Float** | The progress of an operation | [optional] -**fault** | [**PVMInstanceFault**](PVMInstanceFault.md) | | [optional] -**creation_date** | **DateTime** | Date/Time of PVM creation | [optional] -**updated_date** | **DateTime** | Date/Time of PVM last update | [optional] -**sys_type** | **String** | System type used to host the instance | [optional] -**health** | [**PVMInstanceHealth**](PVMInstanceHealth.md) | | [optional] -**migratable** | **Boolean** | whether the instance can be migrated | [optional] [default to true] -**storage_type** | **String** | Storage type where server is deployed | -**software_licenses** | [**SoftwareLicenses**](SoftwareLicenses.md) | | [optional] -**srcs** | **Array<Array<SRC>>** | The pvm instance SRC lists | [optional] -**pin_policy** | **String** | VM pinning policy to use [none, soft, hard] | [optional] -**os_type** | **String** | Type of the OS [aix, ibmi, redhat, sles] | -**operating_system** | **String** | OS system information (usually version and build) | [optional] -**sap_profile** | [**SAPProfileReference**](SAPProfileReference.md) | | [optional] -**virtual_cores** | [**VirtualCores**](VirtualCores.md) | | [optional] -**placement_group** | **String** | The placement group of the server | [optional] [default to 'none'] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstance.new(pvm_instance_id: null, - server_name: null, - image_id: null, - processors: null, - minproc: null, - maxproc: null, - proc_type: null, - memory: null, - minmem: null, - maxmem: null, - disk_size: null, - network_i_ds: null, - volume_i_ds: null, - addresses: null, - networks: null, - status: null, - progress: null, - fault: null, - creation_date: null, - updated_date: null, - sys_type: null, - health: null, - migratable: null, - storage_type: null, - software_licenses: null, - srcs: null, - pin_policy: null, - os_type: null, - operating_system: null, - sap_profile: null, - virtual_cores: null, - placement_group: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceAction.md b/gems/ibm_cloud_power/docs/PVMInstanceAction.md deleted file mode 100644 index c1d86060..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceAction.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::PVMInstanceAction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | Name of the action to take; can be start, stop, hard-reboot, soft-reboot, immediate-shutdown, reset-state | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceAction.new(action: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceAddNetwork.md b/gems/ibm_cloud_power/docs/PVMInstanceAddNetwork.md deleted file mode 100644 index 5743d019..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceAddNetwork.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::PVMInstanceAddNetwork - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**network_id** | **String** | ID of the network | -**ip_address** | **String** | The requested ip address of this network interface | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceAddNetwork.new(network_id: null, - ip_address: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceCapture.md b/gems/ibm_cloud_power/docs/PVMInstanceCapture.md deleted file mode 100644 index ff665c27..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceCapture.md +++ /dev/null @@ -1,29 +0,0 @@ -# IbmCloudPower::PVMInstanceCapture - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**capture_name** | **String** | Name of the deployable image created for the captured PVMInstance | -**capture_volume_i_ds** | **Array<String>** | List of Data volume IDs to include in the captured PVMInstance | [optional] -**capture_destination** | **String** | Destination for the deployable image | [default to 'cloud-storage'] -**cloud_storage_image_path** | **String** | Cloud Storage Image Path (bucket-name [/folder/../..]) | [optional] -**cloud_storage_region** | **String** | Cloud Storage Region | [optional] -**cloud_storage_access_key** | **String** | Cloud Storage Access key | [optional] -**cloud_storage_secret_key** | **String** | Cloud Storage Secret key | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceCapture.new(capture_name: null, - capture_volume_i_ds: null, - capture_destination: null, - cloud_storage_image_path: null, - cloud_storage_region: null, - cloud_storage_access_key: null, - cloud_storage_secret_key: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceClone.md b/gems/ibm_cloud_power/docs/PVMInstanceClone.md deleted file mode 100644 index 34da6138..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceClone.md +++ /dev/null @@ -1,31 +0,0 @@ -# IbmCloudPower::PVMInstanceClone - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the server to create | -**processors** | **Float** | Number of processors allocated | [optional] -**proc_type** | **String** | Processor type (dedicated, shared, capped) | [optional] [default to 'dedicated'] -**memory** | **Float** | Amount of memory allocated (in GB) | [optional] -**networks** | [**Array<PVMInstanceAddNetwork>**](PVMInstanceAddNetwork.md) | The pvm instance networks information | -**volume_i_ds** | **Array<String>** | List of volume IDs | [optional] -**key_pair_name** | **String** | The name of the SSH key pair provided to the server for authenticating users (looked up in the tenant's list of keys) | [optional] -**software_licenses** | [**SoftwareLicenses**](SoftwareLicenses.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceClone.new(name: null, - processors: null, - proc_type: null, - memory: null, - networks: null, - volume_i_ds: null, - key_pair_name: null, - software_licenses: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceConsole.md b/gems/ibm_cloud_power/docs/PVMInstanceConsole.md deleted file mode 100644 index 55db1284..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceConsole.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::PVMInstanceConsole - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**console_url** | **String** | The URL to the noVNC console for the PVM instance | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceConsole.new(console_url: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceCreate.md b/gems/ibm_cloud_power/docs/PVMInstanceCreate.md deleted file mode 100644 index a0c66ecf..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceCreate.md +++ /dev/null @@ -1,55 +0,0 @@ -# IbmCloudPower::PVMInstanceCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**server_name** | **String** | Name of the server to create | -**replicants** | **Float** | Number of duplicate instances to create in this request | [optional] -**replicant_naming_scheme** | **String** | How to name the created vms | [optional] [default to 'suffix'] -**replicant_affinity_policy** | **String** | Affinity policy for replicants being created; affinity for the same host, anti-affinity for different hosts, none for no preference | [optional] [default to 'none'] -**image_id** | **String** | Image ID of the image to use for the server | -**processors** | **Float** | Number of processors allocated | -**proc_type** | **String** | Processor type (dedicated, shared, capped) | [default to 'dedicated'] -**memory** | **Float** | Amount of memory allocated (in GB) | -**network_i_ds** | **Array<String>** | (deprecated - replaced by networks) List of Network IDs | [optional] -**networks** | [**Array<PVMInstanceAddNetwork>**](PVMInstanceAddNetwork.md) | The pvm instance networks information | [optional] -**volume_i_ds** | **Array<String>** | List of volume IDs | [optional] -**key_pair_name** | **String** | The name of the SSH key pair provided to the server for authenticating users (looked up in the tenant's list of keys) | [optional] -**sys_type** | **String** | System type used to host the instance | [optional] -**migratable** | **Boolean** | Indicates if the server is allowed to migrate between hosts | [optional] [default to true] -**user_data** | **String** | Cloud-init user-defined data. The user-defined data is made available to the VM instance as a config drive. | [optional] -**storage_type** | **String** | Storage type for server deployment. Only valid when you deploy one of the IBM supplied **stock** images. Storage type for a custom image (an imported image or an image that is created from a VM capture) defaults to the storage type the image was created in | [optional] -**software_licenses** | [**SoftwareLicenses**](SoftwareLicenses.md) | | [optional] -**pin_policy** | [**PinPolicy**](PinPolicy.md) | | [optional] -**virtual_cores** | [**VirtualCores**](VirtualCores.md) | | [optional] -**placement_group** | **String** | The placement group for the server | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceCreate.new(server_name: null, - replicants: null, - replicant_naming_scheme: null, - replicant_affinity_policy: null, - image_id: null, - processors: null, - proc_type: null, - memory: null, - network_i_ds: null, - networks: null, - volume_i_ds: null, - key_pair_name: null, - sys_type: null, - migratable: null, - user_data: null, - storage_type: null, - software_licenses: null, - pin_policy: null, - virtual_cores: null, - placement_group: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceFault.md b/gems/ibm_cloud_power/docs/PVMInstanceFault.md deleted file mode 100644 index cfe889c1..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceFault.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::PVMInstanceFault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Float** | The fault status of the server, if any | [optional] -**details** | **String** | The fault details of the server, if any | [optional] -**message** | **String** | The fault message of the server, if any | [optional] -**created** | **DateTime** | The date and time the fault occurred | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceFault.new(code: null, - details: null, - message: null, - created: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceHealth.md b/gems/ibm_cloud_power/docs/PVMInstanceHealth.md deleted file mode 100644 index b32bb7e4..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceHealth.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::PVMInstanceHealth - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **String** | The PVM's health status value | [optional] -**last_update** | **String** | Date/Time of PVM last health status change | [optional] -**reason** | **String** | The health status reason, if any | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceHealth.new(status: null, - last_update: null, - reason: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceMultiCreate.md b/gems/ibm_cloud_power/docs/PVMInstanceMultiCreate.md deleted file mode 100644 index 4aa93061..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceMultiCreate.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::PVMInstanceMultiCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Integer** | Number of pvm-instances to create | [optional] -**affinity_policy** | **String** | Affinity policy for pvm-instances being created; affinity for the same host, anti-affinity for different hosts, none for no preference | [optional] [default to 'none'] -**numerical** | **String** | Where to place the numerical number of the multi-created instance | [optional] [default to 'suffix'] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceMultiCreate.new(count: null, - affinity_policy: null, - numerical: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceNetwork.md b/gems/ibm_cloud_power/docs/PVMInstanceNetwork.md deleted file mode 100644 index c05ed561..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceNetwork.md +++ /dev/null @@ -1,33 +0,0 @@ -# IbmCloudPower::PVMInstanceNetwork - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**version** | **Float** | The version of the information provided | [optional] -**network_id** | **String** | ID of the network | [optional] -**network_name** | **String** | The name of the network the address is on | [optional] -**mac_address** | **String** | The mac address of the network interface | [optional] -**type** | **String** | The address type (fixed or dynamic) | [optional] -**ip** | **String** | (deprecated - replaced by ipAddress) | [optional] -**ip_address** | **String** | The ip address of this network interface | [optional] -**external_ip** | **String** | The external ip address (for pub-vlan networks) | [optional] -**href** | **String** | Link to PVM Instance Network | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceNetwork.new(version: null, - network_id: null, - network_name: null, - mac_address: null, - type: null, - ip: null, - ip_address: null, - external_ip: null, - href: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceNetworks.md b/gems/ibm_cloud_power/docs/PVMInstanceNetworks.md deleted file mode 100644 index e38f3f55..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceNetworks.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::PVMInstanceNetworks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**networks** | [**Array<PVMInstanceNetwork>**](PVMInstanceNetwork.md) | PVM Instance Networks | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceNetworks.new(networks: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceOperation.md b/gems/ibm_cloud_power/docs/PVMInstanceOperation.md deleted file mode 100644 index 251af34c..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceOperation.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::PVMInstanceOperation - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**operation_type** | **String** | Name of the operation to execute; can be job or boot | -**operation** | [**Operations**](Operations.md) | | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceOperation.new(operation_type: null, - operation: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceReference.md b/gems/ibm_cloud_power/docs/PVMInstanceReference.md deleted file mode 100644 index 1022170c..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceReference.md +++ /dev/null @@ -1,71 +0,0 @@ -# IbmCloudPower::PVMInstanceReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pvm_instance_id** | **String** | PCloud PVM Instance ID | -**server_name** | **String** | Name of the server | -**image_id** | **String** | The ImageID used by the server | -**processors** | **Float** | Number of processors allocated | -**minproc** | **Float** | Minimum number of processors that can be allocated (for resize) | [optional] -**maxproc** | **Float** | Maximum number of processors that can be allocated (for resize) | [optional] -**proc_type** | **String** | Processor type (dedicated, shared, capped) | [default to 'dedicated'] -**memory** | **Float** | Amount of memory allocated (in GB) | -**minmem** | **Float** | Minimum amount of memory that can be allocated (in GB, for resize) | [optional] -**maxmem** | **Float** | Maximum amount of memory that can be allocated (in GB, for resize) | [optional] -**disk_size** | **Float** | Size of allocated disk (in GB) | -**addresses** | [**Array<PVMInstanceNetwork>**](PVMInstanceNetwork.md) | (deprecated - replaced by networks) The list of addresses and their network information | [optional] -**networks** | [**Array<PVMInstanceNetwork>**](PVMInstanceNetwork.md) | The list of addresses and their network information | [optional] -**status** | **String** | The status of the instance | -**progress** | **Float** | The progress of an operation | [optional] -**fault** | [**PVMInstanceFault**](PVMInstanceFault.md) | | [optional] -**creation_date** | **DateTime** | Date/Time of PVM creation | [optional] -**updated_date** | **DateTime** | Date/Time of PVM last update | [optional] -**sys_type** | **String** | System type used to host the instance | [optional] -**health** | [**PVMInstanceHealth**](PVMInstanceHealth.md) | | [optional] -**href** | **String** | Link to Cloud Instance resource | -**software_licenses** | [**SoftwareLicenses**](SoftwareLicenses.md) | | [optional] -**srcs** | **Array<Array<SRC>>** | The pvm instance SRC lists | [optional] -**pin_policy** | **String** | VM pinning policy to use [none, soft, hard] | [optional] -**os_type** | **String** | Type of the OS [aix, ibmi, redhat, sles] | -**operating_system** | **String** | OS system information (usually version and build) | [optional] -**sap_profile** | [**SAPProfileReference**](SAPProfileReference.md) | | [optional] -**virtual_cores** | [**VirtualCores**](VirtualCores.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceReference.new(pvm_instance_id: null, - server_name: null, - image_id: null, - processors: null, - minproc: null, - maxproc: null, - proc_type: null, - memory: null, - minmem: null, - maxmem: null, - disk_size: null, - addresses: null, - networks: null, - status: null, - progress: null, - fault: null, - creation_date: null, - updated_date: null, - sys_type: null, - health: null, - href: null, - software_licenses: null, - srcs: null, - pin_policy: null, - os_type: null, - operating_system: null, - sap_profile: null, - virtual_cores: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceRemoveNetwork.md b/gems/ibm_cloud_power/docs/PVMInstanceRemoveNetwork.md deleted file mode 100644 index 48bd972d..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceRemoveNetwork.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::PVMInstanceRemoveNetwork - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mac_address** | **String** | The mac address of the network interface to be removed | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceRemoveNetwork.new(mac_address: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceUpdate.md b/gems/ibm_cloud_power/docs/PVMInstanceUpdate.md deleted file mode 100644 index dea9d70d..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceUpdate.md +++ /dev/null @@ -1,33 +0,0 @@ -# IbmCloudPower::PVMInstanceUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**server_name** | **String** | Name of the server to create | [optional] -**processors** | **Float** | Number of processors allocated | [optional] -**proc_type** | **String** | Processor type (dedicated, shared, capped) | [optional] -**memory** | **Float** | Amount of memory allocated (in GB) | [optional] -**migratable** | **Boolean** | Indicates if the server is allowed to migrate between hosts | [optional] [default to true] -**software_licenses** | [**SoftwareLicenses**](SoftwareLicenses.md) | | [optional] -**pin_policy** | [**PinPolicy**](PinPolicy.md) | | [optional] -**sap_profile_id** | **String** | If an SAP pvm-instance, the SAP profile ID to switch to (only while shutdown) | [optional] -**virtual_cores** | [**VirtualCores**](VirtualCores.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceUpdate.new(server_name: null, - processors: null, - proc_type: null, - memory: null, - migratable: null, - software_licenses: null, - pin_policy: null, - sap_profile_id: null, - virtual_cores: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceUpdateResponse.md b/gems/ibm_cloud_power/docs/PVMInstanceUpdateResponse.md deleted file mode 100644 index 341f97eb..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceUpdateResponse.md +++ /dev/null @@ -1,27 +0,0 @@ -# IbmCloudPower::PVMInstanceUpdateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**server_name** | **String** | Name of the server to create | [optional] -**status_url** | **String** | URL to check for status of the operation (for now, just the URL for the GET on the server, which has status information from powervc) | [optional] -**processors** | **Float** | Number of processors allocated | [optional] -**proc_type** | **String** | Processor type (dedicated, shared, capped) | [optional] -**memory** | **Float** | Amount of memory allocated (in GB) | [optional] -**pin_policy** | [**PinPolicy**](PinPolicy.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceUpdateResponse.new(server_name: null, - status_url: null, - processors: null, - proc_type: null, - memory: null, - pin_policy: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstanceVolumeUpdate.md b/gems/ibm_cloud_power/docs/PVMInstanceVolumeUpdate.md deleted file mode 100644 index ac6d7789..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstanceVolumeUpdate.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::PVMInstanceVolumeUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**delete_on_termination** | **Boolean** | Indicates if the volume should be deleted when the PVMInstance is terminated | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstanceVolumeUpdate.new(delete_on_termination: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PVMInstances.md b/gems/ibm_cloud_power/docs/PVMInstances.md deleted file mode 100644 index 19703533..00000000 --- a/gems/ibm_cloud_power/docs/PVMInstances.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::PVMInstances - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pvm_instances** | [**Array<PVMInstanceReference>**](PVMInstanceReference.md) | PVM Instance References | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PVMInstances.new(pvm_instances: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PeeringNetwork.md b/gems/ibm_cloud_power/docs/PeeringNetwork.md deleted file mode 100644 index 5e7538fa..00000000 --- a/gems/ibm_cloud_power/docs/PeeringNetwork.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::PeeringNetwork - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**project_name** | **String** | Name of project to be peered | -**cidr** | **String** | Network in CIDR notation (192.168.0.0/24) | -**dns_servers** | **Array<String>** | DNS Servers | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PeeringNetwork.new(project_name: null, - cidr: null, - dns_servers: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PinPolicy.md b/gems/ibm_cloud_power/docs/PinPolicy.md deleted file mode 100644 index ca0323ec..00000000 --- a/gems/ibm_cloud_power/docs/PinPolicy.md +++ /dev/null @@ -1,16 +0,0 @@ -# IbmCloudPower::PinPolicy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PinPolicy.new() -``` - - diff --git a/gems/ibm_cloud_power/docs/PlacementGroup.md b/gems/ibm_cloud_power/docs/PlacementGroup.md deleted file mode 100644 index 58965c09..00000000 --- a/gems/ibm_cloud_power/docs/PlacementGroup.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::PlacementGroup - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The id of the Placement Group | -**name** | **String** | The name of the Placement Group | -**policy** | **String** | The Placement Group Policy | -**members** | **Array<String>** | The List of PVM Instance IDs associated with the Placement Group | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PlacementGroup.new(id: null, - name: null, - policy: null, - members: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PlacementGroupCreate.md b/gems/ibm_cloud_power/docs/PlacementGroupCreate.md deleted file mode 100644 index 3d3f2f8d..00000000 --- a/gems/ibm_cloud_power/docs/PlacementGroupCreate.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::PlacementGroupCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the Placement Group | -**policy** | **String** | The Placement Group Policy | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PlacementGroupCreate.new(name: null, - policy: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PlacementGroupServer.md b/gems/ibm_cloud_power/docs/PlacementGroupServer.md deleted file mode 100644 index cd7a0ab6..00000000 --- a/gems/ibm_cloud_power/docs/PlacementGroupServer.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::PlacementGroupServer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The ID of the Server | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PlacementGroupServer.new(id: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/PlacementGroups.md b/gems/ibm_cloud_power/docs/PlacementGroups.md deleted file mode 100644 index da65b850..00000000 --- a/gems/ibm_cloud_power/docs/PlacementGroups.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::PlacementGroups - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**placement_groups** | [**Array<PlacementGroup>**](PlacementGroup.md) | List of Server Placement Groups | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::PlacementGroups.new(placement_groups: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SAPCreate.md b/gems/ibm_cloud_power/docs/SAPCreate.md deleted file mode 100644 index 95c53e1b..00000000 --- a/gems/ibm_cloud_power/docs/SAPCreate.md +++ /dev/null @@ -1,33 +0,0 @@ -# IbmCloudPower::SAPCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the sap pvm-instance | -**image_id** | **String** | Image ID of the sap image to use for the server | -**profile_id** | **String** | SAP Profile ID for the amount of cores and memory | -**networks** | [**Array<PVMInstanceAddNetwork>**](PVMInstanceAddNetwork.md) | The pvm instance networks information | -**volume_i_ds** | **Array<String>** | List of Volume IDs to attach to the pvm-instance on creation | [optional] -**instances** | [**PVMInstanceMultiCreate**](PVMInstanceMultiCreate.md) | | [optional] -**ssh_key_name** | **String** | The name of the SSH Key to provide to the server for authenticating | [optional] -**user_data** | **String** | Cloud-init user-defined data. The user-defined data is made available to the VM instance as a config drive. | [optional] -**pin_policy** | [**PinPolicy**](PinPolicy.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SAPCreate.new(name: null, - image_id: null, - profile_id: null, - networks: null, - volume_i_ds: null, - instances: null, - ssh_key_name: null, - user_data: null, - pin_policy: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SAPProfile.md b/gems/ibm_cloud_power/docs/SAPProfile.md deleted file mode 100644 index d4248805..00000000 --- a/gems/ibm_cloud_power/docs/SAPProfile.md +++ /dev/null @@ -1,25 +0,0 @@ -# IbmCloudPower::SAPProfile - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**profile_id** | **String** | SAP Profile ID | -**type** | **String** | Type of profile | [default to 'balanced'] -**cores** | **Integer** | Amount of cores | -**memory** | **Integer** | Amount of memory (in GB) | -**certified** | **Boolean** | Has certification been performed on profile | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SAPProfile.new(profile_id: null, - type: null, - cores: null, - memory: null, - certified: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SAPProfileReference.md b/gems/ibm_cloud_power/docs/SAPProfileReference.md deleted file mode 100644 index e16fc8f6..00000000 --- a/gems/ibm_cloud_power/docs/SAPProfileReference.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::SAPProfileReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**profile_id** | **String** | SAP Profile ID | -**href** | **String** | Link to SAP profile resource | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SAPProfileReference.new(profile_id: null, - href: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SAPProfiles.md b/gems/ibm_cloud_power/docs/SAPProfiles.md deleted file mode 100644 index 67532255..00000000 --- a/gems/ibm_cloud_power/docs/SAPProfiles.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::SAPProfiles - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**profiles** | [**Array<SAPProfile>**](SAPProfile.md) | SAP Profiles | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SAPProfiles.new(profiles: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SRC.md b/gems/ibm_cloud_power/docs/SRC.md deleted file mode 100644 index 46cc09f8..00000000 --- a/gems/ibm_cloud_power/docs/SRC.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::SRC - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timestamp** | **String** | The date stamp of the SRC | [optional] -**src** | **String** | The SRC reference code | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SRC.new(timestamp: null, - src: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SSHKey.md b/gems/ibm_cloud_power/docs/SSHKey.md deleted file mode 100644 index fd8cac5d..00000000 --- a/gems/ibm_cloud_power/docs/SSHKey.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::SSHKey - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | User defined name for the SSH key | -**ssh_key** | **String** | SSH RSA key | -**creation_date** | **DateTime** | Date of sshkey creation | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SSHKey.new(name: null, - ssh_key: null, - creation_date: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SSHKeys.md b/gems/ibm_cloud_power/docs/SSHKeys.md deleted file mode 100644 index 36ec187e..00000000 --- a/gems/ibm_cloud_power/docs/SSHKeys.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::SSHKeys - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ssh_keys** | [**Array<SSHKey>**](SSHKey.md) | SSH Keys | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SSHKeys.new(ssh_keys: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Snapshot.md b/gems/ibm_cloud_power/docs/Snapshot.md deleted file mode 100644 index 0bccb046..00000000 --- a/gems/ibm_cloud_power/docs/Snapshot.md +++ /dev/null @@ -1,35 +0,0 @@ -# IbmCloudPower::Snapshot - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**snapshot_id** | **String** | ID of the PVM instance snapshot | -**pvm_instance_id** | **String** | PCloud PVM Instance ID | -**name** | **String** | Name of the PVM instance snapshot | -**description** | **String** | Description of the PVM instance snapshot | [optional] -**status** | **String** | Status of the PVM instancesnapshot | [optional] -**volume_snapshots** | **Hash<String, String>** | A map of volume snapshots included in the PVM instance snapshot | -**creation_date** | **DateTime** | Creation Date | [optional] -**last_update_date** | **DateTime** | Last Update Date | [optional] -**action** | **String** | Action performed on the instance snapshot | [optional] -**percent_complete** | **Float** | Snapshot completion percentage | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Snapshot.new(snapshot_id: null, - pvm_instance_id: null, - name: null, - description: null, - status: null, - volume_snapshots: null, - creation_date: null, - last_update_date: null, - action: null, - percent_complete: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SnapshotCreate.md b/gems/ibm_cloud_power/docs/SnapshotCreate.md deleted file mode 100644 index 7f05f6fd..00000000 --- a/gems/ibm_cloud_power/docs/SnapshotCreate.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::SnapshotCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the PVM instance snapshot to create. | -**description** | **String** | Description of the PVM instance snapshot. | [optional] -**volume_i_ds** | **Array<String>** | List of volumes to include in the PVM instance snapshot. This parameter is optional. If you do not specify this parameter or if the volumeIDs list is empty, all the volumes that are attached to the PVM instance are included in the snapshot. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SnapshotCreate.new(name: null, - description: null, - volume_i_ds: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SnapshotCreateResponse.md b/gems/ibm_cloud_power/docs/SnapshotCreateResponse.md deleted file mode 100644 index e01a453f..00000000 --- a/gems/ibm_cloud_power/docs/SnapshotCreateResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::SnapshotCreateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**snapshot_id** | **String** | ID of the PVM instance snapshot | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SnapshotCreateResponse.new(snapshot_id: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SnapshotRestore.md b/gems/ibm_cloud_power/docs/SnapshotRestore.md deleted file mode 100644 index 3dca9c7f..00000000 --- a/gems/ibm_cloud_power/docs/SnapshotRestore.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::SnapshotRestore - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**force** | **Boolean** | By default the VM must be shutoff during a snapshot restore, force set to true will relax the VM shutoff pre-condition. | [optional] [default to false] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SnapshotRestore.new(force: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SnapshotUpdate.md b/gems/ibm_cloud_power/docs/SnapshotUpdate.md deleted file mode 100644 index ec932cc9..00000000 --- a/gems/ibm_cloud_power/docs/SnapshotUpdate.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::SnapshotUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the PVM instance snapshot | [optional] -**description** | **String** | Description of the PVM instance snapshot | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SnapshotUpdate.new(name: null, - description: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Snapshots.md b/gems/ibm_cloud_power/docs/Snapshots.md deleted file mode 100644 index c30bf198..00000000 --- a/gems/ibm_cloud_power/docs/Snapshots.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::Snapshots - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**snapshots** | [**Array<Snapshot>**](Snapshot.md) | List of PVM instance snapshots | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Snapshots.new(snapshots: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SoftwareLicenses.md b/gems/ibm_cloud_power/docs/SoftwareLicenses.md deleted file mode 100644 index a198c21c..00000000 --- a/gems/ibm_cloud_power/docs/SoftwareLicenses.md +++ /dev/null @@ -1,25 +0,0 @@ -# IbmCloudPower::SoftwareLicenses - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ibmi_css** | **Boolean** | IBMi Cloud Storage Solution | [optional] [default to false] -**ibmi_pha** | **Boolean** | IBMi Power High Availability | [optional] [default to false] -**ibmi_rds** | **Boolean** | IBMi Rational Dev Studio | [optional] [default to false] -**ibmi_rds_users** | **Integer** | IBMi Rational Dev Studio Number of User Licenses | [optional] -**ibmi_dbq** | **Boolean** | IBMi Cloud Storage Solution | [optional] [default to false] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SoftwareLicenses.new(ibmi_css: null, - ibmi_pha: null, - ibmi_rds: null, - ibmi_rds_users: null, - ibmi_dbq: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/StockImage.md b/gems/ibm_cloud_power/docs/StockImage.md deleted file mode 100644 index eb02d0d1..00000000 --- a/gems/ibm_cloud_power/docs/StockImage.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::StockImage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**storage_type** | **String** | Storage type for a stock image | [optional] -**storage_pool** | **String** | Storage pool for a stock image | [optional] -**id** | **String** | Image ID | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::StockImage.new(storage_type: null, - storage_pool: null, - id: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/StoragePoolCapacity.md b/gems/ibm_cloud_power/docs/StoragePoolCapacity.md deleted file mode 100644 index 07a6eb14..00000000 --- a/gems/ibm_cloud_power/docs/StoragePoolCapacity.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::StoragePoolCapacity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pool_name** | **String** | Pool name | [optional] -**storage_type** | **String** | Storage type of the storage pool | [optional] -**max_allocation_size** | **Integer** | Maximum allocation storage size (GB) | -**total_capacity** | **Integer** | Total pool capacity (GB) | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::StoragePoolCapacity.new(pool_name: null, - storage_type: null, - max_allocation_size: null, - total_capacity: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/StoragePoolsCapacity.md b/gems/ibm_cloud_power/docs/StoragePoolsCapacity.md deleted file mode 100644 index 7763f8bd..00000000 --- a/gems/ibm_cloud_power/docs/StoragePoolsCapacity.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::StoragePoolsCapacity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maximum_storage_allocation** | [**MaximumStorageAllocation**](MaximumStorageAllocation.md) | | [optional] -**storage_pools_capacity** | [**Array<StoragePoolCapacity>**](StoragePoolCapacity.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::StoragePoolsCapacity.new(maximum_storage_allocation: null, - storage_pools_capacity: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/StorageTypeCapacity.md b/gems/ibm_cloud_power/docs/StorageTypeCapacity.md deleted file mode 100644 index d2d4629a..00000000 --- a/gems/ibm_cloud_power/docs/StorageTypeCapacity.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::StorageTypeCapacity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**storage_type** | **String** | Storage type | [optional] -**maximum_storage_allocation** | [**MaximumStorageAllocation**](MaximumStorageAllocation.md) | | [optional] -**storage_pools_capacity** | [**Array<StoragePoolCapacity>**](StoragePoolCapacity.md) | List of storage pool capacity for storage type | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::StorageTypeCapacity.new(storage_type: null, - maximum_storage_allocation: null, - storage_pools_capacity: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/StorageTypesCapacity.md b/gems/ibm_cloud_power/docs/StorageTypesCapacity.md deleted file mode 100644 index dc46797e..00000000 --- a/gems/ibm_cloud_power/docs/StorageTypesCapacity.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::StorageTypesCapacity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maximum_storage_allocation** | [**MaximumStorageAllocation**](MaximumStorageAllocation.md) | | [optional] -**storage_types_capacity** | [**Array<StorageTypeCapacity>**](StorageTypeCapacity.md) | | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::StorageTypesCapacity.new(maximum_storage_allocation: null, - storage_types_capacity: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/System.md b/gems/ibm_cloud_power/docs/System.md deleted file mode 100644 index e0db1a19..00000000 --- a/gems/ibm_cloud_power/docs/System.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::System - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cores** | **Float** | The host available Processor units | -**id** | **Integer** | The host identifier | [optional] -**memory** | **Integer** | The host available RAM memory in GiB | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::System.new(cores: null, - id: null, - memory: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/SystemPool.md b/gems/ibm_cloud_power/docs/SystemPool.md deleted file mode 100644 index 21a89f13..00000000 --- a/gems/ibm_cloud_power/docs/SystemPool.md +++ /dev/null @@ -1,31 +0,0 @@ -# IbmCloudPower::SystemPool - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**systems** | [**Array<System>**](System.md) | The DataCenter list of servers and their available resources | [optional] -**shared_core_ratio** | [**MinMaxDefault**](MinMaxDefault.md) | | [optional] -**max_available** | [**System**](System.md) | | [optional] -**capacity** | [**System**](System.md) | | [optional] -**max_cores_available** | [**System**](System.md) | | [optional] -**max_memory_available** | [**System**](System.md) | | [optional] -**core_memory_ratio** | **Float** | Processor to Memory (GB) Ratio | [optional] -**type** | **String** | Type of system hardware | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::SystemPool.new(systems: null, - shared_core_ratio: null, - max_available: null, - capacity: null, - max_cores_available: null, - max_memory_available: null, - core_memory_ratio: null, - type: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Task.md b/gems/ibm_cloud_power/docs/Task.md deleted file mode 100644 index 935991b6..00000000 --- a/gems/ibm_cloud_power/docs/Task.md +++ /dev/null @@ -1,33 +0,0 @@ -# IbmCloudPower::Task - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**task_id** | **String** | Pcloud Task ID | -**operation** | **String** | Task Operation | -**cloud_instance_id** | **String** | Cloud Instance ID of task owner | -**component_type** | **String** | the component type of the task | -**component_id** | **String** | the component id of the task | -**status** | **String** | status code of the task | -**status_detail** | **String** | status detail of the task | -**creation_date** | **DateTime** | Creation Date | -**last_update_date** | **DateTime** | Last Update Date | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Task.new(task_id: null, - operation: null, - cloud_instance_id: null, - component_type: null, - component_id: null, - status: null, - status_detail: null, - creation_date: null, - last_update_date: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/TaskReference.md b/gems/ibm_cloud_power/docs/TaskReference.md deleted file mode 100644 index 46f61ffe..00000000 --- a/gems/ibm_cloud_power/docs/TaskReference.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::TaskReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**task_id** | **String** | ID of Task used to get status of long running operation | -**href** | **String** | Link to Task resource | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::TaskReference.new(task_id: null, - href: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Tenant.md b/gems/ibm_cloud_power/docs/Tenant.md deleted file mode 100644 index 0e8ebafa..00000000 --- a/gems/ibm_cloud_power/docs/Tenant.md +++ /dev/null @@ -1,29 +0,0 @@ -# IbmCloudPower::Tenant - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tenant_id** | **String** | Tenant ID | -**enabled** | **Boolean** | Indicates if the tenant is enabled | -**creation_date** | **DateTime** | Date of Tenant creation | -**ssh_keys** | [**Array<SSHKey>**](SSHKey.md) | Tenant SSH Keys | [optional] -**cloud_instances** | [**Array<CloudInstanceReference>**](CloudInstanceReference.md) | Cloud Instances owned by the Tenant | -**icn** | **String** | IBM Customer Number | [optional] -**peering_networks** | [**Array<PeeringNetwork>**](PeeringNetwork.md) | Peering Network Information (optional) | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Tenant.new(tenant_id: null, - enabled: null, - creation_date: null, - ssh_keys: null, - cloud_instances: null, - icn: null, - peering_networks: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/TenantUpdate.md b/gems/ibm_cloud_power/docs/TenantUpdate.md deleted file mode 100644 index a874c844..00000000 --- a/gems/ibm_cloud_power/docs/TenantUpdate.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::TenantUpdate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**icn** | **String** | IBM Customer Number | [optional] -**peering_networks** | [**Array<PeeringNetwork>**](PeeringNetwork.md) | Peering Network Information (optional) | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::TenantUpdate.new(icn: null, - peering_networks: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/UpdateVolume.md b/gems/ibm_cloud_power/docs/UpdateVolume.md deleted file mode 100644 index 82d227f6..00000000 --- a/gems/ibm_cloud_power/docs/UpdateVolume.md +++ /dev/null @@ -1,23 +0,0 @@ -# IbmCloudPower::UpdateVolume - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name | [optional] -**size** | **Float** | New Volume size | [optional] -**shareable** | **Boolean** | Indicates if the volume is shareable between VMs | [optional] -**bootable** | **Boolean** | Indicates if the volume is boot capable | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::UpdateVolume.new(name: null, - size: null, - shareable: null, - bootable: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VirtualCores.md b/gems/ibm_cloud_power/docs/VirtualCores.md deleted file mode 100644 index f044cd5f..00000000 --- a/gems/ibm_cloud_power/docs/VirtualCores.md +++ /dev/null @@ -1,21 +0,0 @@ -# IbmCloudPower::VirtualCores - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**min** | **Integer** | The minimum DLPAR range for virtual Cores (Display only support) | [optional] -**max** | **Integer** | The maximum DLPAR range for virtual Cores (Display only support) | [optional] -**assigned** | **Integer** | The active virtual Cores | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VirtualCores.new(min: null, - max: null, - assigned: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Volume.md b/gems/ibm_cloud_power/docs/Volume.md deleted file mode 100644 index c50a478b..00000000 --- a/gems/ibm_cloud_power/docs/Volume.md +++ /dev/null @@ -1,43 +0,0 @@ -# IbmCloudPower::Volume - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**volume_id** | **String** | Volume ID | -**name** | **String** | Volume Name | -**state** | **String** | Volume State | [optional] -**size** | **Float** | Volume Size | -**shareable** | **Boolean** | Indicates if the volume is shareable between VMs | [optional] -**bootable** | **Boolean** | Indicates if the volume is boot capable | [optional] -**boot_volume** | **Boolean** | Indicates if the volume is the server's boot volume | [optional] -**delete_on_termination** | **Boolean** | Indicates if the volume should be deleted when the server terminates | [optional] -**disk_type** | **String** | Type of Disk | [optional] -**volume_type** | **String** | Volume type, name of storage template used to create the volume | [optional] -**wwn** | **String** | Volume world wide name | [optional] -**creation_date** | **DateTime** | Creation Date | -**last_update_date** | **DateTime** | Last Update Date | -**pvm_instance_i_ds** | **Array<String>** | List of PCloud PVM Instance attached to the volume | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Volume.new(volume_id: null, - name: null, - state: null, - size: null, - shareable: null, - bootable: null, - boot_volume: null, - delete_on_termination: null, - disk_type: null, - volume_type: null, - wwn: null, - creation_date: null, - last_update_date: null, - pvm_instance_i_ds: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumeInfo.md b/gems/ibm_cloud_power/docs/VolumeInfo.md deleted file mode 100644 index a9c210b0..00000000 --- a/gems/ibm_cloud_power/docs/VolumeInfo.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::VolumeInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**volume_id** | **String** | ID of the volume | [optional] -**name** | **String** | Name of the volume | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumeInfo.new(volume_id: null, - name: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumeReference.md b/gems/ibm_cloud_power/docs/VolumeReference.md deleted file mode 100644 index 2f9d90c1..00000000 --- a/gems/ibm_cloud_power/docs/VolumeReference.md +++ /dev/null @@ -1,45 +0,0 @@ -# IbmCloudPower::VolumeReference - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**volume_id** | **String** | Volume ID | -**name** | **String** | Volume Name | -**state** | **String** | Volume State | -**size** | **Float** | Volume Size | -**shareable** | **Boolean** | Indicates if the volume is shareable between VMs | -**bootable** | **Boolean** | Indicates if the volume is boot capable | -**boot_volume** | **Boolean** | Indicates if the volume is the server's boot volume | [optional] -**delete_on_termination** | **Boolean** | Indicates if the volume should be deleted when the server terminates | [optional] -**disk_type** | **String** | Type of Disk | -**volume_type** | **String** | Volume type, name of storage template used to create the volume | [optional] -**wwn** | **String** | Volume world wide name | -**creation_date** | **DateTime** | Creation Date | -**last_update_date** | **DateTime** | Last Update Date | -**href** | **String** | Link to Volume resource | -**pvm_instance_i_ds** | **Array<String>** | List of PCloud PVM Instance attached to the volume | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumeReference.new(volume_id: null, - name: null, - state: null, - size: null, - shareable: null, - bootable: null, - boot_volume: null, - delete_on_termination: null, - disk_type: null, - volume_type: null, - wwn: null, - creation_date: null, - last_update_date: null, - href: null, - pvm_instance_i_ds: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/Volumes.md b/gems/ibm_cloud_power/docs/Volumes.md deleted file mode 100644 index 94f1af9a..00000000 --- a/gems/ibm_cloud_power/docs/Volumes.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::Volumes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**volumes** | [**Array<VolumeReference>**](VolumeReference.md) | Volumes | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::Volumes.new(volumes: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumesClone.md b/gems/ibm_cloud_power/docs/VolumesClone.md deleted file mode 100644 index ad774d6f..00000000 --- a/gems/ibm_cloud_power/docs/VolumesClone.md +++ /dev/null @@ -1,31 +0,0 @@ -# IbmCloudPower::VolumesClone - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**volumes_clone_id** | **String** | ID assigned to a volumes-clone request | [optional] -**name** | **String** | Name assigned to a volumes-clone request | [optional] -**status** | **String** | Current status of the volumes-clone request | [optional] -**action** | **String** | Current action performed for the volumes-clone request | [optional] -**percent_complete** | **Integer** | The percent completion for the current action | -**failure_message** | **String** | Failure reason for a failed volumes-clone request | [optional] -**creation_date** | **DateTime** | Creation Date | [optional] -**last_update_date** | **DateTime** | Last Update Date | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumesClone.new(volumes_clone_id: null, - name: null, - status: null, - action: null, - percent_complete: null, - failure_message: null, - creation_date: null, - last_update_date: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumesCloneAsyncRequest.md b/gems/ibm_cloud_power/docs/VolumesCloneAsyncRequest.md deleted file mode 100644 index 5b24c1e9..00000000 --- a/gems/ibm_cloud_power/docs/VolumesCloneAsyncRequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::VolumesCloneAsyncRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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\", ... | -**volume_i_ds** | **Array<String>** | List of volumes to be cloned | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumesCloneAsyncRequest.new(name: null, - volume_i_ds: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumesCloneCancel.md b/gems/ibm_cloud_power/docs/VolumesCloneCancel.md deleted file mode 100644 index b4e42f09..00000000 --- a/gems/ibm_cloud_power/docs/VolumesCloneCancel.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::VolumesCloneCancel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**force** | **Boolean** | default False, Cancel will only be allowed if the status is 'prepared', or 'available' True, Cancel will be allowed when the status is NOT completed, cancelling, cancelled, or failed | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumesCloneCancel.new(force: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumesCloneCreate.md b/gems/ibm_cloud_power/docs/VolumesCloneCreate.md deleted file mode 100644 index d90b967e..00000000 --- a/gems/ibm_cloud_power/docs/VolumesCloneCreate.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::VolumesCloneCreate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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 | -**volume_i_ds** | **Array<String>** | List of volumes to be cloned | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumesCloneCreate.new(name: null, - volume_i_ds: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumesCloneDetail.md b/gems/ibm_cloud_power/docs/VolumesCloneDetail.md deleted file mode 100644 index ade37f10..00000000 --- a/gems/ibm_cloud_power/docs/VolumesCloneDetail.md +++ /dev/null @@ -1,33 +0,0 @@ -# IbmCloudPower::VolumesCloneDetail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**volumes_clone_id** | **String** | ID assigned to a volumes-clone request | [optional] -**name** | **String** | Name assigned to a volumes-clone request | [optional] -**status** | **String** | Current status of the volumes-clone request | [optional] -**action** | **String** | Current action performed for the volumes-clone request | [optional] -**percent_complete** | **Integer** | The percent completion for the current action | -**failure_message** | **String** | Failure reason for a failed volumes-clone request | [optional] -**creation_date** | **DateTime** | Creation Date | [optional] -**last_update_date** | **DateTime** | Last Update Date | [optional] -**cloned_volumes** | [**Array<ClonedVolumeDetail>**](ClonedVolumeDetail.md) | List of cloned volumes created from the volumes-clone request. The clone volumes information is included only after the Execute step has completed successfully. The source and clone volume names might not be provided as this information is retrieved in a separate API call and might not complete in a timely manner. | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumesCloneDetail.new(volumes_clone_id: null, - name: null, - status: null, - action: null, - percent_complete: null, - failure_message: null, - creation_date: null, - last_update_date: null, - cloned_volumes: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumesCloneExecute.md b/gems/ibm_cloud_power/docs/VolumesCloneExecute.md deleted file mode 100644 index 58ee48ad..00000000 --- a/gems/ibm_cloud_power/docs/VolumesCloneExecute.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::VolumesCloneExecute - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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\", ... | -**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] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumesCloneExecute.new(name: null, - rollback_prepare: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumesCloneRequest.md b/gems/ibm_cloud_power/docs/VolumesCloneRequest.md deleted file mode 100644 index 25043ed1..00000000 --- a/gems/ibm_cloud_power/docs/VolumesCloneRequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# IbmCloudPower::VolumesCloneRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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\", ... | -**volume_i_ds** | **Array<String>** | List of volumes to be cloned | - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumesCloneRequest.new(display_name: null, - volume_i_ds: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumesCloneResponse.md b/gems/ibm_cloud_power/docs/VolumesCloneResponse.md deleted file mode 100644 index af4583ca..00000000 --- a/gems/ibm_cloud_power/docs/VolumesCloneResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::VolumesCloneResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cloned_volumes** | **Hash<String, String>** | A map of volume IDs to cloned volume IDs | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumesCloneResponse.new(cloned_volumes: null) -``` - - diff --git a/gems/ibm_cloud_power/docs/VolumesClones.md b/gems/ibm_cloud_power/docs/VolumesClones.md deleted file mode 100644 index e4f52afe..00000000 --- a/gems/ibm_cloud_power/docs/VolumesClones.md +++ /dev/null @@ -1,17 +0,0 @@ -# IbmCloudPower::VolumesClones - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**volumes_clone** | [**Array<VolumesClone>**](VolumesClone.md) | list of volumes-clone requests | [optional] - -## Code Sample - -```ruby -require 'IbmCloudPower' - -instance = IbmCloudPower::VolumesClones.new(volumes_clone: null) -``` - - diff --git a/gems/ibm_cloud_power/git_push.sh b/gems/ibm_cloud_power/git_push.sh deleted file mode 100644 index ced3be2b..00000000 --- a/gems/ibm_cloud_power/git_push.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/gems/ibm_cloud_power/ibm_cloud_power.gemspec b/gems/ibm_cloud_power/ibm_cloud_power.gemspec deleted file mode 100644 index 36dfa716..00000000 --- a/gems/ibm_cloud_power/ibm_cloud_power.gemspec +++ /dev/null @@ -1,38 +0,0 @@ -# -*- encoding: utf-8 -*- - -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -$:.push File.expand_path("../lib", __FILE__) -require "ibm_cloud_power/version" - -Gem::Specification.new do |s| - s.name = "ibm_cloud_power" - s.version = IbmCloudPower::VERSION - s.platform = Gem::Platform::RUBY - s.authors = ["IBM Cloud Developers"] - s.email = ["kylej@us.ibm.com"] - s.homepage = "https://openapi-generator.tech" - s.summary = "IBM Cloud Power Cloud" - s.description = "Ruby gem for IBM Cloud Power Cloud" - s.license = 'Apache-2.0' - s.required_ruby_version = ">= 1.9" - - s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' - - s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' - - s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } - s.test_files = `find spec/*`.split("\n") - s.executables = [] - s.require_paths = ["lib"] -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power.rb deleted file mode 100644 index f5765705..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power.rb +++ /dev/null @@ -1,168 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -# Common files -require 'ibm_cloud_power/api_client' -require 'ibm_cloud_power/api_error' -require 'ibm_cloud_power/version' -require 'ibm_cloud_power/configuration' - -# Models -require 'ibm_cloud_power/models/clone_task_reference' -require 'ibm_cloud_power/models/clone_task_status' -require 'ibm_cloud_power/models/cloned_volume' -require 'ibm_cloud_power/models/cloned_volume_detail' -require 'ibm_cloud_power/models/cloud_connection' -require 'ibm_cloud_power/models/cloud_connection_create' -require 'ibm_cloud_power/models/cloud_connection_endpoint_classic' -require 'ibm_cloud_power/models/cloud_connection_endpoint_gre' -require 'ibm_cloud_power/models/cloud_connection_endpoint_vpc' -require 'ibm_cloud_power/models/cloud_connection_gre_tunnel' -require 'ibm_cloud_power/models/cloud_connection_speed' -require 'ibm_cloud_power/models/cloud_connection_update' -require 'ibm_cloud_power/models/cloud_connection_vpc' -require 'ibm_cloud_power/models/cloud_connection_virtual_private_clouds' -require 'ibm_cloud_power/models/cloud_connection_virtual_private_clouds_virtual_private_clouds' -require 'ibm_cloud_power/models/cloud_connections' -require 'ibm_cloud_power/models/cloud_instance' -require 'ibm_cloud_power/models/cloud_instance_create' -require 'ibm_cloud_power/models/cloud_instance_reference' -require 'ibm_cloud_power/models/cloud_instance_update' -require 'ibm_cloud_power/models/cloud_instance_usage_limits' -require 'ibm_cloud_power/models/create_data_volume' -require 'ibm_cloud_power/models/create_image' -require 'ibm_cloud_power/models/error' -require 'ibm_cloud_power/models/event' -require 'ibm_cloud_power/models/event_user' -require 'ibm_cloud_power/models/events' -require 'ibm_cloud_power/models/export_image' -require 'ibm_cloud_power/models/ip_address_range' -require 'ibm_cloud_power/models/image' -require 'ibm_cloud_power/models/image_reference' -require 'ibm_cloud_power/models/image_specifications' -require 'ibm_cloud_power/models/image_volume' -require 'ibm_cloud_power/models/images' -require 'ibm_cloud_power/models/maximum_storage_allocation' -require 'ibm_cloud_power/models/min_max_default' -require 'ibm_cloud_power/models/multi_volumes_create' -require 'ibm_cloud_power/models/network' -require 'ibm_cloud_power/models/network_create' -require 'ibm_cloud_power/models/network_ip_address_metrics' -require 'ibm_cloud_power/models/network_port' -require 'ibm_cloud_power/models/network_port_create' -require 'ibm_cloud_power/models/network_port_pvm_instance' -require 'ibm_cloud_power/models/network_port_update' -require 'ibm_cloud_power/models/network_ports' -require 'ibm_cloud_power/models/network_reference' -require 'ibm_cloud_power/models/network_update' -require 'ibm_cloud_power/models/networks' -require 'ibm_cloud_power/models/operations' -require 'ibm_cloud_power/models/pvm_instance' -require 'ibm_cloud_power/models/pvm_instance_action' -require 'ibm_cloud_power/models/pvm_instance_add_network' -require 'ibm_cloud_power/models/pvm_instance_capture' -require 'ibm_cloud_power/models/pvm_instance_clone' -require 'ibm_cloud_power/models/pvm_instance_console' -require 'ibm_cloud_power/models/pvm_instance_create' -require 'ibm_cloud_power/models/pvm_instance_fault' -require 'ibm_cloud_power/models/pvm_instance_health' -require 'ibm_cloud_power/models/pvm_instance_multi_create' -require 'ibm_cloud_power/models/pvm_instance_network' -require 'ibm_cloud_power/models/pvm_instance_networks' -require 'ibm_cloud_power/models/pvm_instance_operation' -require 'ibm_cloud_power/models/pvm_instance_reference' -require 'ibm_cloud_power/models/pvm_instance_remove_network' -require 'ibm_cloud_power/models/pvm_instance_update' -require 'ibm_cloud_power/models/pvm_instance_update_response' -require 'ibm_cloud_power/models/pvm_instance_volume_update' -require 'ibm_cloud_power/models/pvm_instances' -require 'ibm_cloud_power/models/peering_network' -require 'ibm_cloud_power/models/pin_policy' -require 'ibm_cloud_power/models/placement_group' -require 'ibm_cloud_power/models/placement_group_create' -require 'ibm_cloud_power/models/placement_group_server' -require 'ibm_cloud_power/models/placement_groups' -require 'ibm_cloud_power/models/sap_create' -require 'ibm_cloud_power/models/sap_profile' -require 'ibm_cloud_power/models/sap_profile_reference' -require 'ibm_cloud_power/models/sap_profiles' -require 'ibm_cloud_power/models/src' -require 'ibm_cloud_power/models/ssh_key' -require 'ibm_cloud_power/models/ssh_keys' -require 'ibm_cloud_power/models/snapshot' -require 'ibm_cloud_power/models/snapshot_create' -require 'ibm_cloud_power/models/snapshot_create_response' -require 'ibm_cloud_power/models/snapshot_restore' -require 'ibm_cloud_power/models/snapshot_update' -require 'ibm_cloud_power/models/snapshots' -require 'ibm_cloud_power/models/software_licenses' -require 'ibm_cloud_power/models/stock_image' -require 'ibm_cloud_power/models/storage_pool_capacity' -require 'ibm_cloud_power/models/storage_pools_capacity' -require 'ibm_cloud_power/models/storage_type_capacity' -require 'ibm_cloud_power/models/storage_types_capacity' -require 'ibm_cloud_power/models/system' -require 'ibm_cloud_power/models/system_pool' -require 'ibm_cloud_power/models/task' -require 'ibm_cloud_power/models/task_reference' -require 'ibm_cloud_power/models/tenant' -require 'ibm_cloud_power/models/tenant_update' -require 'ibm_cloud_power/models/update_volume' -require 'ibm_cloud_power/models/virtual_cores' -require 'ibm_cloud_power/models/volume' -require 'ibm_cloud_power/models/volume_info' -require 'ibm_cloud_power/models/volume_reference' -require 'ibm_cloud_power/models/volumes' -require 'ibm_cloud_power/models/volumes_clone' -require 'ibm_cloud_power/models/volumes_clone_async_request' -require 'ibm_cloud_power/models/volumes_clone_cancel' -require 'ibm_cloud_power/models/volumes_clone_create' -require 'ibm_cloud_power/models/volumes_clone_detail' -require 'ibm_cloud_power/models/volumes_clone_execute' -require 'ibm_cloud_power/models/volumes_clone_request' -require 'ibm_cloud_power/models/volumes_clone_response' -require 'ibm_cloud_power/models/volumes_clones' - -# APIs -require 'ibm_cloud_power/api/p_cloud_cloud_connections_api' -require 'ibm_cloud_power/api/p_cloud_events_api' -require 'ibm_cloud_power/api/p_cloud_images_api' -require 'ibm_cloud_power/api/p_cloud_instances_api' -require 'ibm_cloud_power/api/p_cloud_networks_api' -require 'ibm_cloud_power/api/p_cloud_pvm_instances_api' -require 'ibm_cloud_power/api/p_cloud_placement_groups_api' -require 'ibm_cloud_power/api/p_cloud_sap_api' -require 'ibm_cloud_power/api/p_cloud_snapshots_api' -require 'ibm_cloud_power/api/p_cloud_storage_capacity_api' -require 'ibm_cloud_power/api/p_cloud_system_pools_api' -require 'ibm_cloud_power/api/p_cloud_tasks_api' -require 'ibm_cloud_power/api/p_cloud_tenants_api' -require 'ibm_cloud_power/api/p_cloud_tenants_ssh_keys_api' -require 'ibm_cloud_power/api/p_cloud_volumes_api' - -module IbmCloudPower - class << self - # Customize default settings for the SDK using block. - # IbmCloudPower.configure do |config| - # config.username = "xxx" - # config.password = "xxx" - # end - # If no block given, return the default Configuration object. - def configure - if block_given? - yield(Configuration.default) - else - Configuration.default - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_cloud_connections_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_cloud_connections_api.rb deleted file mode 100644 index d61c4c57..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_cloud_connections_api.rb +++ /dev/null @@ -1,560 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudCloudConnectionsApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Delete a Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_cloudconnections_delete(cloud_instance_id, cloud_connection_id, opts = {}) - data, _status_code, _headers = pcloud_cloudconnections_delete_with_http_info(cloud_instance_id, cloud_connection_id, opts) - data - end - - # Delete a Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_cloudconnections_delete_with_http_info(cloud_instance_id, cloud_connection_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudCloudConnectionsApi.pcloud_cloudconnections_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_delete" - end - # verify the required parameter 'cloud_connection_id' is set - if @api_client.config.client_side_validation && cloud_connection_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_connection_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'cloud_connection_id' + '}', CGI.escape(cloud_connection_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json', ]) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudCloudConnectionsApi#pcloud_cloudconnections_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get a Cloud connection's state or information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - def pcloud_cloudconnections_get(cloud_instance_id, cloud_connection_id, opts = {}) - data, _status_code, _headers = pcloud_cloudconnections_get_with_http_info(cloud_instance_id, cloud_connection_id, opts) - data - end - - # Get a Cloud connection's state or information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param [Hash] opts the optional parameters - # @return [Array<(CloudConnection, Integer, Hash)>] CloudConnection data, response status code and response headers - def pcloud_cloudconnections_get_with_http_info(cloud_instance_id, cloud_connection_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudCloudConnectionsApi.pcloud_cloudconnections_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_get" - end - # verify the required parameter 'cloud_connection_id' is set - if @api_client.config.client_side_validation && cloud_connection_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_connection_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'cloud_connection_id' + '}', CGI.escape(cloud_connection_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'CloudConnection' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudCloudConnectionsApi#pcloud_cloudconnections_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get all Cloud connections in a specific cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [CloudConnections] - def pcloud_cloudconnections_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_cloudconnections_getall_with_http_info(cloud_instance_id, opts) - data - end - - # Get all Cloud connections in a specific cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(CloudConnections, Integer, Hash)>] CloudConnections data, response status code and response headers - def pcloud_cloudconnections_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudCloudConnectionsApi.pcloud_cloudconnections_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'CloudConnections' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudCloudConnectionsApi#pcloud_cloudconnections_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Delete a network from a Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - def pcloud_cloudconnections_networks_delete(cloud_instance_id, cloud_connection_id, network_id, opts = {}) - data, _status_code, _headers = pcloud_cloudconnections_networks_delete_with_http_info(cloud_instance_id, cloud_connection_id, network_id, opts) - data - end - - # Delete a network from a Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [Array<(CloudConnection, Integer, Hash)>] CloudConnection data, response status code and response headers - def pcloud_cloudconnections_networks_delete_with_http_info(cloud_instance_id, cloud_connection_id, network_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudCloudConnectionsApi.pcloud_cloudconnections_networks_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_networks_delete" - end - # verify the required parameter 'cloud_connection_id' is set - if @api_client.config.client_side_validation && cloud_connection_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_connection_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_networks_delete" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_networks_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}/networks/{network_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'cloud_connection_id' + '}', CGI.escape(cloud_connection_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json', ]) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'CloudConnection' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudCloudConnectionsApi#pcloud_cloudconnections_networks_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Add a network to the Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - def pcloud_cloudconnections_networks_put(cloud_instance_id, cloud_connection_id, network_id, opts = {}) - data, _status_code, _headers = pcloud_cloudconnections_networks_put_with_http_info(cloud_instance_id, cloud_connection_id, network_id, opts) - data - end - - # Add a network to the Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [Array<(CloudConnection, Integer, Hash)>] CloudConnection data, response status code and response headers - def pcloud_cloudconnections_networks_put_with_http_info(cloud_instance_id, cloud_connection_id, network_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudCloudConnectionsApi.pcloud_cloudconnections_networks_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_networks_put" - end - # verify the required parameter 'cloud_connection_id' is set - if @api_client.config.client_side_validation && cloud_connection_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_connection_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_networks_put" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_networks_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}/networks/{network_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'cloud_connection_id' + '}', CGI.escape(cloud_connection_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'CloudConnection' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudCloudConnectionsApi#pcloud_cloudconnections_networks_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a new Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [CloudConnectionCreate] Parameters for the creation of a new Cloud connection - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - def pcloud_cloudconnections_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_cloudconnections_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a new Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [CloudConnectionCreate] Parameters for the creation of a new Cloud connection - # @param [Hash] opts the optional parameters - # @return [Array<(CloudConnection, Integer, Hash)>] CloudConnection data, response status code and response headers - def pcloud_cloudconnections_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudCloudConnectionsApi.pcloud_cloudconnections_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'CloudConnection' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudCloudConnectionsApi#pcloud_cloudconnections_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update a Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param body [CloudConnectionUpdate] Parameters to update a Cloud connection - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - def pcloud_cloudconnections_put(cloud_instance_id, cloud_connection_id, body, opts = {}) - data, _status_code, _headers = pcloud_cloudconnections_put_with_http_info(cloud_instance_id, cloud_connection_id, body, opts) - data - end - - # Update a Cloud connection - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id [String] Cloud connection ID - # @param body [CloudConnectionUpdate] Parameters to update a Cloud connection - # @param [Hash] opts the optional parameters - # @return [Array<(CloudConnection, Integer, Hash)>] CloudConnection data, response status code and response headers - def pcloud_cloudconnections_put_with_http_info(cloud_instance_id, cloud_connection_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudCloudConnectionsApi.pcloud_cloudconnections_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_put" - end - # verify the required parameter 'cloud_connection_id' is set - if @api_client.config.client_side_validation && cloud_connection_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_connection_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections/{cloud_connection_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'cloud_connection_id' + '}', CGI.escape(cloud_connection_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'CloudConnection' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudCloudConnectionsApi#pcloud_cloudconnections_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get all virtual private clouds in a specific cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [CloudConnectionVirtualPrivateClouds] - def pcloud_cloudconnections_virtualprivateclouds_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_cloudconnections_virtualprivateclouds_getall_with_http_info(cloud_instance_id, opts) - data - end - - # Get all virtual private clouds in a specific cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(CloudConnectionVirtualPrivateClouds, Integer, Hash)>] CloudConnectionVirtualPrivateClouds data, response status code and response headers - def pcloud_cloudconnections_virtualprivateclouds_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudCloudConnectionsApi.pcloud_cloudconnections_virtualprivateclouds_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudCloudConnectionsApi.pcloud_cloudconnections_virtualprivateclouds_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/cloud-connections-virtual-private-clouds'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'CloudConnectionVirtualPrivateClouds' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudCloudConnectionsApi#pcloud_cloudconnections_virtualprivateclouds_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_events_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_events_api.rb deleted file mode 100644 index f62f3a32..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_events_api.rb +++ /dev/null @@ -1,163 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudEventsApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Get a single event - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param event_id [String] Event ID - # @param [Hash] opts the optional parameters - # @option opts [String] :accept_language The language requested for the return document - # @return [Event] - def pcloud_events_get(cloud_instance_id, event_id, opts = {}) - data, _status_code, _headers = pcloud_events_get_with_http_info(cloud_instance_id, event_id, opts) - data - end - - # Get a single event - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param event_id [String] Event ID - # @param [Hash] opts the optional parameters - # @option opts [String] :accept_language The language requested for the return document - # @return [Array<(Event, Integer, Hash)>] Event data, response status code and response headers - def pcloud_events_get_with_http_info(cloud_instance_id, event_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudEventsApi.pcloud_events_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudEventsApi.pcloud_events_get" - end - # verify the required parameter 'event_id' is set - if @api_client.config.client_side_validation && event_id.nil? - fail ArgumentError, "Missing the required parameter 'event_id' when calling PCloudEventsApi.pcloud_events_get" - end - # resource path - 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)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Event' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudEventsApi#pcloud_events_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get events from this cloud instance since a specific timestamp - # You must append the '?time=' query parameter to the cURL URL to get a list of events. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param time [String] (deprecated - use from_time) A time in either ISO 8601 or unix epoch format - # @param [Hash] opts the optional parameters - # @option opts [String] :accept_language The language requested for the return document - # @return [Events] - def pcloud_events_getsince(cloud_instance_id, time, opts = {}) - data, _status_code, _headers = pcloud_events_getsince_with_http_info(cloud_instance_id, time, opts) - data - end - - # Get events from this cloud instance since a specific timestamp - # You must append the '?time=' query parameter to the cURL URL to get a list of events. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param time [String] (deprecated - use from_time) A time in either ISO 8601 or unix epoch format - # @param [Hash] opts the optional parameters - # @option opts [String] :accept_language The language requested for the return document - # @return [Array<(Events, Integer, Hash)>] Events data, response status code and response headers - def pcloud_events_getsince_with_http_info(cloud_instance_id, time, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudEventsApi.pcloud_events_getsince ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudEventsApi.pcloud_events_getsince" - end - # verify the required parameter 'time' is set - if @api_client.config.client_side_validation && time.nil? - fail ArgumentError, "Missing the required parameter 'time' when calling PCloudEventsApi.pcloud_events_getsince" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/events'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'time'] = time - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil? - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Events' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudEventsApi#pcloud_events_getsince\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_images_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_images_api.rb deleted file mode 100644 index 31eaee0a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_images_api.rb +++ /dev/null @@ -1,602 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudImagesApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Delete an image from a cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param image_id [String] Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_cloudinstances_images_delete(cloud_instance_id, image_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_images_delete_with_http_info(cloud_instance_id, image_id, opts) - data - end - - # Delete an image from a cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param image_id [String] Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_cloudinstances_images_delete_with_http_info(cloud_instance_id, image_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudImagesApi.pcloud_cloudinstances_images_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudImagesApi.pcloud_cloudinstances_images_delete" - end - # verify the required parameter 'image_id' is set - if @api_client.config.client_side_validation && image_id.nil? - fail ArgumentError, "Missing the required parameter 'image_id' when calling PCloudImagesApi.pcloud_cloudinstances_images_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'image_id' + '}', CGI.escape(image_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudImagesApi#pcloud_cloudinstances_images_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Export an image - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param image_id [String] Image ID of a image - # @param body [ExportImage] Parameters for exporting an image - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_cloudinstances_images_export_post(cloud_instance_id, image_id, body, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_images_export_post_with_http_info(cloud_instance_id, image_id, body, opts) - data - end - - # Export an image - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param image_id [String] Image ID of a image - # @param body [ExportImage] Parameters for exporting an image - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_cloudinstances_images_export_post_with_http_info(cloud_instance_id, image_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudImagesApi.pcloud_cloudinstances_images_export_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudImagesApi.pcloud_cloudinstances_images_export_post" - end - # verify the required parameter 'image_id' is set - if @api_client.config.client_side_validation && image_id.nil? - fail ArgumentError, "Missing the required parameter 'image_id' when calling PCloudImagesApi.pcloud_cloudinstances_images_export_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudImagesApi.pcloud_cloudinstances_images_export_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id}/export'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'image_id' + '}', CGI.escape(image_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudImagesApi#pcloud_cloudinstances_images_export_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Detailed information of an image - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param image_id [String] Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Image] - def pcloud_cloudinstances_images_get(cloud_instance_id, image_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_images_get_with_http_info(cloud_instance_id, image_id, opts) - data - end - - # Detailed information of an image - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param image_id [String] Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Array<(Image, Integer, Hash)>] Image data, response status code and response headers - def pcloud_cloudinstances_images_get_with_http_info(cloud_instance_id, image_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudImagesApi.pcloud_cloudinstances_images_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudImagesApi.pcloud_cloudinstances_images_get" - end - # verify the required parameter 'image_id' is set - if @api_client.config.client_side_validation && image_id.nil? - fail ArgumentError, "Missing the required parameter 'image_id' when calling PCloudImagesApi.pcloud_cloudinstances_images_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/images/{image_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'image_id' + '}', CGI.escape(image_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Image' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudImagesApi#pcloud_cloudinstances_images_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # List all of the images for this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Images] - def pcloud_cloudinstances_images_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_images_getall_with_http_info(cloud_instance_id, opts) - data - end - - # List all of the images for this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(Images, Integer, Hash)>] Images data, response status code and response headers - def pcloud_cloudinstances_images_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudImagesApi.pcloud_cloudinstances_images_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudImagesApi.pcloud_cloudinstances_images_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/images'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Images' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudImagesApi#pcloud_cloudinstances_images_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a new image from available images - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [CreateImage] Parameters for the creation of a new image from available images - # @param [Hash] opts the optional parameters - # @return [Image] - def pcloud_cloudinstances_images_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_images_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a new image from available images - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [CreateImage] Parameters for the creation of a new image from available images - # @param [Hash] opts the optional parameters - # @return [Array<(Image, Integer, Hash)>] Image data, response status code and response headers - def pcloud_cloudinstances_images_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudImagesApi.pcloud_cloudinstances_images_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudImagesApi.pcloud_cloudinstances_images_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudImagesApi.pcloud_cloudinstances_images_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/images'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Image' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudImagesApi#pcloud_cloudinstances_images_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Detailed info of an available stock image - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param image_id [String] Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Image] - def pcloud_cloudinstances_stockimages_get(cloud_instance_id, image_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_stockimages_get_with_http_info(cloud_instance_id, image_id, opts) - data - end - - # Detailed info of an available stock image - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param image_id [String] Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Array<(Image, Integer, Hash)>] Image data, response status code and response headers - def pcloud_cloudinstances_stockimages_get_with_http_info(cloud_instance_id, image_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudImagesApi.pcloud_cloudinstances_stockimages_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudImagesApi.pcloud_cloudinstances_stockimages_get" - end - # verify the required parameter 'image_id' is set - if @api_client.config.client_side_validation && image_id.nil? - fail ArgumentError, "Missing the required parameter 'image_id' when calling PCloudImagesApi.pcloud_cloudinstances_stockimages_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images/{image_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'image_id' + '}', CGI.escape(image_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Image' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudImagesApi#pcloud_cloudinstances_stockimages_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # List all available stock images - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :sap Include SAP images with get available stock images - # @return [Images] - def pcloud_cloudinstances_stockimages_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_stockimages_getall_with_http_info(cloud_instance_id, opts) - data - end - - # List all available stock images - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :sap Include SAP images with get available stock images - # @return [Array<(Images, Integer, Hash)>] Images data, response status code and response headers - def pcloud_cloudinstances_stockimages_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudImagesApi.pcloud_cloudinstances_stockimages_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudImagesApi.pcloud_cloudinstances_stockimages_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/stock-images'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'sap'] = opts[:'sap'] if !opts[:'sap'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Images' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudImagesApi#pcloud_cloudinstances_stockimages_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed info of an available stock image - # @param image_id [String] Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Images] - def pcloud_images_get(image_id, opts = {}) - data, _status_code, _headers = pcloud_images_get_with_http_info(image_id, opts) - data - end - - # Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed info of an available stock image - # @param image_id [String] Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Array<(Images, Integer, Hash)>] Images data, response status code and response headers - def pcloud_images_get_with_http_info(image_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudImagesApi.pcloud_images_get ...' - end - # verify the required parameter 'image_id' is set - if @api_client.config.client_side_validation && image_id.nil? - fail ArgumentError, "Missing the required parameter 'image_id' when calling PCloudImagesApi.pcloud_images_get" - end - # resource path - local_var_path = '/pcloud/v1/images/{image_id}'.sub('{' + 'image_id' + '}', CGI.escape(image_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Images' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudImagesApi#pcloud_images_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - List all available stock images - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :sap Include SAP images with get available stock images - # @return [Images] - def pcloud_images_getall(opts = {}) - data, _status_code, _headers = pcloud_images_getall_with_http_info(opts) - data - end - - # Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - List all available stock images - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :sap Include SAP images with get available stock images - # @return [Array<(Images, Integer, Hash)>] Images data, response status code and response headers - def pcloud_images_getall_with_http_info(opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudImagesApi.pcloud_images_getall ...' - end - # resource path - local_var_path = '/pcloud/v1/images' - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'sap'] = opts[:'sap'] if !opts[:'sap'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Images' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudImagesApi#pcloud_images_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_instances_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_instances_api.rb deleted file mode 100644 index 962fe43f..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_instances_api.rb +++ /dev/null @@ -1,210 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudInstancesApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Delete a Power Cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_cloudinstances_delete(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_delete_with_http_info(cloud_instance_id, opts) - data - end - - # Delete a Power Cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_cloudinstances_delete_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudInstancesApi.pcloud_cloudinstances_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudInstancesApi.pcloud_cloudinstances_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudInstancesApi#pcloud_cloudinstances_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get a cloud instance's current state or information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [CloudInstance] - def pcloud_cloudinstances_get(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_get_with_http_info(cloud_instance_id, opts) - data - end - - # Get a cloud instance's current state or information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(CloudInstance, Integer, Hash)>] CloudInstance data, response status code and response headers - def pcloud_cloudinstances_get_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudInstancesApi.pcloud_cloudinstances_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudInstancesApi.pcloud_cloudinstances_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'CloudInstance' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudInstancesApi#pcloud_cloudinstances_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update or upgrade a cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [CloudInstanceUpdate] Parameters for updating a Power Cloud instance - # @param [Hash] opts the optional parameters - # @return [CloudInstance] - def pcloud_cloudinstances_put(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_put_with_http_info(cloud_instance_id, body, opts) - data - end - - # Update or upgrade a cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [CloudInstanceUpdate] Parameters for updating a Power Cloud instance - # @param [Hash] opts the optional parameters - # @return [Array<(CloudInstance, Integer, Hash)>] CloudInstance data, response status code and response headers - def pcloud_cloudinstances_put_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudInstancesApi.pcloud_cloudinstances_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudInstancesApi.pcloud_cloudinstances_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudInstancesApi.pcloud_cloudinstances_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'CloudInstance' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudInstancesApi#pcloud_cloudinstances_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_networks_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_networks_api.rb deleted file mode 100644 index 2415bca0..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_networks_api.rb +++ /dev/null @@ -1,719 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudNetworksApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Delete a network - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_networks_delete(cloud_instance_id, network_id, opts = {}) - data, _status_code, _headers = pcloud_networks_delete_with_http_info(cloud_instance_id, network_id, opts) - data - end - - # Delete a network - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_networks_delete_with_http_info(cloud_instance_id, network_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_delete" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudNetworksApi.pcloud_networks_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get a network's current state or information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [Network] - def pcloud_networks_get(cloud_instance_id, network_id, opts = {}) - data, _status_code, _headers = pcloud_networks_get_with_http_info(cloud_instance_id, network_id, opts) - data - end - - # Get a network's current state or information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [Array<(Network, Integer, Hash)>] Network data, response status code and response headers - def pcloud_networks_get_with_http_info(cloud_instance_id, network_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_get" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudNetworksApi.pcloud_networks_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Network' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get all networks in this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [String] :filter A filter expression that filters resources listed in the response - # @return [Networks] - def pcloud_networks_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_networks_getall_with_http_info(cloud_instance_id, opts) - data - end - - # Get all networks in this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [String] :filter A filter expression that filters resources listed in the response - # @return [Array<(Networks, Integer, Hash)>] Networks data, response status code and response headers - def pcloud_networks_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Networks' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Delete a network port - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param port_id [String] Port ID - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_networks_ports_delete(cloud_instance_id, network_id, port_id, opts = {}) - data, _status_code, _headers = pcloud_networks_ports_delete_with_http_info(cloud_instance_id, network_id, port_id, opts) - data - end - - # Delete a network port - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param port_id [String] Port ID - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_networks_ports_delete_with_http_info(cloud_instance_id, network_id, port_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_ports_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_ports_delete" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudNetworksApi.pcloud_networks_ports_delete" - end - # verify the required parameter 'port_id' is set - if @api_client.config.client_side_validation && port_id.nil? - fail ArgumentError, "Missing the required parameter 'port_id' when calling PCloudNetworksApi.pcloud_networks_ports_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'port_id' + '}', CGI.escape(port_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_ports_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get a port's information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param port_id [String] Port ID - # @param [Hash] opts the optional parameters - # @return [NetworkPort] - def pcloud_networks_ports_get(cloud_instance_id, network_id, port_id, opts = {}) - data, _status_code, _headers = pcloud_networks_ports_get_with_http_info(cloud_instance_id, network_id, port_id, opts) - data - end - - # Get a port's information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param port_id [String] Port ID - # @param [Hash] opts the optional parameters - # @return [Array<(NetworkPort, Integer, Hash)>] NetworkPort data, response status code and response headers - def pcloud_networks_ports_get_with_http_info(cloud_instance_id, network_id, port_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_ports_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_ports_get" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudNetworksApi.pcloud_networks_ports_get" - end - # verify the required parameter 'port_id' is set - if @api_client.config.client_side_validation && port_id.nil? - fail ArgumentError, "Missing the required parameter 'port_id' when calling PCloudNetworksApi.pcloud_networks_ports_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'port_id' + '}', CGI.escape(port_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json', 'applicaton/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'NetworkPort' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_ports_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get all ports for this network - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [NetworkPorts] - def pcloud_networks_ports_getall(cloud_instance_id, network_id, opts = {}) - data, _status_code, _headers = pcloud_networks_ports_getall_with_http_info(cloud_instance_id, network_id, opts) - data - end - - # Get all ports for this network - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [Array<(NetworkPorts, Integer, Hash)>] NetworkPorts data, response status code and response headers - def pcloud_networks_ports_getall_with_http_info(cloud_instance_id, network_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_ports_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_ports_getall" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudNetworksApi.pcloud_networks_ports_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'NetworkPorts' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_ports_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Perform port addition, deletion, and listing - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @option opts [NetworkPortCreate] :body Create a Network Port - # @return [NetworkPort] - def pcloud_networks_ports_post(cloud_instance_id, network_id, opts = {}) - data, _status_code, _headers = pcloud_networks_ports_post_with_http_info(cloud_instance_id, network_id, opts) - data - end - - # Perform port addition, deletion, and listing - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @option opts [NetworkPortCreate] :body Create a Network Port - # @return [Array<(NetworkPort, Integer, Hash)>] NetworkPort data, response status code and response headers - def pcloud_networks_ports_post_with_http_info(cloud_instance_id, network_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_ports_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_ports_post" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudNetworksApi.pcloud_networks_ports_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body']) - - # return_type - return_type = opts[:return_type] || 'NetworkPort' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_ports_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update a port's information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param port_id [String] Port ID - # @param body [NetworkPortUpdate] Parameters for updating a Port - # @param [Hash] opts the optional parameters - # @return [NetworkPort] - def pcloud_networks_ports_put(cloud_instance_id, network_id, port_id, body, opts = {}) - data, _status_code, _headers = pcloud_networks_ports_put_with_http_info(cloud_instance_id, network_id, port_id, body, opts) - data - end - - # Update a port's information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param port_id [String] Port ID - # @param body [NetworkPortUpdate] Parameters for updating a Port - # @param [Hash] opts the optional parameters - # @return [Array<(NetworkPort, Integer, Hash)>] NetworkPort data, response status code and response headers - def pcloud_networks_ports_put_with_http_info(cloud_instance_id, network_id, port_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_ports_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_ports_put" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudNetworksApi.pcloud_networks_ports_put" - end - # verify the required parameter 'port_id' is set - if @api_client.config.client_side_validation && port_id.nil? - fail ArgumentError, "Missing the required parameter 'port_id' when calling PCloudNetworksApi.pcloud_networks_ports_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudNetworksApi.pcloud_networks_ports_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'port_id' + '}', CGI.escape(port_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'NetworkPort' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_ports_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a new network - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [NetworkCreate] Parameters for the creation of a new network - # @param [Hash] opts the optional parameters - # @return [Network] - def pcloud_networks_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_networks_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a new network - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [NetworkCreate] Parameters for the creation of a new network - # @param [Hash] opts the optional parameters - # @return [Array<(Network, Integer, Hash)>] Network data, response status code and response headers - def pcloud_networks_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudNetworksApi.pcloud_networks_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Network' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update a network - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param body [NetworkUpdate] Parameters to update a Network - # @param [Hash] opts the optional parameters - # @return [Network] - def pcloud_networks_put(cloud_instance_id, network_id, body, opts = {}) - data, _status_code, _headers = pcloud_networks_put_with_http_info(cloud_instance_id, network_id, body, opts) - data - end - - # Update a network - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param network_id [String] Network ID - # @param body [NetworkUpdate] Parameters to update a Network - # @param [Hash] opts the optional parameters - # @return [Array<(Network, Integer, Hash)>] Network data, response status code and response headers - def pcloud_networks_put_with_http_info(cloud_instance_id, network_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudNetworksApi.pcloud_networks_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudNetworksApi.pcloud_networks_put" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudNetworksApi.pcloud_networks_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudNetworksApi.pcloud_networks_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Network' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudNetworksApi#pcloud_networks_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_placement_groups_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_placement_groups_api.rb deleted file mode 100644 index fd88199a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_placement_groups_api.rb +++ /dev/null @@ -1,430 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudPlacementGroupsApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Delete server placement group - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param placement_group_id [String] Placement Group ID or Placement Group Name - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_placementgroups_delete(cloud_instance_id, placement_group_id, opts = {}) - data, _status_code, _headers = pcloud_placementgroups_delete_with_http_info(cloud_instance_id, placement_group_id, opts) - data - end - - # Delete server placement group - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param placement_group_id [String] Placement Group ID or Placement Group Name - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_placementgroups_delete_with_http_info(cloud_instance_id, placement_group_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPlacementGroupsApi.pcloud_placementgroups_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_delete" - end - # verify the required parameter 'placement_group_id' is set - if @api_client.config.client_side_validation && placement_group_id.nil? - fail ArgumentError, "Missing the required parameter 'placement_group_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'placement_group_id' + '}', CGI.escape(placement_group_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPlacementGroupsApi#pcloud_placementgroups_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get server placement group details - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param placement_group_id [String] Placement Group ID or Placement Group Name - # @param [Hash] opts the optional parameters - # @return [PlacementGroup] - def pcloud_placementgroups_get(cloud_instance_id, placement_group_id, opts = {}) - data, _status_code, _headers = pcloud_placementgroups_get_with_http_info(cloud_instance_id, placement_group_id, opts) - data - end - - # Get server placement group details - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param placement_group_id [String] Placement Group ID or Placement Group Name - # @param [Hash] opts the optional parameters - # @return [Array<(PlacementGroup, Integer, Hash)>] PlacementGroup data, response status code and response headers - def pcloud_placementgroups_get_with_http_info(cloud_instance_id, placement_group_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPlacementGroupsApi.pcloud_placementgroups_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_get" - end - # verify the required parameter 'placement_group_id' is set - if @api_client.config.client_side_validation && placement_group_id.nil? - fail ArgumentError, "Missing the required parameter 'placement_group_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'placement_group_id' + '}', CGI.escape(placement_group_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'PlacementGroup' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPlacementGroupsApi#pcloud_placementgroups_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get all server placement groups - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [PlacementGroups] - def pcloud_placementgroups_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_placementgroups_getall_with_http_info(cloud_instance_id, opts) - data - end - - # Get all server placement groups - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(PlacementGroups, Integer, Hash)>] PlacementGroups data, response status code and response headers - def pcloud_placementgroups_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPlacementGroupsApi.pcloud_placementgroups_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'PlacementGroups' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPlacementGroupsApi#pcloud_placementgroups_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Remove server from placement group - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param placement_group_id [String] Placement Group ID or Placement Group Name - # @param body [PlacementGroupServer] Parameters for removing a Server in a Placement Group - # @param [Hash] opts the optional parameters - # @return [PlacementGroup] - def pcloud_placementgroups_members_delete(cloud_instance_id, placement_group_id, body, opts = {}) - data, _status_code, _headers = pcloud_placementgroups_members_delete_with_http_info(cloud_instance_id, placement_group_id, body, opts) - data - end - - # Remove server from placement group - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param placement_group_id [String] Placement Group ID or Placement Group Name - # @param body [PlacementGroupServer] Parameters for removing a Server in a Placement Group - # @param [Hash] opts the optional parameters - # @return [Array<(PlacementGroup, Integer, Hash)>] PlacementGroup data, response status code and response headers - def pcloud_placementgroups_members_delete_with_http_info(cloud_instance_id, placement_group_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPlacementGroupsApi.pcloud_placementgroups_members_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_members_delete" - end - # verify the required parameter 'placement_group_id' is set - if @api_client.config.client_side_validation && placement_group_id.nil? - fail ArgumentError, "Missing the required parameter 'placement_group_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_members_delete" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_members_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'placement_group_id' + '}', CGI.escape(placement_group_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'PlacementGroup' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPlacementGroupsApi#pcloud_placementgroups_members_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Add server to placement group - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param placement_group_id [String] Placement Group ID or Placement Group Name - # @param body [PlacementGroupServer] Parameters for adding a server to a Placement Group - # @param [Hash] opts the optional parameters - # @return [PlacementGroup] - def pcloud_placementgroups_members_post(cloud_instance_id, placement_group_id, body, opts = {}) - data, _status_code, _headers = pcloud_placementgroups_members_post_with_http_info(cloud_instance_id, placement_group_id, body, opts) - data - end - - # Add server to placement group - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param placement_group_id [String] Placement Group ID or Placement Group Name - # @param body [PlacementGroupServer] Parameters for adding a server to a Placement Group - # @param [Hash] opts the optional parameters - # @return [Array<(PlacementGroup, Integer, Hash)>] PlacementGroup data, response status code and response headers - def pcloud_placementgroups_members_post_with_http_info(cloud_instance_id, placement_group_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPlacementGroupsApi.pcloud_placementgroups_members_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_members_post" - end - # verify the required parameter 'placement_group_id' is set - if @api_client.config.client_side_validation && placement_group_id.nil? - fail ArgumentError, "Missing the required parameter 'placement_group_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_members_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_members_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups/{placement_group_id}/members'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'placement_group_id' + '}', CGI.escape(placement_group_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'PlacementGroup' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPlacementGroupsApi#pcloud_placementgroups_members_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a server placement group - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [PlacementGroupCreate] Parameters for the creating a server placement group - # @param [Hash] opts the optional parameters - # @return [PlacementGroup] - def pcloud_placementgroups_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_placementgroups_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a server placement group - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [PlacementGroupCreate] Parameters for the creating a server placement group - # @param [Hash] opts the optional parameters - # @return [Array<(PlacementGroup, Integer, Hash)>] PlacementGroup data, response status code and response headers - def pcloud_placementgroups_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPlacementGroupsApi.pcloud_placementgroups_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPlacementGroupsApi.pcloud_placementgroups_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/placement-groups'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'PlacementGroup' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPlacementGroupsApi#pcloud_placementgroups_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb deleted file mode 100644 index b4e4238d..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_pvm_instances_api.rb +++ /dev/null @@ -1,1243 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudPVMInstancesApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Perform an action (start stop reboot immediate-shutdown reset) on a PVMInstance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceAction] Parameters for the desired action - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_pvminstances_action_post(cloud_instance_id, pvm_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_action_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts) - data - end - - # Perform an action (start stop reboot immediate-shutdown reset) on a PVMInstance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceAction] Parameters for the desired action - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_pvminstances_action_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_action_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_action_post" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_action_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPVMInstancesApi.pcloud_pvminstances_action_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/action'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_action_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Capture a PVM instance and create a deployable image - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceCapture] Parameters for the capture PVMInstance - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_pvminstances_capture_post(cloud_instance_id, pvm_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_capture_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts) - data - end - - # Capture a PVM instance and create a deployable image - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceCapture] Parameters for the capture PVMInstance - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_pvminstances_capture_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_capture_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_capture_post" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_capture_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPVMInstancesApi.pcloud_pvminstances_capture_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/capture'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_capture_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Clone a PVMInstance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceClone] Clone PVM Instance parameters - # @param [Hash] opts the optional parameters - # @return [PVMInstance] - def pcloud_pvminstances_clone_post(cloud_instance_id, pvm_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_clone_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts) - data - end - - # Clone a PVMInstance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceClone] Clone PVM Instance parameters - # @param [Hash] opts the optional parameters - # @return [Array<(PVMInstance, Integer, Hash)>] PVMInstance data, response status code and response headers - def pcloud_pvminstances_clone_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_clone_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_clone_post" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_clone_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPVMInstancesApi.pcloud_pvminstances_clone_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/clone'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'PVMInstance' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_clone_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Generate the noVNC console URL - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [PVMInstanceConsole] - def pcloud_pvminstances_console_post(cloud_instance_id, pvm_instance_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_console_post_with_http_info(cloud_instance_id, pvm_instance_id, opts) - data - end - - # Generate the noVNC console URL - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Array<(PVMInstanceConsole, Integer, Hash)>] PVMInstanceConsole data, response status code and response headers - def pcloud_pvminstances_console_post_with_http_info(cloud_instance_id, pvm_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_console_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_console_post" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_console_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/console'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'PVMInstanceConsole' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_console_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Delete a PCloud PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :delete_data_volumes Indicates whether all data volumes attached to the PVMInstance must be deleted when deleting the PVMInstance. Shared data volumes will be deleted if no other PVMInstances are attached. - # @return [Object] - def pcloud_pvminstances_delete(cloud_instance_id, pvm_instance_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_delete_with_http_info(cloud_instance_id, pvm_instance_id, opts) - data - end - - # Delete a PCloud PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :delete_data_volumes Indicates whether all data volumes attached to the PVMInstance must be deleted when deleting the PVMInstance. Shared data volumes will be deleted if no other PVMInstances are attached. - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_pvminstances_delete_with_http_info(cloud_instance_id, pvm_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_delete" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'delete_data_volumes'] = opts[:'delete_data_volumes'] if !opts[:'delete_data_volumes'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get a PVM instance's current state or information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [PVMInstance] - def pcloud_pvminstances_get(cloud_instance_id, pvm_instance_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_get_with_http_info(cloud_instance_id, pvm_instance_id, opts) - data - end - - # Get a PVM instance's current state or information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Array<(PVMInstance, Integer, Hash)>] PVMInstance data, response status code and response headers - def pcloud_pvminstances_get_with_http_info(cloud_instance_id, pvm_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_get" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'PVMInstance' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get all the PVM instances for this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [PVMInstances] - def pcloud_pvminstances_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_getall_with_http_info(cloud_instance_id, opts) - data - end - - # Get all the PVM instances for this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(PVMInstances, Integer, Hash)>] PVMInstances data, response status code and response headers - def pcloud_pvminstances_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'PVMInstances' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Remove all addresses of network from a PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @option opts [PVMInstanceRemoveNetwork] :body Remove a network from PVM Instance parameters - # @return [Object] - def pcloud_pvminstances_networks_delete(cloud_instance_id, pvm_instance_id, network_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_networks_delete_with_http_info(cloud_instance_id, pvm_instance_id, network_id, opts) - data - end - - # Remove all addresses of network from a PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @option opts [PVMInstanceRemoveNetwork] :body Remove a network from PVM Instance parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_pvminstances_networks_delete_with_http_info(cloud_instance_id, pvm_instance_id, network_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_networks_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_delete" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_delete" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks/{network_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body']) - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_networks_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get a PVM instance's network information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [PVMInstanceNetworks] - def pcloud_pvminstances_networks_get(cloud_instance_id, pvm_instance_id, network_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_networks_get_with_http_info(cloud_instance_id, pvm_instance_id, network_id, opts) - data - end - - # Get a PVM instance's network information - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param network_id [String] Network ID - # @param [Hash] opts the optional parameters - # @return [Array<(PVMInstanceNetworks, Integer, Hash)>] PVMInstanceNetworks data, response status code and response headers - def pcloud_pvminstances_networks_get_with_http_info(cloud_instance_id, pvm_instance_id, network_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_networks_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_get" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_get" - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks/{network_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)).sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'PVMInstanceNetworks' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_networks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get all networks for this PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [PVMInstanceNetworks] - def pcloud_pvminstances_networks_getall(cloud_instance_id, pvm_instance_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_networks_getall_with_http_info(cloud_instance_id, pvm_instance_id, opts) - data - end - - # Get all networks for this PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Array<(PVMInstanceNetworks, Integer, Hash)>] PVMInstanceNetworks data, response status code and response headers - def pcloud_pvminstances_networks_getall_with_http_info(cloud_instance_id, pvm_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_networks_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_getall" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'PVMInstanceNetworks' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_networks_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Perform network addition, deletion, and listing - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceAddNetwork] Add network to PVM Instance parameters - # @param [Hash] opts the optional parameters - # @return [PVMInstanceNetwork] - def pcloud_pvminstances_networks_post(cloud_instance_id, pvm_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_networks_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts) - data - end - - # Perform network addition, deletion, and listing - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceAddNetwork] Add network to PVM Instance parameters - # @param [Hash] opts the optional parameters - # @return [Array<(PVMInstanceNetwork, Integer, Hash)>] PVMInstanceNetwork data, response status code and response headers - def pcloud_pvminstances_networks_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_networks_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_post" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPVMInstancesApi.pcloud_pvminstances_networks_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/networks'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'PVMInstanceNetwork' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_networks_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Perform an operation on a PVMInstance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceOperation] Parameters for the desired operations - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_pvminstances_operations_post(cloud_instance_id, pvm_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_operations_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts) - data - end - - # Perform an operation on a PVMInstance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceOperation] Parameters for the desired operations - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_pvminstances_operations_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_operations_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_operations_post" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_operations_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPVMInstancesApi.pcloud_pvminstances_operations_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/operations'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_operations_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a new PVM instance - # The order of network IDs passed in will be the order of interfaces defined to the VM. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [PVMInstanceCreate] Parameters for the creation of a new tenant - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :skip_host_validation Option to skip host validation on PVMInstance Create API - # @return [Array] - def pcloud_pvminstances_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a new PVM instance - # The order of network IDs passed in will be the order of interfaces defined to the VM. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [PVMInstanceCreate] Parameters for the creation of a new tenant - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :skip_host_validation Option to skip host validation on PVMInstance Create API - # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers - def pcloud_pvminstances_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPVMInstancesApi.pcloud_pvminstances_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'skipHostValidation'] = opts[:'skip_host_validation'] if !opts[:'skip_host_validation'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Array' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update a PCloud PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceUpdate] Parameters to update a PCloud PVM instance - # @param [Hash] opts the optional parameters - # @return [PVMInstanceUpdateResponse] - def pcloud_pvminstances_put(cloud_instance_id, pvm_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_put_with_http_info(cloud_instance_id, pvm_instance_id, body, opts) - data - end - - # Update a PCloud PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [PVMInstanceUpdate] Parameters to update a PCloud PVM instance - # @param [Hash] opts the optional parameters - # @return [Array<(PVMInstanceUpdateResponse, Integer, Hash)>] PVMInstanceUpdateResponse data, response status code and response headers - def pcloud_pvminstances_put_with_http_info(cloud_instance_id, pvm_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_put" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPVMInstancesApi.pcloud_pvminstances_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'PVMInstanceUpdateResponse' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get all snapshots for this PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Snapshots] - def pcloud_pvminstances_snapshots_getall(cloud_instance_id, pvm_instance_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_snapshots_getall_with_http_info(cloud_instance_id, pvm_instance_id, opts) - data - end - - # Get all snapshots for this PVM instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Array<(Snapshots, Integer, Hash)>] Snapshots data, response status code and response headers - def pcloud_pvminstances_snapshots_getall_with_http_info(cloud_instance_id, pvm_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_getall" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Snapshots' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_snapshots_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a PVM instance snapshot - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [SnapshotCreate] PVM Instance snapshot create parameters - # @param [Hash] opts the optional parameters - # @return [SnapshotCreateResponse] - def pcloud_pvminstances_snapshots_post(cloud_instance_id, pvm_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_snapshots_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts) - data - end - - # Create a PVM instance snapshot - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param body [SnapshotCreate] PVM Instance snapshot create parameters - # @param [Hash] opts the optional parameters - # @return [Array<(SnapshotCreateResponse, Integer, Hash)>] SnapshotCreateResponse data, response status code and response headers - def pcloud_pvminstances_snapshots_post_with_http_info(cloud_instance_id, pvm_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_post" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'SnapshotCreateResponse' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_snapshots_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Restore a PVM Instance snapshot - # To roll back the clone operation, append '?restore_fail_action=rollback' to the cURL URL. If you'd like to try the clone operation again, append '?restore_fail_action=retry' to the cURL URL. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param snapshot_id [String] PVM Instance snapshot id - # @param body [SnapshotRestore] PVM Instance snapshot restore parameters - # @param [Hash] opts the optional parameters - # @option opts [String] :restore_fail_action Action to take on a failed snapshot restore - # @return [Snapshot] - def pcloud_pvminstances_snapshots_restore_post(cloud_instance_id, pvm_instance_id, snapshot_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_snapshots_restore_post_with_http_info(cloud_instance_id, pvm_instance_id, snapshot_id, body, opts) - data - end - - # Restore a PVM Instance snapshot - # To roll back the clone operation, append '?restore_fail_action=rollback' to the cURL URL. If you'd like to try the clone operation again, append '?restore_fail_action=retry' to the cURL URL. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param snapshot_id [String] PVM Instance snapshot id - # @param body [SnapshotRestore] PVM Instance snapshot restore parameters - # @param [Hash] opts the optional parameters - # @option opts [String] :restore_fail_action Action to take on a failed snapshot restore - # @return [Array<(Snapshot, Integer, Hash)>] Snapshot data, response status code and response headers - def pcloud_pvminstances_snapshots_restore_post_with_http_info(cloud_instance_id, pvm_instance_id, snapshot_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_restore_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_restore_post" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_restore_post" - end - # verify the required parameter 'snapshot_id' is set - if @api_client.config.client_side_validation && snapshot_id.nil? - fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_restore_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudPVMInstancesApi.pcloud_pvminstances_snapshots_restore_post" - end - allowable_values = ["retry", "rollback"] - if @api_client.config.client_side_validation && opts[:'restore_fail_action'] && !allowable_values.include?(opts[:'restore_fail_action']) - fail ArgumentError, "invalid value for \"restore_fail_action\", must be one of #{allowable_values}" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/snapshots/{snapshot_id}/restore'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)).sub('{' + 'snapshot_id' + '}', CGI.escape(snapshot_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'restore_fail_action'] = opts[:'restore_fail_action'] if !opts[:'restore_fail_action'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Snapshot' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudPVMInstancesApi#pcloud_pvminstances_snapshots_restore_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_sap_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_sap_api.rb deleted file mode 100644 index 37368192..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_sap_api.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudSAPApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Get the information on an SAP profile - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param sap_profile_id [String] SAP Profile ID - # @param [Hash] opts the optional parameters - # @return [SAPProfile] - def pcloud_sap_get(cloud_instance_id, sap_profile_id, opts = {}) - data, _status_code, _headers = pcloud_sap_get_with_http_info(cloud_instance_id, sap_profile_id, opts) - data - end - - # Get the information on an SAP profile - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param sap_profile_id [String] SAP Profile ID - # @param [Hash] opts the optional parameters - # @return [Array<(SAPProfile, Integer, Hash)>] SAPProfile data, response status code and response headers - def pcloud_sap_get_with_http_info(cloud_instance_id, sap_profile_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudSAPApi.pcloud_sap_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudSAPApi.pcloud_sap_get" - end - # verify the required parameter 'sap_profile_id' is set - if @api_client.config.client_side_validation && sap_profile_id.nil? - fail ArgumentError, "Missing the required parameter 'sap_profile_id' when calling PCloudSAPApi.pcloud_sap_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/sap/{sap_profile_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'sap_profile_id' + '}', CGI.escape(sap_profile_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'SAPProfile' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudSAPApi#pcloud_sap_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get list of SAP profiles - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [SAPProfiles] - def pcloud_sap_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_sap_getall_with_http_info(cloud_instance_id, opts) - data - end - - # Get list of SAP profiles - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(SAPProfiles, Integer, Hash)>] SAPProfiles data, response status code and response headers - def pcloud_sap_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudSAPApi.pcloud_sap_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudSAPApi.pcloud_sap_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/sap'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'SAPProfiles' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudSAPApi#pcloud_sap_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a new SAP PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [SAPCreate] Parameters for the creation of a new SAP PVM Instance - # @param [Hash] opts the optional parameters - # @return [Array] - def pcloud_sap_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_sap_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a new SAP PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [SAPCreate] Parameters for the creation of a new SAP PVM Instance - # @param [Hash] opts the optional parameters - # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers - def pcloud_sap_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudSAPApi.pcloud_sap_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudSAPApi.pcloud_sap_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudSAPApi.pcloud_sap_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/sap'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Array' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudSAPApi#pcloud_sap_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_snapshots_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_snapshots_api.rb deleted file mode 100644 index 2f1455b7..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_snapshots_api.rb +++ /dev/null @@ -1,288 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudSnapshotsApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Delete a PVM instance snapshot of a cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param snapshot_id [String] PVM Instance snapshot id - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_cloudinstances_snapshots_delete(cloud_instance_id, snapshot_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_snapshots_delete_with_http_info(cloud_instance_id, snapshot_id, opts) - data - end - - # Delete a PVM instance snapshot of a cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param snapshot_id [String] PVM Instance snapshot id - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_cloudinstances_snapshots_delete_with_http_info(cloud_instance_id, snapshot_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_delete" - end - # verify the required parameter 'snapshot_id' is set - if @api_client.config.client_side_validation && snapshot_id.nil? - fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'snapshot_id' + '}', CGI.escape(snapshot_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudSnapshotsApi#pcloud_cloudinstances_snapshots_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get the detail of a snapshot - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param snapshot_id [String] PVM Instance snapshot id - # @param [Hash] opts the optional parameters - # @return [Snapshot] - def pcloud_cloudinstances_snapshots_get(cloud_instance_id, snapshot_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_snapshots_get_with_http_info(cloud_instance_id, snapshot_id, opts) - data - end - - # Get the detail of a snapshot - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param snapshot_id [String] PVM Instance snapshot id - # @param [Hash] opts the optional parameters - # @return [Array<(Snapshot, Integer, Hash)>] Snapshot data, response status code and response headers - def pcloud_cloudinstances_snapshots_get_with_http_info(cloud_instance_id, snapshot_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_get" - end - # verify the required parameter 'snapshot_id' is set - if @api_client.config.client_side_validation && snapshot_id.nil? - fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'snapshot_id' + '}', CGI.escape(snapshot_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Snapshot' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudSnapshotsApi#pcloud_cloudinstances_snapshots_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # List all PVM instance snapshots for this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Snapshots] - def pcloud_cloudinstances_snapshots_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_snapshots_getall_with_http_info(cloud_instance_id, opts) - data - end - - # List all PVM instance snapshots for this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(Snapshots, Integer, Hash)>] Snapshots data, response status code and response headers - def pcloud_cloudinstances_snapshots_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Snapshots' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudSnapshotsApi#pcloud_cloudinstances_snapshots_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update a PVM instance snapshot - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param snapshot_id [String] PVM Instance snapshot id - # @param body [SnapshotUpdate] Parameters for the update of a PVM instance snapshot - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_cloudinstances_snapshots_put(cloud_instance_id, snapshot_id, body, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_snapshots_put_with_http_info(cloud_instance_id, snapshot_id, body, opts) - data - end - - # Update a PVM instance snapshot - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param snapshot_id [String] PVM Instance snapshot id - # @param body [SnapshotUpdate] Parameters for the update of a PVM instance snapshot - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_cloudinstances_snapshots_put_with_http_info(cloud_instance_id, snapshot_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_put" - end - # verify the required parameter 'snapshot_id' is set - if @api_client.config.client_side_validation && snapshot_id.nil? - fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudSnapshotsApi.pcloud_cloudinstances_snapshots_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/snapshots/{snapshot_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'snapshot_id' + '}', CGI.escape(snapshot_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudSnapshotsApi#pcloud_cloudinstances_snapshots_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_storage_capacity_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_storage_capacity_api.rb deleted file mode 100644 index 0b9ac0d5..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_storage_capacity_api.rb +++ /dev/null @@ -1,274 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudStorageCapacityApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Storage capacity for a storage pool in a region - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param storage_pool_name [String] Storage pool name - # @param [Hash] opts the optional parameters - # @return [StoragePoolCapacity] - def pcloud_storagecapacity_pools_get(cloud_instance_id, storage_pool_name, opts = {}) - data, _status_code, _headers = pcloud_storagecapacity_pools_get_with_http_info(cloud_instance_id, storage_pool_name, opts) - data - end - - # Storage capacity for a storage pool in a region - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param storage_pool_name [String] Storage pool name - # @param [Hash] opts the optional parameters - # @return [Array<(StoragePoolCapacity, Integer, Hash)>] StoragePoolCapacity data, response status code and response headers - def pcloud_storagecapacity_pools_get_with_http_info(cloud_instance_id, storage_pool_name, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudStorageCapacityApi.pcloud_storagecapacity_pools_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudStorageCapacityApi.pcloud_storagecapacity_pools_get" - end - # verify the required parameter 'storage_pool_name' is set - if @api_client.config.client_side_validation && storage_pool_name.nil? - fail ArgumentError, "Missing the required parameter 'storage_pool_name' when calling PCloudStorageCapacityApi.pcloud_storagecapacity_pools_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools/{storage_pool_name}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'storage_pool_name' + '}', CGI.escape(storage_pool_name.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'StoragePoolCapacity' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudStorageCapacityApi#pcloud_storagecapacity_pools_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Storage capacity for all available storage pools in a region - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [StoragePoolsCapacity] - def pcloud_storagecapacity_pools_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_storagecapacity_pools_getall_with_http_info(cloud_instance_id, opts) - data - end - - # Storage capacity for all available storage pools in a region - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(StoragePoolsCapacity, Integer, Hash)>] StoragePoolsCapacity data, response status code and response headers - def pcloud_storagecapacity_pools_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudStorageCapacityApi.pcloud_storagecapacity_pools_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudStorageCapacityApi.pcloud_storagecapacity_pools_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-pools'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'StoragePoolsCapacity' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudStorageCapacityApi#pcloud_storagecapacity_pools_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Storage capacity for a storage type in a region - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param storage_type_name [String] Storage type name - # @param [Hash] opts the optional parameters - # @return [StorageTypeCapacity] - def pcloud_storagecapacity_types_get(cloud_instance_id, storage_type_name, opts = {}) - data, _status_code, _headers = pcloud_storagecapacity_types_get_with_http_info(cloud_instance_id, storage_type_name, opts) - data - end - - # Storage capacity for a storage type in a region - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param storage_type_name [String] Storage type name - # @param [Hash] opts the optional parameters - # @return [Array<(StorageTypeCapacity, Integer, Hash)>] StorageTypeCapacity data, response status code and response headers - def pcloud_storagecapacity_types_get_with_http_info(cloud_instance_id, storage_type_name, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudStorageCapacityApi.pcloud_storagecapacity_types_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudStorageCapacityApi.pcloud_storagecapacity_types_get" - end - # verify the required parameter 'storage_type_name' is set - if @api_client.config.client_side_validation && storage_type_name.nil? - fail ArgumentError, "Missing the required parameter 'storage_type_name' when calling PCloudStorageCapacityApi.pcloud_storagecapacity_types_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types/{storage_type_name}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'storage_type_name' + '}', CGI.escape(storage_type_name.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'StorageTypeCapacity' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudStorageCapacityApi#pcloud_storagecapacity_types_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Storage capacity for all available storage types in a region - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [StorageTypesCapacity] - def pcloud_storagecapacity_types_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_storagecapacity_types_getall_with_http_info(cloud_instance_id, opts) - data - end - - # Storage capacity for all available storage types in a region - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(StorageTypesCapacity, Integer, Hash)>] StorageTypesCapacity data, response status code and response headers - def pcloud_storagecapacity_types_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudStorageCapacityApi.pcloud_storagecapacity_types_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudStorageCapacityApi.pcloud_storagecapacity_types_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/storage-capacity/storage-types'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'StorageTypesCapacity' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudStorageCapacityApi#pcloud_storagecapacity_types_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_system_pools_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_system_pools_api.rb deleted file mode 100644 index 34a4943f..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_system_pools_api.rb +++ /dev/null @@ -1,82 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudSystemPoolsApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # List of available system pools within a particular data center - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Hash] - def pcloud_systempools_get(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_systempools_get_with_http_info(cloud_instance_id, opts) - data - end - - # List of available system pools within a particular data center - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Array<(Hash, Integer, Hash)>] Hash data, response status code and response headers - def pcloud_systempools_get_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudSystemPoolsApi.pcloud_systempools_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudSystemPoolsApi.pcloud_systempools_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/system-pools'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Hash' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudSystemPoolsApi#pcloud_systempools_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tasks_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tasks_api.rb deleted file mode 100644 index 9720daae..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tasks_api.rb +++ /dev/null @@ -1,142 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudTasksApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Delete a task - # @param task_id [String] PCloud Task ID - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_tasks_delete(task_id, opts = {}) - data, _status_code, _headers = pcloud_tasks_delete_with_http_info(task_id, opts) - data - end - - # Delete a task - # @param task_id [String] PCloud Task ID - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_tasks_delete_with_http_info(task_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudTasksApi.pcloud_tasks_delete ...' - end - # verify the required parameter 'task_id' is set - if @api_client.config.client_side_validation && task_id.nil? - fail ArgumentError, "Missing the required parameter 'task_id' when calling PCloudTasksApi.pcloud_tasks_delete" - end - # resource path - local_var_path = '/pcloud/v1/tasks/{task_id}'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudTasksApi#pcloud_tasks_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get a task - # @param task_id [String] PCloud Task ID - # @param [Hash] opts the optional parameters - # @return [Task] - def pcloud_tasks_get(task_id, opts = {}) - data, _status_code, _headers = pcloud_tasks_get_with_http_info(task_id, opts) - data - end - - # Get a task - # @param task_id [String] PCloud Task ID - # @param [Hash] opts the optional parameters - # @return [Array<(Task, Integer, Hash)>] Task data, response status code and response headers - def pcloud_tasks_get_with_http_info(task_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudTasksApi.pcloud_tasks_get ...' - end - # verify the required parameter 'task_id' is set - if @api_client.config.client_side_validation && task_id.nil? - fail ArgumentError, "Missing the required parameter 'task_id' when calling PCloudTasksApi.pcloud_tasks_get" - end - # resource path - local_var_path = '/pcloud/v1/tasks/{task_id}'.sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Task' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudTasksApi#pcloud_tasks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tenants_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tenants_api.rb deleted file mode 100644 index 8a83922c..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tenants_api.rb +++ /dev/null @@ -1,150 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudTenantsApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Get a tenant's current state or information - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [Tenant] - def pcloud_tenants_get(tenant_id, opts = {}) - data, _status_code, _headers = pcloud_tenants_get_with_http_info(tenant_id, opts) - data - end - - # Get a tenant's current state or information - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [Array<(Tenant, Integer, Hash)>] Tenant data, response status code and response headers - def pcloud_tenants_get_with_http_info(tenant_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudTenantsApi.pcloud_tenants_get ...' - end - # verify the required parameter 'tenant_id' is set - if @api_client.config.client_side_validation && tenant_id.nil? - fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PCloudTenantsApi.pcloud_tenants_get" - end - # resource path - local_var_path = '/pcloud/v1/tenants/{tenant_id}'.sub('{' + 'tenant_id' + '}', CGI.escape(tenant_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Tenant' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudTenantsApi#pcloud_tenants_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update a tenant - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param body [TenantUpdate] Parameters for updating a Tenant - # @param [Hash] opts the optional parameters - # @return [Tenant] - def pcloud_tenants_put(tenant_id, body, opts = {}) - data, _status_code, _headers = pcloud_tenants_put_with_http_info(tenant_id, body, opts) - data - end - - # Update a tenant - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param body [TenantUpdate] Parameters for updating a Tenant - # @param [Hash] opts the optional parameters - # @return [Array<(Tenant, Integer, Hash)>] Tenant data, response status code and response headers - def pcloud_tenants_put_with_http_info(tenant_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudTenantsApi.pcloud_tenants_put ...' - end - # verify the required parameter 'tenant_id' is set - if @api_client.config.client_side_validation && tenant_id.nil? - fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PCloudTenantsApi.pcloud_tenants_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudTenantsApi.pcloud_tenants_put" - end - # resource path - local_var_path = '/pcloud/v1/tenants/{tenant_id}'.sub('{' + 'tenant_id' + '}', CGI.escape(tenant_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Tenant' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudTenantsApi#pcloud_tenants_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tenants_ssh_keys_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tenants_ssh_keys_api.rb deleted file mode 100644 index 85795d14..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_tenants_ssh_keys_api.rb +++ /dev/null @@ -1,356 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudTenantsSSHKeysApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Delete a tenant's SSH key - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param sshkey_name [String] SSH key name for a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_tenants_sshkeys_delete(tenant_id, sshkey_name, opts = {}) - data, _status_code, _headers = pcloud_tenants_sshkeys_delete_with_http_info(tenant_id, sshkey_name, opts) - data - end - - # Delete a tenant's SSH key - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param sshkey_name [String] SSH key name for a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_tenants_sshkeys_delete_with_http_info(tenant_id, sshkey_name, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_delete ...' - end - # verify the required parameter 'tenant_id' is set - if @api_client.config.client_side_validation && tenant_id.nil? - fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_delete" - end - # verify the required parameter 'sshkey_name' is set - if @api_client.config.client_side_validation && sshkey_name.nil? - fail ArgumentError, "Missing the required parameter 'sshkey_name' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_delete" - end - # resource path - local_var_path = '/pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name}'.sub('{' + 'tenant_id' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'sshkey_name' + '}', CGI.escape(sshkey_name.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudTenantsSSHKeysApi#pcloud_tenants_sshkeys_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get a tenant's SSH Key by name - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param sshkey_name [String] SSH key name for a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [SSHKey] - def pcloud_tenants_sshkeys_get(tenant_id, sshkey_name, opts = {}) - data, _status_code, _headers = pcloud_tenants_sshkeys_get_with_http_info(tenant_id, sshkey_name, opts) - data - end - - # Get a tenant's SSH Key by name - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param sshkey_name [String] SSH key name for a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [Array<(SSHKey, Integer, Hash)>] SSHKey data, response status code and response headers - def pcloud_tenants_sshkeys_get_with_http_info(tenant_id, sshkey_name, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_get ...' - end - # verify the required parameter 'tenant_id' is set - if @api_client.config.client_side_validation && tenant_id.nil? - fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_get" - end - # verify the required parameter 'sshkey_name' is set - if @api_client.config.client_side_validation && sshkey_name.nil? - fail ArgumentError, "Missing the required parameter 'sshkey_name' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_get" - end - # resource path - local_var_path = '/pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name}'.sub('{' + 'tenant_id' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'sshkey_name' + '}', CGI.escape(sshkey_name.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'SSHKey' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudTenantsSSHKeysApi#pcloud_tenants_sshkeys_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # List a tenant's SSH Keys - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [SSHKeys] - def pcloud_tenants_sshkeys_getall(tenant_id, opts = {}) - data, _status_code, _headers = pcloud_tenants_sshkeys_getall_with_http_info(tenant_id, opts) - data - end - - # List a tenant's SSH Keys - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [Array<(SSHKeys, Integer, Hash)>] SSHKeys data, response status code and response headers - def pcloud_tenants_sshkeys_getall_with_http_info(tenant_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_getall ...' - end - # verify the required parameter 'tenant_id' is set - if @api_client.config.client_side_validation && tenant_id.nil? - fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_getall" - end - # resource path - local_var_path = '/pcloud/v1/tenants/{tenant_id}/sshkeys'.sub('{' + 'tenant_id' + '}', CGI.escape(tenant_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'SSHKeys' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudTenantsSSHKeysApi#pcloud_tenants_sshkeys_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Add a new SSH key to the tenant - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param body [SSHKey] Parameters for the creation of a new SSH key - # @param [Hash] opts the optional parameters - # @return [SSHKey] - def pcloud_tenants_sshkeys_post(tenant_id, body, opts = {}) - data, _status_code, _headers = pcloud_tenants_sshkeys_post_with_http_info(tenant_id, body, opts) - data - end - - # Add a new SSH key to the tenant - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param body [SSHKey] Parameters for the creation of a new SSH key - # @param [Hash] opts the optional parameters - # @return [Array<(SSHKey, Integer, Hash)>] SSHKey data, response status code and response headers - def pcloud_tenants_sshkeys_post_with_http_info(tenant_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_post ...' - end - # verify the required parameter 'tenant_id' is set - if @api_client.config.client_side_validation && tenant_id.nil? - fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_post" - end - # resource path - local_var_path = '/pcloud/v1/tenants/{tenant_id}/sshkeys'.sub('{' + 'tenant_id' + '}', CGI.escape(tenant_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'SSHKey' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudTenantsSSHKeysApi#pcloud_tenants_sshkeys_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update an SSH Key - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param sshkey_name [String] SSH key name for a pcloud tenant - # @param body [SSHKey] Parameters for updating a Tenant's SSH Key - # @param [Hash] opts the optional parameters - # @return [SSHKey] - def pcloud_tenants_sshkeys_put(tenant_id, sshkey_name, body, opts = {}) - data, _status_code, _headers = pcloud_tenants_sshkeys_put_with_http_info(tenant_id, sshkey_name, body, opts) - data - end - - # Update an SSH Key - # @param tenant_id [String] Tenant ID of a pcloud tenant - # @param sshkey_name [String] SSH key name for a pcloud tenant - # @param body [SSHKey] Parameters for updating a Tenant's SSH Key - # @param [Hash] opts the optional parameters - # @return [Array<(SSHKey, Integer, Hash)>] SSHKey data, response status code and response headers - def pcloud_tenants_sshkeys_put_with_http_info(tenant_id, sshkey_name, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_put ...' - end - # verify the required parameter 'tenant_id' is set - if @api_client.config.client_side_validation && tenant_id.nil? - fail ArgumentError, "Missing the required parameter 'tenant_id' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_put" - end - # verify the required parameter 'sshkey_name' is set - if @api_client.config.client_side_validation && sshkey_name.nil? - fail ArgumentError, "Missing the required parameter 'sshkey_name' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudTenantsSSHKeysApi.pcloud_tenants_sshkeys_put" - end - # resource path - local_var_path = '/pcloud/v1/tenants/{tenant_id}/sshkeys/{sshkey_name}'.sub('{' + 'tenant_id' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'sshkey_name' + '}', CGI.escape(sshkey_name.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'SSHKey' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudTenantsSSHKeysApi#pcloud_tenants_sshkeys_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_volumes_api.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_volumes_api.rb deleted file mode 100644 index 92660fd9..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api/p_cloud_volumes_api.rb +++ /dev/null @@ -1,1542 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'cgi' - -module IbmCloudPower - class PCloudVolumesApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Delete a cloud instance volume - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_cloudinstances_volumes_delete(cloud_instance_id, volume_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_volumes_delete_with_http_info(cloud_instance_id, volume_id, opts) - data - end - - # Delete a cloud instance volume - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_cloudinstances_volumes_delete_with_http_info(cloud_instance_id, volume_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_cloudinstances_volumes_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_delete" - end - # verify the required parameter 'volume_id' is set - if @api_client.config.client_side_validation && volume_id.nil? - fail ArgumentError, "Missing the required parameter 'volume_id' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'volume_id' + '}', CGI.escape(volume_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_cloudinstances_volumes_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Detailed information of a volume - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Volume] - def pcloud_cloudinstances_volumes_get(cloud_instance_id, volume_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_volumes_get_with_http_info(cloud_instance_id, volume_id, opts) - data - end - - # Detailed information of a volume - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Array<(Volume, Integer, Hash)>] Volume data, response status code and response headers - def pcloud_cloudinstances_volumes_get_with_http_info(cloud_instance_id, volume_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_cloudinstances_volumes_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_get" - end - # verify the required parameter 'volume_id' is set - if @api_client.config.client_side_validation && volume_id.nil? - fail ArgumentError, "Missing the required parameter 'volume_id' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'volume_id' + '}', CGI.escape(volume_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Volume' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_cloudinstances_volumes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # List all volumes for this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [String] :affinity A pvmInstance (id or name), limits a volumes list response to only volumes that have affinity to the pvmInstance - # @return [Volumes] - def pcloud_cloudinstances_volumes_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_volumes_getall_with_http_info(cloud_instance_id, opts) - data - end - - # List all volumes for this cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [String] :affinity A pvmInstance (id or name), limits a volumes list response to only volumes that have affinity to the pvmInstance - # @return [Array<(Volumes, Integer, Hash)>] Volumes data, response status code and response headers - def pcloud_cloudinstances_volumes_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_cloudinstances_volumes_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/volumes'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'affinity'] = opts[:'affinity'] if !opts[:'affinity'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Volumes' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_cloudinstances_volumes_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a new data volume - # All regions use Tier 1 (NVMe-based flash storage) or Tier 3 (SSD flash storage) storage types. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [CreateDataVolume] Parameters for the creation of a new data volume - # @param [Hash] opts the optional parameters - # @return [Volume] - def pcloud_cloudinstances_volumes_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_volumes_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a new data volume - # All regions use Tier 1 (NVMe-based flash storage) or Tier 3 (SSD flash storage) storage types. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [CreateDataVolume] Parameters for the creation of a new data volume - # @param [Hash] opts the optional parameters - # @return [Array<(Volume, Integer, Hash)>] Volume data, response status code and response headers - def pcloud_cloudinstances_volumes_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_cloudinstances_volumes_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/volumes'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Volume' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_cloudinstances_volumes_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update a cloud instance volume - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volume_id [String] Volume ID - # @param body [UpdateVolume] Parameters to update a cloud instance volume - # @param [Hash] opts the optional parameters - # @return [Volume] - def pcloud_cloudinstances_volumes_put(cloud_instance_id, volume_id, body, opts = {}) - data, _status_code, _headers = pcloud_cloudinstances_volumes_put_with_http_info(cloud_instance_id, volume_id, body, opts) - data - end - - # Update a cloud instance volume - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volume_id [String] Volume ID - # @param body [UpdateVolume] Parameters to update a cloud instance volume - # @param [Hash] opts the optional parameters - # @return [Array<(Volume, Integer, Hash)>] Volume data, response status code and response headers - def pcloud_cloudinstances_volumes_put_with_http_info(cloud_instance_id, volume_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_cloudinstances_volumes_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_put" - end - # verify the required parameter 'volume_id' is set - if @api_client.config.client_side_validation && volume_id.nil? - fail ArgumentError, "Missing the required parameter 'volume_id' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudVolumesApi.pcloud_cloudinstances_volumes_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'volume_id' + '}', CGI.escape(volume_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Volume' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_cloudinstances_volumes_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Detach a volume from a PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_pvminstances_volumes_delete(cloud_instance_id, pvm_instance_id, volume_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_volumes_delete_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, opts) - data - end - - # Detach a volume from a PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_pvminstances_volumes_delete_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_pvminstances_volumes_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_delete" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_delete" - end - # verify the required parameter 'volume_id' is set - if @api_client.config.client_side_validation && volume_id.nil? - fail ArgumentError, "Missing the required parameter 'volume_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_delete" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)).sub('{' + 'volume_id' + '}', CGI.escape(volume_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_pvminstances_volumes_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Detailed information of a volume attached to a PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Volume] - def pcloud_pvminstances_volumes_get(cloud_instance_id, pvm_instance_id, volume_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_volumes_get_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, opts) - data - end - - # Detailed information of a volume attached to a PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Array<(Volume, Integer, Hash)>] Volume data, response status code and response headers - def pcloud_pvminstances_volumes_get_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_pvminstances_volumes_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_get" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_get" - end - # verify the required parameter 'volume_id' is set - if @api_client.config.client_side_validation && volume_id.nil? - fail ArgumentError, "Missing the required parameter 'volume_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_get" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)).sub('{' + 'volume_id' + '}', CGI.escape(volume_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Volume' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_pvminstances_volumes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # List all volumes attached to a PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Volumes] - def pcloud_pvminstances_volumes_getall(cloud_instance_id, pvm_instance_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_volumes_getall_with_http_info(cloud_instance_id, pvm_instance_id, opts) - data - end - - # List all volumes attached to a PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Array<(Volumes, Integer, Hash)>] Volumes data, response status code and response headers - def pcloud_pvminstances_volumes_getall_with_http_info(cloud_instance_id, pvm_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_pvminstances_volumes_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_getall" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_getall" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Volumes' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_pvminstances_volumes_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Attach a volume to a PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_pvminstances_volumes_post(cloud_instance_id, pvm_instance_id, volume_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_volumes_post_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, opts) - data - end - - # Attach a volume to a PVM Instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_pvminstances_volumes_post_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_pvminstances_volumes_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_post" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_post" - end - # verify the required parameter 'volume_id' is set - if @api_client.config.client_side_validation && volume_id.nil? - fail ArgumentError, "Missing the required parameter 'volume_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)).sub('{' + 'volume_id' + '}', CGI.escape(volume_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_pvminstances_volumes_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Update a volume attached to a PVMInstance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param body [PVMInstanceVolumeUpdate] Parameters to update a volume attached to a PVMInstance - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_pvminstances_volumes_put(cloud_instance_id, pvm_instance_id, volume_id, body, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_volumes_put_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, body, opts) - data - end - - # Update a volume attached to a PVMInstance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param body [PVMInstanceVolumeUpdate] Parameters to update a volume attached to a PVMInstance - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_pvminstances_volumes_put_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_pvminstances_volumes_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_put" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_put" - end - # verify the required parameter 'volume_id' is set - if @api_client.config.client_side_validation && volume_id.nil? - fail ArgumentError, "Missing the required parameter 'volume_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_put" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)).sub('{' + 'volume_id' + '}', CGI.escape(volume_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_pvminstances_volumes_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Set the PVMInstance volume as the boot volume - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_pvminstances_volumes_setboot_put(cloud_instance_id, pvm_instance_id, volume_id, opts = {}) - data, _status_code, _headers = pcloud_pvminstances_volumes_setboot_put_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, opts) - data - end - - # Set the PVMInstance volume as the boot volume - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id [String] PCloud PVM Instance ID - # @param volume_id [String] Volume ID - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_pvminstances_volumes_setboot_put_with_http_info(cloud_instance_id, pvm_instance_id, volume_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_pvminstances_volumes_setboot_put ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_setboot_put" - end - # verify the required parameter 'pvm_instance_id' is set - if @api_client.config.client_side_validation && pvm_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'pvm_instance_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_setboot_put" - end - # verify the required parameter 'volume_id' is set - if @api_client.config.client_side_validation && volume_id.nil? - fail ArgumentError, "Missing the required parameter 'volume_id' when calling PCloudVolumesApi.pcloud_pvminstances_volumes_setboot_put" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/pvm-instances/{pvm_instance_id}/volumes/{volume_id}/setboot'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'pvm_instance_id' + '}', CGI.escape(pvm_instance_id.to_s)).sub('{' + 'volume_id' + '}', CGI.escape(volume_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_pvminstances_volumes_setboot_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a volume clone for specified volumes (version 2) - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [VolumesCloneAsyncRequest] Parameters for the cloning of volumes - # @param [Hash] opts the optional parameters - # @return [CloneTaskReference] - def pcloud_v2_volumes_clone_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_v2_volumes_clone_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a volume clone for specified volumes (version 2) - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [VolumesCloneAsyncRequest] Parameters for the cloning of volumes - # @param [Hash] opts the optional parameters - # @return [Array<(CloneTaskReference, Integer, Hash)>] CloneTaskReference data, response status code and response headers - def pcloud_v2_volumes_clone_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumes_clone_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumes_clone_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudVolumesApi.pcloud_v2_volumes_clone_post" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'CloneTaskReference' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumes_clone_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get the status of a volume clone request for the specified clone task ID - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param clone_task_id [String] Volumes Clone Task ID - # @param [Hash] opts the optional parameters - # @return [CloneTaskStatus] - def pcloud_v2_volumes_clonetasks_get(cloud_instance_id, clone_task_id, opts = {}) - data, _status_code, _headers = pcloud_v2_volumes_clonetasks_get_with_http_info(cloud_instance_id, clone_task_id, opts) - data - end - - # Get the status of a volume clone request for the specified clone task ID - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param clone_task_id [String] Volumes Clone Task ID - # @param [Hash] opts the optional parameters - # @return [Array<(CloneTaskStatus, Integer, Hash)>] CloneTaskStatus data, response status code and response headers - def pcloud_v2_volumes_clonetasks_get_with_http_info(cloud_instance_id, clone_task_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumes_clonetasks_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumes_clonetasks_get" - end - # verify the required parameter 'clone_task_id' is set - if @api_client.config.client_side_validation && clone_task_id.nil? - fail ArgumentError, "Missing the required parameter 'clone_task_id' when calling PCloudVolumesApi.pcloud_v2_volumes_clonetasks_get" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes/clone-tasks/{clone_task_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'clone_task_id' + '}', CGI.escape(clone_task_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'CloneTaskStatus' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumes_clonetasks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create multiple data volumes from a single definition - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [MultiVolumesCreate] Parameters for creating multiple volumes - # @param [Hash] opts the optional parameters - # @return [Volumes] - def pcloud_v2_volumes_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_v2_volumes_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create multiple data volumes from a single definition - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [MultiVolumesCreate] Parameters for creating multiple volumes - # @param [Hash] opts the optional parameters - # @return [Array<(Volumes, Integer, Hash)>] Volumes data, response status code and response headers - def pcloud_v2_volumes_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumes_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumes_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudVolumesApi.pcloud_v2_volumes_post" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'Volumes' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumes_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action performs the cleanup of the preparatory clones and snapshot volumes. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param [Hash] opts the optional parameters - # @option opts [VolumesCloneCancel] :body Parameters for cancelling a volumes-clone request - # @return [VolumesClone] - def pcloud_v2_volumesclone_cancel_post(cloud_instance_id, volumes_clone_id, opts = {}) - data, _status_code, _headers = pcloud_v2_volumesclone_cancel_post_with_http_info(cloud_instance_id, volumes_clone_id, opts) - data - end - - # Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action performs the cleanup of the preparatory clones and snapshot volumes. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param [Hash] opts the optional parameters - # @option opts [VolumesCloneCancel] :body Parameters for cancelling a volumes-clone request - # @return [Array<(VolumesClone, Integer, Hash)>] VolumesClone data, response status code and response headers - def pcloud_v2_volumesclone_cancel_post_with_http_info(cloud_instance_id, volumes_clone_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumesclone_cancel_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_cancel_post" - end - # verify the required parameter 'volumes_clone_id' is set - if @api_client.config.client_side_validation && volumes_clone_id.nil? - fail ArgumentError, "Missing the required parameter 'volumes_clone_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_cancel_post" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/cancel'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'volumes_clone_id' + '}', CGI.escape(volumes_clone_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(opts[:'body']) - - # return_type - return_type = opts[:return_type] || 'VolumesClone' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumesclone_cancel_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Delete a volumes-clone request - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param [Hash] opts the optional parameters - # @return [Object] - def pcloud_v2_volumesclone_delete(cloud_instance_id, volumes_clone_id, opts = {}) - data, _status_code, _headers = pcloud_v2_volumesclone_delete_with_http_info(cloud_instance_id, volumes_clone_id, opts) - data - end - - # Delete a volumes-clone request - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param [Hash] opts the optional parameters - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers - def pcloud_v2_volumesclone_delete_with_http_info(cloud_instance_id, volumes_clone_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumesclone_delete ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_delete" - end - # verify the required parameter 'volumes_clone_id' is set - if @api_client.config.client_side_validation && volumes_clone_id.nil? - fail ArgumentError, "Missing the required parameter 'volumes_clone_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_delete" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'volumes_clone_id' + '}', CGI.escape(volumes_clone_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'Object' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumesclone_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Initiate the Execute action for a volumes-clone request. The Execute action creates the cloned volumes using the volume snapshots. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param body [VolumesCloneExecute] Parameters for the cloning of volumes - # @param [Hash] opts the optional parameters - # @return [VolumesClone] - def pcloud_v2_volumesclone_execute_post(cloud_instance_id, volumes_clone_id, body, opts = {}) - data, _status_code, _headers = pcloud_v2_volumesclone_execute_post_with_http_info(cloud_instance_id, volumes_clone_id, body, opts) - data - end - - # Initiate the Execute action for a volumes-clone request. The Execute action creates the cloned volumes using the volume snapshots. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param body [VolumesCloneExecute] Parameters for the cloning of volumes - # @param [Hash] opts the optional parameters - # @return [Array<(VolumesClone, Integer, Hash)>] VolumesClone data, response status code and response headers - def pcloud_v2_volumesclone_execute_post_with_http_info(cloud_instance_id, volumes_clone_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumesclone_execute_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_execute_post" - end - # verify the required parameter 'volumes_clone_id' is set - if @api_client.config.client_side_validation && volumes_clone_id.nil? - fail ArgumentError, "Missing the required parameter 'volumes_clone_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_execute_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudVolumesApi.pcloud_v2_volumesclone_execute_post" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/execute'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'volumes_clone_id' + '}', CGI.escape(volumes_clone_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'VolumesClone' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumesclone_execute_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get the details for a volumes-clone request - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param [Hash] opts the optional parameters - # @return [VolumesCloneDetail] - def pcloud_v2_volumesclone_get(cloud_instance_id, volumes_clone_id, opts = {}) - data, _status_code, _headers = pcloud_v2_volumesclone_get_with_http_info(cloud_instance_id, volumes_clone_id, opts) - data - end - - # Get the details for a volumes-clone request - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param [Hash] opts the optional parameters - # @return [Array<(VolumesCloneDetail, Integer, Hash)>] VolumesCloneDetail data, response status code and response headers - def pcloud_v2_volumesclone_get_with_http_info(cloud_instance_id, volumes_clone_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumesclone_get ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_get" - end - # verify the required parameter 'volumes_clone_id' is set - if @api_client.config.client_side_validation && volumes_clone_id.nil? - fail ArgumentError, "Missing the required parameter 'volumes_clone_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_get" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'volumes_clone_id' + '}', CGI.escape(volumes_clone_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'VolumesCloneDetail' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumesclone_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Get the list of volumes-clone request for a cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [String] :filter volumes-clone filter to limit list items: prepare - includes status values (preparing, prepared) start - includes status values (starting, available) execute - includes status values (executing, available-rollback) cancel - includes status values (cancelling) completed - includes status values (completed) failed - includes status values (failed) cancelled - includes status values (cancelled) finalized - included status values (completed, failed, cancelled) - # @return [VolumesClones] - def pcloud_v2_volumesclone_getall(cloud_instance_id, opts = {}) - data, _status_code, _headers = pcloud_v2_volumesclone_getall_with_http_info(cloud_instance_id, opts) - data - end - - # Get the list of volumes-clone request for a cloud instance - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [String] :filter volumes-clone filter to limit list items: prepare - includes status values (preparing, prepared) start - includes status values (starting, available) execute - includes status values (executing, available-rollback) cancel - includes status values (cancelling) completed - includes status values (completed) failed - includes status values (failed) cancelled - includes status values (cancelled) finalized - included status values (completed, failed, cancelled) - # @return [Array<(VolumesClones, Integer, Hash)>] VolumesClones data, response status code and response headers - def pcloud_v2_volumesclone_getall_with_http_info(cloud_instance_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumesclone_getall ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_getall" - end - allowable_values = ["prepare", "start", "execute", "cancel", "completed", "failed", "cancelled", "finalized"] - if @api_client.config.client_side_validation && opts[:'filter'] && !allowable_values.include?(opts[:'filter']) - fail ArgumentError, "invalid value for \"filter\", must be one of #{allowable_values}" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'VolumesClones' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumesclone_getall\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a new volumes clone request and initiate the Prepare action - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [VolumesCloneCreate] Parameters for preparing a set of volumes to be cloned (This API requires a minimum of two volumes, a minimum of one volume to be in the 'in-use' state, and a unique volume clone name. The Prepare action does the preparatory work for creating the snapshot volumes.) - # @param [Hash] opts the optional parameters - # @return [VolumesClone] - def pcloud_v2_volumesclone_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_v2_volumesclone_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a new volumes clone request and initiate the Prepare action - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [VolumesCloneCreate] Parameters for preparing a set of volumes to be cloned (This API requires a minimum of two volumes, a minimum of one volume to be in the 'in-use' state, and a unique volume clone name. The Prepare action does the preparatory work for creating the snapshot volumes.) - # @param [Hash] opts the optional parameters - # @return [Array<(VolumesClone, Integer, Hash)>] VolumesClone data, response status code and response headers - def pcloud_v2_volumesclone_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumesclone_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudVolumesApi.pcloud_v2_volumesclone_post" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'VolumesClone' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumesclone_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Initiate the Start action for a volume-clone request. The Start action starts the consistency group to initiate the flash copy. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param [Hash] opts the optional parameters - # @return [VolumesClone] - def pcloud_v2_volumesclone_start_post(cloud_instance_id, volumes_clone_id, opts = {}) - data, _status_code, _headers = pcloud_v2_volumesclone_start_post_with_http_info(cloud_instance_id, volumes_clone_id, opts) - data - end - - # Initiate the Start action for a volume-clone request. The Start action starts the consistency group to initiate the flash copy. - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone name - # @param [Hash] opts the optional parameters - # @return [Array<(VolumesClone, Integer, Hash)>] VolumesClone data, response status code and response headers - def pcloud_v2_volumesclone_start_post_with_http_info(cloud_instance_id, volumes_clone_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_v2_volumesclone_start_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_start_post" - end - # verify the required parameter 'volumes_clone_id' is set - if @api_client.config.client_side_validation && volumes_clone_id.nil? - fail ArgumentError, "Missing the required parameter 'volumes_clone_id' when calling PCloudVolumesApi.pcloud_v2_volumesclone_start_post" - end - # resource path - local_var_path = '/pcloud/v2/cloud-instances/{cloud_instance_id}/volumes-clone/{volumes_clone_id}/start'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)).sub('{' + 'volumes_clone_id' + '}', CGI.escape(volumes_clone_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] - - # return_type - return_type = opts[:return_type] || 'VolumesClone' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_v2_volumesclone_start_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # Create a volume clone for specified volumes (version 1 - depricated) - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [VolumesCloneRequest] Parameters for the cloning of volumes - # @param [Hash] opts the optional parameters - # @return [VolumesCloneResponse] - def pcloud_volumes_clone_post(cloud_instance_id, body, opts = {}) - data, _status_code, _headers = pcloud_volumes_clone_post_with_http_info(cloud_instance_id, body, opts) - data - end - - # Create a volume clone for specified volumes (version 1 - depricated) - # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance - # @param body [VolumesCloneRequest] Parameters for the cloning of volumes - # @param [Hash] opts the optional parameters - # @return [Array<(VolumesCloneResponse, Integer, Hash)>] VolumesCloneResponse data, response status code and response headers - def pcloud_volumes_clone_post_with_http_info(cloud_instance_id, body, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PCloudVolumesApi.pcloud_volumes_clone_post ...' - end - # verify the required parameter 'cloud_instance_id' is set - if @api_client.config.client_side_validation && cloud_instance_id.nil? - fail ArgumentError, "Missing the required parameter 'cloud_instance_id' when calling PCloudVolumesApi.pcloud_volumes_clone_post" - end - # verify the required parameter 'body' is set - if @api_client.config.client_side_validation && body.nil? - fail ArgumentError, "Missing the required parameter 'body' when calling PCloudVolumesApi.pcloud_volumes_clone_post" - end - # resource path - local_var_path = '/pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/clone'.sub('{' + 'cloud_instance_id' + '}', CGI.escape(cloud_instance_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(body) - - # return_type - return_type = opts[:return_type] || 'VolumesCloneResponse' - - # auth_names - auth_names = opts[:auth_names] || [] - - new_options = opts.merge( - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: PCloudVolumesApi#pcloud_volumes_clone_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api_client.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api_client.rb deleted file mode 100644 index 1a8d0bf2..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api_client.rb +++ /dev/null @@ -1,387 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' -require 'json' -require 'logger' -require 'tempfile' -require 'typhoeus' - -module IbmCloudPower - class ApiClient - # The Configuration object holding settings to be used in the API client. - attr_accessor :config - - # Defines the headers to be used in HTTP requests of all API calls by default. - # - # @return [Hash] - attr_accessor :default_headers - - # Initializes the ApiClient - # @option config [Configuration] Configuration for initializing the object, default to Configuration.default - def initialize(config = Configuration.default) - @config = config - @user_agent = "OpenAPI-Generator/#{VERSION}/ruby" - @default_headers = { - 'Content-Type' => 'application/json', - 'User-Agent' => @user_agent - } - end - - def self.default - @@default ||= ApiClient.new - end - - # Call an API with given options. - # - # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: - # the data deserialized from response body (could be nil), response status code and response headers. - def call_api(http_method, path, opts = {}) - request = build_request(http_method, path, opts) - response = request.run - - if @config.debugging - @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n" - end - - unless response.success? - if response.timed_out? - fail ApiError.new('Connection timed out') - elsif response.code == 0 - # Errors from libcurl will be made visible here - fail ApiError.new(:code => 0, - :message => response.return_message) - else - fail ApiError.new(:code => response.code, - :response_headers => response.headers, - :response_body => response.body), - response.status_message - end - end - - if opts[:return_type] - data = deserialize(response, opts[:return_type]) - else - data = nil - end - return data, response.code, response.headers - end - - # Builds the HTTP request - # - # @param [String] http_method HTTP method/verb (e.g. POST) - # @param [String] path URL path (e.g. /account/new) - # @option opts [Hash] :header_params Header parameters - # @option opts [Hash] :query_params Query parameters - # @option opts [Hash] :form_params Query parameters - # @option opts [Object] :body HTTP body (JSON/XML) - # @return [Typhoeus::Request] A Typhoeus Request - def build_request(http_method, path, opts = {}) - url = build_request_url(path) - http_method = http_method.to_sym.downcase - - header_params = @default_headers.merge(opts[:header_params] || {}) - query_params = opts[:query_params] || {} - form_params = opts[:form_params] || {} - - - # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false) - _verify_ssl_host = @config.verify_ssl_host ? 2 : 0 - - req_opts = { - :method => http_method, - :headers => header_params, - :params => query_params, - :params_encoding => @config.params_encoding, - :timeout => @config.timeout, - :ssl_verifypeer => @config.verify_ssl, - :ssl_verifyhost => _verify_ssl_host, - :sslcert => @config.cert_file, - :sslkey => @config.key_file, - :verbose => @config.debugging - } - - # set custom cert, if provided - req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert - - if [:post, :patch, :put, :delete].include?(http_method) - req_body = build_request_body(header_params, form_params, opts[:body]) - req_opts.update :body => req_body - if @config.debugging - @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" - end - end - - request = Typhoeus::Request.new(url, req_opts) - download_file(request) if opts[:return_type] == 'File' - request - end - - # Builds the HTTP request body - # - # @param [Hash] header_params Header parameters - # @param [Hash] form_params Query parameters - # @param [Object] body HTTP body (JSON/XML) - # @return [String] HTTP body data in the form of string - def build_request_body(header_params, form_params, body) - # http form - if header_params['Content-Type'] == 'application/x-www-form-urlencoded' || - header_params['Content-Type'] == 'multipart/form-data' - data = {} - form_params.each do |key, value| - case value - when ::File, ::Array, nil - # let typhoeus handle File, Array and nil parameters - data[key] = value - else - data[key] = value.to_s - end - end - elsif body - data = body.is_a?(String) ? body : body.to_json - else - data = nil - end - data - end - - # Check if the given MIME is a JSON MIME. - # JSON MIME examples: - # application/json - # application/json; charset=UTF8 - # APPLICATION/JSON - # */* - # @param [String] mime MIME - # @return [Boolean] True if the MIME is application/json - def json_mime?(mime) - (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? - end - - # Deserialize the response to the given return type. - # - # @param [Response] response HTTP response - # @param [String] return_type some examples: "User", "Array", "Hash" - def deserialize(response, return_type) - body = response.body - - # handle file downloading - return the File instance processed in request callbacks - # note that response body is empty when the file is written in chunks in request on_body callback - return @tempfile if return_type == 'File' - - return nil if body.nil? || body.empty? - - # return response body directly for String return type - return body if return_type == 'String' - - # ensuring a default content type - content_type = response.headers['Content-Type'] || 'application/json' - - fail "Content-Type is not supported: #{content_type}" unless json_mime?(content_type) - - begin - data = JSON.parse("[#{body}]", :symbolize_names => true)[0] - rescue JSON::ParserError => e - if %w(String Date DateTime).include?(return_type) - data = body - else - raise e - end - end - - convert_to_type data, return_type - end - - # Convert data to the given return type. - # @param [Object] data Data to be converted - # @param [String] return_type Return type - # @return [Mixed] Data in a particular type - def convert_to_type(data, return_type) - return nil if data.nil? - case return_type - when 'String' - data.to_s - when 'Integer' - data.to_i - when 'Float' - data.to_f - when 'Boolean' - data == true - when 'DateTime' - # parse date time (expecting ISO 8601 format) - DateTime.parse data - when 'Date' - # parse date time (expecting ISO 8601 format) - Date.parse data - when 'Object' - # generic object (usually a Hash), return directly - data - when /\AArray<(.+)>\z/ - # e.g. Array - sub_type = $1 - data.map { |item| convert_to_type(item, sub_type) } - when /\AHash\\z/ - # e.g. Hash - sub_type = $1 - {}.tap do |hash| - data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } - end - else - # models, e.g. Pet - IbmCloudPower.const_get(return_type).build_from_hash(data) - end - end - - # Save response body into a file in (the defined) temporary folder, using the filename - # from the "Content-Disposition" header if provided, otherwise a random filename. - # The response body is written to the file in chunks in order to handle files which - # size is larger than maximum Ruby String or even larger than the maximum memory a Ruby - # process can use. - # - # @see Configuration#temp_folder_path - def download_file(request) - tempfile = nil - encoding = nil - request.on_headers do |response| - content_disposition = response.headers['Content-Disposition'] - if content_disposition && content_disposition =~ /filename=/i - filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] - prefix = sanitize_filename(filename) - else - prefix = 'download-' - end - prefix = prefix + '-' unless prefix.end_with?('-') - encoding = response.body.encoding - tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding) - @tempfile = tempfile - end - request.on_body do |chunk| - chunk.force_encoding(encoding) - tempfile.write(chunk) - end - request.on_complete do |response| - if tempfile - tempfile.close - @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ - "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ - "will be deleted automatically with GC. It's also recommended to delete the temp file "\ - "explicitly with `tempfile.delete`" - end - end - end - - # Sanitize filename by removing path. - # e.g. ../../sun.gif becomes sun.gif - # - # @param [String] filename the filename to be sanitized - # @return [String] the sanitized filename - def sanitize_filename(filename) - filename.gsub(/.*[\/\\]/, '') - end - - def build_request_url(path) - # Add leading and trailing slashes to path - path = "/#{path}".gsub(/\/+/, '/') - @config.base_url + path - end - - # Update hearder and query params based on authentication settings. - # - # @param [Hash] header_params Header parameters - # @param [Hash] query_params Query parameters - # @param [String] auth_names Authentication scheme name - def update_params_for_auth!(header_params, query_params, auth_names) - Array(auth_names).each do |auth_name| - auth_setting = @config.auth_settings[auth_name] - next unless auth_setting - case auth_setting[:in] - when 'header' then header_params[auth_setting[:key]] = auth_setting[:value] - when 'query' then query_params[auth_setting[:key]] = auth_setting[:value] - else fail ArgumentError, 'Authentication token must be in `query` of `header`' - end - end - end - - # Sets user agent in HTTP header - # - # @param [String] user_agent User agent (e.g. openapi-generator/ruby/1.0.0) - def user_agent=(user_agent) - @user_agent = user_agent - @default_headers['User-Agent'] = @user_agent - end - - # Return Accept header based on an array of accepts provided. - # @param [Array] accepts array for Accept - # @return [String] the Accept header (e.g. application/json) - def select_header_accept(accepts) - return nil if accepts.nil? || accepts.empty? - # use JSON when present, otherwise use all of the provided - json_accept = accepts.find { |s| json_mime?(s) } - json_accept || accepts.join(',') - end - - # Return Content-Type header based on an array of content types provided. - # @param [Array] content_types array for Content-Type - # @return [String] the Content-Type header (e.g. application/json) - def select_header_content_type(content_types) - # use application/json by default - return 'application/json' if content_types.nil? || content_types.empty? - # use JSON when present, otherwise use the first one - json_content_type = content_types.find { |s| json_mime?(s) } - json_content_type || content_types.first - end - - # Convert object (array, hash, object, etc) to JSON string. - # @param [Object] model object to be converted into JSON string - # @return [String] JSON string representation of the object - def object_to_http_body(model) - return model if model.nil? || model.is_a?(String) - local_body = nil - if model.is_a?(Array) - local_body = model.map { |m| object_to_hash(m) } - else - local_body = object_to_hash(model) - end - local_body.to_json - end - - # Convert object(non-array) to hash. - # @param [Object] obj object to be converted into JSON string - # @return [String] JSON string representation of the object - def object_to_hash(obj) - if obj.respond_to?(:to_hash) - obj.to_hash - else - obj - end - end - - # Build parameter value according to the given collection format. - # @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi - def build_collection_param(param, collection_format) - case collection_format - when :csv - param.join(',') - when :ssv - param.join(' ') - when :tsv - param.join("\t") - when :pipes - param.join('|') - when :multi - # return the array directly as typhoeus will handle it as expected - param - else - fail "unknown collection format: #{collection_format.inspect}" - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/api_error.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/api_error.rb deleted file mode 100644 index 15dd576f..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/api_error.rb +++ /dev/null @@ -1,57 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -module IbmCloudPower - class ApiError < StandardError - attr_reader :code, :response_headers, :response_body - - # Usage examples: - # ApiError.new - # ApiError.new("message") - # ApiError.new(:code => 500, :response_headers => {}, :response_body => "") - # ApiError.new(:code => 404, :message => "Not Found") - def initialize(arg = nil) - if arg.is_a? Hash - if arg.key?(:message) || arg.key?('message') - super(arg[:message] || arg['message']) - else - super arg - end - - arg.each do |k, v| - instance_variable_set "@#{k}", v - end - else - super arg - end - end - - # Override to_s to display a friendly error message - def to_s - message - end - - def message - if @message.nil? - msg = "Error message: the server returns an error" - else - msg = @message - end - - msg += "\nHTTP status code: #{code}" if code - msg += "\nResponse headers: #{response_headers}" if response_headers - msg += "\nResponse body: #{response_body}" if response_body - - msg - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/configuration.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/configuration.rb deleted file mode 100644 index 4599884c..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/configuration.rb +++ /dev/null @@ -1,241 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -module IbmCloudPower - class Configuration - # Defines url scheme - attr_accessor :scheme - - # Defines url host - attr_accessor :host - - # Defines url base path - attr_accessor :base_path - - # Defines API keys used with API Key authentications. - # - # @return [Hash] key: parameter name, value: parameter value (API key) - # - # @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string) - # config.api_key['api_key'] = 'xxx' - attr_accessor :api_key - - # Defines API key prefixes used with API Key authentications. - # - # @return [Hash] key: parameter name, value: API key prefix - # - # @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers) - # config.api_key_prefix['api_key'] = 'Token' - attr_accessor :api_key_prefix - - # Defines the username used with HTTP basic authentication. - # - # @return [String] - attr_accessor :username - - # Defines the password used with HTTP basic authentication. - # - # @return [String] - attr_accessor :password - - # Defines the access token (Bearer) used with OAuth2. - attr_accessor :access_token - - # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response - # details will be logged with `logger.debug` (see the `logger` attribute). - # Default to false. - # - # @return [true, false] - attr_accessor :debugging - - # Defines the logger used for debugging. - # Default to `Rails.logger` (when in Rails) or logging to STDOUT. - # - # @return [#debug] - attr_accessor :logger - - # Defines the temporary folder to store downloaded files - # (for API endpoints that have file response). - # Default to use `Tempfile`. - # - # @return [String] - attr_accessor :temp_folder_path - - # The time limit for HTTP request in seconds. - # Default to 0 (never times out). - attr_accessor :timeout - - # Set this to false to skip client side validation in the operation. - # Default to true. - # @return [true, false] - attr_accessor :client_side_validation - - ### TLS/SSL setting - # Set this to false to skip verifying SSL certificate when calling API from https server. - # Default to true. - # - # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. - # - # @return [true, false] - attr_accessor :verify_ssl - - ### TLS/SSL setting - # Set this to false to skip verifying SSL host name - # Default to true. - # - # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. - # - # @return [true, false] - attr_accessor :verify_ssl_host - - ### TLS/SSL setting - # Set this to customize the certificate file to verify the peer. - # - # @return [String] the path to the certificate file - # - # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code: - # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145 - attr_accessor :ssl_ca_cert - - ### TLS/SSL setting - # Client certificate file (for client certificate) - attr_accessor :cert_file - - ### TLS/SSL setting - # Client private key file (for client certificate) - attr_accessor :key_file - - # Set this to customize parameters encoding of array parameter with multi collectionFormat. - # Default to nil. - # - # @see The params_encoding option of Ethon. Related source code: - # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96 - attr_accessor :params_encoding - - attr_accessor :inject_format - - attr_accessor :force_ending_format - - def initialize - @scheme = 'http' - @host = 'localhost' - @base_path = '' - @api_key = {} - @api_key_prefix = {} - @timeout = 0 - @client_side_validation = true - @verify_ssl = true - @verify_ssl_host = true - @params_encoding = nil - @cert_file = nil - @key_file = nil - @debugging = false - @inject_format = false - @force_ending_format = false - @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) - - yield(self) if block_given? - end - - # The default Configuration object. - def self.default - @@default ||= Configuration.new - end - - def configure - yield(self) if block_given? - end - - def scheme=(scheme) - # remove :// from scheme - @scheme = scheme.sub(/:\/\//, '') - end - - def host=(host) - # remove http(s):// and anything after a slash - @host = host.sub(/https?:\/\//, '').split('/').first - end - - def base_path=(base_path) - # Add leading and trailing slashes to base_path - @base_path = "/#{base_path}".gsub(/\/+/, '/') - @base_path = '' if @base_path == '/' - end - - def base_url - "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') - end - - # Gets API key (with prefix if set). - # @param [String] param_name the parameter name of API key auth - def api_key_with_prefix(param_name) - if @api_key_prefix[param_name] - "#{@api_key_prefix[param_name]} #{@api_key[param_name]}" - else - @api_key[param_name] - end - end - - # Gets Basic Auth token string - def basic_auth_token - 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n") - end - - # Returns Auth Settings hash for api client. - def auth_settings - { - } - end - - # Returns an array of Server setting - def server_settings - [ - { - url: "/", - description: "No description provided", - } - ] - end - - # Returns URL based on server settings - # - # @param index array index of the server settings - # @param variables hash of variable and the corresponding value - def server_url(index, variables = {}) - servers = server_settings - - # check array index out of bound - if (index < 0 || index >= servers.size) - fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}" - end - - server = servers[index] - url = server[:url] - - # go through variable and assign a value - server[:variables].each do |name, variable| - if variables.key?(name) - if (server[:variables][name][:enum_values].include? variables[name]) - url.gsub! "{" + name.to_s + "}", variables[name] - else - fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}." - end - else - # use default value - url.gsub! "{" + name.to_s + "}", server[:variables][name][:default_value] - end - end - - url - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/clone_task_reference.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/clone_task_reference.rb deleted file mode 100644 index 7c5ca0e4..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/clone_task_reference.rb +++ /dev/null @@ -1,229 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloneTaskReference - # ID of a long running PowerVC clone task - attr_accessor :clone_task_id - - # Link to PowerVC clone task resource - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'clone_task_id' => :'cloneTaskID', - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'clone_task_id' => :'String', - :'href' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloneTaskReference` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloneTaskReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'clone_task_id') - self.clone_task_id = attributes[:'clone_task_id'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @clone_task_id.nil? - invalid_properties.push('invalid value for "clone_task_id", clone_task_id cannot be nil.') - end - - if @href.nil? - invalid_properties.push('invalid value for "href", href cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @clone_task_id.nil? - return false if @href.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - clone_task_id == o.clone_task_id && - href == o.href - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [clone_task_id, href].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/clone_task_status.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/clone_task_status.rb deleted file mode 100644 index 883a6445..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/clone_task_status.rb +++ /dev/null @@ -1,285 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloneTaskStatus - # Status of the clone volumes task - attr_accessor :status - - # Snapshot completion percentage - attr_accessor :percent_complete - - # List of cloned volumes created from the clone volumes task - attr_accessor :cloned_volumes - - # The reason the clone volumes task has failed - attr_accessor :failed_reason - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'status' => :'status', - :'percent_complete' => :'percentComplete', - :'cloned_volumes' => :'clonedVolumes', - :'failed_reason' => :'failedReason' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'status' => :'String', - :'percent_complete' => :'Integer', - :'cloned_volumes' => :'Array', - :'failed_reason' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloneTaskStatus` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloneTaskStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'percent_complete') - self.percent_complete = attributes[:'percent_complete'] - end - - if attributes.key?(:'cloned_volumes') - if (value = attributes[:'cloned_volumes']).is_a?(Array) - self.cloned_volumes = value - end - end - - if attributes.key?(:'failed_reason') - self.failed_reason = attributes[:'failed_reason'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - if @percent_complete.nil? - invalid_properties.push('invalid value for "percent_complete", percent_complete cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @status.nil? - status_validator = EnumAttributeValidator.new('String', ["running", "completed", "failed", "unknown"]) - return false unless status_validator.valid?(@status) - return false if @percent_complete.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] status Object to be assigned - def status=(status) - validator = EnumAttributeValidator.new('String', ["running", "completed", "failed", "unknown"]) - unless validator.valid?(status) - fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}." - end - @status = status - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - status == o.status && - percent_complete == o.percent_complete && - cloned_volumes == o.cloned_volumes && - failed_reason == o.failed_reason - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [status, percent_complete, cloned_volumes, failed_reason].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloned_volume.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloned_volume.rb deleted file mode 100644 index 248492ae..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloned_volume.rb +++ /dev/null @@ -1,219 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class ClonedVolume - # ID of the source volume to be cloned - attr_accessor :source_volume_id - - # ID of the new cloned volume - attr_accessor :cloned_volume_id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'source_volume_id' => :'sourceVolumeID', - :'cloned_volume_id' => :'clonedVolumeID' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'source_volume_id' => :'String', - :'cloned_volume_id' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::ClonedVolume` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::ClonedVolume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'source_volume_id') - self.source_volume_id = attributes[:'source_volume_id'] - end - - if attributes.key?(:'cloned_volume_id') - self.cloned_volume_id = attributes[:'cloned_volume_id'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - source_volume_id == o.source_volume_id && - cloned_volume_id == o.cloned_volume_id - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [source_volume_id, cloned_volume_id].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloned_volume_detail.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloned_volume_detail.rb deleted file mode 100644 index be58ae56..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloned_volume_detail.rb +++ /dev/null @@ -1,227 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class ClonedVolumeDetail - attr_accessor :source - - attr_accessor :clone - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'source' => :'source', - :'clone' => :'clone' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'source' => :'VolumeInfo', - :'clone' => :'VolumeInfo' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::ClonedVolumeDetail` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::ClonedVolumeDetail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'source') - self.source = attributes[:'source'] - end - - if attributes.key?(:'clone') - self.clone = attributes[:'clone'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @source.nil? - invalid_properties.push('invalid value for "source", source cannot be nil.') - end - - if @clone.nil? - invalid_properties.push('invalid value for "clone", clone cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @source.nil? - return false if @clone.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - source == o.source && - clone == o.clone - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [source, clone].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection.rb deleted file mode 100644 index 09dca26c..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection.rb +++ /dev/null @@ -1,379 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnection - # cloud connection ID - attr_accessor :cloud_connection_id - - # name of the cloud connection - attr_accessor :name - - # speed of the cloud connection (speed in megabits per second) - attr_accessor :speed - - # enable global routing for this cloud connection (default=false) - attr_accessor :global_routing - - attr_accessor :classic - - attr_accessor :vpc - - # creation date - attr_accessor :creation_date - - # user IP address - attr_accessor :user_ip_address - - # IBM IP address - attr_accessor :ibm_ip_address - - # port - attr_accessor :port - - # link status - attr_accessor :link_status - - # metered - attr_accessor :metered - - # Network References - attr_accessor :networks - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'cloud_connection_id' => :'cloudConnectionID', - :'name' => :'name', - :'speed' => :'speed', - :'global_routing' => :'globalRouting', - :'classic' => :'classic', - :'vpc' => :'vpc', - :'creation_date' => :'creationDate', - :'user_ip_address' => :'userIPAddress', - :'ibm_ip_address' => :'ibmIPAddress', - :'port' => :'port', - :'link_status' => :'linkStatus', - :'metered' => :'metered', - :'networks' => :'networks' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'cloud_connection_id' => :'String', - :'name' => :'String', - :'speed' => :'Integer', - :'global_routing' => :'Boolean', - :'classic' => :'CloudConnectionEndpointClassic', - :'vpc' => :'CloudConnectionEndpointVPC', - :'creation_date' => :'DateTime', - :'user_ip_address' => :'String', - :'ibm_ip_address' => :'String', - :'port' => :'Integer', - :'link_status' => :'String', - :'metered' => :'Boolean', - :'networks' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnection` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'cloud_connection_id') - self.cloud_connection_id = attributes[:'cloud_connection_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'speed') - self.speed = attributes[:'speed'] - end - - if attributes.key?(:'global_routing') - self.global_routing = attributes[:'global_routing'] - end - - if attributes.key?(:'classic') - self.classic = attributes[:'classic'] - end - - if attributes.key?(:'vpc') - self.vpc = attributes[:'vpc'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'user_ip_address') - self.user_ip_address = attributes[:'user_ip_address'] - end - - if attributes.key?(:'ibm_ip_address') - self.ibm_ip_address = attributes[:'ibm_ip_address'] - end - - if attributes.key?(:'port') - self.port = attributes[:'port'] - end - - if attributes.key?(:'link_status') - self.link_status = attributes[:'link_status'] - end - - if attributes.key?(:'metered') - self.metered = attributes[:'metered'] - end - - if attributes.key?(:'networks') - if (value = attributes[:'networks']).is_a?(Array) - self.networks = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @cloud_connection_id.nil? - invalid_properties.push('invalid value for "cloud_connection_id", cloud_connection_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @speed.nil? - invalid_properties.push('invalid value for "speed", speed cannot be nil.') - end - - if @global_routing.nil? - invalid_properties.push('invalid value for "global_routing", global_routing cannot be nil.') - end - - if @creation_date.nil? - invalid_properties.push('invalid value for "creation_date", creation_date cannot be nil.') - end - - if @user_ip_address.nil? - invalid_properties.push('invalid value for "user_ip_address", user_ip_address cannot be nil.') - end - - if @ibm_ip_address.nil? - invalid_properties.push('invalid value for "ibm_ip_address", ibm_ip_address cannot be nil.') - end - - if @port.nil? - invalid_properties.push('invalid value for "port", port cannot be nil.') - end - - if @link_status.nil? - invalid_properties.push('invalid value for "link_status", link_status cannot be nil.') - end - - if @metered.nil? - invalid_properties.push('invalid value for "metered", metered cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @cloud_connection_id.nil? - return false if @name.nil? - return false if @speed.nil? - return false if @global_routing.nil? - return false if @creation_date.nil? - return false if @user_ip_address.nil? - return false if @ibm_ip_address.nil? - return false if @port.nil? - return false if @link_status.nil? - return false if @metered.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - cloud_connection_id == o.cloud_connection_id && - name == o.name && - speed == o.speed && - global_routing == o.global_routing && - classic == o.classic && - vpc == o.vpc && - creation_date == o.creation_date && - user_ip_address == o.user_ip_address && - ibm_ip_address == o.ibm_ip_address && - port == o.port && - link_status == o.link_status && - metered == o.metered && - networks == o.networks - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [cloud_connection_id, name, speed, global_routing, classic, vpc, creation_date, user_ip_address, ibm_ip_address, port, link_status, metered, networks].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_create.rb deleted file mode 100644 index ea6efc5b..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_create.rb +++ /dev/null @@ -1,249 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionCreate - # name of the cloud connection - attr_accessor :name - - # speed of the cloud connection (speed in megabits per second) - attr_accessor :speed - - # enable global routing for this cloud connection (default=false) - attr_accessor :global_routing - - # enable metered for this cloud connection (default=false) - attr_accessor :metered - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'speed' => :'speed', - :'global_routing' => :'globalRouting', - :'metered' => :'metered' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'speed' => :'Integer', - :'global_routing' => :'Boolean', - :'metered' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnectionCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnectionCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'speed') - self.speed = attributes[:'speed'] - end - - if attributes.key?(:'global_routing') - self.global_routing = attributes[:'global_routing'] - end - - if attributes.key?(:'metered') - self.metered = attributes[:'metered'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @speed.nil? - invalid_properties.push('invalid value for "speed", speed cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - return false if @speed.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - speed == o.speed && - global_routing == o.global_routing && - metered == o.metered - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, speed, global_routing, metered].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_classic.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_classic.rb deleted file mode 100644 index 3e02e6e8..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_classic.rb +++ /dev/null @@ -1,218 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionEndpointClassic - # enable classic endpoint destination (default=false) - attr_accessor :enabled - - attr_accessor :gre - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'enabled' => :'enabled', - :'gre' => :'gre' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'enabled' => :'Boolean', - :'gre' => :'CloudConnectionEndpointGRE' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnectionEndpointClassic` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnectionEndpointClassic`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'enabled') - self.enabled = attributes[:'enabled'] - end - - if attributes.key?(:'gre') - self.gre = attributes[:'gre'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - enabled == o.enabled && - gre == o.gre - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [enabled, gre].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_gre.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_gre.rb deleted file mode 100644 index ffa00f3b..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_gre.rb +++ /dev/null @@ -1,221 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionEndpointGRE - # enable gre for this cloud connection (default=false) - attr_accessor :enabled - - # gre tunnels configured - attr_accessor :tunnels - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'enabled' => :'enabled', - :'tunnels' => :'tunnels' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'enabled' => :'Boolean', - :'tunnels' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnectionEndpointGRE` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnectionEndpointGRE`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'enabled') - self.enabled = attributes[:'enabled'] - end - - if attributes.key?(:'tunnels') - if (value = attributes[:'tunnels']).is_a?(Array) - self.tunnels = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - enabled == o.enabled && - tunnels == o.tunnels - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [enabled, tunnels].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_vpc.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_vpc.rb deleted file mode 100644 index 2873fba0..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_endpoint_vpc.rb +++ /dev/null @@ -1,221 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionEndpointVPC - # enable vpc for this cloud connection (default=false) - attr_accessor :enabled - - # vpc connections - attr_accessor :vpcs - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'enabled' => :'enabled', - :'vpcs' => :'vpcs' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'enabled' => :'Boolean', - :'vpcs' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnectionEndpointVPC` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnectionEndpointVPC`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'enabled') - self.enabled = attributes[:'enabled'] - end - - if attributes.key?(:'vpcs') - if (value = attributes[:'vpcs']).is_a?(Array) - self.vpcs = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - enabled == o.enabled && - vpcs == o.vpcs - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [enabled, vpcs].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_gre_tunnel.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_gre_tunnel.rb deleted file mode 100644 index 48b8f8b1..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_gre_tunnel.rb +++ /dev/null @@ -1,239 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionGRETunnel - # gre auto-assigned source IP address - attr_accessor :source_ip_address - - # gre destination IP address - attr_accessor :dest_ip_address - - # gre network in CIDR notation (192.168.0.0/24) - attr_accessor :cidr - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'source_ip_address' => :'sourceIPAddress', - :'dest_ip_address' => :'destIPAddress', - :'cidr' => :'cidr' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'source_ip_address' => :'String', - :'dest_ip_address' => :'String', - :'cidr' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnectionGRETunnel` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnectionGRETunnel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'source_ip_address') - self.source_ip_address = attributes[:'source_ip_address'] - end - - if attributes.key?(:'dest_ip_address') - self.dest_ip_address = attributes[:'dest_ip_address'] - end - - if attributes.key?(:'cidr') - self.cidr = attributes[:'cidr'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @dest_ip_address.nil? - invalid_properties.push('invalid value for "dest_ip_address", dest_ip_address cannot be nil.') - end - - if @cidr.nil? - invalid_properties.push('invalid value for "cidr", cidr cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @dest_ip_address.nil? - return false if @cidr.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - source_ip_address == o.source_ip_address && - dest_ip_address == o.dest_ip_address && - cidr == o.cidr - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [source_ip_address, dest_ip_address, cidr].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_speed.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_speed.rb deleted file mode 100644 index dd6d0676..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_speed.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionSpeed - N50 = 50.freeze - N100 = 100.freeze - N200 = 200.freeze - N500 = 500.freeze - N1000 = 1000.freeze - N2000 = 2000.freeze - N5000 = 5000.freeze - N10000 = 10000.freeze - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def self.build_from_hash(value) - new.build_from_hash(value) - end - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - constantValues = CloudConnectionSpeed.constants.select { |c| CloudConnectionSpeed::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #CloudConnectionSpeed" if constantValues.empty? - value - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_update.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_update.rb deleted file mode 100644 index b5687336..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_update.rb +++ /dev/null @@ -1,257 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionUpdate - # name of the cloud connection - attr_accessor :name - - # speed of the cloud connection (speed in megabits per second) - attr_accessor :speed - - # enable global routing for this cloud connection (default=false) - attr_accessor :global_routing - - # enable metered for this cloud connection (default=false) - attr_accessor :metered - - attr_accessor :classic - - attr_accessor :vpc - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'speed' => :'speed', - :'global_routing' => :'globalRouting', - :'metered' => :'metered', - :'classic' => :'classic', - :'vpc' => :'vpc' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'speed' => :'Integer', - :'global_routing' => :'Boolean', - :'metered' => :'Boolean', - :'classic' => :'CloudConnectionEndpointClassic', - :'vpc' => :'CloudConnectionEndpointVPC' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnectionUpdate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnectionUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'speed') - self.speed = attributes[:'speed'] - end - - if attributes.key?(:'global_routing') - self.global_routing = attributes[:'global_routing'] - end - - if attributes.key?(:'metered') - self.metered = attributes[:'metered'] - end - - if attributes.key?(:'classic') - self.classic = attributes[:'classic'] - end - - if attributes.key?(:'vpc') - self.vpc = attributes[:'vpc'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - speed == o.speed && - global_routing == o.global_routing && - metered == o.metered && - classic == o.classic && - vpc == o.vpc - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, speed, global_routing, metered, classic, vpc].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds.rb deleted file mode 100644 index cec2da97..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionVirtualPrivateClouds - # list of available virtual private clouds - attr_accessor :virtual_private_clouds - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'virtual_private_clouds' => :'virtualPrivateClouds' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'virtual_private_clouds' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnectionVirtualPrivateClouds` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnectionVirtualPrivateClouds`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'virtual_private_clouds') - if (value = attributes[:'virtual_private_clouds']).is_a?(Array) - self.virtual_private_clouds = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @virtual_private_clouds.nil? - invalid_properties.push('invalid value for "virtual_private_clouds", virtual_private_clouds cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @virtual_private_clouds.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - virtual_private_clouds == o.virtual_private_clouds - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [virtual_private_clouds].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds_virtual_private_clouds.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds_virtual_private_clouds.rb deleted file mode 100644 index d706b4f6..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_virtual_private_clouds_virtual_private_clouds.rb +++ /dev/null @@ -1,259 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds - # indicates if vpc uses classic architecture - attr_accessor :classic_access - - # CRN of the specific service - attr_accessor :vpc_id - - # name for the vpc - attr_accessor :name - - # status of this vpc - attr_accessor :status - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'classic_access' => :'classicAccess', - :'vpc_id' => :'vpcID', - :'name' => :'name', - :'status' => :'status' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'classic_access' => :'Boolean', - :'vpc_id' => :'String', - :'name' => :'String', - :'status' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'classic_access') - self.classic_access = attributes[:'classic_access'] - end - - if attributes.key?(:'vpc_id') - self.vpc_id = attributes[:'vpc_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @classic_access.nil? - invalid_properties.push('invalid value for "classic_access", classic_access cannot be nil.') - end - - if @vpc_id.nil? - invalid_properties.push('invalid value for "vpc_id", vpc_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @classic_access.nil? - return false if @vpc_id.nil? - return false if @name.nil? - return false if @status.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - classic_access == o.classic_access && - vpc_id == o.vpc_id && - name == o.name && - status == o.status - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [classic_access, vpc_id, name, status].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_vpc.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_vpc.rb deleted file mode 100644 index 0c904f9e..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connection_vpc.rb +++ /dev/null @@ -1,224 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnectionVPC - # CRN of the specific service - attr_accessor :vpc_id - - # vpc name - attr_accessor :name - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'vpc_id' => :'vpcID', - :'name' => :'name' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'vpc_id' => :'String', - :'name' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnectionVPC` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnectionVPC`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'vpc_id') - self.vpc_id = attributes[:'vpc_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @vpc_id.nil? - invalid_properties.push('invalid value for "vpc_id", vpc_id cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @vpc_id.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - vpc_id == o.vpc_id && - name == o.name - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [vpc_id, name].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connections.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connections.rb deleted file mode 100644 index 9a7c50a3..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_connections.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudConnections - # Cloud Connections - attr_accessor :cloud_connections - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'cloud_connections' => :'cloudConnections' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'cloud_connections' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudConnections` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudConnections`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'cloud_connections') - if (value = attributes[:'cloud_connections']).is_a?(Array) - self.cloud_connections = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @cloud_connections.nil? - invalid_properties.push('invalid value for "cloud_connections", cloud_connections cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @cloud_connections.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - cloud_connections == o.cloud_connections - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [cloud_connections].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance.rb deleted file mode 100644 index 67997c5a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance.rb +++ /dev/null @@ -1,361 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudInstance - # Cloud Instance ID - attr_accessor :cloud_instance_id - - # Cloud Instance Name - attr_accessor :name - - # The tenant ID that owns this cloud instance - attr_accessor :tenant_id - - # The open stack ID that controls this cloud instance - attr_accessor :openstack_id - - # The region the cloud instance lives - attr_accessor :region - - # Indicates if the cloud instance is enabled - attr_accessor :enabled - - # Indicates if the cloud instance is initialized and ready for use - attr_accessor :initialized - - attr_accessor :limits - - attr_accessor :usage - - # Cloud Instance Capabilities - attr_accessor :capabilities - - # PVM instances owned by the Cloud Instance - attr_accessor :pvm_instances - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'cloud_instance_id' => :'cloudInstanceID', - :'name' => :'name', - :'tenant_id' => :'tenantID', - :'openstack_id' => :'openstackID', - :'region' => :'region', - :'enabled' => :'enabled', - :'initialized' => :'initialized', - :'limits' => :'limits', - :'usage' => :'usage', - :'capabilities' => :'capabilities', - :'pvm_instances' => :'pvmInstances' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'cloud_instance_id' => :'String', - :'name' => :'String', - :'tenant_id' => :'String', - :'openstack_id' => :'String', - :'region' => :'String', - :'enabled' => :'Boolean', - :'initialized' => :'Boolean', - :'limits' => :'CloudInstanceUsageLimits', - :'usage' => :'CloudInstanceUsageLimits', - :'capabilities' => :'Array', - :'pvm_instances' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudInstance` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudInstance`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'cloud_instance_id') - self.cloud_instance_id = attributes[:'cloud_instance_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'tenant_id') - self.tenant_id = attributes[:'tenant_id'] - end - - if attributes.key?(:'openstack_id') - self.openstack_id = attributes[:'openstack_id'] - end - - if attributes.key?(:'region') - self.region = attributes[:'region'] - end - - if attributes.key?(:'enabled') - self.enabled = attributes[:'enabled'] - end - - if attributes.key?(:'initialized') - self.initialized = attributes[:'initialized'] - end - - if attributes.key?(:'limits') - self.limits = attributes[:'limits'] - end - - if attributes.key?(:'usage') - self.usage = attributes[:'usage'] - end - - if attributes.key?(:'capabilities') - if (value = attributes[:'capabilities']).is_a?(Array) - self.capabilities = value - end - end - - if attributes.key?(:'pvm_instances') - if (value = attributes[:'pvm_instances']).is_a?(Array) - self.pvm_instances = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @cloud_instance_id.nil? - invalid_properties.push('invalid value for "cloud_instance_id", cloud_instance_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @tenant_id.nil? - invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') - end - - if @openstack_id.nil? - invalid_properties.push('invalid value for "openstack_id", openstack_id cannot be nil.') - end - - if @region.nil? - invalid_properties.push('invalid value for "region", region cannot be nil.') - end - - if @enabled.nil? - invalid_properties.push('invalid value for "enabled", enabled cannot be nil.') - end - - if @initialized.nil? - invalid_properties.push('invalid value for "initialized", initialized cannot be nil.') - end - - if @limits.nil? - invalid_properties.push('invalid value for "limits", limits cannot be nil.') - end - - if @usage.nil? - invalid_properties.push('invalid value for "usage", usage cannot be nil.') - end - - if @pvm_instances.nil? - invalid_properties.push('invalid value for "pvm_instances", pvm_instances cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @cloud_instance_id.nil? - return false if @name.nil? - return false if @tenant_id.nil? - return false if @openstack_id.nil? - return false if @region.nil? - return false if @enabled.nil? - return false if @initialized.nil? - return false if @limits.nil? - return false if @usage.nil? - return false if @pvm_instances.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - cloud_instance_id == o.cloud_instance_id && - name == o.name && - tenant_id == o.tenant_id && - openstack_id == o.openstack_id && - region == o.region && - enabled == o.enabled && - initialized == o.initialized && - limits == o.limits && - usage == o.usage && - capabilities == o.capabilities && - pvm_instances == o.pvm_instances - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [cloud_instance_id, name, tenant_id, openstack_id, region, enabled, initialized, limits, usage, capabilities, pvm_instances].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_create.rb deleted file mode 100644 index 38585b08..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_create.rb +++ /dev/null @@ -1,294 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudInstanceCreate - # The tenant ID that owns this cloud instance - attr_accessor :tenant_id - - # The region the cloud instance lives - attr_accessor :region - - # Number of processors allowed - attr_accessor :processors - - # Number of processor units allowed - attr_accessor :proc_units - - # Amount of memory allowed - attr_accessor :memory - - # Number of power instances allowed - attr_accessor :instances - - # Amount of storage allowed (TB) - attr_accessor :storage - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'tenant_id' => :'tenantID', - :'region' => :'region', - :'processors' => :'processors', - :'proc_units' => :'procUnits', - :'memory' => :'memory', - :'instances' => :'instances', - :'storage' => :'storage' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'tenant_id' => :'String', - :'region' => :'String', - :'processors' => :'Float', - :'proc_units' => :'Float', - :'memory' => :'Float', - :'instances' => :'Float', - :'storage' => :'Float' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudInstanceCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudInstanceCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'tenant_id') - self.tenant_id = attributes[:'tenant_id'] - end - - if attributes.key?(:'region') - self.region = attributes[:'region'] - end - - if attributes.key?(:'processors') - self.processors = attributes[:'processors'] - end - - if attributes.key?(:'proc_units') - self.proc_units = attributes[:'proc_units'] - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'instances') - self.instances = attributes[:'instances'] - end - - if attributes.key?(:'storage') - self.storage = attributes[:'storage'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @tenant_id.nil? - invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') - end - - if @region.nil? - invalid_properties.push('invalid value for "region", region cannot be nil.') - end - - if @processors.nil? - invalid_properties.push('invalid value for "processors", processors cannot be nil.') - end - - if @proc_units.nil? - invalid_properties.push('invalid value for "proc_units", proc_units cannot be nil.') - end - - if @memory.nil? - invalid_properties.push('invalid value for "memory", memory cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @tenant_id.nil? - return false if @region.nil? - return false if @processors.nil? - return false if @proc_units.nil? - return false if @memory.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - tenant_id == o.tenant_id && - region == o.region && - processors == o.processors && - proc_units == o.proc_units && - memory == o.memory && - instances == o.instances && - storage == o.storage - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [tenant_id, region, processors, proc_units, memory, instances, storage].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_reference.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_reference.rb deleted file mode 100644 index 8e21ef81..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_reference.rb +++ /dev/null @@ -1,315 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudInstanceReference - # Cloud Instance ID - attr_accessor :cloud_instance_id - - # Cloud Instance Name - attr_accessor :name - - # The region the cloud instance lives - attr_accessor :region - - # Indicates if the cloud instance is enabled - attr_accessor :enabled - - # Indicates if the cloud instance is initialized and ready for use - attr_accessor :initialized - - attr_accessor :limits - - # Cloud Instance Capabilities - attr_accessor :capabilities - - # Link to Cloud Instance resource - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'cloud_instance_id' => :'cloudInstanceID', - :'name' => :'name', - :'region' => :'region', - :'enabled' => :'enabled', - :'initialized' => :'initialized', - :'limits' => :'limits', - :'capabilities' => :'capabilities', - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'cloud_instance_id' => :'String', - :'name' => :'String', - :'region' => :'String', - :'enabled' => :'Boolean', - :'initialized' => :'Boolean', - :'limits' => :'CloudInstanceUsageLimits', - :'capabilities' => :'Array', - :'href' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudInstanceReference` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudInstanceReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'cloud_instance_id') - self.cloud_instance_id = attributes[:'cloud_instance_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'region') - self.region = attributes[:'region'] - end - - if attributes.key?(:'enabled') - self.enabled = attributes[:'enabled'] - end - - if attributes.key?(:'initialized') - self.initialized = attributes[:'initialized'] - end - - if attributes.key?(:'limits') - self.limits = attributes[:'limits'] - end - - if attributes.key?(:'capabilities') - if (value = attributes[:'capabilities']).is_a?(Array) - self.capabilities = value - end - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @cloud_instance_id.nil? - invalid_properties.push('invalid value for "cloud_instance_id", cloud_instance_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @region.nil? - invalid_properties.push('invalid value for "region", region cannot be nil.') - end - - if @enabled.nil? - invalid_properties.push('invalid value for "enabled", enabled cannot be nil.') - end - - if @initialized.nil? - invalid_properties.push('invalid value for "initialized", initialized cannot be nil.') - end - - if @limits.nil? - invalid_properties.push('invalid value for "limits", limits cannot be nil.') - end - - if @href.nil? - invalid_properties.push('invalid value for "href", href cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @cloud_instance_id.nil? - return false if @name.nil? - return false if @region.nil? - return false if @enabled.nil? - return false if @initialized.nil? - return false if @limits.nil? - return false if @href.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - cloud_instance_id == o.cloud_instance_id && - name == o.name && - region == o.region && - enabled == o.enabled && - initialized == o.initialized && - limits == o.limits && - capabilities == o.capabilities && - href == o.href - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [cloud_instance_id, name, region, enabled, initialized, limits, capabilities, href].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_update.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_update.rb deleted file mode 100644 index c74329ac..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_update.rb +++ /dev/null @@ -1,249 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudInstanceUpdate - # Number of processors allowed - attr_accessor :processors - - # Number of processor units allowed - attr_accessor :proc_units - - # Amount of memory allowed - attr_accessor :memory - - # Number of power instances allowed - attr_accessor :instances - - # Amount of storage allowed (TB) - attr_accessor :storage - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'processors' => :'processors', - :'proc_units' => :'procUnits', - :'memory' => :'memory', - :'instances' => :'instances', - :'storage' => :'storage' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'processors' => :'Float', - :'proc_units' => :'Float', - :'memory' => :'Float', - :'instances' => :'Float', - :'storage' => :'Float' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudInstanceUpdate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudInstanceUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'processors') - self.processors = attributes[:'processors'] - end - - if attributes.key?(:'proc_units') - self.proc_units = attributes[:'proc_units'] - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'instances') - self.instances = attributes[:'instances'] - end - - if attributes.key?(:'storage') - self.storage = attributes[:'storage'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - processors == o.processors && - proc_units == o.proc_units && - memory == o.memory && - instances == o.instances && - storage == o.storage - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [processors, proc_units, memory, instances, storage].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_usage_limits.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_usage_limits.rb deleted file mode 100644 index f6a41da3..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/cloud_instance_usage_limits.rb +++ /dev/null @@ -1,334 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CloudInstanceUsageLimits - # Number of power instances allowed - attr_accessor :instances - - # Amount of memory allowed - attr_accessor :memory - - # Number of processor units allowed - attr_accessor :proc_units - - # Number of processors allowed - attr_accessor :processors - - # Amount of storage allowed (TB) - attr_accessor :storage - - # Maximum memory (in GB) per PVMInstance - attr_accessor :instance_memory - - # Maximum proc units per PVMInstance - attr_accessor :instance_proc_units - - # Amount of peering networks allowed - attr_accessor :peering_networks - - # Maximum network bandwidth to GCP Mbps - attr_accessor :peering_bandwidth - - # Amount of SSD storage allowed (TB) - attr_accessor :storage_ssd - - # Amount of standard (HDD) storage allowed (TB) - attr_accessor :storage_standard - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'instances' => :'instances', - :'memory' => :'memory', - :'proc_units' => :'procUnits', - :'processors' => :'processors', - :'storage' => :'storage', - :'instance_memory' => :'instanceMemory', - :'instance_proc_units' => :'instanceProcUnits', - :'peering_networks' => :'peeringNetworks', - :'peering_bandwidth' => :'peeringBandwidth', - :'storage_ssd' => :'storageSSD', - :'storage_standard' => :'storageStandard' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'instances' => :'Float', - :'memory' => :'Float', - :'proc_units' => :'Float', - :'processors' => :'Float', - :'storage' => :'Float', - :'instance_memory' => :'Float', - :'instance_proc_units' => :'Float', - :'peering_networks' => :'Integer', - :'peering_bandwidth' => :'Integer', - :'storage_ssd' => :'Float', - :'storage_standard' => :'Float' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CloudInstanceUsageLimits` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CloudInstanceUsageLimits`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'instances') - self.instances = attributes[:'instances'] - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'proc_units') - self.proc_units = attributes[:'proc_units'] - end - - if attributes.key?(:'processors') - self.processors = attributes[:'processors'] - end - - if attributes.key?(:'storage') - self.storage = attributes[:'storage'] - end - - if attributes.key?(:'instance_memory') - self.instance_memory = attributes[:'instance_memory'] - end - - if attributes.key?(:'instance_proc_units') - self.instance_proc_units = attributes[:'instance_proc_units'] - end - - if attributes.key?(:'peering_networks') - self.peering_networks = attributes[:'peering_networks'] - end - - if attributes.key?(:'peering_bandwidth') - self.peering_bandwidth = attributes[:'peering_bandwidth'] - end - - if attributes.key?(:'storage_ssd') - self.storage_ssd = attributes[:'storage_ssd'] - end - - if attributes.key?(:'storage_standard') - self.storage_standard = attributes[:'storage_standard'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @instances.nil? - invalid_properties.push('invalid value for "instances", instances cannot be nil.') - end - - if @memory.nil? - invalid_properties.push('invalid value for "memory", memory cannot be nil.') - end - - if @proc_units.nil? - invalid_properties.push('invalid value for "proc_units", proc_units cannot be nil.') - end - - if @processors.nil? - invalid_properties.push('invalid value for "processors", processors cannot be nil.') - end - - if @storage.nil? - invalid_properties.push('invalid value for "storage", storage cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @instances.nil? - return false if @memory.nil? - return false if @proc_units.nil? - return false if @processors.nil? - return false if @storage.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - instances == o.instances && - memory == o.memory && - proc_units == o.proc_units && - processors == o.processors && - storage == o.storage && - instance_memory == o.instance_memory && - instance_proc_units == o.instance_proc_units && - peering_networks == o.peering_networks && - peering_bandwidth == o.peering_bandwidth && - storage_ssd == o.storage_ssd && - storage_standard == o.storage_standard - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [instances, memory, proc_units, processors, storage, instance_memory, instance_proc_units, peering_networks, peering_bandwidth, storage_ssd, storage_standard].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/create_data_volume.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/create_data_volume.rb deleted file mode 100644 index f8347f32..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/create_data_volume.rb +++ /dev/null @@ -1,313 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CreateDataVolume - # Type of disk, required if affinityPolicy is not provided, otherwise ignored - attr_accessor :disk_type - - # Volume Name - attr_accessor :name - - # Volume Size (GB) - attr_accessor :size - - # Indicates if the volume is shareable between VMs - attr_accessor :shareable - - # Affinity policy for data volume being created; requires affinityPVMInstance or affinityVolume to be specified; - attr_accessor :affinity_policy - - # Volume (ID or Name) to base volume affinity policy against; required if affinityPolicy is provided and affinityPVMInstance is not provided - attr_accessor :affinity_volume - - # PVM Instance (ID or Name) to base volume affinity policy against; required if affinityPolicy is provided and affinityVolume is not provided - attr_accessor :affinity_pvm_instance - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'disk_type' => :'diskType', - :'name' => :'name', - :'size' => :'size', - :'shareable' => :'shareable', - :'affinity_policy' => :'affinityPolicy', - :'affinity_volume' => :'affinityVolume', - :'affinity_pvm_instance' => :'affinityPVMInstance' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'disk_type' => :'String', - :'name' => :'String', - :'size' => :'Float', - :'shareable' => :'Boolean', - :'affinity_policy' => :'String', - :'affinity_volume' => :'String', - :'affinity_pvm_instance' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CreateDataVolume` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CreateDataVolume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'disk_type') - self.disk_type = attributes[:'disk_type'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'size') - self.size = attributes[:'size'] - end - - if attributes.key?(:'shareable') - self.shareable = attributes[:'shareable'] - end - - if attributes.key?(:'affinity_policy') - self.affinity_policy = attributes[:'affinity_policy'] - end - - if attributes.key?(:'affinity_volume') - self.affinity_volume = attributes[:'affinity_volume'] - end - - if attributes.key?(:'affinity_pvm_instance') - self.affinity_pvm_instance = attributes[:'affinity_pvm_instance'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @size.nil? - invalid_properties.push('invalid value for "size", size cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - return false if @size.nil? - affinity_policy_validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - return false unless affinity_policy_validator.valid?(@affinity_policy) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] affinity_policy Object to be assigned - def affinity_policy=(affinity_policy) - validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - unless validator.valid?(affinity_policy) - fail ArgumentError, "invalid value for \"affinity_policy\", must be one of #{validator.allowable_values}." - end - @affinity_policy = affinity_policy - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - disk_type == o.disk_type && - name == o.name && - size == o.size && - shareable == o.shareable && - affinity_policy == o.affinity_policy && - affinity_volume == o.affinity_volume && - affinity_pvm_instance == o.affinity_pvm_instance - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [disk_type, name, size, shareable, affinity_policy, affinity_volume, affinity_pvm_instance].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/create_image.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/create_image.rb deleted file mode 100644 index 4422ab20..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/create_image.rb +++ /dev/null @@ -1,360 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class CreateImage - # 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. - attr_accessor :source - - # Image ID of existing stock image; required for copy image - attr_accessor :image_id - - # 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. - attr_accessor :image_name - - # (deprecated - replaced by region, imageFilename and bucketName) Path to image starting with service endpoint and ending with image filename - attr_accessor :image_path - - # Cloud Storage Region; only required to access IBM Cloud Storage - attr_accessor :region - - # Cloud Storage image filename; required for import image - attr_accessor :image_filename - - # Cloud Storage bucket name; bucket-name[/optional/folder]; required for import image - attr_accessor :bucket_name - - # Cloud Storage access key; required for import image - attr_accessor :access_key - - # Cloud Storage secret key; required for import image - attr_accessor :secret_key - - # Image OS Type, required if importing a raw image; raw images can only be imported using the command line interface - attr_accessor :os_type - - # Type of Disk - attr_accessor :disk_type - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'source' => :'source', - :'image_id' => :'imageID', - :'image_name' => :'imageName', - :'image_path' => :'imagePath', - :'region' => :'region', - :'image_filename' => :'imageFilename', - :'bucket_name' => :'bucketName', - :'access_key' => :'accessKey', - :'secret_key' => :'secretKey', - :'os_type' => :'osType', - :'disk_type' => :'diskType' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'source' => :'String', - :'image_id' => :'String', - :'image_name' => :'String', - :'image_path' => :'String', - :'region' => :'String', - :'image_filename' => :'String', - :'bucket_name' => :'String', - :'access_key' => :'String', - :'secret_key' => :'String', - :'os_type' => :'String', - :'disk_type' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::CreateImage` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::CreateImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'source') - self.source = attributes[:'source'] - end - - if attributes.key?(:'image_id') - self.image_id = attributes[:'image_id'] - end - - if attributes.key?(:'image_name') - self.image_name = attributes[:'image_name'] - end - - if attributes.key?(:'image_path') - self.image_path = attributes[:'image_path'] - end - - if attributes.key?(:'region') - self.region = attributes[:'region'] - end - - if attributes.key?(:'image_filename') - self.image_filename = attributes[:'image_filename'] - end - - if attributes.key?(:'bucket_name') - self.bucket_name = attributes[:'bucket_name'] - end - - if attributes.key?(:'access_key') - self.access_key = attributes[:'access_key'] - end - - if attributes.key?(:'secret_key') - self.secret_key = attributes[:'secret_key'] - end - - if attributes.key?(:'os_type') - self.os_type = attributes[:'os_type'] - end - - if attributes.key?(:'disk_type') - self.disk_type = attributes[:'disk_type'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @source.nil? - invalid_properties.push('invalid value for "source", source cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @source.nil? - source_validator = EnumAttributeValidator.new('String', ["root-project", "url"]) - return false unless source_validator.valid?(@source) - os_type_validator = EnumAttributeValidator.new('String', ["aix", "ibmi", "redhat", "sles"]) - return false unless os_type_validator.valid?(@os_type) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] source Object to be assigned - def source=(source) - validator = EnumAttributeValidator.new('String', ["root-project", "url"]) - unless validator.valid?(source) - fail ArgumentError, "invalid value for \"source\", must be one of #{validator.allowable_values}." - end - @source = source - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] os_type Object to be assigned - def os_type=(os_type) - validator = EnumAttributeValidator.new('String', ["aix", "ibmi", "redhat", "sles"]) - unless validator.valid?(os_type) - fail ArgumentError, "invalid value for \"os_type\", must be one of #{validator.allowable_values}." - end - @os_type = os_type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - source == o.source && - image_id == o.image_id && - image_name == o.image_name && - image_path == o.image_path && - region == o.region && - image_filename == o.image_filename && - bucket_name == o.bucket_name && - access_key == o.access_key && - secret_key == o.secret_key && - os_type == o.os_type && - disk_type == o.disk_type - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [source, image_id, image_name, image_path, region, image_filename, bucket_name, access_key, secret_key, os_type, disk_type].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/error.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/error.rb deleted file mode 100644 index b16b9606..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/error.rb +++ /dev/null @@ -1,217 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Error - attr_accessor :error - - attr_accessor :description - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'error' => :'error', - :'description' => :'description' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'error' => :'String', - :'description' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Error` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Error`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'error') - self.error = attributes[:'error'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - error == o.error && - description == o.description - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [error, description].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/event.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/event.rb deleted file mode 100644 index 58d3a57c..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/event.rb +++ /dev/null @@ -1,357 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Event - # ID of the Activity - attr_accessor :event_id - - # Time of activity in ISO 8601 - RFC3339 - attr_accessor :time - - # Time of activity in unix epoch - attr_accessor :timestamp - - attr_accessor :user - - # Level of the event (notice, info, warning, error) - attr_accessor :level - - # Type of resource for this event - attr_accessor :resource - - # Type of action for this event - attr_accessor :action - - # The (translated) message of the event - attr_accessor :message - - # Any metadata associated with the event - attr_accessor :metadata - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'event_id' => :'eventID', - :'time' => :'time', - :'timestamp' => :'timestamp', - :'user' => :'user', - :'level' => :'level', - :'resource' => :'resource', - :'action' => :'action', - :'message' => :'message', - :'metadata' => :'metadata' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'event_id' => :'String', - :'time' => :'DateTime', - :'timestamp' => :'Integer', - :'user' => :'EventUser', - :'level' => :'String', - :'resource' => :'String', - :'action' => :'String', - :'message' => :'String', - :'metadata' => :'Object' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Event` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Event`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'event_id') - self.event_id = attributes[:'event_id'] - end - - if attributes.key?(:'time') - self.time = attributes[:'time'] - end - - if attributes.key?(:'timestamp') - self.timestamp = attributes[:'timestamp'] - end - - if attributes.key?(:'user') - self.user = attributes[:'user'] - end - - if attributes.key?(:'level') - self.level = attributes[:'level'] - end - - if attributes.key?(:'resource') - self.resource = attributes[:'resource'] - end - - if attributes.key?(:'action') - self.action = attributes[:'action'] - end - - if attributes.key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.key?(:'metadata') - self.metadata = attributes[:'metadata'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @event_id.nil? - invalid_properties.push('invalid value for "event_id", event_id cannot be nil.') - end - - if @time.nil? - invalid_properties.push('invalid value for "time", time cannot be nil.') - end - - if @timestamp.nil? - invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.') - end - - if @level.nil? - invalid_properties.push('invalid value for "level", level cannot be nil.') - end - - if @resource.nil? - invalid_properties.push('invalid value for "resource", resource cannot be nil.') - end - - if @action.nil? - invalid_properties.push('invalid value for "action", action cannot be nil.') - end - - if @message.nil? - invalid_properties.push('invalid value for "message", message cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @event_id.nil? - return false if @time.nil? - return false if @timestamp.nil? - return false if @level.nil? - level_validator = EnumAttributeValidator.new('String', ["notice", "info", "warning", "error"]) - return false unless level_validator.valid?(@level) - return false if @resource.nil? - return false if @action.nil? - return false if @message.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] level Object to be assigned - def level=(level) - validator = EnumAttributeValidator.new('String', ["notice", "info", "warning", "error"]) - unless validator.valid?(level) - fail ArgumentError, "invalid value for \"level\", must be one of #{validator.allowable_values}." - end - @level = level - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - event_id == o.event_id && - time == o.time && - timestamp == o.timestamp && - user == o.user && - level == o.level && - resource == o.resource && - action == o.action && - message == o.message && - metadata == o.metadata - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [event_id, time, timestamp, user, level, resource, action, message, metadata].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/event_user.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/event_user.rb deleted file mode 100644 index 5bb08c15..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/event_user.rb +++ /dev/null @@ -1,234 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class EventUser - # ID of user who created/caused the event - attr_accessor :user_id - - # Name of the User - attr_accessor :name - - # Email of the User - attr_accessor :email - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'user_id' => :'userID', - :'name' => :'name', - :'email' => :'email' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'user_id' => :'String', - :'name' => :'String', - :'email' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::EventUser` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::EventUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'user_id') - self.user_id = attributes[:'user_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'email') - self.email = attributes[:'email'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @user_id.nil? - invalid_properties.push('invalid value for "user_id", user_id cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @user_id.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - user_id == o.user_id && - name == o.name && - email == o.email - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [user_id, name, email].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/events.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/events.rb deleted file mode 100644 index 460dd33a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/events.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Events - # Events - attr_accessor :events - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'events' => :'events' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'events' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Events` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Events`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'events') - if (value = attributes[:'events']).is_a?(Array) - self.events = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @events.nil? - invalid_properties.push('invalid value for "events", events cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @events.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - events == o.events - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [events].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/export_image.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/export_image.rb deleted file mode 100644 index e60c1b01..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/export_image.rb +++ /dev/null @@ -1,249 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class ExportImage - # Cloud Object Storage Bucket name - attr_accessor :bucket_name - - # Cloud Object Storage Region; required for IBM COS - attr_accessor :region - - # Cloud Object Storage Access key - attr_accessor :access_key - - # Cloud Object Storage Secret key - attr_accessor :secret_key - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'bucket_name' => :'bucketName', - :'region' => :'region', - :'access_key' => :'accessKey', - :'secret_key' => :'secretKey' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'bucket_name' => :'String', - :'region' => :'String', - :'access_key' => :'String', - :'secret_key' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::ExportImage` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::ExportImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'bucket_name') - self.bucket_name = attributes[:'bucket_name'] - end - - if attributes.key?(:'region') - self.region = attributes[:'region'] - end - - if attributes.key?(:'access_key') - self.access_key = attributes[:'access_key'] - end - - if attributes.key?(:'secret_key') - self.secret_key = attributes[:'secret_key'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @bucket_name.nil? - invalid_properties.push('invalid value for "bucket_name", bucket_name cannot be nil.') - end - - if @access_key.nil? - invalid_properties.push('invalid value for "access_key", access_key cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @bucket_name.nil? - return false if @access_key.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - bucket_name == o.bucket_name && - region == o.region && - access_key == o.access_key && - secret_key == o.secret_key - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [bucket_name, region, access_key, secret_key].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image.rb deleted file mode 100644 index b695a5d9..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image.rb +++ /dev/null @@ -1,366 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Image - # Image ID - attr_accessor :image_id - - # Image Name - attr_accessor :name - - # Image State - attr_accessor :state - - # Description - attr_accessor :description - - # Image Size - attr_accessor :size - - # Storage type for image - attr_accessor :storage_type - - # Storage pool where the image is located - attr_accessor :storage_pool - - # Creation Date - attr_accessor :creation_date - - # Last Update Date - attr_accessor :last_update_date - - attr_accessor :specifications - - # Image Volumes - attr_accessor :volumes - - # List of Servers that have deployed the image - attr_accessor :servers - - attr_accessor :taskref - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'image_id' => :'imageID', - :'name' => :'name', - :'state' => :'state', - :'description' => :'description', - :'size' => :'size', - :'storage_type' => :'storageType', - :'storage_pool' => :'storagePool', - :'creation_date' => :'creationDate', - :'last_update_date' => :'lastUpdateDate', - :'specifications' => :'specifications', - :'volumes' => :'volumes', - :'servers' => :'servers', - :'taskref' => :'taskref' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'image_id' => :'String', - :'name' => :'String', - :'state' => :'String', - :'description' => :'String', - :'size' => :'Float', - :'storage_type' => :'String', - :'storage_pool' => :'String', - :'creation_date' => :'DateTime', - :'last_update_date' => :'DateTime', - :'specifications' => :'ImageSpecifications', - :'volumes' => :'Array', - :'servers' => :'Array', - :'taskref' => :'TaskReference' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Image` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Image`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'image_id') - self.image_id = attributes[:'image_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'state') - self.state = attributes[:'state'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'size') - self.size = attributes[:'size'] - end - - if attributes.key?(:'storage_type') - self.storage_type = attributes[:'storage_type'] - end - - if attributes.key?(:'storage_pool') - self.storage_pool = attributes[:'storage_pool'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'last_update_date') - self.last_update_date = attributes[:'last_update_date'] - end - - if attributes.key?(:'specifications') - self.specifications = attributes[:'specifications'] - end - - if attributes.key?(:'volumes') - if (value = attributes[:'volumes']).is_a?(Array) - self.volumes = value - end - end - - if attributes.key?(:'servers') - if (value = attributes[:'servers']).is_a?(Array) - self.servers = value - end - end - - if attributes.key?(:'taskref') - self.taskref = attributes[:'taskref'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @image_id.nil? - invalid_properties.push('invalid value for "image_id", image_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @size.nil? - invalid_properties.push('invalid value for "size", size cannot be nil.') - end - - if @storage_type.nil? - invalid_properties.push('invalid value for "storage_type", storage_type cannot be nil.') - end - - if @storage_pool.nil? - invalid_properties.push('invalid value for "storage_pool", storage_pool cannot be nil.') - end - - if @creation_date.nil? - invalid_properties.push('invalid value for "creation_date", creation_date cannot be nil.') - end - - if @last_update_date.nil? - invalid_properties.push('invalid value for "last_update_date", last_update_date cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @image_id.nil? - return false if @name.nil? - return false if @size.nil? - return false if @storage_type.nil? - return false if @storage_pool.nil? - return false if @creation_date.nil? - return false if @last_update_date.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - image_id == o.image_id && - name == o.name && - state == o.state && - description == o.description && - size == o.size && - storage_type == o.storage_type && - storage_pool == o.storage_pool && - creation_date == o.creation_date && - last_update_date == o.last_update_date && - specifications == o.specifications && - volumes == o.volumes && - servers == o.servers && - taskref == o.taskref - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [image_id, name, state, description, size, storage_type, storage_pool, creation_date, last_update_date, specifications, volumes, servers, taskref].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_reference.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_reference.rb deleted file mode 100644 index bf56b252..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_reference.rb +++ /dev/null @@ -1,348 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class ImageReference - # Image ID - attr_accessor :image_id - - # Image Name - attr_accessor :name - - # Image State - attr_accessor :state - - # Description - attr_accessor :description - - # Storage type for image - attr_accessor :storage_type - - # Storage pool where the image is located - attr_accessor :storage_pool - - # Creation Date - attr_accessor :creation_date - - # Last Update Date - attr_accessor :last_update_date - - attr_accessor :specifications - - # Link to Image resource - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'image_id' => :'imageID', - :'name' => :'name', - :'state' => :'state', - :'description' => :'description', - :'storage_type' => :'storageType', - :'storage_pool' => :'storagePool', - :'creation_date' => :'creationDate', - :'last_update_date' => :'lastUpdateDate', - :'specifications' => :'specifications', - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'image_id' => :'String', - :'name' => :'String', - :'state' => :'String', - :'description' => :'String', - :'storage_type' => :'String', - :'storage_pool' => :'String', - :'creation_date' => :'DateTime', - :'last_update_date' => :'DateTime', - :'specifications' => :'ImageSpecifications', - :'href' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::ImageReference` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::ImageReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'image_id') - self.image_id = attributes[:'image_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'state') - self.state = attributes[:'state'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'storage_type') - self.storage_type = attributes[:'storage_type'] - end - - if attributes.key?(:'storage_pool') - self.storage_pool = attributes[:'storage_pool'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'last_update_date') - self.last_update_date = attributes[:'last_update_date'] - end - - if attributes.key?(:'specifications') - self.specifications = attributes[:'specifications'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @image_id.nil? - invalid_properties.push('invalid value for "image_id", image_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @state.nil? - invalid_properties.push('invalid value for "state", state cannot be nil.') - end - - if @description.nil? - invalid_properties.push('invalid value for "description", description cannot be nil.') - end - - if @storage_type.nil? - invalid_properties.push('invalid value for "storage_type", storage_type cannot be nil.') - end - - if @storage_pool.nil? - invalid_properties.push('invalid value for "storage_pool", storage_pool cannot be nil.') - end - - if @creation_date.nil? - invalid_properties.push('invalid value for "creation_date", creation_date cannot be nil.') - end - - if @last_update_date.nil? - invalid_properties.push('invalid value for "last_update_date", last_update_date cannot be nil.') - end - - if @specifications.nil? - invalid_properties.push('invalid value for "specifications", specifications cannot be nil.') - end - - if @href.nil? - invalid_properties.push('invalid value for "href", href cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @image_id.nil? - return false if @name.nil? - return false if @state.nil? - return false if @description.nil? - return false if @storage_type.nil? - return false if @storage_pool.nil? - return false if @creation_date.nil? - return false if @last_update_date.nil? - return false if @specifications.nil? - return false if @href.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - image_id == o.image_id && - name == o.name && - state == o.state && - description == o.description && - storage_type == o.storage_type && - storage_pool == o.storage_pool && - creation_date == o.creation_date && - last_update_date == o.last_update_date && - specifications == o.specifications && - href == o.href - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [image_id, name, state, description, storage_type, storage_pool, creation_date, last_update_date, specifications, href].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_specifications.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_specifications.rb deleted file mode 100644 index 53e2dfcd..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_specifications.rb +++ /dev/null @@ -1,269 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class ImageSpecifications - # Image Type - attr_accessor :image_type - - # Container Format - attr_accessor :container_format - - # Disk Format - attr_accessor :disk_format - - # Operating System - attr_accessor :operating_system - - # Hypervisor Type - attr_accessor :hypervisor_type - - # Architecture - attr_accessor :architecture - - # Endianness - attr_accessor :endianness - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'image_type' => :'imageType', - :'container_format' => :'containerFormat', - :'disk_format' => :'diskFormat', - :'operating_system' => :'operatingSystem', - :'hypervisor_type' => :'hypervisorType', - :'architecture' => :'architecture', - :'endianness' => :'endianness' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'image_type' => :'String', - :'container_format' => :'String', - :'disk_format' => :'String', - :'operating_system' => :'String', - :'hypervisor_type' => :'String', - :'architecture' => :'String', - :'endianness' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::ImageSpecifications` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::ImageSpecifications`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'image_type') - self.image_type = attributes[:'image_type'] - end - - if attributes.key?(:'container_format') - self.container_format = attributes[:'container_format'] - end - - if attributes.key?(:'disk_format') - self.disk_format = attributes[:'disk_format'] - end - - if attributes.key?(:'operating_system') - self.operating_system = attributes[:'operating_system'] - end - - if attributes.key?(:'hypervisor_type') - self.hypervisor_type = attributes[:'hypervisor_type'] - end - - if attributes.key?(:'architecture') - self.architecture = attributes[:'architecture'] - end - - if attributes.key?(:'endianness') - self.endianness = attributes[:'endianness'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - image_type == o.image_type && - container_format == o.container_format && - disk_format == o.disk_format && - operating_system == o.operating_system && - hypervisor_type == o.hypervisor_type && - architecture == o.architecture && - endianness == o.endianness - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [image_type, container_format, disk_format, operating_system, hypervisor_type, architecture, endianness].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_volume.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_volume.rb deleted file mode 100644 index 11c247d6..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/image_volume.rb +++ /dev/null @@ -1,259 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class ImageVolume - # Volume ID - attr_accessor :volume_id - - # Volume Name - attr_accessor :name - - # Volume Size - attr_accessor :size - - # Indicates if the volume is boot capable - attr_accessor :bootable - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'volume_id' => :'volumeID', - :'name' => :'name', - :'size' => :'size', - :'bootable' => :'bootable' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'volume_id' => :'String', - :'name' => :'String', - :'size' => :'Float', - :'bootable' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::ImageVolume` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::ImageVolume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'volume_id') - self.volume_id = attributes[:'volume_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'size') - self.size = attributes[:'size'] - end - - if attributes.key?(:'bootable') - self.bootable = attributes[:'bootable'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @volume_id.nil? - invalid_properties.push('invalid value for "volume_id", volume_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @size.nil? - invalid_properties.push('invalid value for "size", size cannot be nil.') - end - - if @bootable.nil? - invalid_properties.push('invalid value for "bootable", bootable cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @volume_id.nil? - return false if @name.nil? - return false if @size.nil? - return false if @bootable.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - volume_id == o.volume_id && - name == o.name && - size == o.size && - bootable == o.bootable - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [volume_id, name, size, bootable].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/images.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/images.rb deleted file mode 100644 index 0f3ed9e9..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/images.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Images - # Images - attr_accessor :images - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'images' => :'images' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'images' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Images` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Images`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'images') - if (value = attributes[:'images']).is_a?(Array) - self.images = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @images.nil? - invalid_properties.push('invalid value for "images", images cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @images.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - images == o.images - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [images].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/ip_address_range.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/ip_address_range.rb deleted file mode 100644 index 0ef351eb..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/ip_address_range.rb +++ /dev/null @@ -1,229 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class IPAddressRange - # Starting IP Address - attr_accessor :starting_ip_address - - # Ending IP Address - attr_accessor :ending_ip_address - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'starting_ip_address' => :'startingIPAddress', - :'ending_ip_address' => :'endingIPAddress' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'starting_ip_address' => :'String', - :'ending_ip_address' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::IPAddressRange` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::IPAddressRange`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'starting_ip_address') - self.starting_ip_address = attributes[:'starting_ip_address'] - end - - if attributes.key?(:'ending_ip_address') - self.ending_ip_address = attributes[:'ending_ip_address'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @starting_ip_address.nil? - invalid_properties.push('invalid value for "starting_ip_address", starting_ip_address cannot be nil.') - end - - if @ending_ip_address.nil? - invalid_properties.push('invalid value for "ending_ip_address", ending_ip_address cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @starting_ip_address.nil? - return false if @ending_ip_address.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - starting_ip_address == o.starting_ip_address && - ending_ip_address == o.ending_ip_address - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [starting_ip_address, ending_ip_address].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/maximum_storage_allocation.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/maximum_storage_allocation.rb deleted file mode 100644 index 8e003507..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/maximum_storage_allocation.rb +++ /dev/null @@ -1,245 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # Maximum storage allocation - class MaximumStorageAllocation - # Storage type - attr_accessor :storage_type - - # Storage pool - attr_accessor :storage_pool - - # Maximum allocation storage size (GB) - attr_accessor :max_allocation_size - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'storage_type' => :'storageType', - :'storage_pool' => :'storagePool', - :'max_allocation_size' => :'maxAllocationSize' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'storage_type' => :'String', - :'storage_pool' => :'String', - :'max_allocation_size' => :'Integer' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::MaximumStorageAllocation` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::MaximumStorageAllocation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'storage_type') - self.storage_type = attributes[:'storage_type'] - end - - if attributes.key?(:'storage_pool') - self.storage_pool = attributes[:'storage_pool'] - end - - if attributes.key?(:'max_allocation_size') - self.max_allocation_size = attributes[:'max_allocation_size'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @storage_type.nil? - invalid_properties.push('invalid value for "storage_type", storage_type cannot be nil.') - end - - if @storage_pool.nil? - invalid_properties.push('invalid value for "storage_pool", storage_pool cannot be nil.') - end - - if @max_allocation_size.nil? - invalid_properties.push('invalid value for "max_allocation_size", max_allocation_size cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @storage_type.nil? - return false if @storage_pool.nil? - return false if @max_allocation_size.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - storage_type == o.storage_type && - storage_pool == o.storage_pool && - max_allocation_size == o.max_allocation_size - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [storage_type, storage_pool, max_allocation_size].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/min_max_default.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/min_max_default.rb deleted file mode 100644 index aee59067..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/min_max_default.rb +++ /dev/null @@ -1,244 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class MinMaxDefault - # min value - attr_accessor :min - - # max value - attr_accessor :max - - # default value - attr_accessor :default - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'min' => :'min', - :'max' => :'max', - :'default' => :'default' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'min' => :'Float', - :'max' => :'Float', - :'default' => :'Float' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::MinMaxDefault` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::MinMaxDefault`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'min') - self.min = attributes[:'min'] - end - - if attributes.key?(:'max') - self.max = attributes[:'max'] - end - - if attributes.key?(:'default') - self.default = attributes[:'default'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @min.nil? - invalid_properties.push('invalid value for "min", min cannot be nil.') - end - - if @max.nil? - invalid_properties.push('invalid value for "max", max cannot be nil.') - end - - if @default.nil? - invalid_properties.push('invalid value for "default", default cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @min.nil? - return false if @max.nil? - return false if @default.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - min == o.min && - max == o.max && - default == o.default - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [min, max, default].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/multi_volumes_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/multi_volumes_create.rb deleted file mode 100644 index d1ded65b..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/multi_volumes_create.rb +++ /dev/null @@ -1,323 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class MultiVolumesCreate - # Base name of the volume(s) - attr_accessor :name - - # Volume Size (GB) - attr_accessor :size - - # Number of volumes to create - attr_accessor :count - - # Indicates if the volume is shareable between VMs - attr_accessor :shareable - - # Type of Disk; required if affinityPolicy is not provided, otherwise ignored - attr_accessor :disk_type - - # Affinity policy for data volume being created; requires affinityPVMInstance or affinityVolume to be specified; - attr_accessor :affinity_policy - - # Volume (ID or Name) to base volume affinity policy against; required if affinityPolicy is provided and affinityPVMInstance is not provided - attr_accessor :affinity_volume - - # PVM Instance (ID or Name)to base volume affinity policy against; required if affinityPolicy is provided and affinityVolume is not provided - attr_accessor :affinity_pvm_instance - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'size' => :'size', - :'count' => :'count', - :'shareable' => :'shareable', - :'disk_type' => :'diskType', - :'affinity_policy' => :'affinityPolicy', - :'affinity_volume' => :'affinityVolume', - :'affinity_pvm_instance' => :'affinityPVMInstance' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'size' => :'Integer', - :'count' => :'Integer', - :'shareable' => :'Boolean', - :'disk_type' => :'String', - :'affinity_policy' => :'String', - :'affinity_volume' => :'String', - :'affinity_pvm_instance' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::MultiVolumesCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::MultiVolumesCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'size') - self.size = attributes[:'size'] - end - - if attributes.key?(:'count') - self.count = attributes[:'count'] - end - - if attributes.key?(:'shareable') - self.shareable = attributes[:'shareable'] - end - - if attributes.key?(:'disk_type') - self.disk_type = attributes[:'disk_type'] - end - - if attributes.key?(:'affinity_policy') - self.affinity_policy = attributes[:'affinity_policy'] - end - - if attributes.key?(:'affinity_volume') - self.affinity_volume = attributes[:'affinity_volume'] - end - - if attributes.key?(:'affinity_pvm_instance') - self.affinity_pvm_instance = attributes[:'affinity_pvm_instance'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @size.nil? - invalid_properties.push('invalid value for "size", size cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - return false if @size.nil? - affinity_policy_validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - return false unless affinity_policy_validator.valid?(@affinity_policy) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] affinity_policy Object to be assigned - def affinity_policy=(affinity_policy) - validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - unless validator.valid?(affinity_policy) - fail ArgumentError, "invalid value for \"affinity_policy\", must be one of #{validator.allowable_values}." - end - @affinity_policy = affinity_policy - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - size == o.size && - count == o.count && - shareable == o.shareable && - disk_type == o.disk_type && - affinity_policy == o.affinity_policy && - affinity_volume == o.affinity_volume && - affinity_pvm_instance == o.affinity_pvm_instance - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, size, count, shareable, disk_type, affinity_policy, affinity_volume, affinity_pvm_instance].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network.rb deleted file mode 100644 index fa187ef0..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network.rb +++ /dev/null @@ -1,395 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Network - # Unique Network ID - attr_accessor :network_id - - # Network Name - attr_accessor :name - - # Type of Network {vlan, pub-vlan} - attr_accessor :type - - # VLAN ID - attr_accessor :vlan_id - - # Network in CIDR notation (192.168.0.0/24) - attr_accessor :cidr - - # Gateway IP Address - attr_accessor :gateway - - # DNS Servers - attr_accessor :dns_servers - - # IP Address Ranges - attr_accessor :ip_address_ranges - - attr_accessor :ip_address_metrics - - # Public IP Address Ranges (for pub-vlan networks) - attr_accessor :public_ip_address_ranges - - # MTU Jumbo Network enabled - attr_accessor :jumbo - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'network_id' => :'networkID', - :'name' => :'name', - :'type' => :'type', - :'vlan_id' => :'vlanID', - :'cidr' => :'cidr', - :'gateway' => :'gateway', - :'dns_servers' => :'dnsServers', - :'ip_address_ranges' => :'ipAddressRanges', - :'ip_address_metrics' => :'ipAddressMetrics', - :'public_ip_address_ranges' => :'publicIPAddressRanges', - :'jumbo' => :'jumbo' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'network_id' => :'String', - :'name' => :'String', - :'type' => :'String', - :'vlan_id' => :'Float', - :'cidr' => :'String', - :'gateway' => :'String', - :'dns_servers' => :'Array', - :'ip_address_ranges' => :'Array', - :'ip_address_metrics' => :'NetworkIpAddressMetrics', - :'public_ip_address_ranges' => :'Array', - :'jumbo' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Network` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Network`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'network_id') - self.network_id = attributes[:'network_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - else - self.type = 'vlan' - end - - if attributes.key?(:'vlan_id') - self.vlan_id = attributes[:'vlan_id'] - end - - if attributes.key?(:'cidr') - self.cidr = attributes[:'cidr'] - end - - if attributes.key?(:'gateway') - self.gateway = attributes[:'gateway'] - end - - if attributes.key?(:'dns_servers') - if (value = attributes[:'dns_servers']).is_a?(Array) - self.dns_servers = value - end - end - - if attributes.key?(:'ip_address_ranges') - if (value = attributes[:'ip_address_ranges']).is_a?(Array) - self.ip_address_ranges = value - end - end - - if attributes.key?(:'ip_address_metrics') - self.ip_address_metrics = attributes[:'ip_address_metrics'] - end - - if attributes.key?(:'public_ip_address_ranges') - if (value = attributes[:'public_ip_address_ranges']).is_a?(Array) - self.public_ip_address_ranges = value - end - end - - if attributes.key?(:'jumbo') - self.jumbo = attributes[:'jumbo'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @network_id.nil? - invalid_properties.push('invalid value for "network_id", network_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') - end - - if @vlan_id.nil? - invalid_properties.push('invalid value for "vlan_id", vlan_id cannot be nil.') - end - - if @cidr.nil? - invalid_properties.push('invalid value for "cidr", cidr cannot be nil.') - end - - if @dns_servers.nil? - invalid_properties.push('invalid value for "dns_servers", dns_servers cannot be nil.') - end - - if @ip_address_ranges.nil? - invalid_properties.push('invalid value for "ip_address_ranges", ip_address_ranges cannot be nil.') - end - - if @ip_address_metrics.nil? - invalid_properties.push('invalid value for "ip_address_metrics", ip_address_metrics cannot be nil.') - end - - if @jumbo.nil? - invalid_properties.push('invalid value for "jumbo", jumbo cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @network_id.nil? - return false if @name.nil? - return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["pub-vlan", "vlan", "vxlan"]) - return false unless type_validator.valid?(@type) - return false if @vlan_id.nil? - return false if @cidr.nil? - return false if @dns_servers.nil? - return false if @ip_address_ranges.nil? - return false if @ip_address_metrics.nil? - return false if @jumbo.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] type Object to be assigned - def type=(type) - validator = EnumAttributeValidator.new('String', ["pub-vlan", "vlan", "vxlan"]) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - @type = type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - network_id == o.network_id && - name == o.name && - type == o.type && - vlan_id == o.vlan_id && - cidr == o.cidr && - gateway == o.gateway && - dns_servers == o.dns_servers && - ip_address_ranges == o.ip_address_ranges && - ip_address_metrics == o.ip_address_metrics && - public_ip_address_ranges == o.public_ip_address_ranges && - jumbo == o.jumbo - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [network_id, name, type, vlan_id, cidr, gateway, dns_servers, ip_address_ranges, ip_address_metrics, public_ip_address_ranges, jumbo].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_create.rb deleted file mode 100644 index 2f8133a4..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_create.rb +++ /dev/null @@ -1,314 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class NetworkCreate - # Network Name - attr_accessor :name - - # Type of Network - 'vlan' (private network) 'pub-vlan' (public network) - attr_accessor :type - - # Network in CIDR notation (192.168.0.0/24) - attr_accessor :cidr - - # Gateway IP Address - attr_accessor :gateway - - # DNS Servers - attr_accessor :dns_servers - - # IP Address Ranges - attr_accessor :ip_address_ranges - - # Enable MTU Jumbo Network - attr_accessor :jumbo - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'type' => :'type', - :'cidr' => :'cidr', - :'gateway' => :'gateway', - :'dns_servers' => :'dnsServers', - :'ip_address_ranges' => :'ipAddressRanges', - :'jumbo' => :'jumbo' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'type' => :'String', - :'cidr' => :'String', - :'gateway' => :'String', - :'dns_servers' => :'Array', - :'ip_address_ranges' => :'Array', - :'jumbo' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::NetworkCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::NetworkCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - else - self.type = 'vlan' - end - - if attributes.key?(:'cidr') - self.cidr = attributes[:'cidr'] - end - - if attributes.key?(:'gateway') - self.gateway = attributes[:'gateway'] - end - - if attributes.key?(:'dns_servers') - if (value = attributes[:'dns_servers']).is_a?(Array) - self.dns_servers = value - end - end - - if attributes.key?(:'ip_address_ranges') - if (value = attributes[:'ip_address_ranges']).is_a?(Array) - self.ip_address_ranges = value - end - end - - if attributes.key?(:'jumbo') - self.jumbo = attributes[:'jumbo'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["vlan", "pub-vlan"]) - return false unless type_validator.valid?(@type) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] type Object to be assigned - def type=(type) - validator = EnumAttributeValidator.new('String', ["vlan", "pub-vlan"]) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - @type = type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - type == o.type && - cidr == o.cidr && - gateway == o.gateway && - dns_servers == o.dns_servers && - ip_address_ranges == o.ip_address_ranges && - jumbo == o.jumbo - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, type, cidr, gateway, dns_servers, ip_address_ranges, jumbo].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_ip_address_metrics.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_ip_address_metrics.rb deleted file mode 100644 index ba87fbd8..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_ip_address_metrics.rb +++ /dev/null @@ -1,260 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # IP Address Metrics - class NetworkIpAddressMetrics - # Number of available IP addresses - attr_accessor :available - - # Number of IP addresses currently in use - attr_accessor :used - - # Total number of all IP addresses in all ipAddressRanges - attr_accessor :total - - # Utilization of IP addresses in percent form (used / total) [0 - 100] - attr_accessor :utilization - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'available' => :'available', - :'used' => :'used', - :'total' => :'total', - :'utilization' => :'utilization' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'available' => :'Float', - :'used' => :'Float', - :'total' => :'Float', - :'utilization' => :'Float' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::NetworkIpAddressMetrics` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::NetworkIpAddressMetrics`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'available') - self.available = attributes[:'available'] - end - - if attributes.key?(:'used') - self.used = attributes[:'used'] - end - - if attributes.key?(:'total') - self.total = attributes[:'total'] - end - - if attributes.key?(:'utilization') - self.utilization = attributes[:'utilization'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @available.nil? - invalid_properties.push('invalid value for "available", available cannot be nil.') - end - - if @used.nil? - invalid_properties.push('invalid value for "used", used cannot be nil.') - end - - if @total.nil? - invalid_properties.push('invalid value for "total", total cannot be nil.') - end - - if @utilization.nil? - invalid_properties.push('invalid value for "utilization", utilization cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @available.nil? - return false if @used.nil? - return false if @total.nil? - return false if @utilization.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - available == o.available && - used == o.used && - total == o.total && - utilization == o.utilization - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [available, used, total, utilization].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port.rb deleted file mode 100644 index ef93d5f9..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port.rb +++ /dev/null @@ -1,303 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class NetworkPort - # The unique Port ID - attr_accessor :port_id - - # The description of the port (not unique or indexable) - attr_accessor :description - - # Te - attr_accessor :status - - # The mac address of the network interface - attr_accessor :mac_address - - # The ip address of this port - attr_accessor :ip_address - - # The external ip address (for pub-vlan networks) - attr_accessor :external_ip - - attr_accessor :pvm_instance - - # Link to port resource - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'port_id' => :'portID', - :'description' => :'description', - :'status' => :'status', - :'mac_address' => :'macAddress', - :'ip_address' => :'ipAddress', - :'external_ip' => :'externalIP', - :'pvm_instance' => :'pvmInstance', - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'port_id' => :'String', - :'description' => :'String', - :'status' => :'String', - :'mac_address' => :'String', - :'ip_address' => :'String', - :'external_ip' => :'String', - :'pvm_instance' => :'NetworkPortPvmInstance', - :'href' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::NetworkPort` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::NetworkPort`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'port_id') - self.port_id = attributes[:'port_id'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'mac_address') - self.mac_address = attributes[:'mac_address'] - end - - if attributes.key?(:'ip_address') - self.ip_address = attributes[:'ip_address'] - end - - if attributes.key?(:'external_ip') - self.external_ip = attributes[:'external_ip'] - end - - if attributes.key?(:'pvm_instance') - self.pvm_instance = attributes[:'pvm_instance'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @port_id.nil? - invalid_properties.push('invalid value for "port_id", port_id cannot be nil.') - end - - if @description.nil? - invalid_properties.push('invalid value for "description", description cannot be nil.') - end - - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - if @mac_address.nil? - invalid_properties.push('invalid value for "mac_address", mac_address cannot be nil.') - end - - if @ip_address.nil? - invalid_properties.push('invalid value for "ip_address", ip_address cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @port_id.nil? - return false if @description.nil? - return false if @status.nil? - return false if @mac_address.nil? - return false if @ip_address.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - port_id == o.port_id && - description == o.description && - status == o.status && - mac_address == o.mac_address && - ip_address == o.ip_address && - external_ip == o.external_ip && - pvm_instance == o.pvm_instance && - href == o.href - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [port_id, description, status, mac_address, ip_address, external_ip, pvm_instance, href].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_create.rb deleted file mode 100644 index da17df08..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_create.rb +++ /dev/null @@ -1,219 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class NetworkPortCreate - # Description of the port (not unique or indexable) - attr_accessor :description - - # The requested ip address of this port - attr_accessor :ip_address - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'description' => :'description', - :'ip_address' => :'ipAddress' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'description' => :'String', - :'ip_address' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::NetworkPortCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::NetworkPortCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'ip_address') - self.ip_address = attributes[:'ip_address'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - description == o.description && - ip_address == o.ip_address - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [description, ip_address].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_pvm_instance.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_pvm_instance.rb deleted file mode 100644 index d82547f0..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_pvm_instance.rb +++ /dev/null @@ -1,220 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # The attached pvm-instance to this port - class NetworkPortPvmInstance - # The attahed pvm-instance ID - attr_accessor :pvm_instance_id - - # Link to pvm-instance resource - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'pvm_instance_id' => :'pvmInstanceID', - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'pvm_instance_id' => :'String', - :'href' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::NetworkPortPvmInstance` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::NetworkPortPvmInstance`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'pvm_instance_id') - self.pvm_instance_id = attributes[:'pvm_instance_id'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - pvm_instance_id == o.pvm_instance_id && - href == o.href - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [pvm_instance_id, href].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_update.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_update.rb deleted file mode 100644 index 4c6f99b3..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_port_update.rb +++ /dev/null @@ -1,219 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class NetworkPortUpdate - # Description of the port (not unique or indexable) - attr_accessor :description - - # If supplied populated it attaches to the PVMInstanceID, if empty detaches from PVMInstanceID - attr_accessor :pvm_instance_id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'description' => :'description', - :'pvm_instance_id' => :'pvmInstanceID' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'description' => :'String', - :'pvm_instance_id' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::NetworkPortUpdate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::NetworkPortUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'pvm_instance_id') - self.pvm_instance_id = attributes[:'pvm_instance_id'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - description == o.description && - pvm_instance_id == o.pvm_instance_id - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [description, pvm_instance_id].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_ports.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_ports.rb deleted file mode 100644 index f5ff4cb6..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_ports.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class NetworkPorts - # Network Ports - attr_accessor :ports - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'ports' => :'ports' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'ports' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::NetworkPorts` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::NetworkPorts`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'ports') - if (value = attributes[:'ports']).is_a?(Array) - self.ports = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @ports.nil? - invalid_properties.push('invalid value for "ports", ports cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @ports.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - ports == o.ports - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [ports].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_reference.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_reference.rb deleted file mode 100644 index a1ecbcc2..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_reference.rb +++ /dev/null @@ -1,325 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class NetworkReference - # Unique Network ID - attr_accessor :network_id - - # Network Name - attr_accessor :name - - # VLAN ID - attr_accessor :vlan_id - - # Type of Network {vlan, pub-vlan} - attr_accessor :type - - # MTU Jumbo Network enabled - attr_accessor :jumbo - - # Link to Network resource - attr_accessor :href - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'network_id' => :'networkID', - :'name' => :'name', - :'vlan_id' => :'vlanID', - :'type' => :'type', - :'jumbo' => :'jumbo', - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'network_id' => :'String', - :'name' => :'String', - :'vlan_id' => :'Float', - :'type' => :'String', - :'jumbo' => :'Boolean', - :'href' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::NetworkReference` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::NetworkReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'network_id') - self.network_id = attributes[:'network_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'vlan_id') - self.vlan_id = attributes[:'vlan_id'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - else - self.type = 'vlan' - end - - if attributes.key?(:'jumbo') - self.jumbo = attributes[:'jumbo'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @network_id.nil? - invalid_properties.push('invalid value for "network_id", network_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @vlan_id.nil? - invalid_properties.push('invalid value for "vlan_id", vlan_id cannot be nil.') - end - - if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') - end - - if @jumbo.nil? - invalid_properties.push('invalid value for "jumbo", jumbo cannot be nil.') - end - - if @href.nil? - invalid_properties.push('invalid value for "href", href cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @network_id.nil? - return false if @name.nil? - return false if @vlan_id.nil? - return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["pub-vlan", "vlan", "vxlan"]) - return false unless type_validator.valid?(@type) - return false if @jumbo.nil? - return false if @href.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] type Object to be assigned - def type=(type) - validator = EnumAttributeValidator.new('String', ["pub-vlan", "vlan", "vxlan"]) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - @type = type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - network_id == o.network_id && - name == o.name && - vlan_id == o.vlan_id && - type == o.type && - jumbo == o.jumbo && - href == o.href - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [network_id, name, vlan_id, type, jumbo, href].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_update.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_update.rb deleted file mode 100644 index 2660fbfe..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/network_update.rb +++ /dev/null @@ -1,243 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class NetworkUpdate - # Replaces the current Network Name - attr_accessor :name - - # Replaces the current Gateway IP Address - attr_accessor :gateway - - # Replaces the current DNS Servers - attr_accessor :dns_servers - - # Replaces the current IP Address Ranges - attr_accessor :ip_address_ranges - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'gateway' => :'gateway', - :'dns_servers' => :'dnsServers', - :'ip_address_ranges' => :'ipAddressRanges' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'gateway' => :'String', - :'dns_servers' => :'Array', - :'ip_address_ranges' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::NetworkUpdate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::NetworkUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'gateway') - self.gateway = attributes[:'gateway'] - end - - if attributes.key?(:'dns_servers') - if (value = attributes[:'dns_servers']).is_a?(Array) - self.dns_servers = value - end - end - - if attributes.key?(:'ip_address_ranges') - if (value = attributes[:'ip_address_ranges']).is_a?(Array) - self.ip_address_ranges = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - gateway == o.gateway && - dns_servers == o.dns_servers && - ip_address_ranges == o.ip_address_ranges - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, gateway, dns_servers, ip_address_ranges].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/networks.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/networks.rb deleted file mode 100644 index b8697ea1..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/networks.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Networks - # Network References - attr_accessor :networks - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'networks' => :'networks' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'networks' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Networks` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Networks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'networks') - if (value = attributes[:'networks']).is_a?(Array) - self.networks = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @networks.nil? - invalid_properties.push('invalid value for "networks", networks cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @networks.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - networks == o.networks - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [networks].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/operations.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/operations.rb deleted file mode 100644 index 9556bcb8..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/operations.rb +++ /dev/null @@ -1,287 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Operations - # Name of the server boot mode a(Boot from disk using copy A), b(Boot from disk using copy B), c(Reserved for IBM lab use only), d(Boot from media/drives) - attr_accessor :boot_mode - - # Name of the server operating mode - attr_accessor :operating_mode - - # Name of the job task to execute - attr_accessor :task - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'boot_mode' => :'bootMode', - :'operating_mode' => :'operatingMode', - :'task' => :'task' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'boot_mode' => :'String', - :'operating_mode' => :'String', - :'task' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Operations` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Operations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'boot_mode') - self.boot_mode = attributes[:'boot_mode'] - end - - if attributes.key?(:'operating_mode') - self.operating_mode = attributes[:'operating_mode'] - end - - if attributes.key?(:'task') - self.task = attributes[:'task'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - boot_mode_validator = EnumAttributeValidator.new('String', ["a", "b", "c", "d"]) - return false unless boot_mode_validator.valid?(@boot_mode) - operating_mode_validator = EnumAttributeValidator.new('String', ["normal", "manual"]) - return false unless operating_mode_validator.valid?(@operating_mode) - task_validator = EnumAttributeValidator.new('String', ["dston", "retrydump", "consoleservice", "iopreset", "remotedstoff", "remotedston", "iopdump", "dumprestart"]) - return false unless task_validator.valid?(@task) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] boot_mode Object to be assigned - def boot_mode=(boot_mode) - validator = EnumAttributeValidator.new('String', ["a", "b", "c", "d"]) - unless validator.valid?(boot_mode) - fail ArgumentError, "invalid value for \"boot_mode\", must be one of #{validator.allowable_values}." - end - @boot_mode = boot_mode - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] operating_mode Object to be assigned - def operating_mode=(operating_mode) - validator = EnumAttributeValidator.new('String', ["normal", "manual"]) - unless validator.valid?(operating_mode) - fail ArgumentError, "invalid value for \"operating_mode\", must be one of #{validator.allowable_values}." - end - @operating_mode = operating_mode - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] task Object to be assigned - def task=(task) - validator = EnumAttributeValidator.new('String', ["dston", "retrydump", "consoleservice", "iopreset", "remotedstoff", "remotedston", "iopdump", "dumprestart"]) - unless validator.valid?(task) - fail ArgumentError, "invalid value for \"task\", must be one of #{validator.allowable_values}." - end - @task = task - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - boot_mode == o.boot_mode && - operating_mode == o.operating_mode && - task == o.task - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [boot_mode, operating_mode, task].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/peering_network.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/peering_network.rb deleted file mode 100644 index c903079d..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/peering_network.rb +++ /dev/null @@ -1,241 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PeeringNetwork - # Name of project to be peered - attr_accessor :project_name - - # Network in CIDR notation (192.168.0.0/24) - attr_accessor :cidr - - # DNS Servers - attr_accessor :dns_servers - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'project_name' => :'projectName', - :'cidr' => :'cidr', - :'dns_servers' => :'dnsServers' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'project_name' => :'String', - :'cidr' => :'String', - :'dns_servers' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PeeringNetwork` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PeeringNetwork`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'project_name') - self.project_name = attributes[:'project_name'] - end - - if attributes.key?(:'cidr') - self.cidr = attributes[:'cidr'] - end - - if attributes.key?(:'dns_servers') - if (value = attributes[:'dns_servers']).is_a?(Array) - self.dns_servers = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @project_name.nil? - invalid_properties.push('invalid value for "project_name", project_name cannot be nil.') - end - - if @cidr.nil? - invalid_properties.push('invalid value for "cidr", cidr cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @project_name.nil? - return false if @cidr.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - project_name == o.project_name && - cidr == o.cidr && - dns_servers == o.dns_servers - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [project_name, cidr, dns_servers].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pin_policy.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pin_policy.rb deleted file mode 100644 index 9567332e..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pin_policy.rb +++ /dev/null @@ -1,37 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PinPolicy - NONE = "none".freeze - SOFT = "soft".freeze - HARD = "hard".freeze - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def self.build_from_hash(value) - new.build_from_hash(value) - end - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - constantValues = PinPolicy.constants.select { |c| PinPolicy::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #PinPolicy" if constantValues.empty? - value - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group.rb deleted file mode 100644 index 0d6dbcc9..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group.rb +++ /dev/null @@ -1,295 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PlacementGroup - # The id of the Placement Group - attr_accessor :id - - # The name of the Placement Group - attr_accessor :name - - # The Placement Group Policy - attr_accessor :policy - - # The List of PVM Instance IDs associated with the Placement Group - attr_accessor :members - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'id' => :'id', - :'name' => :'name', - :'policy' => :'policy', - :'members' => :'members' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'id' => :'String', - :'name' => :'String', - :'policy' => :'String', - :'members' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PlacementGroup` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PlacementGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'policy') - self.policy = attributes[:'policy'] - end - - if attributes.key?(:'members') - if (value = attributes[:'members']).is_a?(Array) - self.members = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @policy.nil? - invalid_properties.push('invalid value for "policy", policy cannot be nil.') - end - - if @members.nil? - invalid_properties.push('invalid value for "members", members cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @id.nil? - return false if @name.nil? - return false if @policy.nil? - policy_validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - return false unless policy_validator.valid?(@policy) - return false if @members.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] policy Object to be assigned - def policy=(policy) - validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - unless validator.valid?(policy) - fail ArgumentError, "invalid value for \"policy\", must be one of #{validator.allowable_values}." - end - @policy = policy - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - id == o.id && - name == o.name && - policy == o.policy && - members == o.members - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [id, name, policy, members].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group_create.rb deleted file mode 100644 index 32c8403e..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group_create.rb +++ /dev/null @@ -1,263 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PlacementGroupCreate - # The name of the Placement Group - attr_accessor :name - - # The Placement Group Policy - attr_accessor :policy - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'policy' => :'policy' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'policy' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PlacementGroupCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PlacementGroupCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'policy') - self.policy = attributes[:'policy'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @policy.nil? - invalid_properties.push('invalid value for "policy", policy cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - return false if @policy.nil? - policy_validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - return false unless policy_validator.valid?(@policy) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] policy Object to be assigned - def policy=(policy) - validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - unless validator.valid?(policy) - fail ArgumentError, "invalid value for \"policy\", must be one of #{validator.allowable_values}." - end - @policy = policy - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - policy == o.policy - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, policy].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group_server.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group_server.rb deleted file mode 100644 index 8480622f..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_group_server.rb +++ /dev/null @@ -1,214 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PlacementGroupServer - # The ID of the Server - attr_accessor :id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'id' => :'id' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'id' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PlacementGroupServer` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PlacementGroupServer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @id.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - id == o.id - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [id].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_groups.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_groups.rb deleted file mode 100644 index 6dafc092..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/placement_groups.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PlacementGroups - # List of Server Placement Groups - attr_accessor :placement_groups - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'placement_groups' => :'placementGroups' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'placement_groups' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PlacementGroups` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PlacementGroups`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'placement_groups') - if (value = attributes[:'placement_groups']).is_a?(Array) - self.placement_groups = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @placement_groups.nil? - invalid_properties.push('invalid value for "placement_groups", placement_groups cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @placement_groups.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - placement_groups == o.placement_groups - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [placement_groups].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance.rb deleted file mode 100644 index 040a8083..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance.rb +++ /dev/null @@ -1,624 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstance - # PCloud PVM Instance ID - attr_accessor :pvm_instance_id - - # Name of the server - attr_accessor :server_name - - # The ImageID used by the server - attr_accessor :image_id - - # Number of processors allocated - attr_accessor :processors - - # Minimum number of processors that can be allocated (for resize) - attr_accessor :minproc - - # Maximum number of processors that can be allocated (for resize) - attr_accessor :maxproc - - # Processor type (dedicated, shared, capped) - attr_accessor :proc_type - - # Amount of memory allocated (in GB) - attr_accessor :memory - - # Minimum amount of memory that can be allocated (in GB, for resize) - attr_accessor :minmem - - # Maximum amount of memory that can be allocated (in GB, for resize) - attr_accessor :maxmem - - # Size of allocated disk (in GB) - attr_accessor :disk_size - - # (deprecated - replaced by networks) List of Network IDs - attr_accessor :network_i_ds - - # List of volume IDs - attr_accessor :volume_i_ds - - # (deprecated - replaced by networks) The list of addresses and their network information - attr_accessor :addresses - - # The pvm instance networks information - attr_accessor :networks - - # The status of the instance - attr_accessor :status - - # The progress of an operation - attr_accessor :progress - - attr_accessor :fault - - # Date/Time of PVM creation - attr_accessor :creation_date - - # Date/Time of PVM last update - attr_accessor :updated_date - - # System type used to host the instance - attr_accessor :sys_type - - attr_accessor :health - - # whether the instance can be migrated - attr_accessor :migratable - - # Storage type where server is deployed - attr_accessor :storage_type - - attr_accessor :software_licenses - - # The pvm instance SRC lists - attr_accessor :srcs - - # VM pinning policy to use [none, soft, hard] - attr_accessor :pin_policy - - # Type of the OS [aix, ibmi, redhat, sles] - attr_accessor :os_type - - # OS system information (usually version and build) - attr_accessor :operating_system - - attr_accessor :sap_profile - - attr_accessor :virtual_cores - - # The placement group of the server - attr_accessor :placement_group - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'pvm_instance_id' => :'pvmInstanceID', - :'server_name' => :'serverName', - :'image_id' => :'imageID', - :'processors' => :'processors', - :'minproc' => :'minproc', - :'maxproc' => :'maxproc', - :'proc_type' => :'procType', - :'memory' => :'memory', - :'minmem' => :'minmem', - :'maxmem' => :'maxmem', - :'disk_size' => :'diskSize', - :'network_i_ds' => :'networkIDs', - :'volume_i_ds' => :'volumeIDs', - :'addresses' => :'addresses', - :'networks' => :'networks', - :'status' => :'status', - :'progress' => :'progress', - :'fault' => :'fault', - :'creation_date' => :'creationDate', - :'updated_date' => :'updatedDate', - :'sys_type' => :'sysType', - :'health' => :'health', - :'migratable' => :'migratable', - :'storage_type' => :'storageType', - :'software_licenses' => :'softwareLicenses', - :'srcs' => :'srcs', - :'pin_policy' => :'pinPolicy', - :'os_type' => :'osType', - :'operating_system' => :'operatingSystem', - :'sap_profile' => :'sapProfile', - :'virtual_cores' => :'virtualCores', - :'placement_group' => :'placementGroup' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'pvm_instance_id' => :'String', - :'server_name' => :'String', - :'image_id' => :'String', - :'processors' => :'Float', - :'minproc' => :'Float', - :'maxproc' => :'Float', - :'proc_type' => :'String', - :'memory' => :'Float', - :'minmem' => :'Float', - :'maxmem' => :'Float', - :'disk_size' => :'Float', - :'network_i_ds' => :'Array', - :'volume_i_ds' => :'Array', - :'addresses' => :'Array', - :'networks' => :'Array', - :'status' => :'String', - :'progress' => :'Float', - :'fault' => :'PVMInstanceFault', - :'creation_date' => :'DateTime', - :'updated_date' => :'DateTime', - :'sys_type' => :'String', - :'health' => :'PVMInstanceHealth', - :'migratable' => :'Boolean', - :'storage_type' => :'String', - :'software_licenses' => :'SoftwareLicenses', - :'srcs' => :'Array>', - :'pin_policy' => :'String', - :'os_type' => :'String', - :'operating_system' => :'String', - :'sap_profile' => :'SAPProfileReference', - :'virtual_cores' => :'VirtualCores', - :'placement_group' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstance` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstance`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'pvm_instance_id') - self.pvm_instance_id = attributes[:'pvm_instance_id'] - end - - if attributes.key?(:'server_name') - self.server_name = attributes[:'server_name'] - end - - if attributes.key?(:'image_id') - self.image_id = attributes[:'image_id'] - end - - if attributes.key?(:'processors') - self.processors = attributes[:'processors'] - end - - if attributes.key?(:'minproc') - self.minproc = attributes[:'minproc'] - end - - if attributes.key?(:'maxproc') - self.maxproc = attributes[:'maxproc'] - end - - if attributes.key?(:'proc_type') - self.proc_type = attributes[:'proc_type'] - else - self.proc_type = 'dedicated' - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'minmem') - self.minmem = attributes[:'minmem'] - end - - if attributes.key?(:'maxmem') - self.maxmem = attributes[:'maxmem'] - end - - if attributes.key?(:'disk_size') - self.disk_size = attributes[:'disk_size'] - end - - if attributes.key?(:'network_i_ds') - if (value = attributes[:'network_i_ds']).is_a?(Array) - self.network_i_ds = value - end - end - - if attributes.key?(:'volume_i_ds') - if (value = attributes[:'volume_i_ds']).is_a?(Array) - self.volume_i_ds = value - end - end - - if attributes.key?(:'addresses') - if (value = attributes[:'addresses']).is_a?(Array) - self.addresses = value - end - end - - if attributes.key?(:'networks') - if (value = attributes[:'networks']).is_a?(Array) - self.networks = value - end - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'progress') - self.progress = attributes[:'progress'] - end - - if attributes.key?(:'fault') - self.fault = attributes[:'fault'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'updated_date') - self.updated_date = attributes[:'updated_date'] - end - - if attributes.key?(:'sys_type') - self.sys_type = attributes[:'sys_type'] - end - - if attributes.key?(:'health') - self.health = attributes[:'health'] - end - - if attributes.key?(:'migratable') - self.migratable = attributes[:'migratable'] - else - self.migratable = true - end - - if attributes.key?(:'storage_type') - self.storage_type = attributes[:'storage_type'] - end - - if attributes.key?(:'software_licenses') - self.software_licenses = attributes[:'software_licenses'] - end - - if attributes.key?(:'srcs') - if (value = attributes[:'srcs']).is_a?(Array) - self.srcs = value - end - end - - if attributes.key?(:'pin_policy') - self.pin_policy = attributes[:'pin_policy'] - end - - if attributes.key?(:'os_type') - self.os_type = attributes[:'os_type'] - end - - if attributes.key?(:'operating_system') - self.operating_system = attributes[:'operating_system'] - end - - if attributes.key?(:'sap_profile') - self.sap_profile = attributes[:'sap_profile'] - end - - if attributes.key?(:'virtual_cores') - self.virtual_cores = attributes[:'virtual_cores'] - end - - if attributes.key?(:'placement_group') - self.placement_group = attributes[:'placement_group'] - else - self.placement_group = 'none' - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @pvm_instance_id.nil? - invalid_properties.push('invalid value for "pvm_instance_id", pvm_instance_id cannot be nil.') - end - - if @server_name.nil? - invalid_properties.push('invalid value for "server_name", server_name cannot be nil.') - end - - if @image_id.nil? - invalid_properties.push('invalid value for "image_id", image_id cannot be nil.') - end - - if @processors.nil? - invalid_properties.push('invalid value for "processors", processors cannot be nil.') - end - - if @proc_type.nil? - invalid_properties.push('invalid value for "proc_type", proc_type cannot be nil.') - end - - if @memory.nil? - invalid_properties.push('invalid value for "memory", memory cannot be nil.') - end - - if @disk_size.nil? - invalid_properties.push('invalid value for "disk_size", disk_size cannot be nil.') - end - - if @network_i_ds.nil? - invalid_properties.push('invalid value for "network_i_ds", network_i_ds cannot be nil.') - end - - if @volume_i_ds.nil? - invalid_properties.push('invalid value for "volume_i_ds", volume_i_ds cannot be nil.') - end - - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - if @storage_type.nil? - invalid_properties.push('invalid value for "storage_type", storage_type cannot be nil.') - end - - if @os_type.nil? - invalid_properties.push('invalid value for "os_type", os_type cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @pvm_instance_id.nil? - return false if @server_name.nil? - return false if @image_id.nil? - return false if @processors.nil? - return false if @proc_type.nil? - proc_type_validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped", ""]) - return false unless proc_type_validator.valid?(@proc_type) - return false if @memory.nil? - return false if @disk_size.nil? - return false if @network_i_ds.nil? - return false if @volume_i_ds.nil? - return false if @status.nil? - return false if @storage_type.nil? - return false if @os_type.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] proc_type Object to be assigned - def proc_type=(proc_type) - validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped", ""]) - unless validator.valid?(proc_type) - fail ArgumentError, "invalid value for \"proc_type\", must be one of #{validator.allowable_values}." - end - @proc_type = proc_type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - pvm_instance_id == o.pvm_instance_id && - server_name == o.server_name && - image_id == o.image_id && - processors == o.processors && - minproc == o.minproc && - maxproc == o.maxproc && - proc_type == o.proc_type && - memory == o.memory && - minmem == o.minmem && - maxmem == o.maxmem && - disk_size == o.disk_size && - network_i_ds == o.network_i_ds && - volume_i_ds == o.volume_i_ds && - addresses == o.addresses && - networks == o.networks && - status == o.status && - progress == o.progress && - fault == o.fault && - creation_date == o.creation_date && - updated_date == o.updated_date && - sys_type == o.sys_type && - health == o.health && - migratable == o.migratable && - storage_type == o.storage_type && - software_licenses == o.software_licenses && - srcs == o.srcs && - pin_policy == o.pin_policy && - os_type == o.os_type && - operating_system == o.operating_system && - sap_profile == o.sap_profile && - virtual_cores == o.virtual_cores && - placement_group == o.placement_group - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [pvm_instance_id, server_name, image_id, processors, minproc, maxproc, proc_type, memory, minmem, maxmem, disk_size, network_i_ds, volume_i_ds, addresses, networks, status, progress, fault, creation_date, updated_date, sys_type, health, migratable, storage_type, software_licenses, srcs, pin_policy, os_type, operating_system, sap_profile, virtual_cores, placement_group].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_action.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_action.rb deleted file mode 100644 index cb480e7b..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_action.rb +++ /dev/null @@ -1,248 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceAction - # Name of the action to take; can be start, stop, hard-reboot, soft-reboot, immediate-shutdown, reset-state - attr_accessor :action - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'action' => :'action' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'action' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceAction` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceAction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'action') - self.action = attributes[:'action'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @action.nil? - invalid_properties.push('invalid value for "action", action cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @action.nil? - action_validator = EnumAttributeValidator.new('String', ["start", "stop", "immediate-shutdown", "hard-reboot", "soft-reboot", "reset-state"]) - return false unless action_validator.valid?(@action) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] action Object to be assigned - def action=(action) - validator = EnumAttributeValidator.new('String', ["start", "stop", "immediate-shutdown", "hard-reboot", "soft-reboot", "reset-state"]) - unless validator.valid?(action) - fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}." - end - @action = action - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - action == o.action - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [action].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_add_network.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_add_network.rb deleted file mode 100644 index 89a0bcff..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_add_network.rb +++ /dev/null @@ -1,224 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceAddNetwork - # ID of the network - attr_accessor :network_id - - # The requested ip address of this network interface - attr_accessor :ip_address - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'network_id' => :'networkID', - :'ip_address' => :'ipAddress' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'network_id' => :'String', - :'ip_address' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceAddNetwork` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceAddNetwork`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'network_id') - self.network_id = attributes[:'network_id'] - end - - if attributes.key?(:'ip_address') - self.ip_address = attributes[:'ip_address'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @network_id.nil? - invalid_properties.push('invalid value for "network_id", network_id cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @network_id.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - network_id == o.network_id && - ip_address == o.ip_address - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [network_id, ip_address].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_capture.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_capture.rb deleted file mode 100644 index 94856dd3..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_capture.rb +++ /dev/null @@ -1,317 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceCapture - # Name of the deployable image created for the captured PVMInstance - attr_accessor :capture_name - - # List of Data volume IDs to include in the captured PVMInstance - attr_accessor :capture_volume_i_ds - - # Destination for the deployable image - attr_accessor :capture_destination - - # Cloud Storage Image Path (bucket-name [/folder/../..]) - attr_accessor :cloud_storage_image_path - - # Cloud Storage Region - attr_accessor :cloud_storage_region - - # Cloud Storage Access key - attr_accessor :cloud_storage_access_key - - # Cloud Storage Secret key - attr_accessor :cloud_storage_secret_key - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'capture_name' => :'captureName', - :'capture_volume_i_ds' => :'captureVolumeIDs', - :'capture_destination' => :'captureDestination', - :'cloud_storage_image_path' => :'cloudStorageImagePath', - :'cloud_storage_region' => :'cloudStorageRegion', - :'cloud_storage_access_key' => :'cloudStorageAccessKey', - :'cloud_storage_secret_key' => :'cloudStorageSecretKey' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'capture_name' => :'String', - :'capture_volume_i_ds' => :'Array', - :'capture_destination' => :'String', - :'cloud_storage_image_path' => :'String', - :'cloud_storage_region' => :'String', - :'cloud_storage_access_key' => :'String', - :'cloud_storage_secret_key' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceCapture` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceCapture`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'capture_name') - self.capture_name = attributes[:'capture_name'] - end - - if attributes.key?(:'capture_volume_i_ds') - if (value = attributes[:'capture_volume_i_ds']).is_a?(Array) - self.capture_volume_i_ds = value - end - end - - if attributes.key?(:'capture_destination') - self.capture_destination = attributes[:'capture_destination'] - else - self.capture_destination = 'cloud-storage' - end - - if attributes.key?(:'cloud_storage_image_path') - self.cloud_storage_image_path = attributes[:'cloud_storage_image_path'] - end - - if attributes.key?(:'cloud_storage_region') - self.cloud_storage_region = attributes[:'cloud_storage_region'] - end - - if attributes.key?(:'cloud_storage_access_key') - self.cloud_storage_access_key = attributes[:'cloud_storage_access_key'] - end - - if attributes.key?(:'cloud_storage_secret_key') - self.cloud_storage_secret_key = attributes[:'cloud_storage_secret_key'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @capture_name.nil? - invalid_properties.push('invalid value for "capture_name", capture_name cannot be nil.') - end - - if @capture_destination.nil? - invalid_properties.push('invalid value for "capture_destination", capture_destination cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @capture_name.nil? - return false if @capture_destination.nil? - capture_destination_validator = EnumAttributeValidator.new('String', ["image-catalog", "cloud-storage", "both"]) - return false unless capture_destination_validator.valid?(@capture_destination) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] capture_destination Object to be assigned - def capture_destination=(capture_destination) - validator = EnumAttributeValidator.new('String', ["image-catalog", "cloud-storage", "both"]) - unless validator.valid?(capture_destination) - fail ArgumentError, "invalid value for \"capture_destination\", must be one of #{validator.allowable_values}." - end - @capture_destination = capture_destination - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - capture_name == o.capture_name && - capture_volume_i_ds == o.capture_volume_i_ds && - capture_destination == o.capture_destination && - cloud_storage_image_path == o.cloud_storage_image_path && - cloud_storage_region == o.cloud_storage_region && - cloud_storage_access_key == o.cloud_storage_access_key && - cloud_storage_secret_key == o.cloud_storage_secret_key - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [capture_name, capture_volume_i_ds, capture_destination, cloud_storage_image_path, cloud_storage_region, cloud_storage_access_key, cloud_storage_secret_key].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_clone.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_clone.rb deleted file mode 100644 index e774955e..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_clone.rb +++ /dev/null @@ -1,328 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceClone - # Name of the server to create - attr_accessor :name - - # Number of processors allocated - attr_accessor :processors - - # Processor type (dedicated, shared, capped) - attr_accessor :proc_type - - # Amount of memory allocated (in GB) - attr_accessor :memory - - # The pvm instance networks information - attr_accessor :networks - - # List of volume IDs - attr_accessor :volume_i_ds - - # The name of the SSH key pair provided to the server for authenticating users (looked up in the tenant's list of keys) - attr_accessor :key_pair_name - - attr_accessor :software_licenses - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'processors' => :'processors', - :'proc_type' => :'procType', - :'memory' => :'memory', - :'networks' => :'networks', - :'volume_i_ds' => :'volumeIDs', - :'key_pair_name' => :'keyPairName', - :'software_licenses' => :'softwareLicenses' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'processors' => :'Float', - :'proc_type' => :'String', - :'memory' => :'Float', - :'networks' => :'Array', - :'volume_i_ds' => :'Array', - :'key_pair_name' => :'String', - :'software_licenses' => :'SoftwareLicenses' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceClone` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceClone`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'processors') - self.processors = attributes[:'processors'] - end - - if attributes.key?(:'proc_type') - self.proc_type = attributes[:'proc_type'] - else - self.proc_type = 'dedicated' - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'networks') - if (value = attributes[:'networks']).is_a?(Array) - self.networks = value - end - end - - if attributes.key?(:'volume_i_ds') - if (value = attributes[:'volume_i_ds']).is_a?(Array) - self.volume_i_ds = value - end - end - - if attributes.key?(:'key_pair_name') - self.key_pair_name = attributes[:'key_pair_name'] - end - - if attributes.key?(:'software_licenses') - self.software_licenses = attributes[:'software_licenses'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @networks.nil? - invalid_properties.push('invalid value for "networks", networks cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - proc_type_validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - return false unless proc_type_validator.valid?(@proc_type) - return false if @networks.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] proc_type Object to be assigned - def proc_type=(proc_type) - validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - unless validator.valid?(proc_type) - fail ArgumentError, "invalid value for \"proc_type\", must be one of #{validator.allowable_values}." - end - @proc_type = proc_type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - processors == o.processors && - proc_type == o.proc_type && - memory == o.memory && - networks == o.networks && - volume_i_ds == o.volume_i_ds && - key_pair_name == o.key_pair_name && - software_licenses == o.software_licenses - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, processors, proc_type, memory, networks, volume_i_ds, key_pair_name, software_licenses].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_console.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_console.rb deleted file mode 100644 index cbce79f0..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_console.rb +++ /dev/null @@ -1,214 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceConsole - # The URL to the noVNC console for the PVM instance - attr_accessor :console_url - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'console_url' => :'consoleURL' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'console_url' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceConsole` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceConsole`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'console_url') - self.console_url = attributes[:'console_url'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @console_url.nil? - invalid_properties.push('invalid value for "console_url", console_url cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @console_url.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - console_url == o.console_url - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [console_url].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_create.rb deleted file mode 100644 index cf06b35d..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_create.rb +++ /dev/null @@ -1,493 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceCreate - # Name of the server to create - attr_accessor :server_name - - # Number of duplicate instances to create in this request - attr_accessor :replicants - - # How to name the created vms - attr_accessor :replicant_naming_scheme - - # Affinity policy for replicants being created; affinity for the same host, anti-affinity for different hosts, none for no preference - attr_accessor :replicant_affinity_policy - - # Image ID of the image to use for the server - attr_accessor :image_id - - # Number of processors allocated - attr_accessor :processors - - # Processor type (dedicated, shared, capped) - attr_accessor :proc_type - - # Amount of memory allocated (in GB) - attr_accessor :memory - - # (deprecated - replaced by networks) List of Network IDs - attr_accessor :network_i_ds - - # The pvm instance networks information - attr_accessor :networks - - # List of volume IDs - attr_accessor :volume_i_ds - - # The name of the SSH key pair provided to the server for authenticating users (looked up in the tenant's list of keys) - attr_accessor :key_pair_name - - # System type used to host the instance - attr_accessor :sys_type - - # Indicates if the server is allowed to migrate between hosts - attr_accessor :migratable - - # Cloud-init user-defined data. The user-defined data is made available to the VM instance as a config drive. - attr_accessor :user_data - - # Storage type for server deployment. Only valid when you deploy one of the IBM supplied **stock** images. Storage type for a custom image (an imported image or an image that is created from a VM capture) defaults to the storage type the image was created in - attr_accessor :storage_type - - attr_accessor :software_licenses - - attr_accessor :pin_policy - - attr_accessor :virtual_cores - - # The placement group for the server - attr_accessor :placement_group - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'server_name' => :'serverName', - :'replicants' => :'replicants', - :'replicant_naming_scheme' => :'replicantNamingScheme', - :'replicant_affinity_policy' => :'replicantAffinityPolicy', - :'image_id' => :'imageID', - :'processors' => :'processors', - :'proc_type' => :'procType', - :'memory' => :'memory', - :'network_i_ds' => :'networkIDs', - :'networks' => :'networks', - :'volume_i_ds' => :'volumeIDs', - :'key_pair_name' => :'keyPairName', - :'sys_type' => :'sysType', - :'migratable' => :'migratable', - :'user_data' => :'userData', - :'storage_type' => :'storageType', - :'software_licenses' => :'softwareLicenses', - :'pin_policy' => :'pinPolicy', - :'virtual_cores' => :'virtualCores', - :'placement_group' => :'placementGroup' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'server_name' => :'String', - :'replicants' => :'Float', - :'replicant_naming_scheme' => :'String', - :'replicant_affinity_policy' => :'String', - :'image_id' => :'String', - :'processors' => :'Float', - :'proc_type' => :'String', - :'memory' => :'Float', - :'network_i_ds' => :'Array', - :'networks' => :'Array', - :'volume_i_ds' => :'Array', - :'key_pair_name' => :'String', - :'sys_type' => :'String', - :'migratable' => :'Boolean', - :'user_data' => :'String', - :'storage_type' => :'String', - :'software_licenses' => :'SoftwareLicenses', - :'pin_policy' => :'PinPolicy', - :'virtual_cores' => :'VirtualCores', - :'placement_group' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'server_name') - self.server_name = attributes[:'server_name'] - end - - if attributes.key?(:'replicants') - self.replicants = attributes[:'replicants'] - end - - if attributes.key?(:'replicant_naming_scheme') - self.replicant_naming_scheme = attributes[:'replicant_naming_scheme'] - else - self.replicant_naming_scheme = 'suffix' - end - - if attributes.key?(:'replicant_affinity_policy') - self.replicant_affinity_policy = attributes[:'replicant_affinity_policy'] - else - self.replicant_affinity_policy = 'none' - end - - if attributes.key?(:'image_id') - self.image_id = attributes[:'image_id'] - end - - if attributes.key?(:'processors') - self.processors = attributes[:'processors'] - end - - if attributes.key?(:'proc_type') - self.proc_type = attributes[:'proc_type'] - else - self.proc_type = 'dedicated' - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'network_i_ds') - if (value = attributes[:'network_i_ds']).is_a?(Array) - self.network_i_ds = value - end - end - - if attributes.key?(:'networks') - if (value = attributes[:'networks']).is_a?(Array) - self.networks = value - end - end - - if attributes.key?(:'volume_i_ds') - if (value = attributes[:'volume_i_ds']).is_a?(Array) - self.volume_i_ds = value - end - end - - if attributes.key?(:'key_pair_name') - self.key_pair_name = attributes[:'key_pair_name'] - end - - if attributes.key?(:'sys_type') - self.sys_type = attributes[:'sys_type'] - end - - if attributes.key?(:'migratable') - self.migratable = attributes[:'migratable'] - else - self.migratable = true - end - - if attributes.key?(:'user_data') - self.user_data = attributes[:'user_data'] - end - - if attributes.key?(:'storage_type') - self.storage_type = attributes[:'storage_type'] - end - - if attributes.key?(:'software_licenses') - self.software_licenses = attributes[:'software_licenses'] - end - - if attributes.key?(:'pin_policy') - self.pin_policy = attributes[:'pin_policy'] - end - - if attributes.key?(:'virtual_cores') - self.virtual_cores = attributes[:'virtual_cores'] - end - - if attributes.key?(:'placement_group') - self.placement_group = attributes[:'placement_group'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @server_name.nil? - invalid_properties.push('invalid value for "server_name", server_name cannot be nil.') - end - - if @image_id.nil? - invalid_properties.push('invalid value for "image_id", image_id cannot be nil.') - end - - if @processors.nil? - invalid_properties.push('invalid value for "processors", processors cannot be nil.') - end - - if @proc_type.nil? - invalid_properties.push('invalid value for "proc_type", proc_type cannot be nil.') - end - - if @memory.nil? - invalid_properties.push('invalid value for "memory", memory cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @server_name.nil? - replicant_naming_scheme_validator = EnumAttributeValidator.new('String', ["prefix", "suffix"]) - return false unless replicant_naming_scheme_validator.valid?(@replicant_naming_scheme) - replicant_affinity_policy_validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity", "none"]) - return false unless replicant_affinity_policy_validator.valid?(@replicant_affinity_policy) - return false if @image_id.nil? - return false if @processors.nil? - return false if @proc_type.nil? - proc_type_validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - return false unless proc_type_validator.valid?(@proc_type) - return false if @memory.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] replicant_naming_scheme Object to be assigned - def replicant_naming_scheme=(replicant_naming_scheme) - validator = EnumAttributeValidator.new('String', ["prefix", "suffix"]) - unless validator.valid?(replicant_naming_scheme) - fail ArgumentError, "invalid value for \"replicant_naming_scheme\", must be one of #{validator.allowable_values}." - end - @replicant_naming_scheme = replicant_naming_scheme - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] replicant_affinity_policy Object to be assigned - def replicant_affinity_policy=(replicant_affinity_policy) - validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity", "none"]) - unless validator.valid?(replicant_affinity_policy) - fail ArgumentError, "invalid value for \"replicant_affinity_policy\", must be one of #{validator.allowable_values}." - end - @replicant_affinity_policy = replicant_affinity_policy - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] proc_type Object to be assigned - def proc_type=(proc_type) - validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - unless validator.valid?(proc_type) - fail ArgumentError, "invalid value for \"proc_type\", must be one of #{validator.allowable_values}." - end - @proc_type = proc_type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - server_name == o.server_name && - replicants == o.replicants && - replicant_naming_scheme == o.replicant_naming_scheme && - replicant_affinity_policy == o.replicant_affinity_policy && - image_id == o.image_id && - processors == o.processors && - proc_type == o.proc_type && - memory == o.memory && - network_i_ds == o.network_i_ds && - networks == o.networks && - volume_i_ds == o.volume_i_ds && - key_pair_name == o.key_pair_name && - sys_type == o.sys_type && - migratable == o.migratable && - user_data == o.user_data && - storage_type == o.storage_type && - software_licenses == o.software_licenses && - pin_policy == o.pin_policy && - virtual_cores == o.virtual_cores && - placement_group == o.placement_group - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [server_name, replicants, replicant_naming_scheme, replicant_affinity_policy, image_id, processors, proc_type, memory, network_i_ds, networks, volume_i_ds, key_pair_name, sys_type, migratable, user_data, storage_type, software_licenses, pin_policy, virtual_cores, placement_group].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_fault.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_fault.rb deleted file mode 100644 index 007a3848..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_fault.rb +++ /dev/null @@ -1,240 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # Fault information (if occurred) - class PVMInstanceFault - # The fault status of the server, if any - attr_accessor :code - - # The fault details of the server, if any - attr_accessor :details - - # The fault message of the server, if any - attr_accessor :message - - # The date and time the fault occurred - attr_accessor :created - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'code' => :'code', - :'details' => :'details', - :'message' => :'message', - :'created' => :'created' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'code' => :'Float', - :'details' => :'String', - :'message' => :'String', - :'created' => :'DateTime' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceFault` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceFault`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'code') - self.code = attributes[:'code'] - end - - if attributes.key?(:'details') - self.details = attributes[:'details'] - end - - if attributes.key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.key?(:'created') - self.created = attributes[:'created'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - code == o.code && - details == o.details && - message == o.message && - created == o.created - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [code, details, message, created].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_health.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_health.rb deleted file mode 100644 index 8b2b556e..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_health.rb +++ /dev/null @@ -1,230 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # PVM's health status details - class PVMInstanceHealth - # The PVM's health status value - attr_accessor :status - - # Date/Time of PVM last health status change - attr_accessor :last_update - - # The health status reason, if any - attr_accessor :reason - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'status' => :'status', - :'last_update' => :'lastUpdate', - :'reason' => :'reason' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'status' => :'String', - :'last_update' => :'String', - :'reason' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceHealth` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceHealth`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'last_update') - self.last_update = attributes[:'last_update'] - end - - if attributes.key?(:'reason') - self.reason = attributes[:'reason'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - status == o.status && - last_update == o.last_update && - reason == o.reason - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [status, last_update, reason].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_multi_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_multi_create.rb deleted file mode 100644 index 3a51d111..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_multi_create.rb +++ /dev/null @@ -1,279 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceMultiCreate - # Number of pvm-instances to create - attr_accessor :count - - # Affinity policy for pvm-instances being created; affinity for the same host, anti-affinity for different hosts, none for no preference - attr_accessor :affinity_policy - - # Where to place the numerical number of the multi-created instance - attr_accessor :numerical - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'count' => :'count', - :'affinity_policy' => :'affinityPolicy', - :'numerical' => :'numerical' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'count' => :'Integer', - :'affinity_policy' => :'String', - :'numerical' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceMultiCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceMultiCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'count') - self.count = attributes[:'count'] - end - - if attributes.key?(:'affinity_policy') - self.affinity_policy = attributes[:'affinity_policy'] - else - self.affinity_policy = 'none' - end - - if attributes.key?(:'numerical') - self.numerical = attributes[:'numerical'] - else - self.numerical = 'suffix' - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - affinity_policy_validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity", "none"]) - return false unless affinity_policy_validator.valid?(@affinity_policy) - numerical_validator = EnumAttributeValidator.new('String', ["prefix", "suffix"]) - return false unless numerical_validator.valid?(@numerical) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] affinity_policy Object to be assigned - def affinity_policy=(affinity_policy) - validator = EnumAttributeValidator.new('String', ["affinity", "anti-affinity", "none"]) - unless validator.valid?(affinity_policy) - fail ArgumentError, "invalid value for \"affinity_policy\", must be one of #{validator.allowable_values}." - end - @affinity_policy = affinity_policy - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] numerical Object to be assigned - def numerical=(numerical) - validator = EnumAttributeValidator.new('String', ["prefix", "suffix"]) - unless validator.valid?(numerical) - fail ArgumentError, "invalid value for \"numerical\", must be one of #{validator.allowable_values}." - end - @numerical = numerical - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - count == o.count && - affinity_policy == o.affinity_policy && - numerical == o.numerical - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [count, affinity_policy, numerical].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_network.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_network.rb deleted file mode 100644 index 158a641b..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_network.rb +++ /dev/null @@ -1,290 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # A map containing information about a network address - class PVMInstanceNetwork - # The version of the information provided - attr_accessor :version - - # ID of the network - attr_accessor :network_id - - # The name of the network the address is on - attr_accessor :network_name - - # The mac address of the network interface - attr_accessor :mac_address - - # The address type (fixed or dynamic) - attr_accessor :type - - # (deprecated - replaced by ipAddress) - attr_accessor :ip - - # The ip address of this network interface - attr_accessor :ip_address - - # The external ip address (for pub-vlan networks) - attr_accessor :external_ip - - # Link to PVM Instance Network - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'version' => :'version', - :'network_id' => :'networkID', - :'network_name' => :'networkName', - :'mac_address' => :'macAddress', - :'type' => :'type', - :'ip' => :'ip', - :'ip_address' => :'ipAddress', - :'external_ip' => :'externalIP', - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'version' => :'Float', - :'network_id' => :'String', - :'network_name' => :'String', - :'mac_address' => :'String', - :'type' => :'String', - :'ip' => :'String', - :'ip_address' => :'String', - :'external_ip' => :'String', - :'href' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceNetwork` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceNetwork`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'version') - self.version = attributes[:'version'] - end - - if attributes.key?(:'network_id') - self.network_id = attributes[:'network_id'] - end - - if attributes.key?(:'network_name') - self.network_name = attributes[:'network_name'] - end - - if attributes.key?(:'mac_address') - self.mac_address = attributes[:'mac_address'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - end - - if attributes.key?(:'ip') - self.ip = attributes[:'ip'] - end - - if attributes.key?(:'ip_address') - self.ip_address = attributes[:'ip_address'] - end - - if attributes.key?(:'external_ip') - self.external_ip = attributes[:'external_ip'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - version == o.version && - network_id == o.network_id && - network_name == o.network_name && - mac_address == o.mac_address && - type == o.type && - ip == o.ip && - ip_address == o.ip_address && - external_ip == o.external_ip && - href == o.href - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [version, network_id, network_name, mac_address, type, ip, ip_address, external_ip, href].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_networks.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_networks.rb deleted file mode 100644 index 07469e1a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_networks.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceNetworks - # PVM Instance Networks - attr_accessor :networks - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'networks' => :'networks' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'networks' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceNetworks` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceNetworks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'networks') - if (value = attributes[:'networks']).is_a?(Array) - self.networks = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @networks.nil? - invalid_properties.push('invalid value for "networks", networks cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @networks.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - networks == o.networks - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [networks].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_operation.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_operation.rb deleted file mode 100644 index 8c6e622e..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_operation.rb +++ /dev/null @@ -1,262 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceOperation - # Name of the operation to execute; can be job or boot - attr_accessor :operation_type - - attr_accessor :operation - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'operation_type' => :'operationType', - :'operation' => :'operation' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'operation_type' => :'String', - :'operation' => :'Operations' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceOperation` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceOperation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'operation_type') - self.operation_type = attributes[:'operation_type'] - end - - if attributes.key?(:'operation') - self.operation = attributes[:'operation'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @operation_type.nil? - invalid_properties.push('invalid value for "operation_type", operation_type cannot be nil.') - end - - if @operation.nil? - invalid_properties.push('invalid value for "operation", operation cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @operation_type.nil? - operation_type_validator = EnumAttributeValidator.new('String', ["job", "boot"]) - return false unless operation_type_validator.valid?(@operation_type) - return false if @operation.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] operation_type Object to be assigned - def operation_type=(operation_type) - validator = EnumAttributeValidator.new('String', ["job", "boot"]) - unless validator.valid?(operation_type) - fail ArgumentError, "invalid value for \"operation_type\", must be one of #{validator.allowable_values}." - end - @operation_type = operation_type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - operation_type == o.operation_type && - operation == o.operation - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [operation_type, operation].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_reference.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_reference.rb deleted file mode 100644 index 693d7097..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_reference.rb +++ /dev/null @@ -1,566 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceReference - # PCloud PVM Instance ID - attr_accessor :pvm_instance_id - - # Name of the server - attr_accessor :server_name - - # The ImageID used by the server - attr_accessor :image_id - - # Number of processors allocated - attr_accessor :processors - - # Minimum number of processors that can be allocated (for resize) - attr_accessor :minproc - - # Maximum number of processors that can be allocated (for resize) - attr_accessor :maxproc - - # Processor type (dedicated, shared, capped) - attr_accessor :proc_type - - # Amount of memory allocated (in GB) - attr_accessor :memory - - # Minimum amount of memory that can be allocated (in GB, for resize) - attr_accessor :minmem - - # Maximum amount of memory that can be allocated (in GB, for resize) - attr_accessor :maxmem - - # Size of allocated disk (in GB) - attr_accessor :disk_size - - # (deprecated - replaced by networks) The list of addresses and their network information - attr_accessor :addresses - - # The list of addresses and their network information - attr_accessor :networks - - # The status of the instance - attr_accessor :status - - # The progress of an operation - attr_accessor :progress - - attr_accessor :fault - - # Date/Time of PVM creation - attr_accessor :creation_date - - # Date/Time of PVM last update - attr_accessor :updated_date - - # System type used to host the instance - attr_accessor :sys_type - - attr_accessor :health - - # Link to Cloud Instance resource - attr_accessor :href - - attr_accessor :software_licenses - - # The pvm instance SRC lists - attr_accessor :srcs - - # VM pinning policy to use [none, soft, hard] - attr_accessor :pin_policy - - # Type of the OS [aix, ibmi, redhat, sles] - attr_accessor :os_type - - # OS system information (usually version and build) - attr_accessor :operating_system - - attr_accessor :sap_profile - - attr_accessor :virtual_cores - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'pvm_instance_id' => :'pvmInstanceID', - :'server_name' => :'serverName', - :'image_id' => :'imageID', - :'processors' => :'processors', - :'minproc' => :'minproc', - :'maxproc' => :'maxproc', - :'proc_type' => :'procType', - :'memory' => :'memory', - :'minmem' => :'minmem', - :'maxmem' => :'maxmem', - :'disk_size' => :'diskSize', - :'addresses' => :'addresses', - :'networks' => :'networks', - :'status' => :'status', - :'progress' => :'progress', - :'fault' => :'fault', - :'creation_date' => :'creationDate', - :'updated_date' => :'updatedDate', - :'sys_type' => :'sysType', - :'health' => :'health', - :'href' => :'href', - :'software_licenses' => :'softwareLicenses', - :'srcs' => :'srcs', - :'pin_policy' => :'pinPolicy', - :'os_type' => :'osType', - :'operating_system' => :'operatingSystem', - :'sap_profile' => :'sapProfile', - :'virtual_cores' => :'virtualCores' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'pvm_instance_id' => :'String', - :'server_name' => :'String', - :'image_id' => :'String', - :'processors' => :'Float', - :'minproc' => :'Float', - :'maxproc' => :'Float', - :'proc_type' => :'String', - :'memory' => :'Float', - :'minmem' => :'Float', - :'maxmem' => :'Float', - :'disk_size' => :'Float', - :'addresses' => :'Array', - :'networks' => :'Array', - :'status' => :'String', - :'progress' => :'Float', - :'fault' => :'PVMInstanceFault', - :'creation_date' => :'DateTime', - :'updated_date' => :'DateTime', - :'sys_type' => :'String', - :'health' => :'PVMInstanceHealth', - :'href' => :'String', - :'software_licenses' => :'SoftwareLicenses', - :'srcs' => :'Array>', - :'pin_policy' => :'String', - :'os_type' => :'String', - :'operating_system' => :'String', - :'sap_profile' => :'SAPProfileReference', - :'virtual_cores' => :'VirtualCores' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceReference` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'pvm_instance_id') - self.pvm_instance_id = attributes[:'pvm_instance_id'] - end - - if attributes.key?(:'server_name') - self.server_name = attributes[:'server_name'] - end - - if attributes.key?(:'image_id') - self.image_id = attributes[:'image_id'] - end - - if attributes.key?(:'processors') - self.processors = attributes[:'processors'] - end - - if attributes.key?(:'minproc') - self.minproc = attributes[:'minproc'] - end - - if attributes.key?(:'maxproc') - self.maxproc = attributes[:'maxproc'] - end - - if attributes.key?(:'proc_type') - self.proc_type = attributes[:'proc_type'] - else - self.proc_type = 'dedicated' - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'minmem') - self.minmem = attributes[:'minmem'] - end - - if attributes.key?(:'maxmem') - self.maxmem = attributes[:'maxmem'] - end - - if attributes.key?(:'disk_size') - self.disk_size = attributes[:'disk_size'] - end - - if attributes.key?(:'addresses') - if (value = attributes[:'addresses']).is_a?(Array) - self.addresses = value - end - end - - if attributes.key?(:'networks') - if (value = attributes[:'networks']).is_a?(Array) - self.networks = value - end - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'progress') - self.progress = attributes[:'progress'] - end - - if attributes.key?(:'fault') - self.fault = attributes[:'fault'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'updated_date') - self.updated_date = attributes[:'updated_date'] - end - - if attributes.key?(:'sys_type') - self.sys_type = attributes[:'sys_type'] - end - - if attributes.key?(:'health') - self.health = attributes[:'health'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - - if attributes.key?(:'software_licenses') - self.software_licenses = attributes[:'software_licenses'] - end - - if attributes.key?(:'srcs') - if (value = attributes[:'srcs']).is_a?(Array) - self.srcs = value - end - end - - if attributes.key?(:'pin_policy') - self.pin_policy = attributes[:'pin_policy'] - end - - if attributes.key?(:'os_type') - self.os_type = attributes[:'os_type'] - end - - if attributes.key?(:'operating_system') - self.operating_system = attributes[:'operating_system'] - end - - if attributes.key?(:'sap_profile') - self.sap_profile = attributes[:'sap_profile'] - end - - if attributes.key?(:'virtual_cores') - self.virtual_cores = attributes[:'virtual_cores'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @pvm_instance_id.nil? - invalid_properties.push('invalid value for "pvm_instance_id", pvm_instance_id cannot be nil.') - end - - if @server_name.nil? - invalid_properties.push('invalid value for "server_name", server_name cannot be nil.') - end - - if @image_id.nil? - invalid_properties.push('invalid value for "image_id", image_id cannot be nil.') - end - - if @processors.nil? - invalid_properties.push('invalid value for "processors", processors cannot be nil.') - end - - if @proc_type.nil? - invalid_properties.push('invalid value for "proc_type", proc_type cannot be nil.') - end - - if @memory.nil? - invalid_properties.push('invalid value for "memory", memory cannot be nil.') - end - - if @disk_size.nil? - invalid_properties.push('invalid value for "disk_size", disk_size cannot be nil.') - end - - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - if @href.nil? - invalid_properties.push('invalid value for "href", href cannot be nil.') - end - - if @os_type.nil? - invalid_properties.push('invalid value for "os_type", os_type cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @pvm_instance_id.nil? - return false if @server_name.nil? - return false if @image_id.nil? - return false if @processors.nil? - return false if @proc_type.nil? - proc_type_validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped", ""]) - return false unless proc_type_validator.valid?(@proc_type) - return false if @memory.nil? - return false if @disk_size.nil? - return false if @status.nil? - return false if @href.nil? - return false if @os_type.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] proc_type Object to be assigned - def proc_type=(proc_type) - validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped", ""]) - unless validator.valid?(proc_type) - fail ArgumentError, "invalid value for \"proc_type\", must be one of #{validator.allowable_values}." - end - @proc_type = proc_type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - pvm_instance_id == o.pvm_instance_id && - server_name == o.server_name && - image_id == o.image_id && - processors == o.processors && - minproc == o.minproc && - maxproc == o.maxproc && - proc_type == o.proc_type && - memory == o.memory && - minmem == o.minmem && - maxmem == o.maxmem && - disk_size == o.disk_size && - addresses == o.addresses && - networks == o.networks && - status == o.status && - progress == o.progress && - fault == o.fault && - creation_date == o.creation_date && - updated_date == o.updated_date && - sys_type == o.sys_type && - health == o.health && - href == o.href && - software_licenses == o.software_licenses && - srcs == o.srcs && - pin_policy == o.pin_policy && - os_type == o.os_type && - operating_system == o.operating_system && - sap_profile == o.sap_profile && - virtual_cores == o.virtual_cores - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [pvm_instance_id, server_name, image_id, processors, minproc, maxproc, proc_type, memory, minmem, maxmem, disk_size, addresses, networks, status, progress, fault, creation_date, updated_date, sys_type, health, href, software_licenses, srcs, pin_policy, os_type, operating_system, sap_profile, virtual_cores].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_remove_network.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_remove_network.rb deleted file mode 100644 index 56042f8b..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_remove_network.rb +++ /dev/null @@ -1,209 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceRemoveNetwork - # The mac address of the network interface to be removed - attr_accessor :mac_address - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'mac_address' => :'macAddress' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'mac_address' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceRemoveNetwork` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceRemoveNetwork`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'mac_address') - self.mac_address = attributes[:'mac_address'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - mac_address == o.mac_address - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [mac_address].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_update.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_update.rb deleted file mode 100644 index 63200453..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_update.rb +++ /dev/null @@ -1,322 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceUpdate - # Name of the server to create - attr_accessor :server_name - - # Number of processors allocated - attr_accessor :processors - - # Processor type (dedicated, shared, capped) - attr_accessor :proc_type - - # Amount of memory allocated (in GB) - attr_accessor :memory - - # Indicates if the server is allowed to migrate between hosts - attr_accessor :migratable - - attr_accessor :software_licenses - - attr_accessor :pin_policy - - # If an SAP pvm-instance, the SAP profile ID to switch to (only while shutdown) - attr_accessor :sap_profile_id - - attr_accessor :virtual_cores - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'server_name' => :'serverName', - :'processors' => :'processors', - :'proc_type' => :'procType', - :'memory' => :'memory', - :'migratable' => :'migratable', - :'software_licenses' => :'softwareLicenses', - :'pin_policy' => :'pinPolicy', - :'sap_profile_id' => :'sapProfileID', - :'virtual_cores' => :'virtualCores' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'server_name' => :'String', - :'processors' => :'Float', - :'proc_type' => :'String', - :'memory' => :'Float', - :'migratable' => :'Boolean', - :'software_licenses' => :'SoftwareLicenses', - :'pin_policy' => :'PinPolicy', - :'sap_profile_id' => :'String', - :'virtual_cores' => :'VirtualCores' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceUpdate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'server_name') - self.server_name = attributes[:'server_name'] - end - - if attributes.key?(:'processors') - self.processors = attributes[:'processors'] - end - - if attributes.key?(:'proc_type') - self.proc_type = attributes[:'proc_type'] - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'migratable') - self.migratable = attributes[:'migratable'] - else - self.migratable = true - end - - if attributes.key?(:'software_licenses') - self.software_licenses = attributes[:'software_licenses'] - end - - if attributes.key?(:'pin_policy') - self.pin_policy = attributes[:'pin_policy'] - end - - if attributes.key?(:'sap_profile_id') - self.sap_profile_id = attributes[:'sap_profile_id'] - end - - if attributes.key?(:'virtual_cores') - self.virtual_cores = attributes[:'virtual_cores'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - proc_type_validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - return false unless proc_type_validator.valid?(@proc_type) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] proc_type Object to be assigned - def proc_type=(proc_type) - validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - unless validator.valid?(proc_type) - fail ArgumentError, "invalid value for \"proc_type\", must be one of #{validator.allowable_values}." - end - @proc_type = proc_type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - server_name == o.server_name && - processors == o.processors && - proc_type == o.proc_type && - memory == o.memory && - migratable == o.migratable && - software_licenses == o.software_licenses && - pin_policy == o.pin_policy && - sap_profile_id == o.sap_profile_id && - virtual_cores == o.virtual_cores - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [server_name, processors, proc_type, memory, migratable, software_licenses, pin_policy, sap_profile_id, virtual_cores].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_update_response.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_update_response.rb deleted file mode 100644 index c32365b5..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_update_response.rb +++ /dev/null @@ -1,292 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceUpdateResponse - # Name of the server to create - attr_accessor :server_name - - # URL to check for status of the operation (for now, just the URL for the GET on the server, which has status information from powervc) - attr_accessor :status_url - - # Number of processors allocated - attr_accessor :processors - - # Processor type (dedicated, shared, capped) - attr_accessor :proc_type - - # Amount of memory allocated (in GB) - attr_accessor :memory - - attr_accessor :pin_policy - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'server_name' => :'serverName', - :'status_url' => :'statusUrl', - :'processors' => :'processors', - :'proc_type' => :'procType', - :'memory' => :'memory', - :'pin_policy' => :'pinPolicy' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'server_name' => :'String', - :'status_url' => :'String', - :'processors' => :'Float', - :'proc_type' => :'String', - :'memory' => :'Float', - :'pin_policy' => :'PinPolicy' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceUpdateResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceUpdateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'server_name') - self.server_name = attributes[:'server_name'] - end - - if attributes.key?(:'status_url') - self.status_url = attributes[:'status_url'] - end - - if attributes.key?(:'processors') - self.processors = attributes[:'processors'] - end - - if attributes.key?(:'proc_type') - self.proc_type = attributes[:'proc_type'] - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'pin_policy') - self.pin_policy = attributes[:'pin_policy'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - proc_type_validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - return false unless proc_type_validator.valid?(@proc_type) - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] proc_type Object to be assigned - def proc_type=(proc_type) - validator = EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - unless validator.valid?(proc_type) - fail ArgumentError, "invalid value for \"proc_type\", must be one of #{validator.allowable_values}." - end - @proc_type = proc_type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - server_name == o.server_name && - status_url == o.status_url && - processors == o.processors && - proc_type == o.proc_type && - memory == o.memory && - pin_policy == o.pin_policy - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [server_name, status_url, processors, proc_type, memory, pin_policy].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_volume_update.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_volume_update.rb deleted file mode 100644 index 10c5b274..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instance_volume_update.rb +++ /dev/null @@ -1,214 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstanceVolumeUpdate - # Indicates if the volume should be deleted when the PVMInstance is terminated - attr_accessor :delete_on_termination - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'delete_on_termination' => :'deleteOnTermination' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'delete_on_termination' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstanceVolumeUpdate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstanceVolumeUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'delete_on_termination') - self.delete_on_termination = attributes[:'delete_on_termination'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @delete_on_termination.nil? - invalid_properties.push('invalid value for "delete_on_termination", delete_on_termination cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @delete_on_termination.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - delete_on_termination == o.delete_on_termination - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [delete_on_termination].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instances.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instances.rb deleted file mode 100644 index 4fb1a78d..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/pvm_instances.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class PVMInstances - # PVM Instance References - attr_accessor :pvm_instances - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'pvm_instances' => :'pvmInstances' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'pvm_instances' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::PVMInstances` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::PVMInstances`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'pvm_instances') - if (value = attributes[:'pvm_instances']).is_a?(Array) - self.pvm_instances = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @pvm_instances.nil? - invalid_properties.push('invalid value for "pvm_instances", pvm_instances cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @pvm_instances.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - pvm_instances == o.pvm_instances - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [pvm_instances].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_create.rb deleted file mode 100644 index a301df0d..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_create.rb +++ /dev/null @@ -1,311 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SAPCreate - # Name of the sap pvm-instance - attr_accessor :name - - # Image ID of the sap image to use for the server - attr_accessor :image_id - - # SAP Profile ID for the amount of cores and memory - attr_accessor :profile_id - - # The pvm instance networks information - attr_accessor :networks - - # List of Volume IDs to attach to the pvm-instance on creation - attr_accessor :volume_i_ds - - attr_accessor :instances - - # The name of the SSH Key to provide to the server for authenticating - attr_accessor :ssh_key_name - - # Cloud-init user-defined data. The user-defined data is made available to the VM instance as a config drive. - attr_accessor :user_data - - attr_accessor :pin_policy - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'image_id' => :'imageID', - :'profile_id' => :'profileID', - :'networks' => :'networks', - :'volume_i_ds' => :'volumeIDs', - :'instances' => :'instances', - :'ssh_key_name' => :'sshKeyName', - :'user_data' => :'userData', - :'pin_policy' => :'pinPolicy' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'image_id' => :'String', - :'profile_id' => :'String', - :'networks' => :'Array', - :'volume_i_ds' => :'Array', - :'instances' => :'PVMInstanceMultiCreate', - :'ssh_key_name' => :'String', - :'user_data' => :'String', - :'pin_policy' => :'PinPolicy' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SAPCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SAPCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'image_id') - self.image_id = attributes[:'image_id'] - end - - if attributes.key?(:'profile_id') - self.profile_id = attributes[:'profile_id'] - end - - if attributes.key?(:'networks') - if (value = attributes[:'networks']).is_a?(Array) - self.networks = value - end - end - - if attributes.key?(:'volume_i_ds') - if (value = attributes[:'volume_i_ds']).is_a?(Array) - self.volume_i_ds = value - end - end - - if attributes.key?(:'instances') - self.instances = attributes[:'instances'] - end - - if attributes.key?(:'ssh_key_name') - self.ssh_key_name = attributes[:'ssh_key_name'] - end - - if attributes.key?(:'user_data') - self.user_data = attributes[:'user_data'] - end - - if attributes.key?(:'pin_policy') - self.pin_policy = attributes[:'pin_policy'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @image_id.nil? - invalid_properties.push('invalid value for "image_id", image_id cannot be nil.') - end - - if @profile_id.nil? - invalid_properties.push('invalid value for "profile_id", profile_id cannot be nil.') - end - - if @networks.nil? - invalid_properties.push('invalid value for "networks", networks cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - return false if @image_id.nil? - return false if @profile_id.nil? - return false if @networks.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - image_id == o.image_id && - profile_id == o.profile_id && - networks == o.networks && - volume_i_ds == o.volume_i_ds && - instances == o.instances && - ssh_key_name == o.ssh_key_name && - user_data == o.user_data && - pin_policy == o.pin_policy - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, image_id, profile_id, networks, volume_i_ds, instances, ssh_key_name, user_data, pin_policy].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profile.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profile.rb deleted file mode 100644 index 8ca839da..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profile.rb +++ /dev/null @@ -1,310 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SAPProfile - # SAP Profile ID - attr_accessor :profile_id - - # Type of profile - attr_accessor :type - - # Amount of cores - attr_accessor :cores - - # Amount of memory (in GB) - attr_accessor :memory - - # Has certification been performed on profile - attr_accessor :certified - - class EnumAttributeValidator - attr_reader :datatype - attr_reader :allowable_values - - def initialize(datatype, allowable_values) - @allowable_values = allowable_values.map do |value| - case datatype.to_s - when /Integer/i - value.to_i - when /Float/i - value.to_f - else - value - end - end - end - - def valid?(value) - !value || allowable_values.include?(value) - end - end - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'profile_id' => :'profileID', - :'type' => :'type', - :'cores' => :'cores', - :'memory' => :'memory', - :'certified' => :'certified' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'profile_id' => :'String', - :'type' => :'String', - :'cores' => :'Integer', - :'memory' => :'Integer', - :'certified' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SAPProfile` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SAPProfile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'profile_id') - self.profile_id = attributes[:'profile_id'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - else - self.type = 'balanced' - end - - if attributes.key?(:'cores') - self.cores = attributes[:'cores'] - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - - if attributes.key?(:'certified') - self.certified = attributes[:'certified'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @profile_id.nil? - invalid_properties.push('invalid value for "profile_id", profile_id cannot be nil.') - end - - if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') - end - - if @cores.nil? - invalid_properties.push('invalid value for "cores", cores cannot be nil.') - end - - if @memory.nil? - invalid_properties.push('invalid value for "memory", memory cannot be nil.') - end - - if @certified.nil? - invalid_properties.push('invalid value for "certified", certified cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @profile_id.nil? - return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["balanced", "compute", "memory", "non-production", "ultra-memory"]) - return false unless type_validator.valid?(@type) - return false if @cores.nil? - return false if @memory.nil? - return false if @certified.nil? - true - end - - # Custom attribute writer method checking allowed values (enum). - # @param [Object] type Object to be assigned - def type=(type) - validator = EnumAttributeValidator.new('String', ["balanced", "compute", "memory", "non-production", "ultra-memory"]) - unless validator.valid?(type) - fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." - end - @type = type - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - profile_id == o.profile_id && - type == o.type && - cores == o.cores && - memory == o.memory && - certified == o.certified - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [profile_id, type, cores, memory, certified].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profile_reference.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profile_reference.rb deleted file mode 100644 index e0976a23..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profile_reference.rb +++ /dev/null @@ -1,229 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SAPProfileReference - # SAP Profile ID - attr_accessor :profile_id - - # Link to SAP profile resource - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'profile_id' => :'profileID', - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'profile_id' => :'String', - :'href' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SAPProfileReference` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SAPProfileReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'profile_id') - self.profile_id = attributes[:'profile_id'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @profile_id.nil? - invalid_properties.push('invalid value for "profile_id", profile_id cannot be nil.') - end - - if @href.nil? - invalid_properties.push('invalid value for "href", href cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @profile_id.nil? - return false if @href.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - profile_id == o.profile_id && - href == o.href - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [profile_id, href].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profiles.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profiles.rb deleted file mode 100644 index dd925a3a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/sap_profiles.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SAPProfiles - # SAP Profiles - attr_accessor :profiles - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'profiles' => :'profiles' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'profiles' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SAPProfiles` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SAPProfiles`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'profiles') - if (value = attributes[:'profiles']).is_a?(Array) - self.profiles = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @profiles.nil? - invalid_properties.push('invalid value for "profiles", profiles cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @profiles.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - profiles == o.profiles - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [profiles].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot.rb deleted file mode 100644 index 3e9b2d75..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot.rb +++ /dev/null @@ -1,321 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Snapshot - # ID of the PVM instance snapshot - attr_accessor :snapshot_id - - # PCloud PVM Instance ID - attr_accessor :pvm_instance_id - - # Name of the PVM instance snapshot - attr_accessor :name - - # Description of the PVM instance snapshot - attr_accessor :description - - # Status of the PVM instancesnapshot - attr_accessor :status - - # A map of volume snapshots included in the PVM instance snapshot - attr_accessor :volume_snapshots - - # Creation Date - attr_accessor :creation_date - - # Last Update Date - attr_accessor :last_update_date - - # Action performed on the instance snapshot - attr_accessor :action - - # Snapshot completion percentage - attr_accessor :percent_complete - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'snapshot_id' => :'snapshotID', - :'pvm_instance_id' => :'pvmInstanceID', - :'name' => :'name', - :'description' => :'description', - :'status' => :'status', - :'volume_snapshots' => :'volumeSnapshots', - :'creation_date' => :'creationDate', - :'last_update_date' => :'lastUpdateDate', - :'action' => :'action', - :'percent_complete' => :'percentComplete' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'snapshot_id' => :'String', - :'pvm_instance_id' => :'String', - :'name' => :'String', - :'description' => :'String', - :'status' => :'String', - :'volume_snapshots' => :'Hash', - :'creation_date' => :'DateTime', - :'last_update_date' => :'DateTime', - :'action' => :'String', - :'percent_complete' => :'Float' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Snapshot` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Snapshot`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'snapshot_id') - self.snapshot_id = attributes[:'snapshot_id'] - end - - if attributes.key?(:'pvm_instance_id') - self.pvm_instance_id = attributes[:'pvm_instance_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'volume_snapshots') - if (value = attributes[:'volume_snapshots']).is_a?(Hash) - self.volume_snapshots = value - end - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'last_update_date') - self.last_update_date = attributes[:'last_update_date'] - end - - if attributes.key?(:'action') - self.action = attributes[:'action'] - end - - if attributes.key?(:'percent_complete') - self.percent_complete = attributes[:'percent_complete'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @snapshot_id.nil? - invalid_properties.push('invalid value for "snapshot_id", snapshot_id cannot be nil.') - end - - if @pvm_instance_id.nil? - invalid_properties.push('invalid value for "pvm_instance_id", pvm_instance_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @volume_snapshots.nil? - invalid_properties.push('invalid value for "volume_snapshots", volume_snapshots cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @snapshot_id.nil? - return false if @pvm_instance_id.nil? - return false if @name.nil? - return false if @volume_snapshots.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - snapshot_id == o.snapshot_id && - pvm_instance_id == o.pvm_instance_id && - name == o.name && - description == o.description && - status == o.status && - volume_snapshots == o.volume_snapshots && - creation_date == o.creation_date && - last_update_date == o.last_update_date && - action == o.action && - percent_complete == o.percent_complete - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [snapshot_id, pvm_instance_id, name, description, status, volume_snapshots, creation_date, last_update_date, action, percent_complete].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_create.rb deleted file mode 100644 index 68c48b7f..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_create.rb +++ /dev/null @@ -1,236 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SnapshotCreate - # Name of the PVM instance snapshot to create. - attr_accessor :name - - # Description of the PVM instance snapshot. - attr_accessor :description - - # List of volumes to include in the PVM instance snapshot. This parameter is optional. If you do not specify this parameter or if the volumeIDs list is empty, all the volumes that are attached to the PVM instance are included in the snapshot. - attr_accessor :volume_i_ds - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'description' => :'description', - :'volume_i_ds' => :'volumeIDs' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'description' => :'String', - :'volume_i_ds' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SnapshotCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SnapshotCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - - if attributes.key?(:'volume_i_ds') - if (value = attributes[:'volume_i_ds']).is_a?(Array) - self.volume_i_ds = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - description == o.description && - volume_i_ds == o.volume_i_ds - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, description, volume_i_ds].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_create_response.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_create_response.rb deleted file mode 100644 index 9ae9cdc3..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_create_response.rb +++ /dev/null @@ -1,214 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SnapshotCreateResponse - # ID of the PVM instance snapshot - attr_accessor :snapshot_id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'snapshot_id' => :'snapshotID' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'snapshot_id' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SnapshotCreateResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SnapshotCreateResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'snapshot_id') - self.snapshot_id = attributes[:'snapshot_id'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @snapshot_id.nil? - invalid_properties.push('invalid value for "snapshot_id", snapshot_id cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @snapshot_id.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - snapshot_id == o.snapshot_id - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [snapshot_id].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_restore.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_restore.rb deleted file mode 100644 index 3cf5fa37..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_restore.rb +++ /dev/null @@ -1,211 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SnapshotRestore - # By default the VM must be shutoff during a snapshot restore, force set to true will relax the VM shutoff pre-condition. - attr_accessor :force - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'force' => :'force' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'force' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SnapshotRestore` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SnapshotRestore`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'force') - self.force = attributes[:'force'] - else - self.force = false - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - force == o.force - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [force].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_update.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_update.rb deleted file mode 100644 index 7cc9b05f..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshot_update.rb +++ /dev/null @@ -1,219 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SnapshotUpdate - # Name of the PVM instance snapshot - attr_accessor :name - - # Description of the PVM instance snapshot - attr_accessor :description - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'description' => :'description' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'description' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SnapshotUpdate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SnapshotUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'description') - self.description = attributes[:'description'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - description == o.description - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, description].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshots.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshots.rb deleted file mode 100644 index 0cd04993..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/snapshots.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Snapshots - # List of PVM instance snapshots - attr_accessor :snapshots - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'snapshots' => :'snapshots' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'snapshots' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Snapshots` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Snapshots`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'snapshots') - if (value = attributes[:'snapshots']).is_a?(Array) - self.snapshots = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @snapshots.nil? - invalid_properties.push('invalid value for "snapshots", snapshots cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @snapshots.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - snapshots == o.snapshots - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [snapshots].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/software_licenses.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/software_licenses.rb deleted file mode 100644 index 5061cd11..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/software_licenses.rb +++ /dev/null @@ -1,257 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SoftwareLicenses - # IBMi Cloud Storage Solution - attr_accessor :ibmi_css - - # IBMi Power High Availability - attr_accessor :ibmi_pha - - # IBMi Rational Dev Studio - attr_accessor :ibmi_rds - - # IBMi Rational Dev Studio Number of User Licenses - attr_accessor :ibmi_rds_users - - # IBMi Cloud Storage Solution - attr_accessor :ibmi_dbq - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'ibmi_css' => :'ibmiCSS', - :'ibmi_pha' => :'ibmiPHA', - :'ibmi_rds' => :'ibmiRDS', - :'ibmi_rds_users' => :'ibmiRDSUsers', - :'ibmi_dbq' => :'ibmiDBQ' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'ibmi_css' => :'Boolean', - :'ibmi_pha' => :'Boolean', - :'ibmi_rds' => :'Boolean', - :'ibmi_rds_users' => :'Integer', - :'ibmi_dbq' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SoftwareLicenses` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SoftwareLicenses`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'ibmi_css') - self.ibmi_css = attributes[:'ibmi_css'] - else - self.ibmi_css = false - end - - if attributes.key?(:'ibmi_pha') - self.ibmi_pha = attributes[:'ibmi_pha'] - else - self.ibmi_pha = false - end - - if attributes.key?(:'ibmi_rds') - self.ibmi_rds = attributes[:'ibmi_rds'] - else - self.ibmi_rds = false - end - - if attributes.key?(:'ibmi_rds_users') - self.ibmi_rds_users = attributes[:'ibmi_rds_users'] - end - - if attributes.key?(:'ibmi_dbq') - self.ibmi_dbq = attributes[:'ibmi_dbq'] - else - self.ibmi_dbq = false - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - ibmi_css == o.ibmi_css && - ibmi_pha == o.ibmi_pha && - ibmi_rds == o.ibmi_rds && - ibmi_rds_users == o.ibmi_rds_users && - ibmi_dbq == o.ibmi_dbq - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [ibmi_css, ibmi_pha, ibmi_rds, ibmi_rds_users, ibmi_dbq].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/src.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/src.rb deleted file mode 100644 index 161668f6..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/src.rb +++ /dev/null @@ -1,219 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SRC - # The date stamp of the SRC - attr_accessor :timestamp - - # The SRC reference code - attr_accessor :src - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'timestamp' => :'timestamp', - :'src' => :'src' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'timestamp' => :'String', - :'src' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SRC` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SRC`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'timestamp') - self.timestamp = attributes[:'timestamp'] - end - - if attributes.key?(:'src') - self.src = attributes[:'src'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - timestamp == o.timestamp && - src == o.src - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [timestamp, src].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/ssh_key.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/ssh_key.rb deleted file mode 100644 index 931b575a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/ssh_key.rb +++ /dev/null @@ -1,239 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SSHKey - # User defined name for the SSH key - attr_accessor :name - - # SSH RSA key - attr_accessor :ssh_key - - # Date of sshkey creation - attr_accessor :creation_date - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'ssh_key' => :'sshKey', - :'creation_date' => :'creationDate' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'ssh_key' => :'String', - :'creation_date' => :'DateTime' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SSHKey` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SSHKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'ssh_key') - self.ssh_key = attributes[:'ssh_key'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @ssh_key.nil? - invalid_properties.push('invalid value for "ssh_key", ssh_key cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - return false if @ssh_key.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - ssh_key == o.ssh_key && - creation_date == o.creation_date - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, ssh_key, creation_date].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/ssh_keys.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/ssh_keys.rb deleted file mode 100644 index 0a727882..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/ssh_keys.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class SSHKeys - # SSH Keys - attr_accessor :ssh_keys - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'ssh_keys' => :'sshKeys' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'ssh_keys' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SSHKeys` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SSHKeys`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'ssh_keys') - if (value = attributes[:'ssh_keys']).is_a?(Array) - self.ssh_keys = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @ssh_keys.nil? - invalid_properties.push('invalid value for "ssh_keys", ssh_keys cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @ssh_keys.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - ssh_keys == o.ssh_keys - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [ssh_keys].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/stock_image.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/stock_image.rb deleted file mode 100644 index 934044ff..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/stock_image.rb +++ /dev/null @@ -1,230 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # Stock image detail - class StockImage - # Storage type for a stock image - attr_accessor :storage_type - - # Storage pool for a stock image - attr_accessor :storage_pool - - # Image ID - attr_accessor :id - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'storage_type' => :'storageType', - :'storage_pool' => :'storagePool', - :'id' => :'id' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'storage_type' => :'String', - :'storage_pool' => :'String', - :'id' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::StockImage` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::StockImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'storage_type') - self.storage_type = attributes[:'storage_type'] - end - - if attributes.key?(:'storage_pool') - self.storage_pool = attributes[:'storage_pool'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - storage_type == o.storage_type && - storage_pool == o.storage_pool && - id == o.id - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [storage_type, storage_pool, id].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_pool_capacity.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_pool_capacity.rb deleted file mode 100644 index a8075835..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_pool_capacity.rb +++ /dev/null @@ -1,245 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # Storage pool capacity - class StoragePoolCapacity - # Pool name - attr_accessor :pool_name - - # Storage type of the storage pool - attr_accessor :storage_type - - # Maximum allocation storage size (GB) - attr_accessor :max_allocation_size - - # Total pool capacity (GB) - attr_accessor :total_capacity - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'pool_name' => :'poolName', - :'storage_type' => :'storageType', - :'max_allocation_size' => :'maxAllocationSize', - :'total_capacity' => :'totalCapacity' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'pool_name' => :'String', - :'storage_type' => :'String', - :'max_allocation_size' => :'Integer', - :'total_capacity' => :'Integer' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::StoragePoolCapacity` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::StoragePoolCapacity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'pool_name') - self.pool_name = attributes[:'pool_name'] - end - - if attributes.key?(:'storage_type') - self.storage_type = attributes[:'storage_type'] - end - - if attributes.key?(:'max_allocation_size') - self.max_allocation_size = attributes[:'max_allocation_size'] - end - - if attributes.key?(:'total_capacity') - self.total_capacity = attributes[:'total_capacity'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @max_allocation_size.nil? - invalid_properties.push('invalid value for "max_allocation_size", max_allocation_size cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @max_allocation_size.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - pool_name == o.pool_name && - storage_type == o.storage_type && - max_allocation_size == o.max_allocation_size && - total_capacity == o.total_capacity - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [pool_name, storage_type, max_allocation_size, total_capacity].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_pools_capacity.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_pools_capacity.rb deleted file mode 100644 index 2cc41b75..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_pools_capacity.rb +++ /dev/null @@ -1,220 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # Storage capacity for all storage pools - class StoragePoolsCapacity - attr_accessor :maximum_storage_allocation - - attr_accessor :storage_pools_capacity - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'maximum_storage_allocation' => :'maximumStorageAllocation', - :'storage_pools_capacity' => :'storagePoolsCapacity' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'maximum_storage_allocation' => :'MaximumStorageAllocation', - :'storage_pools_capacity' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::StoragePoolsCapacity` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::StoragePoolsCapacity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'maximum_storage_allocation') - self.maximum_storage_allocation = attributes[:'maximum_storage_allocation'] - end - - if attributes.key?(:'storage_pools_capacity') - if (value = attributes[:'storage_pools_capacity']).is_a?(Array) - self.storage_pools_capacity = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - maximum_storage_allocation == o.maximum_storage_allocation && - storage_pools_capacity == o.storage_pools_capacity - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [maximum_storage_allocation, storage_pools_capacity].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_type_capacity.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_type_capacity.rb deleted file mode 100644 index a85f56dc..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_type_capacity.rb +++ /dev/null @@ -1,231 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # Storage type capacity - class StorageTypeCapacity - # Storage type - attr_accessor :storage_type - - attr_accessor :maximum_storage_allocation - - # List of storage pool capacity for storage type - attr_accessor :storage_pools_capacity - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'storage_type' => :'storageType', - :'maximum_storage_allocation' => :'maximumStorageAllocation', - :'storage_pools_capacity' => :'storagePoolsCapacity' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'storage_type' => :'String', - :'maximum_storage_allocation' => :'MaximumStorageAllocation', - :'storage_pools_capacity' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::StorageTypeCapacity` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::StorageTypeCapacity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'storage_type') - self.storage_type = attributes[:'storage_type'] - end - - if attributes.key?(:'maximum_storage_allocation') - self.maximum_storage_allocation = attributes[:'maximum_storage_allocation'] - end - - if attributes.key?(:'storage_pools_capacity') - if (value = attributes[:'storage_pools_capacity']).is_a?(Array) - self.storage_pools_capacity = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - storage_type == o.storage_type && - maximum_storage_allocation == o.maximum_storage_allocation && - storage_pools_capacity == o.storage_pools_capacity - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [storage_type, maximum_storage_allocation, storage_pools_capacity].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_types_capacity.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_types_capacity.rb deleted file mode 100644 index c4718308..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/storage_types_capacity.rb +++ /dev/null @@ -1,220 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # Storage types capacity - class StorageTypesCapacity - attr_accessor :maximum_storage_allocation - - attr_accessor :storage_types_capacity - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'maximum_storage_allocation' => :'maximumStorageAllocation', - :'storage_types_capacity' => :'storageTypesCapacity' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'maximum_storage_allocation' => :'MaximumStorageAllocation', - :'storage_types_capacity' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::StorageTypesCapacity` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::StorageTypesCapacity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'maximum_storage_allocation') - self.maximum_storage_allocation = attributes[:'maximum_storage_allocation'] - end - - if attributes.key?(:'storage_types_capacity') - if (value = attributes[:'storage_types_capacity']).is_a?(Array) - self.storage_types_capacity = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - maximum_storage_allocation == o.maximum_storage_allocation && - storage_types_capacity == o.storage_types_capacity - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [maximum_storage_allocation, storage_types_capacity].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/system.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/system.rb deleted file mode 100644 index a8dfc624..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/system.rb +++ /dev/null @@ -1,239 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class System - # The host available Processor units - attr_accessor :cores - - # The host identifier - attr_accessor :id - - # The host available RAM memory in GiB - attr_accessor :memory - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'cores' => :'cores', - :'id' => :'id', - :'memory' => :'memory' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'cores' => :'Float', - :'id' => :'Integer', - :'memory' => :'Integer' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::System` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::System`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'cores') - self.cores = attributes[:'cores'] - end - - if attributes.key?(:'id') - self.id = attributes[:'id'] - end - - if attributes.key?(:'memory') - self.memory = attributes[:'memory'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @cores.nil? - invalid_properties.push('invalid value for "cores", cores cannot be nil.') - end - - if @memory.nil? - invalid_properties.push('invalid value for "memory", memory cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @cores.nil? - return false if @memory.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - cores == o.cores && - id == o.id && - memory == o.memory - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [cores, id, memory].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/system_pool.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/system_pool.rb deleted file mode 100644 index 8037fcaf..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/system_pool.rb +++ /dev/null @@ -1,277 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - # Hardware platform detailing its limits and statistics - class SystemPool - # The DataCenter list of servers and their available resources - attr_accessor :systems - - attr_accessor :shared_core_ratio - - attr_accessor :max_available - - attr_accessor :capacity - - attr_accessor :max_cores_available - - attr_accessor :max_memory_available - - # Processor to Memory (GB) Ratio - attr_accessor :core_memory_ratio - - # Type of system hardware - attr_accessor :type - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'systems' => :'systems', - :'shared_core_ratio' => :'sharedCoreRatio', - :'max_available' => :'maxAvailable', - :'capacity' => :'capacity', - :'max_cores_available' => :'maxCoresAvailable', - :'max_memory_available' => :'maxMemoryAvailable', - :'core_memory_ratio' => :'coreMemoryRatio', - :'type' => :'type' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'systems' => :'Array', - :'shared_core_ratio' => :'MinMaxDefault', - :'max_available' => :'System', - :'capacity' => :'System', - :'max_cores_available' => :'System', - :'max_memory_available' => :'System', - :'core_memory_ratio' => :'Float', - :'type' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::SystemPool` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::SystemPool`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'systems') - if (value = attributes[:'systems']).is_a?(Array) - self.systems = value - end - end - - if attributes.key?(:'shared_core_ratio') - self.shared_core_ratio = attributes[:'shared_core_ratio'] - end - - if attributes.key?(:'max_available') - self.max_available = attributes[:'max_available'] - end - - if attributes.key?(:'capacity') - self.capacity = attributes[:'capacity'] - end - - if attributes.key?(:'max_cores_available') - self.max_cores_available = attributes[:'max_cores_available'] - end - - if attributes.key?(:'max_memory_available') - self.max_memory_available = attributes[:'max_memory_available'] - end - - if attributes.key?(:'core_memory_ratio') - self.core_memory_ratio = attributes[:'core_memory_ratio'] - end - - if attributes.key?(:'type') - self.type = attributes[:'type'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - systems == o.systems && - shared_core_ratio == o.shared_core_ratio && - max_available == o.max_available && - capacity == o.capacity && - max_cores_available == o.max_cores_available && - max_memory_available == o.max_memory_available && - core_memory_ratio == o.core_memory_ratio && - type == o.type - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [systems, shared_core_ratio, max_available, capacity, max_cores_available, max_memory_available, core_memory_ratio, type].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/task.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/task.rb deleted file mode 100644 index b9307a3a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/task.rb +++ /dev/null @@ -1,334 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Task - # Pcloud Task ID - attr_accessor :task_id - - # Task Operation - attr_accessor :operation - - # Cloud Instance ID of task owner - attr_accessor :cloud_instance_id - - # the component type of the task - attr_accessor :component_type - - # the component id of the task - attr_accessor :component_id - - # status code of the task - attr_accessor :status - - # status detail of the task - attr_accessor :status_detail - - # Creation Date - attr_accessor :creation_date - - # Last Update Date - attr_accessor :last_update_date - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'task_id' => :'taskID', - :'operation' => :'operation', - :'cloud_instance_id' => :'cloudInstanceID', - :'component_type' => :'componentType', - :'component_id' => :'componentID', - :'status' => :'status', - :'status_detail' => :'statusDetail', - :'creation_date' => :'creationDate', - :'last_update_date' => :'lastUpdateDate' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'task_id' => :'String', - :'operation' => :'String', - :'cloud_instance_id' => :'String', - :'component_type' => :'String', - :'component_id' => :'String', - :'status' => :'String', - :'status_detail' => :'String', - :'creation_date' => :'DateTime', - :'last_update_date' => :'DateTime' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Task` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Task`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'task_id') - self.task_id = attributes[:'task_id'] - end - - if attributes.key?(:'operation') - self.operation = attributes[:'operation'] - end - - if attributes.key?(:'cloud_instance_id') - self.cloud_instance_id = attributes[:'cloud_instance_id'] - end - - if attributes.key?(:'component_type') - self.component_type = attributes[:'component_type'] - end - - if attributes.key?(:'component_id') - self.component_id = attributes[:'component_id'] - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'status_detail') - self.status_detail = attributes[:'status_detail'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'last_update_date') - self.last_update_date = attributes[:'last_update_date'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @task_id.nil? - invalid_properties.push('invalid value for "task_id", task_id cannot be nil.') - end - - if @operation.nil? - invalid_properties.push('invalid value for "operation", operation cannot be nil.') - end - - if @cloud_instance_id.nil? - invalid_properties.push('invalid value for "cloud_instance_id", cloud_instance_id cannot be nil.') - end - - if @component_type.nil? - invalid_properties.push('invalid value for "component_type", component_type cannot be nil.') - end - - if @component_id.nil? - invalid_properties.push('invalid value for "component_id", component_id cannot be nil.') - end - - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - if @status_detail.nil? - invalid_properties.push('invalid value for "status_detail", status_detail cannot be nil.') - end - - if @creation_date.nil? - invalid_properties.push('invalid value for "creation_date", creation_date cannot be nil.') - end - - if @last_update_date.nil? - invalid_properties.push('invalid value for "last_update_date", last_update_date cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @task_id.nil? - return false if @operation.nil? - return false if @cloud_instance_id.nil? - return false if @component_type.nil? - return false if @component_id.nil? - return false if @status.nil? - return false if @status_detail.nil? - return false if @creation_date.nil? - return false if @last_update_date.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - task_id == o.task_id && - operation == o.operation && - cloud_instance_id == o.cloud_instance_id && - component_type == o.component_type && - component_id == o.component_id && - status == o.status && - status_detail == o.status_detail && - creation_date == o.creation_date && - last_update_date == o.last_update_date - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [task_id, operation, cloud_instance_id, component_type, component_id, status, status_detail, creation_date, last_update_date].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/task_reference.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/task_reference.rb deleted file mode 100644 index a4a2cd52..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/task_reference.rb +++ /dev/null @@ -1,229 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class TaskReference - # ID of Task used to get status of long running operation - attr_accessor :task_id - - # Link to Task resource - attr_accessor :href - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'task_id' => :'taskID', - :'href' => :'href' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'task_id' => :'String', - :'href' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::TaskReference` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::TaskReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'task_id') - self.task_id = attributes[:'task_id'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @task_id.nil? - invalid_properties.push('invalid value for "task_id", task_id cannot be nil.') - end - - if @href.nil? - invalid_properties.push('invalid value for "href", href cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @task_id.nil? - return false if @href.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - task_id == o.task_id && - href == o.href - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [task_id, href].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/tenant.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/tenant.rb deleted file mode 100644 index 620fe53f..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/tenant.rb +++ /dev/null @@ -1,295 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Tenant - # Tenant ID - attr_accessor :tenant_id - - # Indicates if the tenant is enabled - attr_accessor :enabled - - # Date of Tenant creation - attr_accessor :creation_date - - # Tenant SSH Keys - attr_accessor :ssh_keys - - # Cloud Instances owned by the Tenant - attr_accessor :cloud_instances - - # IBM Customer Number - attr_accessor :icn - - # Peering Network Information (optional) - attr_accessor :peering_networks - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'tenant_id' => :'tenantID', - :'enabled' => :'enabled', - :'creation_date' => :'creationDate', - :'ssh_keys' => :'sshKeys', - :'cloud_instances' => :'cloudInstances', - :'icn' => :'icn', - :'peering_networks' => :'peeringNetworks' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'tenant_id' => :'String', - :'enabled' => :'Boolean', - :'creation_date' => :'DateTime', - :'ssh_keys' => :'Array', - :'cloud_instances' => :'Array', - :'icn' => :'String', - :'peering_networks' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Tenant` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Tenant`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'tenant_id') - self.tenant_id = attributes[:'tenant_id'] - end - - if attributes.key?(:'enabled') - self.enabled = attributes[:'enabled'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'ssh_keys') - if (value = attributes[:'ssh_keys']).is_a?(Array) - self.ssh_keys = value - end - end - - if attributes.key?(:'cloud_instances') - if (value = attributes[:'cloud_instances']).is_a?(Array) - self.cloud_instances = value - end - end - - if attributes.key?(:'icn') - self.icn = attributes[:'icn'] - end - - if attributes.key?(:'peering_networks') - if (value = attributes[:'peering_networks']).is_a?(Array) - self.peering_networks = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @tenant_id.nil? - invalid_properties.push('invalid value for "tenant_id", tenant_id cannot be nil.') - end - - if @enabled.nil? - invalid_properties.push('invalid value for "enabled", enabled cannot be nil.') - end - - if @creation_date.nil? - invalid_properties.push('invalid value for "creation_date", creation_date cannot be nil.') - end - - if @cloud_instances.nil? - invalid_properties.push('invalid value for "cloud_instances", cloud_instances cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @tenant_id.nil? - return false if @enabled.nil? - return false if @creation_date.nil? - return false if @cloud_instances.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - tenant_id == o.tenant_id && - enabled == o.enabled && - creation_date == o.creation_date && - ssh_keys == o.ssh_keys && - cloud_instances == o.cloud_instances && - icn == o.icn && - peering_networks == o.peering_networks - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [tenant_id, enabled, creation_date, ssh_keys, cloud_instances, icn, peering_networks].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/tenant_update.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/tenant_update.rb deleted file mode 100644 index 5ecbdd6a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/tenant_update.rb +++ /dev/null @@ -1,221 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class TenantUpdate - # IBM Customer Number - attr_accessor :icn - - # Peering Network Information (optional) - attr_accessor :peering_networks - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'icn' => :'icn', - :'peering_networks' => :'peeringNetworks' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'icn' => :'String', - :'peering_networks' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::TenantUpdate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::TenantUpdate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'icn') - self.icn = attributes[:'icn'] - end - - if attributes.key?(:'peering_networks') - if (value = attributes[:'peering_networks']).is_a?(Array) - self.peering_networks = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - icn == o.icn && - peering_networks == o.peering_networks - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [icn, peering_networks].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/update_volume.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/update_volume.rb deleted file mode 100644 index 3fe24177..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/update_volume.rb +++ /dev/null @@ -1,239 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class UpdateVolume - # Name - attr_accessor :name - - # New Volume size - attr_accessor :size - - # Indicates if the volume is shareable between VMs - attr_accessor :shareable - - # Indicates if the volume is boot capable - attr_accessor :bootable - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'size' => :'size', - :'shareable' => :'shareable', - :'bootable' => :'bootable' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'size' => :'Float', - :'shareable' => :'Boolean', - :'bootable' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::UpdateVolume` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::UpdateVolume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'size') - self.size = attributes[:'size'] - end - - if attributes.key?(:'shareable') - self.shareable = attributes[:'shareable'] - end - - if attributes.key?(:'bootable') - self.bootable = attributes[:'bootable'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - size == o.size && - shareable == o.shareable && - bootable == o.bootable - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, size, shareable, bootable].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/virtual_cores.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/virtual_cores.rb deleted file mode 100644 index 79c37903..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/virtual_cores.rb +++ /dev/null @@ -1,253 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VirtualCores - # The minimum DLPAR range for virtual Cores (Display only support) - attr_accessor :min - - # The maximum DLPAR range for virtual Cores (Display only support) - attr_accessor :max - - # The active virtual Cores - attr_accessor :assigned - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'min' => :'min', - :'max' => :'max', - :'assigned' => :'assigned' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'min' => :'Integer', - :'max' => :'Integer', - :'assigned' => :'Integer' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VirtualCores` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VirtualCores`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'min') - self.min = attributes[:'min'] - end - - if attributes.key?(:'max') - self.max = attributes[:'max'] - end - - if attributes.key?(:'assigned') - self.assigned = attributes[:'assigned'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @assigned.nil? - invalid_properties.push('invalid value for "assigned", assigned cannot be nil.') - end - - if @assigned < 1 - invalid_properties.push('invalid value for "assigned", must be greater than or equal to 1.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @assigned.nil? - return false if @assigned < 1 - true - end - - # Custom attribute writer method with validation - # @param [Object] assigned Value to be assigned - def assigned=(assigned) - if assigned.nil? - fail ArgumentError, 'assigned cannot be nil' - end - - if assigned < 1 - fail ArgumentError, 'invalid value for "assigned", must be greater than or equal to 1.' - end - - @assigned = assigned - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - min == o.min && - max == o.max && - assigned == o.assigned - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [min, max, assigned].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume.rb deleted file mode 100644 index 2cf787ce..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume.rb +++ /dev/null @@ -1,366 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Volume - # Volume ID - attr_accessor :volume_id - - # Volume Name - attr_accessor :name - - # Volume State - attr_accessor :state - - # Volume Size - attr_accessor :size - - # Indicates if the volume is shareable between VMs - attr_accessor :shareable - - # Indicates if the volume is boot capable - attr_accessor :bootable - - # Indicates if the volume is the server's boot volume - attr_accessor :boot_volume - - # Indicates if the volume should be deleted when the server terminates - attr_accessor :delete_on_termination - - # Type of Disk - attr_accessor :disk_type - - # Volume type, name of storage template used to create the volume - attr_accessor :volume_type - - # Volume world wide name - attr_accessor :wwn - - # Creation Date - attr_accessor :creation_date - - # Last Update Date - attr_accessor :last_update_date - - # List of PCloud PVM Instance attached to the volume - attr_accessor :pvm_instance_i_ds - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'volume_id' => :'volumeID', - :'name' => :'name', - :'state' => :'state', - :'size' => :'size', - :'shareable' => :'shareable', - :'bootable' => :'bootable', - :'boot_volume' => :'bootVolume', - :'delete_on_termination' => :'deleteOnTermination', - :'disk_type' => :'diskType', - :'volume_type' => :'volumeType', - :'wwn' => :'wwn', - :'creation_date' => :'creationDate', - :'last_update_date' => :'lastUpdateDate', - :'pvm_instance_i_ds' => :'pvmInstanceIDs' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'volume_id' => :'String', - :'name' => :'String', - :'state' => :'String', - :'size' => :'Float', - :'shareable' => :'Boolean', - :'bootable' => :'Boolean', - :'boot_volume' => :'Boolean', - :'delete_on_termination' => :'Boolean', - :'disk_type' => :'String', - :'volume_type' => :'String', - :'wwn' => :'String', - :'creation_date' => :'DateTime', - :'last_update_date' => :'DateTime', - :'pvm_instance_i_ds' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Volume` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Volume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'volume_id') - self.volume_id = attributes[:'volume_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'state') - self.state = attributes[:'state'] - end - - if attributes.key?(:'size') - self.size = attributes[:'size'] - end - - if attributes.key?(:'shareable') - self.shareable = attributes[:'shareable'] - end - - if attributes.key?(:'bootable') - self.bootable = attributes[:'bootable'] - end - - if attributes.key?(:'boot_volume') - self.boot_volume = attributes[:'boot_volume'] - end - - if attributes.key?(:'delete_on_termination') - self.delete_on_termination = attributes[:'delete_on_termination'] - end - - if attributes.key?(:'disk_type') - self.disk_type = attributes[:'disk_type'] - end - - if attributes.key?(:'volume_type') - self.volume_type = attributes[:'volume_type'] - end - - if attributes.key?(:'wwn') - self.wwn = attributes[:'wwn'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'last_update_date') - self.last_update_date = attributes[:'last_update_date'] - end - - if attributes.key?(:'pvm_instance_i_ds') - if (value = attributes[:'pvm_instance_i_ds']).is_a?(Array) - self.pvm_instance_i_ds = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @volume_id.nil? - invalid_properties.push('invalid value for "volume_id", volume_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @size.nil? - invalid_properties.push('invalid value for "size", size cannot be nil.') - end - - if @creation_date.nil? - invalid_properties.push('invalid value for "creation_date", creation_date cannot be nil.') - end - - if @last_update_date.nil? - invalid_properties.push('invalid value for "last_update_date", last_update_date cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @volume_id.nil? - return false if @name.nil? - return false if @size.nil? - return false if @creation_date.nil? - return false if @last_update_date.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - volume_id == o.volume_id && - name == o.name && - state == o.state && - size == o.size && - shareable == o.shareable && - bootable == o.bootable && - boot_volume == o.boot_volume && - delete_on_termination == o.delete_on_termination && - disk_type == o.disk_type && - volume_type == o.volume_type && - wwn == o.wwn && - creation_date == o.creation_date && - last_update_date == o.last_update_date && - pvm_instance_i_ds == o.pvm_instance_i_ds - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [volume_id, name, state, size, shareable, bootable, boot_volume, delete_on_termination, disk_type, volume_type, wwn, creation_date, last_update_date, pvm_instance_i_ds].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume_info.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume_info.rb deleted file mode 100644 index f33bb0ba..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume_info.rb +++ /dev/null @@ -1,219 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumeInfo - # ID of the volume - attr_accessor :volume_id - - # Name of the volume - attr_accessor :name - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'volume_id' => :'volumeID', - :'name' => :'name' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'volume_id' => :'String', - :'name' => :'String' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumeInfo` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumeInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'volume_id') - self.volume_id = attributes[:'volume_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - volume_id == o.volume_id && - name == o.name - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [volume_id, name].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume_reference.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume_reference.rb deleted file mode 100644 index c0fc850a..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volume_reference.rb +++ /dev/null @@ -1,406 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumeReference - # Volume ID - attr_accessor :volume_id - - # Volume Name - attr_accessor :name - - # Volume State - attr_accessor :state - - # Volume Size - attr_accessor :size - - # Indicates if the volume is shareable between VMs - attr_accessor :shareable - - # Indicates if the volume is boot capable - attr_accessor :bootable - - # Indicates if the volume is the server's boot volume - attr_accessor :boot_volume - - # Indicates if the volume should be deleted when the server terminates - attr_accessor :delete_on_termination - - # Type of Disk - attr_accessor :disk_type - - # Volume type, name of storage template used to create the volume - attr_accessor :volume_type - - # Volume world wide name - attr_accessor :wwn - - # Creation Date - attr_accessor :creation_date - - # Last Update Date - attr_accessor :last_update_date - - # Link to Volume resource - attr_accessor :href - - # List of PCloud PVM Instance attached to the volume - attr_accessor :pvm_instance_i_ds - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'volume_id' => :'volumeID', - :'name' => :'name', - :'state' => :'state', - :'size' => :'size', - :'shareable' => :'shareable', - :'bootable' => :'bootable', - :'boot_volume' => :'bootVolume', - :'delete_on_termination' => :'deleteOnTermination', - :'disk_type' => :'diskType', - :'volume_type' => :'volumeType', - :'wwn' => :'wwn', - :'creation_date' => :'creationDate', - :'last_update_date' => :'lastUpdateDate', - :'href' => :'href', - :'pvm_instance_i_ds' => :'pvmInstanceIDs' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'volume_id' => :'String', - :'name' => :'String', - :'state' => :'String', - :'size' => :'Float', - :'shareable' => :'Boolean', - :'bootable' => :'Boolean', - :'boot_volume' => :'Boolean', - :'delete_on_termination' => :'Boolean', - :'disk_type' => :'String', - :'volume_type' => :'String', - :'wwn' => :'String', - :'creation_date' => :'DateTime', - :'last_update_date' => :'DateTime', - :'href' => :'String', - :'pvm_instance_i_ds' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumeReference` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumeReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'volume_id') - self.volume_id = attributes[:'volume_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'state') - self.state = attributes[:'state'] - end - - if attributes.key?(:'size') - self.size = attributes[:'size'] - end - - if attributes.key?(:'shareable') - self.shareable = attributes[:'shareable'] - end - - if attributes.key?(:'bootable') - self.bootable = attributes[:'bootable'] - end - - if attributes.key?(:'boot_volume') - self.boot_volume = attributes[:'boot_volume'] - end - - if attributes.key?(:'delete_on_termination') - self.delete_on_termination = attributes[:'delete_on_termination'] - end - - if attributes.key?(:'disk_type') - self.disk_type = attributes[:'disk_type'] - end - - if attributes.key?(:'volume_type') - self.volume_type = attributes[:'volume_type'] - end - - if attributes.key?(:'wwn') - self.wwn = attributes[:'wwn'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'last_update_date') - self.last_update_date = attributes[:'last_update_date'] - end - - if attributes.key?(:'href') - self.href = attributes[:'href'] - end - - if attributes.key?(:'pvm_instance_i_ds') - if (value = attributes[:'pvm_instance_i_ds']).is_a?(Array) - self.pvm_instance_i_ds = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @volume_id.nil? - invalid_properties.push('invalid value for "volume_id", volume_id cannot be nil.') - end - - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @state.nil? - invalid_properties.push('invalid value for "state", state cannot be nil.') - end - - if @size.nil? - invalid_properties.push('invalid value for "size", size cannot be nil.') - end - - if @shareable.nil? - invalid_properties.push('invalid value for "shareable", shareable cannot be nil.') - end - - if @bootable.nil? - invalid_properties.push('invalid value for "bootable", bootable cannot be nil.') - end - - if @disk_type.nil? - invalid_properties.push('invalid value for "disk_type", disk_type cannot be nil.') - end - - if @wwn.nil? - invalid_properties.push('invalid value for "wwn", wwn cannot be nil.') - end - - if @creation_date.nil? - invalid_properties.push('invalid value for "creation_date", creation_date cannot be nil.') - end - - if @last_update_date.nil? - invalid_properties.push('invalid value for "last_update_date", last_update_date cannot be nil.') - end - - if @href.nil? - invalid_properties.push('invalid value for "href", href cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @volume_id.nil? - return false if @name.nil? - return false if @state.nil? - return false if @size.nil? - return false if @shareable.nil? - return false if @bootable.nil? - return false if @disk_type.nil? - return false if @wwn.nil? - return false if @creation_date.nil? - return false if @last_update_date.nil? - return false if @href.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - volume_id == o.volume_id && - name == o.name && - state == o.state && - size == o.size && - shareable == o.shareable && - bootable == o.bootable && - boot_volume == o.boot_volume && - delete_on_termination == o.delete_on_termination && - disk_type == o.disk_type && - volume_type == o.volume_type && - wwn == o.wwn && - creation_date == o.creation_date && - last_update_date == o.last_update_date && - href == o.href && - pvm_instance_i_ds == o.pvm_instance_i_ds - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [volume_id, name, state, size, shareable, bootable, boot_volume, delete_on_termination, disk_type, volume_type, wwn, creation_date, last_update_date, href, pvm_instance_i_ds].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes.rb deleted file mode 100644 index 7f79b03d..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes.rb +++ /dev/null @@ -1,216 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class Volumes - # Volumes - attr_accessor :volumes - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'volumes' => :'volumes' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'volumes' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::Volumes` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::Volumes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'volumes') - if (value = attributes[:'volumes']).is_a?(Array) - self.volumes = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @volumes.nil? - invalid_properties.push('invalid value for "volumes", volumes cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @volumes.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - volumes == o.volumes - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [volumes].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone.rb deleted file mode 100644 index feee13da..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone.rb +++ /dev/null @@ -1,284 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumesClone - # ID assigned to a volumes-clone request - attr_accessor :volumes_clone_id - - # Name assigned to a volumes-clone request - attr_accessor :name - - # Current status of the volumes-clone request - attr_accessor :status - - # Current action performed for the volumes-clone request - attr_accessor :action - - # The percent completion for the current action - attr_accessor :percent_complete - - # Failure reason for a failed volumes-clone request - attr_accessor :failure_message - - # Creation Date - attr_accessor :creation_date - - # Last Update Date - attr_accessor :last_update_date - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'volumes_clone_id' => :'volumesCloneID', - :'name' => :'name', - :'status' => :'status', - :'action' => :'action', - :'percent_complete' => :'percentComplete', - :'failure_message' => :'failureMessage', - :'creation_date' => :'creationDate', - :'last_update_date' => :'lastUpdateDate' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'volumes_clone_id' => :'String', - :'name' => :'String', - :'status' => :'String', - :'action' => :'String', - :'percent_complete' => :'Integer', - :'failure_message' => :'String', - :'creation_date' => :'DateTime', - :'last_update_date' => :'DateTime' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumesClone` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumesClone`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'volumes_clone_id') - self.volumes_clone_id = attributes[:'volumes_clone_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'action') - self.action = attributes[:'action'] - end - - if attributes.key?(:'percent_complete') - self.percent_complete = attributes[:'percent_complete'] - end - - if attributes.key?(:'failure_message') - self.failure_message = attributes[:'failure_message'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'last_update_date') - self.last_update_date = attributes[:'last_update_date'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @percent_complete.nil? - invalid_properties.push('invalid value for "percent_complete", percent_complete cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @percent_complete.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - volumes_clone_id == o.volumes_clone_id && - name == o.name && - status == o.status && - action == o.action && - percent_complete == o.percent_complete && - failure_message == o.failure_message && - creation_date == o.creation_date && - last_update_date == o.last_update_date - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [volumes_clone_id, name, status, action, percent_complete, failure_message, creation_date, last_update_date].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_async_request.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_async_request.rb deleted file mode 100644 index 7e784998..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_async_request.rb +++ /dev/null @@ -1,231 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumesCloneAsyncRequest - # 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\", ... - attr_accessor :name - - # List of volumes to be cloned - attr_accessor :volume_i_ds - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'volume_i_ds' => :'volumeIDs' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'volume_i_ds' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumesCloneAsyncRequest` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumesCloneAsyncRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'volume_i_ds') - if (value = attributes[:'volume_i_ds']).is_a?(Array) - self.volume_i_ds = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @volume_i_ds.nil? - invalid_properties.push('invalid value for "volume_i_ds", volume_i_ds cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - return false if @volume_i_ds.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - volume_i_ds == o.volume_i_ds - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, volume_i_ds].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_cancel.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_cancel.rb deleted file mode 100644 index aa39490b..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_cancel.rb +++ /dev/null @@ -1,209 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumesCloneCancel - # default False, Cancel will only be allowed if the status is 'prepared', or 'available' True, Cancel will be allowed when the status is NOT completed, cancelling, cancelled, or failed - attr_accessor :force - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'force' => :'force' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'force' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumesCloneCancel` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumesCloneCancel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'force') - self.force = attributes[:'force'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - force == o.force - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [force].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_create.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_create.rb deleted file mode 100644 index 4fcf3445..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_create.rb +++ /dev/null @@ -1,231 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumesCloneCreate - # 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 - attr_accessor :name - - # List of volumes to be cloned - attr_accessor :volume_i_ds - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'volume_i_ds' => :'volumeIDs' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'volume_i_ds' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumesCloneCreate` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumesCloneCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'volume_i_ds') - if (value = attributes[:'volume_i_ds']).is_a?(Array) - self.volume_i_ds = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - if @volume_i_ds.nil? - invalid_properties.push('invalid value for "volume_i_ds", volume_i_ds cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - return false if @volume_i_ds.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - volume_i_ds == o.volume_i_ds - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, volume_i_ds].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_detail.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_detail.rb deleted file mode 100644 index 2b46792d..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_detail.rb +++ /dev/null @@ -1,296 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumesCloneDetail - # ID assigned to a volumes-clone request - attr_accessor :volumes_clone_id - - # Name assigned to a volumes-clone request - attr_accessor :name - - # Current status of the volumes-clone request - attr_accessor :status - - # Current action performed for the volumes-clone request - attr_accessor :action - - # The percent completion for the current action - attr_accessor :percent_complete - - # Failure reason for a failed volumes-clone request - attr_accessor :failure_message - - # Creation Date - attr_accessor :creation_date - - # Last Update Date - attr_accessor :last_update_date - - # List of cloned volumes created from the volumes-clone request. The clone volumes information is included only after the Execute step has completed successfully. The source and clone volume names might not be provided as this information is retrieved in a separate API call and might not complete in a timely manner. - attr_accessor :cloned_volumes - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'volumes_clone_id' => :'volumesCloneID', - :'name' => :'name', - :'status' => :'status', - :'action' => :'action', - :'percent_complete' => :'percentComplete', - :'failure_message' => :'failureMessage', - :'creation_date' => :'creationDate', - :'last_update_date' => :'lastUpdateDate', - :'cloned_volumes' => :'clonedVolumes' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'volumes_clone_id' => :'String', - :'name' => :'String', - :'status' => :'String', - :'action' => :'String', - :'percent_complete' => :'Integer', - :'failure_message' => :'String', - :'creation_date' => :'DateTime', - :'last_update_date' => :'DateTime', - :'cloned_volumes' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumesCloneDetail` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumesCloneDetail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'volumes_clone_id') - self.volumes_clone_id = attributes[:'volumes_clone_id'] - end - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - end - - if attributes.key?(:'action') - self.action = attributes[:'action'] - end - - if attributes.key?(:'percent_complete') - self.percent_complete = attributes[:'percent_complete'] - end - - if attributes.key?(:'failure_message') - self.failure_message = attributes[:'failure_message'] - end - - if attributes.key?(:'creation_date') - self.creation_date = attributes[:'creation_date'] - end - - if attributes.key?(:'last_update_date') - self.last_update_date = attributes[:'last_update_date'] - end - - if attributes.key?(:'cloned_volumes') - if (value = attributes[:'cloned_volumes']).is_a?(Array) - self.cloned_volumes = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @percent_complete.nil? - invalid_properties.push('invalid value for "percent_complete", percent_complete cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @percent_complete.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - volumes_clone_id == o.volumes_clone_id && - name == o.name && - status == o.status && - action == o.action && - percent_complete == o.percent_complete && - failure_message == o.failure_message && - creation_date == o.creation_date && - last_update_date == o.last_update_date && - cloned_volumes == o.cloned_volumes - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [volumes_clone_id, name, status, action, percent_complete, failure_message, creation_date, last_update_date, cloned_volumes].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_execute.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_execute.rb deleted file mode 100644 index d83c6e35..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_execute.rb +++ /dev/null @@ -1,224 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumesCloneExecute - # 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\", ... - attr_accessor :name - - # default False, Execute failure rolls back clone activity but leaves prepared snapshot True, Execute failure rolls back clone activity and removes the prepared snapshot - attr_accessor :rollback_prepare - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'rollback_prepare' => :'rollbackPrepare' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'name' => :'String', - :'rollback_prepare' => :'Boolean' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumesCloneExecute` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumesCloneExecute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.key?(:'rollback_prepare') - self.rollback_prepare = attributes[:'rollback_prepare'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @name.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - rollback_prepare == o.rollback_prepare - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [name, rollback_prepare].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_request.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_request.rb deleted file mode 100644 index 675eb143..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_request.rb +++ /dev/null @@ -1,231 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumesCloneRequest - # 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\", ... - attr_accessor :display_name - - # List of volumes to be cloned - attr_accessor :volume_i_ds - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'display_name' => :'displayName', - :'volume_i_ds' => :'volumeIDs' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'display_name' => :'String', - :'volume_i_ds' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumesCloneRequest` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumesCloneRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'display_name') - self.display_name = attributes[:'display_name'] - end - - if attributes.key?(:'volume_i_ds') - if (value = attributes[:'volume_i_ds']).is_a?(Array) - self.volume_i_ds = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - if @display_name.nil? - invalid_properties.push('invalid value for "display_name", display_name cannot be nil.') - end - - if @volume_i_ds.nil? - invalid_properties.push('invalid value for "volume_i_ds", volume_i_ds cannot be nil.') - end - - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - return false if @display_name.nil? - return false if @volume_i_ds.nil? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - display_name == o.display_name && - volume_i_ds == o.volume_i_ds - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [display_name, volume_i_ds].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_response.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_response.rb deleted file mode 100644 index 833b8d3d..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clone_response.rb +++ /dev/null @@ -1,211 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumesCloneResponse - # A map of volume IDs to cloned volume IDs - attr_accessor :cloned_volumes - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'cloned_volumes' => :'clonedVolumes' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'cloned_volumes' => :'Hash' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumesCloneResponse` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumesCloneResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'cloned_volumes') - if (value = attributes[:'cloned_volumes']).is_a?(Hash) - self.cloned_volumes = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - cloned_volumes == o.cloned_volumes - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [cloned_volumes].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clones.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clones.rb deleted file mode 100644 index c4140eba..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/models/volumes_clones.rb +++ /dev/null @@ -1,211 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'date' - -module IbmCloudPower - class VolumesClones - # list of volumes-clone requests - attr_accessor :volumes_clone - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'volumes_clone' => :'volumesClone' - } - end - - # Attribute type mapping. - def self.openapi_types - { - :'volumes_clone' => :'Array' - } - end - - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `IbmCloudPower::VolumesClones` initialize method" - end - - # check to see if the attribute exists and convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `IbmCloudPower::VolumesClones`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect - end - h[k.to_sym] = v - } - - if attributes.key?(:'volumes_clone') - if (value = attributes[:'volumes_clone']).is_a?(Array) - self.volumes_clone = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - volumes_clone == o.volumes_clone - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Integer] Hash code - def hash - [volumes_clone].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.openapi_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) - end - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :Boolean - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - IbmCloudPower.const_get(type).build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/gems/ibm_cloud_power/lib/ibm_cloud_power/version.rb b/gems/ibm_cloud_power/lib/ibm_cloud_power/version.rb deleted file mode 100644 index ea0cde73..00000000 --- a/gems/ibm_cloud_power/lib/ibm_cloud_power/version.rb +++ /dev/null @@ -1,15 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -module IbmCloudPower - VERSION = '1.1.0' -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_cloud_connections_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_cloud_connections_api_spec.rb deleted file mode 100644 index 74b087c2..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_cloud_connections_api_spec.rb +++ /dev/null @@ -1,132 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudCloudConnectionsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudCloudConnectionsApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudCloudConnectionsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudCloudConnectionsApi' do - it 'should create an instance of PCloudCloudConnectionsApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudCloudConnectionsApi) - end - end - - # unit tests for pcloud_cloudconnections_delete - # Delete a Cloud connection - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id Cloud connection ID - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_cloudconnections_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudconnections_get - # Get a Cloud connection's state or information - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id Cloud connection ID - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - describe 'pcloud_cloudconnections_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudconnections_getall - # Get all Cloud connections in a specific cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [CloudConnections] - describe 'pcloud_cloudconnections_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudconnections_networks_delete - # Delete a network from a Cloud connection - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id Cloud connection ID - # @param network_id Network ID - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - describe 'pcloud_cloudconnections_networks_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudconnections_networks_put - # Add a network to the Cloud connection - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id Cloud connection ID - # @param network_id Network ID - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - describe 'pcloud_cloudconnections_networks_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudconnections_post - # Create a new Cloud connection - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for the creation of a new Cloud connection - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - describe 'pcloud_cloudconnections_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudconnections_put - # Update a Cloud connection - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param cloud_connection_id Cloud connection ID - # @param body Parameters to update a Cloud connection - # @param [Hash] opts the optional parameters - # @return [CloudConnection] - describe 'pcloud_cloudconnections_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudconnections_virtualprivateclouds_getall - # Get all virtual private clouds in a specific cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [CloudConnectionVirtualPrivateClouds] - describe 'pcloud_cloudconnections_virtualprivateclouds_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_events_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_events_api_spec.rb deleted file mode 100644 index 66de82fe..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_events_api_spec.rb +++ /dev/null @@ -1,62 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudEventsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudEventsApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudEventsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudEventsApi' do - it 'should create an instance of PCloudEventsApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudEventsApi) - end - end - - # unit tests for pcloud_events_get - # Get a single event - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param event_id Event ID - # @param [Hash] opts the optional parameters - # @option opts [String] :accept_language The language requested for the return document - # @return [Event] - describe 'pcloud_events_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_events_getsince - # Get events from this cloud instance since a specific timestamp - # You must append the '?time=' query parameter to the cURL URL to get a list of events. - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param time A time in either ISO 8601 or unix epoch format - # @param [Hash] opts the optional parameters - # @option opts [String] :accept_language The language requested for the return document - # @return [Events] - describe 'pcloud_events_getsince test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_images_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_images_api_spec.rb deleted file mode 100644 index 1f923c92..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_images_api_spec.rb +++ /dev/null @@ -1,117 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudImagesApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudImagesApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudImagesApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudImagesApi' do - it 'should create an instance of PCloudImagesApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudImagesApi) - end - end - - # unit tests for pcloud_cloudinstances_images_delete - # Delete an image from a cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param image_id Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_cloudinstances_images_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_images_export_post - # Export an image - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param image_id Image ID of a image - # @param body Parameters for exporting an image - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_cloudinstances_images_export_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_images_get - # Detailed information of an image - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param image_id Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Image] - describe 'pcloud_cloudinstances_images_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_images_getall - # List all of the images for this cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Images] - describe 'pcloud_cloudinstances_images_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_images_post - # Create a new image from available images - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for the creation of a new image from available images - # @param [Hash] opts the optional parameters - # @return [Image] - describe 'pcloud_cloudinstances_images_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_images_get - # Detailed information of an available image - # @param image_id Image ID of a image - # @param [Hash] opts the optional parameters - # @return [Images] - describe 'pcloud_images_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_images_getall - # List all images available for copying into cloud instances - # @param [Hash] opts the optional parameters - # @option opts [Boolean] :sap Include SAP images with get available stock images - # @return [Images] - describe 'pcloud_images_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_instances_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_instances_api_spec.rb deleted file mode 100644 index 0bdad327..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_instances_api_spec.rb +++ /dev/null @@ -1,69 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudInstancesApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudInstancesApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudInstancesApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudInstancesApi' do - it 'should create an instance of PCloudInstancesApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudInstancesApi) - end - end - - # unit tests for pcloud_cloudinstances_delete - # Delete a Power Cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_cloudinstances_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_get - # Get a cloud instance's current state or information - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [CloudInstance] - describe 'pcloud_cloudinstances_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_put - # Update or upgrade a cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for updating a Power Cloud instance - # @param [Hash] opts the optional parameters - # @return [CloudInstance] - describe 'pcloud_cloudinstances_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_networks_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_networks_api_spec.rb deleted file mode 100644 index aa31f146..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_networks_api_spec.rb +++ /dev/null @@ -1,161 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudNetworksApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudNetworksApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudNetworksApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudNetworksApi' do - it 'should create an instance of PCloudNetworksApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudNetworksApi) - end - end - - # unit tests for pcloud_networks_delete - # Delete a network - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param network_id Network ID - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_networks_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_networks_get - # Get a network's current state or information - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param network_id Network ID - # @param [Hash] opts the optional parameters - # @return [Network] - describe 'pcloud_networks_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_networks_getall - # Get all networks in this cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [String] :filter A filter expression that filters resources listed in the response - # @return [Networks] - describe 'pcloud_networks_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_networks_ports_delete - # Delete a network port - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param network_id Network ID - # @param port_id Port ID - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_networks_ports_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_networks_ports_get - # Get a port's information - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param network_id Network ID - # @param port_id Port ID - # @param [Hash] opts the optional parameters - # @return [NetworkPort] - describe 'pcloud_networks_ports_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_networks_ports_getall - # Get all ports for this network - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param network_id Network ID - # @param [Hash] opts the optional parameters - # @return [NetworkPorts] - describe 'pcloud_networks_ports_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_networks_ports_post - # Perform port addition, deletion, and listing - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param network_id Network ID - # @param [Hash] opts the optional parameters - # @option opts [NetworkPortCreate] :body Create a Network Port - # @return [NetworkPort] - describe 'pcloud_networks_ports_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_networks_ports_put - # Update a port's information - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param network_id Network ID - # @param port_id Port ID - # @param body Parameters for updating a Port - # @param [Hash] opts the optional parameters - # @return [NetworkPort] - describe 'pcloud_networks_ports_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_networks_post - # Create a new network - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for the creation of a new network - # @param [Hash] opts the optional parameters - # @return [Network] - describe 'pcloud_networks_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_networks_put - # Update a network - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param network_id Network ID - # @param body Parameters to update a Network - # @param [Hash] opts the optional parameters - # @return [Network] - describe 'pcloud_networks_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_placement_groups_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_placement_groups_api_spec.rb deleted file mode 100644 index b18a7728..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_placement_groups_api_spec.rb +++ /dev/null @@ -1,108 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudPlacementGroupsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudPlacementGroupsApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudPlacementGroupsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudPlacementGroupsApi' do - it 'should create an instance of PCloudPlacementGroupsApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudPlacementGroupsApi) - end - end - - # unit tests for pcloud_placementgroups_delete - # Delete server placement group - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param placement_group_id Placement Group ID or Placement Group Name - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_placementgroups_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_placementgroups_get - # Get server placement group details - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param placement_group_id Placement Group ID or Placement Group Name - # @param [Hash] opts the optional parameters - # @return [PlacementGroup] - describe 'pcloud_placementgroups_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_placementgroups_getall - # Get all server placement groups - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [PlacementGroups] - describe 'pcloud_placementgroups_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_placementgroups_members_delete - # Remove server from placement group - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param placement_group_id Placement Group ID or Placement Group Name - # @param body Parameters for removing a Server in a Placement Group - # @param [Hash] opts the optional parameters - # @return [PlacementGroup] - describe 'pcloud_placementgroups_members_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_placementgroups_members_post - # Add server to placement group - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param placement_group_id Placement Group ID or Placement Group Name - # @param body Parameters for adding a server to a Placement Group - # @param [Hash] opts the optional parameters - # @return [PlacementGroup] - describe 'pcloud_placementgroups_members_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_placementgroups_post - # Create a server placement group - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for the creating a server placement group - # @param [Hash] opts the optional parameters - # @return [PlacementGroup] - describe 'pcloud_placementgroups_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_pvm_instances_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_pvm_instances_api_spec.rb deleted file mode 100644 index 7d88454c..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_pvm_instances_api_spec.rb +++ /dev/null @@ -1,240 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudPVMInstancesApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudPVMInstancesApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudPVMInstancesApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudPVMInstancesApi' do - it 'should create an instance of PCloudPVMInstancesApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudPVMInstancesApi) - end - end - - # unit tests for pcloud_pvminstances_action_post - # Perform an action (start stop reboot immediate-shutdown reset) on a PVMInstance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param body Parameters for the desired action - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_pvminstances_action_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_capture_post - # Capture a PVM instance and create a deployable image - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param body Parameters for the capture PVMInstance - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_pvminstances_capture_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_console_post - # Generate the noVNC console URL - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [PVMInstanceConsole] - describe 'pcloud_pvminstances_console_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_delete - # Delete a PCloud PVM instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_pvminstances_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_get - # Get a PVM instance's current state or information - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [PVMInstance] - describe 'pcloud_pvminstances_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_getall - # Get all the PVM instances for this cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [PVMInstances] - describe 'pcloud_pvminstances_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_networks_delete - # Remove all addresses of network from a PVM instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param network_id Network ID - # @param [Hash] opts the optional parameters - # @option opts [PVMInstanceRemoveNetwork] :body Remove a network from PVM Instance parameters - # @return [Object] - describe 'pcloud_pvminstances_networks_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_networks_get - # Get a PVM instance's network information - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param network_id Network ID - # @param [Hash] opts the optional parameters - # @return [PVMInstanceNetworks] - describe 'pcloud_pvminstances_networks_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_networks_getall - # Get all networks for this PVM instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [PVMInstanceNetworks] - describe 'pcloud_pvminstances_networks_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_networks_post - # Perform network addition, deletion, and listing - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param body Add network to PVM Instance parameters - # @param [Hash] opts the optional parameters - # @return [PVMInstanceNetwork] - describe 'pcloud_pvminstances_networks_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_operations_post - # Perform an operation on a PVMInstance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param body Parameters for the desired operations - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_pvminstances_operations_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_post - # Create a new PVM instance - # The order of network IDs passed in will be the order of interfaces defined to the VM. - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for the creation of a new tenant - # @param [Hash] opts the optional parameters - # @return [Array] - describe 'pcloud_pvminstances_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_put - # Update a PCloud PVM instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param body Parameters to update a PCloud PVM instance - # @param [Hash] opts the optional parameters - # @return [PVMInstanceUpdateResponse] - describe 'pcloud_pvminstances_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_snapshots_getall - # Get all snapshots for this PVM instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Snapshots] - describe 'pcloud_pvminstances_snapshots_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_snapshots_post - # Create a PVM instance snapshot - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param body PVM Instance snapshot create parameters - # @param [Hash] opts the optional parameters - # @return [SnapshotCreateResponse] - describe 'pcloud_pvminstances_snapshots_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_snapshots_restore_post - # Restore a PVM Instance snapshot - # To roll back the clone operation, append '?restore_fail_action=rollback' to the cURL URL. If you'd like to try the clone operation again, append '?restore_fail_action=retry' to the cURL URL. - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param snapshot_id PVM Instance snapshot id - # @param body PVM Instance snapshot restore parameters - # @param [Hash] opts the optional parameters - # @option opts [String] :restore_fail_action Action to take on a failed snapshot restore - # @return [nil] - describe 'pcloud_pvminstances_snapshots_restore_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_sap_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_sap_api_spec.rb deleted file mode 100644 index bb15fee3..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_sap_api_spec.rb +++ /dev/null @@ -1,70 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudSAPApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudSAPApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudSAPApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudSAPApi' do - it 'should create an instance of PCloudSAPApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudSAPApi) - end - end - - # unit tests for pcloud_sap_get - # Get the information on an SAP profile - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param sap_profile_id SAP Profile ID - # @param [Hash] opts the optional parameters - # @return [SAPProfile] - describe 'pcloud_sap_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_sap_getall - # Get list of SAP profiles - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [SAPProfiles] - describe 'pcloud_sap_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_sap_post - # Create a new SAP PVM Instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for the creation of a new SAP PVM Instance - # @param [Hash] opts the optional parameters - # @return [Array] - describe 'pcloud_sap_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_snapshots_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_snapshots_api_spec.rb deleted file mode 100644 index 4b09b5d6..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_snapshots_api_spec.rb +++ /dev/null @@ -1,83 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudSnapshotsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudSnapshotsApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudSnapshotsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudSnapshotsApi' do - it 'should create an instance of PCloudSnapshotsApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudSnapshotsApi) - end - end - - # unit tests for pcloud_cloudinstances_snapshots_delete - # Delete a PVM instance snapshot of a cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param snapshot_id PVM Instance snapshot id - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_cloudinstances_snapshots_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_snapshots_get - # Get the detail of a snapshot - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param snapshot_id PVM Instance snapshot id - # @param [Hash] opts the optional parameters - # @return [Snapshot] - describe 'pcloud_cloudinstances_snapshots_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_snapshots_getall - # List all PVM instance snapshots for this cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Snapshots] - describe 'pcloud_cloudinstances_snapshots_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_snapshots_put - # Update a PVM instance snapshot - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param snapshot_id PVM Instance snapshot id - # @param body Parameters for the update of a PVM instance snapshot - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_cloudinstances_snapshots_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_storage_capacity_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_storage_capacity_api_spec.rb deleted file mode 100644 index 83b2b7c8..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_storage_capacity_api_spec.rb +++ /dev/null @@ -1,81 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudStorageCapacityApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudStorageCapacityApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudStorageCapacityApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudStorageCapacityApi' do - it 'should create an instance of PCloudStorageCapacityApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudStorageCapacityApi) - end - end - - # unit tests for pcloud_storagecapacity_pools_get - # Storage capacity for a storage pool in a region - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param storage_pool_name Storage pool name - # @param [Hash] opts the optional parameters - # @return [StoragePoolCapacity] - describe 'pcloud_storagecapacity_pools_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_storagecapacity_pools_getall - # Storage capacity for all available storage pools in a region - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [StoragePoolsCapacity] - describe 'pcloud_storagecapacity_pools_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_storagecapacity_types_get - # Storage capacity for a storage type in a region - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param storage_type_name Storage type name - # @param [Hash] opts the optional parameters - # @return [StorageTypeCapacity] - describe 'pcloud_storagecapacity_types_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_storagecapacity_types_getall - # Storage capacity for all available storage types in a region - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [StorageTypesCapacity] - describe 'pcloud_storagecapacity_types_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_system_pools_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_system_pools_api_spec.rb deleted file mode 100644 index 1f2afab2..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_system_pools_api_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudSystemPoolsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudSystemPoolsApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudSystemPoolsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudSystemPoolsApi' do - it 'should create an instance of PCloudSystemPoolsApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudSystemPoolsApi) - end - end - - # unit tests for pcloud_systempools_get - # List of available system pools within a particular data center - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @return [Hash] - describe 'pcloud_systempools_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_tasks_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_tasks_api_spec.rb deleted file mode 100644 index 4c8bd800..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_tasks_api_spec.rb +++ /dev/null @@ -1,57 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudTasksApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudTasksApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudTasksApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudTasksApi' do - it 'should create an instance of PCloudTasksApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudTasksApi) - end - end - - # unit tests for pcloud_tasks_delete - # Delete a task - # @param task_id PCloud Task ID - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_tasks_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_tasks_get - # Get a task - # @param task_id PCloud Task ID - # @param [Hash] opts the optional parameters - # @return [Task] - describe 'pcloud_tasks_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_tenants_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_tenants_api_spec.rb deleted file mode 100644 index c98b111e..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_tenants_api_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudTenantsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudTenantsApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudTenantsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudTenantsApi' do - it 'should create an instance of PCloudTenantsApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudTenantsApi) - end - end - - # unit tests for pcloud_tenants_get - # Get a tenant's current state or information - # @param tenant_id Tenant ID of a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [Tenant] - describe 'pcloud_tenants_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_tenants_put - # Update a tenant - # @param tenant_id Tenant ID of a pcloud tenant - # @param body Parameters for updating a Tenant - # @param [Hash] opts the optional parameters - # @return [Tenant] - describe 'pcloud_tenants_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_tenants_ssh_keys_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_tenants_ssh_keys_api_spec.rb deleted file mode 100644 index 001d75a4..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_tenants_ssh_keys_api_spec.rb +++ /dev/null @@ -1,95 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudTenantsSSHKeysApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudTenantsSSHKeysApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudTenantsSSHKeysApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudTenantsSSHKeysApi' do - it 'should create an instance of PCloudTenantsSSHKeysApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudTenantsSSHKeysApi) - end - end - - # unit tests for pcloud_tenants_sshkeys_delete - # Delete a tenant's SSH key - # @param tenant_id Tenant ID of a pcloud tenant - # @param sshkey_name SSH key name for a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_tenants_sshkeys_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_tenants_sshkeys_get - # Get a tenant's SSH Key by name - # @param tenant_id Tenant ID of a pcloud tenant - # @param sshkey_name SSH key name for a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [SSHKey] - describe 'pcloud_tenants_sshkeys_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_tenants_sshkeys_getall - # List a tenant's SSH Keys - # @param tenant_id Tenant ID of a pcloud tenant - # @param [Hash] opts the optional parameters - # @return [SSHKeys] - describe 'pcloud_tenants_sshkeys_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_tenants_sshkeys_post - # Add a new SSH key to the tenant - # @param tenant_id Tenant ID of a pcloud tenant - # @param body Parameters for the creation of a new SSH key - # @param [Hash] opts the optional parameters - # @return [SSHKey] - describe 'pcloud_tenants_sshkeys_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_tenants_sshkeys_put - # Update an SSH Key - # @param tenant_id Tenant ID of a pcloud tenant - # @param sshkey_name SSH key name for a pcloud tenant - # @param body Parameters for updating a Tenant's SSH Key - # @param [Hash] opts the optional parameters - # @return [SSHKey] - describe 'pcloud_tenants_sshkeys_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api/p_cloud_volumes_api_spec.rb b/gems/ibm_cloud_power/spec/api/p_cloud_volumes_api_spec.rb deleted file mode 100644 index 96c3509d..00000000 --- a/gems/ibm_cloud_power/spec/api/p_cloud_volumes_api_spec.rb +++ /dev/null @@ -1,223 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for IbmCloudPower::PCloudVolumesApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PCloudVolumesApi' do - before do - # run before each test - @api_instance = IbmCloudPower::PCloudVolumesApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PCloudVolumesApi' do - it 'should create an instance of PCloudVolumesApi' do - expect(@api_instance).to be_instance_of(IbmCloudPower::PCloudVolumesApi) - end - end - - # unit tests for pcloud_cloudinstances_volumes_delete - # Delete a cloud instance volume - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param volume_id Volume ID - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_cloudinstances_volumes_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_volumes_get - # Detailed information of a volume - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param volume_id Volume ID - # @param [Hash] opts the optional parameters - # @return [Volume] - describe 'pcloud_cloudinstances_volumes_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_volumes_getall - # List all volumes for this cloud instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param [Hash] opts the optional parameters - # @option opts [String] :affinity A pvmInstance (id or name), limits a volumes list response to only volumes that have affinity to the pvmInstance - # @return [Volumes] - describe 'pcloud_cloudinstances_volumes_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_volumes_post - # Create a new data volume - # All regions use Tier 1 (NVMe-based flash storage) or Tier 3 (SSD flash storage) storage types. - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for the creation of a new data volume - # @param [Hash] opts the optional parameters - # @return [Volume] - describe 'pcloud_cloudinstances_volumes_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_cloudinstances_volumes_put - # Update a cloud instance volume - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param volume_id Volume ID - # @param body Parameters to update a cloud instance volume - # @param [Hash] opts the optional parameters - # @return [Volume] - describe 'pcloud_cloudinstances_volumes_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_volumes_delete - # Detach a volume from a PVM Instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param volume_id Volume ID - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_pvminstances_volumes_delete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_volumes_get - # Detailed information of a volume attached to a PVM Instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param volume_id Volume ID - # @param [Hash] opts the optional parameters - # @return [Volume] - describe 'pcloud_pvminstances_volumes_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_volumes_getall - # List all volumes attached to a PVM Instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param [Hash] opts the optional parameters - # @return [Volumes] - describe 'pcloud_pvminstances_volumes_getall test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_volumes_post - # Attach a volume to a PVM Instance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param volume_id Volume ID - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_pvminstances_volumes_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_volumes_put - # Update a volume attached to a PVMInstance - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param volume_id Volume ID - # @param body Parameters to update a volume attached to a PVMInstance - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_pvminstances_volumes_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_pvminstances_volumes_setboot_put - # Set the PVMInstance volume as the boot volume - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param pvm_instance_id PCloud PVM Instance ID - # @param volume_id Volume ID - # @param [Hash] opts the optional parameters - # @return [Object] - describe 'pcloud_pvminstances_volumes_setboot_put test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_v2_volumes_clone_post - # Create a volume clone for specified volumes (version 2) - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for the cloning of volumes - # @param [Hash] opts the optional parameters - # @return [CloneTaskReference] - describe 'pcloud_v2_volumes_clone_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_v2_volumes_clonetasks_get - # Get the status of a volume clone request for the specified clone task ID - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param clone_task_id Volumes Clone Task ID - # @param [Hash] opts the optional parameters - # @return [CloneTaskStatus] - describe 'pcloud_v2_volumes_clonetasks_get test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_v2_volumes_post - # Create multiple data volumes from a single definition - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for creating multiple volumes - # @param [Hash] opts the optional parameters - # @return [Volumes] - describe 'pcloud_v2_volumes_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for pcloud_volumes_clone_post - # Create a volume clone for specified volumes (version 1 - depricated) - # @param cloud_instance_id Cloud Instance ID of a PCloud Instance - # @param body Parameters for the cloning of volumes - # @param [Hash] opts the optional parameters - # @return [VolumesCloneResponse] - describe 'pcloud_volumes_clone_post test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/api_client_spec.rb b/gems/ibm_cloud_power/spec/api_client_spec.rb deleted file mode 100644 index 8547c1df..00000000 --- a/gems/ibm_cloud_power/spec/api_client_spec.rb +++ /dev/null @@ -1,226 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' - -describe IbmCloudPower::ApiClient do - context 'initialization' do - context 'URL stuff' do - context 'host' do - it 'removes http from host' do - IbmCloudPower.configure { |c| c.host = 'http://example.com' } - expect(IbmCloudPower::Configuration.default.host).to eq('example.com') - end - - it 'removes https from host' do - IbmCloudPower.configure { |c| c.host = 'https://wookiee.com' } - expect(IbmCloudPower::ApiClient.default.config.host).to eq('wookiee.com') - end - - it 'removes trailing path from host' do - IbmCloudPower.configure { |c| c.host = 'hobo.com/v4' } - expect(IbmCloudPower::Configuration.default.host).to eq('hobo.com') - end - end - - context 'base_path' do - it "prepends a slash to base_path" do - IbmCloudPower.configure { |c| c.base_path = 'v4/dog' } - expect(IbmCloudPower::Configuration.default.base_path).to eq('/v4/dog') - end - - it "doesn't prepend a slash if one is already there" do - IbmCloudPower.configure { |c| c.base_path = '/v4/dog' } - expect(IbmCloudPower::Configuration.default.base_path).to eq('/v4/dog') - end - - it "ends up as a blank string if nil" do - IbmCloudPower.configure { |c| c.base_path = nil } - expect(IbmCloudPower::Configuration.default.base_path).to eq('') - end - end - end - end - - describe 'params_encoding in #build_request' do - let(:config) { IbmCloudPower::Configuration.new } - let(:api_client) { IbmCloudPower::ApiClient.new(config) } - - it 'defaults to nil' do - expect(IbmCloudPower::Configuration.default.params_encoding).to eq(nil) - expect(config.params_encoding).to eq(nil) - - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(nil) - end - - it 'can be customized' do - config.params_encoding = :multi - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(:multi) - end - end - - describe 'timeout in #build_request' do - let(:config) { IbmCloudPower::Configuration.new } - let(:api_client) { IbmCloudPower::ApiClient.new(config) } - - it 'defaults to 0' do - expect(IbmCloudPower::Configuration.default.timeout).to eq(0) - expect(config.timeout).to eq(0) - - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(0) - end - - it 'can be customized' do - config.timeout = 100 - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(100) - end - end - - describe '#deserialize' do - it "handles Array" do - api_client = IbmCloudPower::ApiClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '[12, 34]') - data = api_client.deserialize(response, 'Array') - expect(data).to be_instance_of(Array) - expect(data).to eq([12, 34]) - end - - it 'handles Array>' do - api_client = IbmCloudPower::ApiClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '[[12, 34], [56]]') - data = api_client.deserialize(response, 'Array>') - expect(data).to be_instance_of(Array) - expect(data).to eq([[12, 34], [56]]) - end - - it 'handles Hash' do - api_client = IbmCloudPower::ApiClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '{"message": "Hello"}') - data = api_client.deserialize(response, 'Hash') - expect(data).to be_instance_of(Hash) - expect(data).to eq(:message => 'Hello') - end - end - - describe "#object_to_hash" do - it 'ignores nils and includes empty arrays' do - # uncomment below to test object_to_hash for model - # api_client = IbmCloudPower::ApiClient.new - # _model = IbmCloudPower::ModelName.new - # update the model attribute below - # _model.id = 1 - # update the expected value (hash) below - # expected = {id: 1, name: '', tags: []} - # expect(api_client.object_to_hash(_model)).to eq(expected) - end - end - - describe '#build_collection_param' do - let(:param) { ['aa', 'bb', 'cc'] } - let(:api_client) { IbmCloudPower::ApiClient.new } - - it 'works for csv' do - expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc') - end - - it 'works for ssv' do - expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc') - end - - it 'works for tsv' do - expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc") - end - - it 'works for pipes' do - expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc') - end - - it 'works for multi' do - expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc']) - end - - it 'fails for invalid collection format' do - expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID') - end - end - - describe '#json_mime?' do - let(:api_client) { IbmCloudPower::ApiClient.new } - - it 'works' do - expect(api_client.json_mime?(nil)).to eq false - expect(api_client.json_mime?('')).to eq false - - expect(api_client.json_mime?('application/json')).to eq true - expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true - expect(api_client.json_mime?('APPLICATION/JSON')).to eq true - - expect(api_client.json_mime?('application/xml')).to eq false - expect(api_client.json_mime?('text/plain')).to eq false - expect(api_client.json_mime?('application/jsonp')).to eq false - end - end - - describe '#select_header_accept' do - let(:api_client) { IbmCloudPower::ApiClient.new } - - it 'works' do - expect(api_client.select_header_accept(nil)).to be_nil - expect(api_client.select_header_accept([])).to be_nil - - expect(api_client.select_header_accept(['application/json'])).to eq('application/json') - expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8') - expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON') - - expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml') - expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml') - end - end - - describe '#select_header_content_type' do - let(:api_client) { IbmCloudPower::ApiClient.new } - - it 'works' do - expect(api_client.select_header_content_type(nil)).to eq('application/json') - expect(api_client.select_header_content_type([])).to eq('application/json') - - expect(api_client.select_header_content_type(['application/json'])).to eq('application/json') - expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8') - expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON') - expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml') - expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain') - end - end - - describe '#sanitize_filename' do - let(:api_client) { IbmCloudPower::ApiClient.new } - - it 'works' do - expect(api_client.sanitize_filename('sun')).to eq('sun') - expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif') - end - end -end diff --git a/gems/ibm_cloud_power/spec/configuration_spec.rb b/gems/ibm_cloud_power/spec/configuration_spec.rb deleted file mode 100644 index 6a28ed26..00000000 --- a/gems/ibm_cloud_power/spec/configuration_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' - -describe IbmCloudPower::Configuration do - let(:config) { IbmCloudPower::Configuration.default } - - before(:each) do - # uncomment below to setup host and base_path - # require 'URI' - # uri = URI.parse("http://localhost") - # IbmCloudPower.configure do |c| - # c.host = uri.host - # c.base_path = uri.path - # end - end - - describe '#base_url' do - it 'should have the default value' do - # uncomment below to test default value of the base path - # expect(config.base_url).to eq("http://localhost") - end - - it 'should remove trailing slashes' do - [nil, '', '/', '//'].each do |base_path| - config.base_path = base_path - # uncomment below to test trailing slashes - # expect(config.base_url).to eq("http://localhost") - end - end - end -end diff --git a/gems/ibm_cloud_power/spec/models/clone_task_reference_spec.rb b/gems/ibm_cloud_power/spec/models/clone_task_reference_spec.rb deleted file mode 100644 index 72011a41..00000000 --- a/gems/ibm_cloud_power/spec/models/clone_task_reference_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloneTaskReference -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloneTaskReference' do - before do - # run before each test - @instance = IbmCloudPower::CloneTaskReference.new - end - - after do - # run after each test - end - - describe 'test an instance of CloneTaskReference' do - it 'should create an instance of CloneTaskReference' do - expect(@instance).to be_instance_of(IbmCloudPower::CloneTaskReference) - end - end - describe 'test attribute "clone_task_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/clone_task_status_spec.rb b/gems/ibm_cloud_power/spec/models/clone_task_status_spec.rb deleted file mode 100644 index 3dcc7657..00000000 --- a/gems/ibm_cloud_power/spec/models/clone_task_status_spec.rb +++ /dev/null @@ -1,63 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloneTaskStatus -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloneTaskStatus' do - before do - # run before each test - @instance = IbmCloudPower::CloneTaskStatus.new - end - - after do - # run after each test - end - - describe 'test an instance of CloneTaskStatus' do - it 'should create an instance of CloneTaskStatus' do - expect(@instance).to be_instance_of(IbmCloudPower::CloneTaskStatus) - end - end - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["running", "completed", "failed", "unknown"]) - # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error - # end - end - end - - describe 'test attribute "percent_complete"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cloned_volumes"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "failed_reason"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloned_volume_detail_spec.rb b/gems/ibm_cloud_power/spec/models/cloned_volume_detail_spec.rb deleted file mode 100644 index 4a89004d..00000000 --- a/gems/ibm_cloud_power/spec/models/cloned_volume_detail_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::ClonedVolumeDetail -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ClonedVolumeDetail' do - before do - # run before each test - @instance = IbmCloudPower::ClonedVolumeDetail.new - end - - after do - # run after each test - end - - describe 'test an instance of ClonedVolumeDetail' do - it 'should create an instance of ClonedVolumeDetail' do - expect(@instance).to be_instance_of(IbmCloudPower::ClonedVolumeDetail) - end - end - describe 'test attribute "source"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "clone"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloned_volume_spec.rb b/gems/ibm_cloud_power/spec/models/cloned_volume_spec.rb deleted file mode 100644 index 35d7c287..00000000 --- a/gems/ibm_cloud_power/spec/models/cloned_volume_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::ClonedVolume -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ClonedVolume' do - before do - # run before each test - @instance = IbmCloudPower::ClonedVolume.new - end - - after do - # run after each test - end - - describe 'test an instance of ClonedVolume' do - it 'should create an instance of ClonedVolume' do - expect(@instance).to be_instance_of(IbmCloudPower::ClonedVolume) - end - end - describe 'test attribute "source_volume_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cloned_volume_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_create_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_create_spec.rb deleted file mode 100644 index 379c12ba..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_create_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionCreate' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionCreate' do - it 'should create an instance of CloudConnectionCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionCreate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "speed"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "global_routing"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metered"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_classic_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_classic_spec.rb deleted file mode 100644 index aec56740..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_classic_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionEndpointClassic -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionEndpointClassic' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionEndpointClassic.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionEndpointClassic' do - it 'should create an instance of CloudConnectionEndpointClassic' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionEndpointClassic) - end - end - describe 'test attribute "enabled"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "gre"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_gre_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_gre_spec.rb deleted file mode 100644 index d6789f6f..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_gre_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionEndpointGRE -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionEndpointGRE' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionEndpointGRE.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionEndpointGRE' do - it 'should create an instance of CloudConnectionEndpointGRE' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionEndpointGRE) - end - end - describe 'test attribute "enabled"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "tunnels"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_vpc_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_vpc_spec.rb deleted file mode 100644 index 67b85f19..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_endpoint_vpc_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionEndpointVPC -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionEndpointVPC' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionEndpointVPC.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionEndpointVPC' do - it 'should create an instance of CloudConnectionEndpointVPC' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionEndpointVPC) - end - end - describe 'test attribute "enabled"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "vpcs"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_gre_tunnel_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_gre_tunnel_spec.rb deleted file mode 100644 index e9f83423..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_gre_tunnel_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionGRETunnel -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionGRETunnel' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionGRETunnel.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionGRETunnel' do - it 'should create an instance of CloudConnectionGRETunnel' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionGRETunnel) - end - end - describe 'test attribute "source_ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "dest_ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cidr"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_spec.rb deleted file mode 100644 index 0c09737a..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_spec.rb +++ /dev/null @@ -1,113 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnection -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnection' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnection.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnection' do - it 'should create an instance of CloudConnection' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnection) - end - end - describe 'test attribute "cloud_connection_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "speed"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "global_routing"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "classic"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "vpc"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ibm_ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "port"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "link_status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metered"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_speed_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_speed_spec.rb deleted file mode 100644 index ef92406f..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_speed_spec.rb +++ /dev/null @@ -1,35 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionSpeed -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionSpeed' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionSpeed.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionSpeed' do - it 'should create an instance of CloudConnectionSpeed' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionSpeed) - end - end -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_update_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_update_spec.rb deleted file mode 100644 index d136ffed..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_update_spec.rb +++ /dev/null @@ -1,71 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionUpdate' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionUpdate.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionUpdate' do - it 'should create an instance of CloudConnectionUpdate' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionUpdate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "speed"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "global_routing"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metered"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "classic"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "vpc"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_virtual_private_clouds_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_virtual_private_clouds_spec.rb deleted file mode 100644 index 1cf64a90..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_virtual_private_clouds_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionVirtualPrivateClouds -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionVirtualPrivateClouds' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionVirtualPrivateClouds.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionVirtualPrivateClouds' do - it 'should create an instance of CloudConnectionVirtualPrivateClouds' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionVirtualPrivateClouds) - end - end - describe 'test attribute "virtual_private_clouds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb deleted file mode 100644 index 9099b4fa..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_virtual_private_clouds_virtual_private_clouds_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds' do - it 'should create an instance of CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionVirtualPrivateCloudsVirtualPrivateClouds) - end - end - describe 'test attribute "classic_access"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "vpc_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connection_vpc_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connection_vpc_spec.rb deleted file mode 100644 index fa41fbe2..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connection_vpc_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnectionVPC -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnectionVPC' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnectionVPC.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnectionVPC' do - it 'should create an instance of CloudConnectionVPC' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnectionVPC) - end - end - describe 'test attribute "vpc_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_connections_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_connections_spec.rb deleted file mode 100644 index 1ba4f815..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_connections_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudConnections -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudConnections' do - before do - # run before each test - @instance = IbmCloudPower::CloudConnections.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudConnections' do - it 'should create an instance of CloudConnections' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudConnections) - end - end - describe 'test attribute "cloud_connections"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_instance_create_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_instance_create_spec.rb deleted file mode 100644 index 707a14cf..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_instance_create_spec.rb +++ /dev/null @@ -1,77 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudInstanceCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudInstanceCreate' do - before do - # run before each test - @instance = IbmCloudPower::CloudInstanceCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudInstanceCreate' do - it 'should create an instance of CloudInstanceCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudInstanceCreate) - end - end - describe 'test attribute "tenant_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "region"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "processors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "proc_units"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "instances"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_instance_reference_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_instance_reference_spec.rb deleted file mode 100644 index 91fff6dd..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_instance_reference_spec.rb +++ /dev/null @@ -1,83 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudInstanceReference -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudInstanceReference' do - before do - # run before each test - @instance = IbmCloudPower::CloudInstanceReference.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudInstanceReference' do - it 'should create an instance of CloudInstanceReference' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudInstanceReference) - end - end - describe 'test attribute "cloud_instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "region"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "enabled"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "initialized"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "limits"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "capabilities"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_instance_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_instance_spec.rb deleted file mode 100644 index b86306e3..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_instance_spec.rb +++ /dev/null @@ -1,101 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudInstance -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudInstance' do - before do - # run before each test - @instance = IbmCloudPower::CloudInstance.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudInstance' do - it 'should create an instance of CloudInstance' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudInstance) - end - end - describe 'test attribute "cloud_instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "tenant_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "openstack_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "region"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "enabled"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "initialized"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "limits"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "usage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "capabilities"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pvm_instances"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_instance_update_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_instance_update_spec.rb deleted file mode 100644 index 4896c4dd..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_instance_update_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudInstanceUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudInstanceUpdate' do - before do - # run before each test - @instance = IbmCloudPower::CloudInstanceUpdate.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudInstanceUpdate' do - it 'should create an instance of CloudInstanceUpdate' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudInstanceUpdate) - end - end - describe 'test attribute "processors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "proc_units"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "instances"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/cloud_instance_usage_limits_spec.rb b/gems/ibm_cloud_power/spec/models/cloud_instance_usage_limits_spec.rb deleted file mode 100644 index 4fc053f8..00000000 --- a/gems/ibm_cloud_power/spec/models/cloud_instance_usage_limits_spec.rb +++ /dev/null @@ -1,101 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CloudInstanceUsageLimits -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CloudInstanceUsageLimits' do - before do - # run before each test - @instance = IbmCloudPower::CloudInstanceUsageLimits.new - end - - after do - # run after each test - end - - describe 'test an instance of CloudInstanceUsageLimits' do - it 'should create an instance of CloudInstanceUsageLimits' do - expect(@instance).to be_instance_of(IbmCloudPower::CloudInstanceUsageLimits) - end - end - describe 'test attribute "instances"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "proc_units"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "processors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "instance_memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "instance_proc_units"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "peering_networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "peering_bandwidth"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_ssd"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_standard"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/create_data_volume_spec.rb b/gems/ibm_cloud_power/spec/models/create_data_volume_spec.rb deleted file mode 100644 index c36419e9..00000000 --- a/gems/ibm_cloud_power/spec/models/create_data_volume_spec.rb +++ /dev/null @@ -1,81 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CreateDataVolume -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateDataVolume' do - before do - # run before each test - @instance = IbmCloudPower::CreateDataVolume.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateDataVolume' do - it 'should create an instance of CreateDataVolume' do - expect(@instance).to be_instance_of(IbmCloudPower::CreateDataVolume) - end - end - describe 'test attribute "disk_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_pool"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shareable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "affinity_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - # validator.allowable_values.each do |value| - # expect { @instance.affinity_policy = value }.not_to raise_error - # end - end - end - - describe 'test attribute "affinity_volume"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/create_image_spec.rb b/gems/ibm_cloud_power/spec/models/create_image_spec.rb deleted file mode 100644 index 524d82fe..00000000 --- a/gems/ibm_cloud_power/spec/models/create_image_spec.rb +++ /dev/null @@ -1,109 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::CreateImage -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateImage' do - before do - # run before each test - @instance = IbmCloudPower::CreateImage.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateImage' do - it 'should create an instance of CreateImage' do - expect(@instance).to be_instance_of(IbmCloudPower::CreateImage) - end - end - describe 'test attribute "source"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["root-project", "url"]) - # validator.allowable_values.each do |value| - # expect { @instance.source = value }.not_to raise_error - # end - end - end - - describe 'test attribute "image_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "image_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "image_path"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "region"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "image_filename"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "bucket_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "access_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "secret_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "os_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["aix", "ibmi", "redhat", "sles"]) - # validator.allowable_values.each do |value| - # expect { @instance.os_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "disk_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/error_spec.rb b/gems/ibm_cloud_power/spec/models/error_spec.rb deleted file mode 100644 index a8a60dfc..00000000 --- a/gems/ibm_cloud_power/spec/models/error_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Error -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Error' do - before do - # run before each test - @instance = IbmCloudPower::Error.new - end - - after do - # run after each test - end - - describe 'test an instance of Error' do - it 'should create an instance of Error' do - expect(@instance).to be_instance_of(IbmCloudPower::Error) - end - end - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/event_spec.rb b/gems/ibm_cloud_power/spec/models/event_spec.rb deleted file mode 100644 index 37d9e8be..00000000 --- a/gems/ibm_cloud_power/spec/models/event_spec.rb +++ /dev/null @@ -1,93 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Event -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Event' do - before do - # run before each test - @instance = IbmCloudPower::Event.new - end - - after do - # run after each test - end - - describe 'test an instance of Event' do - it 'should create an instance of Event' do - expect(@instance).to be_instance_of(IbmCloudPower::Event) - end - end - describe 'test attribute "event_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timestamp"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "level"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["notice", "info", "warning", "error"]) - # validator.allowable_values.each do |value| - # expect { @instance.level = value }.not_to raise_error - # end - end - end - - describe 'test attribute "resource"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metadata"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/event_user_spec.rb b/gems/ibm_cloud_power/spec/models/event_user_spec.rb deleted file mode 100644 index 68211598..00000000 --- a/gems/ibm_cloud_power/spec/models/event_user_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::EventUser -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'EventUser' do - before do - # run before each test - @instance = IbmCloudPower::EventUser.new - end - - after do - # run after each test - end - - describe 'test an instance of EventUser' do - it 'should create an instance of EventUser' do - expect(@instance).to be_instance_of(IbmCloudPower::EventUser) - end - end - describe 'test attribute "user_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "email"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/events_spec.rb b/gems/ibm_cloud_power/spec/models/events_spec.rb deleted file mode 100644 index c98651cc..00000000 --- a/gems/ibm_cloud_power/spec/models/events_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Events -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Events' do - before do - # run before each test - @instance = IbmCloudPower::Events.new - end - - after do - # run after each test - end - - describe 'test an instance of Events' do - it 'should create an instance of Events' do - expect(@instance).to be_instance_of(IbmCloudPower::Events) - end - end - describe 'test attribute "events"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/export_image_spec.rb b/gems/ibm_cloud_power/spec/models/export_image_spec.rb deleted file mode 100644 index 07d6ad48..00000000 --- a/gems/ibm_cloud_power/spec/models/export_image_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::ExportImage -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ExportImage' do - before do - # run before each test - @instance = IbmCloudPower::ExportImage.new - end - - after do - # run after each test - end - - describe 'test an instance of ExportImage' do - it 'should create an instance of ExportImage' do - expect(@instance).to be_instance_of(IbmCloudPower::ExportImage) - end - end - describe 'test attribute "bucket_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "region"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "access_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "secret_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/image_reference_spec.rb b/gems/ibm_cloud_power/spec/models/image_reference_spec.rb deleted file mode 100644 index 13afb034..00000000 --- a/gems/ibm_cloud_power/spec/models/image_reference_spec.rb +++ /dev/null @@ -1,89 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::ImageReference -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ImageReference' do - before do - # run before each test - @instance = IbmCloudPower::ImageReference.new - end - - after do - # run after each test - end - - describe 'test an instance of ImageReference' do - it 'should create an instance of ImageReference' do - expect(@instance).to be_instance_of(IbmCloudPower::ImageReference) - end - end - describe 'test attribute "image_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "state"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_update_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "specifications"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/image_spec.rb b/gems/ibm_cloud_power/spec/models/image_spec.rb deleted file mode 100644 index 7247c704..00000000 --- a/gems/ibm_cloud_power/spec/models/image_spec.rb +++ /dev/null @@ -1,107 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Image -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Image' do - before do - # run before each test - @instance = IbmCloudPower::Image.new - end - - after do - # run after each test - end - - describe 'test an instance of Image' do - it 'should create an instance of Image' do - expect(@instance).to be_instance_of(IbmCloudPower::Image) - end - end - describe 'test attribute "image_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "state"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_update_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "specifications"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volumes"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "servers"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "taskref"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/image_specifications_spec.rb b/gems/ibm_cloud_power/spec/models/image_specifications_spec.rb deleted file mode 100644 index ec450ee2..00000000 --- a/gems/ibm_cloud_power/spec/models/image_specifications_spec.rb +++ /dev/null @@ -1,77 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::ImageSpecifications -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ImageSpecifications' do - before do - # run before each test - @instance = IbmCloudPower::ImageSpecifications.new - end - - after do - # run after each test - end - - describe 'test an instance of ImageSpecifications' do - it 'should create an instance of ImageSpecifications' do - expect(@instance).to be_instance_of(IbmCloudPower::ImageSpecifications) - end - end - describe 'test attribute "image_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "container_format"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "disk_format"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "operating_system"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "hypervisor_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "architecture"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "endianness"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/image_volume_spec.rb b/gems/ibm_cloud_power/spec/models/image_volume_spec.rb deleted file mode 100644 index 50f4ceb2..00000000 --- a/gems/ibm_cloud_power/spec/models/image_volume_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::ImageVolume -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ImageVolume' do - before do - # run before each test - @instance = IbmCloudPower::ImageVolume.new - end - - after do - # run after each test - end - - describe 'test an instance of ImageVolume' do - it 'should create an instance of ImageVolume' do - expect(@instance).to be_instance_of(IbmCloudPower::ImageVolume) - end - end - describe 'test attribute "volume_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "bootable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/images_spec.rb b/gems/ibm_cloud_power/spec/models/images_spec.rb deleted file mode 100644 index f18df70a..00000000 --- a/gems/ibm_cloud_power/spec/models/images_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Images -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Images' do - before do - # run before each test - @instance = IbmCloudPower::Images.new - end - - after do - # run after each test - end - - describe 'test an instance of Images' do - it 'should create an instance of Images' do - expect(@instance).to be_instance_of(IbmCloudPower::Images) - end - end - describe 'test attribute "images"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/ip_address_range_spec.rb b/gems/ibm_cloud_power/spec/models/ip_address_range_spec.rb deleted file mode 100644 index 754df5b5..00000000 --- a/gems/ibm_cloud_power/spec/models/ip_address_range_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::IPAddressRange -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'IPAddressRange' do - before do - # run before each test - @instance = IbmCloudPower::IPAddressRange.new - end - - after do - # run after each test - end - - describe 'test an instance of IPAddressRange' do - it 'should create an instance of IPAddressRange' do - expect(@instance).to be_instance_of(IbmCloudPower::IPAddressRange) - end - end - describe 'test attribute "starting_ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ending_ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/maximum_storage_allocation_spec.rb b/gems/ibm_cloud_power/spec/models/maximum_storage_allocation_spec.rb deleted file mode 100644 index a8bf4b39..00000000 --- a/gems/ibm_cloud_power/spec/models/maximum_storage_allocation_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::MaximumStorageAllocation -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'MaximumStorageAllocation' do - before do - # run before each test - @instance = IbmCloudPower::MaximumStorageAllocation.new - end - - after do - # run after each test - end - - describe 'test an instance of MaximumStorageAllocation' do - it 'should create an instance of MaximumStorageAllocation' do - expect(@instance).to be_instance_of(IbmCloudPower::MaximumStorageAllocation) - end - end - describe 'test attribute "storage_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_pool"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_allocation_size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/min_max_default_spec.rb b/gems/ibm_cloud_power/spec/models/min_max_default_spec.rb deleted file mode 100644 index 7271ccd4..00000000 --- a/gems/ibm_cloud_power/spec/models/min_max_default_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::MinMaxDefault -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'MinMaxDefault' do - before do - # run before each test - @instance = IbmCloudPower::MinMaxDefault.new - end - - after do - # run after each test - end - - describe 'test an instance of MinMaxDefault' do - it 'should create an instance of MinMaxDefault' do - expect(@instance).to be_instance_of(IbmCloudPower::MinMaxDefault) - end - end - describe 'test attribute "min"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "default"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/multi_volumes_create_spec.rb b/gems/ibm_cloud_power/spec/models/multi_volumes_create_spec.rb deleted file mode 100644 index 0cf389df..00000000 --- a/gems/ibm_cloud_power/spec/models/multi_volumes_create_spec.rb +++ /dev/null @@ -1,81 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::MultiVolumesCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'MultiVolumesCreate' do - before do - # run before each test - @instance = IbmCloudPower::MultiVolumesCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of MultiVolumesCreate' do - it 'should create an instance of MultiVolumesCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::MultiVolumesCreate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shareable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "disk_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "affinity_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - # validator.allowable_values.each do |value| - # expect { @instance.affinity_policy = value }.not_to raise_error - # end - end - end - - describe 'test attribute "affinity_volume"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_create_spec.rb b/gems/ibm_cloud_power/spec/models/network_create_spec.rb deleted file mode 100644 index e5b9843f..00000000 --- a/gems/ibm_cloud_power/spec/models/network_create_spec.rb +++ /dev/null @@ -1,81 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::NetworkCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NetworkCreate' do - before do - # run before each test - @instance = IbmCloudPower::NetworkCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of NetworkCreate' do - it 'should create an instance of NetworkCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::NetworkCreate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["vlan", "pub-vlan"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "cidr"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "gateway"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "dns_servers"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ip_address_ranges"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "jumbo"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_ip_address_metrics_spec.rb b/gems/ibm_cloud_power/spec/models/network_ip_address_metrics_spec.rb deleted file mode 100644 index 1645ccd6..00000000 --- a/gems/ibm_cloud_power/spec/models/network_ip_address_metrics_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::NetworkIpAddressMetrics -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NetworkIpAddressMetrics' do - before do - # run before each test - @instance = IbmCloudPower::NetworkIpAddressMetrics.new - end - - after do - # run after each test - end - - describe 'test an instance of NetworkIpAddressMetrics' do - it 'should create an instance of NetworkIpAddressMetrics' do - expect(@instance).to be_instance_of(IbmCloudPower::NetworkIpAddressMetrics) - end - end - describe 'test attribute "available"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "used"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "utilization"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_port_create_spec.rb b/gems/ibm_cloud_power/spec/models/network_port_create_spec.rb deleted file mode 100644 index 1689b48b..00000000 --- a/gems/ibm_cloud_power/spec/models/network_port_create_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::NetworkPortCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NetworkPortCreate' do - before do - # run before each test - @instance = IbmCloudPower::NetworkPortCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of NetworkPortCreate' do - it 'should create an instance of NetworkPortCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::NetworkPortCreate) - end - end - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_port_pvm_instance_spec.rb b/gems/ibm_cloud_power/spec/models/network_port_pvm_instance_spec.rb deleted file mode 100644 index 18a6a752..00000000 --- a/gems/ibm_cloud_power/spec/models/network_port_pvm_instance_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::NetworkPortPvmInstance -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NetworkPortPvmInstance' do - before do - # run before each test - @instance = IbmCloudPower::NetworkPortPvmInstance.new - end - - after do - # run after each test - end - - describe 'test an instance of NetworkPortPvmInstance' do - it 'should create an instance of NetworkPortPvmInstance' do - expect(@instance).to be_instance_of(IbmCloudPower::NetworkPortPvmInstance) - end - end - describe 'test attribute "pvm_instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_port_spec.rb b/gems/ibm_cloud_power/spec/models/network_port_spec.rb deleted file mode 100644 index 5e670103..00000000 --- a/gems/ibm_cloud_power/spec/models/network_port_spec.rb +++ /dev/null @@ -1,77 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::NetworkPort -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NetworkPort' do - before do - # run before each test - @instance = IbmCloudPower::NetworkPort.new - end - - after do - # run after each test - end - - describe 'test an instance of NetworkPort' do - it 'should create an instance of NetworkPort' do - expect(@instance).to be_instance_of(IbmCloudPower::NetworkPort) - end - end - describe 'test attribute "port_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "mac_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pvm_instance"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_port_update_spec.rb b/gems/ibm_cloud_power/spec/models/network_port_update_spec.rb deleted file mode 100644 index 039a278f..00000000 --- a/gems/ibm_cloud_power/spec/models/network_port_update_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::NetworkPortUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NetworkPortUpdate' do - before do - # run before each test - @instance = IbmCloudPower::NetworkPortUpdate.new - end - - after do - # run after each test - end - - describe 'test an instance of NetworkPortUpdate' do - it 'should create an instance of NetworkPortUpdate' do - expect(@instance).to be_instance_of(IbmCloudPower::NetworkPortUpdate) - end - end - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pvm_instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_ports_spec.rb b/gems/ibm_cloud_power/spec/models/network_ports_spec.rb deleted file mode 100644 index 8bd75f5f..00000000 --- a/gems/ibm_cloud_power/spec/models/network_ports_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::NetworkPorts -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NetworkPorts' do - before do - # run before each test - @instance = IbmCloudPower::NetworkPorts.new - end - - after do - # run after each test - end - - describe 'test an instance of NetworkPorts' do - it 'should create an instance of NetworkPorts' do - expect(@instance).to be_instance_of(IbmCloudPower::NetworkPorts) - end - end - describe 'test attribute "ports"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_reference_spec.rb b/gems/ibm_cloud_power/spec/models/network_reference_spec.rb deleted file mode 100644 index b98f8a51..00000000 --- a/gems/ibm_cloud_power/spec/models/network_reference_spec.rb +++ /dev/null @@ -1,75 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::NetworkReference -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NetworkReference' do - before do - # run before each test - @instance = IbmCloudPower::NetworkReference.new - end - - after do - # run after each test - end - - describe 'test an instance of NetworkReference' do - it 'should create an instance of NetworkReference' do - expect(@instance).to be_instance_of(IbmCloudPower::NetworkReference) - end - end - describe 'test attribute "network_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "vlan_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["vlan", "vxlan"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "jumbo"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_spec.rb b/gems/ibm_cloud_power/spec/models/network_spec.rb deleted file mode 100644 index 10bae1f3..00000000 --- a/gems/ibm_cloud_power/spec/models/network_spec.rb +++ /dev/null @@ -1,105 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Network -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Network' do - before do - # run before each test - @instance = IbmCloudPower::Network.new - end - - after do - # run after each test - end - - describe 'test an instance of Network' do - it 'should create an instance of Network' do - expect(@instance).to be_instance_of(IbmCloudPower::Network) - end - end - describe 'test attribute "network_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["vlan", "vxlan"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "vlan_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cidr"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "gateway"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "dns_servers"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ip_address_ranges"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ip_address_metrics"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "public_ip_address_ranges"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "jumbo"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/network_update_spec.rb b/gems/ibm_cloud_power/spec/models/network_update_spec.rb deleted file mode 100644 index 77b6d564..00000000 --- a/gems/ibm_cloud_power/spec/models/network_update_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::NetworkUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NetworkUpdate' do - before do - # run before each test - @instance = IbmCloudPower::NetworkUpdate.new - end - - after do - # run after each test - end - - describe 'test an instance of NetworkUpdate' do - it 'should create an instance of NetworkUpdate' do - expect(@instance).to be_instance_of(IbmCloudPower::NetworkUpdate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "gateway"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "dns_servers"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ip_address_ranges"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/networks_spec.rb b/gems/ibm_cloud_power/spec/models/networks_spec.rb deleted file mode 100644 index 3b45af1f..00000000 --- a/gems/ibm_cloud_power/spec/models/networks_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Networks -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Networks' do - before do - # run before each test - @instance = IbmCloudPower::Networks.new - end - - after do - # run after each test - end - - describe 'test an instance of Networks' do - it 'should create an instance of Networks' do - expect(@instance).to be_instance_of(IbmCloudPower::Networks) - end - end - describe 'test attribute "networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/operations_spec.rb b/gems/ibm_cloud_power/spec/models/operations_spec.rb deleted file mode 100644 index 6f5ff7c5..00000000 --- a/gems/ibm_cloud_power/spec/models/operations_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Operations -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Operations' do - before do - # run before each test - @instance = IbmCloudPower::Operations.new - end - - after do - # run after each test - end - - describe 'test an instance of Operations' do - it 'should create an instance of Operations' do - expect(@instance).to be_instance_of(IbmCloudPower::Operations) - end - end - describe 'test attribute "boot_mode"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["a", "b", "c", "d"]) - # validator.allowable_values.each do |value| - # expect { @instance.boot_mode = value }.not_to raise_error - # end - end - end - - describe 'test attribute "operating_mode"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["normal", "manual"]) - # validator.allowable_values.each do |value| - # expect { @instance.operating_mode = value }.not_to raise_error - # end - end - end - - describe 'test attribute "task"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["dston", "retrydump", "consoleservice", "iopreset", "remotedstoff", "remotedston", "iopdump", "dumprestart"]) - # validator.allowable_values.each do |value| - # expect { @instance.task = value }.not_to raise_error - # end - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/peering_network_spec.rb b/gems/ibm_cloud_power/spec/models/peering_network_spec.rb deleted file mode 100644 index 25a8e5a4..00000000 --- a/gems/ibm_cloud_power/spec/models/peering_network_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PeeringNetwork -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PeeringNetwork' do - before do - # run before each test - @instance = IbmCloudPower::PeeringNetwork.new - end - - after do - # run after each test - end - - describe 'test an instance of PeeringNetwork' do - it 'should create an instance of PeeringNetwork' do - expect(@instance).to be_instance_of(IbmCloudPower::PeeringNetwork) - end - end - describe 'test attribute "project_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cidr"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "dns_servers"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pin_policy_spec.rb b/gems/ibm_cloud_power/spec/models/pin_policy_spec.rb deleted file mode 100644 index 2e9f8583..00000000 --- a/gems/ibm_cloud_power/spec/models/pin_policy_spec.rb +++ /dev/null @@ -1,35 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PinPolicy -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PinPolicy' do - before do - # run before each test - @instance = IbmCloudPower::PinPolicy.new - end - - after do - # run after each test - end - - describe 'test an instance of PinPolicy' do - it 'should create an instance of PinPolicy' do - expect(@instance).to be_instance_of(IbmCloudPower::PinPolicy) - end - end -end diff --git a/gems/ibm_cloud_power/spec/models/placement_group_create_spec.rb b/gems/ibm_cloud_power/spec/models/placement_group_create_spec.rb deleted file mode 100644 index ba816956..00000000 --- a/gems/ibm_cloud_power/spec/models/placement_group_create_spec.rb +++ /dev/null @@ -1,51 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PlacementGroupCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PlacementGroupCreate' do - before do - # run before each test - @instance = IbmCloudPower::PlacementGroupCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of PlacementGroupCreate' do - it 'should create an instance of PlacementGroupCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::PlacementGroupCreate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - # validator.allowable_values.each do |value| - # expect { @instance.policy = value }.not_to raise_error - # end - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/placement_group_server_spec.rb b/gems/ibm_cloud_power/spec/models/placement_group_server_spec.rb deleted file mode 100644 index cc1275a5..00000000 --- a/gems/ibm_cloud_power/spec/models/placement_group_server_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PlacementGroupServer -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PlacementGroupServer' do - before do - # run before each test - @instance = IbmCloudPower::PlacementGroupServer.new - end - - after do - # run after each test - end - - describe 'test an instance of PlacementGroupServer' do - it 'should create an instance of PlacementGroupServer' do - expect(@instance).to be_instance_of(IbmCloudPower::PlacementGroupServer) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/placement_group_spec.rb b/gems/ibm_cloud_power/spec/models/placement_group_spec.rb deleted file mode 100644 index 3e9201a4..00000000 --- a/gems/ibm_cloud_power/spec/models/placement_group_spec.rb +++ /dev/null @@ -1,63 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PlacementGroup -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PlacementGroup' do - before do - # run before each test - @instance = IbmCloudPower::PlacementGroup.new - end - - after do - # run after each test - end - - describe 'test an instance of PlacementGroup' do - it 'should create an instance of PlacementGroup' do - expect(@instance).to be_instance_of(IbmCloudPower::PlacementGroup) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["affinity", "anti-affinity"]) - # validator.allowable_values.each do |value| - # expect { @instance.policy = value }.not_to raise_error - # end - end - end - - describe 'test attribute "members"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/placement_groups_spec.rb b/gems/ibm_cloud_power/spec/models/placement_groups_spec.rb deleted file mode 100644 index 404810ed..00000000 --- a/gems/ibm_cloud_power/spec/models/placement_groups_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PlacementGroups -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PlacementGroups' do - before do - # run before each test - @instance = IbmCloudPower::PlacementGroups.new - end - - after do - # run after each test - end - - describe 'test an instance of PlacementGroups' do - it 'should create an instance of PlacementGroups' do - expect(@instance).to be_instance_of(IbmCloudPower::PlacementGroups) - end - end - describe 'test attribute "placement_groups"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_action_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_action_spec.rb deleted file mode 100644 index 08b41cc1..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_action_spec.rb +++ /dev/null @@ -1,45 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceAction -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceAction' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceAction.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceAction' do - it 'should create an instance of PVMInstanceAction' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceAction) - end - end - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["start", "stop", "immediate-shutdown", "hard-reboot", "soft-reboot", "reset-state"]) - # validator.allowable_values.each do |value| - # expect { @instance.action = value }.not_to raise_error - # end - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_add_network_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_add_network_spec.rb deleted file mode 100644 index ebd80714..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_add_network_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceAddNetwork -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceAddNetwork' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceAddNetwork.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceAddNetwork' do - it 'should create an instance of PVMInstanceAddNetwork' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceAddNetwork) - end - end - describe 'test attribute "network_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_capture_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_capture_spec.rb deleted file mode 100644 index e1fdfec9..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_capture_spec.rb +++ /dev/null @@ -1,81 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceCapture -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceCapture' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceCapture.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceCapture' do - it 'should create an instance of PVMInstanceCapture' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceCapture) - end - end - describe 'test attribute "capture_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "capture_volume_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "capture_destination"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["image-catalog", "cloud-storage", "both"]) - # validator.allowable_values.each do |value| - # expect { @instance.capture_destination = value }.not_to raise_error - # end - end - end - - describe 'test attribute "cloud_storage_image_path"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cloud_storage_region"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cloud_storage_access_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cloud_storage_secret_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_clone_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_clone_spec.rb deleted file mode 100644 index 6bf4e857..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_clone_spec.rb +++ /dev/null @@ -1,87 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceClone -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceClone' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceClone.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceClone' do - it 'should create an instance of PVMInstanceClone' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceClone) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "processors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "proc_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - # validator.allowable_values.each do |value| - # expect { @instance.proc_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "key_pair_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "software_licenses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_console_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_console_spec.rb deleted file mode 100644 index 75b26672..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_console_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceConsole -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceConsole' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceConsole.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceConsole' do - it 'should create an instance of PVMInstanceConsole' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceConsole) - end - end - describe 'test attribute "console_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_create_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_create_spec.rb deleted file mode 100644 index d7e04757..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_create_spec.rb +++ /dev/null @@ -1,161 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceCreate' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceCreate' do - it 'should create an instance of PVMInstanceCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceCreate) - end - end - describe 'test attribute "server_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "replicants"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "replicant_naming_scheme"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["prefix", "suffix"]) - # validator.allowable_values.each do |value| - # expect { @instance.replicant_naming_scheme = value }.not_to raise_error - # end - end - end - - describe 'test attribute "replicant_affinity_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["affinity", "anti-affinity", "none"]) - # validator.allowable_values.each do |value| - # expect { @instance.replicant_affinity_policy = value }.not_to raise_error - # end - end - end - - describe 'test attribute "image_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "processors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "proc_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - # validator.allowable_values.each do |value| - # expect { @instance.proc_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "network_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "key_pair_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sys_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "migratable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "software_licenses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pin_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "virtual_cores"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_fault_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_fault_spec.rb deleted file mode 100644 index d1893467..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_fault_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceFault -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceFault' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceFault.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceFault' do - it 'should create an instance of PVMInstanceFault' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceFault) - end - end - describe 'test attribute "code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "details"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_health_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_health_spec.rb deleted file mode 100644 index 829b8ae2..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_health_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceHealth -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceHealth' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceHealth.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceHealth' do - it 'should create an instance of PVMInstanceHealth' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceHealth) - end - end - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_update"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "reason"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_multi_create_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_multi_create_spec.rb deleted file mode 100644 index 5c738aac..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_multi_create_spec.rb +++ /dev/null @@ -1,61 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceMultiCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceMultiCreate' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceMultiCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceMultiCreate' do - it 'should create an instance of PVMInstanceMultiCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceMultiCreate) - end - end - describe 'test attribute "count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "affinity_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["affinity", "anti-affinity", "none"]) - # validator.allowable_values.each do |value| - # expect { @instance.affinity_policy = value }.not_to raise_error - # end - end - end - - describe 'test attribute "numerical"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["prefix", "suffix"]) - # validator.allowable_values.each do |value| - # expect { @instance.numerical = value }.not_to raise_error - # end - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_network_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_network_spec.rb deleted file mode 100644 index 8fc15b3f..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_network_spec.rb +++ /dev/null @@ -1,89 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceNetwork -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceNetwork' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceNetwork.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceNetwork' do - it 'should create an instance of PVMInstanceNetwork' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceNetwork) - end - end - describe 'test attribute "version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "network_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "network_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "mac_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ip"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ip_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "external_ip"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_networks_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_networks_spec.rb deleted file mode 100644 index 15935070..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_networks_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceNetworks -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceNetworks' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceNetworks.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceNetworks' do - it 'should create an instance of PVMInstanceNetworks' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceNetworks) - end - end - describe 'test attribute "networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_operation_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_operation_spec.rb deleted file mode 100644 index f6f1a5c7..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_operation_spec.rb +++ /dev/null @@ -1,51 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceOperation -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceOperation' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceOperation.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceOperation' do - it 'should create an instance of PVMInstanceOperation' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceOperation) - end - end - describe 'test attribute "operation_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["job", "boot"]) - # validator.allowable_values.each do |value| - # expect { @instance.operation_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "operation"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_reference_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_reference_spec.rb deleted file mode 100644 index ae44229a..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_reference_spec.rb +++ /dev/null @@ -1,207 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceReference -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceReference' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceReference.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceReference' do - it 'should create an instance of PVMInstanceReference' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceReference) - end - end - describe 'test attribute "pvm_instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "server_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "image_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "processors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "minproc"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "maxproc"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "proc_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - # validator.allowable_values.each do |value| - # expect { @instance.proc_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "minmem"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "maxmem"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "disk_size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "addresses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "progress"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "fault"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sys_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "health"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "software_licenses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "srcs"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pin_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "os_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "operating_system"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sap_profile"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "virtual_cores"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_remove_network_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_remove_network_spec.rb deleted file mode 100644 index 9ffaba73..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_remove_network_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceRemoveNetwork -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceRemoveNetwork' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceRemoveNetwork.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceRemoveNetwork' do - it 'should create an instance of PVMInstanceRemoveNetwork' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceRemoveNetwork) - end - end - describe 'test attribute "mac_address"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_spec.rb deleted file mode 100644 index 17910eb5..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_spec.rb +++ /dev/null @@ -1,225 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstance -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstance' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstance.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstance' do - it 'should create an instance of PVMInstance' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstance) - end - end - describe 'test attribute "pvm_instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "server_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "image_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "processors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "minproc"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "maxproc"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "proc_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - # validator.allowable_values.each do |value| - # expect { @instance.proc_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "minmem"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "maxmem"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "disk_size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "network_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "addresses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "progress"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "fault"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sys_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "health"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "migratable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "software_licenses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "srcs"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pin_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "os_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "operating_system"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sap_profile"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "virtual_cores"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_update_response_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_update_response_spec.rb deleted file mode 100644 index 0d821c07..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_update_response_spec.rb +++ /dev/null @@ -1,75 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceUpdateResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceUpdateResponse' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceUpdateResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceUpdateResponse' do - it 'should create an instance of PVMInstanceUpdateResponse' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceUpdateResponse) - end - end - describe 'test attribute "server_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "processors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "proc_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - # validator.allowable_values.each do |value| - # expect { @instance.proc_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pin_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_update_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_update_spec.rb deleted file mode 100644 index c17b72aa..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_update_spec.rb +++ /dev/null @@ -1,93 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceUpdate' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceUpdate.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceUpdate' do - it 'should create an instance of PVMInstanceUpdate' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceUpdate) - end - end - describe 'test attribute "server_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "processors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "proc_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["dedicated", "shared", "capped"]) - # validator.allowable_values.each do |value| - # expect { @instance.proc_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "migratable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "software_licenses"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pin_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sap_profile_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "virtual_cores"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instance_volume_update_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instance_volume_update_spec.rb deleted file mode 100644 index 5d182e29..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instance_volume_update_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstanceVolumeUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstanceVolumeUpdate' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstanceVolumeUpdate.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstanceVolumeUpdate' do - it 'should create an instance of PVMInstanceVolumeUpdate' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstanceVolumeUpdate) - end - end - describe 'test attribute "delete_on_termination"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/pvm_instances_spec.rb b/gems/ibm_cloud_power/spec/models/pvm_instances_spec.rb deleted file mode 100644 index febccc5e..00000000 --- a/gems/ibm_cloud_power/spec/models/pvm_instances_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::PVMInstances -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PVMInstances' do - before do - # run before each test - @instance = IbmCloudPower::PVMInstances.new - end - - after do - # run after each test - end - - describe 'test an instance of PVMInstances' do - it 'should create an instance of PVMInstances' do - expect(@instance).to be_instance_of(IbmCloudPower::PVMInstances) - end - end - describe 'test attribute "pvm_instances"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/sap_create_spec.rb b/gems/ibm_cloud_power/spec/models/sap_create_spec.rb deleted file mode 100644 index 290f772a..00000000 --- a/gems/ibm_cloud_power/spec/models/sap_create_spec.rb +++ /dev/null @@ -1,89 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SAPCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SAPCreate' do - before do - # run before each test - @instance = IbmCloudPower::SAPCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of SAPCreate' do - it 'should create an instance of SAPCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::SAPCreate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "image_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "profile_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "instances"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ssh_key_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "user_data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pin_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/sap_profile_reference_spec.rb b/gems/ibm_cloud_power/spec/models/sap_profile_reference_spec.rb deleted file mode 100644 index 712a2182..00000000 --- a/gems/ibm_cloud_power/spec/models/sap_profile_reference_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SAPProfileReference -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SAPProfileReference' do - before do - # run before each test - @instance = IbmCloudPower::SAPProfileReference.new - end - - after do - # run after each test - end - - describe 'test an instance of SAPProfileReference' do - it 'should create an instance of SAPProfileReference' do - expect(@instance).to be_instance_of(IbmCloudPower::SAPProfileReference) - end - end - describe 'test attribute "profile_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/sap_profile_spec.rb b/gems/ibm_cloud_power/spec/models/sap_profile_spec.rb deleted file mode 100644 index 72bec648..00000000 --- a/gems/ibm_cloud_power/spec/models/sap_profile_spec.rb +++ /dev/null @@ -1,69 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SAPProfile -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SAPProfile' do - before do - # run before each test - @instance = IbmCloudPower::SAPProfile.new - end - - after do - # run after each test - end - - describe 'test an instance of SAPProfile' do - it 'should create an instance of SAPProfile' do - expect(@instance).to be_instance_of(IbmCloudPower::SAPProfile) - end - end - describe 'test attribute "profile_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["balanced", "compute", "memory", "non-production", "ultra-memory"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "cores"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "certified"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/sap_profiles_spec.rb b/gems/ibm_cloud_power/spec/models/sap_profiles_spec.rb deleted file mode 100644 index 1b399518..00000000 --- a/gems/ibm_cloud_power/spec/models/sap_profiles_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SAPProfiles -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SAPProfiles' do - before do - # run before each test - @instance = IbmCloudPower::SAPProfiles.new - end - - after do - # run after each test - end - - describe 'test an instance of SAPProfiles' do - it 'should create an instance of SAPProfiles' do - expect(@instance).to be_instance_of(IbmCloudPower::SAPProfiles) - end - end - describe 'test attribute "profiles"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/snapshot_create_response_spec.rb b/gems/ibm_cloud_power/spec/models/snapshot_create_response_spec.rb deleted file mode 100644 index 5a8db690..00000000 --- a/gems/ibm_cloud_power/spec/models/snapshot_create_response_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SnapshotCreateResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SnapshotCreateResponse' do - before do - # run before each test - @instance = IbmCloudPower::SnapshotCreateResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of SnapshotCreateResponse' do - it 'should create an instance of SnapshotCreateResponse' do - expect(@instance).to be_instance_of(IbmCloudPower::SnapshotCreateResponse) - end - end - describe 'test attribute "snapshot_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/snapshot_create_spec.rb b/gems/ibm_cloud_power/spec/models/snapshot_create_spec.rb deleted file mode 100644 index ddececb5..00000000 --- a/gems/ibm_cloud_power/spec/models/snapshot_create_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SnapshotCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SnapshotCreate' do - before do - # run before each test - @instance = IbmCloudPower::SnapshotCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of SnapshotCreate' do - it 'should create an instance of SnapshotCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::SnapshotCreate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/snapshot_restore_spec.rb b/gems/ibm_cloud_power/spec/models/snapshot_restore_spec.rb deleted file mode 100644 index 40db66e3..00000000 --- a/gems/ibm_cloud_power/spec/models/snapshot_restore_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SnapshotRestore -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SnapshotRestore' do - before do - # run before each test - @instance = IbmCloudPower::SnapshotRestore.new - end - - after do - # run after each test - end - - describe 'test an instance of SnapshotRestore' do - it 'should create an instance of SnapshotRestore' do - expect(@instance).to be_instance_of(IbmCloudPower::SnapshotRestore) - end - end - describe 'test attribute "force"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/snapshot_spec.rb b/gems/ibm_cloud_power/spec/models/snapshot_spec.rb deleted file mode 100644 index 921b72c7..00000000 --- a/gems/ibm_cloud_power/spec/models/snapshot_spec.rb +++ /dev/null @@ -1,95 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Snapshot -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Snapshot' do - before do - # run before each test - @instance = IbmCloudPower::Snapshot.new - end - - after do - # run after each test - end - - describe 'test an instance of Snapshot' do - it 'should create an instance of Snapshot' do - expect(@instance).to be_instance_of(IbmCloudPower::Snapshot) - end - end - describe 'test attribute "snapshot_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pvm_instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_snapshots"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_update_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "percent_complete"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/snapshot_update_spec.rb b/gems/ibm_cloud_power/spec/models/snapshot_update_spec.rb deleted file mode 100644 index 1c9142fe..00000000 --- a/gems/ibm_cloud_power/spec/models/snapshot_update_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SnapshotUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SnapshotUpdate' do - before do - # run before each test - @instance = IbmCloudPower::SnapshotUpdate.new - end - - after do - # run after each test - end - - describe 'test an instance of SnapshotUpdate' do - it 'should create an instance of SnapshotUpdate' do - expect(@instance).to be_instance_of(IbmCloudPower::SnapshotUpdate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/snapshots_spec.rb b/gems/ibm_cloud_power/spec/models/snapshots_spec.rb deleted file mode 100644 index 4d6ddee4..00000000 --- a/gems/ibm_cloud_power/spec/models/snapshots_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Snapshots -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Snapshots' do - before do - # run before each test - @instance = IbmCloudPower::Snapshots.new - end - - after do - # run after each test - end - - describe 'test an instance of Snapshots' do - it 'should create an instance of Snapshots' do - expect(@instance).to be_instance_of(IbmCloudPower::Snapshots) - end - end - describe 'test attribute "snapshots"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/software_licenses_spec.rb b/gems/ibm_cloud_power/spec/models/software_licenses_spec.rb deleted file mode 100644 index d8ab0d19..00000000 --- a/gems/ibm_cloud_power/spec/models/software_licenses_spec.rb +++ /dev/null @@ -1,65 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SoftwareLicenses -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SoftwareLicenses' do - before do - # run before each test - @instance = IbmCloudPower::SoftwareLicenses.new - end - - after do - # run after each test - end - - describe 'test an instance of SoftwareLicenses' do - it 'should create an instance of SoftwareLicenses' do - expect(@instance).to be_instance_of(IbmCloudPower::SoftwareLicenses) - end - end - describe 'test attribute "ibmi_css"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ibmi_pha"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ibmi_rds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ibmi_rds_users"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ibmi_dbq"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/src_spec.rb b/gems/ibm_cloud_power/spec/models/src_spec.rb deleted file mode 100644 index 273a9a82..00000000 --- a/gems/ibm_cloud_power/spec/models/src_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SRC -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SRC' do - before do - # run before each test - @instance = IbmCloudPower::SRC.new - end - - after do - # run after each test - end - - describe 'test an instance of SRC' do - it 'should create an instance of SRC' do - expect(@instance).to be_instance_of(IbmCloudPower::SRC) - end - end - describe 'test attribute "timestamp"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "src"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/ssh_key_spec.rb b/gems/ibm_cloud_power/spec/models/ssh_key_spec.rb deleted file mode 100644 index b0b3dc3e..00000000 --- a/gems/ibm_cloud_power/spec/models/ssh_key_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SSHKey -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SSHKey' do - before do - # run before each test - @instance = IbmCloudPower::SSHKey.new - end - - after do - # run after each test - end - - describe 'test an instance of SSHKey' do - it 'should create an instance of SSHKey' do - expect(@instance).to be_instance_of(IbmCloudPower::SSHKey) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ssh_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/ssh_keys_spec.rb b/gems/ibm_cloud_power/spec/models/ssh_keys_spec.rb deleted file mode 100644 index 449800c8..00000000 --- a/gems/ibm_cloud_power/spec/models/ssh_keys_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SSHKeys -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SSHKeys' do - before do - # run before each test - @instance = IbmCloudPower::SSHKeys.new - end - - after do - # run after each test - end - - describe 'test an instance of SSHKeys' do - it 'should create an instance of SSHKeys' do - expect(@instance).to be_instance_of(IbmCloudPower::SSHKeys) - end - end - describe 'test attribute "ssh_keys"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/stock_image_spec.rb b/gems/ibm_cloud_power/spec/models/stock_image_spec.rb deleted file mode 100644 index 4549b10c..00000000 --- a/gems/ibm_cloud_power/spec/models/stock_image_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::StockImage -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'StockImage' do - before do - # run before each test - @instance = IbmCloudPower::StockImage.new - end - - after do - # run after each test - end - - describe 'test an instance of StockImage' do - it 'should create an instance of StockImage' do - expect(@instance).to be_instance_of(IbmCloudPower::StockImage) - end - end - describe 'test attribute "storage_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_pool"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/storage_pool_capacity_spec.rb b/gems/ibm_cloud_power/spec/models/storage_pool_capacity_spec.rb deleted file mode 100644 index f3f9801b..00000000 --- a/gems/ibm_cloud_power/spec/models/storage_pool_capacity_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::StoragePoolCapacity -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'StoragePoolCapacity' do - before do - # run before each test - @instance = IbmCloudPower::StoragePoolCapacity.new - end - - after do - # run after each test - end - - describe 'test an instance of StoragePoolCapacity' do - it 'should create an instance of StoragePoolCapacity' do - expect(@instance).to be_instance_of(IbmCloudPower::StoragePoolCapacity) - end - end - describe 'test attribute "pool_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_allocation_size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_capacity"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/storage_pools_capacity_spec.rb b/gems/ibm_cloud_power/spec/models/storage_pools_capacity_spec.rb deleted file mode 100644 index b2042aee..00000000 --- a/gems/ibm_cloud_power/spec/models/storage_pools_capacity_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::StoragePoolsCapacity -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'StoragePoolsCapacity' do - before do - # run before each test - @instance = IbmCloudPower::StoragePoolsCapacity.new - end - - after do - # run after each test - end - - describe 'test an instance of StoragePoolsCapacity' do - it 'should create an instance of StoragePoolsCapacity' do - expect(@instance).to be_instance_of(IbmCloudPower::StoragePoolsCapacity) - end - end - describe 'test attribute "maximum_storage_allocation"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_pools_capacity"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/storage_type_capacity_spec.rb b/gems/ibm_cloud_power/spec/models/storage_type_capacity_spec.rb deleted file mode 100644 index f408a580..00000000 --- a/gems/ibm_cloud_power/spec/models/storage_type_capacity_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::StorageTypeCapacity -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'StorageTypeCapacity' do - before do - # run before each test - @instance = IbmCloudPower::StorageTypeCapacity.new - end - - after do - # run after each test - end - - describe 'test an instance of StorageTypeCapacity' do - it 'should create an instance of StorageTypeCapacity' do - expect(@instance).to be_instance_of(IbmCloudPower::StorageTypeCapacity) - end - end - describe 'test attribute "storage_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "maximum_storage_allocation"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_pools_capacity"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/storage_types_capacity_spec.rb b/gems/ibm_cloud_power/spec/models/storage_types_capacity_spec.rb deleted file mode 100644 index 23a6d14c..00000000 --- a/gems/ibm_cloud_power/spec/models/storage_types_capacity_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::StorageTypesCapacity -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'StorageTypesCapacity' do - before do - # run before each test - @instance = IbmCloudPower::StorageTypesCapacity.new - end - - after do - # run after each test - end - - describe 'test an instance of StorageTypesCapacity' do - it 'should create an instance of StorageTypesCapacity' do - expect(@instance).to be_instance_of(IbmCloudPower::StorageTypesCapacity) - end - end - describe 'test attribute "maximum_storage_allocation"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "storage_types_capacity"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/system_pool_spec.rb b/gems/ibm_cloud_power/spec/models/system_pool_spec.rb deleted file mode 100644 index ca973a2b..00000000 --- a/gems/ibm_cloud_power/spec/models/system_pool_spec.rb +++ /dev/null @@ -1,83 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::SystemPool -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SystemPool' do - before do - # run before each test - @instance = IbmCloudPower::SystemPool.new - end - - after do - # run after each test - end - - describe 'test an instance of SystemPool' do - it 'should create an instance of SystemPool' do - expect(@instance).to be_instance_of(IbmCloudPower::SystemPool) - end - end - describe 'test attribute "systems"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shared_core_ratio"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_available"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "capacity"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_cores_available"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_memory_available"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "core_memory_ratio"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/system_spec.rb b/gems/ibm_cloud_power/spec/models/system_spec.rb deleted file mode 100644 index 50bf99bf..00000000 --- a/gems/ibm_cloud_power/spec/models/system_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::System -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'System' do - before do - # run before each test - @instance = IbmCloudPower::System.new - end - - after do - # run after each test - end - - describe 'test an instance of System' do - it 'should create an instance of System' do - expect(@instance).to be_instance_of(IbmCloudPower::System) - end - end - describe 'test attribute "cores"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "memory"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/task_reference_spec.rb b/gems/ibm_cloud_power/spec/models/task_reference_spec.rb deleted file mode 100644 index afa1ce72..00000000 --- a/gems/ibm_cloud_power/spec/models/task_reference_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::TaskReference -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'TaskReference' do - before do - # run before each test - @instance = IbmCloudPower::TaskReference.new - end - - after do - # run after each test - end - - describe 'test an instance of TaskReference' do - it 'should create an instance of TaskReference' do - expect(@instance).to be_instance_of(IbmCloudPower::TaskReference) - end - end - describe 'test attribute "task_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/task_spec.rb b/gems/ibm_cloud_power/spec/models/task_spec.rb deleted file mode 100644 index d46bc2be..00000000 --- a/gems/ibm_cloud_power/spec/models/task_spec.rb +++ /dev/null @@ -1,89 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Task -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Task' do - before do - # run before each test - @instance = IbmCloudPower::Task.new - end - - after do - # run after each test - end - - describe 'test an instance of Task' do - it 'should create an instance of Task' do - expect(@instance).to be_instance_of(IbmCloudPower::Task) - end - end - describe 'test attribute "task_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "operation"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cloud_instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "component_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "component_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status_detail"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_update_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/tenant_spec.rb b/gems/ibm_cloud_power/spec/models/tenant_spec.rb deleted file mode 100644 index 20c0c6bb..00000000 --- a/gems/ibm_cloud_power/spec/models/tenant_spec.rb +++ /dev/null @@ -1,77 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Tenant -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Tenant' do - before do - # run before each test - @instance = IbmCloudPower::Tenant.new - end - - after do - # run after each test - end - - describe 'test an instance of Tenant' do - it 'should create an instance of Tenant' do - expect(@instance).to be_instance_of(IbmCloudPower::Tenant) - end - end - describe 'test attribute "tenant_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "enabled"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "ssh_keys"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cloud_instances"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "icn"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "peering_networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/tenant_update_spec.rb b/gems/ibm_cloud_power/spec/models/tenant_update_spec.rb deleted file mode 100644 index ef7045bc..00000000 --- a/gems/ibm_cloud_power/spec/models/tenant_update_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::TenantUpdate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'TenantUpdate' do - before do - # run before each test - @instance = IbmCloudPower::TenantUpdate.new - end - - after do - # run after each test - end - - describe 'test an instance of TenantUpdate' do - it 'should create an instance of TenantUpdate' do - expect(@instance).to be_instance_of(IbmCloudPower::TenantUpdate) - end - end - describe 'test attribute "icn"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "peering_networks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/update_volume_spec.rb b/gems/ibm_cloud_power/spec/models/update_volume_spec.rb deleted file mode 100644 index 329d8712..00000000 --- a/gems/ibm_cloud_power/spec/models/update_volume_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::UpdateVolume -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'UpdateVolume' do - before do - # run before each test - @instance = IbmCloudPower::UpdateVolume.new - end - - after do - # run after each test - end - - describe 'test an instance of UpdateVolume' do - it 'should create an instance of UpdateVolume' do - expect(@instance).to be_instance_of(IbmCloudPower::UpdateVolume) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shareable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "bootable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/virtual_cores_spec.rb b/gems/ibm_cloud_power/spec/models/virtual_cores_spec.rb deleted file mode 100644 index f4f5fad9..00000000 --- a/gems/ibm_cloud_power/spec/models/virtual_cores_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VirtualCores -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VirtualCores' do - before do - # run before each test - @instance = IbmCloudPower::VirtualCores.new - end - - after do - # run after each test - end - - describe 'test an instance of VirtualCores' do - it 'should create an instance of VirtualCores' do - expect(@instance).to be_instance_of(IbmCloudPower::VirtualCores) - end - end - describe 'test attribute "min"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "assigned"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volume_info_spec.rb b/gems/ibm_cloud_power/spec/models/volume_info_spec.rb deleted file mode 100644 index 45480466..00000000 --- a/gems/ibm_cloud_power/spec/models/volume_info_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumeInfo -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumeInfo' do - before do - # run before each test - @instance = IbmCloudPower::VolumeInfo.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumeInfo' do - it 'should create an instance of VolumeInfo' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumeInfo) - end - end - describe 'test attribute "volume_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volume_reference_spec.rb b/gems/ibm_cloud_power/spec/models/volume_reference_spec.rb deleted file mode 100644 index bba3648c..00000000 --- a/gems/ibm_cloud_power/spec/models/volume_reference_spec.rb +++ /dev/null @@ -1,119 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumeReference -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumeReference' do - before do - # run before each test - @instance = IbmCloudPower::VolumeReference.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumeReference' do - it 'should create an instance of VolumeReference' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumeReference) - end - end - describe 'test attribute "volume_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "state"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shareable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "bootable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "boot_volume"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "delete_on_termination"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "disk_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "wwn"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_update_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "href"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pvm_instance_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volume_spec.rb b/gems/ibm_cloud_power/spec/models/volume_spec.rb deleted file mode 100644 index 70e44a5f..00000000 --- a/gems/ibm_cloud_power/spec/models/volume_spec.rb +++ /dev/null @@ -1,113 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Volume -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Volume' do - before do - # run before each test - @instance = IbmCloudPower::Volume.new - end - - after do - # run after each test - end - - describe 'test an instance of Volume' do - it 'should create an instance of Volume' do - expect(@instance).to be_instance_of(IbmCloudPower::Volume) - end - end - describe 'test attribute "volume_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "state"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "shareable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "bootable"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "boot_volume"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "delete_on_termination"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "disk_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "wwn"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_update_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pvm_instance_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_clone_async_request_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_clone_async_request_spec.rb deleted file mode 100644 index 5582ac42..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_clone_async_request_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumesCloneAsyncRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumesCloneAsyncRequest' do - before do - # run before each test - @instance = IbmCloudPower::VolumesCloneAsyncRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumesCloneAsyncRequest' do - it 'should create an instance of VolumesCloneAsyncRequest' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumesCloneAsyncRequest) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_clone_cancel_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_clone_cancel_spec.rb deleted file mode 100644 index 5b3b0b17..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_clone_cancel_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumesCloneCancel -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumesCloneCancel' do - before do - # run before each test - @instance = IbmCloudPower::VolumesCloneCancel.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumesCloneCancel' do - it 'should create an instance of VolumesCloneCancel' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumesCloneCancel) - end - end - describe 'test attribute "force"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_clone_create_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_clone_create_spec.rb deleted file mode 100644 index 68ab5570..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_clone_create_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumesCloneCreate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumesCloneCreate' do - before do - # run before each test - @instance = IbmCloudPower::VolumesCloneCreate.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumesCloneCreate' do - it 'should create an instance of VolumesCloneCreate' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumesCloneCreate) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_clone_detail_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_clone_detail_spec.rb deleted file mode 100644 index fd476172..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_clone_detail_spec.rb +++ /dev/null @@ -1,89 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumesCloneDetail -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumesCloneDetail' do - before do - # run before each test - @instance = IbmCloudPower::VolumesCloneDetail.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumesCloneDetail' do - it 'should create an instance of VolumesCloneDetail' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumesCloneDetail) - end - end - describe 'test attribute "volumes_clone_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "percent_complete"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "failure_message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_update_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cloned_volumes"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_clone_execute_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_clone_execute_spec.rb deleted file mode 100644 index 62ef0418..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_clone_execute_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumesCloneExecute -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumesCloneExecute' do - before do - # run before each test - @instance = IbmCloudPower::VolumesCloneExecute.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumesCloneExecute' do - it 'should create an instance of VolumesCloneExecute' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumesCloneExecute) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "rollback_prepare"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_clone_request_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_clone_request_spec.rb deleted file mode 100644 index 982e8af7..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_clone_request_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumesCloneRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumesCloneRequest' do - before do - # run before each test - @instance = IbmCloudPower::VolumesCloneRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumesCloneRequest' do - it 'should create an instance of VolumesCloneRequest' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumesCloneRequest) - end - end - describe 'test attribute "display_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "volume_i_ds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_clone_response_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_clone_response_spec.rb deleted file mode 100644 index c6f85bb2..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_clone_response_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumesCloneResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumesCloneResponse' do - before do - # run before each test - @instance = IbmCloudPower::VolumesCloneResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumesCloneResponse' do - it 'should create an instance of VolumesCloneResponse' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumesCloneResponse) - end - end - describe 'test attribute "cloned_volumes"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "additional_properties"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_clone_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_clone_spec.rb deleted file mode 100644 index 0471ab22..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_clone_spec.rb +++ /dev/null @@ -1,83 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumesClone -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumesClone' do - before do - # run before each test - @instance = IbmCloudPower::VolumesClone.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumesClone' do - it 'should create an instance of VolumesClone' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumesClone) - end - end - describe 'test attribute "volumes_clone_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "percent_complete"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "failure_message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "creation_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_update_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_clones_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_clones_spec.rb deleted file mode 100644 index caf8bead..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_clones_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::VolumesClones -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VolumesClones' do - before do - # run before each test - @instance = IbmCloudPower::VolumesClones.new - end - - after do - # run after each test - end - - describe 'test an instance of VolumesClones' do - it 'should create an instance of VolumesClones' do - expect(@instance).to be_instance_of(IbmCloudPower::VolumesClones) - end - end - describe 'test attribute "volumes_clone"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/models/volumes_spec.rb b/gems/ibm_cloud_power/spec/models/volumes_spec.rb deleted file mode 100644 index 3c82627a..00000000 --- a/gems/ibm_cloud_power/spec/models/volumes_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for IbmCloudPower::Volumes -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Volumes' do - before do - # run before each test - @instance = IbmCloudPower::Volumes.new - end - - after do - # run after each test - end - - describe 'test an instance of Volumes' do - it 'should create an instance of Volumes' do - expect(@instance).to be_instance_of(IbmCloudPower::Volumes) - end - end - describe 'test attribute "volumes"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/gems/ibm_cloud_power/spec/spec_helper.rb b/gems/ibm_cloud_power/spec/spec_helper.rb deleted file mode 100644 index 69d1fd9f..00000000 --- a/gems/ibm_cloud_power/spec/spec_helper.rb +++ /dev/null @@ -1,111 +0,0 @@ -=begin -#Power Cloud API - -#IBM Power Cloud API for Power Hardware / Infrastructure - -The version of the OpenAPI document: 1.0.0 -Contact: kylej@us.ibm.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.0-beta2 - -=end - -# load the gem -require 'ibm_cloud_power' - -# The following was generated by the `rspec --init` command. Conventionally, all -# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. -# The generated `.rspec` file contains `--require spec_helper` which will cause -# this file to always be loaded, without a need to explicitly require it in any -# files. -# -# Given that it is always loaded, you are encouraged to keep this file as -# light-weight as possible. Requiring heavyweight dependencies from this file -# will add to the boot time of your test suite on EVERY test run, even for an -# individual file that may not need all of that loaded. Instead, consider making -# a separate helper file that requires the additional dependencies and performs -# the additional setup, and require it from the spec files that actually need -# it. -# -# The `.rspec` file also contains a few flags that are not defaults but that -# users commonly want. -# -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration -RSpec.configure do |config| - # rspec-expectations config goes here. You can use an alternate - # assertion/expectation library such as wrong or the stdlib/minitest - # assertions if you prefer. - config.expect_with :rspec do |expectations| - # This option will default to `true` in RSpec 4. It makes the `description` - # and `failure_message` of custom matchers include text for helper methods - # defined using `chain`, e.g.: - # be_bigger_than(2).and_smaller_than(4).description - # # => "be bigger than 2 and smaller than 4" - # ...rather than: - # # => "be bigger than 2" - expectations.include_chain_clauses_in_custom_matcher_descriptions = true - end - - # rspec-mocks config goes here. You can use an alternate test double - # library (such as bogus or mocha) by changing the `mock_with` option here. - config.mock_with :rspec do |mocks| - # Prevents you from mocking or stubbing a method that does not exist on - # a real object. This is generally recommended, and will default to - # `true` in RSpec 4. - mocks.verify_partial_doubles = true - end - -# The settings below are suggested to provide a good initial experience -# with RSpec, but feel free to customize to your heart's content. -=begin - # These two settings work together to allow you to limit a spec run - # to individual examples or groups you care about by tagging them with - # `:focus` metadata. When nothing is tagged with `:focus`, all examples - # get run. - config.filter_run :focus - config.run_all_when_everything_filtered = true - - # Allows RSpec to persist some state between runs in order to support - # the `--only-failures` and `--next-failure` CLI options. We recommend - # you configure your source control system to ignore this file. - config.example_status_persistence_file_path = "spec/examples.txt" - - # Limits the available syntax to the non-monkey patched syntax that is - # recommended. For more details, see: - # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ - # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ - # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode - config.disable_monkey_patching! - - # This setting enables warnings. It's recommended, but in some cases may - # be too noisy due to issues in dependencies. - config.warnings = true - - # Many RSpec users commonly either run the entire suite or an individual - # file, and it's useful to allow more verbose output when running an - # individual spec file. - if config.files_to_run.one? - # Use the documentation formatter for detailed output, - # unless a formatter has already been configured - # (e.g. via a command-line flag). - config.default_formatter = 'doc' - end - - # Print the 10 slowest examples and example groups at the - # end of the spec run, to help surface which specs are running - # particularly slow. - config.profile_examples = 10 - - # Run specs in random order to surface order dependencies. If you find an - # order dependency and want to debug it, you can fix the order by providing - # the seed, which is printed after each run. - # --seed 1234 - config.order = :random - - # Seed global randomization in this process using the `--seed` CLI option. - # Setting this allows you to use `--seed` to deterministically reproduce - # test failures related to randomization by passing the same `--seed` value - # as the one that triggered the failure. - Kernel.srand config.seed -=end -end diff --git a/gems/ibm_cloud_resource_controller/.bumpversion.cfg b/gems/ibm_cloud_resource_controller/.bumpversion.cfg deleted file mode 100644 index be1df123..00000000 --- a/gems/ibm_cloud_resource_controller/.bumpversion.cfg +++ /dev/null @@ -1,13 +0,0 @@ -[bumpversion] -current_version = 0.0.1 -commit = True -message = Update version {current_version} -> {new_version} - -[bumpversion:file:lib/ibm_cloud_resource_controller/version.rb] -search = VERSION = '{current_version}' -replace = VERSION = '{new_version}' - -[bumpversion:file:README.md] -search = {current_version} -replace = {new_version} - diff --git a/gems/ibm_cloud_resource_controller/.gitignore b/gems/ibm_cloud_resource_controller/.gitignore deleted file mode 100644 index 922a8938..00000000 --- a/gems/ibm_cloud_resource_controller/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -/*.gem -/.bundle/ -/.yardoc -/_yardoc/ -/coverage/ -/doc/ -/pkg/ -/spec/reports/ -/tmp/ -/Gemfile.lock - -# rspec failure tracking -.rspec_status diff --git a/gems/ibm_cloud_resource_controller/.openapi-generator-ignore b/gems/ibm_cloud_resource_controller/.openapi-generator-ignore deleted file mode 100644 index 7484ee59..00000000 --- a/gems/ibm_cloud_resource_controller/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/gems/ibm_cloud_resource_controller/.openapi-generator/VERSION b/gems/ibm_cloud_resource_controller/.openapi-generator/VERSION deleted file mode 100644 index 717311e3..00000000 --- a/gems/ibm_cloud_resource_controller/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -unset \ No newline at end of file diff --git a/gems/ibm_cloud_resource_controller/.rspec b/gems/ibm_cloud_resource_controller/.rspec deleted file mode 100644 index 34c5164d..00000000 --- a/gems/ibm_cloud_resource_controller/.rspec +++ /dev/null @@ -1,3 +0,0 @@ ---format documentation ---color ---require spec_helper diff --git a/gems/ibm_cloud_resource_controller/.travis.yml b/gems/ibm_cloud_resource_controller/.travis.yml deleted file mode 100644 index 37ddc2f8..00000000 --- a/gems/ibm_cloud_resource_controller/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -language: ruby -dist: trusty -cache: bundler - -notifications: - email: true - -matrix: - fast_finish: true - -before_install: - - git fetch --tags - - sudo apt-get update - - sudo apt-get install python - - nvm install node - - nvm use node - - gem install bundler:1.16.3 - -install: - - bundle _1.16.3_ install - -script: -- bundle exec rake - -# To enable semantic-release, uncomment these sections. -# before_deploy: -# - pip install --user bumpversion -# - npm install -g semantic-release -# - npm install -g @semantic-release/changelog -# - npm install -g @semantic-release/exec -# - npm install -g @semantic-release/git -# - npm install -g @semantic-release/github -# - npm install -g @semantic-release/commit-analyzer -# -# deploy: -# - provider: script -# script: npx semantic-release -# skip_cleanup: true -# on: -# branch: master -# rvm: 2.5.1 -# -# - provider: rubygems -# api_key: $RUBYGEMS_API_KEY -# gem: ibm_cloud_resource_controller -# on: -# rvm: '2.5.1' -# branch: master -# diff --git a/gems/ibm_cloud_resource_controller/CHANGELOG.md b/gems/ibm_cloud_resource_controller/CHANGELOG.md deleted file mode 100644 index 0e0058dd..00000000 --- a/gems/ibm_cloud_resource_controller/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -= 0.0.1 -* Initial release diff --git a/gems/ibm_cloud_resource_controller/CODE_OF_CONDUCT.md b/gems/ibm_cloud_resource_controller/CODE_OF_CONDUCT.md deleted file mode 100644 index 7303c878..00000000 --- a/gems/ibm_cloud_resource_controller/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,76 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, sex characteristics, gender identity and expression, -level of experience, education, socio-economic status, nationality, personal -appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. Examples of -representing a project or community include using an official project e-mail -address, posting via an official social media account, or acting as an appointed -representative at an online or offline event. Representation of a project may be -further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at phil_adams@us.ibm.com. All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html - -[homepage]: https://www.contributor-covenant.org - -For answers to common questions about this code of conduct, see -https://www.contributor-covenant.org/faq diff --git a/gems/ibm_cloud_resource_controller/CONTRIBUTING.md b/gems/ibm_cloud_resource_controller/CONTRIBUTING.md deleted file mode 100644 index 37e0deaa..00000000 --- a/gems/ibm_cloud_resource_controller/CONTRIBUTING.md +++ /dev/null @@ -1,13 +0,0 @@ -# Questions -If you are having problems using the APIs or have a question about IBM Cloud services, -please ask a question at -[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud). - -# Issues -If you encounter an issue with the project, you are welcome to submit a -[bug report](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/issues). -Before that, please search for similar issues. It's possible that someone has already reported the problem. - -# General Information -For general guidance on contributing to this project, please see -[this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/CONTRIBUTING_ruby.md) diff --git a/gems/ibm_cloud_resource_controller/Gemfile b/gems/ibm_cloud_resource_controller/Gemfile deleted file mode 100644 index 109e5960..00000000 --- a/gems/ibm_cloud_resource_controller/Gemfile +++ /dev/null @@ -1,7 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem's dependencies in ibm_cloud_resource_controller.gemspec -gemspec - -gem "rake", "~> 12.0" -gem "rspec", "~> 3.0" diff --git a/gems/ibm_cloud_resource_controller/LICENSE b/gems/ibm_cloud_resource_controller/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/gems/ibm_cloud_resource_controller/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/gems/ibm_cloud_resource_controller/LICENSE.txt b/gems/ibm_cloud_resource_controller/LICENSE.txt deleted file mode 100644 index d6456956..00000000 --- a/gems/ibm_cloud_resource_controller/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/gems/ibm_cloud_resource_controller/README.md b/gems/ibm_cloud_resource_controller/README.md deleted file mode 100644 index 2437c692..00000000 --- a/gems/ibm_cloud_resource_controller/README.md +++ /dev/null @@ -1,84 +0,0 @@ -[![Build Status](https://travis-ci.com/IBM-Cloud/ibm-cloud-sdk-ruby.svg?token=eW5FVD71iyte6tTby8gr&branch=master)](https://travis.ibm.com/IBM-Cloud/ibm-cloud-sdk-ruby) -[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) -# IBM Cloud Resource Controller Ruby SDK - -Ruby client library to interact with various [IBM Cloud Resource Controller APIs](https://cloud.ibm.com/apidocs?category=platform-services). - -Disclaimer: this SDK is being released initially as a **pre-release** version. -Changes might occur which impact applications that use this SDK. - -## Table of Contents - - - - - -- [Overview](#overview) -- [Prerequisites](#prerequisites) -- [Installation](#installation) -- [Using the SDK](#using-the-sdk) -- [Questions](#questions) -- [Issues](#issues) -- [Open source @ IBM](#open-source--ibm) -- [Contributing](#contributing) -- [License](#license) - - - -## Overview - -The IBM Cloud Resource Controller Ruby SDK allows developers to programmatically interact with the following -IBM Cloud services: - -Service Name | Imported Class Name ---- | --- - - -## Prerequisites - -[ibm-cloud-onboarding]: https://cloud.ibm.com/registration - -* An [IBM Cloud][ibm-cloud-onboarding] account. -* An IAM API key to allow the SDK to access your account. Create one [here](https://cloud.ibm.com/iam/apikeys). -* Ruby 2.3.0 or above. - -## Installation - -To install, use `gem` - -```bash -gem install "ibm_cloud_resource_controller" -``` - -## Using the SDK -For general SDK usage information, please see [this link](https://github.com/IBM/ibm-cloud-sdk-common/blob/master/README.md) - -## Questions - -If you are having difficulties using this SDK or have a question about the IBM Cloud services, -please ask a question -[Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-cloud). - -## Issues -If you encounter an issue with the project, you are welcome to submit a -[bug report](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/issues). -Before that, please search for similar issues. It's possible that someone has already reported the problem. - -## Open source @ IBM -Find more open source projects on the [IBM Github Page](http://ibm.github.io/) - -## Contributing -See [CONTRIBUTING.md](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/master/CONTRIBUTING.md). - -## License - -This SDK is released under the Apache 2.0 license. -The license's full text can be found in [LICENSE](https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/master/LICENSE). diff --git a/gems/ibm_cloud_resource_controller/Rakefile b/gems/ibm_cloud_resource_controller/Rakefile deleted file mode 100644 index b7e9ed54..00000000 --- a/gems/ibm_cloud_resource_controller/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -require "bundler/gem_tasks" -require "rspec/core/rake_task" - -RSpec::Core::RakeTask.new(:spec) - -task :default => :spec diff --git a/gems/ibm_cloud_resource_controller/bin/console b/gems/ibm_cloud_resource_controller/bin/console deleted file mode 100755 index 7ffedc93..00000000 --- a/gems/ibm_cloud_resource_controller/bin/console +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env ruby - -require "bundler/setup" -require "ibm_cloud_resource_controller" - -# You can add fixtures and/or initialization code here to make experimenting -# with your gem easier. You can also use a different console, if you like. - -# (If you use this, don't forget to add pry to your Gemfile!) -# require "pry" -# Pry.start - -require "irb" -IRB.start(__FILE__) diff --git a/gems/ibm_cloud_resource_controller/bin/setup b/gems/ibm_cloud_resource_controller/bin/setup deleted file mode 100755 index dce67d86..00000000 --- a/gems/ibm_cloud_resource_controller/bin/setup +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -IFS=$'\n\t' -set -vx - -bundle install - -# Do any other automated setup that you need to do here diff --git a/gems/ibm_cloud_resource_controller/ibm_cloud_resource_controller.gemspec b/gems/ibm_cloud_resource_controller/ibm_cloud_resource_controller.gemspec deleted file mode 100644 index 283ac479..00000000 --- a/gems/ibm_cloud_resource_controller/ibm_cloud_resource_controller.gemspec +++ /dev/null @@ -1,35 +0,0 @@ -require_relative 'lib/ibm_cloud_resource_controller/version' - -Gem::Specification.new do |spec| - spec.name = "ibm_cloud_resource_controller" - spec.version = IbmCloudResourceController::VERSION - spec.authors = ["IBM Cloud Developers"] - spec.email = [""] - - spec.summary = "IBM Cloud Resource Controller API" - spec.description = "Ruby gem for IBM Cloud Resource Controller API" - spec.homepage = "https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby" - spec.licenses = ["Apache-2.0"] - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") - - spec.metadata["allowed_push_host"] = "https://rubygems.org" - - spec.metadata["homepage_uri"] = spec.homepage - spec.metadata["source_code_uri"] = spec.homepage - spec.metadata["changelog_uri"] = "#{spec.metadata["source_code_uri"]}/blob/master/CHANGELOG.md" - - # Specify which files should be added to the gem when it is released. - # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - end - spec.bindir = "exe" - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ["lib"] - - spec.add_runtime_dependency "ibm_cloud_sdk_core", "~> 1.1.1" - - spec.add_development_dependency "bundler" - spec.add_development_dependency "rake" - spec.add_development_dependency "rubocop" -end diff --git a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller.rb b/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller.rb deleted file mode 100644 index 41766ecd..00000000 --- a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller.rb +++ /dev/null @@ -1,12 +0,0 @@ -require "ibm_cloud_resource_controller/version" -require "ibm_cloud_sdk_core" - -module IbmCloudResourceController - ApiException = IBMCloudSdkCore::ApiException - DetailedResponse = IBMCloudSdkCore::DetailedResponse - - require_relative "./ibm_cloud_resource_controller/authenticators.rb" - require_relative "./ibm_cloud_resource_controller/common.rb" - require_relative "./ibm_cloud_resource_controller/resource_controller_v2.rb" - require_relative "./ibm_cloud_resource_controller/resource_manager_v2.rb" -end diff --git a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/authenticators.rb b/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/authenticators.rb deleted file mode 100644 index 0a14990d..00000000 --- a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/authenticators.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -require("ibm_cloud_sdk_core") - -# Module for the IBM Cloud Resource Controller APIs -module IbmCloudResourceController - class Authenticators - BasicAuthenticator = IBMCloudSdkCore::BasicAuthenticator - BearerTokenAuthenticator = IBMCloudSdkCore::BearerTokenAuthenticator - CloudPakForDataAuthenticator = IBMCloudSdkCore::CloudPakForDataAuthenticator - ConfigBasedAuthenticatorFactory = IBMCloudSdkCore::ConfigBasedAuthenticatorFactory - IamAuthenticator = IBMCloudSdkCore::IamAuthenticator - NoAuthAuthenticator = IBMCloudSdkCore::NoAuthAuthenticator - end -end diff --git a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/common.rb b/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/common.rb deleted file mode 100644 index b35324f1..00000000 --- a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/common.rb +++ /dev/null @@ -1,22 +0,0 @@ -# frozen_string_literal: true - -require_relative "./version.rb" - -module IbmCloudResourceController - # SDK Common class - class Common - def initialize(*); end - - def get_sdk_headers(service_name, service_version, operation_id) - headers = {} - user_agent_string = "ibm_cloud_resource_controller-ruby-sdk-" + IbmCloudResourceController::VERSION + " #{RbConfig::CONFIG["host"]}" - user_agent_string += " #{RbConfig::CONFIG["RUBY_BASE_NAME"]}-#{RbConfig::CONFIG["RUBY_PROGRAM_VERSION"]}" - - headers["User-Agent"] = user_agent_string - return headers if service_name.nil? || service_version.nil? || operation_id.nil? - - headers["X-IBMCloud-SDK-Analytics"] = "service_name=#{service_name};service_version=#{service_version};operation_id=#{operation_id}" - headers - end - end -end diff --git a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/resource_controller_v2.rb b/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/resource_controller_v2.rb deleted file mode 100644 index 2c2b2661..00000000 --- a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/resource_controller_v2.rb +++ /dev/null @@ -1,982 +0,0 @@ -# frozen_string_literal: true - -# (C) Copyright IBM Corp. 2021. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# IBM OpenAPI SDK Code Generator Version: 3.30.0-bd714324-20210406-200538 -# -# Manage lifecycle of your Cloud resources using Resource Controller APIs. Resources are -# provisioned globally in an account scope. Supports asynchronous provisioning of -# resources. Enables consumption of a global resource through a Cloud Foundry space in any -# region. - -require "concurrent" -require "erb" -require "json" -require "ibm_cloud_sdk_core" -require_relative "./common.rb" - -module IbmCloudResourceController - ## - # The resource_controller V2 service. - class ResourceControllerV2 < IBMCloudSdkCore::BaseService - include Concurrent::Async - DEFAULT_SERVICE_NAME = "resource_controller" - DEFAULT_SERVICE_URL = "https://resource-controller.cloud.ibm.com" - ## - # @!method initialize(args) - # Construct a new client for the resource_controller service. - # - # @param args [Hash] The args to initialize with - # @option args service_url [String] The base service URL to use when contacting the service. - # The base service_url may differ between IBM Cloud regions. - # @option args authenticator [Object] The Authenticator instance to be configured for this service. - # @option args service_name [String] The name of the service to configure. Will be used as the key to load - # any external configuration, if applicable. - def initialize(args = {}) - @__async_initialized__ = false - defaults = {} - defaults[:service_url] = DEFAULT_SERVICE_URL - defaults[:service_name] = DEFAULT_SERVICE_NAME - defaults[:authenticator] = nil - user_service_url = args[:service_url] unless args[:service_url].nil? - args = defaults.merge(args) - super - @service_url = user_service_url unless user_service_url.nil? - end - - ######################### - # Resource Instances - ######################### - - ## - # @!method list_resource_instances(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, resource_plan_id: nil, type: nil, sub_type: nil, limit: nil, updated_from: nil, updated_to: nil) - # Get a list of all resource instances. - # Get a list of all resource instances. - # @param guid [String] When you provision a new resource in the specified location for the selected plan, - # a GUID (globally unique identifier) is created. This is a unique internal GUID - # managed by Resource controller that corresponds to the instance. - # @param name [String] The human-readable name of the instance. - # @param resource_group_id [String] Short ID of a resource group. - # @param resource_id [String] The unique ID of the offering. This value is provided by and stored in the global - # catalog. - # @param resource_plan_id [String] The unique ID of the plan associated with the offering. This value is provided by - # and stored in the global catalog. - # @param type [String] The type of the instance. For example, `service_instance`. - # @param sub_type [String] The sub-type of instance, e.g. `cfaas`. - # @param limit [String] Limit on how many items should be returned. - # @param updated_from [String] Start date inclusive filter. - # @param updated_to [String] End date inclusive filter. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_resource_instances(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, resource_plan_id: nil, type: nil, sub_type: nil, limit: nil, updated_from: nil, updated_to: nil) - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_instances") - headers.merge!(sdk_headers) - - params = { - "guid" => guid, - "name" => name, - "resource_group_id" => resource_group_id, - "resource_id" => resource_id, - "resource_plan_id" => resource_plan_id, - "type" => type, - "sub_type" => sub_type, - "limit" => limit, - "updated_from" => updated_from, - "updated_to" => updated_to - } - - method_url = "/v2/resource_instances" - - response = request( - method: "GET", - url: method_url, - headers: headers, - params: params, - accept_json: true - ) - response - end - - ## - # @!method create_resource_instance(name:, target:, resource_group:, resource_plan_id:, tags: nil, allow_cleanup: nil, parameters: nil, entity_lock: nil) - # Create (provision) a new resource instance. - # Provision a new resource in the specified location for the selected plan. - # @param name [String] The name of the instance. Must be 180 characters or less and cannot include any - # special characters other than `(space) - . _ :`. - # @param target [String] The deployment location where the instance should be hosted. - # @param resource_group [String] Short or long ID of resource group. - # @param resource_plan_id [String] The unique ID of the plan associated with the offering. This value is provided by - # and stored in the global catalog. - # @param tags [Array[String]] Tags that are attached to the instance after provisioning. These tags can be - # searched and managed through the Tagging API in IBM Cloud. - # @param allow_cleanup [Boolean] A boolean that dictates if the resource instance should be deleted (cleaned up) - # during the processing of a region instance delete call. - # @param parameters [Hash] Configuration options represented as key-value pairs that are passed through to - # the target resource brokers. - # @param entity_lock [Boolean] Indicates if the resource instance is locked for further update or delete - # operations. It does not affect actions performed on child resources like aliases, - # bindings or keys. False by default. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def create_resource_instance(name:, target:, resource_group:, resource_plan_id:, tags: nil, allow_cleanup: nil, parameters: nil, entity_lock: nil) - raise ArgumentError.new("name must be provided") if name.nil? - - raise ArgumentError.new("target must be provided") if target.nil? - - raise ArgumentError.new("resource_group must be provided") if resource_group.nil? - - raise ArgumentError.new("resource_plan_id must be provided") if resource_plan_id.nil? - - headers = { - "Entity-Lock" => entity_lock - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "create_resource_instance") - headers.merge!(sdk_headers) - - data = { - "name" => name, - "target" => target, - "resource_group" => resource_group, - "resource_plan_id" => resource_plan_id, - "tags" => tags, - "allow_cleanup" => allow_cleanup, - "parameters" => parameters - } - - method_url = "/v2/resource_instances" - - response = request( - method: "POST", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - - ## - # @!method get_resource_instance(id:) - # Get a resource instance. - # Retrieve a resource instance by ID. - # @param id [String] The short or long ID of the instance. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def get_resource_instance(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "get_resource_instance") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_instances/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - - ## - # @!method delete_resource_instance(id:, recursive: nil) - # Delete a resource instance. - # Delete a resource instance by ID. - # @param id [String] The short or long ID of the instance. - # @param recursive [Boolean] Will delete resource bindings, keys and aliases associated with the instance. - # @return [nil] - def delete_resource_instance(id:, recursive: nil) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "delete_resource_instance") - headers.merge!(sdk_headers) - - params = { - "recursive" => recursive - } - - method_url = "/v2/resource_instances/%s" % [ERB::Util.url_encode(id)] - - request( - method: "DELETE", - url: method_url, - headers: headers, - params: params, - accept_json: false - ) - nil - end - - ## - # @!method update_resource_instance(id:, name: nil, parameters: nil, resource_plan_id: nil, allow_cleanup: nil) - # Update a resource instance. - # Update a resource instance by ID. - # @param id [String] The short or long ID of the instance. - # @param name [String] The new name of the instance. Must be 180 characters or less and cannot include - # any special characters other than `(space) - . _ :`. - # @param parameters [Hash] The new configuration options for the instance. - # @param resource_plan_id [String] The unique ID of the plan associated with the offering. This value is provided by - # and stored in the global catalog. - # @param allow_cleanup [Boolean] A boolean that dictates if the resource instance should be deleted (cleaned up) - # during the processing of a region instance delete call. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def update_resource_instance(id:, name: nil, parameters: nil, resource_plan_id: nil, allow_cleanup: nil) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "update_resource_instance") - headers.merge!(sdk_headers) - - data = { - "name" => name, - "parameters" => parameters, - "resource_plan_id" => resource_plan_id, - "allow_cleanup" => allow_cleanup - } - - method_url = "/v2/resource_instances/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "PATCH", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - - ## - # @!method list_resource_aliases_for_instance(id:) - # Get a list of all resource aliases for the instance. - # Get a list of all resource aliases for the instance. - # @param id [String] The short or long ID of the instance. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_resource_aliases_for_instance(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_aliases_for_instance") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_instances/%s/resource_aliases" % [ERB::Util.url_encode(id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - - ## - # @!method list_resource_keys_for_instance(id:) - # Get a list of all the resource keys for the instance. - # Get a list of all the resource keys for the instance. - # @param id [String] The short or long ID of the instance. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_resource_keys_for_instance(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_keys_for_instance") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_instances/%s/resource_keys" % [ERB::Util.url_encode(id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - - ## - # @!method lock_resource_instance(id:) - # Lock a resource instance. - # Locks a resource instance by ID. A locked instance can not be updated or deleted. - # It does not affect actions performed on child resources like aliases, bindings or - # keys. - # @param id [String] The short or long ID of the instance. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def lock_resource_instance(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "lock_resource_instance") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_instances/%s/lock" % [ERB::Util.url_encode(id)] - - response = request( - method: "POST", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - - ## - # @!method unlock_resource_instance(id:) - # Unlock a resource instance. - # Unlocks a resource instance by ID. - # @param id [String] The short or long ID of the instance. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def unlock_resource_instance(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "unlock_resource_instance") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_instances/%s/lock" % [ERB::Util.url_encode(id)] - - response = request( - method: "DELETE", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - ######################### - # Resource Keys - ######################### - - ## - # @!method list_resource_keys(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, limit: nil, updated_from: nil, updated_to: nil) - # Get a list of all of the resource keys. - # List all resource keys. - # @param guid [String] When you create a new key, a GUID (globally unique identifier) is assigned. This - # is a unique internal GUID managed by Resource controller that corresponds to the - # key. - # @param name [String] The human-readable name of the key. - # @param resource_group_id [String] The short ID of the resource group. - # @param resource_id [String] The unique ID of the offering. This value is provided by and stored in the global - # catalog. - # @param limit [String] Limit on how many items should be returned. - # @param updated_from [String] Start date inclusive filter. - # @param updated_to [String] End date inclusive filter. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_resource_keys(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, limit: nil, updated_from: nil, updated_to: nil) - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_keys") - headers.merge!(sdk_headers) - - params = { - "guid" => guid, - "name" => name, - "resource_group_id" => resource_group_id, - "resource_id" => resource_id, - "limit" => limit, - "updated_from" => updated_from, - "updated_to" => updated_to - } - - method_url = "/v2/resource_keys" - - response = request( - method: "GET", - url: method_url, - headers: headers, - params: params, - accept_json: true - ) - response - end - - ## - # @!method create_resource_key(name:, source:, parameters: nil, role: nil) - # Create a new resource key. - # Create a new resource key. - # @param name [String] The name of the key. - # @param source [String] The short or long ID of resource instance or alias. - # @param parameters [ResourceKeyPostParameters] Configuration options represented as key-value pairs. Service defined options are - # passed through to the target resource brokers, whereas platform defined options - # are not. - # @param role [String] The role name or it's CRN. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def create_resource_key(name:, source:, parameters: nil, role: nil) - raise ArgumentError.new("name must be provided") if name.nil? - - raise ArgumentError.new("source must be provided") if source.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "create_resource_key") - headers.merge!(sdk_headers) - - data = { - "name" => name, - "source" => source, - "parameters" => parameters, - "role" => role - } - - method_url = "/v2/resource_keys" - - response = request( - method: "POST", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - - ## - # @!method get_resource_key(id:) - # Get resource key by ID. - # Get resource key by ID. - # @param id [String] The short or long ID of the key. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def get_resource_key(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "get_resource_key") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_keys/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - - ## - # @!method delete_resource_key(id:) - # Delete a resource key by ID. - # Delete a resource key by ID. - # @param id [String] The short or long ID of the key. - # @return [nil] - def delete_resource_key(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "delete_resource_key") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_keys/%s" % [ERB::Util.url_encode(id)] - - request( - method: "DELETE", - url: method_url, - headers: headers, - accept_json: false - ) - nil - end - - ## - # @!method update_resource_key(id:, name:) - # Update a resource key. - # Update a resource key by ID. - # @param id [String] The short or long ID of the key. - # @param name [String] The new name of the key. Must be 180 characters or less and cannot include any - # special characters other than `(space) - . _ :`. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def update_resource_key(id:, name:) - raise ArgumentError.new("id must be provided") if id.nil? - - raise ArgumentError.new("name must be provided") if name.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "update_resource_key") - headers.merge!(sdk_headers) - - data = { - "name" => name - } - - method_url = "/v2/resource_keys/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "PATCH", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - ######################### - # Resource Bindings - ######################### - - ## - # @!method list_resource_bindings(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, region_binding_id: nil, limit: nil, updated_from: nil, updated_to: nil) - # Get a list of all resource bindings. - # Get a list of all resource bindings. - # @param guid [String] The short ID of the binding. - # @param name [String] The human-readable name of the binding. - # @param resource_group_id [String] Short ID of the resource group. - # @param resource_id [String] The unique ID of the offering (service name). This value is provided by and stored - # in the global catalog. - # @param region_binding_id [String] Short ID of the binding in the specific targeted environment, e.g. - # service_binding_id in a given IBM Cloud environment. - # @param limit [String] Limit on how many items should be returned. - # @param updated_from [String] Start date inclusive filter. - # @param updated_to [String] End date inclusive filter. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_resource_bindings(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, region_binding_id: nil, limit: nil, updated_from: nil, updated_to: nil) - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_bindings") - headers.merge!(sdk_headers) - - params = { - "guid" => guid, - "name" => name, - "resource_group_id" => resource_group_id, - "resource_id" => resource_id, - "region_binding_id" => region_binding_id, - "limit" => limit, - "updated_from" => updated_from, - "updated_to" => updated_to - } - - method_url = "/v2/resource_bindings" - - response = request( - method: "GET", - url: method_url, - headers: headers, - params: params, - accept_json: true - ) - response - end - - ## - # @!method create_resource_binding(source:, target:, name: nil, parameters: nil, role: nil) - # Create a new resource binding. - # Create a new resource binding. - # @param source [String] The short or long ID of resource alias. - # @param target [String] The CRN of application to bind to in a specific environment, e.g. Dallas YP, CFEE - # instance. - # @param name [String] The name of the binding. Must be 180 characters or less and cannot include any - # special characters other than `(space) - . _ :`. - # @param parameters [ResourceBindingPostParameters] Configuration options represented as key-value pairs. Service defined options are - # passed through to the target resource brokers, whereas platform defined options - # are not. - # @param role [String] The role name or it's CRN. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def create_resource_binding(source:, target:, name: nil, parameters: nil, role: nil) - raise ArgumentError.new("source must be provided") if source.nil? - - raise ArgumentError.new("target must be provided") if target.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "create_resource_binding") - headers.merge!(sdk_headers) - - data = { - "source" => source, - "target" => target, - "name" => name, - "parameters" => parameters, - "role" => role - } - - method_url = "/v2/resource_bindings" - - response = request( - method: "POST", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - - ## - # @!method get_resource_binding(id:) - # Get a resource binding. - # Retrieve a resource binding by ID. - # @param id [String] The short or long ID of the binding. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def get_resource_binding(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "get_resource_binding") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_bindings/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - - ## - # @!method delete_resource_binding(id:) - # Delete a resource binding. - # Delete a resource binding by ID. - # @param id [String] The short or long ID of the binding. - # @return [nil] - def delete_resource_binding(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "delete_resource_binding") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_bindings/%s" % [ERB::Util.url_encode(id)] - - request( - method: "DELETE", - url: method_url, - headers: headers, - accept_json: false - ) - nil - end - - ## - # @!method update_resource_binding(id:, name:) - # Update a resource binding. - # Update a resource binding by ID. - # @param id [String] The short or long ID of the binding. - # @param name [String] The new name of the binding. Must be 180 characters or less and cannot include any - # special characters other than `(space) - . _ :`. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def update_resource_binding(id:, name:) - raise ArgumentError.new("id must be provided") if id.nil? - - raise ArgumentError.new("name must be provided") if name.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "update_resource_binding") - headers.merge!(sdk_headers) - - data = { - "name" => name - } - - method_url = "/v2/resource_bindings/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "PATCH", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - ######################### - # Resource Aliases - ######################### - - ## - # @!method list_resource_aliases(guid: nil, name: nil, resource_instance_id: nil, region_instance_id: nil, resource_id: nil, resource_group_id: nil, limit: nil, updated_from: nil, updated_to: nil) - # Get a list of all resource aliases. - # Get a list of all resource aliases. - # @param guid [String] Short ID of the alias. - # @param name [String] The human-readable name of the alias. - # @param resource_instance_id [String] Resource instance short ID. - # @param region_instance_id [String] Short ID of the instance in a specific targeted environment. For example, - # `service_instance_id` in a given IBM Cloud environment. - # @param resource_id [String] The unique ID of the offering (service name). This value is provided by and stored - # in the global catalog. - # @param resource_group_id [String] Short ID of Resource group. - # @param limit [String] Limit on how many items should be returned. - # @param updated_from [String] Start date inclusive filter. - # @param updated_to [String] End date inclusive filter. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_resource_aliases(guid: nil, name: nil, resource_instance_id: nil, region_instance_id: nil, resource_id: nil, resource_group_id: nil, limit: nil, updated_from: nil, updated_to: nil) - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_aliases") - headers.merge!(sdk_headers) - - params = { - "guid" => guid, - "name" => name, - "resource_instance_id" => resource_instance_id, - "region_instance_id" => region_instance_id, - "resource_id" => resource_id, - "resource_group_id" => resource_group_id, - "limit" => limit, - "updated_from" => updated_from, - "updated_to" => updated_to - } - - method_url = "/v2/resource_aliases" - - response = request( - method: "GET", - url: method_url, - headers: headers, - params: params, - accept_json: true - ) - response - end - - ## - # @!method create_resource_alias(name:, source:, target:) - # Create a new resource alias. - # Alias a resource instance into a targeted environment's (name)space. - # @param name [String] The name of the alias. Must be 180 characters or less and cannot include any - # special characters other than `(space) - . _ :`. - # @param source [String] The short or long ID of resource instance. - # @param target [String] The CRN of target name(space) in a specific environment, e.g. space in Dallas YP, - # CFEE instance etc. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def create_resource_alias(name:, source:, target:) - raise ArgumentError.new("name must be provided") if name.nil? - - raise ArgumentError.new("source must be provided") if source.nil? - - raise ArgumentError.new("target must be provided") if target.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "create_resource_alias") - headers.merge!(sdk_headers) - - data = { - "name" => name, - "source" => source, - "target" => target - } - - method_url = "/v2/resource_aliases" - - response = request( - method: "POST", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - - ## - # @!method get_resource_alias(id:) - # Get a resource alias. - # Retrieve a resource alias by ID. - # @param id [String] The short or long ID of the alias. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def get_resource_alias(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "get_resource_alias") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_aliases/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - - ## - # @!method delete_resource_alias(id:) - # Delete a resource alias. - # Delete a resource alias by ID. - # @param id [String] The short or long ID of the alias. - # @return [nil] - def delete_resource_alias(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "delete_resource_alias") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_aliases/%s" % [ERB::Util.url_encode(id)] - - request( - method: "DELETE", - url: method_url, - headers: headers, - accept_json: false - ) - nil - end - - ## - # @!method update_resource_alias(id:, name:) - # Update a resource alias. - # Update a resource alias by ID. - # @param id [String] The short or long ID of the alias. - # @param name [String] The new name of the alias. Must be 180 characters or less and cannot include any - # special characters other than `(space) - . _ :`. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def update_resource_alias(id:, name:) - raise ArgumentError.new("id must be provided") if id.nil? - - raise ArgumentError.new("name must be provided") if name.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "update_resource_alias") - headers.merge!(sdk_headers) - - data = { - "name" => name - } - - method_url = "/v2/resource_aliases/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "PATCH", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - - ## - # @!method list_resource_bindings_for_alias(id:) - # Get a list of all resource bindings for the alias. - # Get a list of all resource bindings for the alias. - # @param id [String] The short or long ID of the alias. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_resource_bindings_for_alias(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_bindings_for_alias") - headers.merge!(sdk_headers) - - method_url = "/v2/resource_aliases/%s/resource_bindings" % [ERB::Util.url_encode(id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - ######################### - # Resource Reclamations - ######################### - - ## - # @!method list_reclamations(account_id: nil, resource_instance_id: nil) - # Get a list of all reclamations. - # Get a list of all reclamations. - # @param account_id [String] An alpha-numeric value identifying the account ID. - # @param resource_instance_id [String] The short ID of the resource instance. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_reclamations(account_id: nil, resource_instance_id: nil) - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_reclamations") - headers.merge!(sdk_headers) - - params = { - "account_id" => account_id, - "resource_instance_id" => resource_instance_id - } - - method_url = "/v1/reclamations" - - response = request( - method: "GET", - url: method_url, - headers: headers, - params: params, - accept_json: true - ) - response - end - - ## - # @!method run_reclamation_action(id:, action_name:, request_by: nil, comment: nil) - # Perform a reclamation action. - # Reclaim (provisionally delete) a resource so that it can no longer be used, or - # restore a resource so that it's usable again. - # @param id [String] The ID associated with the reclamation. - # @param action_name [String] The reclamation action name. Specify `reclaim` to delete a resource, or `restore` - # to restore a resource. - # @param request_by [String] The request initiator, if different from the request token. - # @param comment [String] A comment to describe the action. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def run_reclamation_action(id:, action_name:, request_by: nil, comment: nil) - raise ArgumentError.new("id must be provided") if id.nil? - - raise ArgumentError.new("action_name must be provided") if action_name.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "run_reclamation_action") - headers.merge!(sdk_headers) - - data = { - "request_by" => request_by, - "comment" => comment - } - - method_url = "/v1/reclamations/%s/actions/%s" % [ERB::Util.url_encode(id), ERB::Util.url_encode(action_name)] - - response = request( - method: "POST", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - end -end diff --git a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/resource_manager_v2.rb b/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/resource_manager_v2.rb deleted file mode 100644 index e151f8fb..00000000 --- a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/resource_manager_v2.rb +++ /dev/null @@ -1,303 +0,0 @@ -# frozen_string_literal: true - -# (C) Copyright IBM Corp. 2021. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# IBM OpenAPI SDK Code Generator Version: 3.30.0-bd714324-20210406-200538 -# -# Manage lifecycle of your Cloud resource groups using Resource Manager APIs. - -require "concurrent" -require "erb" -require "json" -require "ibm_cloud_sdk_core" -require_relative "./common.rb" - -module IbmCloudResourceController - ## - # The Resource Manager V2 service. - class ResourceManagerV2 < IBMCloudSdkCore::BaseService - include Concurrent::Async - DEFAULT_SERVICE_NAME = "resource_manager" - DEFAULT_SERVICE_URL = "https://resource-controller.cloud.ibm.com/v2" - ## - # @!method initialize(args) - # Construct a new client for the Resource Manager service. - # - # @param args [Hash] The args to initialize with - # @option args service_url [String] The base service URL to use when contacting the service. - # The base service_url may differ between IBM Cloud regions. - # @option args authenticator [Object] The Authenticator instance to be configured for this service. - # @option args service_name [String] The name of the service to configure. Will be used as the key to load - # any external configuration, if applicable. - def initialize(args = {}) - @__async_initialized__ = false - defaults = {} - defaults[:service_url] = DEFAULT_SERVICE_URL - defaults[:service_name] = DEFAULT_SERVICE_NAME - defaults[:authenticator] = nil - user_service_url = args[:service_url] unless args[:service_url].nil? - args = defaults.merge(args) - super - @service_url = user_service_url unless user_service_url.nil? - end - - ######################### - # Resource Group - ######################### - - ## - # @!method list_resource_groups(account_id: nil, date: nil, name: nil, default: nil, include_deleted: nil) - # Get a list of all resource groups. - # Call this method to retrieve information about all resource groups and associated - # quotas in an account. The `id` returned in the response can be used to [create a - # resource instance - # later](https://cloud.ibm.com/apidocs/resource-controller/resource-controller?code=java#create-resource-instance). - # The response can be filtered based on queryParams such as `account_id`, `name`, - # `default`, and more to narrow your search. - # @param account_id [String] The ID of the account that contains the resource groups that you want to get. - # @param date [String] The date in the format of YYYY-MM which returns resource groups. Deleted resource - # groups will be excluded before this month. - # @param name [String] The name of the resource group. - # @param default [Boolean] Boolean value to specify whether or not to list default resource groups. - # @param include_deleted [Boolean] Boolean value to specify whether or not to list default resource groups. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_resource_groups(account_id: nil, date: nil, name: nil, default: nil, include_deleted: nil) - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "list_resource_groups") - headers.merge!(sdk_headers) - - params = { - "account_id" => account_id, - "date" => date, - "name" => name, - "default" => default, - "include_deleted" => include_deleted - } - - method_url = "/resource_groups" - - response = request( - method: "GET", - url: method_url, - headers: headers, - params: params, - accept_json: true - ) - response - end - - ## - # @!method create_resource_group(name: nil, account_id: nil) - # Create a resource group. - # Create a resource group in an account to organize your account resources in - # customizable groupings so that you can quickly assign users access to more than - # one resource at a time. To learn what makes a good resource group strategy, see - # [Best practices for organizing - # resources](https://cloud.ibm.com/docs/account?topic=account-account_setup). A - # default resource group is created when an account is created. If you have a Lite - # account or 30-day trial, you cannot create extra resource groups, but you can - # rename your default resource group. If you have a Pay-As-You-Go or Subscription - # account, you can create multiple resource groups. You must be assigned an IAM - # policy with the Administrator role on All Account Management services to create - # extra resource groups. - # @param name [String] The new name of the resource group. - # @param account_id [String] The account id of the resource group. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def create_resource_group(name: nil, account_id: nil) - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "create_resource_group") - headers.merge!(sdk_headers) - - data = { - "name" => name, - "account_id" => account_id - } - - method_url = "/resource_groups" - - response = request( - method: "POST", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - - ## - # @!method get_resource_group(id:) - # Get a resource group. - # Retrieve a resource group by alias ID. Call this method to get details about a - # particular resource group, like the name of the resource group, associated quotas, - # whether the state is active, the resource group ID and the CRN. The `id` returned - # in the response can be used to [create a resource instance - # later](https://cloud.ibm.com/apidocs/resource-controller/resource-controller?code=java#create-resource-instance). - # @param id [String] The short or long ID of the alias. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def get_resource_group(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "get_resource_group") - headers.merge!(sdk_headers) - - method_url = "/resource_groups/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - - ## - # @!method update_resource_group(id:, name: nil, state: nil) - # Update a resource group. - # Update a resource group by the alias ID. Call this method to update information - # about an existing resource group. You can rename a resource group and activate or - # suspend a particular resource group. To update a resource group, users need to be - # assigned with IAM policies with the Editor role or higher. - # @param id [String] The short or long ID of the alias. - # @param name [String] The new name of the resource group. - # @param state [String] The state of the resource group. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def update_resource_group(id:, name: nil, state: nil) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "update_resource_group") - headers.merge!(sdk_headers) - - data = { - "name" => name, - "state" => state - } - - method_url = "/resource_groups/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "PATCH", - url: method_url, - headers: headers, - json: data, - accept_json: true - ) - response - end - - ## - # @!method delete_resource_group(id:) - # Delete a resource group. - # Delete a resource group by the alias ID. You can delete a resource group only if - # the targeted resource group does not contain any resources or if it is not a - # default resource group. When a user creates an account, a default resource group - # is created in the account. If you want to delete a resource group that contains - # resources, first [delete the resource - # instances](https://cloud.ibm.com/apidocs/resource-controller/resource-controller?code=java#delete-resource-instance). - # Then, delete the resource group when all resource instances in the group are - # deleted. - # @param id [String] The short or long ID of the alias. - # @return [nil] - def delete_resource_group(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "delete_resource_group") - headers.merge!(sdk_headers) - - method_url = "/resource_groups/%s" % [ERB::Util.url_encode(id)] - - request( - method: "DELETE", - url: method_url, - headers: headers, - accept_json: false - ) - nil - end - ######################### - # Quota Definition - ######################### - - ## - # @!method list_quota_definitions - # List quota definitions. - # Get a list of all quota definitions. Quotas for a resource group limit the number - # of apps, instances, and memory allowed for that specific resource group. Each - # resource group that you have on your account has a specific set of quotas. - # Standard quotas are for resource groups that are created by users with a Lite - # account, and Pay-As-You-Go quotas are for resource groups that are created with a - # Pay-As-You-Go account. This method provides list of all available quota - # definitions. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def list_quota_definitions - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "list_quota_definitions") - headers.merge!(sdk_headers) - - method_url = "/quota_definitions" - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - - ## - # @!method get_quota_definition(id:) - # Get a quota definition. - # Call this method to retrieve information about a particular quota by passing the - # quota ID. The response can be used to identify the quota type, Standard or Paid. - # Information about available resources, such as number of apps, number of service - # instances, and memory, are returned in the response. Quotas for a resource group - # limit the number of apps, instances, and memory allowed for that specific resource - # group. Each resource group that you have on your account has a specific set of - # quotas. Standard quotas are for resource groups that are created by users with a - # Lite account, and Pay-As-You-Go quotas are for resource groups that are created - # with a Pay-As-You-Go account. - # @param id [String] The id of the quota. - # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. - def get_quota_definition(id:) - raise ArgumentError.new("id must be provided") if id.nil? - - headers = { - } - sdk_headers = Common.new.get_sdk_headers("resource_manager", "V2", "get_quota_definition") - headers.merge!(sdk_headers) - - method_url = "/quota_definitions/%s" % [ERB::Util.url_encode(id)] - - response = request( - method: "GET", - url: method_url, - headers: headers, - accept_json: true - ) - response - end - end -end diff --git a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/version.rb b/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/version.rb deleted file mode 100644 index 0102d5a1..00000000 --- a/gems/ibm_cloud_resource_controller/lib/ibm_cloud_resource_controller/version.rb +++ /dev/null @@ -1,3 +0,0 @@ -module IbmCloudResourceController - VERSION = '2.0.1' -end diff --git a/gems/ibm_cloud_resource_controller/spec/ibm_cloud_resource_controller/common_spec.rb b/gems/ibm_cloud_resource_controller/spec/ibm_cloud_resource_controller/common_spec.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/gems/ibm_cloud_resource_controller/spec/spec_helper.rb b/gems/ibm_cloud_resource_controller/spec/spec_helper.rb deleted file mode 100644 index 74d4bb48..00000000 --- a/gems/ibm_cloud_resource_controller/spec/spec_helper.rb +++ /dev/null @@ -1,14 +0,0 @@ -require "bundler/setup" -require "ibm_cloud_resource_controller" - -RSpec.configure do |config| - # Enable flags like --only-failures and --next-failure - config.example_status_persistence_file_path = ".rspec_status" - - # Disable RSpec exposing methods globally on `Module` and `main` - config.disable_monkey_patching! - - config.expect_with :rspec do |c| - c.syntax = :expect - end -end diff --git a/ibm-cloud-sdk.gemspec b/ibm-cloud-sdk.gemspec deleted file mode 100644 index 528b223a..00000000 --- a/ibm-cloud-sdk.gemspec +++ /dev/null @@ -1,28 +0,0 @@ -require_relative 'lib/ibm/cloud/sdk/version' - -Gem::Specification.new do |spec| - spec.name = "ibm-cloud-sdk" - spec.version = IBM::Cloud::SDK::VERSION - spec.authors = ["IBM Cloud Developers"] - - spec.summary = %q{IBM Cloud API Ruby gem.} - spec.description = %q{A Ruby gem for interacting with the various IBM Cloud services.} - spec.homepage = "https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby" - spec.licenses = ["Apache-2.0"] - spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") - - spec.metadata["homepage_uri"] = spec.homepage - spec.metadata["changelog_uri"] = "https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby/blob/v#{spec.version}/CHANGELOG.md" - - # Specify which files should be added to the gem when it is released. - # The `git ls-files -z` loads the files in the RubyGem that have been added into git. - spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do - `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - end - spec.bindir = "exe" - spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ["lib"] - - spec.add_dependency "rest-client" - spec.add_dependency "httparty" -end diff --git a/gems/ibm_cloud_global_tagging/ibm_cloud_global_tagging.gemspec b/ibm_cloud.gemspec similarity index 67% rename from gems/ibm_cloud_global_tagging/ibm_cloud_global_tagging.gemspec rename to ibm_cloud.gemspec index 09bd62c7..e7d48df3 100644 --- a/gems/ibm_cloud_global_tagging/ibm_cloud_global_tagging.gemspec +++ b/ibm_cloud.gemspec @@ -1,12 +1,12 @@ -require_relative 'lib/ibm_cloud_global_tagging/version' +require_relative 'lib/ibm_cloud/version' Gem::Specification.new do |spec| - spec.name = "ibm_cloud_global_tagging" - spec.version = IbmCloudGlobalTagging::VERSION + spec.name = "ibm_cloud" + spec.version = IbmCloud::VERSION spec.authors = ["adam.grare@ibm.com"] spec.email = ["adam.grare@ibm.com"] - spec.summary = %q{IBM Cloud Global Tagging Ruby SDK} + spec.summary = %q{IBM Cloud Ruby SDK} spec.homepage = "https://github.com/IBM-Cloud/ibm-cloud-sdk-ruby" spec.licenses = ["Apache-2.0"] spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0") @@ -27,11 +27,4 @@ Gem::Specification.new do |spec| spec.require_paths = ["lib"] spec.add_runtime_dependency "ibm_cloud_sdk_core", "~> 1.1.3" - - spec.add_development_dependency "bundler" - spec.add_development_dependency "codecov" - spec.add_development_dependency "rake" - spec.add_development_dependency "rubocop", "0.62" - spec.add_development_dependency "simplecov", "~> 0.16" - spec.add_development_dependency "webmock", "~> 3.4" end diff --git a/lib/ibm-cloud-sdk.rb b/lib/ibm-cloud-sdk.rb deleted file mode 100644 index 5fb79bd9..00000000 --- a/lib/ibm-cloud-sdk.rb +++ /dev/null @@ -1 +0,0 @@ -require "ibm/cloud/sdk" diff --git a/lib/ibm/cloud/sdk.rb b/lib/ibm/cloud/sdk.rb deleted file mode 100644 index 89e3bdf5..00000000 --- a/lib/ibm/cloud/sdk.rb +++ /dev/null @@ -1,20 +0,0 @@ - -require "json" -require "rest-client" - -require 'ibm/cloud_sdk' - -require "ibm/cloud/sdk/base_service" -require "ibm/cloud/sdk/iam" -require "ibm/cloud/sdk/power_iaas" -require "ibm/cloud/sdk/resource_controller" -require "ibm/cloud/sdk/version" -require "ibm/cloud/sdk/logging" - -module IBM - module Cloud - module SDK - class Error < StandardError; end - end - end -end diff --git a/lib/ibm/cloud/sdk/base_service.rb b/lib/ibm/cloud/sdk/base_service.rb deleted file mode 100644 index ab851ffe..00000000 --- a/lib/ibm/cloud/sdk/base_service.rb +++ /dev/null @@ -1,37 +0,0 @@ -module IBM - module Cloud - module SDK - class BaseService - def self.endpoint - raise NotImplementedError - end - - def endpoint - raise NotImplementedError - end - - def delete(path) - JSON.parse(RestClient.delete(url(path), headers)) - end - - def get(path) - JSON.parse(RestClient.get(url(path), headers)) - end - - def post(path, payload) - JSON.parse(RestClient.post(url(path), payload, headers)) - end - - private - - def url(path) - "#{endpoint}/#{path}" - end - - def headers - {"Authorization" => token.authorization_header} - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/iam.rb b/lib/ibm/cloud/sdk/iam.rb deleted file mode 100644 index 2908d9a5..00000000 --- a/lib/ibm/cloud/sdk/iam.rb +++ /dev/null @@ -1,43 +0,0 @@ -require_relative 'logging' - -module IBM - module Cloud - module SDK - class IAM < BaseService - include Logging - - def endpoint - "https://iam.cloud.ibm.com".freeze - end - - def initialize(api_key) - @api_key = api_key - RestClient.log = logger - end - - def get_identity_token - payload = { - :grant_type => "urn:ibm:params:oauth:grant-type:apikey", - :apikey => api_key - } - - result = post("identity/token", payload) - - require "ibm/cloud/sdk/iam/token" - Token.new(*result.values_at("token_type", "access_token")) - end - - private - - attr_reader :api_key - - def headers - { - "Content-Type" => "application/x-www-form-urlencoded", - "Accept" => "application/json" - } - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/iam/token.rb b/lib/ibm/cloud/sdk/iam/token.rb deleted file mode 100644 index 1ae9fe91..00000000 --- a/lib/ibm/cloud/sdk/iam/token.rb +++ /dev/null @@ -1,22 +0,0 @@ -module IBM - module Cloud - module SDK - class IAM - class Token - def initialize(token_type, access_token) - @token_type = token_type - @access_token = access_token - end - - def authorization_header - "#{token_type} #{access_token}" - end - - private - - attr_reader :access_token, :token_type - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/logging.rb b/lib/ibm/cloud/sdk/logging.rb deleted file mode 100644 index 143ba9bd..00000000 --- a/lib/ibm/cloud/sdk/logging.rb +++ /dev/null @@ -1,21 +0,0 @@ -require_relative 'null_logger' - -module IBM - module Cloud - module SDK - class << self - attr_writer :logger - end - - def self.logger - @logger ||= NullLogger.new - end - - module Logging - def logger - IBM::Cloud::SDK.logger - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/null_logger.rb b/lib/ibm/cloud/sdk/null_logger.rb deleted file mode 100644 index 759632b0..00000000 --- a/lib/ibm/cloud/sdk/null_logger.rb +++ /dev/null @@ -1,19 +0,0 @@ -require "logger" - -module IBM - module Cloud - module SDK - class NullLogger < Logger - def initialize(*_args) - end - - def add(*_args, &_block) - end - - def debug? - false - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/power_iaas.rb b/lib/ibm/cloud/sdk/power_iaas.rb deleted file mode 100644 index 27817b53..00000000 --- a/lib/ibm/cloud/sdk/power_iaas.rb +++ /dev/null @@ -1,350 +0,0 @@ -require_relative 'logging' - -module IBM - module Cloud - module SDK - class PowerIaas < BaseService - include Logging - - # Create an API Client object for the Power IaaS service - # - # @param region [String] the IBM Power Cloud instance region - # @param guid [String] the IBM Power Cloud instance GUID - # @param token [IAMtoken] the IBM Cloud IAM Token object - # @param crn [String] the IBM Power Cloud instance CRN - # @param tenant [String] the IBM Power Cloud account ID - def initialize(region, guid, token, crn, tenant) - @crn = crn - @guid = guid - @region = region - @token = token - @tenant = tenant - RestClient.log = logger - end - - # Get the API service Endpoint URL - # - # @return [String] Endpoint URL - def endpoint - "https://#{region.sub(/-\d$/, '')}.power-iaas.cloud.ibm.com/pcloud/v1" - end - - # Get Power Cloud Instance information - # - # @return [Hash] CloudInstance - def get_pcloud_instance - get("cloud-instances/#{guid}") - end - - # Get all PVM instances in an IBM Power Cloud instance - # - # @return [Array] all PVM Instances for this instance - def get_pvm_instances - pvm_instances = get("cloud-instances/#{guid}/pvm-instances")["pvmInstances"] || [] - - pvm_instances.map do |pvm_instance| - get_pvm_instance(pvm_instance["pvmInstanceID"]) - end - end - - # Get an IBM Power Cloud PVM instance - # - # @param pvm_instance_id [String] PVM instance ID - # @return [Hash] PVM Instances - def get_pvm_instance(instance_id) - get("cloud-instances/#{guid}/pvm-instances/#{instance_id}") - end - - # Perform 'start' action on a PVMInstance - # - # @param pvm_instance_id [String] PVM instance ID - def start_pvm_instance(instance_id) - post( - "cloud-instances/#{guid}/pvm-instances/#{instance_id}/action", - {"action" => "start"}.to_json - ) - end - - # Perform 'stop' action on a PVMInstance - # - # @param pvm_instance_id [String] PVM instance ID - def stop_pvm_instance(instance_id) - post( - "cloud-instances/#{guid}/pvm-instances/#{instance_id}/action", - {"action" => "stop"}.to_json - ) - end - - # Perform 'immediate-shutdown' action on a PVMInstance - # - # @param pvm_instance_id [String] PVM instance ID - def immediate_shutdown_pvm_instance(instance_id) - post( - "cloud-instances/#{guid}/pvm-instances/#{instance_id}/action", - {"action" => "immediate-shutdown"}.to_json - ) - end - - # Perform 'reboot' action on a PVMInstance - # - # This action has been deprecated and replaced by 'soft-reboot' - # and 'hard-reboot' - # - # @param pvm_instance_id [String] PVM instance ID - def reboot_pvm_instance(instance_id) - post( - "cloud-instances/#{guid}/pvm-instances/#{instance_id}/action", - {"action" => "reboot"}.to_json - ) - end - - # Perform 'soft-reboot' action on a PVMInstance - # - # @param pvm_instance_id [String] PVM instance ID - def soft_reboot_pvm_instance(instance_id) - post( - "cloud-instances/#{guid}/pvm-instances/#{instance_id}/action", - {"action" => "soft-reboot"}.to_json - ) - end - - # Perform 'hard-reboot' action on a PVMInstance - # - # @param pvm_instance_id [String] PVM instance ID - def hard_reboot_pvm_instance(instance_id) - post( - "cloud-instances/#{guid}/pvm-instances/#{instance_id}/action", - {"action" => "hard-reboot"}.to_json - ) - end - - # Perform 'reset-state' action on a PVMInstance - # - # @param pvm_instance_id [String] PVM instance ID - def reset_state_pvm_instance(instance_id) - post( - "cloud-instances/#{guid}/pvm-instances/#{instance_id}/action", - {"action" => "reset-state"}.to_json - ) - end - - # Create a new PVM instance - # - # @param instance_hash [Hash] New instance attributes - # @return [Hash] PVMInstance - def create_pvm_instance(instance_hash) - post("cloud-instances/#{guid}/pvm-instances", instance_hash.to_json) - end - - # Delete a PVM instance - # - # @param pvm_instance_id [String] PVM instance ID - def delete_pvm_instance(instance_id) - delete("cloud-instances/#{guid}/pvm-instances/#{instance_id}") - end - - # Get all images in an IBM Power Cloud instance - # - # @return [Array] all Images for this instance - def get_images - images = get("cloud-instances/#{guid}/images")["images"] || [] - - images.map do |image| - get_image(image["imageID"]) - end.compact - end - - # Get an IBM Power Cloud image - # - # @param image_id [String] Image ID - # @return [Hash] Image - def get_image(image_id) - get("cloud-instances/#{guid}/images/#{image_id}") - rescue - nil - end - - # Delete an image from a cloud instance - # - # @param image_id [String] Image ID - def delete_image(image_id) - delete("cloud-instances/#{guid}/images/#{image_id}") - end - - # List all the volumes. - # - # @return [Array] all volumes for this instance - def get_volumes - volumes = get("cloud-instances/#{guid}/volumes")["volumes"] || [] - - volumes.map do |volume| - get_volume(volume["volumeID"]) - end - end - - # Get a specific volume - # - # @param volume_id [String] Image ID - # @return [Hash] Volume - def get_volume(volume_id) - get("cloud-instances/#{guid}/volumes/#{volume_id}") - end - - # Delete a volume - # - # @param volume_id [String] Volume ID - def delete_volume(volume_id) - delete("cloud-instances/#{guid}/volumes/#{volume_id}") - end - - # Create a volume - # - # @param volume_hash [Hash] New volume attributes - # @return [Hash] Volume - def create_volume(volume_hash) - post("cloud-instances/#{guid}/volumes", volume_hash.to_json) - end - - # Attach a volume - # - # @param pvm_instance_id [String] PVM Instance ID - # @param volume_id [String] Volume ID - def attach_volume(pvm_instance_id, volume_id) - post("cloud-instances/#{guid}/pvm-instances/#{pvm_instance_id}/volumes/#{volume_id}", {}) - end - - # Detach a volume - # - # @param pvm_instance_id [String] PVM Instance ID - # @param volume_id [String] Volume ID - def detach_volume(pvm_instance_id, volume_id) - delete("cloud-instances/#{guid}/pvm-instances/#{pvm_instance_id}/volumes/#{volume_id}") - end - - # Get all networks in an IBM Power Cloud instance - # - # @return [Array] all networks for this IBM Power Cloud instance - def get_networks - networks = get("cloud-instances/#{guid}/networks")["networks"] || [] - networks.map do |network| - get_network(network["networkID"]) - end - end - - # Get an IBM Power Cloud network - # - # @param network_id [String] Network ID - # @return [Hash] Network - def get_network(network_id) - get("cloud-instances/#{guid}/networks/#{network_id}") - end - - # Get a available system pools list for IBM Power Cloud DC - # - # @return [Hash] SystemPool - def get_system_pool - get("cloud-instances/#{guid}/system-pools") - end - - # Get a storage types list in IBM Power Cloud. - # note: this method to be refactored under the common - # IBM::Cloud::SDK::PowerIaas.endpoint when the rest api become available. - # - # @return [Array] StorageType - def get_storage_types - JSON.parse(RestClient.get("https://#{region.sub(/-\d$/, '')}.power-iaas.cloud.ibm.com/broker/v1/storage-types", headers))[region] - end - - # Create a new network - # - # @param network_hash [Hash] New network attributes - # @return [Hash] Network - def create_network(network_hash) - post("cloud-instances/#{guid}/networks", network_hash.to_json) - end - - # Delete a network - # - # @param network_id [String] Network ID - def delete_network(network_id) - delete("cloud-instances/#{guid}/networks/#{network_id}") - end - - # Get all ports for a network - # - # @param network_id [String] Network ID - # @return [Array] NetworkPort - def get_network_ports(network_id) - get("cloud-instances/#{guid}/networks/#{network_id}/ports")["ports"] - end - - # List the tenant's SSH Keys - # - # @return [Array] SSHKey - def get_ssh_keys - get("tenants/#{tenant}")["sshKeys"] - end - - # Add a new SSH key to the tenant - # - # @param name [String] User defined name for the SSH key - # @param sshkey [String] SSH RSA key - # @return [Hash] SSHKey - def create_key_pair(name, sshkey) - payload = {"name" => name, "sshkey" => sshkey} - post("tenants/#{tenant}/sshkeys", payload.to_json) - end - - # Delete SSH key from the tenant - # - # @param sshkey_name [String] SSH Key name - def delete_key_pair(name) - delete("tenants/#{tenant}/sshkeys/#{name}") - end - - # Get an SAP profile - # - # @param sap_profile_id [String] SAP Profile ID - # @return [Hash] SAP profile - def get_sap_profile(sap_profile_id) - get("cloud-instances/#{guid}/sap/#{sap_profile_id}") - end - - # Get list of all SAP profiles - # - # @return [Array] all SAP profiles available to this instance - def get_sap_profiles - sap_profiles = get("cloud-instances/#{guid}/sap")["profiles"] || [] - - sap_profiles.map do |sap_profile| - get_sap_profile(sap_profile["profileID"]) - end - end - - # Create a new SAP PVM Instance - # - # Create a new PVM instance using an SAP profile. The resultant PVM - # instance is the standard 'PVMInstance' type and can be accessed via - # the existing *_pvm_instance methods. - # - # @param sap_profile_id [String] SAP Profile ID - # @return [Hash] SAP profile - def create_sap_pvm_instance(instance_hash) - post("cloud-instances/#{guid}/sap", instance_hash.to_json) - end - - private - - attr_reader :crn, :guid, :region, :tenant, :token - - def headers - { - 'Authorization' => token.authorization_header, - 'CRN' => crn, - 'Content-Type' => 'application/json' - } - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/resource_controller.rb b/lib/ibm/cloud/sdk/resource_controller.rb deleted file mode 100644 index 3ec91993..00000000 --- a/lib/ibm/cloud/sdk/resource_controller.rb +++ /dev/null @@ -1,34 +0,0 @@ -require_relative 'logging' - -module IBM - module Cloud - module SDK - class ResourceController < BaseService - include Logging - require "ibm/cloud/sdk/resource_controller/resource" - def endpoint - "https://resource-controller.cloud.ibm.com/v2" - end - - def initialize(token) - @token = token - RestClient.log = logger - end - - def get_resource(guid) - Resource.new(get("resource_instances/#{guid}")) - end - - private - - attr_reader :token - - def headers - { - "Authorization" => token.authorization_header - } - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/resource_controller/resource.rb b/lib/ibm/cloud/sdk/resource_controller/resource.rb deleted file mode 100644 index ee5eeadf..00000000 --- a/lib/ibm/cloud/sdk/resource_controller/resource.rb +++ /dev/null @@ -1,33 +0,0 @@ -module IBM - module Cloud - module SDK - class ResourceController - class Resource - def initialize(instance) - @instance = instance - end - - def account_id - instance["account_id"] - end - - def crn - instance["crn"] - end - - def guid - instance["guid"] - end - - def region_id - instance["region_id"] - end - - private - - attr_reader :instance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/tags.rb b/lib/ibm/cloud/sdk/tags.rb deleted file mode 100644 index 05a5c25c..00000000 --- a/lib/ibm/cloud/sdk/tags.rb +++ /dev/null @@ -1,28 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require 'ibm/cloud/sdk_http' -require_relative 'tags/http' - -module IBM - module Cloud - module SDK - # A collection interface into the Tags API. - class Tags < TAG::TagCollection - def initialize(connection, token, logger: nil) # rubocop:disable Lint/MissingSuper - @token = token - @connection = connection - - @logger = logger || Logger.new($stdout, level: :warn) - @array_key = 'items' - end - - attr_reader :logger, :token, :connection - - def endpoint - 'https://tags.global-search-tagging.cloud.ibm.com/v3/tags' - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/tags/http.rb b/lib/ibm/cloud/sdk/tags/http.rb deleted file mode 100644 index 8fd8358d..00000000 --- a/lib/ibm/cloud/sdk/tags/http.rb +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true - -require 'ibm/cloud/sdk_http' - -require_relative 'http/tag_collection' diff --git a/lib/ibm/cloud/sdk/tags/http/tag_collection.rb b/lib/ibm/cloud/sdk/tags/http/tag_collection.rb deleted file mode 100644 index 566e30b7..00000000 --- a/lib/ibm/cloud/sdk/tags/http/tag_collection.rb +++ /dev/null @@ -1,99 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative '../http' - -module IBM - module Cloud - module SDK - module TAG - # The Base Collection for the Tags API. - class TagCollection < SDKHTTP::BaseCollection - # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Layout/LineLength - - # Set params on the next request. - # @param account_id [String>] The ID of the billing account to list the tags for. If it is not set, then it is taken from the authorization token. This parameter is required if tag_type is set to service. - # @param tag_type [String] The type of the tag you want to list. Supported values are user and service. - # @param full_data [Boolean] If set to true, this query returns the provider, ghost, ims or ghost,ims, where the tag exists and the number of attached resources. - # @param providers [String] Select a provider. Supported values are ghost and ims. - # @param attached_to [String] If you want to return only the list of tags attached to a specified resource, pass the ID of the resource on this parameter. For GhoST onboarded resources, the resource ID is the CRN; for IMS resources, it is the IMS ID. When using this parameter, you must specify the appropriate provider (ims or ghost). - # @param offset [Integer] The offset is the index of the item from which you want to start returning data from. - # @param limit [Integer] The number of tags to return (1 <> 1000). Default: 100 - # @param timeout [Integer] The search timeout bounds the search request to be executed within the specified time value. It returns the hits accumulated until time runs out (0 <> 60000). - # @param order_by_name [String] Order the output by tag name (asc,desc). - # @param attached_only [Boolean] Filter on attached tags. If true, it returns only tags that are attached to one or more resources. - def params( - account_id: nil, - tag_type: nil, - full_data: false, - providers: nil, - attached_to: nil, - offset: 0, - limit: 100, - timeout: nil, - order_by_name: 'asc', - attached_only: false - ) - @params ||= {} - @params[:account_id] = account_id if account_id - @params[:tag_type] = tag_type if tag_type && %w[user service].include?(tag_type) - @params[:full_data] = full_data if full_data.instance_of?(TrueClass) - @params[:providers] = providers if providers && %w[ghost ims].include?(providers) - @params[:attached_to] = attached_to if attached_to - @params[:offset] = offset if offset.positive? - @params[:limit] = limit if limit && (1..1000).include?(limit) && limit != 100 - @params[:timeout] = timeout if timeout - @params[:order_by_name] = order_by_name if order_by_name && %w[desc].include?(order_by_name) - @params[:attached_only] = attached_only if attached_only.instance_of?(TrueClass) - self - end - # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Layout/LineLength - - def reset_params - @params = {} - end - - # Return the total count as retrieved from the API. - # @return [Integer] value in total_count - def total_count - fetch.json.[](:total_count) - end - - # Get all tags attached to a CRN. - # @param crn [String] The CRN for the instance. - def attached_to(crn) - return [] if crn.to_s.empty? - - params(attached_to: crn).all - end - - private - - # Create a generator that removes the need for pagination. - # @param url [String] Full URL to send to server. - # @return [Enumerator] Object to page through results. - # @yield [BaseInstance] An instance of the instance class. - # @yield [Hash] When no BaseInstance set. - def each_resource(url, offset = 0, &block) - return enum_for(:each_resource, url) unless block_given? - return unless url - - response = params(offset: offset).get(path: url).json - - resources = response.fetch(@array_key.to_sym) - current_count = response.fetch(:offset) + response.fetch(:limit) - - resources&.each { |value| yield value } # rubocop:disable Style/ExplicitBlockArgument - - if resources.empty? - reset_params - return - end - - each_resource(url, current_count, &block) - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/version.rb b/lib/ibm/cloud/sdk/version.rb deleted file mode 100644 index 1eac6999..00000000 --- a/lib/ibm/cloud/sdk/version.rb +++ /dev/null @@ -1,7 +0,0 @@ -module IBM - module Cloud - module SDK - VERSION = "0.1.11" - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc.rb b/lib/ibm/cloud/sdk/vpc.rb deleted file mode 100644 index cfdaa8e6..00000000 --- a/lib/ibm/cloud/sdk/vpc.rb +++ /dev/null @@ -1,134 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require 'ibm/cloud/sdk_http' -require_relative 'vpc/http' - -require_relative 'vpc/floatingips' -require_relative 'vpc/flowlogcollectors' -require_relative 'vpc/ike_policies' -require_relative 'vpc/images' -require_relative 'vpc/instance_profiles' -require_relative 'vpc/instances' -require_relative 'vpc/ipsec_policies' -require_relative 'vpc/keys' -require_relative 'vpc/load_balancers' -require_relative 'vpc/network_acls' -require_relative 'vpc/operating_systems' -require_relative 'vpc/public_gateways' -require_relative 'vpc/regions' -require_relative 'vpc/security_groups' -require_relative 'vpc/subnets' -require_relative 'vpc/volume_profiles' -require_relative 'vpc/volumes' -require_relative 'vpc/vpcs' -require_relative 'vpc/vpn_gateways' - -module IBM - module Cloud - module SDK - # Container that encapsulates the VPC API. - class Vpc - include VPC::VpcHTTP - - # Create an API Client object for the VPC IaaS service - # - # @param region [String] the IBM Power Cloud instance region - # @param connection [IBM::Cloud::SDK::VPC::Connection] A connection object. - # @param logger [Logger] An instance of an instanciated logger. - def initialize(region, connection, token, logger: nil) - @region = region - @token = token - @connection = connection - - @logger = logger || Logger.new($stdout, level: :warn) - end - - attr_reader :logger, :token, :connection - attr_accessor :region - - # The Region API endpoint. - def endpoint - "https://#{region.sub(/-\d$/, '')}.iaas.cloud.ibm.com/v1" - end - - # Entry point to the Floating IPs API. - def floating_ips - VPC::FloatingIPs.new(self) - end - - def flowlog_collectors - VPC::FlowLogCollectors.new(self) - end - - def ike_policies - VPC::IKEPolicies.new(self) - end - - def images - VPC::Images.new(self) - end - - def instance_profiles - VPC::InstanceProfiles.new(self) - end - - def instances - VPC::Instances.new(self) - end - - def ipsec_policies - VPC::IPSecPolicies.new(self) - end - - def keys - VPC::Keys.new(self) - end - - def load_balancers - VPC::LoadBalancers.new(self) - end - - def network_acls - VPC::NetworkACLs.new(self) - end - - def operating_systems - VPC::OperatingSystems.new(self) - end - - def public_gateways - VPC::PublicGateways.new(self) - end - - def regions - VPC::Regions.new(self) - end - - def security_groups - VPC::SecurityGroups.new(self) - end - - def subnets - VPC::Subnets.new(self) - end - - def volumes_profiles - VPC::VolumeProfiles.new(self) - end - - def volumes - VPC::Volumes.new(self) - end - - def vpcs - VPC::Vpcs.new(self) - end - - def vpn_gateways - VPC::VPNGateways.new(self) - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/floatingips.rb b/lib/ibm/cloud/sdk/vpc/floatingips.rb deleted file mode 100644 index 3e2dbd4e..00000000 --- a/lib/ibm/cloud/sdk/vpc/floatingips.rb +++ /dev/null @@ -1,20 +0,0 @@ -# typed: false -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # Class that deals with groups of floating IPs. - class FloatingIPs < VPCCollection - def initialize(parent) - super(parent, 'floating_ips', child_class: FloatingIP) - end - end - - # Class that deals with a single floating IP. - class FloatingIP < VPCInstance; end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/flowlogcollectors.rb b/lib/ibm/cloud/sdk/vpc/flowlogcollectors.rb deleted file mode 100644 index 85bc1044..00000000 --- a/lib/ibm/cloud/sdk/vpc/flowlogcollectors.rb +++ /dev/null @@ -1,20 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of subnets - class FlowLogCollectors < VPCCollection - def initialize(parent) - super(parent, 'flow_log_collectors', child_class: FlowLogCollectors) - end - end - - # A single subnet - class FlowLogCollector < VPCInstance; end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/http.rb b/lib/ibm/cloud/sdk/vpc/http.rb deleted file mode 100644 index 72f58f73..00000000 --- a/lib/ibm/cloud/sdk/vpc/http.rb +++ /dev/null @@ -1,7 +0,0 @@ -# frozen_string_literal: true - -require 'ibm/cloud/sdk_http' -require_relative 'http/vpc_http' - -require_relative 'http/vpc_collection' -require_relative 'http/vpc_instance' diff --git a/lib/ibm/cloud/sdk/vpc/http/vpc_collection.rb b/lib/ibm/cloud/sdk/vpc/http/vpc_collection.rb deleted file mode 100644 index 37d1ddd0..00000000 --- a/lib/ibm/cloud/sdk/vpc/http/vpc_collection.rb +++ /dev/null @@ -1,82 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative '../http' -require_relative 'vpc_http' - -module IBM - module Cloud - module SDK - module VPC - # Container that encapsulates the VPC API. - # This class is used as a base for collection APIs. - # @param parent [Object] The parent instance in the API chain. - # @param endpoint [string] A path from the parent to the desired endpoint. In most cases is should be 1 word. - # @param array_key [string] The key that the API response holds the endpoint data. When nil the endpoint will be used. - # @param child_class [Object] The Object to be used when instanciating the single instance for this class. - class VPCCollection < SDKHTTP::BaseCollection - include VpcHTTP - - # A chainable method to set query filters on the collection. - # @example vpc.images.params(limit: 1).all - # - # @param start [String] A server-supplied token determining what resource to start the page on. - # @param limit [Integer] The number of resources to return on a page allowed values are between 1 and 100 - # @param resource_group [String] Filters the collection to resources within one of the resource groups identified in a comma-separated list of resource group identifiers - # @return [BaseCollection] This class with the param instance variable set. - def params(start: nil, limit: nil, resource_group: nil) - @params[:start] = start if start - @params[:limit] = limit if limit - @params[:resource_group] = resource_group if resource_group - self - end - - # Determine if the collection has a total_count key in its response. - # @return [Boolean] - def has_count? - fetch.json&.key?(:total_count) - end - - # Get the total count if it exists in the response. Returns nil otherwise. - # @return [Integer] The total count reuturned by the server. - def count - fetch.json&.[](:total_count) - end - - private - - # Return a wrapped instance if set. - # @param value [Hash] The hash returned from server. - def hash_instance(value) - return @instance.new(self, data: value, id_key: @instance_id) if @instance - - value - end - - # Create a generator that removes the need for pagination. - # @param url [String] Full URL to send to server. - # @return [Enumerator] Object to page through results. - # @yield [BaseInstance] An instance of the instance class. - # @yield [Hash] When no VPCInstance set. - def each_resource(url, &block) - return enum_for(:each_resource, url) unless block_given? - return unless url - - response = get(path: url).json - resources = response.fetch(@array_key.to_sym) - - resources&.each { |value| yield hash_instance(value) } - # VPC has a next key that holds the next URL. - return unless response.key?(:next) - - # The :next data structure is a hash with a href member. - next_url = response.dig(:next, :href) - return unless next_url - - each_resource(next_url, &block) - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/http/vpc_http.rb b/lib/ibm/cloud/sdk/vpc/http/vpc_http.rb deleted file mode 100644 index b4ee0972..00000000 --- a/lib/ibm/cloud/sdk/vpc/http/vpc_http.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -require_relative '../http' - -module IBM - module Cloud - module SDK - # Module holds basic HTTP functionality. - module VPC - # Generic methods for accessing VPC. - module VpcHTTP - include SDKHTTP::BaseHTTPMixin - - # Preprocess request parameters, add required version and generation parameters to query. - # @param query [Hash] A hash of query parameters. - # @param payload [Hash] A hash to send as the body. - # @param payload_type [Hash] If json then convert to json string, else send as form data. - # @return [Hash] - def metadata(query = nil, payload = nil, payload_type = 'json') - default_params = { version: '2020-08-01', generation: 2 } - default_params.merge!(query) if query - super(default_params, payload, payload_type) - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/http/vpc_instance.rb b/lib/ibm/cloud/sdk/vpc/http/vpc_instance.rb deleted file mode 100644 index 11c8eb24..00000000 --- a/lib/ibm/cloud/sdk/vpc/http/vpc_instance.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -require 'ibm/cloud/sdk/tags' - -require_relative 'vpc_http' - -module IBM - module Cloud - module SDK - module VPC - # Container that encapsulates the VPC API. - class VPCInstance < SDKHTTP::BaseInstance - include VpcHTTP - - # Get the CRN for the resource. - # @return [String] - def crn - self[:crn] - end - - # Get the tags associated with this resource. - # @return [Enumerator] An enumerator with the results. - def tags - IBM::Cloud::SDK::Tags.new(@connection, @token, logger: @logger).attached_to(crn) - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/ike_policies.rb b/lib/ibm/cloud/sdk/vpc/ike_policies.rb deleted file mode 100644 index 48d2acec..00000000 --- a/lib/ibm/cloud/sdk/vpc/ike_policies.rb +++ /dev/null @@ -1,24 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of IKEPolicy - class IKEPolicies < VPCCollection - def initialize(parent) - super(parent, 'ike_policies', child_class: IKEPolicy) - end - end - - # A single IKEPolicy - class IKEPolicy < VPCInstance - def connections - get('connections') - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/images.rb b/lib/ibm/cloud/sdk/vpc/images.rb deleted file mode 100644 index 9f701536..00000000 --- a/lib/ibm/cloud/sdk/vpc/images.rb +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # Work with multiple images. - class Images < VPCCollection - def initialize(parent) - super(parent, 'images', child_class: Image) - end - end - - # Work with a single image. - class Image < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/instance/actions.rb b/lib/ibm/cloud/sdk/vpc/instance/actions.rb deleted file mode 100644 index e5eaea04..00000000 --- a/lib/ibm/cloud/sdk/vpc/instance/actions.rb +++ /dev/null @@ -1,94 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require 'date' -require 'forwardable' - -module IBM - module Cloud - module SDK - module VPC - module INSTANCE - # Actions for an instance. - class Actions < VPCCollection - def initialize(parent) - super(parent, 'actions') - end - - # Send an action request to start the instance. - def start - create('start') - end - - # Send an action request to stop the instance. - # @param force [Boolean] Clear the queue and run this action. - def stop(force: false) - create('stop', force: force) - end - - # Send an action request to reboot the instance. - # @param force [Boolean] Clear the queue and run this action. - def reboot(force: false) - create('reboot', force: force) - end - - # Send a custom action request. - # @param action [String] The type of action. Allowable values: [reboot, start, stop] - # @param force [Boolean] If set to true, the action will be forced immediately, and all queued actions deleted. Ignored for the start action. - def create(action, force: false) - @logger.info("Sending action request for #{action} with force #{force}.") - payload = { type: action } - payload[:force] = force if force - response = post(payload: payload) - Action.new(response) - end - end - - # A base class that wraps the action response. - class Action - def initialize(response) - @response = response - @data = response.json - @keys = %i[type force created_at] - @deprecated = %i[completed_at started_at status id href] - - clear_deprecated - add_inst_vars(@keys) - end - - # Return the DateTime the action was created. - # @return [DateTime] - def created_at - return DateTime.parse(@created_at) if @created_at - - @created_at - end - - # The HTTP response object. - attr_accessor :response, :data - - extend Forwardable - def_delegators :@data, :[], :dig, :each_pair, :each, :fetch, :has_key?, :has_value?, :include?, :index, :inspect, :key?, :keys, :length, :merge, :merge!, :clear, :to_h, :value?, :values, :pretty_print - - private - - # Iterate through an array of symbols. Set the instance variable and attr_accessor for each. - def add_inst_vars(keys) - keys.each do |k| - instance_variable_set "@#{k}", @data[k] - self.class.attr_accessor k unless respond_to?(k) - end - end - - # Remove deprecated keys from hash. - def clear_deprecated - @data.each do |k, _v| - @data.delete(k) if @deprecated.include?(k) - end - end - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/instance/floating_ips.rb b/lib/ibm/cloud/sdk/vpc/instance/floating_ips.rb deleted file mode 100644 index 6cefa9c8..00000000 --- a/lib/ibm/cloud/sdk/vpc/instance/floating_ips.rb +++ /dev/null @@ -1,23 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - module INSTANCE - # Get a Floating IP. - class FloatingIps < VPCCollection - def initialize(parent) - super(parent, 'floating_ips', child_class: FloatingIp) - end - end - - # Get a single floating IP. - class FloatingIp < VPCInstance - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/instance/network_interfaces.rb b/lib/ibm/cloud/sdk/vpc/instance/network_interfaces.rb deleted file mode 100644 index 9b08b58b..00000000 --- a/lib/ibm/cloud/sdk/vpc/instance/network_interfaces.rb +++ /dev/null @@ -1,28 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative('floating_ips') - -module IBM - module Cloud - module SDK - module VPC - module INSTANCE - # All netowrk interfaces. - class NetworkInterfaces < VPCCollection - def initialize(parent) - super(parent, 'network_interfaces', child_class: NetworkInterface) - end - end - - # A single network insterface. - class NetworkInterface < VPCInstance - def floating_ips - FloatingIps.new(self) - end - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/instance/volume_attachments.rb b/lib/ibm/cloud/sdk/vpc/instance/volume_attachments.rb deleted file mode 100644 index 3822c152..00000000 --- a/lib/ibm/cloud/sdk/vpc/instance/volume_attachments.rb +++ /dev/null @@ -1,23 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - module INSTANCE - # Get all attached volumes. - class VolumeAttachments < VPCCollection - def initialize(parent) - super(parent, 'volume_attachments', child_class: VolumeAttachment) - end - end - - # A single attached volume. - class VolumeAttachment < VPCInstance - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/instance_profiles.rb b/lib/ibm/cloud/sdk/vpc/instance_profiles.rb deleted file mode 100644 index 37cc0de4..00000000 --- a/lib/ibm/cloud/sdk/vpc/instance_profiles.rb +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # Work with multiple profiles. - class InstanceProfiles < VPCCollection - def initialize(parent) - super(parent, 'instance/profiles', child_class: InstanceProfile, array_key: 'profiles') - end - end - - # Get a single profile. - class InstanceProfile < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/instances.rb b/lib/ibm/cloud/sdk/vpc/instances.rb deleted file mode 100644 index df17a2c9..00000000 --- a/lib/ibm/cloud/sdk/vpc/instances.rb +++ /dev/null @@ -1,157 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative 'instance/actions' -require_relative 'instance/network_interfaces' -require_relative 'instance/volume_attachments' - -module IBM - module Cloud - module SDK - # Work with VPC instances. - module VPC - # Work with multiple VM instances. - class Instances < VPCCollection - def initialize(parent) - super(parent, 'instances', child_class: Instance) - end - - # A chainable method to set query filters on the collection. - # @example vpc.images.params(limit: 1).all - # - # @param start [String] A server-supplied token determining what resource to start the page on. - # @param limit [Integer] The number of resources to return on a page allowed values are between 1 and 100 - # @param name [String] Filters the collection to resources with the exact specified name - # @param vpc_id [String] Filters the collection to resources in the VPC with the specified identifier - # @param vpc_crn [String] Filters the collection to resources in the VPC with the specified CRN - # @param vpc_name [String] Filters the collection to resources in the VPC with the exact specified name - # @return [BaseCollection] This class with the param instance variable set. - def params(start: nil, limit: nil, name: nil, vpc_id: nil, vpc_crn: nil, vpc_name: nil) - super(start: start, limit: limit) - @params['name'] = name if name - @params['vpc.id'] = vpc_id if vpc_id - @params['vpc.crn'] = vpc_crn if vpc_crn - @params['vpc.name'] = vpc_name if vpc_name - self - end - end - - # Work with a single instance. - class Instance < VPCInstance - TRANSITIONAL_STATES = %w[pausing pending restarting resuming starting stopping].freeze - ERROR_STATE = 'failed' - RUNNING_STATE = 'running' - STOPPED_STATES = %w[stopped paused].freeze - - # The id of this VM. - def id - @data[:id] - end - - # The name of this VM. - def name - @data[:name] - end - - # The status of the virtual server instance. Possible values: [failed,paused,pausing,pending,restarting,resuming,running,starting,stopped,stopping] - def status - @data[:status] - end - - # Whether the state of the VM is in failed state. - # @return [Boolean] - def failed? - status == ERROR_STATE - end - - # Whether the state of the VM is in the started state. - # @return [Boolean] - def started? - status == RUNNING_STATE - end - - # Whether the state of the VM is in a stopped or paused state. - # @return [Boolean] - def stopped? - STOPPED_STATES.include?(status) - end - - # Whether the state of the VM is in a transitional state. - # @return [Boolean] - def transitional? - TRANSITIONAL_STATES.include?(status) - end - - # Interact with instance actions. - # @return [INSTANCE::Actions] - def actions - INSTANCE::Actions.new(self) - end - - # Interact with instance network interfaces. - # @return [INSTANCE::NetworkInterfaces] - def network_interfaces - INSTANCE::NetworkInterfaces.new(self) - end - - # Interact with instance volume attachements. - # @return [INSTANCE::VolumeAttachments] - def volume_attachments - INSTANCE::VolumeAttachments.new(self) - end - - # Return the data used for initializing this VM. - def initialization - adhoc(method: 'get', path: 'initialization').json - end - - # Wait for the VM instance to be in a stable state. - # @param sleep_time [Integer] The time to sleep between refreshes. - # @param timeout [Integer] The number of seconds before raising an error. - # @param block [Proc] A block to test against. Must return a boolean. - # @raise [RuntimeError] Instance goes into failed state. - # @raise [RuntimeError] Timeout has been reached. - def wait_for!(sleep_time: 5, timeout: 600, &block) - @logger.info("Starting wait for instance #{id}. Starts in state #{status}.") - loop do - refresh - raise "VM #{id} is in a failed state." if failed? - break if block.call(self) - - timeout = sleep_counter(sleep_time, timeout) - raise "Time out while waiting #{id} to be stable." if timeout <= 0 - end - @logger.info("Finished wait for instance #{id}. Ends in state #{status}.") - end - - # Wait for the VM instance to be have a started status. - # @param sleep_time [Integer] The time to sleep between refreshes. - # @param timeout [Integer] The number of seconds before raising an error. - # @raise [RuntimeError] Instance goes into failed state. - # @raise [RuntimeError] Timeout has been reached. - def wait_for_started!(sleep_time: 5, timeout: 600) - wait_for!(sleep_time: sleep_time, timeout: timeout, &:started?) - end - - # Wait for the VM instance to be have a stopped status. - # @param sleep_time [Integer] The time to sleep between refreshes. - # @param timeout [Integer] The number of seconds before raising an error. - # @raise [RuntimeError] Instance goes into failed state. - # @raise [RuntimeError] Timeout has been reached. - def wait_for_stopped!(sleep_time: 5, timeout: 600) - wait_for!(sleep_time: sleep_time, timeout: timeout, &:stopped?) - end - - private - - # Sleep for the specificed time and decrement timout by that number. - # @return [Integer] The current timeout. - def sleep_counter(sleep_time, timeout) - sleep sleep_time - timeout - sleep_time - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/ipsec_policies.rb b/lib/ibm/cloud/sdk/vpc/ipsec_policies.rb deleted file mode 100644 index 8ebad113..00000000 --- a/lib/ibm/cloud/sdk/vpc/ipsec_policies.rb +++ /dev/null @@ -1,24 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of IPSecPolicy - class IPSecPolicies < VPCCollection - def initialize(parent) - super(parent, 'ike_policies', child_class: IPSecPolicy) - end - end - - # A single IPSecPolicy - class IPSecPolicy < VPCInstance - def connections - get('connections') - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/keys.rb b/lib/ibm/cloud/sdk/vpc/keys.rb deleted file mode 100644 index 551628a2..00000000 --- a/lib/ibm/cloud/sdk/vpc/keys.rb +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A collection of SSH keys. - class Keys < VPCCollection - def initialize(parent) - super(parent, 'keys', child_class: Key) - end - end - - # A single key. - class Key < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/load_balancer.rb b/lib/ibm/cloud/sdk/vpc/load_balancer.rb deleted file mode 100644 index 07f9d295..00000000 --- a/lib/ibm/cloud/sdk/vpc/load_balancer.rb +++ /dev/null @@ -1,23 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative('load_balancer/listeners') - -module IBM - module Cloud - module SDK - module VPC - # A single LoadBalancer - class LoadBalancer < VPCInstance - def statistics - get('statistics') - end - - def listeners - LOADBALANCER::Listeners.new(self) - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/load_balancer/listeners.rb b/lib/ibm/cloud/sdk/vpc/load_balancer/listeners.rb deleted file mode 100644 index 7e805670..00000000 --- a/lib/ibm/cloud/sdk/vpc/load_balancer/listeners.rb +++ /dev/null @@ -1,30 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative('policies') - -module IBM - module Cloud - module SDK - module VPC - module LOADBALANCER - # A list of Listener - class Listeners < VPCCollection - def initialize(parent) - @array_key = 'listeners' - @instance = Listener - super(parent, @array_key) - end - end - - # A single Listener - class Listener < VPCInstance - def policies - LOADBALANCER::Policies.new(self) - end - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/load_balancer/members.rb b/lib/ibm/cloud/sdk/vpc/load_balancer/members.rb deleted file mode 100644 index 1e651cb9..00000000 --- a/lib/ibm/cloud/sdk/vpc/load_balancer/members.rb +++ /dev/null @@ -1,23 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of Member - class Members < VPCCollection - def initialize(parent) - @array_key = 'members' - @instance = Member - super(parent, @array_key) - end - end - - # A single Member - class Member < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/load_balancer/policies.rb b/lib/ibm/cloud/sdk/vpc/load_balancer/policies.rb deleted file mode 100644 index 0b8b608c..00000000 --- a/lib/ibm/cloud/sdk/vpc/load_balancer/policies.rb +++ /dev/null @@ -1,30 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative('rules') - -module IBM - module Cloud - module SDK - module VPC - module LOADBALANCER - # A list of Policies - class Policies < VPCCollection - def initialize(parent) - @array_key = 'policies' - @instance = Policy - super(parent, @array_key) - end - end - - # A single Policy - class Policy < VPCInstance - def rules - Rules.new(self) - end - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/load_balancer/pools.rb b/lib/ibm/cloud/sdk/vpc/load_balancer/pools.rb deleted file mode 100644 index 5559fd4a..00000000 --- a/lib/ibm/cloud/sdk/vpc/load_balancer/pools.rb +++ /dev/null @@ -1,28 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative('members') - -module IBM - module Cloud - module SDK - module VPC - # A list of Pool - class Pools < VPCCollection - def initialize(parent) - @array_key = 'pools' - @instance = Pool - super(parent, @array_key) - end - end - - # A single Pool - class Pool < VPCInstance - def members - Members.new(self) - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/load_balancer/rules.rb b/lib/ibm/cloud/sdk/vpc/load_balancer/rules.rb deleted file mode 100644 index 14d8aaab..00000000 --- a/lib/ibm/cloud/sdk/vpc/load_balancer/rules.rb +++ /dev/null @@ -1,25 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - module LOADBALANCER - # A list of Rule - class Rules < VPCCollection - def initialize(parent) - @array_key = 'rules' - @instance = Rule - super(parent, @array_key) - end - end - - # A single Rule - class Rule < VPCInstance - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/load_balancers.rb b/lib/ibm/cloud/sdk/vpc/load_balancers.rb deleted file mode 100644 index b6646fe0..00000000 --- a/lib/ibm/cloud/sdk/vpc/load_balancers.rb +++ /dev/null @@ -1,19 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative 'load_balancer' - -module IBM - module Cloud - module SDK - module VPC - # A list of LoadBalancer - class LoadBalancers < VPCCollection - def initialize(parent) - super(parent, 'load_balancers', child_class: LoadBalancer) - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/network_acls.rb b/lib/ibm/cloud/sdk/vpc/network_acls.rb deleted file mode 100644 index 39e56f0f..00000000 --- a/lib/ibm/cloud/sdk/vpc/network_acls.rb +++ /dev/null @@ -1,39 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of NetworkACL - class NetworkACLs < VPCCollection - def initialize(parent) - super(parent, 'network_acls', child_class: NetworkACL) - end - end - - # A single NetworkACL - class NetworkACL < VPCInstance - def rules - NETWORKACL::Rules.new(self) - end - end - - module NETWORKACL - # A list of NetworkACL - class Rules < VPCCollection - def initialize(parent) - @array_key = 'network_acls' - @instance = NetworkACL - super(parent, @array_key) - end - end - - # A single NetworkACL - class Rule < VPCInstance - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/operating_systems.rb b/lib/ibm/cloud/sdk/vpc/operating_systems.rb deleted file mode 100644 index 953dc488..00000000 --- a/lib/ibm/cloud/sdk/vpc/operating_systems.rb +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of OperatingSystem - class OperatingSystems < VPCCollection - def initialize(parent) - super(parent, 'operating_systems', child_class: OperatingSystem) - end - end - - # A single OperatingSystem - class OperatingSystem < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/public_gateways.rb b/lib/ibm/cloud/sdk/vpc/public_gateways.rb deleted file mode 100644 index 864fcab8..00000000 --- a/lib/ibm/cloud/sdk/vpc/public_gateways.rb +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of PublicGateway - class PublicGateways < VPCCollection - def initialize(parent) - super(parent, 'public_gateways', child_class: PublicGateway) - end - end - - # A single PublicGateway - class PublicGateway < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/regions.rb b/lib/ibm/cloud/sdk/vpc/regions.rb deleted file mode 100644 index 5f8f5b5a..00000000 --- a/lib/ibm/cloud/sdk/vpc/regions.rb +++ /dev/null @@ -1,35 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # Work with VPC reqions - class Regions < VPCCollection - def initialize(parent) - super(parent, 'regions', child_class: Region) - end - end - - # Work with a single region - class Region < VPCInstance - def zones - Zones.new(self) - end - end - - # Zones are included within a region. - class Zones < VPCCollection - def initialize(parent) - super(parent, 'zones', child_class: Zone) - end - end - - # A single zone. - class Zone < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/security_groups.rb b/lib/ibm/cloud/sdk/vpc/security_groups.rb deleted file mode 100644 index 40c7add3..00000000 --- a/lib/ibm/cloud/sdk/vpc/security_groups.rb +++ /dev/null @@ -1,48 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # Work with VPC reqions - class SecurityGroups < VPCCollection - def initialize(parent) - super(parent, 'security_groups', child_class: SecurityGroup) - end - end - - # Work with VPC reqions - class SecurityGroup < VPCInstance - def network_interfaces - SECURITYGROUP::NetworkInterfaces.new(self) - end - end - - module SECURITYGROUP - # Work with interfaces associated with parent group. - class NetworkInterfaces < VPCCollection - def initialize(parent) - super(parent, 'network_interfaces', child_class: NetworkInterface) - end - end - - # Work with a single rule. - class NetworkInterface < VPCInstance - end - - # Work with rules associated with parent group. - class Rules < VPCCollection - def initialize(parent) - super(parent, 'rules', child_class: Rule) - end - end - - # Work with a single rule. - class Rule < VPCInstance - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/subnets.rb b/lib/ibm/cloud/sdk/vpc/subnets.rb deleted file mode 100644 index 0a88481e..00000000 --- a/lib/ibm/cloud/sdk/vpc/subnets.rb +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of submetes - class Subnets < VPCCollection - def initialize(parent) - super(parent, 'subnets', child_class: Subnet) - end - end - - # A single subnet - class Subnet < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/volume_profiles.rb b/lib/ibm/cloud/sdk/vpc/volume_profiles.rb deleted file mode 100644 index 68905590..00000000 --- a/lib/ibm/cloud/sdk/vpc/volume_profiles.rb +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # Work with Volume Profiles. - class VolumeProfiles < VPCCollection - def initialize(parent) - super(parent, 'volume/profiles', child_class: VolumeProfile, array_key: 'profiles') - end - end - - # Work with a single volume profile. - class VolumeProfile < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/volumes.rb b/lib/ibm/cloud/sdk/vpc/volumes.rb deleted file mode 100644 index c17d4cec..00000000 --- a/lib/ibm/cloud/sdk/vpc/volumes.rb +++ /dev/null @@ -1,21 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # Work with a collection of volumes. - class Volumes < VPCCollection - def initialize(parent) - super(parent, 'volumes', child_class: Volume) - end - end - - # Work with a single volume. - class Volume < VPCInstance - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/vpcs.rb b/lib/ibm/cloud/sdk/vpc/vpcs.rb deleted file mode 100644 index 45b10718..00000000 --- a/lib/ibm/cloud/sdk/vpc/vpcs.rb +++ /dev/null @@ -1,60 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of Vpc - class Vpcs < VPCCollection - def initialize(parent) - super(parent, 'vpcs', child_class: VpcInstance) - end - end - - # A single Vpc - class VpcInstance < VPCInstance - def default_network_acl - get('default_network_acl') - end - - def default_security_group - get('default_security_group') - end - - def address_prefixes - VPCS::AddressPrefixes.new(self) - end - - def routes - VPCS::Routes.new(self) - end - end - - module VPCS - # A list of Vpc - class AddressPrefixes < VPCCollection - def initialize(parent) - super(parent, 'address_prefixes', child_class: AddressPrefix) - end - end - - # A single Vpc - class AddressPrefix < VPCInstance - end - - # A list of Vpc - class Routes < VPCCollection - def initialize(parent) - super(parent, 'routes', child_class: Route) - end - end - - # A single Vpc - class Route < VPCInstance - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/vpn_gateway/connections.rb b/lib/ibm/cloud/sdk/vpc/vpn_gateway/connections.rb deleted file mode 100644 index 642ce2ab..00000000 --- a/lib/ibm/cloud/sdk/vpc/vpn_gateway/connections.rb +++ /dev/null @@ -1,35 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative('local_cidrs') -require_relative('peer_cidrs') - -module IBM - module Cloud - module SDK - module VPC - module VPNGATEWAY - # A list of Connection - class Connections < VPCCollection - def initialize(parent) - @array_key = 'connections' - @instance = Connection - super(parent, @array_key) - end - end - - # A single Connection - class Connection < VPCInstance - def local_cidrs - LocalCIDRs.new(self) - end - - def peer_cidrs - PeerCIDRs.new(self) - end - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/vpn_gateway/local_cidrs.rb b/lib/ibm/cloud/sdk/vpc/vpn_gateway/local_cidrs.rb deleted file mode 100644 index 7fdfd838..00000000 --- a/lib/ibm/cloud/sdk/vpc/vpn_gateway/local_cidrs.rb +++ /dev/null @@ -1,32 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - module VPNGATEWAY - # A list of Connection - class LocalCIDRs < VPCCollection - def initialize(parent) - @array_key = 'local_cidrs' - @instance = Connection - super(parent, @array_key) - end - - def instance(cidr_prefix, prefix_length) - super(self, "#{cidr_prefix}/#{prefix_length}") - end - end - - # A single Connection - class LocalCIDR < VPCInstance - def update(payload) - put(payload: payload) - end - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/vpn_gateway/peer_cidrs.rb b/lib/ibm/cloud/sdk/vpc/vpn_gateway/peer_cidrs.rb deleted file mode 100644 index 62190630..00000000 --- a/lib/ibm/cloud/sdk/vpc/vpn_gateway/peer_cidrs.rb +++ /dev/null @@ -1,32 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - module VPNGATEWAY - # A list of Connection - class PeerCIDRs < VPCCollection - def initialize(parent) - @array_key = 'peer_cidrs' - @instance = Connection - super(parent, @array_key) - end - - def instance(cidr_prefix, prefix_length) - super(self, "#{cidr_prefix}/#{prefix_length}") - end - end - - # A single Connection - class PeerCIDR < VPCInstance - def update(payload) - put(payload: payload) - end - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk/vpc/vpn_gateways.rb b/lib/ibm/cloud/sdk/vpc/vpn_gateways.rb deleted file mode 100644 index 29fd939e..00000000 --- a/lib/ibm/cloud/sdk/vpc/vpn_gateways.rb +++ /dev/null @@ -1,25 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDK - module VPC - # A list of VPNGateway - class VPNGateways < VPCCollection - def initialize(parent) - super(parent, 'vpn_gateways', child_class: VPNGateway) - end - end - - # A single VPNGateway - class VPNGateway < VPCInstance - # Get a lisst of connections asssociated with this gateway. - def connections - VPNGATEWAY::Connections.new(self) - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk_http.rb b/lib/ibm/cloud/sdk_http.rb deleted file mode 100644 index d0a69973..00000000 --- a/lib/ibm/cloud/sdk_http.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -require_relative 'sdk_http/connection' -require_relative 'sdk_http/exceptions' -require_relative 'sdk_http/base_collection' -require_relative 'sdk_http/base_instance' -require_relative 'sdk_http/sdk_response' -require_relative 'sdk_http/iam_token' - -module IBM - module Cloud - # Module holds basic HTTP functionality. - module SDKHTTP - end - end -end diff --git a/lib/ibm/cloud/sdk_http/base_collection.rb b/lib/ibm/cloud/sdk_http/base_collection.rb deleted file mode 100644 index 074729d9..00000000 --- a/lib/ibm/cloud/sdk_http/base_collection.rb +++ /dev/null @@ -1,121 +0,0 @@ -# typed: true -# frozen_string_literal: true - -require_relative 'base_http_mixin' -require_relative 'has_child' - -module IBM - module Cloud - module SDKHTTP - # Container that encapsulates the VPC API. - # This class is used as a base for collection APIs. - # @param parent [Object] The parent instance in the API chain. - # @param endpoint [string] A path from the parent to the desired endpoint. In most cases is should be 1 word. - # @param array_key [string] The key that the API response holds the endpoint data. When nil the endpoint will be used. - # @param child_class [Object] The Object to be used when instanciating the single instance for this class. - class BaseCollection - include BaseHTTPMixin - - def initialize(parent, endpoint, array_key: nil, child_class: nil, child_id: 'id') - # Setup empty base instance variables. - @params = {} - @token = parent.token - array_key ||= endpoint - - # Set the array key and child class. - @array_key ||= array_key - - @instance ||= child_class - @instance_id ||= child_id - - @connection = parent.connection - - (class << self; include ChildMixin; end) if child_class - - @endpoint = parent.url(endpoint) - @logger = parent.logger - end - - attr_reader :logger, :endpoint, :token, :connection - - # In a Child base class add the possible query parameters for the API and return self to make it chainable. - # When implemented usage would be Collection.params(limit: 2).get - # @return [BaseCollection] The instanticated class. - def params(limit: nil) - raise NotImplementedError('Sample only. The params method needs to be customized in child class.') - # rubocop:disable Lint/UnreachableCode - @params[:limit] = limit if limit - self - # rubocop:enable Lint/UnreachableCode - end - - def reset_params - @params.clear - end - - # Retrieve the collection from the cloud. - # @return [IBM::Cloud::SDK::VPC::Response] The http response object. - def fetch - @data ||= get - end - - # Get an iterable for the resource collection. - # @return [Enumerator] Use standard each, next idioms. - def all - each_resource(url) - end - - # Fetch all data and return in an array. - # @return [Array] Hashes of the returned data. - def data - all.to_a - end - - # A generic post method to create a resource on the collection. - # @param payload [Hash] A hash of parameters to send to the server. - # @param payload_type [String] One of the following options json, form, or body. - # @return [IBM::Cloud::SDK::VPC::Response] The http response object. - def create(payload, payload_type = 'json') - adhoc(method: 'post', payload_type: payload_type, payload: payload) - end - - private - - # Return a wrapped instance if set. - # @param value [Hash] The hash returned from server. - def hash_instance(value) - return @instance.new(self, data: value, id_key: @instance_id) if @instance - - value - end - - # Create a generator that removes the need for pagination. - # @param url [String] Full URL to send to server. - # @return [Enumerator] Object to page through results. - # @yield [BaseInstance] An instance of the instance class. - # @yield [Hash] When no BaseInstance set. - def each_resource(url, &block) - raise NotImplementedError('Sample only. The each_resource method needs to be customized in child class.') - # rubocop:disable Lint/UnreachableCode - # Sample implementation based on VPC. - return enum_for(:each_resource, url) unless block_given? - return unless url - - response = get(path: url) - resources = response.fetch(@array_key.to_sym) - - resources&.each { |value| yield hash_instance(value) } - # VPC has a next key that holds the next URL. - return unless response.key?(:next) - - # The next data structure is a hash with a href member. - next_url = response.dig(:next, :href) - return unless next_url - - each_resource(next_url, &block) - # rubocop:enable Lint/UnreachableCode - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk_http/base_http_mixin.rb b/lib/ibm/cloud/sdk_http/base_http_mixin.rb deleted file mode 100644 index c2ccc86f..00000000 --- a/lib/ibm/cloud/sdk_http/base_http_mixin.rb +++ /dev/null @@ -1,120 +0,0 @@ -# frozen_string_literal: true - -require_relative 'sdk_response' - -module IBM - module Cloud - # Module holds basic HTTP functionality. - module SDKHTTP - # Generic methods for accessing VPC. - module BaseHTTPMixin - @connection = nil - - # Run a custom query and verify response is 2xx or 404. - # @param method [String] The HTTP method to use. - # @param path [String] The relative path from the current object location. - # @param params [Hash] A hash of query parameters. - # @param payload [Hash] A hash to send as the body. - # @param payload_type [Hash] If json then convert to json string, else send as form data. - # @return [SDKResponse] - # @raise [Exceptions::HttpStatusError] Raise if status checks failed. - def adhoc(method: 'get', path: nil, params: nil, payload: nil, payload_type: 'json') - unchecked_response(method: method, path: path, params: params, payload: payload, payload_type: payload_type).raise_for_status! - end - - # Run a custom query do not verify the response. - # @param method [String] The HTTP method to use. - # @param path [String] The relative path from the current object location. - # @param params [Hash] A hash of query parameters. - # @param payload [Hash] A hash to send as the body. - # @param payload_type [Hash] If json then convert to json string, else send as form data. - def unchecked_response(method: 'get', path: nil, params: nil, payload: nil, payload_type: 'json') - @connection.request(method.to_sym, url(path), metadata(params, payload, payload_type)) - end - - attr_reader :endpoint - - # Perform a GET request and verify response is 2xx or 404. - # @param path [String] The relative path from the current object location. - # @param params [Hash] A hash of query parameters. - # @return [SDKResponse] - # @raise [Exceptions::HttpStatusError] Raise if status checks failed. - def get(path: nil, params: nil) - adhoc(method: 'get', path: path, params: params) - end - - # Send a POST request and verify response is 2xx or 404. - # @param path [String] The relative path from the current object location. - # @param params [Hash] A hash of query parameters. - # @param payload [Hash] A hash to send as the body. - # @param payload_type [Hash] If json then convert to json string, else send as form data. - # @raise [Exceptions::HttpStatusError] Raise if status checks failed. - # @return [SDKResponse] - def post(payload: nil, path: nil, params: nil, payload_type: 'json') - adhoc(method: 'post', path: path, params: params, payload: payload, payload_type: payload_type) - end - - # Send a PUT request and verify response is 2xx or 404. - # @param path [String] The relative path from the current object location. - # @param params [Hash] A hash of query parameters. - # @param payload [Hash] A hash to send as the body. - # @param payload_type [Hash] If json then convert to json string, else send as form data. - # @raise [Exceptions::HttpStatusError] Raise if status checks failed. - # @return [SDKResponse] - def put(payload: nil, path: nil, params: nil, payload_type: 'json') - adhoc(method: 'put', path: path, params: params, payload: payload, payload_type: payload_type) - end - - # Send a PATCH request and verify response is 2xx or 404. - # @param path [String] The relative path from the current object location. - # @param params [Hash] A hash of query parameters. - # @param payload [Hash] A hash to send as the body. - # @param payload_type [Hash] If json then convert to json string, else send as form data. - # @raise [Exceptions::HttpStatusError] Raise if status checks failed. - # @return [SDKResponse] - def patch(payload: nil, path: nil, params: nil, payload_type: 'json') - adhoc(method: 'patch', path: path, params: params, payload: payload, payload_type: payload_type) - end - - # Send a DELETE request and verify response is 2xx or 404. - # @param path [String] The relative path from the current object location. - # @param params [Hash] A hash of query parameters. - # @raise [Exceptions::HttpStatusError] Raise if status checks failed. - # @return [SDKResponse] - def delete(path: nil, params: nil) - adhoc(method: 'delete', path: path, params: params) - end - - # Preprocess request parameters with any additional data. - # @param query [Hash] A hash of query parameters. - # @param payload [Hash] A hash to send as the body. - # @param payload_type [Hash] If json then convert to json string, else send as form data. - # @return [Hash] - def metadata(query = nil, payload = nil, payload_type = 'json') - @params ||= {} - @params.merge!(query) if query - - send_parameters = { - query: @params, - headers: { "Authorization": @token.authorization_header } - } - - # Add payload if it is not nil. - if payload && payload.empty? == false - payload = payload.to_json if payload_type == 'json' - send_parameters[:body] = payload - end - send_parameters - end - - # Merge path with current class's endpoint. - def url(path = nil) - return endpoint unless path - return path if URI.parse(path).relative? == false - - "#{endpoint}/#{path}" - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk_http/base_instance.rb b/lib/ibm/cloud/sdk_http/base_instance.rb deleted file mode 100644 index dc7e999b..00000000 --- a/lib/ibm/cloud/sdk_http/base_instance.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -require 'forwardable' - -require_relative 'base_http_mixin' - -module IBM - module Cloud - # Module holds basic HTTP functionality. - module SDKHTTP - # Container that encapsulates the VPC API. - class BaseInstance - include BaseHTTPMixin - - def initialize(parent, data: {}, id_key: 'id', endpoint: nil) - @data = data - - endpoint ||= data[id_key.to_sym] - @connection = parent.connection - @token = parent.token - @endpoint = parent.url(endpoint) - @logger = parent.logger - end - - attr_reader :logger, :endpoint, :token, :connection - - # Fetch the instance details for this resource. - # @return [SDKResponse] The HTTP response object. - def details - get.hash_response - end - - # Fetch the instance details from the server. Clear current data and save the results. - # @return [BaseInstance] This instance for chaining. - def refresh - @data.replace(details) - self - end - - # Send an update to the server for this resource. - def update(payload) - patch(payload: payload) - end - - # Send a delete request to the server for this resource. - def remove - delete - end - - extend Forwardable - def_delegators :@data, :[], :dig, :each, :each_pair, :fetch, :has_key?, :has_value?, :include?, :index, :inspect, :key?, :keys, :length, :merge, :merge!, :clear, :to_h, :value?, :values, :pretty_print - end - end - end -end diff --git a/lib/ibm/cloud/sdk_http/connection.rb b/lib/ibm/cloud/sdk_http/connection.rb deleted file mode 100644 index d5db9a7a..00000000 --- a/lib/ibm/cloud/sdk_http/connection.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -require 'httparty' -require_relative 'sdk_response' - -module IBM - module Cloud - module SDKHTTP - # Class to wrap the HTTP Provider implementation. - class HTTPConnection - include HTTParty - - def initialize(logger) - @logger = logger - self.class.logger(logger, :debug, :apache) - end - - # Set the logger type to curl which has more information. - def verbose_logger=(verbosity) - default_options[:log_format] = verbosity ? :curl : :apache - end - - def default_options - self.class.default_options - end - - def add_proxy(host, port, user, password) - self.class.http_proxy(host, port, user, password) - end - - def request(method, path, params) - response = self.class.send(method.to_sym, path, params) - SDKResponse.new(response) - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk_http/exceptions.rb b/lib/ibm/cloud/sdk_http/exceptions.rb deleted file mode 100644 index f4658db0..00000000 --- a/lib/ibm/cloud/sdk_http/exceptions.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -module IBM - module Cloud - module SDKHTTP - # Module to contain all custom exception classes. - module Exceptions - # An exception for http with a response attribute. - # @param msg [String] A human readable message. - # @param response [IBM::Cloud::SDK::VPC::Response] The original response object. - class ExceptionWithResponse < RuntimeError - def initialize(msg, response) - @response = response - super(msg) - end - # @return [IBM::Cloud::SDK::VPC::Response] The response - attr_reader :response - end - - # An exception for http status errors with a response attribute. - # @param response [IBM::Cloud::SDK::VPC::Response] The original response object. - class HttpStatusError < ExceptionWithResponse - def initialize(response) - msg = "Invalid status #{response.code} for url \"#{response.url}\", #{response.reason}. #{response.body}" - super(msg, response) - end - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk_http/has_child.rb b/lib/ibm/cloud/sdk_http/has_child.rb deleted file mode 100644 index e8310e32..00000000 --- a/lib/ibm/cloud/sdk_http/has_child.rb +++ /dev/null @@ -1,23 +0,0 @@ -# typed: true -# frozen_string_literal: true - -module IBM - module Cloud - module SDKHTTP - # Access a specific instance by either id or name depending on API. - module ChildMixin - # Get an instance of the collection object. - # @param id [String] ID of Name to search on depending on API. - # @return [] The instance object. - def instance(id) - @instance.new(self, endpoint: id).refresh - end - - # Return the first_instance returned from a collection get. - def first_instance - params(limit: 1).all.first - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk_http/iam_token.rb b/lib/ibm/cloud/sdk_http/iam_token.rb deleted file mode 100644 index 55f7a4f3..00000000 --- a/lib/ibm/cloud/sdk_http/iam_token.rb +++ /dev/null @@ -1,53 +0,0 @@ -# frozen_string_literal: true - -module IBM - module Cloud - # Module holds basic HTTP functionality. - module SDKHTTP - # Used to authenticate with IAM. - class IAMToken - include BaseHTTPMixin - - def initialize(api_key, connection, logger: nil) - @api_key = api_key - @logger = logger - @connection = connection - @response = nil - @data = nil - end - - attr_reader :response, :connection - - def fetch - payload = { - body: { - grant_type: 'urn:ibm:params:oauth:grant-type:apikey', - apikey: @api_key - } - } - @response = @connection.request('post', 'https://iam.cloud.ibm.com/identity/token', payload) - end - - def data - fetch unless @response - @response.raise_for_status!.json - end - - # Check to see if the access_token is expired. Fetch a new token if none exists. - # @return [IBM::Cloud::SDK::VPC::Response] Wrapped response to query. - # @raise [IBM::Cloud::SDK::VPC::Exceptions::HttpStatusError] Response code is not either in 200-series or 404. - def expired? - data.fetch(:expiration, 0).to_i <= Time.now.to_i + 600 - end - - # Get a Bearer token string. Before returning check to see if token is expired. - # @return [String] The Bearer token header used in subsequent requests. - # @raise [IBM::Cloud::SDK::VPC::Exceptions::HttpStatusError] Response code is not either in 200-series or 404. - def authorization_header - fetch if expired? - "#{data.fetch(:token_type)} #{data.fetch(:access_token)}" - end - end - end - end -end diff --git a/lib/ibm/cloud/sdk_http/sdk_response.rb b/lib/ibm/cloud/sdk_http/sdk_response.rb deleted file mode 100644 index 67d485cd..00000000 --- a/lib/ibm/cloud/sdk_http/sdk_response.rb +++ /dev/null @@ -1,132 +0,0 @@ -# frozen_string_literal: true - -require 'json' - -module IBM - module Cloud - # Module holds basic HTTP functionality. - module SDKHTTP - # Encapsulate the HTTP response. - # @param response [HTTP::Response] The HTTP response object. - class SDKResponse - def initialize(response) - @response = response - end - - # The raw HTTP response. - # @return [HTTP::Response] - attr_reader :response - - # Return the response in a hash or array. - # @return [Hash] When response is a hash. - # @return [Array] When response is an array. - # @raise [Exceptions::ExceptionWithResponse] Contents of body is not properly formatted json. - def json - JSON.parse(body, symbolize_names: true) - rescue StandardError - raise Exceptions::ExceptionWithResponse.new("#{url} Error while parsing response body. #{response.body}", self) - end - - # Return the raw response string. - # @return [String] - # @return [nil] Response does not have body method. - def body - response&.body.to_s - end - - # Return the response code. - # @return [Integer] Response has code method. - # @return [nil] Response does not have code method. - def code - response&.code - end - - alias status code - - # Return the raw connection object. - # @return [HTTP::Connection] - # @return [nil] Response does not have a connection method. - def connection - response&.request - end - - # Chainable method to verify the status code. Raise an exception for non 200-series or 404 status codes. - # @return [Response] Allows for method to be chainable. - # @raise [Exceptions::HttpStatusError] Raise if status checks failed. - def raise_for_status! - return self if (200..299).include?(code) - return self if code == 404 - - raise Exceptions::HttpStatusError.new(self) - end - - # Return the content type of the response. - # @return [String] The mimetype of the response. - # @return [nil] Response does not have response method that responds to mime_type. - def content_type - response&.response&.content_type - end - - # Return the textual reason. - # @return [String] HTTP Reason - # @return [nil] Response does not have reaspn method that responds. - def reason - response&.response&.msg - end - - # Return the sent url as a string. - # @return [String] Full URL sent - # @return [nil] Response does not have response method that responds to mime_type. - def url - uri.to_s - end - - # Return the sent url as a URI class. - # @see https://github.com/httprb/http/blob/master/lib/http/uri.rb URI Class doc. - # @return [HTTP::URI] - # @return [nil] Response does not have response method that responds to mime_type. - def uri - connection&.uri - end - - # Verify that the json response is a hash. - # @return [Hash] Response from JSON - # @raise [RuntimeError] JSON object is not a Hash. - def hash_response - check_object(Hash) - end - - # Verify that the json response is an array. - # @return [Array] Response from JSON - # @raise [RuntimeError] JSON object is not a Array. - def array_response - check_object(Array) - end - - # Find a subkey within the returned response. - # @param key [String] Name of a first level key. - # @return [Any] Response from JSON - # @raise [RuntimeError] JSON object is not a Array. - def subkey(key) - ret = hash_response - sym_key = key.to_sym - return ret.fetch(sym_key) if ret.key?(sym_key) - - msg = "Key #{key} not found in #{ret}." - raise Exceptions::ExceptionWithResponse.new(msg, self) - end - - # Check to see if the returned object is the expected object. - # @param obj [Object] The object to test the response against. - # @raise [Exceptions::ExceptionWithResponse] Parsed JSON is not the expecte class. - def check_object(obj) - ret = json - return ret if ret.instance_of?(obj) - - msg = "Expected #{obj} in response for #{url}. The returned object is a #{ret.class}." - raise Exceptions::ExceptionWithResponse.new(msg, self) - end - end - end - end -end diff --git a/lib/ibm/cloud_sdk.rb b/lib/ibm/cloud_sdk.rb deleted file mode 100644 index 8524c6c7..00000000 --- a/lib/ibm/cloud_sdk.rb +++ /dev/null @@ -1,39 +0,0 @@ -# frozen_string_literal: true - -require 'httparty' - -require_relative 'cloud/sdk_http' -require_relative 'cloud/sdk/vpc' -require_relative 'cloud/sdk/tags' - -module IBM - # Holds the SDK pieces. - class CloudSDK - def initialize(api_key, logger: nil) - @logger = logger || Logger.new($stdout, level: :warn) - @connection = IBM::Cloud::SDKHTTP::HTTPConnection.new(@logger) - @token = IBM::Cloud::SDKHTTP::IAMToken.new(api_key, @connection, logger: @logger) - end - - attr_reader :logger, :token, :connection - - # Add a proxy to the configuration. - # @param uri [URI::Generic] A URI object with proxy configuration. - def add_proxy(uri) - raise "URI #{uri} is not set properly. Requires a full url, and optional user & password" if uri.relative? - - path = "#{uri.scheme}://#{uri.hostname}" - @connection.class.http_proxy(path, uri.port, uri.user, uri.password) - end - - def tags - @tags ||= IBM::Cloud::SDK::Tags.new(@connection, @token, logger: @logger) - end - - # Get an instance of the VPC API. - # @param region [String] The region to use for the VPC connection. - def vpc(region = 'us-east') - @vpc ||= IBM::Cloud::SDK::Vpc.new(region, @connection, @token, logger: @logger) - end - end -end diff --git a/lib/ibm_cloud.rb b/lib/ibm_cloud.rb new file mode 100644 index 00000000..e5625605 --- /dev/null +++ b/lib/ibm_cloud.rb @@ -0,0 +1,9 @@ +require "ibm_cloud/version" +require "ibm_cloud_sdk_core" + +module IbmCloud + ApiException = IBMCloudSdkCore::ApiException + DetailedResponse = IBMCloudSdkCore::DetailedResponse + + require_relative "./ibm_cloud/common.rb" +end diff --git a/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/common.rb b/lib/ibm_cloud/common.rb similarity index 80% rename from gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/common.rb rename to lib/ibm_cloud/common.rb index 35bf9959..13fc6a20 100644 --- a/gems/ibm_cloud_global_tagging/lib/ibm_cloud_global_tagging/common.rb +++ b/lib/ibm_cloud/common.rb @@ -2,14 +2,14 @@ require_relative "./version.rb" -module IbmCloudGlobalTagging +module IbmCloud # SDK Common class class Common def initialize(*); end def get_sdk_headers(service_name, service_version, operation_id) headers = {} - user_agent_string = "ibm_cloud_global_tagging-ruby-sdk-" + IbmCloudGlobalTagging::VERSION + " #{RbConfig::CONFIG["host"]}" + user_agent_string = "ibm_cloud-ruby-sdk-" + IbmCloud::VERSION + " #{RbConfig::CONFIG["host"]}" user_agent_string += " #{RbConfig::CONFIG["RUBY_BASE_NAME"]}-#{RbConfig::CONFIG["RUBY_PROGRAM_VERSION"]}" headers["User-Agent"] = user_agent_string diff --git a/gems/ibm_cloud/lib/ibm_cloud/version.rb b/lib/ibm_cloud/version.rb similarity index 100% rename from gems/ibm_cloud/lib/ibm_cloud/version.rb rename to lib/ibm_cloud/version.rb diff --git a/spec/ibm/cloud/sdk/logging_spec.rb b/spec/ibm/cloud/sdk/logging_spec.rb deleted file mode 100644 index 339c2b3e..00000000 --- a/spec/ibm/cloud/sdk/logging_spec.rb +++ /dev/null @@ -1,39 +0,0 @@ -require 'ibm-cloud-sdk' -require 'rspec' - -RSpec.describe 'test ibm-cloud-sdk logging' do - let(:log_output) { StringIO.new } - - before do - IBM::Cloud::SDK.logger = Logger.new(log_output) - end - - after do - IBM::Cloud::SDK.logger = nil - end - - context "IBM::Cloud::SDK.logger" do - it "log to info" do - IBM::Cloud::SDK.logger.info("Hello, IBM Cloud!") - - log_output.rewind - expect(log_output.read).to end_with("Hello, IBM Cloud!\n") - end - end - - context "#logger" do - let(:mock_instance) do - Class.new do - include IBM::Cloud::SDK::Logging - end.new - end - - it "log to info" do - mock_instance.logger.info("Hello, IBM Cloud!") - - log_output.rewind - expect(log_output.read).to end_with("Hello, IBM Cloud!\n") - end - end -end - diff --git a/spec/ibm/cloud/sdk/tags_spec.rb b/spec/ibm/cloud/sdk/tags_spec.rb deleted file mode 100644 index fef686cb..00000000 --- a/spec/ibm/cloud/sdk/tags_spec.rb +++ /dev/null @@ -1,59 +0,0 @@ -# frozen_string_literal: true - -require 'ibm-cloud-sdk' -require_relative 'vpc_vcr' - -RSpec.describe IBM::Cloud::SDK::Tags, vcr: { tag: :require_2xx } do - let(:tags) { VCR.use_cassette('IBM_CLoud_SDK_Tags/tags', { tags: %i[require_2xx token_request] }) { IBM::CloudSDK.new(ENV['IBM_CLOUD_APIKEY']).tags } } - - it 'has http methods' do - %i[get post put delete adhoc unchecked_response url].each do |meth| - expect(tags).to respond_to(meth) - end - end - - it 'can get fetch' do - hsh = tags.fetch.json.to_h - %i[total_count offset limit items].each do |k| - expect(hsh.key?(k)).to be true - end - end - - it 'can get all' do - t = tags - expect(t.all.to_a.length).to eq(t.total_count) - end - - it 'can set parameters' do - t = tags - prm = { - account_id: 'aadddccd', - tag_type: 'user', - full_data: true, - providers: 'ghost', - attached_to: 'attached_to', - offset: 1, - limit: 1, - timeout: 'dddd', - order_by_name: 'desc', - attached_only: true - } - t.reset_params - expect(t.instance_variable_get(:@params).length).to eq(0) - - prm.each_pair do |key, value| - expect(t.instance_variable_get(:@params).key?(key)).to be false - t.send(:params, **{ key => value }) - expect(t.instance_variable_get(:@params).key?(key)).to be true - end - t.reset_params - expect(t.instance_variable_get(:@params).length).to eq(0) - end - - it 'instance_of returns empty list when param empty.' do - expect(tags.attached_to(nil)).to be_an_instance_of(Array) - expect(tags.attached_to(nil).empty?).to be true - expect(tags.attached_to('')).to be_an_instance_of(Array) - expect(tags.attached_to('').empty?).to be true - end -end diff --git a/spec/ibm/cloud/sdk/vpc/instance_spec.rb b/spec/ibm/cloud/sdk/vpc/instance_spec.rb deleted file mode 100644 index 72356c5e..00000000 --- a/spec/ibm/cloud/sdk/vpc/instance_spec.rb +++ /dev/null @@ -1,94 +0,0 @@ -# frozen_string_literal: true - -require 'ibm-cloud-sdk' -require_relative '../vpc_vcr' - -methods = { - actions: { - class: IBM::Cloud::SDK::VPC::INSTANCE::Actions, - instance_class: IBM::Cloud::SDK::VPC::INSTANCE::Actions, - has_instance: false, - has_count: false - }, - network_interfaces: { - class: IBM::Cloud::SDK::VPC::INSTANCE::NetworkInterfaces, - instance_class: IBM::Cloud::SDK::VPC::INSTANCE::NetworkInterface, - has_instance: true, - has_count: false, - child_classes: { - floating_ips: { - class: IBM::Cloud::SDK::VPC::INSTANCE::FloatingIps, - instance_class: IBM::Cloud::SDK::VPC::INSTANCE::FloatingIp, - has_instance: true, - has_count: false, - } - } - }, - volume_attachments: { - class: IBM::Cloud::SDK::VPC::INSTANCE::VolumeAttachments, - instance_class: IBM::Cloud::SDK::VPC::INSTANCE::VolumeAttachment, - has_instance: true, - has_count: false - } -}.freeze - - -RSpec.shared_examples 'children tests' do |k, v| - it 'can be called' do - expect(child).to be_an_instance_of(v[:class]) - end - - it 'can access fetch' do - res = child.fetch - expect(res.status).to eq(200) - end - - if v[:has_instance] - it 'can call an instance' do - child_instance = child.first_instance - skip 'Child instance ' unless child_instance - expect(child_instance).to be_an_instance_of(v[:instance_class]) - end - else - it 'does not have details' do - expect(child).not_to respond_to(:instance) - end - end - - it 'can get all' do - expect{child.all.to_a}.not_to raise_error - end - - if v[:has_count] - it 'collection has count, returns a number' do - expect(child.count).to be_an_instance_of(Integer) - end - else - it 'collection has no count, returns nil' do - expect(child.count).to be_an_instance_of(NilClass) - end - end -end - -RSpec.describe 'Test vpc_instance API', vcr: { tag: :require_2xx } do # rubocop:disable Metrics/BlockLength - let(:log) { Logger.new($stdout).tap { |l| l.level = Logger::DEBUG } } - let(:vpc) { VCR.use_cassette(token_cassette, { tags: %i[require_2xx token_request] }) { IBM::CloudSDK.new(ENV['IBM_CLOUD_APIKEY']).vpc } } - - it 'can be instantiated' do - expect(vpc.instances.params(limit: 1).all.first).to be_an_instance_of(IBM::Cloud::SDK::VPC::Instance) - end - - methods.each do |k, v| - describe "Test subclass #{k}", :vcr do - let(:child) { vpc.instances.params(limit: 1).all.first.send(k) } - include_examples 'children tests', k, v - end - end - - methods[:network_interfaces][:child_classes].each do |k, v| - describe "Test network_interfaces subclass #{k}", :vcr do - let(:child) { vpc.instances.params(limit: 1).all.first.network_interfaces.params(limit: 1).all.first.send(k) } - include_examples 'children tests', k, v - end - end -end diff --git a/spec/ibm/cloud/sdk/vpc_exception_spec.rb b/spec/ibm/cloud/sdk/vpc_exception_spec.rb deleted file mode 100644 index e8618563..00000000 --- a/spec/ibm/cloud/sdk/vpc_exception_spec.rb +++ /dev/null @@ -1,37 +0,0 @@ -# frozen_string_literal: true - -require 'ibm-cloud-sdk' -require_relative 'vpc_vcr' - -RSpec.describe 'Test vpc response exceptions', :vcr do - let(:log) { Logger.new($stdout).tap { |l| l.level = Logger::DEBUG } } - let(:vpc) { VCR.use_cassette('Test_vpc_API/vpc', { tags: %i[require_2xx token_request] }) { IBM::CloudSDK.new(ENV['IBM_CLOUD_APIKEY']).vpc } } - - it 'throws HttpStatusError on error occurs' do - expect { IBM::CloudSDK.new('asssfafaf').vpc.adhoc }.to raise_error(IBM::Cloud::SDKHTTP::Exceptions::HttpStatusError) - end - - it 'does not throw on 404' do - expect(vpc.adhoc.code).to eq(404) - end - - it 'json method throws ExceptionWithResponse body is not json' do - res = vpc.adhoc - expect { res.json }.to raise_error(IBM::Cloud::SDKHTTP::Exceptions::ExceptionWithResponse) - end - - it 'Exception has response as method' do - vpc.adhoc - rescue IBM::Cloud::SDK::VPC::Exceptions::ExceptionWithResponse => e - expect(e).to respond_to?(:response) - end - - it 'Exception when status is not 2xx' do - expect { vpc.adhoc(path: 'instances', params: { version: 3 }) }.to raise_error(IBM::Cloud::SDKHTTP::Exceptions::HttpStatusError) - end - - it 'No exception when status is 2xx' do - expect(vpc.adhoc(path: 'instances')).to be_an_instance_of(IBM::Cloud::SDKHTTP::SDKResponse) - end - -end diff --git a/spec/ibm/cloud/sdk/vpc_spec.rb b/spec/ibm/cloud/sdk/vpc_spec.rb deleted file mode 100644 index 2b483394..00000000 --- a/spec/ibm/cloud/sdk/vpc_spec.rb +++ /dev/null @@ -1,80 +0,0 @@ -# frozen_string_literal: true - -require 'ibm-cloud-sdk' -require_relative 'vpc_vcr' - -methods = { - floating_ips: IBM::Cloud::SDK::VPC::FloatingIPs, - flowlog_collectors: IBM::Cloud::SDK::VPC::FlowLogCollectors, - ike_policies: IBM::Cloud::SDK::VPC::IKEPolicies, - images: IBM::Cloud::SDK::VPC::Images, - instance_profiles: IBM::Cloud::SDK::VPC::InstanceProfiles, - instances: IBM::Cloud::SDK::VPC::Instances, - ipsec_policies: IBM::Cloud::SDK::VPC::IPSecPolicies, - keys: IBM::Cloud::SDK::VPC::Keys, - load_balancers: IBM::Cloud::SDK::VPC::LoadBalancers, - network_acls: IBM::Cloud::SDK::VPC::NetworkACLs, - operating_systems: IBM::Cloud::SDK::VPC::OperatingSystems, - public_gateways: IBM::Cloud::SDK::VPC::PublicGateways, - regions: IBM::Cloud::SDK::VPC::Regions, - security_groups: IBM::Cloud::SDK::VPC::SecurityGroups, - subnets: IBM::Cloud::SDK::VPC::Subnets, - volumes: IBM::Cloud::SDK::VPC::Volumes, - volumes_profiles: IBM::Cloud::SDK::VPC::VolumeProfiles, - vpcs: IBM::Cloud::SDK::VPC::Vpcs, - vpn_gateways: IBM::Cloud::SDK::VPC::VPNGateways -}.freeze - -RSpec.describe 'Test vpc API', vcr: { tag: :require_2xx } do # rubocop:disable Metrics/BlockLength - let(:log) { Logger.new($stdout).tap { |l| l.level = Logger::DEBUG } } - let(:vpc) { VCR.use_cassette('Test_vpc_API/vpc', { tags: %i[require_2xx token_request] }) { IBM::CloudSDK.new(ENV['IBM_CLOUD_APIKEY']).vpc } } - - it 'can be instantiated' do - expect(vpc).to be_an_instance_of(IBM::Cloud::SDK::Vpc) - end - - it 'region can be changed' do - old_endpoint = vpc.endpoint - expect(vpc.endpoint).to eq(old_endpoint) - new_region = 'us-south' - vpc.region = new_region - expect(vpc.region).to eq(new_region) - # TODO: Find new_region from within string. - expect(vpc.endpoint).not_to eq(old_endpoint) - end - - methods.each do |k, v| - it "#{k} can be called" do - child = vpc.send(k) - expect(child).to be_an_instance_of(v) - end - end - - methods.each do |k, _v| - describe "#{k} vpc API", vcr: { tags: %I[require_2xx VPC_#{k}] } do - @has_count = false - let(:child) { vpc.send(k) } - - it 'can access fetch' do - res = child.fetch - expect(res.status).to eq(200) - end - - it 'can access has_count?' do - child.has_count? - end - - it 'can get all' do - expect(child.all.to_a.length).to eq(child.count) if child.has_count? - end - - it 'can get an instance' do - child.all.first(1) do |value| - id = value.fetch(:id) - data = child.instance(id).details if id - expect(data).to be_an_instance_of(Hash) - end - end - end - end -end diff --git a/spec/ibm/cloud/sdk/vpc_vcr.rb b/spec/ibm/cloud/sdk/vpc_vcr.rb deleted file mode 100644 index eea45acf..00000000 --- a/spec/ibm/cloud/sdk/vpc_vcr.rb +++ /dev/null @@ -1,81 +0,0 @@ -# frozen_string_literal: true - -require 'ibm-cloud-sdk' -require 'vcr' -require 'webmock/rspec' - -ENV['IBM_CLOUD_APIKEY'] = 'API_KEY' unless ENV['IBM_CLOUD_APIKEY'] - -# Set the save location of IAM token response. -# @note Uses 'IBM_CLOUD_TOKEN' environment variable to set location. -# -# We do not want to save the access token to git, but it is required for subsequent REST API calls. -# To combat this problem an environment variable can be set to offline. This will retrieve the token and write it to a 'iam_token' file. -# Once the entire test has been recorded we can delete this file can be deleted and the saved token file will be used in its stead. -# @return [String] The token save location for this test run. -def token_cassette - return 'iam_token' if ENV['IBM_CLOUD_DISABLE_TOKEN'] == 'true' - - 'Test_vpc_API/vpc' -end -# Iterate through the SSH keys and replace all values. -# Being very careful with this one as fixing a data leak would be costly. -def replace_ssh_keys(response) - data = JSON.parse(response.body, symbolize_names: true) - raise 'The keys key is not found in the json response.' unless data.key?(:keys) - - keys = { fingerprint: 'SHA256:xxxxxxx', public_key: 'RSA: VVVVVV' } - data.fetch(:keys).each_with_index do |v, i| - v.merge!(keys) - v[:name] = "random_key_#{i}" - end - response.body = data.to_json.force_encoding('ASCII-8BIT') -end - -def replace_token_contents(response) - data = JSON.parse(response.body, symbolize_names: true) - data.merge!({ access_token: 'aaaa', refresh_token: '11111', ims_user_id: '22222', expiration: 1893456000 }) - response.body = data.to_json.force_encoding('ASCII-8BIT') -end - -VCR.configure do |c| - c.cassette_library_dir = 'spec/vcr' - c.hook_into :webmock - c.define_cassette_placeholder('API_KEY') { ENV['IBM_CLOUD_APIKEY'] } - # If IBM_CLOUD_DISABLE_VCR is in your env then all recordings will be ignored. - c.ignore_request { ENV['IBM_CLOUD_DISABLE_VCR'] } - c.allow_http_connections_when_no_cassette = false - c.configure_rspec_metadata! - - # Default Before every recording. - c.before_record do |interaction| - # Mask bearer token in recorded file. - interaction.request.headers['Authorization'] = 'Bearer xxxxxx' if interaction.request.headers.key?('Authorization') - # Replace IP V4 Addresses - interaction.response.body.gsub!(/([0-9]{1,3}\.){3}/, '127.0.0.') - replace_token_contents(interaction.response) if interaction.request.uri.match?('identity/token') - end - - # If a VCR is tagged with require_2xx then it will only save the VCR if it is a valid 200 response. - c.before_record(:require_2xx) do |interaction| - # Don't save results if results are not in 200-series. - interaction.ignore! unless (200..299).include?(interaction.response.status.code) - end - - c.before_record(:token_request) do |interaction| - replace_token_contents(interaction.response) - rescue => e # rubocop:disable Style/RescueStandardError # Don't know what errors are here so catch them all. - # If there is an exception during fetching we don't want to save the results. - puts("Exception raised during fetching of token #{e}") - interaction.ignore! - end - - # Filter the VPC /vi/keys response. - c.before_record(:VPC_keys) do |interaction| - replace_ssh_keys(interaction.response) unless interaction.request.uri.match?('identity/token') - rescue => e # rubocop:disable Style/RescueStandardError # Don't know what errors are here so catch them all. - # If there is an exception during fetching we don't want to save the results. - puts("Exception raised during fetching of ssh keys #{e}") - interaction.ignore! - end -end diff --git a/spec/ibm/cloud/sdk_spec.rb b/spec/ibm/cloud/sdk_spec.rb deleted file mode 100644 index 39904711..00000000 --- a/spec/ibm/cloud/sdk_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -RSpec.describe IBM::Cloud::SDK do - it "has a version number" do - expect(IBM::Cloud::SDK::VERSION).not_to be nil - end -end diff --git a/spec/ibm/cloud_sdk_spec.rb b/spec/ibm/cloud_sdk_spec.rb deleted file mode 100644 index 7c8fab16..00000000 --- a/spec/ibm/cloud_sdk_spec.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -require 'logger' - -require 'ibm-cloud-sdk' -require_relative 'cloud/sdk/vpc_vcr' -# rubocop:disable Metrics/BlockLength - -RSpec.describe IBM::CloudSDK do - let(:sdk) { IBM::CloudSDK.new(ENV['IBM_CLOUD_APIKEY']) } - - it 'can be instanciated' do - expect(sdk).to be_an_instance_of(IBM::CloudSDK) - end - - it 'has a token object' do - expect(sdk.token).to be_an_instance_of(IBM::Cloud::SDKHTTP::IAMToken) - end - - it 'has a logger object and logger is warn' do - expect(sdk.logger).to be_an_instance_of(Logger) - expect(sdk.logger.level).to eq(2) - end - - it 'changing logger level changes http logging level.' do - expect(sdk.logger.level).to eq(2) - expect(sdk.token.connection.default_options[:logger].level).to eq(2) - sdk.logger.level = :debug - expect(sdk.logger.level).to eq(0) - expect(sdk.token.connection.default_options[:logger].level).to eq(0) - end - - it 'can add proxy config' do - url = URI.parse('https://127.0.0.1') - expect(sdk.token.connection.default_options.key?(:http_proxyaddr)).to be_falsey - - sdk.add_proxy(url) - expect(sdk.token.connection.default_options.key?(:http_proxyaddr)).to be_truthy - expect(sdk.vpc.connection.default_options.key?(:http_proxyaddr)).to be_truthy - end - - it 'http config is global' do - token_len = sdk.token.connection.default_options.length - vpc_len = sdk.vpc.connection.default_options.length - expect(token_len).to eq(vpc_len) - end -end - -# rubocop:enable Metrics/BlockLength diff --git a/gems/ibm_cloud_activity_tracker/spec/ibm_cloud_activity_tracker/common_spec.rb b/spec/ibm_cloud/common_spec.rb similarity index 100% rename from gems/ibm_cloud_activity_tracker/spec/ibm_cloud_activity_tracker/common_spec.rb rename to spec/ibm_cloud/common_spec.rb diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cdda6c8c..2d584eac 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,5 @@ require "bundler/setup" -require "ibm/cloud/sdk" +require "ibm_cloud" RSpec.configure do |config| # Enable flags like --only-failures and --next-failure diff --git a/spec/vcr/IBM_Cloud_SDK_Tags/can_get_all.yml b/spec/vcr/IBM_Cloud_SDK_Tags/can_get_all.yml deleted file mode 100644 index 66d69741..00000000 --- a/spec/vcr/IBM_Cloud_SDK_Tags/can_get_all.yml +++ /dev/null @@ -1,674 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2498' - Transaction-Id: - - c90443accb0b480cb0a53ab5145da24c - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Wed, 07 Oct 2020 21:33:02 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=692f2161ec997e6229c77c8e357cfa92; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"refresh_token_expiration":1604698379,"scope":"ibm - openid"}' - recorded_at: Wed, 07 Oct 2020 21:33:02 GMT -- request: - method: get - uri: https://tags.global-search-tagging.cloud.ibm.com/v3/tags - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transaction-Id: - - gst-2e169ccb-773f-4ec0-87be-f547b58f58b3 - X-Global-Transaction-Id: - - gst-2e169ccb-773f-4ec0-87be-f547b58f58b3 - Ghost-Endpoint: - - ibm:yp:us-south:Kubernetes - Ghost-Instance: - - Kubernetes_7c99464848-f5d57 - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"200e-it1qcAIDnop54RNguXAI8/jWeO8" - X-Envoy-Upstream-Service-Time: - - '103' - Server: - - istio-envoy - Vary: - - Accept-Encoding - Date: - - Wed, 07 Oct 2020 21:33:03 GMT - Content-Length: - - '8206' - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"total_count":357,"offset":0,"limit":100,"items":[{"name":"bootie"},{"name":"cam42"},{"name":"cam42onroks311"},{"name":"cam42onroks43"},{"name":"cp4mcm-mcmp"},{"name":"dba"},{"name":"env:cam4201"},{"name":"env:camsvt"},{"name":"env:camsvt-ocp311"},{"name":"env:test - mytag:mytagval"},{"name":"environment: dev"},{"name":"environment: test"},{"name":"ibm-kubernetes-service"},{"name":"job_activity_identifier: - 00571a60-b0e1-11ea-a2d4-679d451ec2a7_1virtualf677d831"},{"name":"job_activity_identifier: - 009f4d60-ab43-11ea-9aa2-4b5cd0f030f2_1virtualf677d831"},{"name":"job_activity_identifier: - 08930030-b9a7-11ea-a33a-d1c18090aa6e_1virtualf677d831"},{"name":"job_activity_identifier: - 0dea49f0-acf3-11ea-b104-31f290444601_1virtualf677d831"},{"name":"job_activity_identifier: - 0defa9e0-b964-11ea-b0c7-992fbb03b5aa_1virtualf677d831"},{"name":"job_activity_identifier: - 0e0cda60-af96-11ea-91aa-49bd2bf8a690_1virtualf677d831"},{"name":"job_activity_identifier: - 0ed2bdf0-a9ad-11ea-a923-8136139bf349_1virtualf677d831"},{"name":"job_activity_identifier: - 0fae7080-b6a9-11ea-a0f8-f74522e909d5_1virtualf677d831"},{"name":"job_activity_identifier: - 10229270-b461-11ea-a104-91ce2749d764_multiplecc5b47a7"},{"name":"job_activity_identifier: - 107be0c0-ad34-11ea-b312-41c7d051d8a4_multiplecc5b47a7"},{"name":"job_activity_identifier: - 110d4210-abc5-11ea-a8c9-6fffb485d7ab_1virtualf677d831"},{"name":"job_activity_identifier: - 1a74d730-b018-11ea-9480-5daa49268a8d_1virtualf677d831"},{"name":"job_activity_identifier: - 1cfbfcb0-b449-11ea-925b-cfd13b81e378_multiplecc5b47a7"},{"name":"job_activity_identifier: - 1e3149f0-b4ad-11ea-8919-8342eeaed20b_1virtualf677d831"},{"name":"job_activity_identifier: - 207682b0-b102-11ea-a7ea-376157a167af_1virtualf677d831"},{"name":"job_activity_identifier: - 20ae7710-ac2a-11ea-b343-9fa221f4849e_1virtualf677d831"},{"name":"job_activity_identifier: - 21778180-b5f0-11ea-8b58-bbd634cc41d7_multiplecc5b47a7"},{"name":"job_activity_identifier: - 25e481b0-b405-11ea-9f5b-25a8a6c6a856_1virtualf677d831"},{"name":"job_activity_identifier: - 272161b0-b72a-11ea-a656-37133234f6a8_1virtualf677d831"},{"name":"job_activity_identifier: - 2762ec80-bb25-11ea-8466-3fbd561e7160_meanstac79ffc96e"},{"name":"job_activity_identifier: - 27ac06f0-b273-11ea-bf24-07739e09a60a_1virtualf677d831"},{"name":"job_activity_identifier: - 284fdd40-b7f3-11ea-865d-f7ceb03151e9_1virtualf677d831"},{"name":"job_activity_identifier: - 29be0090-b4f0-11ea-ba86-f9d989c636ff_1virtualf677d831"},{"name":"job_activity_identifier: - 29c55820-b533-11ea-986d-cbf56f1a8f2f_1virtualf677d831"},{"name":"job_activity_identifier: - 32794040-aea7-11ea-abd7-3be923f7d83d_1virtualf677d831"},{"name":"job_activity_identifier: - 3599b300-b07c-11ea-b132-85b47b0dc0f9_1virtualf677d831"},{"name":"job_activity_identifier: - 3ac1b390-aff6-11ea-a558-85851020ebac_1virtualf677d831"},{"name":"job_activity_identifier: - 4165fdc0-aba8-11ea-9588-5fbf476b98aa_1virtualf677d831"},{"name":"job_activity_identifier: - 433ac9e0-b5d1-11ea-8b58-bbd634cc41d7_1virtualf677d831"},{"name":"job_activity_identifier: - 4524b250-ad3b-11ea-be59-99e55d7674bf_1virtualf677d831"},{"name":"job_activity_identifier: - 4618f8c0-adbc-11ea-b32d-e50fc526a7c0_1virtualf677d831"},{"name":"job_activity_identifier: - 47facd50-b33c-11ea-8be5-d9ba3fbe5389_1virtualf677d831"},{"name":"job_activity_identifier: - 492e91f0-b145-11ea-a321-5b0d88d26cca_1virtualf677d831"},{"name":"job_activity_identifier: - 503b3d50-b89c-11ea-bd12-cb817e5885c7_1virtualf677d831"},{"name":"job_activity_identifier: - 5393c280-b5fc-11ea-82b8-39866704105d_1virtualf677d831"},{"name":"job_activity_identifier: - 555c79f0-ac4b-11ea-9cab-f96eabbd10da_1virtualf677d831"},{"name":"job_activity_identifier: - 56216fd0-b1aa-11ea-bc3b-8515ce05b5bd_1virtualf677d831"},{"name":"job_activity_identifier: - 56a3c8e0-b510-11ea-ba86-f9d989c636ff_multiplecc5b47a7"},{"name":"job_activity_identifier: - 57119360-b985-11ea-a484-5fb8f531ba8b_1virtualf677d831"},{"name":"job_activity_identifier: - 59921670-acd1-11ea-83aa-43a627caf559_1virtualf677d831"},{"name":"job_activity_identifier: - 5c2484f0-aa0f-11ea-b0ff-6d1f8920bb5f_multiplecc5b47a7"},{"name":"job_activity_identifier: - 5cd6ed00-b37b-11ea-b5a0-7f7ddc801765_multiplecc5b47a7"},{"name":"job_activity_identifier: - 5ec00020-b56f-11ea-a7eb-39cfb9d16efe_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - 5fd9c090-b8bc-11ea-8b69-2331a008b2de_1virtualf677d831"},{"name":"job_activity_identifier: - 68c730c0-b83a-11ea-a19f-b59e6efcd59c_1virtualf677d831"},{"name":"job_activity_identifier: - 68e9c0e0-ad9a-11ea-a8b9-f30d9d3f80ac_1virtualf677d831"},{"name":"job_activity_identifier: - 6bbf3d40-ae85-11ea-bb2d-dd803fa1c97a_1virtualf677d831"},{"name":"job_activity_identifier: - 6c733d90-af8e-11ea-8970-9129ac6423ef_multiplecc5b47a7"},{"name":"job_activity_identifier: - 6d023d40-b517-11ea-810b-55d46d31edb8_1virtualf677d831"},{"name":"job_activity_identifier: - 6d99d360-b127-11ea-ac14-e98177a132fc_1virtualf677d831"},{"name":"job_activity_identifier: - 6e485800-b76b-11ea-b733-c347d385b7a4_multiplecc5b47a7"},{"name":"job_activity_identifier: - 6fb1e220-b120-11ea-a7ea-376157a167af_multiplecc5b47a7"},{"name":"job_activity_identifier: - 709b45b0-b039-11ea-9e32-2d8b4cf10672_1virtualf677d831"},{"name":"job_activity_identifier: - 72758bc0-aada-11ea-b8ac-192959056e84_1virtualf677d831"},{"name":"job_activity_identifier: - 76cb96a0-ab62-11ea-a29c-69218d4f116b_1virtualf677d831"},{"name":"job_activity_identifier: - 79ee8560-b682-11ea-bea2-bb46dce46373_1virtualf677d831"},{"name":"job_activity_identifier: - 7a41e2b0-aec5-11ea-abd7-3be923f7d83d_multiplecc5b47a7"},{"name":"job_activity_identifier: - 7e15ae70-adfe-11ea-b585-b732f60c92ae_multiplecc5b47a7"},{"name":"job_activity_identifier: - 7e8d30a0-b1e9-11ea-997d-ab7628551b80_multiplecc5b47a7"},{"name":"job_activity_identifier: - 84491530-ae20-11ea-bb6a-215c9795aae7_1virtualf677d831"},{"name":"job_activity_identifier: - 880864b0-a9ce-11ea-8305-f50b2a74c6f5_1virtualf677d831"},{"name":"job_activity_identifier: - 8d8f9030-b6c5-11ea-8885-693461af270c_1virtualf677d831"},{"name":"job_activity_identifier: - 8defc580-b1cb-11ea-997d-ab7628551b80_1virtualf677d831"},{"name":"job_activity_identifier: - 8e7bbbd0-b63f-11ea-953e-2546174e6fd7_1virtualf677d831"},{"name":"job_activity_identifier: - 8ed1e250-b714-11ea-88ea-0b0893c9c6bb_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - 95239c30-acd2-11ea-b23b-538135d883d3_meanstac79ffc96e"},{"name":"job_activity_identifier: - 9684e190-addd-11ea-b585-b732f60c92ae_1virtualf677d831"},{"name":"job_activity_identifier: - 9e362580-b6a1-11ea-bea2-bb46dce46373_multiplecc5b47a7"},{"name":"job_activity_identifier: - a1165240-b294-11ea-8bf2-839f79b825e2_1virtualf677d831"},{"name":"job_activity_identifier: - a234a210-b74b-11ea-b733-c347d385b7a4_1virtualf677d831"},{"name":"job_activity_identifier: - a2b0caa0-b450-11ea-8b27-dbd1acca2341_1virtualf677d831"},{"name":"job_activity_identifier: - a38a99b0-b9ff-11ea-a17f-8b84e0af5c27_1virtualf677d831"},{"name":"job_activity_identifier: - a59cb560-b7d1-11ea-b4bd-6b3c845157a6_1virtualf677d831"},{"name":"job_activity_identifier: - a62e8e80-b5f7-11ea-ab57-37622f811a5d_1virtualf677d831"},{"name":"job_activity_identifier: - a6668480-b0bf-11ea-9ff2-4974bd83efb3_1virtualf677d831"},{"name":"job_activity_identifier: - a84447f0-aecc-11ea-9ab9-61ae8fc8bf54_1virtualf677d831"},{"name":"job_activity_identifier: - aa67d690-b814-11ea-b225-a3e27fea00ea_1virtualf677d831"},{"name":"job_activity_identifier: - ac852ac0-abff-11ea-b5f5-cb0f448960ef_meanstac79ffc96e"},{"name":"job_activity_identifier: - b00f8cb0-afb2-11ea-aff3-a16884aa59b7_1virtualf677d831"},{"name":"job_activity_identifier: - b1efafe0-b8dd-11ea-b189-7b328750f26a_1virtualf677d831"},{"name":"job_activity_identifier: - b2d182c0-aa97-11ea-8c93-491550becb6c_1virtualf677d831"},{"name":"job_activity_identifier: - b6f7c330-a9ef-11ea-bc92-c9a2eea50073_1virtualf677d831"},{"name":"job_activity_identifier: - b79af380-b902-11ea-81c9-bd7cc68bad11_1virtualf677d831"},{"name":"job_activity_identifier: - b80bdf40-b2d7-11ea-a87f-c9d3fe4cad21_1virtualf677d831"},{"name":"job_activity_identifier: - be0eeb80-aa17-11ea-aa7d-db1cbde594f9_1virtualf677d831"},{"name":"job_activity_identifier: - be6b84d0-ad14-11ea-b312-41c7d051d8a4_1virtualf677d831"},{"name":"job_activity_identifier: - c09e9670-af4e-11ea-9559-af107ab67eef_1virtualf677d831"}]}' - recorded_at: Wed, 07 Oct 2020 21:33:03 GMT -- request: - method: get - uri: https://tags.global-search-tagging.cloud.ibm.com/v3/tags?offset=100 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transaction-Id: - - gst-1d7b31ed-fc30-41bd-aa65-5edc55305493 - X-Global-Transaction-Id: - - gst-1d7b31ed-fc30-41bd-aa65-5edc55305493 - Ghost-Endpoint: - - ibm:yp:us-south:Kubernetes - Ghost-Instance: - - Kubernetes_7c99464848-575rl - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"1716-4X0jjVnTq7QFFMq+L8EZE582zKg" - X-Envoy-Upstream-Service-Time: - - '88' - Server: - - istio-envoy - Vary: - - Accept-Encoding - Date: - - Wed, 07 Oct 2020 21:33:03 GMT - Content-Length: - - '5910' - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"total_count":357,"offset":100,"limit":100,"items":[{"name":"job_activity_identifier: - c1f7f5e0-b857-11ea-a3d5-af8d4ddd7c39_1virtualf677d831"},{"name":"job_activity_identifier: - c23819d0-b920-11ea-b132-ab495e972aec_1virtualf677d831"},{"name":"job_activity_identifier: - c57187a0-aca3-11ea-9f17-1b56cc5a9f6f_multiplecc5b47a7"},{"name":"job_activity_identifier: - c68dd080-ac08-11ea-940a-cfee52c97cdf_1virtualf677d831"},{"name":"job_activity_identifier: - c7aafe20-a988-11ea-bd42-993dfe9df7a5_1virtualf677d831"},{"name":"job_activity_identifier: - caf75a40-b35d-11ea-b5a0-7f7ddc801765_1virtualf677d831"},{"name":"job_activity_identifier: - cc83d6e0-b47f-11ea-a104-91ce2749d764_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - ce7dd970-b05e-11ea-a5c2-cd787ed7c77f_1virtualf677d831"},{"name":"job_activity_identifier: - cf616e60-b77f-11ea-8233-b33b9fd0e92b_1virtualf677d831"},{"name":"job_activity_identifier: - d5cd5d30-b2b2-11ea-8bf2-839f79b825e2_multiplecc5b47a7"},{"name":"job_activity_identifier: - d85f7830-aafb-11ea-b019-a757a20220f8_1virtualf677d831"},{"name":"job_activity_identifier: - db032080-b057-11ea-9e32-2d8b4cf10672_multiplecc5b47a7"},{"name":"job_activity_identifier: - db90f170-b3a0-11ea-8521-bd9d3ffe8db7_1virtualf677d831"},{"name":"job_activity_identifier: - dd9ad890-b5cc-11ea-952e-f3bc588ec659_1virtualf677d831"},{"name":"job_activity_identifier: - e0a471f0-b251-11ea-956a-c329a499dc90_1virtualf677d831"},{"name":"job_activity_identifier: - e3014920-b20e-11ea-9a59-31a9f0198f29_1virtualf677d831"},{"name":"job_activity_identifier: - e42faa30-b7a4-11ea-ac51-612318b2aefd_1virtualf677d831"},{"name":"job_activity_identifier: - e788b720-aae9-11ea-a3e7-a9bf70ba67d4_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - e8068170-b3e3-11ea-9884-f9912837fc02_1virtualf677d831"},{"name":"job_activity_identifier: - e96fc6e0-af2c-11ea-92f6-ef2e75911fbc_1virtualf677d831"},{"name":"job_activity_identifier: - e9ac24b0-b660-11ea-a9f5-35fff4988d25_1virtualf677d831"},{"name":"job_activity_identifier: - e9c0d1a0-af6f-11ea-8970-9129ac6423ef_1virtualf677d831"},{"name":"job_activity_identifier: - eae9ce00-b1f0-11ea-a672-53da7aa7fcd8_1virtualf677d831"},{"name":"job_activity_identifier: - eb051f80-aba0-11ea-9e42-5d59e1af5186_multiplecc5b47a7"},{"name":"job_activity_identifier: - efde5e20-ac6a-11ea-9cab-f96eabbd10da_multiplecc5b47a7"},{"name":"job_activity_identifier: - f7c21a10-aa75-11ea-8354-a199ce603d3c_1virtualf677d831"},{"name":"job_activity_identifier: - f80182b0-ad57-11ea-8563-7be4919d11f6_1virtualf677d831"},{"name":"job_activity_identifier: - f8e7d000-b426-11ea-925b-cfd13b81e378_1virtualf677d831"},{"name":"job_activity_identifier: - fc141590-b2b9-11ea-9d68-03211a7ca9af_1virtualf677d831"},{"name":"job_activity_identifier: - fcff18f0-a991-11ea-87a9-4b8225a65f29_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - fe276e20-b31a-11ea-9c19-b5f4c502d597_1virtualf677d831"},{"name":"name: ibm-vm"},{"name":"name: - ibmcloud-inst1"},{"name":"name: ibmcloudlamp"},{"name":"name: ibmtest"},{"name":"name: - lamp-ibmcloud-001"},{"name":"name: lamp-ibmcloud-inst001"},{"name":"name: - lamp-ibmcloud-inst1"},{"name":"name: lampibm"},{"name":"name: meanibm"},{"name":"name: - test-inst1"},{"name":"name: test4"},{"name":"name: test45"},{"name":"name: - test543"},{"name":"name: test876"},{"name":"name: testaz1"},{"name":"name: - testibmcloud_deploy"},{"name":"name: testic1"},{"name":"name: testinst67"},{"name":"name:test"},{"name":"newtag:newval"},{"name":"owner:ksu"},{"name":"request_group: - admin"},{"name":"request_group: admin10"},{"name":"request_group: svtuser1"},{"name":"request_group: - svtuser166"},{"name":"request_user: admin"},{"name":"request_user: admin10"},{"name":"request_user: - svtuser1"},{"name":"request_user: svtuser166"},{"name":"review_freq: weekly"},{"name":"service_identifier: - 5ede47222dd9f40017a4985b"},{"name":"service_identifier: 5edf19797d7adb0017d3acd4"},{"name":"service_identifier: - 5ee0881f1a6f110017db7ddf"},{"name":"service_identifier: 5ee1bb2d6a0ab6001796b5bb"},{"name":"service_identifier: - 5ee25a267133830017849bbe"},{"name":"service_identifier: 5ee30e1b5918f700179a85ad"},{"name":"service_identifier: - 5ee36d7502049c001921794c"},{"name":"service_identifier: 5ee3bbfe4631de0017e4ae64"},{"name":"service_identifier: - 5ee45f8b1c6a2f001873733b"},{"name":"service_identifier: 5ee5b32970b5670017922951"},{"name":"service_identifier: - 5ee7010059069d0018397514"},{"name":"service_identifier: 5ee85222e67fa800176a33c1"},{"name":"service_identifier: - 5ee9a4145e26c4001744ed94"},{"name":"service_identifier: 5eeaf4999071d00017aa7fbe"},{"name":"service_identifier: - 5eec45eb81329a0017d506b7"},{"name":"service_identifier: 5eed97b681fe800017439792"},{"name":"service_identifier: - 5eeee8240e73030017c56b4f"},{"name":"service_identifier: 5ef04155a2bbf300170ebcc9"},{"name":"service_identifier: - 5ef06984becc470017e6d9e5"},{"name":"service_identifier: 5ef09d15becc470017e6da1b"},{"name":"service_identifier: - 5ef18f94c21cbf0017e62dc4"},{"name":"service_identifier: 5ef22f04956471001662ccec"},{"name":"service_identifier: - 5ef3070aa34fab001762a498"},{"name":"service_identifier: 5ef430d05a82580017d3a50d"},{"name":"service_identifier: - 5ef4f1a71a00ea0017341fa0"},{"name":"service_identifier: 5ef583664a57f10018a89003"},{"name":"service_identifier: - 5efbc37a6252dc001641dcea"},{"name":"service_identifier: 5f0e8843c8e3e80017828671"},{"name":"service_identifier: - 5f0efd4634e6000017307e13"},{"name":"service_identifier: 5f1128c14b28720017ab8f0b"},{"name":"service_identifier: - 5f127ac4db82730017c5996d"},{"name":"service_identifier: 5f13cbe037177f0017ffb4e4"},{"name":"service_identifier: - 5f151dfe15a80d001833da0b"},{"name":"service_identifier: 5f1671f3ce259500170935c0"},{"name":"service_identifier: - 5f17c6975858c50018601c57"},{"name":"service_identifier: 5f1912d42f595d00179286f8"},{"name":"service_identifier: - 5f1a641965750500171b2ad5"},{"name":"service_identifier: 5f1ab5e8f4d7c70017dbf65a"},{"name":"service_identifier: - 5f1bb44499962400177356d8"}]}' - recorded_at: Wed, 07 Oct 2020 21:33:03 GMT -- request: - method: get - uri: https://tags.global-search-tagging.cloud.ibm.com/v3/tags?offset=200 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transaction-Id: - - gst-831261bc-f45a-4d7b-aa7c-d7e4bee9b767 - X-Global-Transaction-Id: - - gst-831261bc-f45a-4d7b-aa7c-d7e4bee9b767 - Ghost-Endpoint: - - ibm:yp:us-south:Kubernetes - Ghost-Instance: - - Kubernetes_7c99464848-r9frp - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"14db-jEoH3JvAG1dxpEaCP5n0h+kqpJs" - X-Envoy-Upstream-Service-Time: - - '83' - Server: - - istio-envoy - Vary: - - Accept-Encoding - Date: - - Wed, 07 Oct 2020 21:33:03 GMT - Content-Length: - - '5339' - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"total_count":357,"offset":200,"limit":100,"items":[{"name":"service_identifier: - 5f1d06959db91400174118f1"},{"name":"service_identifier: 5f1e57d57386930017b92c8f"},{"name":"service_identifier: - 5f1fc56aac25070017780b21"},{"name":"service_identifier: 5f1fe12c6e95a50017d8adc5"},{"name":"service_identifier: - 5f20133e6e95a50017d8ae46"},{"name":"service_identifier: 5f2016bc6e95a50017d8ae4e"},{"name":"service_identifier: - 5f201ab76e95a50017d8ae5a"},{"name":"service_identifier: 5f201cb76e95a50017d8ae5f"},{"name":"service_identifier: - 5f2020ef6e95a50017d8ae6e"},{"name":"service_identifier: 5f202f986e95a50017d8ae7b"},{"name":"service_identifier: - 5f2032cc6e95a50017d8ae85"},{"name":"service_identifier: 5f2034b36e95a50017d8ae8a"},{"name":"service_identifier: - 5f2038156e95a50017d8ae8d"},{"name":"service_identifier: 5f203a296e95a50017d8ae94"},{"name":"service_identifier: - 5f2049986e95a50017d8aed0"},{"name":"service_identifier: 5f20fc1f652fc10017ecbc70"},{"name":"service_identifier: - 5f215d0a6e95a50017d8aef8"},{"name":"service_identifier: 5f21620f6e95a50017d8aefb"},{"name":"service_identifier: - 5f21806772a247001741dff3"},{"name":"service_identifier: 5f22b145907d220017690ef0"},{"name":"service_identifier: - 5f23de2b96f5020017a3dcc7"},{"name":"service_identifier: 5f24f12624c10e0017fb0ac0"},{"name":"service_identifier: - 5f25260819134d0018587b69"},{"name":"service_identifier: 5f25278219134d0018587b7a"},{"name":"service_identifier: - 5f264445b1987b001700696b"},{"name":"service_identifier: 5f28e5846d37f40017930f86"},{"name":"service_identifier: - 5f2a36a73308fc0017c8a9be"},{"name":"service_identifier: 5f2b88c4b3388900175f14dd"},{"name":"service_identifier: - 5f2bdf74cc21ef001835898f"},{"name":"service_identifier: 5f3374a8e081170017722013"},{"name":"service_identifier: - 5f33fa75ba323600173b5e62"},{"name":"service_identifier: 5f34262bba323600173b5e7a"},{"name":"service_identifier: - 5f342f73ba323600173b5e92"},{"name":"service_identifier: 5f34c1724800650017958800"},{"name":"service_identifier: - 5f361524191557001b5d8c3a"},{"name":"service_identifier: 5f3a31891caf920017e43b2f"},{"name":"service_identifier: - 5f3b5d09248cf00017738c9c"},{"name":"service_identifier: 5f3e0051aff4fb0017b14926"},{"name":"service_identifier: - 5f3f7aee7703ff0017fb860b"},{"name":"service_identifier: 5f43425afb2ec900178809df"},{"name":"service_identifier: - 5f44974670a4a1001705532c"},{"name":"service_identifier: 5f45e9ab472d3700176559ff"},{"name":"service_identifier: - 5f478dfdc6304b00177da7fd"},{"name":"service_identifier: 5f4888b532fc13001755dd60"},{"name":"service_identifier: - 5f49d9fb760cf00017ec768d"},{"name":"service_identifier: 5f4b2c96b3d5eb0017635d60"},{"name":"service_identifier: - 5f4c7e50c936ae00179e577e"},{"name":"service_identifier: 5f4dcec50a15920017129be7"},{"name":"service_identifier: - 5f4f209f3e1ea50017142a65"},{"name":"service_identifier: 5f506daface6610017bef863"},{"name":"service_identifier: - 5f51c04720125e0017173a10"},{"name":"service_identifier: 5f5462533d0a050018b56f13"},{"name":"service_identifier: - 5f55b3d46996a900172915a0"},{"name":"service_identifier: 5f5705e905891f0017d05589"},{"name":"service_identifier: - 5f585730398e8b0018d1e1bb"},{"name":"service_identifier: 5f59a81227f52400172b9ced"},{"name":"service_identifier: - 5f5af79809aec800170e40fb"},{"name":"service_identifier: 5f5c5218ddc7fe001797e6df"},{"name":"service_identifier: - 5f5da2dd9287ea00176d93ee"},{"name":"service_name: bm_ibm"},{"name":"service_name: - bmibm"},{"name":"service_name: demo3"},{"name":"service_name: ibm-vm"},{"name":"service_name: - ibmcloud-inst1"},{"name":"service_name: ibmcloudlamp"},{"name":"service_name: - ibmtest"},{"name":"service_name: iss01"},{"name":"service_name: lamp-ibmcloud-001"},{"name":"service_name: - lamp-ibmcloud-inst001"},{"name":"service_name: lamp-ibmcloud-inst1"},{"name":"service_name: - lampibm"},{"name":"service_name: meanibm"},{"name":"service_name: multicloudnode_1591666239187"},{"name":"service_name: - multicloudnode_1591839123242"},{"name":"service_name: multicloudnode_1591925749168"},{"name":"service_name: - multicloudnode_1591950228928"},{"name":"service_name: multicloudnode_1592011998541"},{"name":"service_name: - multicloudnode_1592098321559"},{"name":"service_name: multicloudnode_1592184845732"},{"name":"service_name: - multicloudnode_1592271103344"},{"name":"service_name: multicloudnode_1592357738344"},{"name":"service_name: - multicloudnode_1592443865386"},{"name":"service_name: multicloudnode_1592530391873"},{"name":"service_name: - multicloudnode_1592616818719"},{"name":"service_name: multicloudnode_1592703069616"},{"name":"service_name: - multicloudnode_1592791245180"},{"name":"service_name: multicloudnode_1592807336422"},{"name":"service_name: - multicloudnode_1592876006192"},{"name":"service_name: multicloudnode_1592972912002"},{"name":"service_name: - multicloudnode_1593048687096"},{"name":"service_name: multicloudnode_1593135168173"},{"name":"service_name: - multicloudnode_1594776928145"},{"name":"service_name: multicloudnode_1594807087249"},{"name":"service_name: - multicloudnode_1594949402990"},{"name":"service_name: multicloudnode_1595035728701"},{"name":"service_name: - multicloudnode_1595122271426"},{"name":"service_name: multicloudnode_1595208531496"},{"name":"service_name: - multicloudnode_1595295120236"},{"name":"service_name: multicloudnode_1595381377126"},{"name":"service_name: - multicloudnode_1595467781233"}]}' - recorded_at: Wed, 07 Oct 2020 21:33:03 GMT -- request: - method: get - uri: https://tags.global-search-tagging.cloud.ibm.com/v3/tags?offset=300 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transaction-Id: - - gst-f2a74217-cae9-418b-857c-a49cc9c747b4 - X-Global-Transaction-Id: - - gst-f2a74217-cae9-418b-857c-a49cc9c747b4 - Ghost-Endpoint: - - ibm:yp:us-south:Kubernetes - Ghost-Instance: - - Kubernetes_7c99464848-w46z8 - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"b4a-cq7inZ9H6hdJ9w+ynIxxF7xauwo" - X-Envoy-Upstream-Service-Time: - - '70' - Server: - - istio-envoy - Vary: - - Accept-Encoding - Date: - - Wed, 07 Oct 2020 21:33:03 GMT - Content-Length: - - '2890' - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"total_count":357,"offset":300,"limit":100,"items":[{"name":"service_name: - multicloudnode_1595554215736"},{"name":"service_name: multicloudnode_1595575660483"},{"name":"service_name: - multicloudnode_1595640576691"},{"name":"service_name: multicloudnode_1595726932182"},{"name":"service_name: - multicloudnode_1595813377799"},{"name":"service_name: multicloudnode_1595917629572"},{"name":"service_name: - multicloudnode_1595986133890"},{"name":"service_name: multicloudnode_1596019106524"},{"name":"service_name: - multicloudnode_1596098702713"},{"name":"service_name: multicloudnode_1596174716470"},{"name":"service_name: - multicloudnode_1596245545314"},{"name":"service_name: multicloudnode_1596260080948"},{"name":"service_name: - multicloudnode_1596260198158"},{"name":"service_name: multicloudnode_1596332149762"},{"name":"service_name: - multicloudnode_1596504662702"},{"name":"service_name: multicloudnode_1596591177320"},{"name":"service_name: - multicloudnode_1596677543266"},{"name":"service_name: multicloudnode_1596702893408"},{"name":"service_name: - multicloudnode_1597195887591"},{"name":"service_name: multicloudnode_1597282082255"},{"name":"service_name: - multicloudnode_1597368848616"},{"name":"service_name: multicloudnode_1597636943911"},{"name":"service_name: - multicloudnode_1597714438125"},{"name":"service_name: multicloudnode_1597887354191"},{"name":"service_name: - multicloudnode_1597984152040"},{"name":"service_name: multicloudnode_1598232511906"},{"name":"service_name: - multicloudnode_1598319210647"},{"name":"service_name: multicloudnode_1598405505562"},{"name":"service_name: - multicloudnode_1598514089198"},{"name":"service_name: multicloudnode_1598578291443"},{"name":"service_name: - multicloudnode_1598664570661"},{"name":"service_name: multicloudnode_1598751027153"},{"name":"service_name: - multicloudnode_1598837387829"},{"name":"service_name: multicloudnode_1598923789313"},{"name":"service_name: - multicloudnode_1599010234027"},{"name":"service_name: multicloudnode_1599096735401"},{"name":"service_name: - multicloudnode_1599183067659"},{"name":"service_name: multicloudnode_1599356017461"},{"name":"service_name: - multicloudnode_1599442486155"},{"name":"service_name: multicloudnode_1599528918801"},{"name":"service_name: - multicloudnode_1599615369501"},{"name":"service_name: multicloudnode_1599701534583"},{"name":"service_name: - multicloudnode_1599787928876"},{"name":"service_name: multicloudnode_1599874403465"},{"name":"service_name: - multicloudnode_1599960865433"},{"name":"service_name: sjtest04"},{"name":"service_name: - test-inst1"},{"name":"service_name: test4"},{"name":"service_name: test45"},{"name":"service_name: - test543"},{"name":"service_name: test876"},{"name":"service_name: testaz1"},{"name":"service_name: - testibmcloud_deploy"},{"name":"service_name: testic1"},{"name":"service_name: - testinst67"},{"name":"service_name: tm-ibm-pub"},{"name":"team: icpmcm"}]}' - recorded_at: Wed, 07 Oct 2020 21:33:03 GMT -- request: - method: get - uri: https://tags.global-search-tagging.cloud.ibm.com/v3/tags?offset=400 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transaction-Id: - - gst-c2742536-0a3e-4543-92e7-64d04eec752c - X-Global-Transaction-Id: - - gst-c2742536-0a3e-4543-92e7-64d04eec752c - Ghost-Endpoint: - - ibm:yp:us-south:Kubernetes - Ghost-Instance: - - Kubernetes_7c99464848-f5d57 - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '55' - Etag: - - W/"37-+k1efDpIwpON7CSE2npudG8MUWQ" - X-Envoy-Upstream-Service-Time: - - '60' - Server: - - istio-envoy - Date: - - Wed, 07 Oct 2020 21:33:03 GMT - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"total_count":357,"offset":400,"limit":100,"items":[]}' - recorded_at: Wed, 07 Oct 2020 21:33:03 GMT -- request: - method: get - uri: https://tags.global-search-tagging.cloud.ibm.com/v3/tags - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transaction-Id: - - gst-de70dc92-bbfc-48c9-9a1b-39af972818b8 - X-Global-Transaction-Id: - - gst-de70dc92-bbfc-48c9-9a1b-39af972818b8 - Ghost-Endpoint: - - ibm:yp:us-south:Kubernetes - Ghost-Instance: - - Kubernetes_7c99464848-js5b7 - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"200e-it1qcAIDnop54RNguXAI8/jWeO8" - X-Envoy-Upstream-Service-Time: - - '87' - Server: - - istio-envoy - Vary: - - Accept-Encoding - Date: - - Wed, 07 Oct 2020 21:33:04 GMT - Content-Length: - - '8206' - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"total_count":357,"offset":0,"limit":100,"items":[{"name":"bootie"},{"name":"cam42"},{"name":"cam42onroks311"},{"name":"cam42onroks43"},{"name":"cp4mcm-mcmp"},{"name":"dba"},{"name":"env:cam4201"},{"name":"env:camsvt"},{"name":"env:camsvt-ocp311"},{"name":"env:test - mytag:mytagval"},{"name":"environment: dev"},{"name":"environment: test"},{"name":"ibm-kubernetes-service"},{"name":"job_activity_identifier: - 00571a60-b0e1-11ea-a2d4-679d451ec2a7_1virtualf677d831"},{"name":"job_activity_identifier: - 009f4d60-ab43-11ea-9aa2-4b5cd0f030f2_1virtualf677d831"},{"name":"job_activity_identifier: - 08930030-b9a7-11ea-a33a-d1c18090aa6e_1virtualf677d831"},{"name":"job_activity_identifier: - 0dea49f0-acf3-11ea-b104-31f290444601_1virtualf677d831"},{"name":"job_activity_identifier: - 0defa9e0-b964-11ea-b0c7-992fbb03b5aa_1virtualf677d831"},{"name":"job_activity_identifier: - 0e0cda60-af96-11ea-91aa-49bd2bf8a690_1virtualf677d831"},{"name":"job_activity_identifier: - 0ed2bdf0-a9ad-11ea-a923-8136139bf349_1virtualf677d831"},{"name":"job_activity_identifier: - 0fae7080-b6a9-11ea-a0f8-f74522e909d5_1virtualf677d831"},{"name":"job_activity_identifier: - 10229270-b461-11ea-a104-91ce2749d764_multiplecc5b47a7"},{"name":"job_activity_identifier: - 107be0c0-ad34-11ea-b312-41c7d051d8a4_multiplecc5b47a7"},{"name":"job_activity_identifier: - 110d4210-abc5-11ea-a8c9-6fffb485d7ab_1virtualf677d831"},{"name":"job_activity_identifier: - 1a74d730-b018-11ea-9480-5daa49268a8d_1virtualf677d831"},{"name":"job_activity_identifier: - 1cfbfcb0-b449-11ea-925b-cfd13b81e378_multiplecc5b47a7"},{"name":"job_activity_identifier: - 1e3149f0-b4ad-11ea-8919-8342eeaed20b_1virtualf677d831"},{"name":"job_activity_identifier: - 207682b0-b102-11ea-a7ea-376157a167af_1virtualf677d831"},{"name":"job_activity_identifier: - 20ae7710-ac2a-11ea-b343-9fa221f4849e_1virtualf677d831"},{"name":"job_activity_identifier: - 21778180-b5f0-11ea-8b58-bbd634cc41d7_multiplecc5b47a7"},{"name":"job_activity_identifier: - 25e481b0-b405-11ea-9f5b-25a8a6c6a856_1virtualf677d831"},{"name":"job_activity_identifier: - 272161b0-b72a-11ea-a656-37133234f6a8_1virtualf677d831"},{"name":"job_activity_identifier: - 2762ec80-bb25-11ea-8466-3fbd561e7160_meanstac79ffc96e"},{"name":"job_activity_identifier: - 27ac06f0-b273-11ea-bf24-07739e09a60a_1virtualf677d831"},{"name":"job_activity_identifier: - 284fdd40-b7f3-11ea-865d-f7ceb03151e9_1virtualf677d831"},{"name":"job_activity_identifier: - 29be0090-b4f0-11ea-ba86-f9d989c636ff_1virtualf677d831"},{"name":"job_activity_identifier: - 29c55820-b533-11ea-986d-cbf56f1a8f2f_1virtualf677d831"},{"name":"job_activity_identifier: - 32794040-aea7-11ea-abd7-3be923f7d83d_1virtualf677d831"},{"name":"job_activity_identifier: - 3599b300-b07c-11ea-b132-85b47b0dc0f9_1virtualf677d831"},{"name":"job_activity_identifier: - 3ac1b390-aff6-11ea-a558-85851020ebac_1virtualf677d831"},{"name":"job_activity_identifier: - 4165fdc0-aba8-11ea-9588-5fbf476b98aa_1virtualf677d831"},{"name":"job_activity_identifier: - 433ac9e0-b5d1-11ea-8b58-bbd634cc41d7_1virtualf677d831"},{"name":"job_activity_identifier: - 4524b250-ad3b-11ea-be59-99e55d7674bf_1virtualf677d831"},{"name":"job_activity_identifier: - 4618f8c0-adbc-11ea-b32d-e50fc526a7c0_1virtualf677d831"},{"name":"job_activity_identifier: - 47facd50-b33c-11ea-8be5-d9ba3fbe5389_1virtualf677d831"},{"name":"job_activity_identifier: - 492e91f0-b145-11ea-a321-5b0d88d26cca_1virtualf677d831"},{"name":"job_activity_identifier: - 503b3d50-b89c-11ea-bd12-cb817e5885c7_1virtualf677d831"},{"name":"job_activity_identifier: - 5393c280-b5fc-11ea-82b8-39866704105d_1virtualf677d831"},{"name":"job_activity_identifier: - 555c79f0-ac4b-11ea-9cab-f96eabbd10da_1virtualf677d831"},{"name":"job_activity_identifier: - 56216fd0-b1aa-11ea-bc3b-8515ce05b5bd_1virtualf677d831"},{"name":"job_activity_identifier: - 56a3c8e0-b510-11ea-ba86-f9d989c636ff_multiplecc5b47a7"},{"name":"job_activity_identifier: - 57119360-b985-11ea-a484-5fb8f531ba8b_1virtualf677d831"},{"name":"job_activity_identifier: - 59921670-acd1-11ea-83aa-43a627caf559_1virtualf677d831"},{"name":"job_activity_identifier: - 5c2484f0-aa0f-11ea-b0ff-6d1f8920bb5f_multiplecc5b47a7"},{"name":"job_activity_identifier: - 5cd6ed00-b37b-11ea-b5a0-7f7ddc801765_multiplecc5b47a7"},{"name":"job_activity_identifier: - 5ec00020-b56f-11ea-a7eb-39cfb9d16efe_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - 5fd9c090-b8bc-11ea-8b69-2331a008b2de_1virtualf677d831"},{"name":"job_activity_identifier: - 68c730c0-b83a-11ea-a19f-b59e6efcd59c_1virtualf677d831"},{"name":"job_activity_identifier: - 68e9c0e0-ad9a-11ea-a8b9-f30d9d3f80ac_1virtualf677d831"},{"name":"job_activity_identifier: - 6bbf3d40-ae85-11ea-bb2d-dd803fa1c97a_1virtualf677d831"},{"name":"job_activity_identifier: - 6c733d90-af8e-11ea-8970-9129ac6423ef_multiplecc5b47a7"},{"name":"job_activity_identifier: - 6d023d40-b517-11ea-810b-55d46d31edb8_1virtualf677d831"},{"name":"job_activity_identifier: - 6d99d360-b127-11ea-ac14-e98177a132fc_1virtualf677d831"},{"name":"job_activity_identifier: - 6e485800-b76b-11ea-b733-c347d385b7a4_multiplecc5b47a7"},{"name":"job_activity_identifier: - 6fb1e220-b120-11ea-a7ea-376157a167af_multiplecc5b47a7"},{"name":"job_activity_identifier: - 709b45b0-b039-11ea-9e32-2d8b4cf10672_1virtualf677d831"},{"name":"job_activity_identifier: - 72758bc0-aada-11ea-b8ac-192959056e84_1virtualf677d831"},{"name":"job_activity_identifier: - 76cb96a0-ab62-11ea-a29c-69218d4f116b_1virtualf677d831"},{"name":"job_activity_identifier: - 79ee8560-b682-11ea-bea2-bb46dce46373_1virtualf677d831"},{"name":"job_activity_identifier: - 7a41e2b0-aec5-11ea-abd7-3be923f7d83d_multiplecc5b47a7"},{"name":"job_activity_identifier: - 7e15ae70-adfe-11ea-b585-b732f60c92ae_multiplecc5b47a7"},{"name":"job_activity_identifier: - 7e8d30a0-b1e9-11ea-997d-ab7628551b80_multiplecc5b47a7"},{"name":"job_activity_identifier: - 84491530-ae20-11ea-bb6a-215c9795aae7_1virtualf677d831"},{"name":"job_activity_identifier: - 880864b0-a9ce-11ea-8305-f50b2a74c6f5_1virtualf677d831"},{"name":"job_activity_identifier: - 8d8f9030-b6c5-11ea-8885-693461af270c_1virtualf677d831"},{"name":"job_activity_identifier: - 8defc580-b1cb-11ea-997d-ab7628551b80_1virtualf677d831"},{"name":"job_activity_identifier: - 8e7bbbd0-b63f-11ea-953e-2546174e6fd7_1virtualf677d831"},{"name":"job_activity_identifier: - 8ed1e250-b714-11ea-88ea-0b0893c9c6bb_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - 95239c30-acd2-11ea-b23b-538135d883d3_meanstac79ffc96e"},{"name":"job_activity_identifier: - 9684e190-addd-11ea-b585-b732f60c92ae_1virtualf677d831"},{"name":"job_activity_identifier: - 9e362580-b6a1-11ea-bea2-bb46dce46373_multiplecc5b47a7"},{"name":"job_activity_identifier: - a1165240-b294-11ea-8bf2-839f79b825e2_1virtualf677d831"},{"name":"job_activity_identifier: - a234a210-b74b-11ea-b733-c347d385b7a4_1virtualf677d831"},{"name":"job_activity_identifier: - a2b0caa0-b450-11ea-8b27-dbd1acca2341_1virtualf677d831"},{"name":"job_activity_identifier: - a38a99b0-b9ff-11ea-a17f-8b84e0af5c27_1virtualf677d831"},{"name":"job_activity_identifier: - a59cb560-b7d1-11ea-b4bd-6b3c845157a6_1virtualf677d831"},{"name":"job_activity_identifier: - a62e8e80-b5f7-11ea-ab57-37622f811a5d_1virtualf677d831"},{"name":"job_activity_identifier: - a6668480-b0bf-11ea-9ff2-4974bd83efb3_1virtualf677d831"},{"name":"job_activity_identifier: - a84447f0-aecc-11ea-9ab9-61ae8fc8bf54_1virtualf677d831"},{"name":"job_activity_identifier: - aa67d690-b814-11ea-b225-a3e27fea00ea_1virtualf677d831"},{"name":"job_activity_identifier: - ac852ac0-abff-11ea-b5f5-cb0f448960ef_meanstac79ffc96e"},{"name":"job_activity_identifier: - b00f8cb0-afb2-11ea-aff3-a16884aa59b7_1virtualf677d831"},{"name":"job_activity_identifier: - b1efafe0-b8dd-11ea-b189-7b328750f26a_1virtualf677d831"},{"name":"job_activity_identifier: - b2d182c0-aa97-11ea-8c93-491550becb6c_1virtualf677d831"},{"name":"job_activity_identifier: - b6f7c330-a9ef-11ea-bc92-c9a2eea50073_1virtualf677d831"},{"name":"job_activity_identifier: - b79af380-b902-11ea-81c9-bd7cc68bad11_1virtualf677d831"},{"name":"job_activity_identifier: - b80bdf40-b2d7-11ea-a87f-c9d3fe4cad21_1virtualf677d831"},{"name":"job_activity_identifier: - be0eeb80-aa17-11ea-aa7d-db1cbde594f9_1virtualf677d831"},{"name":"job_activity_identifier: - be6b84d0-ad14-11ea-b312-41c7d051d8a4_1virtualf677d831"},{"name":"job_activity_identifier: - c09e9670-af4e-11ea-9559-af107ab67eef_1virtualf677d831"}]}' - recorded_at: Wed, 07 Oct 2020 21:33:04 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/IBM_Cloud_SDK_Tags/can_get_fetch.yml b/spec/vcr/IBM_Cloud_SDK_Tags/can_get_fetch.yml deleted file mode 100644 index fc735e66..00000000 --- a/spec/vcr/IBM_Cloud_SDK_Tags/can_get_fetch.yml +++ /dev/null @@ -1,187 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2498' - Transaction-Id: - - '0118c201f36f46049e3591f937dfe45f' - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Wed, 07 Oct 2020 21:17:12 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=692f2161ec997e6229c77c8e357cfa92; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"refresh_token_expiration":1604697429,"scope":"ibm - openid"}' - recorded_at: Wed, 07 Oct 2020 21:17:12 GMT -- request: - method: get - uri: https://tags.global-search-tagging.cloud.ibm.com/v3/tags - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transaction-Id: - - gst-db4acc19-e793-4768-81bd-63eb01bd5450 - X-Global-Transaction-Id: - - gst-db4acc19-e793-4768-81bd-63eb01bd5450 - Ghost-Endpoint: - - ibm:yp:us-south:Kubernetes - Ghost-Instance: - - Kubernetes_7c99464848-f5d57 - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"200e-it1qcAIDnop54RNguXAI8/jWeO8" - X-Envoy-Upstream-Service-Time: - - '82' - Server: - - istio-envoy - Vary: - - Accept-Encoding - Date: - - Wed, 07 Oct 2020 21:17:13 GMT - Content-Length: - - '8206' - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"total_count":357,"offset":0,"limit":100,"items":[{"name":"bootie"},{"name":"cam42"},{"name":"cam42onroks311"},{"name":"cam42onroks43"},{"name":"cp4mcm-mcmp"},{"name":"dba"},{"name":"env:cam4201"},{"name":"env:camsvt"},{"name":"env:camsvt-ocp311"},{"name":"env:test - mytag:mytagval"},{"name":"environment: dev"},{"name":"environment: test"},{"name":"ibm-kubernetes-service"},{"name":"job_activity_identifier: - 00571a60-b0e1-11ea-a2d4-679d451ec2a7_1virtualf677d831"},{"name":"job_activity_identifier: - 009f4d60-ab43-11ea-9aa2-4b5cd0f030f2_1virtualf677d831"},{"name":"job_activity_identifier: - 08930030-b9a7-11ea-a33a-d1c18090aa6e_1virtualf677d831"},{"name":"job_activity_identifier: - 0dea49f0-acf3-11ea-b104-31f290444601_1virtualf677d831"},{"name":"job_activity_identifier: - 0defa9e0-b964-11ea-b0c7-992fbb03b5aa_1virtualf677d831"},{"name":"job_activity_identifier: - 0e0cda60-af96-11ea-91aa-49bd2bf8a690_1virtualf677d831"},{"name":"job_activity_identifier: - 0ed2bdf0-a9ad-11ea-a923-8136139bf349_1virtualf677d831"},{"name":"job_activity_identifier: - 0fae7080-b6a9-11ea-a0f8-f74522e909d5_1virtualf677d831"},{"name":"job_activity_identifier: - 10229270-b461-11ea-a104-91ce2749d764_multiplecc5b47a7"},{"name":"job_activity_identifier: - 107be0c0-ad34-11ea-b312-41c7d051d8a4_multiplecc5b47a7"},{"name":"job_activity_identifier: - 110d4210-abc5-11ea-a8c9-6fffb485d7ab_1virtualf677d831"},{"name":"job_activity_identifier: - 1a74d730-b018-11ea-9480-5daa49268a8d_1virtualf677d831"},{"name":"job_activity_identifier: - 1cfbfcb0-b449-11ea-925b-cfd13b81e378_multiplecc5b47a7"},{"name":"job_activity_identifier: - 1e3149f0-b4ad-11ea-8919-8342eeaed20b_1virtualf677d831"},{"name":"job_activity_identifier: - 207682b0-b102-11ea-a7ea-376157a167af_1virtualf677d831"},{"name":"job_activity_identifier: - 20ae7710-ac2a-11ea-b343-9fa221f4849e_1virtualf677d831"},{"name":"job_activity_identifier: - 21778180-b5f0-11ea-8b58-bbd634cc41d7_multiplecc5b47a7"},{"name":"job_activity_identifier: - 25e481b0-b405-11ea-9f5b-25a8a6c6a856_1virtualf677d831"},{"name":"job_activity_identifier: - 272161b0-b72a-11ea-a656-37133234f6a8_1virtualf677d831"},{"name":"job_activity_identifier: - 2762ec80-bb25-11ea-8466-3fbd561e7160_meanstac79ffc96e"},{"name":"job_activity_identifier: - 27ac06f0-b273-11ea-bf24-07739e09a60a_1virtualf677d831"},{"name":"job_activity_identifier: - 284fdd40-b7f3-11ea-865d-f7ceb03151e9_1virtualf677d831"},{"name":"job_activity_identifier: - 29be0090-b4f0-11ea-ba86-f9d989c636ff_1virtualf677d831"},{"name":"job_activity_identifier: - 29c55820-b533-11ea-986d-cbf56f1a8f2f_1virtualf677d831"},{"name":"job_activity_identifier: - 32794040-aea7-11ea-abd7-3be923f7d83d_1virtualf677d831"},{"name":"job_activity_identifier: - 3599b300-b07c-11ea-b132-85b47b0dc0f9_1virtualf677d831"},{"name":"job_activity_identifier: - 3ac1b390-aff6-11ea-a558-85851020ebac_1virtualf677d831"},{"name":"job_activity_identifier: - 4165fdc0-aba8-11ea-9588-5fbf476b98aa_1virtualf677d831"},{"name":"job_activity_identifier: - 433ac9e0-b5d1-11ea-8b58-bbd634cc41d7_1virtualf677d831"},{"name":"job_activity_identifier: - 4524b250-ad3b-11ea-be59-99e55d7674bf_1virtualf677d831"},{"name":"job_activity_identifier: - 4618f8c0-adbc-11ea-b32d-e50fc526a7c0_1virtualf677d831"},{"name":"job_activity_identifier: - 47facd50-b33c-11ea-8be5-d9ba3fbe5389_1virtualf677d831"},{"name":"job_activity_identifier: - 492e91f0-b145-11ea-a321-5b0d88d26cca_1virtualf677d831"},{"name":"job_activity_identifier: - 503b3d50-b89c-11ea-bd12-cb817e5885c7_1virtualf677d831"},{"name":"job_activity_identifier: - 5393c280-b5fc-11ea-82b8-39866704105d_1virtualf677d831"},{"name":"job_activity_identifier: - 555c79f0-ac4b-11ea-9cab-f96eabbd10da_1virtualf677d831"},{"name":"job_activity_identifier: - 56216fd0-b1aa-11ea-bc3b-8515ce05b5bd_1virtualf677d831"},{"name":"job_activity_identifier: - 56a3c8e0-b510-11ea-ba86-f9d989c636ff_multiplecc5b47a7"},{"name":"job_activity_identifier: - 57119360-b985-11ea-a484-5fb8f531ba8b_1virtualf677d831"},{"name":"job_activity_identifier: - 59921670-acd1-11ea-83aa-43a627caf559_1virtualf677d831"},{"name":"job_activity_identifier: - 5c2484f0-aa0f-11ea-b0ff-6d1f8920bb5f_multiplecc5b47a7"},{"name":"job_activity_identifier: - 5cd6ed00-b37b-11ea-b5a0-7f7ddc801765_multiplecc5b47a7"},{"name":"job_activity_identifier: - 5ec00020-b56f-11ea-a7eb-39cfb9d16efe_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - 5fd9c090-b8bc-11ea-8b69-2331a008b2de_1virtualf677d831"},{"name":"job_activity_identifier: - 68c730c0-b83a-11ea-a19f-b59e6efcd59c_1virtualf677d831"},{"name":"job_activity_identifier: - 68e9c0e0-ad9a-11ea-a8b9-f30d9d3f80ac_1virtualf677d831"},{"name":"job_activity_identifier: - 6bbf3d40-ae85-11ea-bb2d-dd803fa1c97a_1virtualf677d831"},{"name":"job_activity_identifier: - 6c733d90-af8e-11ea-8970-9129ac6423ef_multiplecc5b47a7"},{"name":"job_activity_identifier: - 6d023d40-b517-11ea-810b-55d46d31edb8_1virtualf677d831"},{"name":"job_activity_identifier: - 6d99d360-b127-11ea-ac14-e98177a132fc_1virtualf677d831"},{"name":"job_activity_identifier: - 6e485800-b76b-11ea-b733-c347d385b7a4_multiplecc5b47a7"},{"name":"job_activity_identifier: - 6fb1e220-b120-11ea-a7ea-376157a167af_multiplecc5b47a7"},{"name":"job_activity_identifier: - 709b45b0-b039-11ea-9e32-2d8b4cf10672_1virtualf677d831"},{"name":"job_activity_identifier: - 72758bc0-aada-11ea-b8ac-192959056e84_1virtualf677d831"},{"name":"job_activity_identifier: - 76cb96a0-ab62-11ea-a29c-69218d4f116b_1virtualf677d831"},{"name":"job_activity_identifier: - 79ee8560-b682-11ea-bea2-bb46dce46373_1virtualf677d831"},{"name":"job_activity_identifier: - 7a41e2b0-aec5-11ea-abd7-3be923f7d83d_multiplecc5b47a7"},{"name":"job_activity_identifier: - 7e15ae70-adfe-11ea-b585-b732f60c92ae_multiplecc5b47a7"},{"name":"job_activity_identifier: - 7e8d30a0-b1e9-11ea-997d-ab7628551b80_multiplecc5b47a7"},{"name":"job_activity_identifier: - 84491530-ae20-11ea-bb6a-215c9795aae7_1virtualf677d831"},{"name":"job_activity_identifier: - 880864b0-a9ce-11ea-8305-f50b2a74c6f5_1virtualf677d831"},{"name":"job_activity_identifier: - 8d8f9030-b6c5-11ea-8885-693461af270c_1virtualf677d831"},{"name":"job_activity_identifier: - 8defc580-b1cb-11ea-997d-ab7628551b80_1virtualf677d831"},{"name":"job_activity_identifier: - 8e7bbbd0-b63f-11ea-953e-2546174e6fd7_1virtualf677d831"},{"name":"job_activity_identifier: - 8ed1e250-b714-11ea-88ea-0b0893c9c6bb_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - 95239c30-acd2-11ea-b23b-538135d883d3_meanstac79ffc96e"},{"name":"job_activity_identifier: - 9684e190-addd-11ea-b585-b732f60c92ae_1virtualf677d831"},{"name":"job_activity_identifier: - 9e362580-b6a1-11ea-bea2-bb46dce46373_multiplecc5b47a7"},{"name":"job_activity_identifier: - a1165240-b294-11ea-8bf2-839f79b825e2_1virtualf677d831"},{"name":"job_activity_identifier: - a234a210-b74b-11ea-b733-c347d385b7a4_1virtualf677d831"},{"name":"job_activity_identifier: - a2b0caa0-b450-11ea-8b27-dbd1acca2341_1virtualf677d831"},{"name":"job_activity_identifier: - a38a99b0-b9ff-11ea-a17f-8b84e0af5c27_1virtualf677d831"},{"name":"job_activity_identifier: - a59cb560-b7d1-11ea-b4bd-6b3c845157a6_1virtualf677d831"},{"name":"job_activity_identifier: - a62e8e80-b5f7-11ea-ab57-37622f811a5d_1virtualf677d831"},{"name":"job_activity_identifier: - a6668480-b0bf-11ea-9ff2-4974bd83efb3_1virtualf677d831"},{"name":"job_activity_identifier: - a84447f0-aecc-11ea-9ab9-61ae8fc8bf54_1virtualf677d831"},{"name":"job_activity_identifier: - aa67d690-b814-11ea-b225-a3e27fea00ea_1virtualf677d831"},{"name":"job_activity_identifier: - ac852ac0-abff-11ea-b5f5-cb0f448960ef_meanstac79ffc96e"},{"name":"job_activity_identifier: - b00f8cb0-afb2-11ea-aff3-a16884aa59b7_1virtualf677d831"},{"name":"job_activity_identifier: - b1efafe0-b8dd-11ea-b189-7b328750f26a_1virtualf677d831"},{"name":"job_activity_identifier: - b2d182c0-aa97-11ea-8c93-491550becb6c_1virtualf677d831"},{"name":"job_activity_identifier: - b6f7c330-a9ef-11ea-bc92-c9a2eea50073_1virtualf677d831"},{"name":"job_activity_identifier: - b79af380-b902-11ea-81c9-bd7cc68bad11_1virtualf677d831"},{"name":"job_activity_identifier: - b80bdf40-b2d7-11ea-a87f-c9d3fe4cad21_1virtualf677d831"},{"name":"job_activity_identifier: - be0eeb80-aa17-11ea-aa7d-db1cbde594f9_1virtualf677d831"},{"name":"job_activity_identifier: - be6b84d0-ad14-11ea-b312-41c7d051d8a4_1virtualf677d831"},{"name":"job_activity_identifier: - c09e9670-af4e-11ea-9559-af107ab67eef_1virtualf677d831"}]}' - recorded_at: Wed, 07 Oct 2020 21:17:13 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/IBM_Cloud_SDK_Tags/can_set_parameters.yml b/spec/vcr/IBM_Cloud_SDK_Tags/can_set_parameters.yml deleted file mode 100644 index 36456d20..00000000 --- a/spec/vcr/IBM_Cloud_SDK_Tags/can_set_parameters.yml +++ /dev/null @@ -1,187 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2498' - Transaction-Id: - - 9db6e87a8eff48dfa9083e57d341d291 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Wed, 07 Oct 2020 21:36:22 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=50bb27ae93dd124e2a6bce24e2752e72; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"refresh_token_expiration":1604698579,"scope":"ibm - openid"}' - recorded_at: Wed, 07 Oct 2020 21:36:22 GMT -- request: - method: get - uri: https://tags.global-search-tagging.cloud.ibm.com/v3/tags - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Transaction-Id: - - gst-be4584e5-9388-45fa-8bbf-f6766ac9c5ca - X-Global-Transaction-Id: - - gst-be4584e5-9388-45fa-8bbf-f6766ac9c5ca - Ghost-Endpoint: - - ibm:yp:us-south:Kubernetes - Ghost-Instance: - - Kubernetes_7c99464848-gwsqb - Content-Type: - - application/json; charset=utf-8 - Etag: - - W/"200e-it1qcAIDnop54RNguXAI8/jWeO8" - X-Envoy-Upstream-Service-Time: - - '72' - Server: - - istio-envoy - Vary: - - Accept-Encoding - Date: - - Wed, 07 Oct 2020 21:36:22 GMT - Content-Length: - - '8206' - Connection: - - keep-alive - body: - encoding: UTF-8 - string: '{"total_count":357,"offset":0,"limit":100,"items":[{"name":"bootie"},{"name":"cam42"},{"name":"cam42onroks311"},{"name":"cam42onroks43"},{"name":"cp4mcm-mcmp"},{"name":"dba"},{"name":"env:cam4201"},{"name":"env:camsvt"},{"name":"env:camsvt-ocp311"},{"name":"env:test - mytag:mytagval"},{"name":"environment: dev"},{"name":"environment: test"},{"name":"ibm-kubernetes-service"},{"name":"job_activity_identifier: - 00571a60-b0e1-11ea-a2d4-679d451ec2a7_1virtualf677d831"},{"name":"job_activity_identifier: - 009f4d60-ab43-11ea-9aa2-4b5cd0f030f2_1virtualf677d831"},{"name":"job_activity_identifier: - 08930030-b9a7-11ea-a33a-d1c18090aa6e_1virtualf677d831"},{"name":"job_activity_identifier: - 0dea49f0-acf3-11ea-b104-31f290444601_1virtualf677d831"},{"name":"job_activity_identifier: - 0defa9e0-b964-11ea-b0c7-992fbb03b5aa_1virtualf677d831"},{"name":"job_activity_identifier: - 0e0cda60-af96-11ea-91aa-49bd2bf8a690_1virtualf677d831"},{"name":"job_activity_identifier: - 0ed2bdf0-a9ad-11ea-a923-8136139bf349_1virtualf677d831"},{"name":"job_activity_identifier: - 0fae7080-b6a9-11ea-a0f8-f74522e909d5_1virtualf677d831"},{"name":"job_activity_identifier: - 10229270-b461-11ea-a104-91ce2749d764_multiplecc5b47a7"},{"name":"job_activity_identifier: - 107be0c0-ad34-11ea-b312-41c7d051d8a4_multiplecc5b47a7"},{"name":"job_activity_identifier: - 110d4210-abc5-11ea-a8c9-6fffb485d7ab_1virtualf677d831"},{"name":"job_activity_identifier: - 1a74d730-b018-11ea-9480-5daa49268a8d_1virtualf677d831"},{"name":"job_activity_identifier: - 1cfbfcb0-b449-11ea-925b-cfd13b81e378_multiplecc5b47a7"},{"name":"job_activity_identifier: - 1e3149f0-b4ad-11ea-8919-8342eeaed20b_1virtualf677d831"},{"name":"job_activity_identifier: - 207682b0-b102-11ea-a7ea-376157a167af_1virtualf677d831"},{"name":"job_activity_identifier: - 20ae7710-ac2a-11ea-b343-9fa221f4849e_1virtualf677d831"},{"name":"job_activity_identifier: - 21778180-b5f0-11ea-8b58-bbd634cc41d7_multiplecc5b47a7"},{"name":"job_activity_identifier: - 25e481b0-b405-11ea-9f5b-25a8a6c6a856_1virtualf677d831"},{"name":"job_activity_identifier: - 272161b0-b72a-11ea-a656-37133234f6a8_1virtualf677d831"},{"name":"job_activity_identifier: - 2762ec80-bb25-11ea-8466-3fbd561e7160_meanstac79ffc96e"},{"name":"job_activity_identifier: - 27ac06f0-b273-11ea-bf24-07739e09a60a_1virtualf677d831"},{"name":"job_activity_identifier: - 284fdd40-b7f3-11ea-865d-f7ceb03151e9_1virtualf677d831"},{"name":"job_activity_identifier: - 29be0090-b4f0-11ea-ba86-f9d989c636ff_1virtualf677d831"},{"name":"job_activity_identifier: - 29c55820-b533-11ea-986d-cbf56f1a8f2f_1virtualf677d831"},{"name":"job_activity_identifier: - 32794040-aea7-11ea-abd7-3be923f7d83d_1virtualf677d831"},{"name":"job_activity_identifier: - 3599b300-b07c-11ea-b132-85b47b0dc0f9_1virtualf677d831"},{"name":"job_activity_identifier: - 3ac1b390-aff6-11ea-a558-85851020ebac_1virtualf677d831"},{"name":"job_activity_identifier: - 4165fdc0-aba8-11ea-9588-5fbf476b98aa_1virtualf677d831"},{"name":"job_activity_identifier: - 433ac9e0-b5d1-11ea-8b58-bbd634cc41d7_1virtualf677d831"},{"name":"job_activity_identifier: - 4524b250-ad3b-11ea-be59-99e55d7674bf_1virtualf677d831"},{"name":"job_activity_identifier: - 4618f8c0-adbc-11ea-b32d-e50fc526a7c0_1virtualf677d831"},{"name":"job_activity_identifier: - 47facd50-b33c-11ea-8be5-d9ba3fbe5389_1virtualf677d831"},{"name":"job_activity_identifier: - 492e91f0-b145-11ea-a321-5b0d88d26cca_1virtualf677d831"},{"name":"job_activity_identifier: - 503b3d50-b89c-11ea-bd12-cb817e5885c7_1virtualf677d831"},{"name":"job_activity_identifier: - 5393c280-b5fc-11ea-82b8-39866704105d_1virtualf677d831"},{"name":"job_activity_identifier: - 555c79f0-ac4b-11ea-9cab-f96eabbd10da_1virtualf677d831"},{"name":"job_activity_identifier: - 56216fd0-b1aa-11ea-bc3b-8515ce05b5bd_1virtualf677d831"},{"name":"job_activity_identifier: - 56a3c8e0-b510-11ea-ba86-f9d989c636ff_multiplecc5b47a7"},{"name":"job_activity_identifier: - 57119360-b985-11ea-a484-5fb8f531ba8b_1virtualf677d831"},{"name":"job_activity_identifier: - 59921670-acd1-11ea-83aa-43a627caf559_1virtualf677d831"},{"name":"job_activity_identifier: - 5c2484f0-aa0f-11ea-b0ff-6d1f8920bb5f_multiplecc5b47a7"},{"name":"job_activity_identifier: - 5cd6ed00-b37b-11ea-b5a0-7f7ddc801765_multiplecc5b47a7"},{"name":"job_activity_identifier: - 5ec00020-b56f-11ea-a7eb-39cfb9d16efe_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - 5fd9c090-b8bc-11ea-8b69-2331a008b2de_1virtualf677d831"},{"name":"job_activity_identifier: - 68c730c0-b83a-11ea-a19f-b59e6efcd59c_1virtualf677d831"},{"name":"job_activity_identifier: - 68e9c0e0-ad9a-11ea-a8b9-f30d9d3f80ac_1virtualf677d831"},{"name":"job_activity_identifier: - 6bbf3d40-ae85-11ea-bb2d-dd803fa1c97a_1virtualf677d831"},{"name":"job_activity_identifier: - 6c733d90-af8e-11ea-8970-9129ac6423ef_multiplecc5b47a7"},{"name":"job_activity_identifier: - 6d023d40-b517-11ea-810b-55d46d31edb8_1virtualf677d831"},{"name":"job_activity_identifier: - 6d99d360-b127-11ea-ac14-e98177a132fc_1virtualf677d831"},{"name":"job_activity_identifier: - 6e485800-b76b-11ea-b733-c347d385b7a4_multiplecc5b47a7"},{"name":"job_activity_identifier: - 6fb1e220-b120-11ea-a7ea-376157a167af_multiplecc5b47a7"},{"name":"job_activity_identifier: - 709b45b0-b039-11ea-9e32-2d8b4cf10672_1virtualf677d831"},{"name":"job_activity_identifier: - 72758bc0-aada-11ea-b8ac-192959056e84_1virtualf677d831"},{"name":"job_activity_identifier: - 76cb96a0-ab62-11ea-a29c-69218d4f116b_1virtualf677d831"},{"name":"job_activity_identifier: - 79ee8560-b682-11ea-bea2-bb46dce46373_1virtualf677d831"},{"name":"job_activity_identifier: - 7a41e2b0-aec5-11ea-abd7-3be923f7d83d_multiplecc5b47a7"},{"name":"job_activity_identifier: - 7e15ae70-adfe-11ea-b585-b732f60c92ae_multiplecc5b47a7"},{"name":"job_activity_identifier: - 7e8d30a0-b1e9-11ea-997d-ab7628551b80_multiplecc5b47a7"},{"name":"job_activity_identifier: - 84491530-ae20-11ea-bb6a-215c9795aae7_1virtualf677d831"},{"name":"job_activity_identifier: - 880864b0-a9ce-11ea-8305-f50b2a74c6f5_1virtualf677d831"},{"name":"job_activity_identifier: - 8d8f9030-b6c5-11ea-8885-693461af270c_1virtualf677d831"},{"name":"job_activity_identifier: - 8defc580-b1cb-11ea-997d-ab7628551b80_1virtualf677d831"},{"name":"job_activity_identifier: - 8e7bbbd0-b63f-11ea-953e-2546174e6fd7_1virtualf677d831"},{"name":"job_activity_identifier: - 8ed1e250-b714-11ea-88ea-0b0893c9c6bb_virtualsd2b7f0ba"},{"name":"job_activity_identifier: - 95239c30-acd2-11ea-b23b-538135d883d3_meanstac79ffc96e"},{"name":"job_activity_identifier: - 9684e190-addd-11ea-b585-b732f60c92ae_1virtualf677d831"},{"name":"job_activity_identifier: - 9e362580-b6a1-11ea-bea2-bb46dce46373_multiplecc5b47a7"},{"name":"job_activity_identifier: - a1165240-b294-11ea-8bf2-839f79b825e2_1virtualf677d831"},{"name":"job_activity_identifier: - a234a210-b74b-11ea-b733-c347d385b7a4_1virtualf677d831"},{"name":"job_activity_identifier: - a2b0caa0-b450-11ea-8b27-dbd1acca2341_1virtualf677d831"},{"name":"job_activity_identifier: - a38a99b0-b9ff-11ea-a17f-8b84e0af5c27_1virtualf677d831"},{"name":"job_activity_identifier: - a59cb560-b7d1-11ea-b4bd-6b3c845157a6_1virtualf677d831"},{"name":"job_activity_identifier: - a62e8e80-b5f7-11ea-ab57-37622f811a5d_1virtualf677d831"},{"name":"job_activity_identifier: - a6668480-b0bf-11ea-9ff2-4974bd83efb3_1virtualf677d831"},{"name":"job_activity_identifier: - a84447f0-aecc-11ea-9ab9-61ae8fc8bf54_1virtualf677d831"},{"name":"job_activity_identifier: - aa67d690-b814-11ea-b225-a3e27fea00ea_1virtualf677d831"},{"name":"job_activity_identifier: - ac852ac0-abff-11ea-b5f5-cb0f448960ef_meanstac79ffc96e"},{"name":"job_activity_identifier: - b00f8cb0-afb2-11ea-aff3-a16884aa59b7_1virtualf677d831"},{"name":"job_activity_identifier: - b1efafe0-b8dd-11ea-b189-7b328750f26a_1virtualf677d831"},{"name":"job_activity_identifier: - b2d182c0-aa97-11ea-8c93-491550becb6c_1virtualf677d831"},{"name":"job_activity_identifier: - b6f7c330-a9ef-11ea-bc92-c9a2eea50073_1virtualf677d831"},{"name":"job_activity_identifier: - b79af380-b902-11ea-81c9-bd7cc68bad11_1virtualf677d831"},{"name":"job_activity_identifier: - b80bdf40-b2d7-11ea-a87f-c9d3fe4cad21_1virtualf677d831"},{"name":"job_activity_identifier: - be0eeb80-aa17-11ea-aa7d-db1cbde594f9_1virtualf677d831"},{"name":"job_activity_identifier: - be6b84d0-ad14-11ea-b312-41c7d051d8a4_1virtualf677d831"},{"name":"job_activity_identifier: - c09e9670-af4e-11ea-9559-af107ab67eef_1virtualf677d831"}]}' - recorded_at: Wed, 07 Oct 2020 21:36:22 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_access_fetch.yml deleted file mode 100644 index cffd77bc..00000000 --- a/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 4e1025e88866407c92908ca56acfce5a - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:31:49 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:31:49 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/floating_ips?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:31:49 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d8b529ca60c951ba928cb259738cfcce21601595109; expires=Sat, 31-Oct-20 - 23:31:49 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fab8bfa8ca98-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881b07710000ca98fb2e4200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 95f0e6fb-acd9-4529-8b68-d1e8bcb013e6 - X-Trace-Id: - - 5f5a2e930c36d10d - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips?limit=50"},"total_count":2,"floating_ips":[{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","status":"available","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"public_gateway","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}},{"id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","address":"127.0.0.80","name":"cloudform","status":"available","created_at":"2020-03-31T02:23:13Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"network_interface","primary_ipv4_address":"127.0.0.4","name":"eth0","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3"},"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:31:49 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 2c408635..00000000 --- a/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - bc9cd5a9ec9c4028b2c0ba7f05e3c3a2 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:31:50 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=472bbcaeccd3a83e93006ec9f2aa6e9e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:31:50 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/floating_ips?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:31:51 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2717028f5983fde26094aa9ecb0fbc311601595110; expires=Sat, 31-Oct-20 - 23:31:50 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fac30b5cab9a-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881b0de30000ab9a00ac8200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 5e4f84b7-a204-48c2-b4b0-85f978629ab4 - X-Trace-Id: - - 4ecae10f379be585 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips?limit=50"},"total_count":2,"floating_ips":[{"id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","address":"127.0.0.80","name":"cloudform","status":"available","created_at":"2020-03-31T02:23:13Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"network_interface","primary_ipv4_address":"127.0.0.4","name":"eth0","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3"},"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}},{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","status":"available","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"public_gateway","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:31:51 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_get_all.yml deleted file mode 100644 index 3dd03762..00000000 --- a/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_get_all.yml +++ /dev/null @@ -1,176 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - d2f8cc00c1e445dcbe86e629f6cd240b - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:31:55 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=ce3971e5fa3597045425df8136eb3e4e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:31:55 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/floating_ips?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:31:55 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d560be9724a177346d18f555efc5492ce1601595115; expires=Sat, 31-Oct-20 - 23:31:55 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9faddfd5dcaa8-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881b1ebf0000caa823bd4200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 921c7887-3391-4543-903a-97defe64bce9 - X-Trace-Id: - - 14b4170d3f93ae17 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips?limit=50"},"total_count":2,"floating_ips":[{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","status":"available","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"public_gateway","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}},{"id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","address":"127.0.0.80","name":"cloudform","status":"available","created_at":"2020-03-31T02:23:13Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"network_interface","primary_ipv4_address":"127.0.0.4","name":"eth0","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3"},"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:31:55 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/floating_ips?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:31:56 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d11797df5ddd27b4967fc80f6cfce26e31601595115; expires=Sat, 31-Oct-20 - 23:31:55 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fae25c4cf999-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881b21770000f99983933200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - f7179f9f-804c-41fe-a80e-d54914e0d1fe - X-Trace-Id: - - 5823c67e776b94a1 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips?limit=50"},"total_count":2,"floating_ips":[{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","status":"available","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"public_gateway","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}},{"id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","address":"127.0.0.80","name":"cloudform","status":"available","created_at":"2020-03-31T02:23:13Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"network_interface","primary_ipv4_address":"127.0.0.4","name":"eth0","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3"},"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:31:56 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 3eab11de..00000000 --- a/spec/vcr/Test_vpc_API/floating_ips_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - a1750a99bada474ea35ea228e1ae88a7 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:31:57 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:31:57 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/floating_ips?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:31:58 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d9efb9c0e997e5cf60089b5a0a90e56f91601595117; expires=Sat, 31-Oct-20 - 23:31:57 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9faed3850f97d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881b28470000f97d9cb09200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 331f6222-7c00-4d5c-b7ae-2946b82b8bf1 - X-Trace-Id: - - 48cb23c5210560c1 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips?limit=50"},"total_count":2,"floating_ips":[{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","status":"available","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"public_gateway","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}},{"id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","address":"127.0.0.80","name":"cloudform","status":"available","created_at":"2020-03-31T02:23:13Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"network_interface","primary_ipv4_address":"127.0.0.4","name":"eth0","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3"},"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:31:58 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_access_fetch.yml deleted file mode 100644 index ed2edeed..00000000 --- a/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - f7fa274bd96449089b9d4f6c2e57a1d7 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:19 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8c0c2931b9d06a6e4ca750bd09ceb802; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:20 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:20 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=db2e8f6ef9fe449db9f9ae0420a40fe9c1601595200; expires=Sat, 31-Oct-20 - 23:33:20 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fcf0cd97caa4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881c6a7f0000caa43da64200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - bad43429-ee47-4259-a276-961f40d221e6 - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?limit=50"},"total_count":0,"flow_log_collectors":[]} - - ' - recorded_at: Thu, 01 Oct 2020 23:33:20 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 784b777b..00000000 --- a/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 3ca4bda64c064955a721309418a72fb6 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:23 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=9f51bef8ae051439dd0a24cae543baf1; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:23 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:23 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2e79bde206fbdba07a93eb36ffe0a68c1601595203; expires=Sat, 31-Oct-20 - 23:33:23 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd06cd98f98d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881c783e0000f98d2a0a2200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - faf8ff49-b9f8-4f73-aa9a-e7c3a890e957 - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?limit=50"},"total_count":0,"flow_log_collectors":[]} - - ' - recorded_at: Thu, 01 Oct 2020 23:33:23 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_get_all.yml deleted file mode 100644 index e5aeb40a..00000000 --- a/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_get_all.yml +++ /dev/null @@ -1,172 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 4faacb7a74d5491b9fbdb9409c489f8b - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:24 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=6bce74f4b20aa49018139f61a66aa0cb; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:24 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:24 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dc184678f7023184890bdf0b12511da211601595204; expires=Sat, 31-Oct-20 - 23:33:24 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd0c2b0af991-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881c7b940000f991659c6200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 4cac6c9a-9ac7-446b-b466-c23639863a8d - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?limit=50"},"total_count":0,"flow_log_collectors":[]} - - ' - recorded_at: Thu, 01 Oct 2020 23:33:24 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:24 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dc184678f7023184890bdf0b12511da211601595204; expires=Sat, 31-Oct-20 - 23:33:24 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd0dfee5f991-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881c7cb80000f9915d123200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 37334fe7-fe44-4332-bde0-99ac180842e1 - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?limit=50"},"total_count":0,"flow_log_collectors":[]} - - ' - recorded_at: Thu, 01 Oct 2020 23:33:24 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 7c0d7493..00000000 --- a/spec/vcr/Test_vpc_API/flowlog_collectors_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - e4632fa0531f402c912e15777ae30ca4 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:26 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=9f51bef8ae051439dd0a24cae543baf1; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:26 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:26 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dabe5b41c14eeb10f9684cf9dc1632f731601595206; expires=Sat, 31-Oct-20 - 23:33:26 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd17092dcacc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881c82680000cacc8caee200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 0d191866-55ab-4001-9b10-13e2467a1d85 - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/flow_log_collectors?limit=50"},"total_count":0,"flow_log_collectors":[]} - - ' - recorded_at: Thu, 01 Oct 2020 23:33:26 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_access_fetch.yml deleted file mode 100644 index 98befdef..00000000 --- a/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 6817a42e5bdc4899b2c4799ba46af6f5 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:29 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=53ae5666c1df4baec6156d0c05df66c2; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:29 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:29 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d09f3c6ff92b0237f6a843775efacc5dc1601595209; expires=Sat, 31-Oct-20 - 23:33:29 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd2b4b09ab82-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881c8f0b0000ab82721ec200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 554e4e57-b919-4ea2-a96d-58001a5cde17 - X-Request-Id: - - 554e4e57-b919-4ea2-a96d-58001a5cde17 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:33:29 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 11f0aeec..00000000 --- a/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - ba003d76c7194ed1b4d4fd6a77d08153 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:31 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=9c8a8988c52cfbd3f315ff68a80d4a81; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:31 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:31 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d827a919eb358de2a50215b31869acbcb1601595211; expires=Sat, 31-Oct-20 - 23:33:31 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd388a31aba0-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881c97570000aba09d935200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 721525f9-2343-446f-93fe-c3d1be510c7a - X-Request-Id: - - 721525f9-2343-446f-93fe-c3d1be510c7a - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:33:31 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_get_all.yml deleted file mode 100644 index 7ab5f26f..00000000 --- a/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_get_all.yml +++ /dev/null @@ -1,148 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - eec66c5c905a4c818735f6225bd61ea6 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:32 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8c0c2931b9d06a6e4ca750bd09ceb802; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:33 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:33 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dffd62d6087797869069346750715d7441601595213; expires=Sat, 31-Oct-20 - 23:33:33 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd41bad5ab64-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881c9d120000ab6407240200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 8e3845b3-f863-4cc5-8480-e6bb83943ef6 - X-Request-Id: - - 8e3845b3-f863-4cc5-8480-e6bb83943ef6 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:33:33 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:33 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dea7ad62d26e77ea4ddc95b60f53978361601595213; expires=Sat, 31-Oct-20 - 23:33:33 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd439c66ca94-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881c9e3c0000ca948411c200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 16f66a62-9699-4724-abf4-b3bc00470b96 - X-Request-Id: - - 16f66a62-9699-4724-abf4-b3bc00470b96 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:33:33 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_get_an_instance.yml deleted file mode 100644 index bf5a660a..00000000 --- a/spec/vcr/Test_vpc_API/ike_policies_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - c64ef3e8dc194a56b8ac1af498ca675c - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:41 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=eae45e398a21d7cf494227da2e8e0b59; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:41 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:42 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d19b381d2772db2db8732bff5e74947eb1601595221; expires=Sat, 31-Oct-20 - 23:33:41 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd796d50f981-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881cbfde0000f981fdad4200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 7da655a4-0b53-4c3f-9227-f4a300c4161e - X-Request-Id: - - 7da655a4-0b53-4c3f-9227-f4a300c4161e - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:33:42 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/images_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/images_vpc_API/can_access_fetch.yml deleted file mode 100644 index 34cf6aa7..00000000 --- a/spec/vcr/Test_vpc_API/images_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,187 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 2b989e05a15441b58901d921692b3678 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:45 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:45 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/images?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:46 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d7426996b8d55179c55ee8e904debd6b61601595225; expires=Sat, 31-Oct-20 - 23:33:45 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd925addca90-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881ccf770000ca90d39c1200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 685ff65c74df1352d944f02d8fb2094d - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 685ff65c74df1352d944f02d8fb2094d - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/images?limit=50"},"limit":50,"images":[{"id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","crn":"crn:v1:bluemix:public:is:us-east:a/811f8abfbd32425597dc7ba40da98fa6::image:r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"5807b5832a8741179b2e06ca2d2b3b96","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/5807b5832a8741179b2e06ca2d2b3b96"},"created_at":"2020-08-10T15:01:51Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-8-amd64","name":"red-8-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 8.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"8.x - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","name":"ibm-debian-9-12-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-05-12T14:47:03Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","name":"ibm-ubuntu-18-04-1-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-04-10T15:31:34Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-1adf8d33-af63-47c6-9ad7-dd0bac1ca573","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:1adf8d33-af63-47c6-9ad7-dd0bac1ca573","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-1adf8d33-af63-47c6-9ad7-dd0bac1ca573","name":"myimport","minimum_provisioned_size":100,"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8"},"created_at":"2020-04-08T19:35:44Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:d82ac057-feab-4d4b-968c-8557c215c17e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","minimum_provisioned_size":100,"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8"},"created_at":"2020-03-31T02:14:55Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","name":"cloudformstry","minimum_provisioned_size":100,"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/345c433098294722ba52d9039133e8cf"},"created_at":"2020-03-31T01:52:40Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-ea70cf5b-93f0-4871-a31e-f0030484149e","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-ea70cf5b-93f0-4871-a31e-f0030484149e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-ea70cf5b-93f0-4871-a31e-f0030484149e","name":"ibm-debian-9-12-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-25T14:47:03Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","name":"ibm-debian-9-9-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-13T17:51:25Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-13T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-60d279a0-b328-40eb-a379-595ca53bee18","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-60d279a0-b328-40eb-a379-595ca53bee18","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-60d279a0-b328-40eb-a379-595ca53bee18","name":"ibm-redhat-7-6-amd64-sap-hana-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-02-06T06:00:01Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-hana","name":"red-7-amd64-sap-hana","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.6 for SAP HANA (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.6 for SAP HANA"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-f5387730-7a4b-4f71-9a85-13b05b137953","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-f5387730-7a4b-4f71-9a85-13b05b137953","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-f5387730-7a4b-4f71-9a85-13b05b137953","name":"ibm-redhat-7-6-amd64-sap-applications-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-02-06T06:00:01Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-applications","name":"red-7-amd64-sap-applications","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x for SAP Applications (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x for Applications"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","name":"ibm-windows-server-2016-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-22T16:40:36Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","name":"ibm-windows-server-2012-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-21T19:17:57Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","name":"ibm-windows-server-2012-r2-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-21T18:57:49Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-253c540d-1b96-4e55-a1c3-7341616c7b19","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-253c540d-1b96-4e55-a1c3-7341616c7b19","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-253c540d-1b96-4e55-a1c3-7341616c7b19","name":"ibm-windows-server-2016-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-07T18:51:55Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-9d8b336f-c203-4860-8234-38fcf8334793","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-9d8b336f-c203-4860-8234-38fcf8334793","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-9d8b336f-c203-4860-8234-38fcf8334793","name":"ibm-windows-server-2012-r2-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-06T09:48:57Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-a219157a-9862-4360-be63-b912320a399a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-a219157a-9862-4360-be63-b912320a399a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-a219157a-9862-4360-be63-b912320a399a","name":"ibm-windows-server-2012-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-05T15:43:59Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"82c23b8c-6039-461e-a2b0-e909ce286f8d","crn":"crn:v1:bluemix:public:is:us-east:::image:82c23b8c-6039-461e-a2b0-e909ce286f8d","href":"https://us-east.iaas.cloud.ibm.com/v1/images/82c23b8c-6039-461e-a2b0-e909ce286f8d","name":"ibm-debian-9-0-64-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T17:51:25Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","name":"ibm-debian-9-9-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T17:51:25Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"86120242-0148-4c41-8882-c6eb9d0c396e","crn":"crn:v1:bluemix:public:is:us-east:::image:86120242-0148-4c41-8882-c6eb9d0c396e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/86120242-0148-4c41-8882-c6eb9d0c396e","name":"ibm-windows-2016-full-std-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T11:09:16Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","name":"ibm-windows-server-2016-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T11:09:16Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"9de244af-e231-4aae-a958-aa60d735c826","crn":"crn:v1:bluemix:public:is:us-east:::image:9de244af-e231-4aae-a958-aa60d735c826","href":"https://us-east.iaas.cloud.ibm.com/v1/images/9de244af-e231-4aae-a958-aa60d735c826","name":"ibm-windows-2016-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T14:07:34Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"b3442350-a35d-4b33-b995-05c5f1155668","crn":"crn:v1:bluemix:public:is:us-east:::image:b3442350-a35d-4b33-b995-05c5f1155668","href":"https://us-east.iaas.cloud.ibm.com/v1/images/b3442350-a35d-4b33-b995-05c5f1155668","name":"ibm-windows-2012-r2-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:56:35Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","name":"ibm-windows-server-2012-r2-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:56:35Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","crn":"crn:v1:bluemix:public:is:us-east:::image:7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","href":"https://us-east.iaas.cloud.ibm.com/v1/images/7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","name":"ibm-windows-2012-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:30:08Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","name":"ibm-windows-server-2012-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:30:08Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"f8ae058e-4273-42e9-b549-68d09219e9e5","crn":"crn:v1:bluemix:public:is:us-east:::image:f8ae058e-4273-42e9-b549-68d09219e9e5","href":"https://us-east.iaas.cloud.ibm.com/v1/images/f8ae058e-4273-42e9-b549-68d09219e9e5","name":"ibm-centos-7-0-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"987cb0ec-4f2b-4733-a232-f1a3efc727d8","crn":"crn:v1:bluemix:public:is:us-east:::image:987cb0ec-4f2b-4733-a232-f1a3efc727d8","href":"https://us-east.iaas.cloud.ibm.com/v1/images/987cb0ec-4f2b-4733-a232-f1a3efc727d8","name":"ibm-windows-2012-r2-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-14T00:00:00Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"6e9208e4-b757-4530-a22e-66722464c334","crn":"crn:v1:bluemix:public:is:us-east:::image:6e9208e4-b757-4530-a22e-66722464c334","href":"https://us-east.iaas.cloud.ibm.com/v1/images/6e9208e4-b757-4530-a22e-66722464c334","name":"ibm-windows-2016-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-13T00:00:00Z","file":{"size":32},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"a63864aa-c766-42d3-8bd0-999fdb87fb42","crn":"crn:v1:bluemix:public:is:us-east:::image:a63864aa-c766-42d3-8bd0-999fdb87fb42","href":"https://us-east.iaas.cloud.ibm.com/v1/images/a63864aa-c766-42d3-8bd0-999fdb87fb42","name":"ibm-windows-2012-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-24T00:00:00Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"a573bfb9-4e55-481f-9060-31d757155ded","crn":"crn:v1:bluemix:public:is:us-east:::image:a573bfb9-4e55-481f-9060-31d757155ded","href":"https://us-east.iaas.cloud.ibm.com/v1/images/a573bfb9-4e55-481f-9060-31d757155ded","name":"ibm-redhat-7-0-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-18T00:00:00Z","file":{"size":6},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-931515d2-fcc3-11e9-896d-3baa2797200f","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-931515d2-fcc3-11e9-896d-3baa2797200f","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-931515d2-fcc3-11e9-896d-3baa2797200f","name":"ibm-redhat-7-6-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-18T00:00:00Z","file":{"size":6},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"99edcc54-c513-4d46-9f5b-36243a1e50e2","crn":"crn:v1:bluemix:public:is:us-east:::image:99edcc54-c513-4d46-9f5b-36243a1e50e2","href":"https://us-east.iaas.cloud.ibm.com/v1/images/99edcc54-c513-4d46-9f5b-36243a1e50e2","name":"ibm-centos-7-0-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","name":"ibm-centos-7-6-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"04f4c424-a90d-4c2b-a77f-db67ff9b1629","crn":"crn:v1:bluemix:public:is:us-east:::image:04f4c424-a90d-4c2b-a77f-db67ff9b1629","href":"https://us-east.iaas.cloud.ibm.com/v1/images/04f4c424-a90d-4c2b-a77f-db67ff9b1629","name":"ibm-ubuntu-16-04-05-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-25T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","name":"ibm-ubuntu-16-04-5-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-25T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"3f323501-667e-4583-b081-19cca9ac55fd","crn":"crn:v1:bluemix:public:is:us-east:::image:3f323501-667e-4583-b081-19cca9ac55fd","href":"https://us-east.iaas.cloud.ibm.com/v1/images/3f323501-667e-4583-b081-19cca9ac55fd","name":"ibm-debian-9-0-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-24T00:00:00Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"bf962ae4-4140-462b-8fa3-56fa1b49b06a","crn":"crn:v1:bluemix:public:is:us-east:::image:bf962ae4-4140-462b-8fa3-56fa1b49b06a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/bf962ae4-4140-462b-8fa3-56fa1b49b06a","name":"ibm-ubuntu-18-04-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-08T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-14140f94-fcc4-11e9-96e7-a72723715315","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-14140f94-fcc4-11e9-96e7-a72723715315","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-14140f94-fcc4-11e9-96e7-a72723715315","name":"ibm-ubuntu-18-04-1-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-08T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"}]}' - recorded_at: Thu, 01 Oct 2020 23:33:46 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/images_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/images_vpc_API/can_access_has_count_.yml deleted file mode 100644 index b8e6fcfc..00000000 --- a/spec/vcr/Test_vpc_API/images_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,187 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 2bb201fa86fb4fe9822f704d3096bd52 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:46 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:47 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/images?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:47 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dd8a1322b11f7e3bdab20a2da2b097fb31601595227; expires=Sat, 31-Oct-20 - 23:33:47 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fd99aca2f99d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881cd40a0000f99da706a200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - e393350f9568978410b2303d871e741d - X-Content-Type-Options: - - nosniff - X-Request-Id: - - e393350f9568978410b2303d871e741d - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/images?limit=50"},"limit":50,"images":[{"id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","crn":"crn:v1:bluemix:public:is:us-east:a/811f8abfbd32425597dc7ba40da98fa6::image:r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"5807b5832a8741179b2e06ca2d2b3b96","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/5807b5832a8741179b2e06ca2d2b3b96"},"created_at":"2020-08-10T15:01:51Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-8-amd64","name":"red-8-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 8.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"8.x - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","name":"ibm-debian-9-12-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-05-12T14:47:03Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","name":"ibm-ubuntu-18-04-1-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-04-10T15:31:34Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-1adf8d33-af63-47c6-9ad7-dd0bac1ca573","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:1adf8d33-af63-47c6-9ad7-dd0bac1ca573","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-1adf8d33-af63-47c6-9ad7-dd0bac1ca573","name":"myimport","minimum_provisioned_size":100,"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8"},"created_at":"2020-04-08T19:35:44Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:d82ac057-feab-4d4b-968c-8557c215c17e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","minimum_provisioned_size":100,"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8"},"created_at":"2020-03-31T02:14:55Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","name":"cloudformstry","minimum_provisioned_size":100,"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/345c433098294722ba52d9039133e8cf"},"created_at":"2020-03-31T01:52:40Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-ea70cf5b-93f0-4871-a31e-f0030484149e","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-ea70cf5b-93f0-4871-a31e-f0030484149e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-ea70cf5b-93f0-4871-a31e-f0030484149e","name":"ibm-debian-9-12-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-25T14:47:03Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","name":"ibm-debian-9-9-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-13T17:51:25Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-13T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-60d279a0-b328-40eb-a379-595ca53bee18","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-60d279a0-b328-40eb-a379-595ca53bee18","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-60d279a0-b328-40eb-a379-595ca53bee18","name":"ibm-redhat-7-6-amd64-sap-hana-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-02-06T06:00:01Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-hana","name":"red-7-amd64-sap-hana","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.6 for SAP HANA (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.6 for SAP HANA"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-f5387730-7a4b-4f71-9a85-13b05b137953","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-f5387730-7a4b-4f71-9a85-13b05b137953","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-f5387730-7a4b-4f71-9a85-13b05b137953","name":"ibm-redhat-7-6-amd64-sap-applications-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-02-06T06:00:01Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-applications","name":"red-7-amd64-sap-applications","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x for SAP Applications (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x for Applications"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","name":"ibm-windows-server-2016-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-22T16:40:36Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","name":"ibm-windows-server-2012-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-21T19:17:57Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","name":"ibm-windows-server-2012-r2-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-21T18:57:49Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-253c540d-1b96-4e55-a1c3-7341616c7b19","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-253c540d-1b96-4e55-a1c3-7341616c7b19","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-253c540d-1b96-4e55-a1c3-7341616c7b19","name":"ibm-windows-server-2016-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-07T18:51:55Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-9d8b336f-c203-4860-8234-38fcf8334793","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-9d8b336f-c203-4860-8234-38fcf8334793","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-9d8b336f-c203-4860-8234-38fcf8334793","name":"ibm-windows-server-2012-r2-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-06T09:48:57Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-a219157a-9862-4360-be63-b912320a399a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-a219157a-9862-4360-be63-b912320a399a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-a219157a-9862-4360-be63-b912320a399a","name":"ibm-windows-server-2012-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-05T15:43:59Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"82c23b8c-6039-461e-a2b0-e909ce286f8d","crn":"crn:v1:bluemix:public:is:us-east:::image:82c23b8c-6039-461e-a2b0-e909ce286f8d","href":"https://us-east.iaas.cloud.ibm.com/v1/images/82c23b8c-6039-461e-a2b0-e909ce286f8d","name":"ibm-debian-9-0-64-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T17:51:25Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","name":"ibm-debian-9-9-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T17:51:25Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"86120242-0148-4c41-8882-c6eb9d0c396e","crn":"crn:v1:bluemix:public:is:us-east:::image:86120242-0148-4c41-8882-c6eb9d0c396e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/86120242-0148-4c41-8882-c6eb9d0c396e","name":"ibm-windows-2016-full-std-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T11:09:16Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","name":"ibm-windows-server-2016-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T11:09:16Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"9de244af-e231-4aae-a958-aa60d735c826","crn":"crn:v1:bluemix:public:is:us-east:::image:9de244af-e231-4aae-a958-aa60d735c826","href":"https://us-east.iaas.cloud.ibm.com/v1/images/9de244af-e231-4aae-a958-aa60d735c826","name":"ibm-windows-2016-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T14:07:34Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"b3442350-a35d-4b33-b995-05c5f1155668","crn":"crn:v1:bluemix:public:is:us-east:::image:b3442350-a35d-4b33-b995-05c5f1155668","href":"https://us-east.iaas.cloud.ibm.com/v1/images/b3442350-a35d-4b33-b995-05c5f1155668","name":"ibm-windows-2012-r2-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:56:35Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","name":"ibm-windows-server-2012-r2-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:56:35Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","crn":"crn:v1:bluemix:public:is:us-east:::image:7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","href":"https://us-east.iaas.cloud.ibm.com/v1/images/7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","name":"ibm-windows-2012-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:30:08Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","name":"ibm-windows-server-2012-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:30:08Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"f8ae058e-4273-42e9-b549-68d09219e9e5","crn":"crn:v1:bluemix:public:is:us-east:::image:f8ae058e-4273-42e9-b549-68d09219e9e5","href":"https://us-east.iaas.cloud.ibm.com/v1/images/f8ae058e-4273-42e9-b549-68d09219e9e5","name":"ibm-centos-7-0-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"987cb0ec-4f2b-4733-a232-f1a3efc727d8","crn":"crn:v1:bluemix:public:is:us-east:::image:987cb0ec-4f2b-4733-a232-f1a3efc727d8","href":"https://us-east.iaas.cloud.ibm.com/v1/images/987cb0ec-4f2b-4733-a232-f1a3efc727d8","name":"ibm-windows-2012-r2-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-14T00:00:00Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"6e9208e4-b757-4530-a22e-66722464c334","crn":"crn:v1:bluemix:public:is:us-east:::image:6e9208e4-b757-4530-a22e-66722464c334","href":"https://us-east.iaas.cloud.ibm.com/v1/images/6e9208e4-b757-4530-a22e-66722464c334","name":"ibm-windows-2016-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-13T00:00:00Z","file":{"size":32},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"a63864aa-c766-42d3-8bd0-999fdb87fb42","crn":"crn:v1:bluemix:public:is:us-east:::image:a63864aa-c766-42d3-8bd0-999fdb87fb42","href":"https://us-east.iaas.cloud.ibm.com/v1/images/a63864aa-c766-42d3-8bd0-999fdb87fb42","name":"ibm-windows-2012-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-24T00:00:00Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"a573bfb9-4e55-481f-9060-31d757155ded","crn":"crn:v1:bluemix:public:is:us-east:::image:a573bfb9-4e55-481f-9060-31d757155ded","href":"https://us-east.iaas.cloud.ibm.com/v1/images/a573bfb9-4e55-481f-9060-31d757155ded","name":"ibm-redhat-7-0-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-18T00:00:00Z","file":{"size":6},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-931515d2-fcc3-11e9-896d-3baa2797200f","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-931515d2-fcc3-11e9-896d-3baa2797200f","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-931515d2-fcc3-11e9-896d-3baa2797200f","name":"ibm-redhat-7-6-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-18T00:00:00Z","file":{"size":6},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"99edcc54-c513-4d46-9f5b-36243a1e50e2","crn":"crn:v1:bluemix:public:is:us-east:::image:99edcc54-c513-4d46-9f5b-36243a1e50e2","href":"https://us-east.iaas.cloud.ibm.com/v1/images/99edcc54-c513-4d46-9f5b-36243a1e50e2","name":"ibm-centos-7-0-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","name":"ibm-centos-7-6-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"04f4c424-a90d-4c2b-a77f-db67ff9b1629","crn":"crn:v1:bluemix:public:is:us-east:::image:04f4c424-a90d-4c2b-a77f-db67ff9b1629","href":"https://us-east.iaas.cloud.ibm.com/v1/images/04f4c424-a90d-4c2b-a77f-db67ff9b1629","name":"ibm-ubuntu-16-04-05-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-25T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","name":"ibm-ubuntu-16-04-5-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-25T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"3f323501-667e-4583-b081-19cca9ac55fd","crn":"crn:v1:bluemix:public:is:us-east:::image:3f323501-667e-4583-b081-19cca9ac55fd","href":"https://us-east.iaas.cloud.ibm.com/v1/images/3f323501-667e-4583-b081-19cca9ac55fd","name":"ibm-debian-9-0-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-24T00:00:00Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"bf962ae4-4140-462b-8fa3-56fa1b49b06a","crn":"crn:v1:bluemix:public:is:us-east:::image:bf962ae4-4140-462b-8fa3-56fa1b49b06a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/bf962ae4-4140-462b-8fa3-56fa1b49b06a","name":"ibm-ubuntu-18-04-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-08T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-14140f94-fcc4-11e9-96e7-a72723715315","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-14140f94-fcc4-11e9-96e7-a72723715315","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-14140f94-fcc4-11e9-96e7-a72723715315","name":"ibm-ubuntu-18-04-1-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-08T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"}]}' - recorded_at: Thu, 01 Oct 2020 23:33:47 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/images_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/images_vpc_API/can_get_all.yml deleted file mode 100644 index d1030104..00000000 --- a/spec/vcr/Test_vpc_API/images_vpc_API/can_get_all.yml +++ /dev/null @@ -1,187 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - b73aec9ff6974bc8a1e1e46abe46e2b5 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:48 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=ce3971e5fa3597045425df8136eb3e4e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:48 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/images?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:48 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dbb8a66fdcce694f7643d3c383e8396d71601595228; expires=Sat, 31-Oct-20 - 23:33:48 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fda1799ef995-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881cd8ea0000f995fa87e200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 63e13e5cac50101dd6e664e06cdcaf94 - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 63e13e5cac50101dd6e664e06cdcaf94 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/images?limit=50"},"limit":50,"images":[{"id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","crn":"crn:v1:bluemix:public:is:us-east:a/811f8abfbd32425597dc7ba40da98fa6::image:r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"5807b5832a8741179b2e06ca2d2b3b96","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/5807b5832a8741179b2e06ca2d2b3b96"},"created_at":"2020-08-10T15:01:51Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-8-amd64","name":"red-8-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 8.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"8.x - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","name":"ibm-debian-9-12-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-05-12T14:47:03Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","name":"ibm-ubuntu-18-04-1-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-04-10T15:31:34Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-1adf8d33-af63-47c6-9ad7-dd0bac1ca573","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:1adf8d33-af63-47c6-9ad7-dd0bac1ca573","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-1adf8d33-af63-47c6-9ad7-dd0bac1ca573","name":"myimport","minimum_provisioned_size":100,"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8"},"created_at":"2020-04-08T19:35:44Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:d82ac057-feab-4d4b-968c-8557c215c17e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","minimum_provisioned_size":100,"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8"},"created_at":"2020-03-31T02:14:55Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","name":"cloudformstry","minimum_provisioned_size":100,"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/345c433098294722ba52d9039133e8cf"},"created_at":"2020-03-31T01:52:40Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-ea70cf5b-93f0-4871-a31e-f0030484149e","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-ea70cf5b-93f0-4871-a31e-f0030484149e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-ea70cf5b-93f0-4871-a31e-f0030484149e","name":"ibm-debian-9-12-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-25T14:47:03Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","name":"ibm-debian-9-9-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-13T17:51:25Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-13T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-60d279a0-b328-40eb-a379-595ca53bee18","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-60d279a0-b328-40eb-a379-595ca53bee18","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-60d279a0-b328-40eb-a379-595ca53bee18","name":"ibm-redhat-7-6-amd64-sap-hana-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-02-06T06:00:01Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-hana","name":"red-7-amd64-sap-hana","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.6 for SAP HANA (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.6 for SAP HANA"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-f5387730-7a4b-4f71-9a85-13b05b137953","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-f5387730-7a4b-4f71-9a85-13b05b137953","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-f5387730-7a4b-4f71-9a85-13b05b137953","name":"ibm-redhat-7-6-amd64-sap-applications-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-02-06T06:00:01Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-applications","name":"red-7-amd64-sap-applications","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x for SAP Applications (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x for Applications"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","name":"ibm-windows-server-2016-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-22T16:40:36Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","name":"ibm-windows-server-2012-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-21T19:17:57Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","name":"ibm-windows-server-2012-r2-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-21T18:57:49Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-253c540d-1b96-4e55-a1c3-7341616c7b19","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-253c540d-1b96-4e55-a1c3-7341616c7b19","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-253c540d-1b96-4e55-a1c3-7341616c7b19","name":"ibm-windows-server-2016-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-07T18:51:55Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-9d8b336f-c203-4860-8234-38fcf8334793","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-9d8b336f-c203-4860-8234-38fcf8334793","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-9d8b336f-c203-4860-8234-38fcf8334793","name":"ibm-windows-server-2012-r2-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-06T09:48:57Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-a219157a-9862-4360-be63-b912320a399a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-a219157a-9862-4360-be63-b912320a399a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-a219157a-9862-4360-be63-b912320a399a","name":"ibm-windows-server-2012-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-05T15:43:59Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"82c23b8c-6039-461e-a2b0-e909ce286f8d","crn":"crn:v1:bluemix:public:is:us-east:::image:82c23b8c-6039-461e-a2b0-e909ce286f8d","href":"https://us-east.iaas.cloud.ibm.com/v1/images/82c23b8c-6039-461e-a2b0-e909ce286f8d","name":"ibm-debian-9-0-64-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T17:51:25Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","name":"ibm-debian-9-9-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T17:51:25Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"86120242-0148-4c41-8882-c6eb9d0c396e","crn":"crn:v1:bluemix:public:is:us-east:::image:86120242-0148-4c41-8882-c6eb9d0c396e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/86120242-0148-4c41-8882-c6eb9d0c396e","name":"ibm-windows-2016-full-std-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T11:09:16Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","name":"ibm-windows-server-2016-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T11:09:16Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"9de244af-e231-4aae-a958-aa60d735c826","crn":"crn:v1:bluemix:public:is:us-east:::image:9de244af-e231-4aae-a958-aa60d735c826","href":"https://us-east.iaas.cloud.ibm.com/v1/images/9de244af-e231-4aae-a958-aa60d735c826","name":"ibm-windows-2016-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T14:07:34Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"b3442350-a35d-4b33-b995-05c5f1155668","crn":"crn:v1:bluemix:public:is:us-east:::image:b3442350-a35d-4b33-b995-05c5f1155668","href":"https://us-east.iaas.cloud.ibm.com/v1/images/b3442350-a35d-4b33-b995-05c5f1155668","name":"ibm-windows-2012-r2-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:56:35Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","name":"ibm-windows-server-2012-r2-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:56:35Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","crn":"crn:v1:bluemix:public:is:us-east:::image:7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","href":"https://us-east.iaas.cloud.ibm.com/v1/images/7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","name":"ibm-windows-2012-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:30:08Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","name":"ibm-windows-server-2012-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:30:08Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"f8ae058e-4273-42e9-b549-68d09219e9e5","crn":"crn:v1:bluemix:public:is:us-east:::image:f8ae058e-4273-42e9-b549-68d09219e9e5","href":"https://us-east.iaas.cloud.ibm.com/v1/images/f8ae058e-4273-42e9-b549-68d09219e9e5","name":"ibm-centos-7-0-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"987cb0ec-4f2b-4733-a232-f1a3efc727d8","crn":"crn:v1:bluemix:public:is:us-east:::image:987cb0ec-4f2b-4733-a232-f1a3efc727d8","href":"https://us-east.iaas.cloud.ibm.com/v1/images/987cb0ec-4f2b-4733-a232-f1a3efc727d8","name":"ibm-windows-2012-r2-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-14T00:00:00Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"6e9208e4-b757-4530-a22e-66722464c334","crn":"crn:v1:bluemix:public:is:us-east:::image:6e9208e4-b757-4530-a22e-66722464c334","href":"https://us-east.iaas.cloud.ibm.com/v1/images/6e9208e4-b757-4530-a22e-66722464c334","name":"ibm-windows-2016-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-13T00:00:00Z","file":{"size":32},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"a63864aa-c766-42d3-8bd0-999fdb87fb42","crn":"crn:v1:bluemix:public:is:us-east:::image:a63864aa-c766-42d3-8bd0-999fdb87fb42","href":"https://us-east.iaas.cloud.ibm.com/v1/images/a63864aa-c766-42d3-8bd0-999fdb87fb42","name":"ibm-windows-2012-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-24T00:00:00Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"a573bfb9-4e55-481f-9060-31d757155ded","crn":"crn:v1:bluemix:public:is:us-east:::image:a573bfb9-4e55-481f-9060-31d757155ded","href":"https://us-east.iaas.cloud.ibm.com/v1/images/a573bfb9-4e55-481f-9060-31d757155ded","name":"ibm-redhat-7-0-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-18T00:00:00Z","file":{"size":6},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-931515d2-fcc3-11e9-896d-3baa2797200f","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-931515d2-fcc3-11e9-896d-3baa2797200f","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-931515d2-fcc3-11e9-896d-3baa2797200f","name":"ibm-redhat-7-6-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-18T00:00:00Z","file":{"size":6},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"99edcc54-c513-4d46-9f5b-36243a1e50e2","crn":"crn:v1:bluemix:public:is:us-east:::image:99edcc54-c513-4d46-9f5b-36243a1e50e2","href":"https://us-east.iaas.cloud.ibm.com/v1/images/99edcc54-c513-4d46-9f5b-36243a1e50e2","name":"ibm-centos-7-0-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","name":"ibm-centos-7-6-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"04f4c424-a90d-4c2b-a77f-db67ff9b1629","crn":"crn:v1:bluemix:public:is:us-east:::image:04f4c424-a90d-4c2b-a77f-db67ff9b1629","href":"https://us-east.iaas.cloud.ibm.com/v1/images/04f4c424-a90d-4c2b-a77f-db67ff9b1629","name":"ibm-ubuntu-16-04-05-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-25T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","name":"ibm-ubuntu-16-04-5-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-25T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"3f323501-667e-4583-b081-19cca9ac55fd","crn":"crn:v1:bluemix:public:is:us-east:::image:3f323501-667e-4583-b081-19cca9ac55fd","href":"https://us-east.iaas.cloud.ibm.com/v1/images/3f323501-667e-4583-b081-19cca9ac55fd","name":"ibm-debian-9-0-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-24T00:00:00Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"bf962ae4-4140-462b-8fa3-56fa1b49b06a","crn":"crn:v1:bluemix:public:is:us-east:::image:bf962ae4-4140-462b-8fa3-56fa1b49b06a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/bf962ae4-4140-462b-8fa3-56fa1b49b06a","name":"ibm-ubuntu-18-04-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-08T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-14140f94-fcc4-11e9-96e7-a72723715315","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-14140f94-fcc4-11e9-96e7-a72723715315","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-14140f94-fcc4-11e9-96e7-a72723715315","name":"ibm-ubuntu-18-04-1-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-08T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"}]}' - recorded_at: Thu, 01 Oct 2020 23:33:48 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/images_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/images_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 966bb880..00000000 --- a/spec/vcr/Test_vpc_API/images_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,187 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 2fc453e951d6487aa7c3ba73b5efc78e - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:49 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=472bbcaeccd3a83e93006ec9f2aa6e9e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:49 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/images?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:50 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df8522c161f9ee83fd852e2c7c5da74f31601595229; expires=Sat, 31-Oct-20 - 23:33:49 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fdab2d53cab0-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881cdefc0000cab03fad5200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 625823247c126479b065d62b4d10e83e - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 625823247c126479b065d62b4d10e83e - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/images?limit=50"},"limit":50,"images":[{"id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","crn":"crn:v1:bluemix:public:is:us-east:a/811f8abfbd32425597dc7ba40da98fa6::image:r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"5807b5832a8741179b2e06ca2d2b3b96","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/5807b5832a8741179b2e06ca2d2b3b96"},"created_at":"2020-08-10T15:01:51Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-8-amd64","name":"red-8-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 8.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"8.x - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-5e390f7b-0469-4ac1-b589-2fea307c1c5a","name":"ibm-debian-9-12-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-05-12T14:47:03Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-ed3f775f-ad7e-4e37-ae62-7199b4988b00","name":"ibm-ubuntu-18-04-1-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-04-10T15:31:34Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-1adf8d33-af63-47c6-9ad7-dd0bac1ca573","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:1adf8d33-af63-47c6-9ad7-dd0bac1ca573","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-1adf8d33-af63-47c6-9ad7-dd0bac1ca573","name":"myimport","minimum_provisioned_size":100,"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8"},"created_at":"2020-04-08T19:35:44Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:d82ac057-feab-4d4b-968c-8557c215c17e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","minimum_provisioned_size":100,"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8"},"created_at":"2020-03-31T02:14:55Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::image:d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d5ee9315-0edf-46dc-85e0-e6ed1ee8d444","name":"cloudformstry","minimum_provisioned_size":100,"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/345c433098294722ba52d9039133e8cf"},"created_at":"2020-03-31T01:52:40Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"available","visibility":"private","encryption":"none"},{"id":"r014-ea70cf5b-93f0-4871-a31e-f0030484149e","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-ea70cf5b-93f0-4871-a31e-f0030484149e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-ea70cf5b-93f0-4871-a31e-f0030484149e","name":"ibm-debian-9-12-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-25T14:47:03Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-7b4a1103-c5ed-4a14-87c0-5f75b9f3c86a","name":"ibm-debian-9-9-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-13T17:51:25Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-03-13T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-60d279a0-b328-40eb-a379-595ca53bee18","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-60d279a0-b328-40eb-a379-595ca53bee18","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-60d279a0-b328-40eb-a379-595ca53bee18","name":"ibm-redhat-7-6-amd64-sap-hana-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-02-06T06:00:01Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-hana","name":"red-7-amd64-sap-hana","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.6 for SAP HANA (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.6 for SAP HANA"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-f5387730-7a4b-4f71-9a85-13b05b137953","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-f5387730-7a4b-4f71-9a85-13b05b137953","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-f5387730-7a4b-4f71-9a85-13b05b137953","name":"ibm-redhat-7-6-amd64-sap-applications-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-02-06T06:00:01Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-applications","name":"red-7-amd64-sap-applications","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x for SAP Applications (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x for Applications"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-54e9238a-ffdd-4f90-9742-7424eb2b9ff1","name":"ibm-windows-server-2016-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-22T16:40:36Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-5f9568ae-792e-47e1-a710-5538b2bdfca7","name":"ibm-windows-server-2012-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-21T19:17:57Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-8bb3e8aa-b789-4292-8679-3564b3a9366a","name":"ibm-windows-server-2012-r2-full-standard-amd64-3","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2020-01-21T18:57:49Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"available","visibility":"public","encryption":"none"},{"id":"r014-253c540d-1b96-4e55-a1c3-7341616c7b19","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-253c540d-1b96-4e55-a1c3-7341616c7b19","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-253c540d-1b96-4e55-a1c3-7341616c7b19","name":"ibm-windows-server-2016-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-07T18:51:55Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-9d8b336f-c203-4860-8234-38fcf8334793","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-9d8b336f-c203-4860-8234-38fcf8334793","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-9d8b336f-c203-4860-8234-38fcf8334793","name":"ibm-windows-server-2012-r2-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-06T09:48:57Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-a219157a-9862-4360-be63-b912320a399a","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-a219157a-9862-4360-be63-b912320a399a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-a219157a-9862-4360-be63-b912320a399a","name":"ibm-windows-server-2012-full-standard-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-11-05T15:43:59Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"82c23b8c-6039-461e-a2b0-e909ce286f8d","crn":"crn:v1:bluemix:public:is:us-east:::image:82c23b8c-6039-461e-a2b0-e909ce286f8d","href":"https://us-east.iaas.cloud.ibm.com/v1/images/82c23b8c-6039-461e-a2b0-e909ce286f8d","name":"ibm-debian-9-0-64-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T17:51:25Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d4aec81e-fcc6-11e9-9149-870ebf69fd8d","name":"ibm-debian-9-9-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T17:51:25Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"86120242-0148-4c41-8882-c6eb9d0c396e","crn":"crn:v1:bluemix:public:is:us-east:::image:86120242-0148-4c41-8882-c6eb9d0c396e","href":"https://us-east.iaas.cloud.ibm.com/v1/images/86120242-0148-4c41-8882-c6eb9d0c396e","name":"ibm-windows-2016-full-std-amd64-2","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T11:09:16Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6b74bf1e-fccd-11e9-80ba-1b59914ac95b","name":"ibm-windows-server-2016-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-10T11:09:16Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"9de244af-e231-4aae-a958-aa60d735c826","crn":"crn:v1:bluemix:public:is:us-east:::image:9de244af-e231-4aae-a958-aa60d735c826","href":"https://us-east.iaas.cloud.ibm.com/v1/images/9de244af-e231-4aae-a958-aa60d735c826","name":"ibm-windows-2016-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T14:07:34Z","file":{"size":45},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"b3442350-a35d-4b33-b995-05c5f1155668","crn":"crn:v1:bluemix:public:is:us-east:::image:b3442350-a35d-4b33-b995-05c5f1155668","href":"https://us-east.iaas.cloud.ibm.com/v1/images/b3442350-a35d-4b33-b995-05c5f1155668","name":"ibm-windows-2012-r2-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:56:35Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-158e7a2c-fccd-11e9-80fb-4f991aaa30f9","name":"ibm-windows-server-2012-r2-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:56:35Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","crn":"crn:v1:bluemix:public:is:us-east:::image:7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","href":"https://us-east.iaas.cloud.ibm.com/v1/images/7bc64e71-c287-4a2c-85b1-e7822b4bd8f6","name":"ibm-windows-2012-full-std-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:30:08Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-eb1c47cc-fcc9-11e9-8de1-33db5afbbd14","name":"ibm-windows-server-2012-full-standard-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-09-03T09:30:08Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"f8ae058e-4273-42e9-b549-68d09219e9e5","crn":"crn:v1:bluemix:public:is:us-east:::image:f8ae058e-4273-42e9-b549-68d09219e9e5","href":"https://us-east.iaas.cloud.ibm.com/v1/images/f8ae058e-4273-42e9-b549-68d09219e9e5","name":"ibm-centos-7-0-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"987cb0ec-4f2b-4733-a232-f1a3efc727d8","crn":"crn:v1:bluemix:public:is:us-east:::image:987cb0ec-4f2b-4733-a232-f1a3efc727d8","href":"https://us-east.iaas.cloud.ibm.com/v1/images/987cb0ec-4f2b-4733-a232-f1a3efc727d8","name":"ibm-windows-2012-r2-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-14T00:00:00Z","file":{"size":27},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"6e9208e4-b757-4530-a22e-66722464c334","crn":"crn:v1:bluemix:public:is:us-east:::image:6e9208e4-b757-4530-a22e-66722464c334","href":"https://us-east.iaas.cloud.ibm.com/v1/images/6e9208e4-b757-4530-a22e-66722464c334","name":"ibm-windows-2016-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-08-13T00:00:00Z","file":{"size":32},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"a63864aa-c766-42d3-8bd0-999fdb87fb42","crn":"crn:v1:bluemix:public:is:us-east:::image:a63864aa-c766-42d3-8bd0-999fdb87fb42","href":"https://us-east.iaas.cloud.ibm.com/v1/images/a63864aa-c766-42d3-8bd0-999fdb87fb42","name":"ibm-windows-2012-full-std-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-24T00:00:00Z","file":{"size":22},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"a573bfb9-4e55-481f-9060-31d757155ded","crn":"crn:v1:bluemix:public:is:us-east:::image:a573bfb9-4e55-481f-9060-31d757155ded","href":"https://us-east.iaas.cloud.ibm.com/v1/images/a573bfb9-4e55-481f-9060-31d757155ded","name":"ibm-redhat-7-0-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-18T00:00:00Z","file":{"size":6},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-931515d2-fcc3-11e9-896d-3baa2797200f","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-931515d2-fcc3-11e9-896d-3baa2797200f","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-931515d2-fcc3-11e9-896d-3baa2797200f","name":"ibm-redhat-7-6-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-07-18T00:00:00Z","file":{"size":6},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"99edcc54-c513-4d46-9f5b-36243a1e50e2","crn":"crn:v1:bluemix:public:is:us-east:::image:99edcc54-c513-4d46-9f5b-36243a1e50e2","href":"https://us-east.iaas.cloud.ibm.com/v1/images/99edcc54-c513-4d46-9f5b-36243a1e50e2","name":"ibm-centos-7-0-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-e0039ab2-fcc8-11e9-8a36-6ffb6501dd33","name":"ibm-centos-7-6-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-27T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"04f4c424-a90d-4c2b-a77f-db67ff9b1629","crn":"crn:v1:bluemix:public:is:us-east:::image:04f4c424-a90d-4c2b-a77f-db67ff9b1629","href":"https://us-east.iaas.cloud.ibm.com/v1/images/04f4c424-a90d-4c2b-a77f-db67ff9b1629","name":"ibm-ubuntu-16-04-05-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-25T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-34ceeafe-fcc6-11e9-893a-57dde2f48a21","name":"ibm-ubuntu-16-04-5-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-25T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},"status":"available","visibility":"public","encryption":"none"},{"id":"3f323501-667e-4583-b081-19cca9ac55fd","crn":"crn:v1:bluemix:public:is:us-east:::image:3f323501-667e-4583-b081-19cca9ac55fd","href":"https://us-east.iaas.cloud.ibm.com/v1/images/3f323501-667e-4583-b081-19cca9ac55fd","name":"ibm-debian-9-0-64-minimal-for-vsi","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-24T00:00:00Z","file":{"size":4},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"bf962ae4-4140-462b-8fa3-56fa1b49b06a","crn":"crn:v1:bluemix:public:is:us-east:::image:bf962ae4-4140-462b-8fa3-56fa1b49b06a","href":"https://us-east.iaas.cloud.ibm.com/v1/images/bf962ae4-4140-462b-8fa3-56fa1b49b06a","name":"ibm-ubuntu-18-04-64","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-08T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"},{"id":"r014-14140f94-fcc4-11e9-96e7-a72723715315","crn":"crn:v1:bluemix:public:is:us-east:::image:r014-14140f94-fcc4-11e9-96e7-a72723715315","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-14140f94-fcc4-11e9-96e7-a72723715315","name":"ibm-ubuntu-18-04-1-minimal-amd64-1","minimum_provisioned_size":100,"resource_group":{"id":"","href":"https://resource-controller.cloud.ibm.com/v1/resource_groups/"},"created_at":"2019-06-08T00:00:00Z","file":{"size":2},"operating_system":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},"status":"deprecated","visibility":"public","encryption":"none"}]}' - recorded_at: Thu, 01 Oct 2020 23:33:50 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_access_fetch.yml deleted file mode 100644 index fc983e26..00000000 --- a/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - a6e0df4b95634d1ba0ee2c8f92b594c8 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:50 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:50 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instance/profiles?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:50 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d3deeb1909388cff4fc00a6263b45fc4f1601595230; expires=Sat, 31-Oct-20 - 23:33:50 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fdae2958cac8-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881ce0da0000cac82ebf7200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - f4f3062f-f521-49da-a7d7-07bc4dfc54e4 - X-Trace-Id: - - 52db7da2621c6e2b - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"profiles":[{"name":"bx2-2x8","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-2x8","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":8},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"balanced"},{"name":"bx2-4x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"balanced"},{"name":"bx2-8x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-8x32","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"balanced"},{"name":"bx2-16x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-16x64","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"balanced"},{"name":"bx2-32x128","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-32x128","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":128},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"balanced"},{"name":"bx2-48x192","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-48x192","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":192},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"balanced"},{"name":"cx2-2x4","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":4},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"compute"},{"name":"cx2-4x8","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-4x8","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":8},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"compute"},{"name":"cx2-8x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-8x16","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"compute"},{"name":"cx2-16x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-16x32","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"compute"},{"name":"cx2-32x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-32x64","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"compute"},{"name":"cx2-48x96","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-48x96","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":96},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"compute"},{"name":"mx2-2x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"memory"},{"name":"mx2-4x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-4x32","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"memory"},{"name":"mx2-8x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-8x64","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"memory"},{"name":"mx2-16x128","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-16x128","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":128},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"memory"},{"name":"mx2-32x256","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-32x256","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":256},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"memory"},{"name":"mx2-48x384","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-48x384","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":384},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"memory"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:33:50 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 809ab5bc..00000000 --- a/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - e1df45c46d984475ada41e85cabd10c9 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:52 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=ce3971e5fa3597045425df8136eb3e4e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:52 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instance/profiles?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:53 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=db45efd7e78613ab9e4830073ce8377181601595232; expires=Sat, 31-Oct-20 - 23:33:52 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fdbc9e24ab4c-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881ce9dc0000ab4ccba9e200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 5a11c3a3-d672-4370-9a93-fe181e051f71 - X-Trace-Id: - - 4ef7e549dc57b33e - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"profiles":[{"name":"bx2-2x8","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-2x8","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":8},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"balanced"},{"name":"bx2-4x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"balanced"},{"name":"bx2-8x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-8x32","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"balanced"},{"name":"bx2-16x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-16x64","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"balanced"},{"name":"bx2-32x128","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-32x128","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":128},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"balanced"},{"name":"bx2-48x192","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-48x192","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":192},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"balanced"},{"name":"cx2-2x4","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":4},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"compute"},{"name":"cx2-4x8","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-4x8","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":8},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"compute"},{"name":"cx2-8x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-8x16","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"compute"},{"name":"cx2-16x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-16x32","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"compute"},{"name":"cx2-32x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-32x64","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"compute"},{"name":"cx2-48x96","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-48x96","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":96},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"compute"},{"name":"mx2-2x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"memory"},{"name":"mx2-4x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-4x32","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"memory"},{"name":"mx2-8x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-8x64","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"memory"},{"name":"mx2-16x128","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-16x128","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":128},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"memory"},{"name":"mx2-32x256","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-32x256","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":256},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"memory"},{"name":"mx2-48x384","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-48x384","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":384},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"memory"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:33:53 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_get_all.yml deleted file mode 100644 index cc3edd9e..00000000 --- a/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_get_all.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 984cae170cfa4adeb94b792de26eb127 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:55 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=aa2093d4e90cef4bdda52de1ab974f35; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:55 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instance/profiles?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:56 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d0c3b819f22a90ebafe6bdfc2521d27991601595235; expires=Sat, 31-Oct-20 - 23:33:55 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fdcf1c8caba6-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881cf5720000aba6f5a30200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - a576341a-66ac-4e8a-afe0-2ebf6c7facef - X-Trace-Id: - - 1932210a302ddf99 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"profiles":[{"name":"bx2-2x8","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-2x8","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":8},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"balanced"},{"name":"bx2-4x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"balanced"},{"name":"bx2-8x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-8x32","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"balanced"},{"name":"bx2-16x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-16x64","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"balanced"},{"name":"bx2-32x128","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-32x128","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":128},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"balanced"},{"name":"bx2-48x192","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-48x192","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":192},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"balanced"},{"name":"cx2-2x4","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":4},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"compute"},{"name":"cx2-4x8","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-4x8","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":8},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"compute"},{"name":"cx2-8x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-8x16","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"compute"},{"name":"cx2-16x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-16x32","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"compute"},{"name":"cx2-32x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-32x64","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"compute"},{"name":"cx2-48x96","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-48x96","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":96},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"compute"},{"name":"mx2-2x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"memory"},{"name":"mx2-4x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-4x32","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"memory"},{"name":"mx2-8x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-8x64","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"memory"},{"name":"mx2-16x128","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-16x128","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":128},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"memory"},{"name":"mx2-32x256","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-32x256","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":256},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"memory"},{"name":"mx2-48x384","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-48x384","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":384},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"memory"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:33:56 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 5e3f4606..00000000 --- a/spec/vcr/Test_vpc_API/instance_profiles_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - be61fa85c3d74f3398a229a721df955f - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:57 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=aa2093d4e90cef4bdda52de1ab974f35; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:57 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instance/profiles?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:57 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d568fba9df405ef24700fbd77fca6c2741601595237; expires=Sat, 31-Oct-20 - 23:33:57 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fddb7a75caa0-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881cfd2c0000caa0612fb200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - ca746119-ffb8-4e9a-ad12-2627b3684031 - X-Trace-Id: - - 36fa9cb1c22a2592 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"profiles":[{"name":"bx2-2x8","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-2x8","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":8},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"balanced"},{"name":"bx2-4x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-4x16","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"balanced"},{"name":"bx2-8x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-8x32","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"balanced"},{"name":"bx2-16x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-16x64","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"balanced"},{"name":"bx2-32x128","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-32x128","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":128},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"balanced"},{"name":"bx2-48x192","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/bx2-48x192","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":192},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"balanced"},{"name":"cx2-2x4","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":4},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"compute"},{"name":"cx2-4x8","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-4x8","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":8},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"compute"},{"name":"cx2-8x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-8x16","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"compute"},{"name":"cx2-16x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-16x32","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"compute"},{"name":"cx2-32x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-32x64","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"compute"},{"name":"cx2-48x96","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-48x96","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":96},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"compute"},{"name":"mx2-2x16","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","bandwidth":{"type":"fixed","value":4000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":16},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":2},"family":"memory"},{"name":"mx2-4x32","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-4x32","bandwidth":{"type":"fixed","value":8000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":32},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":4},"family":"memory"},{"name":"mx2-8x64","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-8x64","bandwidth":{"type":"fixed","value":16000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":64},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":8},"family":"memory"},{"name":"mx2-16x128","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-16x128","bandwidth":{"type":"fixed","value":32000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":128},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":16},"family":"memory"},{"name":"mx2-32x256","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-32x256","bandwidth":{"type":"fixed","value":64000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":256},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":32},"family":"memory"},{"name":"mx2-48x384","href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-48x384","bandwidth":{"type":"fixed","value":80000},"port_speed":{"type":"fixed","value":16000},"memory":{"type":"fixed","value":384},"os_architecture":{"type":"enum","default":"amd64","values":["amd64"]},"vcpu_architecture":{"type":"fixed","value":"amd64"},"vcpu_count":{"type":"fixed","value":48},"family":"memory"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:33:57 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/instances_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/instances_vpc_API/can_access_fetch.yml deleted file mode 100644 index 62ca7956..00000000 --- a/spec/vcr/Test_vpc_API/instances_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 1425c990b5694efeacff367ac50f4a59 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:33:58 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:33:58 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:33:59 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=de246f698d72e69e0c06a550ae31ddc931601595238; expires=Sat, 31-Oct-20 - 23:33:58 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fde39e21ab4c-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d02400000ab4ccca37200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 15d1ab4e-09b7-45c2-9817-7b6383d48791 - X-Trace-Id: - - 7d39ea0b922fa6e4 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=50"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}},"created_at":"2020-09-23T13:27:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","resource_type":"image"},"memory":4,"name":"cmh1","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}},"created_at":"2020-09-29T15:58:46.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","resource_type":"image"},"memory":4,"name":"cmh2","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":50,"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:33:59 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/instances_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/instances_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 7c049a16..00000000 --- a/spec/vcr/Test_vpc_API/instances_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 70a1673785854891ad90b49edae24849 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:01 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fc92053bcecf731b14d04bf54069043d; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:01 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:01 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df5fa302be7919200cdaae8095751b9391601595241; expires=Sat, 31-Oct-20 - 23:34:01 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fdf1ae47cacc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d0b0c0000cacc9395b200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - f1720afe-5b99-487e-b854-50c840e6768e - X-Trace-Id: - - 5442fec11ab6247d - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=50"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}},"created_at":"2020-09-23T13:27:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","resource_type":"image"},"memory":4,"name":"cmh1","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}},"created_at":"2020-09-29T15:58:46.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","resource_type":"image"},"memory":4,"name":"cmh2","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":50,"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:34:02 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/instances_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/instances_vpc_API/can_get_all.yml deleted file mode 100644 index 843a7dc7..00000000 --- a/spec/vcr/Test_vpc_API/instances_vpc_API/can_get_all.yml +++ /dev/null @@ -1,172 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 2d96c40592e1480995f5c24082897d10 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:02 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=ce3971e5fa3597045425df8136eb3e4e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:02 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:03 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d603b124ed0ddcaf17a7f8e1ca6de71771601595242; expires=Sat, 31-Oct-20 - 23:34:02 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fdf7e89eab82-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d0ef40000ab8273915200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 2b1ba650-8c20-4c88-b4f1-25d77b22353c - X-Trace-Id: - - 3c9a5352afc74684 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=50"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}},"created_at":"2020-09-23T13:27:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","resource_type":"image"},"memory":4,"name":"cmh1","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}},"created_at":"2020-09-29T15:58:46.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","resource_type":"image"},"memory":4,"name":"cmh2","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":50,"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:34:03 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:04 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dfafb82e52a4efc05b1bf7cccdc8e4a5b1601595243; expires=Sat, 31-Oct-20 - 23:34:03 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fdff2c02cab4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d137a0000cab44f2b7200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 7e69940b-4678-4cc2-86af-6220737e9e4a - X-Trace-Id: - - 700df64b7b94a452 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=50"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}},"created_at":"2020-09-23T13:27:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","resource_type":"image"},"memory":4,"name":"cmh1","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}},"created_at":"2020-09-29T15:58:46.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","resource_type":"image"},"memory":4,"name":"cmh2","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":50,"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:34:04 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/instances_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/instances_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 9ed29613..00000000 --- a/spec/vcr/Test_vpc_API/instances_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - e07fe347b815462bb942d1c1a4b14f97 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:04 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:04 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:05 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d38c18876f370d32ff47c17ef539dc4861601595244; expires=Sat, 31-Oct-20 - 23:34:04 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe04ad3bcab0-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d16e80000cab03c036200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 3dc6cd2c-fbd6-4807-9959-bb435647bab5 - X-Trace-Id: - - 12100054d1a44828 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=50"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}},"created_at":"2020-09-23T13:27:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","resource_type":"image"},"memory":4,"name":"cmh1","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}},"created_at":"2020-09-29T15:58:46.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","resource_type":"image"},"memory":4,"name":"cmh2","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":50,"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:34:05 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_access_fetch.yml deleted file mode 100644 index f9fb5318..00000000 --- a/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 760e3e7035ae4a2eba147d3d993303a3 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:06 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:06 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:06 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dcaaf0c5c4a1244716c19c911aef8fe141601595246; expires=Sat, 31-Oct-20 - 23:34:06 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe11ae24ab9a-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d1f0d0000ab9a01049200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - dc94080b-535d-4d4c-af39-a4eaea7ac6c4 - X-Request-Id: - - dc94080b-535d-4d4c-af39-a4eaea7ac6c4 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:34:06 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 121723ef..00000000 --- a/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 64c3fe62158d4be8974c28efd60f7a1f - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:07 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=ce3971e5fa3597045425df8136eb3e4e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:07 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:08 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dd0c0f8a80a54912f5d4783296e0ec0ff1601595247; expires=Sat, 31-Oct-20 - 23:34:07 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe1b9ed1f995-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d253b0000f995fa2eb200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 7a4eb1df-0b75-41c7-94bf-c6a52a30cf14 - X-Request-Id: - - 7a4eb1df-0b75-41c7-94bf-c6a52a30cf14 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:34:08 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_get_all.yml deleted file mode 100644 index 97f737c8..00000000 --- a/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_get_all.yml +++ /dev/null @@ -1,148 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - e77475fcd9b94f4f9fc15c4788b2e04f - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:08 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=ce3971e5fa3597045425df8136eb3e4e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:08 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:08 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dc4b8c77a50e4d9f72badc56eb07b22f61601595248; expires=Sat, 31-Oct-20 - 23:34:08 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe1e6da7f999-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d27020000f99978b61200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 7bc684d5-145f-43fc-9095-bd9c4b812ef6 - X-Request-Id: - - 7bc684d5-145f-43fc-9095-bd9c4b812ef6 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:34:08 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:08 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dccd47882d4ca288c7f63c227bae17aef1601595248; expires=Sat, 31-Oct-20 - 23:34:08 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe208924f981-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d28520000f981f5a3f200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 7c068e25-2227-49dc-8530-4f1d683d39b0 - X-Request-Id: - - 7c068e25-2227-49dc-8530-4f1d683d39b0 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:34:08 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_get_an_instance.yml deleted file mode 100644 index e67b90e0..00000000 --- a/spec/vcr/Test_vpc_API/ipsec_policies_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - fe42c65f51e84509841f933e21117ca1 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:09 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:09 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/ike_policies?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:09 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d30b75ce1d2f805a9e0e6b9ce854ea1f71601595249; expires=Sat, 31-Oct-20 - 23:34:09 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe233bf4cab0-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d2a060000cab04b9f8200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 5769e73f-6478-46aa-aaa7-e12aff8e9ca0 - X-Request-Id: - - 5769e73f-6478-46aa-aaa7-e12aff8e9ca0 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/ike_policies?version=2020-08-01\u0026generation=2\u0026limit=50"},"ike_policies":[],"limit":50,"total_count":0}' - recorded_at: Thu, 01 Oct 2020 23:34:09 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/keys_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/keys_vpc_API/can_access_fetch.yml deleted file mode 100644 index 941a76df..00000000 --- a/spec/vcr/Test_vpc_API/keys_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 3c270cb2dcc9438399058c0cafbd4013 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:46:31 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=9f51bef8ae051439dd0a24cae543baf1; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:46:31 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/keys?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:46:32 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d19beb975dcd3cebc66e7be69568584ae1601595991; expires=Sat, 31-Oct-20 - 23:46:31 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba10459905f979-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '0588287f7b0000f9793a911200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 30c61021-d418-42e6-9612-5535a44acb52 - X-Trace-Id: - - 79c01d98b17ec9c9 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"keys":[{"id":"r014-0856edbd-da51-4965-8be5-dcce5caeca3e","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::key:r014-0856edbd-da51-4965-8be5-dcce5caeca3e","href":"https://us-east.iaas.cloud.ibm.com/v1/keys/r014-0856edbd-da51-4965-8be5-dcce5caeca3e","fingerprint":"SHA256:xxxxxxx","name":"random_key_0","public_key":"RSA: - VVVVVV","type":"rsa","length":4096,"created_at":"2020-03-31T02:20:17Z","resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]}' - recorded_at: Thu, 01 Oct 2020 23:46:32 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/keys_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/keys_vpc_API/can_access_has_count_.yml deleted file mode 100644 index b079ee2d..00000000 --- a/spec/vcr/Test_vpc_API/keys_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 0c8bdd4eff1c4068b0176845b51709a6 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:46:35 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=aa2093d4e90cef4bdda52de1ab974f35; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:46:35 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/keys?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:46:36 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dd8fee96e9d10fa0e9a4b0104b4ccf6d41601595995; expires=Sat, 31-Oct-20 - 23:46:35 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba105c3aa7f995-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '0588288da40000f995f91f6200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 8f8d05fc-f1ba-469a-83b5-12c92ed71aca - X-Trace-Id: - - 81591803ba3492a - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"keys":[{"id":"r014-0856edbd-da51-4965-8be5-dcce5caeca3e","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::key:r014-0856edbd-da51-4965-8be5-dcce5caeca3e","href":"https://us-east.iaas.cloud.ibm.com/v1/keys/r014-0856edbd-da51-4965-8be5-dcce5caeca3e","fingerprint":"SHA256:xxxxxxx","name":"random_key_0","public_key":"RSA: - VVVVVV","type":"rsa","length":4096,"created_at":"2020-03-31T02:20:17Z","resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]}' - recorded_at: Thu, 01 Oct 2020 23:46:36 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/keys_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/keys_vpc_API/can_get_all.yml deleted file mode 100644 index cb2eef52..00000000 --- a/spec/vcr/Test_vpc_API/keys_vpc_API/can_get_all.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - df2534e18ce24833a9f7c33c10876bd6 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:46:38 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fc92053bcecf731b14d04bf54069043d; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:46:38 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/keys?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:46:39 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d171a55752f550b98bbdc92f6ed174cc01601595998; expires=Sat, 31-Oct-20 - 23:46:38 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba106d385fcaa0-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882898450000caa054141200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - c83d3e63-cb15-4b42-a0a4-02cbc68e9fec - X-Trace-Id: - - 16c93be8509cb5c9 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"keys":[{"id":"r014-0856edbd-da51-4965-8be5-dcce5caeca3e","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::key:r014-0856edbd-da51-4965-8be5-dcce5caeca3e","href":"https://us-east.iaas.cloud.ibm.com/v1/keys/r014-0856edbd-da51-4965-8be5-dcce5caeca3e","fingerprint":"SHA256:xxxxxxx","name":"random_key_0","public_key":"RSA: - VVVVVV","type":"rsa","length":4096,"created_at":"2020-03-31T02:20:17Z","resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]}' - recorded_at: Thu, 01 Oct 2020 23:46:39 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/keys_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/keys_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 1c439838..00000000 --- a/spec/vcr/Test_vpc_API/keys_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,110 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 888270e875454c619cbd0dbb919b4f45 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:46:39 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fc92053bcecf731b14d04bf54069043d; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:46:39 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/keys?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:46:40 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d4dcd7eb1bf2722d1fd80bcb2b2851b731601595999; expires=Sat, 31-Oct-20 - 23:46:39 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba1076e9dccaa0-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '0588289e4c0000caa04db2c200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 347d95e0-4119-4e97-8bee-dd3390863918 - X-Trace-Id: - - f2bb0607cb32a7f - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"keys":[{"id":"r014-0856edbd-da51-4965-8be5-dcce5caeca3e","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::key:r014-0856edbd-da51-4965-8be5-dcce5caeca3e","href":"https://us-east.iaas.cloud.ibm.com/v1/keys/r014-0856edbd-da51-4965-8be5-dcce5caeca3e","fingerprint":"SHA256:xxxxxxx","name":"random_key_0","public_key":"RSA: - VVVVVV","type":"rsa","length":4096,"created_at":"2020-03-31T02:20:17Z","resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]}' - recorded_at: Thu, 01 Oct 2020 23:46:40 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_access_fetch.yml deleted file mode 100644 index f0f148c5..00000000 --- a/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 25fe46d2c23043aa80da523ca12d247b - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:16 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=472bbcaeccd3a83e93006ec9f2aa6e9e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:16 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/load_balancers?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:16 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '21' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dfb1dcc2758ef39eabf29f5439a17c1601601595256; expires=Sat, 31-Oct-20 - 23:34:16 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe512bb0f979-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d46b40000f9794880b200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 766d094f-1ecb-45ab-a734-17c56bc5420f - X-Request-Id: - - 766d094f-1ecb-45ab-a734-17c56bc5420f - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: UTF-8 - string: '{"load_balancers":[]}' - recorded_at: Thu, 01 Oct 2020 23:34:16 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_access_has_count_.yml deleted file mode 100644 index be1e909f..00000000 --- a/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 6b63990ea5d845a69e24730d4aaae609 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:17 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=472bbcaeccd3a83e93006ec9f2aa6e9e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:17 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/load_balancers?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:17 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '21' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df343989f8db3c43aa70702b52f2874c61601595257; expires=Sat, 31-Oct-20 - 23:34:17 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe585890f999-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d4b360000f999760f8200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - f6ae1e19-18c4-4f27-8f1c-61c87aac0180 - X-Request-Id: - - f6ae1e19-18c4-4f27-8f1c-61c87aac0180 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: UTF-8 - string: '{"load_balancers":[]}' - recorded_at: Thu, 01 Oct 2020 23:34:17 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_get_all.yml deleted file mode 100644 index 3e6cd623..00000000 --- a/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_get_all.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - ed149b7d2db54a5ea4fa655d6d5eab5a - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:17 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=eae45e398a21d7cf494227da2e8e0b59; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:17 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/load_balancers?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:18 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '21' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dfdbafa33799ca7e8ec3ccb4d724aeabb1601595257; expires=Sat, 31-Oct-20 - 23:34:17 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe5a5b87cab4-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d4c750000cab4583b5200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 1831e718-a8fb-41a0-9562-61a7b2357ad1 - X-Request-Id: - - 1831e718-a8fb-41a0-9562-61a7b2357ad1 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: UTF-8 - string: '{"load_balancers":[]}' - recorded_at: Thu, 01 Oct 2020 23:34:18 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 851010d1..00000000 --- a/spec/vcr/Test_vpc_API/load_balancers_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 515810a8d6d04382a931e0a08a80efd3 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:18 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:18 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/load_balancers?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:19 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '21' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dee6ae1d595355325a1b28b7c31f7775f1601595258; expires=Sat, 31-Oct-20 - 23:34:18 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe5fcfe5f979-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d4fda0000f9793e9f5200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - ac0bc1aa-b7fe-4f5d-a793-744035b22afa - X-Request-Id: - - ac0bc1aa-b7fe-4f5d-a793-744035b22afa - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: UTF-8 - string: '{"load_balancers":[]}' - recorded_at: Thu, 01 Oct 2020 23:34:19 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_access_fetch.yml deleted file mode 100644 index 35c5a545..00000000 --- a/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 54f365f1505848c5afda5dc0da85d3e9 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:19 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:20 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/network_acls?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:20 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dfad82f189c81e087767883ab47e9ea661601595260; expires=Sat, 31-Oct-20 - 23:34:20 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe677c9acac4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d54a80000cac401169200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 37f1c7a6-4317-4734-b868-62223dcf5fc8 - X-Trace-Id: - - 1f78b2a3686bb0b3 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls?limit=50"},"total_count":1,"network_acls":[{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate","created_at":"2020-03-31T02:16:00Z","rules":[{"id":"8106f2a2-9bd1-490d-930d-329531138f99","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/8106f2a2-9bd1-490d-930d-329531138f99","name":"unsteady-trolling-matron-labored-shrapnel-ether","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound"},"created_at":"2020-03-31T02:16:59Z"},{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka"},"created_at":"2020-03-31T02:16:00Z"},{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound"},"created_at":"2020-03-31T02:17:18Z"},{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","created_at":"2020-03-31T02:16:00Z"}],"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}],"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:20 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_access_has_count_.yml deleted file mode 100644 index a2ac1571..00000000 --- a/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - bcec8e6bc55445b2ac2094179c280b8f - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:20 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:21 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/network_acls?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:21 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dd6b5c87abf318449175327498fcd745b1601595261; expires=Sat, 31-Oct-20 - 23:34:21 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe6d9c23caa0-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d587e0000caa04a0c6200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 2fcc9508-ef50-4847-83eb-7e33229083ce - X-Trace-Id: - - 4fe92c4c5b01500 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls?limit=50"},"total_count":1,"network_acls":[{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate","created_at":"2020-03-31T02:16:00Z","rules":[{"id":"8106f2a2-9bd1-490d-930d-329531138f99","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/8106f2a2-9bd1-490d-930d-329531138f99","name":"unsteady-trolling-matron-labored-shrapnel-ether","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound"},"created_at":"2020-03-31T02:16:59Z"},{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka"},"created_at":"2020-03-31T02:16:00Z"},{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound"},"created_at":"2020-03-31T02:17:18Z"},{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","created_at":"2020-03-31T02:16:00Z"}],"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}],"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:21 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_get_all.yml deleted file mode 100644 index 050c7b80..00000000 --- a/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_get_all.yml +++ /dev/null @@ -1,176 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 879d6335a36b415cb303fb6ddfa6e297 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:21 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:21 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/network_acls?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:22 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dc991b9515f7cd885626b35067af97e5a1601595261; expires=Sat, 31-Oct-20 - 23:34:21 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe73284af975-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d5bf80000f97540956200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - ad45367c-82d1-45be-83cc-daa358d25c59 - X-Trace-Id: - - 4f6f51848d80e12a - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls?limit=50"},"total_count":1,"network_acls":[{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate","created_at":"2020-03-31T02:16:00Z","rules":[{"id":"8106f2a2-9bd1-490d-930d-329531138f99","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/8106f2a2-9bd1-490d-930d-329531138f99","name":"unsteady-trolling-matron-labored-shrapnel-ether","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound"},"created_at":"2020-03-31T02:16:59Z"},{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka"},"created_at":"2020-03-31T02:16:00Z"},{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound"},"created_at":"2020-03-31T02:17:18Z"},{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","created_at":"2020-03-31T02:16:00Z"}],"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}],"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:22 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/network_acls?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:23 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d0acb67dc6a283c780520e297e4c47bd91601595262; expires=Sat, 31-Oct-20 - 23:34:22 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe78be0df979-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d5f720000f97944395200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 1db5457d-8dfb-4ed5-b76f-27922a0bd513 - X-Trace-Id: - - 4d9f33d2da8b1c96 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls?limit=50"},"total_count":1,"network_acls":[{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate","created_at":"2020-03-31T02:16:00Z","rules":[{"id":"8106f2a2-9bd1-490d-930d-329531138f99","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/8106f2a2-9bd1-490d-930d-329531138f99","name":"unsteady-trolling-matron-labored-shrapnel-ether","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound"},"created_at":"2020-03-31T02:16:59Z"},{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka"},"created_at":"2020-03-31T02:16:00Z"},{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound"},"created_at":"2020-03-31T02:17:18Z"},{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","created_at":"2020-03-31T02:16:00Z"}],"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}],"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:23 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 90264d8c..00000000 --- a/spec/vcr/Test_vpc_API/network_acls_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - dcfb6280764d44d28a748831df86b4ed - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:23 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:23 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/network_acls?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:24 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2bc326e4aa4a6840ea5c2bb4e20f43341601595263; expires=Sat, 31-Oct-20 - 23:34:23 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe7e5d57caa4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d62f40000caa43092c200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 41819d75-d167-42d9-8c7d-3e954cb86023 - X-Trace-Id: - - 4122819bee2c0a67 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls?limit=50"},"total_count":1,"network_acls":[{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate","created_at":"2020-03-31T02:16:00Z","rules":[{"id":"8106f2a2-9bd1-490d-930d-329531138f99","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/8106f2a2-9bd1-490d-930d-329531138f99","name":"unsteady-trolling-matron-labored-shrapnel-ether","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound"},"created_at":"2020-03-31T02:16:59Z"},{"id":"r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-adc77bf0-9c95-4b02-9b03-5548551e9d43","name":"allow-inbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"inbound","action":"allow","ip_version":"ipv4","before":{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka"},"created_at":"2020-03-31T02:16:00Z"},{"id":"b1dbc055-1f01-4a29-812d-6914eae7d4e6","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/b1dbc055-1f01-4a29-812d-6914eae7d4e6","name":"diminish-glamour-trump-procreate-crabbing-bazooka","source_port_min":1,"source_port_max":65535,"destination_port_min":1,"destination_port_max":65535,"protocol":"tcp","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","before":{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound"},"created_at":"2020-03-31T02:17:18Z"},{"id":"r014-d0620748-4999-4636-97fd-3564ec486578","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3/rules/r014-d0620748-4999-4636-97fd-3564ec486578","name":"allow-outbound","protocol":"all","source":"127.0.0.0/0","destination":"127.0.0.0/0","direction":"outbound","action":"allow","ip_version":"ipv4","created_at":"2020-03-31T02:16:00Z"}],"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}],"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:24 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_access_fetch.yml deleted file mode 100644 index 24273620..00000000 --- a/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,149 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 9ed4ddd786c64bde92f3e5c0bf33cab2 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:24 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:24 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/operating_systems?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:24 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dd5a20b323065104bbbde1dd303bfb0751601595264; expires=Sat, 31-Oct-20 - 23:34:24 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe83fb52cabc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d667c0000cabc36279200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 9d0a7a5484440e7ac8dbc7b69de4b486 - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 9d0a7a5484440e7ac8dbc7b69de4b486 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems?limit=50"},"limit":50,"operating_systems":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-8-amd64","name":"centos-8-amd64","architecture":"amd64","display_name":"CentOS - 8.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"8.x - - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-10-amd64","name":"debian-10-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 10.x Buster/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"10.x - Buster/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-8-amd64","name":"debian-8-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 8.x jessie/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"8.x - jessie/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-applications","name":"red-7-amd64-sap-applications","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x for SAP Applications (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-hana","name":"red-7-amd64-sap-hana","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.6 for SAP HANA (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.6 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-8-amd64","name":"red-8-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 8.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"8.x - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-12-amd64-sap-applications","name":"sles-12-amd64-sap-applications","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 12 for SAP Applications (amd64)","family":"SUSE Linux - Enterprise Server","vendor":"SUSE","version":"12 for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-12-amd64-sap-hana","name":"sles-12-amd64-sap-hana","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 12 for SAP HANA (amd64)","family":"SUSE Linux Enterprise - Server","vendor":"SUSE","version":"12 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-15-sp1-amd64-sap-applications","name":"sles-15-sp1-amd64-sap-applications","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 15 SP1 for SAP Applications (amd64)","family":"SUSE - Linux Enterprise Server","vendor":"SUSE","version":"15 SP1 for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-15-sp1-amd64-sap-hana","name":"sles-15-sp1-amd64-sap-hana","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 15 SP1 for SAP HANA (amd64)","family":"SUSE Linux - Enterprise Server","vendor":"SUSE","version":"15 SP1 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-20-04-amd64","name":"ubuntu-20-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 20.04 LTS Focal Fossa Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"20.04 - LTS Focal Fossa Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2019-amd64","name":"windows-2019-amd64","architecture":"amd64","display_name":"Windows - Server 2019 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2019 - Standard Edition"}]}' - recorded_at: Thu, 01 Oct 2020 23:34:24 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 67223c8c..00000000 --- a/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,149 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - c084637b654d470c80a364c056b3b424 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:25 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fc92053bcecf731b14d04bf54069043d; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:25 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/operating_systems?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:26 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df57779b54ff5fb7f9500634205a3d6591601595265; expires=Sat, 31-Oct-20 - 23:34:25 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe8c5c58caa8-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d6bba0000caa8212db200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 3c647ea653b661272612a660374de838 - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 3c647ea653b661272612a660374de838 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems?limit=50"},"limit":50,"operating_systems":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-8-amd64","name":"centos-8-amd64","architecture":"amd64","display_name":"CentOS - 8.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"8.x - - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-10-amd64","name":"debian-10-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 10.x Buster/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"10.x - Buster/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-8-amd64","name":"debian-8-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 8.x jessie/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"8.x - jessie/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-applications","name":"red-7-amd64-sap-applications","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x for SAP Applications (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-hana","name":"red-7-amd64-sap-hana","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.6 for SAP HANA (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.6 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-8-amd64","name":"red-8-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 8.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"8.x - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-12-amd64-sap-applications","name":"sles-12-amd64-sap-applications","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 12 for SAP Applications (amd64)","family":"SUSE Linux - Enterprise Server","vendor":"SUSE","version":"12 for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-12-amd64-sap-hana","name":"sles-12-amd64-sap-hana","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 12 for SAP HANA (amd64)","family":"SUSE Linux Enterprise - Server","vendor":"SUSE","version":"12 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-15-sp1-amd64-sap-applications","name":"sles-15-sp1-amd64-sap-applications","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 15 SP1 for SAP Applications (amd64)","family":"SUSE - Linux Enterprise Server","vendor":"SUSE","version":"15 SP1 for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-15-sp1-amd64-sap-hana","name":"sles-15-sp1-amd64-sap-hana","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 15 SP1 for SAP HANA (amd64)","family":"SUSE Linux - Enterprise Server","vendor":"SUSE","version":"15 SP1 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-20-04-amd64","name":"ubuntu-20-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 20.04 LTS Focal Fossa Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"20.04 - LTS Focal Fossa Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2019-amd64","name":"windows-2019-amd64","architecture":"amd64","display_name":"Windows - Server 2019 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2019 - Standard Edition"}]}' - recorded_at: Thu, 01 Oct 2020 23:34:26 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_get_all.yml deleted file mode 100644 index cd8b188c..00000000 --- a/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_get_all.yml +++ /dev/null @@ -1,149 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - ca8f962445964b1286301158effe739c - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:26 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=472bbcaeccd3a83e93006ec9f2aa6e9e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:26 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/operating_systems?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:26 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d00b82dcc8a5d7c5643f151a3beec56f11601595266; expires=Sat, 31-Oct-20 - 23:34:26 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe8ea8c6cabc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d6d250000cabc371e7200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 36cdb43c53e74a78231622847ebda4c1 - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 36cdb43c53e74a78231622847ebda4c1 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems?limit=50"},"limit":50,"operating_systems":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-8-amd64","name":"centos-8-amd64","architecture":"amd64","display_name":"CentOS - 8.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"8.x - - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-10-amd64","name":"debian-10-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 10.x Buster/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"10.x - Buster/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-8-amd64","name":"debian-8-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 8.x jessie/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"8.x - jessie/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-applications","name":"red-7-amd64-sap-applications","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x for SAP Applications (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-hana","name":"red-7-amd64-sap-hana","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.6 for SAP HANA (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.6 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-8-amd64","name":"red-8-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 8.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"8.x - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-12-amd64-sap-applications","name":"sles-12-amd64-sap-applications","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 12 for SAP Applications (amd64)","family":"SUSE Linux - Enterprise Server","vendor":"SUSE","version":"12 for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-12-amd64-sap-hana","name":"sles-12-amd64-sap-hana","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 12 for SAP HANA (amd64)","family":"SUSE Linux Enterprise - Server","vendor":"SUSE","version":"12 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-15-sp1-amd64-sap-applications","name":"sles-15-sp1-amd64-sap-applications","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 15 SP1 for SAP Applications (amd64)","family":"SUSE - Linux Enterprise Server","vendor":"SUSE","version":"15 SP1 for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-15-sp1-amd64-sap-hana","name":"sles-15-sp1-amd64-sap-hana","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 15 SP1 for SAP HANA (amd64)","family":"SUSE Linux - Enterprise Server","vendor":"SUSE","version":"15 SP1 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-20-04-amd64","name":"ubuntu-20-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 20.04 LTS Focal Fossa Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"20.04 - LTS Focal Fossa Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2019-amd64","name":"windows-2019-amd64","architecture":"amd64","display_name":"Windows - Server 2019 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2019 - Standard Edition"}]}' - recorded_at: Thu, 01 Oct 2020 23:34:26 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 2e9c007d..00000000 --- a/spec/vcr/Test_vpc_API/operating_systems_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,149 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 8136b92b5ce84a54a78fbae8e16fd499 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:26 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:26 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/operating_systems?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:26 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d06b38aa7fdfa7d2c19d7c71b88d7e4071601595266; expires=Sat, 31-Oct-20 - 23:34:26 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe906ddfcab4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d6e400000cab44725a200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - bd3565d8d61ab5656eec115e506c7f9a - X-Content-Type-Options: - - nosniff - X-Request-Id: - - bd3565d8d61ab5656eec115e506c7f9a - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems?limit=50"},"limit":50,"operating_systems":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-7-amd64","name":"centos-7-amd64","architecture":"amd64","display_name":"CentOS - 7.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"7.x - - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/centos-8-amd64","name":"centos-8-amd64","architecture":"amd64","display_name":"CentOS - 8.x - Minimal Install (amd64)","family":"CentOS","vendor":"CentOS","version":"8.x - - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-10-amd64","name":"debian-10-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 10.x Buster/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"10.x - Buster/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-8-amd64","name":"debian-8-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 8.x jessie/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"8.x - jessie/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/debian-9-amd64","name":"debian-9-amd64","architecture":"amd64","display_name":"Debian - GNU/Linux 9.x Stretch/Stable - Minimal Install (amd64)","family":"Debian GNU/Linux","vendor":"Debian","version":"9.x - Stretch/Stable - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64","name":"red-7-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-applications","name":"red-7-amd64-sap-applications","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.x for SAP Applications (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.x for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-7-amd64-sap-hana","name":"red-7-amd64-sap-hana","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 7.6 for SAP HANA (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"7.6 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/red-8-amd64","name":"red-8-amd64","architecture":"amd64","display_name":"Red - Hat Enterprise Linux 8.x - Minimal Install (amd64)","family":"Red Hat Enterprise - Linux","vendor":"Red Hat","version":"8.x - Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-12-amd64-sap-applications","name":"sles-12-amd64-sap-applications","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 12 for SAP Applications (amd64)","family":"SUSE Linux - Enterprise Server","vendor":"SUSE","version":"12 for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-12-amd64-sap-hana","name":"sles-12-amd64-sap-hana","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 12 for SAP HANA (amd64)","family":"SUSE Linux Enterprise - Server","vendor":"SUSE","version":"12 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-15-sp1-amd64-sap-applications","name":"sles-15-sp1-amd64-sap-applications","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 15 SP1 for SAP Applications (amd64)","family":"SUSE - Linux Enterprise Server","vendor":"SUSE","version":"15 SP1 for Applications"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/sles-15-sp1-amd64-sap-hana","name":"sles-15-sp1-amd64-sap-hana","architecture":"amd64","display_name":"SUSE - Linux Enterprise Server 15 SP1 for SAP HANA (amd64)","family":"SUSE Linux - Enterprise Server","vendor":"SUSE","version":"15 SP1 for SAP HANA"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-16-04-amd64","name":"ubuntu-16-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 16.04 LTS Xenial Xerus Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"16.04 - LTS Xenial Xerus Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-18-04-amd64","name":"ubuntu-18-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 18.04 LTS Bionic Beaver Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"18.04 - LTS Bionic Beaver Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/ubuntu-20-04-amd64","name":"ubuntu-20-04-amd64","architecture":"amd64","display_name":"Ubuntu - Linux 20.04 LTS Focal Fossa Minimal Install (amd64)","family":"Ubuntu Linux","vendor":"Canonical","version":"20.04 - LTS Focal Fossa Minimal Install"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-amd64","name":"windows-2012-amd64","architecture":"amd64","display_name":"Windows - Server 2012 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2012-r2-amd64","name":"windows-2012-r2-amd64","architecture":"amd64","display_name":"Windows - Server 2012 R2 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2012 - R2 Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2016-amd64","name":"windows-2016-amd64","architecture":"amd64","display_name":"Windows - Server 2016 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2016 - Standard Edition"},{"href":"https://us-east.iaas.cloud.ibm.com/v1/operating_systems/windows-2019-amd64","name":"windows-2019-amd64","architecture":"amd64","display_name":"Windows - Server 2019 Standard Edition (amd64)","family":"Windows Server","vendor":"Microsoft","version":"2019 - Standard Edition"}]}' - recorded_at: Thu, 01 Oct 2020 23:34:26 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_access_fetch.yml deleted file mode 100644 index 78160184..00000000 --- a/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 5e0a0488f9f844698b3b8494ec2df3ca - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:27 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:27 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/public_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:27 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=db7f77ac168fc090abb2cdf1efe6720431601595267; expires=Sat, 31-Oct-20 - 23:34:27 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe94f914f991-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d71190000f99154833200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - d5737549-be45-472b-b4bd-4207231a3e73 - X-Trace-Id: - - 13c3f6b92cb08c96 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways?limit=50"},"total_count":1,"public_gateways":[{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","resource_type":"public_gateway","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"floating_ip":{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"status":"available"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:27 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_access_has_count_.yml deleted file mode 100644 index d77c302d..00000000 --- a/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - a7f3ec2db49d45048b96258fe8c1ad5d - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:28 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=ce3971e5fa3597045425df8136eb3e4e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:28 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/public_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:28 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df5cdde5718109901870ee303c57537fe1601595268; expires=Sat, 31-Oct-20 - 23:34:28 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fe9a7c38cab8-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d748f0000cab86aa45200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - ecc02096-fc79-4866-a6a4-314a6d31465a - X-Trace-Id: - - 148a5ab6972df817 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways?limit=50"},"total_count":1,"public_gateways":[{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","resource_type":"public_gateway","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"floating_ip":{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"status":"available"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:28 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_get_all.yml deleted file mode 100644 index 0dfff0ff..00000000 --- a/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_get_all.yml +++ /dev/null @@ -1,176 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - fd30de4b74df46f4a1e89e9a4c232857 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:29 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:29 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/public_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:30 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d9fbbe475193652ab3ac0954b1b25ffa01601595269; expires=Sat, 31-Oct-20 - 23:34:29 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fea2ff9dcaa4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d79de0000caa42732f200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 8d3b0be3-c14c-45f6-9718-1db58d90c09c - X-Trace-Id: - - 34888558932e6ef6 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways?limit=50"},"total_count":1,"public_gateways":[{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","resource_type":"public_gateway","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"floating_ip":{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"status":"available"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:30 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/public_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:30 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df10c18883991f77f1796fbb09526031b1601595270; expires=Sat, 31-Oct-20 - 23:34:30 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fea7ba20f99d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d7cd40000f99ded0bb200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - f254dab6-7633-4f1b-bd50-193f4f7c7a32 - X-Trace-Id: - - 5daf14b78868a81 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways?limit=50"},"total_count":1,"public_gateways":[{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","resource_type":"public_gateway","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"floating_ip":{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"status":"available"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:30 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 7b8b4d97..00000000 --- a/spec/vcr/Test_vpc_API/public_gateways_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - b23fca1de0064f2c9833fe7ba1585178 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:32 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:32 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/public_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:32 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d9cde3685f539b50423934b6188f69c201601595272; expires=Sat, 31-Oct-20 - 23:34:32 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9feb33dd2cabc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d84060000cabc258b8200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - ec46a27e-5eb2-448a-861f-5df027535d30 - X-Trace-Id: - - 5a473cc50fdac311 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways?limit=50"},"total_count":1,"public_gateways":[{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692","resource_type":"public_gateway","created_at":"2020-03-31T02:16:02Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"floating_ip":{"id":"r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-77e8e1e8-762e-43dd-8500-0a71e8fa8238","address":"127.0.0.14","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"status":"available"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:32 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/regions_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/regions_vpc_API/can_access_fetch.yml deleted file mode 100644 index 5f0560ce..00000000 --- a/spec/vcr/Test_vpc_API/regions_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 1188277eb6d749ca996bde657af40bc2 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:33 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=eae45e398a21d7cf494227da2e8e0b59; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:33 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/regions?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:36 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2105d0499d3e9ea50a22a132fb6bb97e1601595273; expires=Sat, 31-Oct-20 - 23:34:33 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9febdea3aca90-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d8ab00000ca90d41b1200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - fb8dd45a-7f61-4cb1-a9b8-682209c3bfd7 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"regions":[{"name":"au-syd","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/au-syd","endpoint":"https://au-syd.iaas.cloud.ibm.com","status":"available"},{"name":"eu-de","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/eu-de","endpoint":"https://eu-de.iaas.cloud.ibm.com","status":"available"},{"name":"eu-gb","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/eu-gb","endpoint":"https://eu-gb.iaas.cloud.ibm.com","status":"available"},{"name":"jp-tok","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/jp-tok","endpoint":"https://jp-tok.iaas.cloud.ibm.com","status":"available"},{"name":"us-east","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east","endpoint":"https://us-east.iaas.cloud.ibm.com","status":"available"},{"name":"us-south","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-south","endpoint":"https://us-south.iaas.cloud.ibm.com","status":"available"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:36 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/regions_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/regions_vpc_API/can_access_has_count_.yml deleted file mode 100644 index b2de6786..00000000 --- a/spec/vcr/Test_vpc_API/regions_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 29d58ecbb84442e298ffb157089b81bc - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:36 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:36 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/regions?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:38 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=de9c77d11a26f35dc4070463d655683491601595276; expires=Sat, 31-Oct-20 - 23:34:36 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fed07a2cf97d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d96460000f97da32b8200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 5047a40d-b11a-4854-b64f-ecf2918d703e - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"regions":[{"name":"au-syd","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/au-syd","endpoint":"https://au-syd.iaas.cloud.ibm.com","status":"available"},{"name":"eu-de","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/eu-de","endpoint":"https://eu-de.iaas.cloud.ibm.com","status":"available"},{"name":"eu-gb","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/eu-gb","endpoint":"https://eu-gb.iaas.cloud.ibm.com","status":"available"},{"name":"jp-tok","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/jp-tok","endpoint":"https://jp-tok.iaas.cloud.ibm.com","status":"available"},{"name":"us-east","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east","endpoint":"https://us-east.iaas.cloud.ibm.com","status":"available"},{"name":"us-south","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-south","endpoint":"https://us-south.iaas.cloud.ibm.com","status":"available"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:38 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/regions_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/regions_vpc_API/can_get_all.yml deleted file mode 100644 index df5ab84e..00000000 --- a/spec/vcr/Test_vpc_API/regions_vpc_API/can_get_all.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - e85c7691dd0745358aac3d4ec810a31f - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:38 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:38 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/regions?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:41 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d1675802dfa1153d5d22ff27bea7218311601595279; expires=Sat, 31-Oct-20 - 23:34:39 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fedda86eab6a-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881d9e8c0000ab6af927f200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - '0293704f-6d66-431f-b05e-b7bb2adb0a83' - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"regions":[{"name":"au-syd","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/au-syd","endpoint":"https://au-syd.iaas.cloud.ibm.com","status":"available"},{"name":"eu-de","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/eu-de","endpoint":"https://eu-de.iaas.cloud.ibm.com","status":"available"},{"name":"eu-gb","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/eu-gb","endpoint":"https://eu-gb.iaas.cloud.ibm.com","status":"available"},{"name":"jp-tok","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/jp-tok","endpoint":"https://jp-tok.iaas.cloud.ibm.com","status":"available"},{"name":"us-east","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east","endpoint":"https://us-east.iaas.cloud.ibm.com","status":"available"},{"name":"us-south","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-south","endpoint":"https://us-south.iaas.cloud.ibm.com","status":"available"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:41 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/regions_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/regions_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 55f051f5..00000000 --- a/spec/vcr/Test_vpc_API/regions_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 399baf53dba64cc8b8fffb54143171d3 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:41 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:41 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/regions?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:43 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d8105026baedd542ea7a920636ac028941601595281; expires=Sat, 31-Oct-20 - 23:34:41 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9feed0e67f98d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881da8250000f98d22ac2200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 25b276e5-7edf-4110-8b66-ad526d03e602 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"regions":[{"name":"au-syd","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/au-syd","endpoint":"https://au-syd.iaas.cloud.ibm.com","status":"available"},{"name":"eu-de","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/eu-de","endpoint":"https://eu-de.iaas.cloud.ibm.com","status":"available"},{"name":"eu-gb","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/eu-gb","endpoint":"https://eu-gb.iaas.cloud.ibm.com","status":"available"},{"name":"jp-tok","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/jp-tok","endpoint":"https://jp-tok.iaas.cloud.ibm.com","status":"available"},{"name":"us-east","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east","endpoint":"https://us-east.iaas.cloud.ibm.com","status":"available"},{"name":"us-south","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-south","endpoint":"https://us-south.iaas.cloud.ibm.com","status":"available"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:43 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_access_fetch.yml deleted file mode 100644 index c3605416..00000000 --- a/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 10738a21005d4b35a2d361b6e03d66d6 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:44 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:44 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/security_groups?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:45 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dd239efc1bbab621e649c080daa03185d1601595284; expires=Sat, 31-Oct-20 - 23:34:44 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fefe4b61cabc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881db2f00000cabc2e00f200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 0c1440da-b590-420f-beab-2455076a8229 - X-Trace-Id: - - 1c33e5f716c87b90 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups?limit=50"},"total_count":1,"security_groups":[{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit","rules":[{"id":"r014-287518c2-9046-4827-89a8-31f52c9f1ef3","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-287518c2-9046-4827-89a8-31f52c9f1ef3","direction":"outbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","direction":"inbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-942705b8-da85-4bb2-8528-c44369ada6bf","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-942705b8-da85-4bb2-8528-c44369ada6bf","direction":"inbound","ip_version":"ipv4","protocol":"icmp","type":8,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a1417a26-6392-4066-923d-e767914befb8","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a1417a26-6392-4066-923d-e767914befb8","direction":"inbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","direction":"outbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}}],"network_interfaces":[{"id":"0777-4b0566a4-7623-4578-b316-978922010b81","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"}],"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"created_at":"2020-03-31T02:16:00Z","resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:45 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_access_has_count_.yml deleted file mode 100644 index b4f6c3e9..00000000 --- a/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - f138ccd2997f4660ae158e0797a7fab3 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:45 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fc92053bcecf731b14d04bf54069043d; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:45 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/security_groups?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:46 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d726860cf0856a4b6be034bb7c8da331d1601595285; expires=Sat, 31-Oct-20 - 23:34:45 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff095f25ca90-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881db9d60000ca90c390a200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 82574dae-b1fb-4892-a9fb-deaa1a9d4aa8 - X-Trace-Id: - - 4fb104489382ccfc - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups?limit=50"},"total_count":1,"security_groups":[{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit","rules":[{"id":"r014-287518c2-9046-4827-89a8-31f52c9f1ef3","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-287518c2-9046-4827-89a8-31f52c9f1ef3","direction":"outbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","direction":"inbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-942705b8-da85-4bb2-8528-c44369ada6bf","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-942705b8-da85-4bb2-8528-c44369ada6bf","direction":"inbound","ip_version":"ipv4","protocol":"icmp","type":8,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a1417a26-6392-4066-923d-e767914befb8","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a1417a26-6392-4066-923d-e767914befb8","direction":"inbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","direction":"outbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}}],"network_interfaces":[{"id":"0777-4b0566a4-7623-4578-b316-978922010b81","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"}],"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"created_at":"2020-03-31T02:16:00Z","resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:46 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_get_all.yml deleted file mode 100644 index 7f92c914..00000000 --- a/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_get_all.yml +++ /dev/null @@ -1,176 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 2824f3dd82464c5db63455f951bce4e6 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:46 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=ce3971e5fa3597045425df8136eb3e4e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:46 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/security_groups?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:47 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dd85cecea1fe5585428e16dad7c85243e1601595286; expires=Sat, 31-Oct-20 - 23:34:46 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff0eea79ab88-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881dbd4c0000ab88ba25a200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - d7fdee53-6436-4893-b1c1-a316282bf15f - X-Trace-Id: - - 211aedd381e90001 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups?limit=50"},"total_count":1,"security_groups":[{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit","rules":[{"id":"r014-287518c2-9046-4827-89a8-31f52c9f1ef3","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-287518c2-9046-4827-89a8-31f52c9f1ef3","direction":"outbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","direction":"inbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-942705b8-da85-4bb2-8528-c44369ada6bf","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-942705b8-da85-4bb2-8528-c44369ada6bf","direction":"inbound","ip_version":"ipv4","protocol":"icmp","type":8,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a1417a26-6392-4066-923d-e767914befb8","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a1417a26-6392-4066-923d-e767914befb8","direction":"inbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","direction":"outbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}}],"network_interfaces":[{"id":"0777-4b0566a4-7623-4578-b316-978922010b81","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"}],"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"created_at":"2020-03-31T02:16:00Z","resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:47 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/security_groups?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:48 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dde9db35055cabfb16909b283fd64cb251601595287; expires=Sat, 31-Oct-20 - 23:34:47 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff133dcaf989-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881dc0000000f98984b65200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 04a85aa6-72e1-44f5-8bde-757d96926198 - X-Trace-Id: - - 7c7ffa748469cd73 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups?limit=50"},"total_count":1,"security_groups":[{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit","rules":[{"id":"r014-287518c2-9046-4827-89a8-31f52c9f1ef3","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-287518c2-9046-4827-89a8-31f52c9f1ef3","direction":"outbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","direction":"inbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-942705b8-da85-4bb2-8528-c44369ada6bf","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-942705b8-da85-4bb2-8528-c44369ada6bf","direction":"inbound","ip_version":"ipv4","protocol":"icmp","type":8,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a1417a26-6392-4066-923d-e767914befb8","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a1417a26-6392-4066-923d-e767914befb8","direction":"inbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","direction":"outbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}}],"network_interfaces":[{"id":"0777-4b0566a4-7623-4578-b316-978922010b81","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"}],"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"created_at":"2020-03-31T02:16:00Z","resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:48 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 767bfcdc..00000000 --- a/spec/vcr/Test_vpc_API/security_groups_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 1fed7bf49b444cf2b16077420258e6a8 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:48 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:48 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/security_groups?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:49 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=db94c354f459ace743a460c35ebe40c6d1601595288; expires=Sat, 31-Oct-20 - 23:34:48 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff19cf95ab6a-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881dc4200000ab6afab10200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - efbcfc03-db7e-4cd9-8770-56ed8012aa4f - X-Trace-Id: - - 1b72bb429c204e48 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups?limit=50"},"total_count":1,"security_groups":[{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit","rules":[{"id":"r014-287518c2-9046-4827-89a8-31f52c9f1ef3","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-287518c2-9046-4827-89a8-31f52c9f1ef3","direction":"outbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-7ed62e64-3cc4-450d-ba8b-c9223cce6c6d","direction":"inbound","ip_version":"ipv4","protocol":"all","remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-942705b8-da85-4bb2-8528-c44369ada6bf","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-942705b8-da85-4bb2-8528-c44369ada6bf","direction":"inbound","ip_version":"ipv4","protocol":"icmp","type":8,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a1417a26-6392-4066-923d-e767914befb8","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a1417a26-6392-4066-923d-e767914befb8","direction":"inbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}},{"id":"r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0/rules/r014-a455dbfc-e63a-44a0-a65e-816a58bdef8b","direction":"outbound","ip_version":"ipv4","protocol":"tcp","port_min":1,"port_max":65535,"remote":{"cidr_block":"127.0.0.0/0"}}],"network_interfaces":[{"id":"0777-4b0566a4-7623-4578-b316-978922010b81","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"},{"id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","subnet":{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"resource_type":"network_interface"}],"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"created_at":"2020-03-31T02:16:00Z","resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:49 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/subnets_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/subnets_vpc_API/can_access_fetch.yml deleted file mode 100644 index 7ca87faf..00000000 --- a/spec/vcr/Test_vpc_API/subnets_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - a411e2f579f24c30b882869372bd8bb1 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:49 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=472bbcaeccd3a83e93006ec9f2aa6e9e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:49 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/subnets?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:50 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=de813864a432be0c77fbb9aafeb0edac01601595289; expires=Sat, 31-Oct-20 - 23:34:49 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff211e18cac4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881dc8b00000cac40c994200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - e0c873a3-af85-4762-8148-511c4e174c31 - X-Trace-Id: - - 77b5a0a4604bf412 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/subnets?limit=50"},"total_count":1,"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet","available_ipv4_address_count":248,"ipv4_cidr_block":"127.0.0.0/24","ip_version":"ipv4","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"status":"available","total_ipv4_address_count":256,"created_at":"2020-03-31T02:16:01Z","network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"public_gateway":{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:50 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/subnets_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/subnets_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 72bbc3cd..00000000 --- a/spec/vcr/Test_vpc_API/subnets_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - aa71128918894ac29e6298229e0e0801 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:51 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=9c8a8988c52cfbd3f315ff68a80d4a81; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:51 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/subnets?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:51 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=db2aff2c110298e82e95c28535c292f2b1601595291; expires=Sat, 31-Oct-20 - 23:34:51 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff295afbab94-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881dcdd90000ab942ab66200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 046e78e7-e987-48ba-b25f-102c291a7f50 - X-Trace-Id: - - 2bd8aee12c7020e1 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/subnets?limit=50"},"total_count":1,"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet","available_ipv4_address_count":248,"ipv4_cidr_block":"127.0.0.0/24","ip_version":"ipv4","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"status":"available","total_ipv4_address_count":256,"created_at":"2020-03-31T02:16:01Z","network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"public_gateway":{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:51 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/subnets_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/subnets_vpc_API/can_get_all.yml deleted file mode 100644 index de4b1962..00000000 --- a/spec/vcr/Test_vpc_API/subnets_vpc_API/can_get_all.yml +++ /dev/null @@ -1,176 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 3eadf1d3bdc244a8a3a254f1c3281bfb - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:53 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=6bce74f4b20aa49018139f61a66aa0cb; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:53 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/subnets?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:54 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d45ebe686a4d563acf9508c7a05d88bd11601595293; expires=Sat, 31-Oct-20 - 23:34:53 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff35efb7cab4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881dd5b10000cab444867200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 76443952-506a-43d5-a428-95c734bdc10f - X-Trace-Id: - - 7b2dfdcec1add08e - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/subnets?limit=50"},"total_count":1,"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet","available_ipv4_address_count":248,"ipv4_cidr_block":"127.0.0.0/24","ip_version":"ipv4","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"status":"available","total_ipv4_address_count":256,"created_at":"2020-03-31T02:16:01Z","network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"public_gateway":{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:54 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/subnets?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:54 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d91afa94433d64dd2b85c4ea0e3ac06051601595294; expires=Sat, 31-Oct-20 - 23:34:54 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff3dad72caa4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881dda850000caa4331c1200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 5638a5da-4292-42ad-9cdf-3e1df1d0e9be - X-Trace-Id: - - 1fbca8ad5b7256a - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/subnets?limit=50"},"total_count":1,"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet","available_ipv4_address_count":248,"ipv4_cidr_block":"127.0.0.0/24","ip_version":"ipv4","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"status":"available","total_ipv4_address_count":256,"created_at":"2020-03-31T02:16:01Z","network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"public_gateway":{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:54 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/subnets_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/subnets_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 029e8c59..00000000 --- a/spec/vcr/Test_vpc_API/subnets_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 67c1e5ed208c491d81b25a134991023c - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:55 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=9f51bef8ae051439dd0a24cae543baf1; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:55 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/subnets?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:55 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df7d3aa4c95b4c22a671af5526b6c310e1601595295; expires=Sat, 31-Oct-20 - 23:34:55 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff431d88ca90-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881dddee0000ca90cfa27200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 5bc784a1-932c-4544-84a6-5bd0015ab510 - X-Trace-Id: - - 3db7403accae5d9a - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/subnets?limit=50"},"total_count":1,"subnets":[{"id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet","available_ipv4_address_count":248,"ipv4_cidr_block":"127.0.0.0/24","ip_version":"ipv4","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"vpc":{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"status":"available","total_ipv4_address_count":256,"created_at":"2020-03-31T02:16:01Z","network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"public_gateway":{"id":"r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::public-gateway:r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","href":"https://us-east.iaas.cloud.ibm.com/v1/public_gateways/r014-1bdb4895-dd7d-4b15-a172-3d82c13428d4","name":"pgw-91367280-72f5-11ea-9ebe-bbb9ec18e692"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:34:55 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_access_fetch.yml deleted file mode 100644 index 9bd9f438..00000000 --- a/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - fa3a6a6745b7491ba6ef4aed47bfaefa - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:06 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=1178c9043b80c97a04485cf481708109; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:06 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:06 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d1c308f9c4c4a0ea90bcc4bb3303696de1601595306; expires=Sat, 31-Oct-20 - 23:35:06 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff881c85ca90-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e09120000ca90d785e200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - e7b634dcf00881c607c99c98bd1b2d17 - X-Byok-Whitelist-Response: - - 'true' - X-Content-Type-Options: - - nosniff - X-Request-Id: - - e7b634dcf00881c607c99c98bd1b2d17 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?limit=50"},"limit":50,"total_count":4,"profiles":[{"name":"10iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/10iops-tier"},{"name":"5iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/5iops-tier"},{"name":"custom","family":"custom","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/custom"},{"name":"general-purpose","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose"}]}' - recorded_at: Thu, 01 Oct 2020 23:35:06 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 7c1078dc..00000000 --- a/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 97095fbe1f1b42568dda446a25f13089 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:06 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=aa2093d4e90cef4bdda52de1ab974f35; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:06 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:07 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=decf13e2368b29531b146e810ba51dfc91601595306; expires=Sat, 31-Oct-20 - 23:35:06 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff8b0a1df995-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e0ae00000f995ee912200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 52308f4f23e2d516b2b93224d9a4e603 - X-Byok-Whitelist-Response: - - 'true' - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 52308f4f23e2d516b2b93224d9a4e603 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?limit=50"},"limit":50,"total_count":4,"profiles":[{"name":"10iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/10iops-tier"},{"name":"5iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/5iops-tier"},{"name":"custom","family":"custom","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/custom"},{"name":"general-purpose","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose"}]}' - recorded_at: Thu, 01 Oct 2020 23:35:07 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_get_all.yml deleted file mode 100644 index e9f5047d..00000000 --- a/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_get_all.yml +++ /dev/null @@ -1,176 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - b9266cd1af204d4a81a13986adfda6e8 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:09 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=53ae5666c1df4baec6156d0c05df66c2; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:09 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:09 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d5e05b29bd12aeb2200c7f59a005976971601595309; expires=Sat, 31-Oct-20 - 23:35:09 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff9ddf38caa8-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e16a20000caa825109200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 22773f52d7e3b7dbc655a31f6753b288 - X-Byok-Whitelist-Response: - - 'true' - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 22773f52d7e3b7dbc655a31f6753b288 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?limit=50"},"limit":50,"total_count":4,"profiles":[{"name":"10iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/10iops-tier"},{"name":"5iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/5iops-tier"},{"name":"custom","family":"custom","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/custom"},{"name":"general-purpose","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose"}]}' - recorded_at: Thu, 01 Oct 2020 23:35:09 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:10 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d4051b1fa577d13d40d94a352e8295c611601595309; expires=Sat, 31-Oct-20 - 23:35:09 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff9f3ac6f981-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e17870000f981ec14f200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - d0345410d81c5fc7bee4a37dbe35f136 - X-Byok-Whitelist-Response: - - 'true' - X-Content-Type-Options: - - nosniff - X-Request-Id: - - d0345410d81c5fc7bee4a37dbe35f136 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?limit=50"},"limit":50,"total_count":4,"profiles":[{"name":"10iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/10iops-tier"},{"name":"5iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/5iops-tier"},{"name":"custom","family":"custom","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/custom"},{"name":"general-purpose","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose"}]}' - recorded_at: Thu, 01 Oct 2020 23:35:10 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_get_an_instance.yml deleted file mode 100644 index d3b3a98d..00000000 --- a/spec/vcr/Test_vpc_API/volumes_profiles_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - c7c22e8362dc45879ff6a288e094faff - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:10 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=a649067d4fae0d0d8a779de1326e0171; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:11 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:11 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d86dc6ee1f2ea5883758fb729c188299c1601595311; expires=Sat, 31-Oct-20 - 23:35:11 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ffa6bb72f999-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e1c350000f9997a9ea200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 0fd1f4acc18c0d1d73173f42574fbf60 - X-Byok-Whitelist-Response: - - 'true' - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 0fd1f4acc18c0d1d73173f42574fbf60 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles?limit=50"},"limit":50,"total_count":4,"profiles":[{"name":"10iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/10iops-tier"},{"name":"5iops-tier","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/5iops-tier"},{"name":"custom","family":"custom","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/custom"},{"name":"general-purpose","family":"tiered","href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose"}]}' - recorded_at: Thu, 01 Oct 2020 23:35:11 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/volumes_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/volumes_vpc_API/can_access_fetch.yml deleted file mode 100644 index dadb5acf..00000000 --- a/spec/vcr/Test_vpc_API/volumes_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - d837a2b3657148bba7e36e692f64162c - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:57 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=1178c9043b80c97a04485cf481708109; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:57 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/volumes?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:34:58 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dfb22faec159c8e0c8608b874ae5df05f1601595297; expires=Sat, 31-Oct-20 - 23:34:57 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff4f2f7ccabc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881de57d0000cabc2bb2f200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 0c965473f5832c20bc58b5c545d95443 - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 0c965473f5832c20bc58b5c545d95443 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volumes?start=r014-75d669a9-72f6-11ea-b28c-feff0b284b22\u0026limit=50"},"limit":50,"volumes":[{"capacity":100,"created_at":"2020-03-31T02:22:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","iops":3000,"name":"postgres","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":false,"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"data"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-03-31T02:22:30.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","iops":3000,"name":"test-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-09-23T13:27:31.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","iops":3000,"name":"cmh1-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":""},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","name":"cmh1"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":10,"created_at":"2020-09-23T14:58:58.000Z","crn":"crn:v1:bluemix:public:is:us-east-1:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","id":"r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","iops":3000,"name":"brad","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-1","name":"us-east-1"}},{"capacity":10,"created_at":"2020-09-23T14:59:31.000Z","crn":"crn:v1:bluemix:public:is:us-east-2:a/c56c9a268d23e1b339ac14774358133c::volume:r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","id":"r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","iops":3000,"name":"brad2","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/c315f4fc1e3e4d5ca4cc2a2c38e40ef6","id":"c315f4fc1e3e4d5ca4cc2a2c38e40ef6","name":"cloudforms"},"status":"available","volume_attachments":[],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-2","name":"us-east-2"}},{"capacity":10,"created_at":"2020-09-23T15:01:17.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","iops":3000,"name":"bradboot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","id":"29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":false,"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"data"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-09-29T15:58:47.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","iops":3000,"name":"cmh2-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":""},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","name":"cmh2"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}}]}' - recorded_at: Thu, 01 Oct 2020 23:34:58 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/volumes_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/volumes_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 36eb6aad..00000000 --- a/spec/vcr/Test_vpc_API/volumes_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - d87ec7aeca134af4ac7d3143b9952e33 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:34:58 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=6bce74f4b20aa49018139f61a66aa0cb; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:34:58 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/volumes?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:00 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d410837a14021befff77a62b8249194351601595298; expires=Sat, 31-Oct-20 - 23:34:58 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff59ff9dab6a-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881dec3f0000ab6af83ff200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 70e08206c33015baf511316b851969d7 - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 70e08206c33015baf511316b851969d7 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volumes?start=r014-75d669a9-72f6-11ea-b28c-feff0b284b22\u0026limit=50"},"limit":50,"volumes":[{"capacity":100,"created_at":"2020-03-31T02:22:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","iops":3000,"name":"postgres","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":false,"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"data"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-03-31T02:22:30.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","iops":3000,"name":"test-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-09-23T13:27:31.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","iops":3000,"name":"cmh1-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":""},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","name":"cmh1"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":10,"created_at":"2020-09-23T14:58:58.000Z","crn":"crn:v1:bluemix:public:is:us-east-1:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","id":"r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","iops":3000,"name":"brad","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-1","name":"us-east-1"}},{"capacity":10,"created_at":"2020-09-23T14:59:31.000Z","crn":"crn:v1:bluemix:public:is:us-east-2:a/c56c9a268d23e1b339ac14774358133c::volume:r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","id":"r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","iops":3000,"name":"brad2","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/c315f4fc1e3e4d5ca4cc2a2c38e40ef6","id":"c315f4fc1e3e4d5ca4cc2a2c38e40ef6","name":"cloudforms"},"status":"available","volume_attachments":[],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-2","name":"us-east-2"}},{"capacity":10,"created_at":"2020-09-23T15:01:17.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","iops":3000,"name":"bradboot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","id":"29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":false,"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"data"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-09-29T15:58:47.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","iops":3000,"name":"cmh2-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":""},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","name":"cmh2"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}}]}' - recorded_at: Thu, 01 Oct 2020 23:35:00 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/volumes_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/volumes_vpc_API/can_get_all.yml deleted file mode 100644 index e98e99d3..00000000 --- a/spec/vcr/Test_vpc_API/volumes_vpc_API/can_get_all.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - f017081c22c748ba9ca50ae2cb2cb481 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:01 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=aa2093d4e90cef4bdda52de1ab974f35; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:01 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/volumes?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:03 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dac9d43d135874cae5c65e01e0c0a52711601595301; expires=Sat, 31-Oct-20 - 23:35:01 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff695f18f981-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881df5d50000f981f3897200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 58f8ad9939f0be4a6fe025a50dde6271 - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 58f8ad9939f0be4a6fe025a50dde6271 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volumes?start=r014-75d669a9-72f6-11ea-b28c-feff0b284b22\u0026limit=50"},"limit":50,"volumes":[{"capacity":100,"created_at":"2020-03-31T02:22:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","iops":3000,"name":"postgres","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":false,"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"data"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-03-31T02:22:30.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","iops":3000,"name":"test-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-09-23T13:27:31.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","iops":3000,"name":"cmh1-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":""},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","name":"cmh1"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":10,"created_at":"2020-09-23T14:58:58.000Z","crn":"crn:v1:bluemix:public:is:us-east-1:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","id":"r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","iops":3000,"name":"brad","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-1","name":"us-east-1"}},{"capacity":10,"created_at":"2020-09-23T14:59:31.000Z","crn":"crn:v1:bluemix:public:is:us-east-2:a/c56c9a268d23e1b339ac14774358133c::volume:r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","id":"r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","iops":3000,"name":"brad2","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/c315f4fc1e3e4d5ca4cc2a2c38e40ef6","id":"c315f4fc1e3e4d5ca4cc2a2c38e40ef6","name":"cloudforms"},"status":"available","volume_attachments":[],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-2","name":"us-east-2"}},{"capacity":10,"created_at":"2020-09-23T15:01:17.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","iops":3000,"name":"bradboot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","id":"29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":false,"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"data"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-09-29T15:58:47.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","iops":3000,"name":"cmh2-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":""},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","name":"cmh2"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}}]}' - recorded_at: Thu, 01 Oct 2020 23:35:03 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/volumes_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/volumes_vpc_API/can_get_an_instance.yml deleted file mode 100644 index aaa17e1b..00000000 --- a/spec/vcr/Test_vpc_API/volumes_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - ab8595c18acc4a4889d42c1083bb6f29 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:04 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=1178c9043b80c97a04485cf481708109; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:04 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/volumes?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:05 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d583641db3da034cc9c1eb1473140b0ac1601595304; expires=Sat, 31-Oct-20 - 23:35:04 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ff7cec9bcabc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e02140000cabc2b22e200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - Transaction-Id: - - 21494f674d10cf5b0837f4dd8287bee9 - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 21494f674d10cf5b0837f4dd8287bee9 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volumes?start=r014-75d669a9-72f6-11ea-b28c-feff0b284b22\u0026limit=50"},"limit":50,"volumes":[{"capacity":100,"created_at":"2020-03-31T02:22:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","iops":3000,"name":"postgres","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":false,"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"data"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-03-31T02:22:30.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","iops":3000,"name":"test-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-09-23T13:27:31.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","iops":3000,"name":"cmh1-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":""},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","name":"cmh1"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":10,"created_at":"2020-09-23T14:58:58.000Z","crn":"crn:v1:bluemix:public:is:us-east-1:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","id":"r014-f71d932e-8683-4bd4-a401-ad01e4a8e0b5","iops":3000,"name":"brad","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-1","name":"us-east-1"}},{"capacity":10,"created_at":"2020-09-23T14:59:31.000Z","crn":"crn:v1:bluemix:public:is:us-east-2:a/c56c9a268d23e1b339ac14774358133c::volume:r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","id":"r014-028a0749-68ba-44c8-9d6f-487d80fdb26a","iops":3000,"name":"brad2","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/c315f4fc1e3e4d5ca4cc2a2c38e40ef6","id":"c315f4fc1e3e4d5ca4cc2a2c38e40ef6","name":"cloudforms"},"status":"available","volume_attachments":[],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-2","name":"us-east-2"}},{"capacity":10,"created_at":"2020-09-23T15:01:17.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","iops":3000,"name":"bradboot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","id":"29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":false,"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","name":"test"},"name":"volume-attachment","type":"data"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}},{"capacity":100,"created_at":"2020-09-29T15:58:47.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","encryption":"provider_managed","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","iops":3000,"name":"cmh2-boot","profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/volume/profiles/general-purpose","name":"general-purpose"},"resource_group":{"href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"status":"available","volume_attachments":[{"delete_volume_on_instance_delete":true,"device":{"id":""},"href":"https://us-east.iaas.cloud.ibm.com/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","instance":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","href":"https://us-east.iaas.cloud.ibm.com/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","name":"cmh2"},"name":"volume-attachment","type":"boot"}],"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3"}}]}' - recorded_at: Thu, 01 Oct 2020 23:35:05 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_access_fetch.yml deleted file mode 100644 index 54ac51e6..00000000 --- a/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - e743c87a82a7438b8b31c90c5c87a631 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:13 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=153bc2cfa19837fd83727a4d7fe5fe1f; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:13 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpcs?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:14 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dbbebc0165937380526c39dad7adaf6801601595313; expires=Sat, 31-Oct-20 - 23:35:13 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ffb77b2cab76-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e26ab0000ab7699a8b200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - d9f52160-78ee-4003-ab5e-af0504ca76a2 - X-Trace-Id: - - 657d2232d229ce82 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs?limit=50"},"total_count":1,"vpcs":[{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc","status":"available","classic_access":false,"created_at":"2020-03-31T02:16:00Z","default_network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"default_security_group":{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"cse_source_ips":[{"ip":{"address":"127.0.0.90"},"zone":{"name":"us-east-1","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-1"}},{"ip":{"address":"127.0.0.22"},"zone":{"name":"us-east-2","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-2"}},{"ip":{"address":"127.0.0.82"},"zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"}}]}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:35:14 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_access_has_count_.yml deleted file mode 100644 index 52871f62..00000000 --- a/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 36fabdbbcc974562a3b5ec89b555c4db - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:16 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=b7d8551a2b386be3ccb9991ac137e0ec; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:16 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpcs?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:16 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d54af07ce2ff639ad0ce95b6b0ffea4cc1601595316; expires=Sat, 31-Oct-20 - 23:35:16 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ffc62f1cab46-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e2fd80000ab4645057200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 5fbe314f-db24-4662-bcce-4429f2c9d3b2 - X-Trace-Id: - - 58d21fdfc4f49f54 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs?limit=50"},"total_count":1,"vpcs":[{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc","status":"available","classic_access":false,"created_at":"2020-03-31T02:16:00Z","default_network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"default_security_group":{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"cse_source_ips":[{"ip":{"address":"127.0.0.90"},"zone":{"name":"us-east-1","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-1"}},{"ip":{"address":"127.0.0.22"},"zone":{"name":"us-east-2","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-2"}},{"ip":{"address":"127.0.0.82"},"zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"}}]}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:35:16 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_get_all.yml deleted file mode 100644 index 20e446ff..00000000 --- a/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_get_all.yml +++ /dev/null @@ -1,176 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - d058705ae9ff44b99ea3e6243f4ec16d - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:18 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=098931c3a34a915078e9867fd8e4c932; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:18 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpcs?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:19 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d39ba15e0eef015d4b55f56047004b6871601595318; expires=Sat, 31-Oct-20 - 23:35:18 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ffd5ccc9cabc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e39a00000cabc3d2d9200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - ddc1954d-a2de-4cf5-8f7d-7135fb0b640c - X-Trace-Id: - - 255d035da6216fe6 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs?limit=50"},"total_count":1,"vpcs":[{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc","status":"available","classic_access":false,"created_at":"2020-03-31T02:16:00Z","default_network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"default_security_group":{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"cse_source_ips":[{"ip":{"address":"127.0.0.90"},"zone":{"name":"us-east-1","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-1"}},{"ip":{"address":"127.0.0.22"},"zone":{"name":"us-east-2","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-2"}},{"ip":{"address":"127.0.0.82"},"zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"}}]}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:35:19 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpcs?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:20 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d3fd0ce1f9522d4b04c8c57d6d19a02c11601595319; expires=Sat, 31-Oct-20 - 23:35:19 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ffdb4b07ab82-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e3d0c0000ab8275825200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 73360475-9464-4724-b284-5c5e7a8b78fe - X-Trace-Id: - - 7e069ac260093196 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs?limit=50"},"total_count":1,"vpcs":[{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc","status":"available","classic_access":false,"created_at":"2020-03-31T02:16:00Z","default_network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"default_security_group":{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"cse_source_ips":[{"ip":{"address":"127.0.0.90"},"zone":{"name":"us-east-1","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-1"}},{"ip":{"address":"127.0.0.22"},"zone":{"name":"us-east-2","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-2"}},{"ip":{"address":"127.0.0.82"},"zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"}}]}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:35:20 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_get_an_instance.yml deleted file mode 100644 index 46a8f966..00000000 --- a/spec/vcr/Test_vpc_API/vpcs_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,111 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - c3888a16b2f04a3f90000db0de291eaa - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:20 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=153bc2cfa19837fd83727a4d7fe5fe1f; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:20 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpcs?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:21 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d8f60f7f5f10c83726bcb07c25bf2af531601595320; expires=Sat, 31-Oct-20 - 23:35:20 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9ffe369f3ab94-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e42250000ab942d370200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 8167278d-8a34-453c-9f19-a0be1d176164 - X-Trace-Id: - - 26b3e769bda125eb - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"limit":50,"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs?limit=50"},"total_count":1,"vpcs":[{"id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc","status":"available","classic_access":false,"created_at":"2020-03-31T02:16:00Z","default_network_acl":{"id":"r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::network-acl:r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","href":"https://us-east.iaas.cloud.ibm.com/v1/network_acls/r014-3cb58cb2-6a61-4fea-a78f-55c39ba03ad3","name":"napped-pessimist-thing-revolving-graduate-punctuate"},"default_security_group":{"id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"},"resource_group":{"id":"29b1dd25de2d40b5ae5bd5f719f30db8","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/29b1dd25de2d40b5ae5bd5f719f30db8","name":"camc-test"},"cse_source_ips":[{"ip":{"address":"127.0.0.90"},"zone":{"name":"us-east-1","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-1"}},{"ip":{"address":"127.0.0.22"},"zone":{"name":"us-east-2","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-2"}},{"ip":{"address":"127.0.0.82"},"zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"}}]}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:35:21 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_access_fetch.yml b/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_access_fetch.yml deleted file mode 100644 index 07bea6e6..00000000 --- a/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_access_fetch.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 8b5d5fed5c034722bb0bb56b6384ed32 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:23 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=153bc2cfa19837fd83727a4d7fe5fe1f; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:23 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:23 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2a68b3ff32f7cfd953b819a4f622b9841601595323; expires=Sat, 31-Oct-20 - 23:35:23 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fff39fa1f97d-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e4c3a0000f97d961f8200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 14708bf5-4d3b-4f3c-a38f-78a18cb0f577 - X-Request-Id: - - 14708bf5-4d3b-4f3c-a38f-78a18cb0f577 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?version=2020-08-01\u0026generation=2\u0026limit=50\u0026sort=-created_at"},"limit":50,"total_count":0,"vpn_gateways":[]}' - recorded_at: Thu, 01 Oct 2020 23:35:23 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_access_has_count_.yml b/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_access_has_count_.yml deleted file mode 100644 index c51ae04e..00000000 --- a/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_access_has_count_.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - eb237e8762bb4e78bf4e594acd6a396f - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:24 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=5d5a97e1fa1710ee675f83f45b208754; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:25 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:25 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d180b3653fa8e9d1b64d5da094dc1dc231601595325; expires=Sat, 31-Oct-20 - 23:35:25 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5db9fffda8e0cac4-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e52840000cac412181200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 80fbc649-72ca-4e09-82a0-a4df7440ebfc - X-Request-Id: - - 80fbc649-72ca-4e09-82a0-a4df7440ebfc - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?version=2020-08-01\u0026generation=2\u0026limit=50\u0026sort=-created_at"},"limit":50,"total_count":0,"vpn_gateways":[]}' - recorded_at: Thu, 01 Oct 2020 23:35:25 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_get_all.yml b/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_get_all.yml deleted file mode 100644 index 496a2a65..00000000 --- a/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_get_all.yml +++ /dev/null @@ -1,148 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 0d02fbcc7b694e2d95378009b7f2e925 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:28 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=098931c3a34a915078e9867fd8e4c932; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:28 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:29 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d33b7de068b204405844b7a1049738ac61601595328; expires=Sat, 31-Oct-20 - 23:35:28 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba00162f51f981-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e61d80000f98104358200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - f9a93ea5-26ac-4359-a025-6597cce40755 - X-Request-Id: - - f9a93ea5-26ac-4359-a025-6597cce40755 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?version=2020-08-01\u0026generation=2\u0026limit=50\u0026sort=-created_at"},"limit":50,"total_count":0,"vpn_gateways":[]}' - recorded_at: Thu, 01 Oct 2020 23:35:29 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:29 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d8567ce371f1114fb84690cd01cef7f5e1601595329; expires=Sat, 31-Oct-20 - 23:35:29 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba00183ba9f98d-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e631e0000f98d2f874200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 90bbad59-96c4-40dd-be53-b1c4d43c8692 - X-Request-Id: - - 90bbad59-96c4-40dd-be53-b1c4d43c8692 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?version=2020-08-01\u0026generation=2\u0026limit=50\u0026sort=-created_at"},"limit":50,"total_count":0,"vpn_gateways":[]}' - recorded_at: Thu, 01 Oct 2020 23:35:29 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_get_an_instance.yml b/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_get_an_instance.yml deleted file mode 100644 index a54b8399..00000000 --- a/spec/vcr/Test_vpc_API/vpn_gateways_vpc_API/can_get_an_instance.yml +++ /dev/null @@ -1,97 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 98aedbf21a5a411980b2b3b034f0f5c7 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:35:29 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=472bbcaeccd3a83e93006ec9f2aa6e9e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:35:29 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:35:30 GMT - Content-Type: - - application/json - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=da6d4d65c3d128ed83e20600d0831e3b61601595329; expires=Sat, 31-Oct-20 - 23:35:29 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba001b3d09f989-YYZ - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05881e65070000f9898d03b200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Transaction-Id: - - 154a0120-b299-4a1a-8356-a3844b1753d8 - X-Request-Id: - - 154a0120-b299-4a1a-8356-a3844b1753d8 - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/vpn_gateways?version=2020-08-01\u0026generation=2\u0026limit=50\u0026sort=-created_at"},"limit":50,"total_count":0,"vpn_gateways":[]}' - recorded_at: Thu, 01 Oct 2020 23:35:30 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_access_fetch.yml b/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_access_fetch.yml deleted file mode 100644 index 4d2f3080..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_access_fetch.yml +++ /dev/null @@ -1,237 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 9661b929611e4b249f213ab3643e9343 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:52:08 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=eae45e398a21d7cf494227da2e8e0b59; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:52:08 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:09 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=ddd74ab9ddb971bc52f0982100127132b1601596328; expires=Sat, 31-Oct-20 - 23:52:08 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba187cab5bcaa4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882da1e70000caa433392200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 83c93b44-e5f6-4cb1-ac74-13f07bfe785f - X-Trace-Id: - - 51cf5cab988aa384 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:52:09 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:09 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d1c677f784fd24106636cc4059a88c5ef1601596329; expires=Sat, 31-Oct-20 - 23:52:09 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba188238aaf995-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882da5620000f995ec90e200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - e5704b68-c078-4763-b736-3c22d3d3e06c - X-Trace-Id: - - 38691a1c82d6aadb - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"network_interfaces":[{"allow_ip_spoofing":false,"created_at":"2020-03-31T02:22:25.000Z","floating_ips":[{"address":"127.0.0.80","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","name":"cloudform"}],"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","port_speed":4000,"primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","security_groups":[{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"}],"status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"type":"primary"}]}' - recorded_at: Thu, 01 Oct 2020 23:52:09 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3/floating_ips?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:09 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df3fbd279a3f9aeb24d544e7d3a8897ef1601596329; expires=Sat, 31-Oct-20 - 23:52:09 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba1883aa60ca94-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882da64a0000ca94b3ab1200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 4895d13c-e879-4a38-90fd-f5f5c680eb19 - X-Trace-Id: - - 10c2a464f8ac6f50 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"floating_ips":[{"id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ip/r014-9807d0f7-1598-442a-8501-5caa034460ef","address":"127.0.0.80","name":"cloudform","status":"available","created_at":"2020-03-31T02:23:13Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"network_interface","primary_ipv4_address":"127.0.0.4","name":"eth0","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3"},"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:52:09 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_be_called.yml b/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_be_called.yml deleted file mode 100644 index 5301ce10..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_be_called.yml +++ /dev/null @@ -1,172 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - dfb7199194a9458ca0d1656273c2daaa - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:52:06 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fc92053bcecf731b14d04bf54069043d; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:52:06 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:07 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d1deb6e0b48d49b515ccc9545458c750d1601596326; expires=Sat, 31-Oct-20 - 23:52:06 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba18711fb7ca98-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d9ab30000ca98fdb58200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 30d3f870-dadb-401c-a929-8d45537b2e06 - X-Trace-Id: - - 1e58560c234fc55d - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:52:07 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:07 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dc56e2b8a96b8403c9a7ec30f3e6aa5f11601596327; expires=Sat, 31-Oct-20 - 23:52:07 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba18783fdacac4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d9f1e0000cac4ff902200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - e85ea7b5-bc8a-488d-9589-5f546c01aa67 - X-Trace-Id: - - 75a9a75efa408f2f - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"network_interfaces":[{"allow_ip_spoofing":false,"created_at":"2020-03-31T02:22:25.000Z","floating_ips":[{"address":"127.0.0.80","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","name":"cloudform"}],"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","port_speed":4000,"primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","security_groups":[{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"}],"status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"type":"primary"}]}' - recorded_at: Thu, 01 Oct 2020 23:52:07 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_call_an_instance.yml b/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_call_an_instance.yml deleted file mode 100644 index cc6a3bf4..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_call_an_instance.yml +++ /dev/null @@ -1,237 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 806ed10d5e754f7e86fcc3a4f48b7e29 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:52:10 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:52:10 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:11 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dda081fb2477a5ab0f59740111fb370f51601596330; expires=Sat, 31-Oct-20 - 23:52:10 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba18881b42cac8-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882da9120000cac830279200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - b3261874-e2ca-479a-a063-c57ff62bea73 - X-Trace-Id: - - 17835c42bee22cb5 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:52:11 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:11 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2f1c9cfe2faf9c533354f4c403973e211601596331; expires=Sat, 31-Oct-20 - 23:52:11 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba188e28c9abac-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882dacd40000abac453a5200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 705908ae-6b15-4464-a218-5db05959f633 - X-Trace-Id: - - 5357bdc883d852c - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"network_interfaces":[{"allow_ip_spoofing":false,"created_at":"2020-03-31T02:22:25.000Z","floating_ips":[{"address":"127.0.0.80","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","name":"cloudform"}],"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","port_speed":4000,"primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","security_groups":[{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"}],"status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"type":"primary"}]}' - recorded_at: Thu, 01 Oct 2020 23:52:11 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3/floating_ips?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:12 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d5a39e3f1ff8c4e06be6cf67e019ef1de1601596331; expires=Sat, 31-Oct-20 - 23:52:11 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba188f693ccab0-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882dada00000cab04a2d5200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - ac3e109a-8c7c-4d2e-b286-51619f9af130 - X-Trace-Id: - - 65eed6f34da25b0d - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"floating_ips":[{"id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ip/r014-9807d0f7-1598-442a-8501-5caa034460ef","address":"127.0.0.80","name":"cloudform","status":"available","created_at":"2020-03-31T02:23:13Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"network_interface","primary_ipv4_address":"127.0.0.4","name":"eth0","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3"},"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:52:12 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_get_all.yml b/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_get_all.yml deleted file mode 100644 index faef3c1b..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/can_get_all.yml +++ /dev/null @@ -1,237 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - a0fa9cbdd26b487e8a7244b49de73c9f - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:52:13 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:52:13 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:14 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d4d117346859f4d4b4277910fd52578f21601596333; expires=Sat, 31-Oct-20 - 23:52:13 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba189f3d60ab4c-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882db7830000ab4cd1309200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - ffc3b592-cf7f-4d8d-8c88-1909baa6c103 - X-Trace-Id: - - 3929e5f71e5683df - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:52:14 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:14 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d8deb5f0870097f0d8ca385b7d71cee5b1601596334; expires=Sat, 31-Oct-20 - 23:52:14 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba18a44a9ef989-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882dbaa80000f98987a53200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 690f34cc-d575-41d5-a3ee-9eb95a6a24bd - X-Trace-Id: - - 6245eff3a6ce5b04 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"network_interfaces":[{"allow_ip_spoofing":false,"created_at":"2020-03-31T02:22:25.000Z","floating_ips":[{"address":"127.0.0.80","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","name":"cloudform"}],"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","port_speed":4000,"primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","security_groups":[{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"}],"status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"type":"primary"}]}' - recorded_at: Thu, 01 Oct 2020 23:52:14 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3/floating_ips?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:15 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d36cf83cf6b4695c0a753ea34636571ed1601596335; expires=Sat, 31-Oct-20 - 23:52:15 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba18a5caffcaa0-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882dbb9c0000caa05218e200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - e37f3ee1-44db-45c2-84e0-2030351bf878 - X-Trace-Id: - - ca85b848345f2b8 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"floating_ips":[{"id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ip/r014-9807d0f7-1598-442a-8501-5caa034460ef","address":"127.0.0.80","name":"cloudform","status":"available","created_at":"2020-03-31T02:23:13Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"network_interface","primary_ipv4_address":"127.0.0.4","name":"eth0","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3"},"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:52:15 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/collection_has_no_count_returns_nil.yml b/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/collection_has_no_count_returns_nil.yml deleted file mode 100644 index b1345c2f..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_network_interfaces_subclass_floating_ips/collection_has_no_count_returns_nil.yml +++ /dev/null @@ -1,237 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 3ab31015721f4b69a9d24f51d78d81a3 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:52:15 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:52:15 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:16 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d167ea51e0e34636a190310e358574a8f1601596335; expires=Sat, 31-Oct-20 - 23:52:15 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba18a96cb8f975-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882dbde00000f97542171200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - c89f2228-b2b0-4cc3-b442-975454dd9a51 - X-Trace-Id: - - 1cb647abf43b25aa - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:52:16 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:16 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d871833be71efbc9b0fc6f847568f19ae1601596336; expires=Sat, 31-Oct-20 - 23:52:16 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba18adde2aaba6-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882dc0a80000aba6f195f200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 9ecc99b5-9434-408f-ac8f-8f767fde23ef - X-Trace-Id: - - 7d6c96bf6e281c90 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"network_interfaces":[{"allow_ip_spoofing":false,"created_at":"2020-03-31T02:22:25.000Z","floating_ips":[{"address":"127.0.0.80","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","name":"cloudform"}],"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","port_speed":4000,"primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","security_groups":[{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"}],"status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"type":"primary"}]}' - recorded_at: Thu, 01 Oct 2020 23:52:16 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3/floating_ips?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:16 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dfdc4771704c10ad30f26167efd2dde5d1601596336; expires=Sat, 31-Oct-20 - 23:52:16 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba18aeee9ff989-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882dc1520000f98995028200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - e9b937f4-89cf-4ad7-8985-cb9ec96f2c1a - X-Trace-Id: - - 494021585c21d280 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"floating_ips":[{"id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ip/r014-9807d0f7-1598-442a-8501-5caa034460ef","address":"127.0.0.80","name":"cloudform","status":"available","created_at":"2020-03-31T02:23:13Z","zone":{"name":"us-east-3","href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3"},"target":{"resource_type":"network_interface","primary_ipv4_address":"127.0.0.4","name":"eth0","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3"},"resource_group":{"id":"345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","name":"default"}}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:52:17 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_access_fetch.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_access_fetch.yml deleted file mode 100644 index d3f96e11..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_access_fetch.yml +++ /dev/null @@ -1,174 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 1f568e44d1e840fba899cb74bd34d3a2 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:27 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=9f51bef8ae051439dd0a24cae543baf1; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:27 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:28 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d464ba2d7a0fefba4134d487942aecf0a1601596287; expires=Sat, 31-Oct-20 - 23:51:27 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba177ca9aef995-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d01e50000f995ebb13200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - ca928bc8-79d7-4f40-bdc8-56899f8d2101 - X-Trace-Id: - - 55d3390bafe409b2 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:28 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/actions?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:28 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '15' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=db5df4757b148a30deb4015ed0e198dfa1601596288; expires=Sat, 31-Oct-20 - 23:51:28 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba1781bf94cabc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d05150000cabc25a88200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 7f113ebd-9d28-40fd-9430-3d978eda981a - X-Trace-Id: - - fd6578a385a8d16 - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: UTF-8 - string: '{"actions":[]} - - ' - recorded_at: Thu, 01 Oct 2020 23:51:28 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_be_called.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_be_called.yml deleted file mode 100644 index 0ebdd678..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_be_called.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 03ccc8c1242b46a6bd118bc6064bfdf0 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:25 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8c0c2931b9d06a6e4ca750bd09ceb802; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:25 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:26 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dd3673e221a8c938d4560b59f7df7a9c21601596285; expires=Sat, 31-Oct-20 - 23:51:25 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17706dfff99d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882cfa3e0000f99de6911200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 26eb4938-4d7d-4f9e-ad8e-ee75076be582 - X-Trace-Id: - - 44b1a61f6658d244 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:26 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_get_all.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_get_all.yml deleted file mode 100644 index 33e4a15f..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/can_get_all.yml +++ /dev/null @@ -1,174 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - d81b67becc034134a56ad235595f2b43 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:32 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:32 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:33 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dce3ef22a3a504e8ac10ea7ca1e7650f51601596292; expires=Sat, 31-Oct-20 - 23:51:32 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba1799f9fbcac4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d143e0000cac4040a0200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 5720ac70-d917-4fff-a938-d03e1ac15925 - X-Trace-Id: - - 11889c9051946a64 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:33 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/actions?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:33 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '15' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2d5ed7bb1cf1088744cff914f9377a101601596293; expires=Sat, 31-Oct-20 - 23:51:33 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17a0e97acacc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d18920000cacc878be200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 5af196e5-39a4-4eb3-9983-172e9c2c6aed - X-Trace-Id: - - 561e3f3a6a62bfec - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: UTF-8 - string: '{"actions":[]} - - ' - recorded_at: Thu, 01 Oct 2020 23:51:33 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/collection_has_no_count_returns_nil.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/collection_has_no_count_returns_nil.yml deleted file mode 100644 index 6964ef29..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/collection_has_no_count_returns_nil.yml +++ /dev/null @@ -1,174 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - bfac624607564442818630e5fa282e74 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:34 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:34 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:36 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d9655c5ae9f9f9bfbcdb6ba8f02cbd5871601596295; expires=Sat, 31-Oct-20 - 23:51:35 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17acbc32f999-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d1ff40000f999779ab200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 2aebac9c-48d7-4d56-9cba-6643cdee6b20 - X-Trace-Id: - - 7d187efa5d1b24ce - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:36 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/actions?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:36 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '15' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df40dec7f21d887601ceec63d888ccc3c1601596296; expires=Sat, 31-Oct-20 - 23:51:36 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17b3b92bf979-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d24500000f9794b906200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 65913b43-c3f0-4bf0-b594-67873731c713 - X-Trace-Id: - - 3c8ab27983d79877 - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: UTF-8 - string: '{"actions":[]} - - ' - recorded_at: Thu, 01 Oct 2020 23:51:36 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/does_not_have_details.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/does_not_have_details.yml deleted file mode 100644 index 3da46570..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_actions/does_not_have_details.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - b43a985461674cfa82d5e74c7b2ca603 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:30 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fc92053bcecf731b14d04bf54069043d; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:30 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:30 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d19d9cf158f5cadeb0bef823537fa593d1601596290; expires=Sat, 31-Oct-20 - 23:51:30 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba178d38d1aba6-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d0c460000aba6f8bcc200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 9e7c734e-998e-489b-bf88-96c1e0318fc7 - X-Trace-Id: - - 6570f4924a7d4e07 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:30 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_access_fetch.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_access_fetch.yml deleted file mode 100644 index 3a5fc757..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_access_fetch.yml +++ /dev/null @@ -1,172 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 7ab7816fe8f942c494a76ab7e36b2322 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:39 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:39 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:40 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dcc5bccc67d92ac64038c04439bd141631601596299; expires=Sat, 31-Oct-20 - 23:51:39 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17c9598df99d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d31da0000f99db3ad3200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - b1ee68d5-1216-4b4d-9ac1-f1d42d900400 - X-Trace-Id: - - 6d708ece582054b9 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:40 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:40 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=da31cdfc7b10de073ed6d2e9772725e111601596300; expires=Sat, 31-Oct-20 - 23:51:40 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17ce9d7bab6a-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d351f0000ab6afc09d200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 72cdb19b-8fbf-4084-a3ac-96180a91f86c - X-Trace-Id: - - 828ba96a4207ac - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"network_interfaces":[{"allow_ip_spoofing":false,"created_at":"2020-03-31T02:22:25.000Z","floating_ips":[{"address":"127.0.0.80","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","name":"cloudform"}],"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","port_speed":4000,"primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","security_groups":[{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"}],"status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"type":"primary"}]}' - recorded_at: Thu, 01 Oct 2020 23:51:40 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_be_called.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_be_called.yml deleted file mode 100644 index b5331d3d..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_be_called.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 5aa22689c10b43539a367f74beb62afc - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:37 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=2fe37f235f4a492664441dda0c2cb686; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:37 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:38 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d9c815dbf39032edc354d591b35673df21601596297; expires=Sat, 31-Oct-20 - 23:51:37 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17bc0828caa8-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d29820000caa83120a200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 2bb23449-12fe-40c3-8cf8-787c36f57612 - X-Trace-Id: - - 5f1996c803d3e6aa - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:38 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_call_an_instance.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_call_an_instance.yml deleted file mode 100644 index 501672b1..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_call_an_instance.yml +++ /dev/null @@ -1,172 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - f4bb8f289df0481b9847d3c724f1c72b - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:41 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:41 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:41 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d90b62fce026067731bc592f0a6b4e81e1601596301; expires=Sat, 31-Oct-20 - 23:51:41 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17d268f7f989-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d37800000f98986923200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 56769a6b-2715-4db4-a5a3-a10c6002b5e4 - X-Trace-Id: - - 3d2b639237d6f7ae - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:41 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:42 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2154d09aa0e5f6b6ab354c46207c1bd71601596302; expires=Sat, 31-Oct-20 - 23:51:42 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17d78d00cab8-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d3ab00000cab87208f200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 52733ed9-0715-4c9e-9065-b677b5a3c202 - X-Trace-Id: - - 2bf17dd17e5baa1f - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"network_interfaces":[{"allow_ip_spoofing":false,"created_at":"2020-03-31T02:22:25.000Z","floating_ips":[{"address":"127.0.0.80","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","name":"cloudform"}],"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","port_speed":4000,"primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","security_groups":[{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"}],"status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"type":"primary"}]}' - recorded_at: Thu, 01 Oct 2020 23:51:42 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_get_all.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_get_all.yml deleted file mode 100644 index 8b330d5d..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/can_get_all.yml +++ /dev/null @@ -1,172 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 629e46a491004635bdc024326a65f67a - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:42 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:42 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:43 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d1b8ffb535838d981084aede5aedd64a01601596302; expires=Sat, 31-Oct-20 - 23:51:42 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17dd18cfcab0-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d3e2e0000cab03f9d0200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 9468ca8a-75be-4f11-9a91-ac630728636b - X-Trace-Id: - - 3ab996807b4d62ee - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:43 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:43 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d24140e67ab7bafa6d1d7238609a5e9bd1601596303; expires=Sat, 31-Oct-20 - 23:51:43 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17e2d9f9cab4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d41c40000cab4452f1200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 8f60bff4-0fe7-4e66-b00f-950edc3d5ac6 - X-Trace-Id: - - 32bfb769beb60517 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"network_interfaces":[{"allow_ip_spoofing":false,"created_at":"2020-03-31T02:22:25.000Z","floating_ips":[{"address":"127.0.0.80","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","name":"cloudform"}],"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","port_speed":4000,"primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","security_groups":[{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"}],"status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"type":"primary"}]}' - recorded_at: Thu, 01 Oct 2020 23:51:43 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/collection_has_no_count_returns_nil.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/collection_has_no_count_returns_nil.yml deleted file mode 100644 index 1e289ce0..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_network_interfaces/collection_has_no_count_returns_nil.yml +++ /dev/null @@ -1,172 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 83cf1458e9ca4439abad199fa2830974 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:45 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=eae45e398a21d7cf494227da2e8e0b59; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:45 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:45 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d6f510edf8345f9ead6c7fc13584bfd9c1601596305; expires=Sat, 31-Oct-20 - 23:51:45 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17ebed4df979-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d47740000f9793e1af200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 297bf491-cad2-4b9c-aa2f-713ba3e0d2a3 - X-Trace-Id: - - 5299c90a85445e07 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:45 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:46 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dbf910b1ec964962b0c7417a917cad8261601596305; expires=Sat, 31-Oct-20 - 23:51:45 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17f03c2ff99d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d4a1e0000f99da8b18200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - '0915558f-a2ab-4612-94ee-922197949858' - X-Trace-Id: - - efc03ea3581fff2 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"network_interfaces":[{"allow_ip_spoofing":false,"created_at":"2020-03-31T02:22:25.000Z","floating_ips":[{"address":"127.0.0.80","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::floating-ip:r014-9807d0f7-1598-442a-8501-5caa034460ef","href":"https://us-east.iaas.cloud.ibm.com/v1/floating_ips/r014-9807d0f7-1598-442a-8501-5caa034460ef","id":"r014-9807d0f7-1598-442a-8501-5caa034460ef","name":"cloudform"}],"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","port_speed":4000,"primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","security_groups":[{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::security-group:r014-117c294f-0f30-4541-bfb8-8bba188d52e0","href":"https://us-east.iaas.cloud.ibm.com/v1/security_groups/r014-117c294f-0f30-4541-bfb8-8bba188d52e0","id":"r014-117c294f-0f30-4541-bfb8-8bba188d52e0","name":"nebulizer-bobtail-hacked-yield-linseed-sandpit"}],"status":"available","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"},"type":"primary"}]}' - recorded_at: Thu, 01 Oct 2020 23:51:46 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_access_fetch.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_access_fetch.yml deleted file mode 100644 index 1f6c7b0d..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_access_fetch.yml +++ /dev/null @@ -1,174 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 5e0723f0b14a4e3f8b748b0f809a5b6e - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:49 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fc92053bcecf731b14d04bf54069043d; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:49 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:50 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d71cd9532a3cf419731f5841b740976b61601596309; expires=Sat, 31-Oct-20 - 23:51:49 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba1808193ef991-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d59120000f9915c825200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 0d1a2b66-ba7a-4ea2-8efd-47be4e6306bb - X-Trace-Id: - - 75d74df0bda18f82 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:50 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:50 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d6f108fd6b0390718d0640b6add06e6711601596310; expires=Sat, 31-Oct-20 - 23:51:50 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba180dfcfff97d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d5cbc0000f97d96372200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 508ef2e9-4af2-4bd3-ad84-2690d553a01b - X-Trace-Id: - - 65f8cc1f5156bc52 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"volume_attachments":[{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"volume":{"id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot"},"delete_volume_on_instance_delete":false,"status":"attached","type":"data","created_at":"2020-09-23T15:02:14Z"},{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"volume":{"id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot"},"delete_volume_on_instance_delete":true,"status":"attached","type":"boot","created_at":"2020-03-31T02:22:25Z"},{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"volume":{"id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres"},"delete_volume_on_instance_delete":false,"status":"attached","type":"data","created_at":"2020-03-31T02:22:25Z"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:51:50 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_be_called.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_be_called.yml deleted file mode 100644 index 6b2801b8..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_be_called.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - ea74621918b244849f9bc4f48c560f42 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:47 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=fe923abbb865e5d6562b7a2cc7fb6134; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:47 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:48 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d64b48c94e87909d0ec115867de8697fb1601596308; expires=Sat, 31-Oct-20 - 23:51:48 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba17fd4b40f989-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d52480000f9899807a200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 9d8bfb37-4c45-4290-8dd9-468449df3239 - X-Trace-Id: - - 2fb2a88ebbdac8ac - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:48 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_call_an_instance.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_call_an_instance.yml deleted file mode 100644 index 336909da..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_call_an_instance.yml +++ /dev/null @@ -1,174 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - db3b852dd80f48a5b2ce2fa0aa1a0e20 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:51 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=472bbcaeccd3a83e93006ec9f2aa6e9e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:51 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:52 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d65da62def1a46f44dbe1dc6efdc4267b1601596311; expires=Sat, 31-Oct-20 - 23:51:51 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba1814ea50cab8-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d61150000cab8729af200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - c7c8df34-631c-4977-b787-d7e362216f03 - X-Trace-Id: - - 55e0e373d676458f - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:52 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:52 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=df9fef9ed1dc465daed1867555d8b7d4c1601596312; expires=Sat, 31-Oct-20 - 23:51:52 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba181a6d5ff979-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d647f0000f97936935200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - '08feb951-7c50-4005-b38d-ec95cb34a45f' - X-Trace-Id: - - 1a736efe95ef4802 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"volume_attachments":[{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"volume":{"id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot"},"delete_volume_on_instance_delete":false,"status":"attached","type":"data","created_at":"2020-09-23T15:02:14Z"},{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"volume":{"id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot"},"delete_volume_on_instance_delete":true,"status":"attached","type":"boot","created_at":"2020-03-31T02:22:25Z"},{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"volume":{"id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres"},"delete_volume_on_instance_delete":false,"status":"attached","type":"data","created_at":"2020-03-31T02:22:25Z"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:51:52 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_get_all.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_get_all.yml deleted file mode 100644 index beb07685..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/can_get_all.yml +++ /dev/null @@ -1,174 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 4c024f8c842f436ab67fe83d7d8f4d54 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:53 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=ce3971e5fa3597045425df8136eb3e4e; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:53 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:54 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2137cafeda872b837ed46c7c305cf3ed1601596313; expires=Sat, 31-Oct-20 - 23:51:53 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba1821be6dca90-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d69160000ca90cd34b200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 7ab413bf-43dd-48b0-9e6c-c805f431cf6c - X-Trace-Id: - - 5978691c09ec4a05 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:54 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:54 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d2246444cd30e0e644d1d2ddca145efad1601596314; expires=Sat, 31-Oct-20 - 23:51:54 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba18268abfab4c-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d6c120000ab4cd5adf200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - fb0b789d-70a7-4ff5-b023-7f866b64ced3 - X-Trace-Id: - - d4ce6e7fa5604a3 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"volume_attachments":[{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"volume":{"id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot"},"delete_volume_on_instance_delete":false,"status":"attached","type":"data","created_at":"2020-09-23T15:02:14Z"},{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"volume":{"id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot"},"delete_volume_on_instance_delete":true,"status":"attached","type":"boot","created_at":"2020-03-31T02:22:25Z"},{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"volume":{"id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres"},"delete_volume_on_instance_delete":false,"status":"attached","type":"data","created_at":"2020-03-31T02:22:25Z"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:51:54 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/collection_has_no_count_returns_nil.yml b/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/collection_has_no_count_returns_nil.yml deleted file mode 100644 index 58f31ef2..00000000 --- a/spec/vcr/Test_vpc_instance_API/Test_subclass_volume_attachments/collection_has_no_count_returns_nil.yml +++ /dev/null @@ -1,174 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 81c13040c39d4384ba539dcbd4df652d - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:52:00 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=8a50a7128711c3e90b8263453be5d886; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:52:00 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:01 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=ddd1548d02523a35468bea930d37612ba1601596320; expires=Sat, 31-Oct-20 - 23:52:00 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba184defd9ca90-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d84b10000ca90d3043200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 1768414c-953e-4686-b0e4-15e0f1a54921 - X-Trace-Id: - - 21e6b395e1dee5e3 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:52:01 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:52:02 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d40a172411d8ccaa52fa3c4bdce7f4e711601596321; expires=Sat, 31-Oct-20 - 23:52:01 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba1853bc3ef991-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882d88510000f9915a270200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 91a6a3b4-c849-436e-a8a5-2cdadd9169d9 - X-Trace-Id: - - 73c882584c45068e - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"volume_attachments":[{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"volume":{"id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot"},"delete_volume_on_instance_delete":false,"status":"attached","type":"data","created_at":"2020-09-23T15:02:14Z"},{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"volume":{"id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot"},"delete_volume_on_instance_delete":true,"status":"attached","type":"boot","created_at":"2020-03-31T02:22:25Z"},{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"volume":{"id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres"},"delete_volume_on_instance_delete":false,"status":"attached","type":"data","created_at":"2020-03-31T02:22:25Z"}]} - - ' - recorded_at: Thu, 01 Oct 2020 23:52:02 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_instance_API/can_be_instantiated.yml b/spec/vcr/Test_vpc_instance_API/can_be_instantiated.yml deleted file mode 100644 index 755b318f..00000000 --- a/spec/vcr/Test_vpc_instance_API/can_be_instantiated.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 0b3041f2ee5d46c08401097ce3490216 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Thu, 01 Oct 2020 23:51:22 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=53ae5666c1df4baec6156d0c05df66c2; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Thu, 01 Oct 2020 23:51:22 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&limit=1&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 01 Oct 2020 23:51:23 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=dbd90cf7afdc7f90007d3891713e1f6701601596282; expires=Sat, 31-Oct-20 - 23:51:22 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba175f8b57f97d-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05882cefb10000f97da08d1200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 9c6343bb-0179-4ee2-9054-59b4cf3ce51f - X-Trace-Id: - - 65cad183c3fb0d49 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":1,"next":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=1\u0026start=0777_f73e8687-3813-465f-99df-ba6e4ee8f289"},"total_count":3}' - recorded_at: Thu, 01 Oct 2020 23:51:23 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_response_exceptions/Exception_has_response_as_method.yml b/spec/vcr/Test_vpc_response_exceptions/Exception_has_response_as_method.yml deleted file mode 100644 index 6e868f19..00000000 --- a/spec/vcr/Test_vpc_response_exceptions/Exception_has_response_as_method.yml +++ /dev/null @@ -1,106 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - d0a8c4188f4d4e74a4032580c53fa667 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Fri, 02 Oct 2020 00:04:03 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=6bce74f4b20aa49018139f61a66aa0cb; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Fri, 02 Oct 2020 00:04:03 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 404 - message: Not Found - headers: - Date: - - Fri, 02 Oct 2020 00:04:03 GMT - Content-Type: - - text/html - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d960ae6c453b13e42eaca02ea71a550291601597043; expires=Sun, 01-Nov-20 - 00:04:03 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba29f08a20cabc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '0588388a530000cabc3c99d200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: "\r\n404 Not Found\r\n\r\n

404 - Not Found

\r\n
nginx
\r\n\r\n\r\n" - recorded_at: Fri, 02 Oct 2020 00:04:03 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_response_exceptions/Exception_when_status_is_not_2xx.yml b/spec/vcr/Test_vpc_response_exceptions/Exception_when_status_is_not_2xx.yml deleted file mode 100644 index a2d96065..00000000 --- a/spec/vcr/Test_vpc_response_exceptions/Exception_when_status_is_not_2xx.yml +++ /dev/null @@ -1,112 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 975865ea2b7246a393b828eb68e700cb - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Fri, 02 Oct 2020 00:04:05 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=9c8a8988c52cfbd3f315ff68a80d4a81; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Fri, 02 Oct 2020 00:04:06 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&version=3 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 400 - message: Bad Request - headers: - Date: - - Fri, 02 Oct 2020 00:04:06 GMT - Content-Type: - - application/json; charset=utf-8 - Content-Length: - - '219' - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d3ec160ec66577207e726b047b72eb5f81601597046; expires=Sun, 01-Nov-20 - 00:04:06 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba2a025e8cf999-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05883895760000f99979320200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 65a4ae7f-9f92-4130-b0d2-db4f1fee19ac - X-Trace-Id: - - 388b2b6de57472d4 - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: UTF-8 - string: '{"errors":[{"code":"invalid_version","message":"The `version` parameter - is invalid, it must be of the form `YYYY-MM-DD`.","target":{"name":"version","type":"parameter"}}],"trace":"65a4ae7f-9f92-4130-b0d2-db4f1fee19ac"} - - ' - recorded_at: Fri, 02 Oct 2020 00:04:06 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_response_exceptions/No_exception_when_status_is_2xx.yml b/spec/vcr/Test_vpc_response_exceptions/No_exception_when_status_is_2xx.yml deleted file mode 100644 index 77ad22b0..00000000 --- a/spec/vcr/Test_vpc_response_exceptions/No_exception_when_status_is_2xx.yml +++ /dev/null @@ -1,109 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 91ed1728168549d9a7aa04e3bed4ce65 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Fri, 02 Oct 2020 00:04:08 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=53ae5666c1df4baec6156d0c05df66c2; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Fri, 02 Oct 2020 00:04:08 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1/instances?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Date: - - Fri, 02 Oct 2020 00:04:09 GMT - Content-Type: - - application/json; charset=utf-8 - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d020416c7f230e816131aa98815712d0e1601597048; expires=Sun, 01-Nov-20 - 00:04:08 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba2a0f39b8cacc-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Vary: - - Accept-Encoding - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '0588389d820000cacc8922a200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Request-Id: - - 6ca727df-f1cc-4c0c-bc91-39d51495ae29 - X-Trace-Id: - - 660cc14581a94749 - X-Xss-Protection: - - 1; mode=block - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: '{"first":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances?limit=50"},"instances":[{"bandwidth":4000,"boot_volume_attachment":{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},"created_at":"2020-03-31T02:22:25.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","id":"0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-d82ac057-feab-4d4b-968c-8557c215c17e","id":"r014-d82ac057-feab-4d4b-968c-8557c215c17e","name":"tryagain","resource_type":"image"},"memory":16,"name":"test","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/network_interfaces/0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","id":"0777-a967defa-4cc9-4872-b0ab-5d0c623abea3","name":"eth0","primary_ipv4_address":"127.0.0.4","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/mx2-2x16","name":"mx2-2x16","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"running","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"device":{"id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9-8fbnl"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","id":"0777-de4544bd-58bb-4924-8f0c-4edf4fc994b9","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","id":"r014-75d65ec3-72f6-11ea-b28c-feff0b284b22","name":"test-boot","resource_type":"volume"}},{"device":{"id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c-jbjx5"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","id":"0777-fc94b3f8-20e8-45c8-bf95-6893ae56f52c","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-75d669a9-72f6-11ea-b28c-feff0b284b22","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-75d669a9-72f6-11ea-b28c-feff0b284b22","id":"r014-75d669a9-72f6-11ea-b28c-feff0b284b22","name":"postgres","resource_type":"volume"}},{"device":{"id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328-k5kph"},"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_249ba858-a4eb-4f2c-ba6c-72254a781d0d/volume_attachments/0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","id":"0777-7ee316bb-7802-4f60-8f8a-faddbf80b328","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","id":"r014-f2742c9e-7e91-43ca-a623-8d1edecb0fc4","name":"bradboot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}},"created_at":"2020-09-23T13:27:29.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_f73e8687-3813-465f-99df-ba6e4ee8f289","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289","id":"0777_f73e8687-3813-465f-99df-ba6e4ee8f289","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","id":"r014-6f153a5d-6a9a-496d-8063-5c39932f6ded","name":"ibm-centos-7-6-minimal-amd64-2","resource_type":"image"},"memory":4,"name":"cmh1","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/network_interfaces/0777-4b0566a4-7623-4578-b316-978922010b81","id":"0777-4b0566a4-7623-4578-b316-978922010b81","name":"eth0","primary_ipv4_address":"127.0.0.6","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_f73e8687-3813-465f-99df-ba6e4ee8f289/volume_attachments/0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","id":"0777-c1ed05b9-c92b-4c15-8f8b-6aa7f836b691","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","id":"r014-87773d7e-fda0-11ea-b8c9-feff0b288b7c","name":"cmh1-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}},{"bandwidth":4000,"boot_volume_attachment":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}},"created_at":"2020-09-29T15:58:46.000Z","crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::instance:0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","disks":null,"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","id":"0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8","image":{"crn":"UNKNOWN","href":"https://us-east.iaas.cloud.ibm.com/v1/images/r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","id":"r014-c37c9a73-a12f-4ac0-a619-c31e2aa4215a","name":"ibm-redhat-8-1-minimal-amd64-1","resource_type":"image"},"memory":4,"name":"cmh2","network_interfaces":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}}],"primary_network_interface":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/network_interfaces/0777-e49a3cd0-c834-421c-bf02-296d14861fca","id":"0777-e49a3cd0-c834-421c-bf02-296d14861fca","name":"eth0","primary_ipv4_address":"127.0.0.7","resource_type":"network_interface","subnet":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::subnet:0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","href":"https://us-east.iaas.cloud.ibm.com/v1/subnets/0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","id":"0777-8da6464b-e4bf-4cd6-8e9f-09a9f0f619c5","name":"cloudformsvpc","resource_type":"subnet"}},"profile":{"href":"https://us-east.iaas.cloud.ibm.com/v1/instance/profiles/cx2-2x4","name":"cx2-2x4","resource_type":"instance_profile"},"resource_group":{"crn":"crn:v1:bluemix:public:resource-controller::a/c56c9a268d23e1b339ac14774358133c::resource-group:345c433098294722ba52d9039133e8cf","href":"https://resource-controller.cloud.ibm.com/v2/resource_groups/345c433098294722ba52d9039133e8cf","id":"345c433098294722ba52d9039133e8cf","name":"default"},"resource_type":"instance","status":"stopped","vcpu":{"architecture":"amd64","count":2},"volume_attachments":[{"href":"https://us-east.iaas.cloud.ibm.com/v1/instances/0777_8dcba0a5-ab24-4379-b0c6-3d32900c86d8/volume_attachments/0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","id":"0777-f2b439dc-6949-4346-ae8d-7cafe11c8408","name":"volume-attachment","resource_type":"volume_attachment","volume":{"crn":"crn:v1:bluemix:public:is:us-east-3:a/c56c9a268d23e1b339ac14774358133c::volume:r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","href":"https://us-east.iaas.cloud.ibm.com/v1/volumes/r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","id":"r014-a7dfe63b-026c-11eb-b8c9-feff0b288b7c","name":"cmh2-boot","resource_type":"volume"}}],"vpc":{"crn":"crn:v1:bluemix:public:is:us-east:a/c56c9a268d23e1b339ac14774358133c::vpc:r014-7186c34c-67cc-4c07-aa40-326ecb895b53","href":"https://us-east.iaas.cloud.ibm.com/v1/vpcs/r014-7186c34c-67cc-4c07-aa40-326ecb895b53","id":"r014-7186c34c-67cc-4c07-aa40-326ecb895b53","name":"cloudformvpx","resource_type":"vpc"},"zone":{"href":"https://us-east.iaas.cloud.ibm.com/v1/regions/us-east/zones/us-east-3","name":"us-east-3","resource_type":"zone"}}],"limit":50,"total_count":3}' - recorded_at: Fri, 02 Oct 2020 00:04:09 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_response_exceptions/does_not_throw_on_404.yml b/spec/vcr/Test_vpc_response_exceptions/does_not_throw_on_404.yml deleted file mode 100644 index 8831286c..00000000 --- a/spec/vcr/Test_vpc_response_exceptions/does_not_throw_on_404.yml +++ /dev/null @@ -1,106 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - b2fe28dcca884decb72bbbe6b3f7e496 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Fri, 02 Oct 2020 00:03:58 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=5d5a97e1fa1710ee675f83f45b208754; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Fri, 02 Oct 2020 00:03:59 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 404 - message: Not Found - headers: - Date: - - Fri, 02 Oct 2020 00:03:59 GMT - Content-Type: - - text/html - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d0eb85f4b3bf20313f3a4369fd8d112271601597039; expires=Sun, 01-Nov-20 - 00:03:59 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba29d6a95ecac4-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '0588387a260000cac40d300200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: "\r\n404 Not Found\r\n\r\n

404 - Not Found

\r\n
nginx
\r\n\r\n\r\n" - recorded_at: Fri, 02 Oct 2020 00:03:59 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_response_exceptions/json_method_throws_ExceptionWithResponse_body_is_not_json.yml b/spec/vcr/Test_vpc_response_exceptions/json_method_throws_ExceptionWithResponse_body_is_not_json.yml deleted file mode 100644 index c3705158..00000000 --- a/spec/vcr/Test_vpc_response_exceptions/json_method_throws_ExceptionWithResponse_body_is_not_json.yml +++ /dev/null @@ -1,106 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=API_KEY - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Content-Type: - - application/json - Content-Length: - - '2460' - Transaction-Id: - - 840e98d45d3849fa909c9fb2dc6e817b - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Fri, 02 Oct 2020 00:04:01 GMT - Connection: - - keep-alive - Set-Cookie: - - sessioncookie=5d5a97e1fa1710ee675f83f45b208754; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","token_type":"Bearer","expires_in":3600,"expiration":1893456000,"scope":"ibm - openid"}' - recorded_at: Fri, 02 Oct 2020 00:04:01 GMT -- request: - method: get - uri: https://us-east.iaas.cloud.ibm.com/v1?generation=2&version=2020-08-01 - body: - encoding: US-ASCII - string: '' - headers: - Authorization: Bearer xxxxxx - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 404 - message: Not Found - headers: - Date: - - Fri, 02 Oct 2020 00:04:01 GMT - Content-Type: - - text/html - Transfer-Encoding: - - chunked - Connection: - - keep-alive - Set-Cookie: - - __cfduid=d67f2d88ed2353ba496695c45541d09c11601597041; expires=Sun, 01-Nov-20 - 00:04:01 GMT; path=/; domain=.iaas.cloud.ibm.com; HttpOnly; SameSite=Lax; - Secure - Cf-Ray: - - 5dba29e5389cf975-YYZ - Cache-Control: - - max-age=0, no-cache, no-store, must-revalidate - Expires: - - "-1" - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - Cf-Cache-Status: - - DYNAMIC - Cf-Request-Id: - - '05883883470000f97543b6d200000001' - Expect-Ct: - - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" - Pragma: - - no-cache - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Vary: - - Accept-Encoding - Server: - - cloudflare - body: - encoding: ASCII-8BIT - string: "\r\n404 Not Found\r\n\r\n

404 - Not Found

\r\n
nginx
\r\n\r\n\r\n" - recorded_at: Fri, 02 Oct 2020 00:04:01 GMT -recorded_with: VCR 6.0.0 diff --git a/spec/vcr/Test_vpc_response_exceptions/throws_HttpStatusError_on_error_occurs.yml b/spec/vcr/Test_vpc_response_exceptions/throws_HttpStatusError_on_error_occurs.yml deleted file mode 100644 index 089305b3..00000000 --- a/spec/vcr/Test_vpc_response_exceptions/throws_HttpStatusError_on_error_occurs.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://iam.cloud.ibm.com/identity/token - body: - encoding: UTF-8 - string: grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&apikey=asssfafaf - headers: - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 400 - message: Bad Request - headers: - Content-Type: - - application/json - Content-Length: - - '508' - Transaction-Id: - - 6c620cfc999e41b886061900aacb92b0 - Cache-Control: - - no-cache, no-store - Expires: - - '0' - Pragma: - - no-cache - Content-Language: - - en-US - Date: - - Fri, 02 Oct 2020 00:03:57 GMT - Connection: - - close - Set-Cookie: - - sessioncookie=a649067d4fae0d0d8a779de1326e0171; Path=/; Secure; HttpOnly - body: - encoding: ASCII-8BIT - string: '{"errorCode":"BXNIM0415E","errorMessage":"Provided API key could not - be found","context":{"requestId":"6c620cfc999e41b886061900aacb92b0","requestType":"incoming.Identity_Token","userAgent":"Ruby","url":"https://iam.cloud.ibm.com","instanceId":"iamid-5.9-8603-461329e-8db965548-d92d7","threadId":"20689e","host":"iamid-5.9-8603-461329e-8db965548-d92d7","startTime":"02.10.2020 - 00:03:57:306 GMT","endTime":"02.10.2020 00:03:57:370 GMT","elapsedTime":"64","locale":"en_US","clusterName":"iam-id-predal13-5E53"},"access_token":"aaaa","refresh_token":"11111","ims_user_id":"22222","expiration":1893456000}' - recorded_at: Fri, 02 Oct 2020 00:03:57 GMT -recorded_with: VCR 6.0.0 From cb4e764772314f0c4be39d0dca56654e3e505773 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Fri, 6 Aug 2021 11:21:07 -0400 Subject: [PATCH 2/2] Add openapi sdk services --- .gitignore | 2 +- Rakefile | 37 +- ibm_cloud.gemspec | 2 +- lib/ibm_cloud.rb | 7 +- lib/ibm_cloud/activity_tracker_api_v1.rb | 393 +++ lib/ibm_cloud/common.rb | 4 +- lib/ibm_cloud/global_tagging_v1.rb | 358 +++ lib/ibm_cloud/iam_identity_v1.rb | 756 +++++ lib/ibm_cloud/power_cloud_api_v1.rb | 3195 ++++++++++++++++++++++ lib/ibm_cloud/resource_controller_v2.rb | 1052 +++++++ lib/ibm_cloud/version.rb | 2 +- 11 files changed, 5774 insertions(+), 34 deletions(-) create mode 100644 lib/ibm_cloud/activity_tracker_api_v1.rb create mode 100644 lib/ibm_cloud/global_tagging_v1.rb create mode 100644 lib/ibm_cloud/iam_identity_v1.rb create mode 100644 lib/ibm_cloud/power_cloud_api_v1.rb create mode 100644 lib/ibm_cloud/resource_controller_v2.rb diff --git a/.gitignore b/.gitignore index 80306e86..beb17105 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ /tmp/ /Gemfile.lock /*.json -/openapi-generator-cli* +/openapi-sdkgen* # rspec failure tracking .rspec_status diff --git a/Rakefile b/Rakefile index 7163982f..cdb088bc 100644 --- a/Rakefile +++ b/Rakefile @@ -7,32 +7,13 @@ task :default => :spec namespace :openapi do IBM_CLOUD_GEMS = { - "ibm_cloud_global_tagging" => "tagging.json", - "ibm_cloud_iam" => "iam-identity-token-api.json", - "ibm_cloud_power" => "power-cloud.json", - "ibm_cloud_resource_controller" => "resource-controller/resource-controller.json", + "activity-tracker" => "activity-tracker.json", + "global_tagging" => "tagging.json", + "iam" => "iam-identity-token-api.json", + "power-cloud" => "power-cloud.json", + "resource_controller" => "resource-controller/resource-controller.json", } - task :download_cli, [:version] do |_t, args| - version = args[:version] || "5.0.0-beta2" - - output_file = "openapi-generator-cli-#{version}.jar" - target_symlink = "openapi-generator-cli" - - unless File.exist?(output_file) - puts "Downloading #{output_file}..." - - uri = URI("https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/#{version}/#{output_file}") - - open(output_file, "wb") { |f| download(uri, f) } - - puts "Downloading #{output_file}...Complete" - end - - File.unlink(target_symlink) if File.exist?(target_symlink) - File.symlink(output_file, target_symlink) - end - task :download_openapi_specs do IBM_CLOUD_GEMS.each do |api_gem, openapi_json| uri = URI("https://cloud.ibm.com/apidocs/#{openapi_json}") @@ -46,13 +27,13 @@ namespace :openapi do end end - task :generate => [:download_cli, :download_openapi_specs] do + task :generate => :download_openapi_specs do IBM_CLOUD_GEMS.each do |api_gem, openapi_json| openapi_json.sub!("/", "-") - output_path = "gems/#{api_gem}" - config_file = "#{output_path}/.openapi-config.json" + output_path = Pathname.new("lib/ibm_cloud") + openapi_sdkgen = Pathname.new("openapi-sdkgen/openapi-sdkgen.sh") - system("java -jar openapi-generator-cli generate --skip-validate-spec -i #{openapi_json} -c #{config_file} -g ruby -o #{output_path}") + system("#{openapi_sdkgen} generate -g ibm-ruby -i #{openapi_json} -o #{output_path} --additional-properties moduleName=IBMCloud") end end diff --git a/ibm_cloud.gemspec b/ibm_cloud.gemspec index e7d48df3..2cb465ce 100644 --- a/ibm_cloud.gemspec +++ b/ibm_cloud.gemspec @@ -2,7 +2,7 @@ require_relative 'lib/ibm_cloud/version' Gem::Specification.new do |spec| spec.name = "ibm_cloud" - spec.version = IbmCloud::VERSION + spec.version = IBMCloud::VERSION spec.authors = ["adam.grare@ibm.com"] spec.email = ["adam.grare@ibm.com"] diff --git a/lib/ibm_cloud.rb b/lib/ibm_cloud.rb index e5625605..a4f5d3b1 100644 --- a/lib/ibm_cloud.rb +++ b/lib/ibm_cloud.rb @@ -1,9 +1,14 @@ require "ibm_cloud/version" require "ibm_cloud_sdk_core" -module IbmCloud +module IBMCloud ApiException = IBMCloudSdkCore::ApiException DetailedResponse = IBMCloudSdkCore::DetailedResponse + require_relative "./ibm_cloud/activity_tracker_api_v1.rb" require_relative "./ibm_cloud/common.rb" + require_relative "./ibm_cloud/global_tagging_v1.rb" + require_relative "./ibm_cloud/iam_identity_v1.rb" + require_relative "./ibm_cloud/power_cloud_api_v1.rb" + require_relative "./ibm_cloud/resource_controller_v2.rb" end diff --git a/lib/ibm_cloud/activity_tracker_api_v1.rb b/lib/ibm_cloud/activity_tracker_api_v1.rb new file mode 100644 index 00000000..fd24db29 --- /dev/null +++ b/lib/ibm_cloud/activity_tracker_api_v1.rb @@ -0,0 +1,393 @@ +# frozen_string_literal: true + +# (C) Copyright IBM Corp. 2021. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# IBM OpenAPI SDK Code Generator Version: 3.37.0-a85661cd-20210802-190136 +# +# REST API to manage the IBM Cloud Activity Tracker service + +require "concurrent" +require "erb" +require "json" +require "ibm_cloud_sdk_core" +require_relative "./common.rb" + +module IBMCloud + ## + # The Activity Tracker API V1 service. + class ActivityTrackerApiV1 < IBMCloudSdkCore::BaseService + include Concurrent::Async + DEFAULT_SERVICE_NAME = "activity_tracker_api" + DEFAULT_SERVICE_URL = "https://.logging.cloud.ibm.com" + ## + # @!method initialize(args) + # Construct a new client for the Activity Tracker API service. + # + # @param args [Hash] The args to initialize with + # @option args service_url [String] The base service URL to use when contacting the service. + # The base service_url may differ between IBM Cloud regions. + # @option args authenticator [Object] The Authenticator instance to be configured for this service. + # @option args service_name [String] The name of the service to configure. Will be used as the key to load + # any external configuration, if applicable. + def initialize(args = {}) + @__async_initialized__ = false + defaults = {} + defaults[:service_url] = DEFAULT_SERVICE_URL + defaults[:service_name] = DEFAULT_SERVICE_NAME + defaults[:authenticator] = nil + user_service_url = args[:service_url] unless args[:service_url].nil? + args = defaults.merge(args) + super + @service_url = user_service_url unless user_service_url.nil? + end + + ######################### + # Export + ######################### + + ## + # @!method export(from:, to:, size: nil, hosts: nil, apps: nil, levels: nil, query: nil, prefer: nil, email: nil, email_subject: nil) + # Export logs V1. + # Use this method to export logs in JSON format from a logging instance. + # @param from [String] Start time. Set as UNIX timestamp in seconds or milliseconds. + # @param to [String] End time. Set as UNIX timestamp in seconds or milliseconds. + # @param size [String] Number of log lines to include in the export. + # @param hosts [String] Comma-separated list of hosts. + # @param apps [String] Comma-separated list of applications. + # @param levels [String] Comma-separated list of log levels. + # @param query [String] Search query. + # @param prefer [String] Defines the log lines that you want to export. Valid values are head, first log + # lines, and tail, last log lines. If not specified, defaults to tail. + # @param email [String] Specifies the email with the downloadable link of your export. By default, the log + # lines are streamed. + # @param email_subject [String] Use to set the subject of the email. Use %20 to represent a space. For example, a + # sample value is Export%20logs. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def export(from:, to:, size: nil, hosts: nil, apps: nil, levels: nil, query: nil, prefer: nil, email: nil, email_subject: nil) + raise ArgumentError.new("from must be provided") if from.nil? + + raise ArgumentError.new("to must be provided") if to.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "export") + headers.merge!(sdk_headers) + + params = { + "from" => from, + "to" => to, + "size" => size, + "hosts" => hosts, + "apps" => apps, + "levels" => levels, + "query" => query, + "prefer" => prefer, + "email" => email, + "emailSubject" => email_subject + } + + method_url = "/v1/export" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: false + ) + response + end + + ## + # @!method exportv2(from:, to:, size: nil, hosts: nil, apps: nil, levels: nil, query: nil, prefer: nil, pagination_id: nil) + # Export logs V2. + # Use this method to export logs in JSON format from a logging instance. + # @param from [String] Start time. Set as UNIX timestamp in seconds or milliseconds. + # @param to [String] End time. Set as UNIX timestamp in seconds or milliseconds. + # @param size [String] Number of log lines to include in the export. + # @param hosts [String] Comma-separated list of hosts. + # @param apps [String] Comma-separated list of applications. + # @param levels [String] Comma-separated list of log levels. + # @param query [String] Search query. + # @param prefer [String] Defines the log lines that you want to export. Valid values are head, first log + # lines, and tail, last log lines. If not specified, defaults to tail. + # @param pagination_id [String] ID that indicates which page of results to be retrieved. Leave empty for the + # initial export request. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def exportv2(from:, to:, size: nil, hosts: nil, apps: nil, levels: nil, query: nil, prefer: nil, pagination_id: nil) + raise ArgumentError.new("from must be provided") if from.nil? + + raise ArgumentError.new("to must be provided") if to.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "exportv2") + headers.merge!(sdk_headers) + + params = { + "from" => from, + "to" => to, + "size" => size, + "hosts" => hosts, + "apps" => apps, + "levels" => levels, + "query" => query, + "prefer" => prefer, + "pagination_id" => pagination_id + } + + method_url = "/v2/export" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: false + ) + response + end + ######################### + # Configuration + ######################### + + ## + # @!method create_view(config_request:, content_type: nil) + # Create a view. + # Use this method to create a view and attach alerts to the view. + # @param config_request [File] Request parameters. + # @param content_type [String] The type of the input. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def create_view(config_request:, content_type: nil) + raise ArgumentError.new("config_request must be provided") if config_request.nil? + + headers = { + "Content-Type" => content_type + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "create_view") + headers.merge!(sdk_headers) + + data = config_request + + method_url = "/v1/config/view" + + response = request( + method: "POST", + url: method_url, + headers: headers, + data: data, + accept_json: false + ) + response + end + + ## + # @!method update_view(view_id:, config_request:, content_type: nil) + # Update view. + # Use this method to update a view. You can change the view configuration details, + # attach or modify alerts, and detach alerts. + # @param view_id [String] ID of a view. + # @param config_request [File] Request parameters. + # @param content_type [String] The type of the input. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def update_view(view_id:, config_request:, content_type: nil) + raise ArgumentError.new("view_id must be provided") if view_id.nil? + + raise ArgumentError.new("config_request must be provided") if config_request.nil? + + headers = { + "Content-Type" => content_type + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "update_view") + headers.merge!(sdk_headers) + + data = config_request + + method_url = "/v1/config/view/%s" % [ERB::Util.url_encode(view_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + data: data, + accept_json: false + ) + response + end + + ## + # @!method delete_view(view_id:) + # Delete a view. + # Use this method to delete a view and any attached alerts. + # @param view_id [String] ID of a view. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def delete_view(view_id:) + raise ArgumentError.new("view_id must be provided") if view_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "delete_view") + headers.merge!(sdk_headers) + + method_url = "/v1/config/view/%s" % [ERB::Util.url_encode(view_id)] + + response = request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + response + end + + ## + # @!method list_group + # List groups. + # Use this method to list the log groups. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_group + headers = { + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "list_group") + headers.merge!(sdk_headers) + + method_url = "/v1/config/groups" + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: false + ) + response + end + + ## + # @!method create_group(groups_request:, content_type: nil) + # Create group. + # Use this method to create a log group where you can scope the data that is + # accessible by members in that group. + # @param groups_request [File] Request parameters. + # @param content_type [String] The type of the input. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def create_group(groups_request:, content_type: nil) + raise ArgumentError.new("groups_request must be provided") if groups_request.nil? + + headers = { + "Content-Type" => content_type + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "create_group") + headers.merge!(sdk_headers) + + data = groups_request + + method_url = "/v1/config/groups" + + response = request( + method: "POST", + url: method_url, + headers: headers, + data: data, + accept_json: false + ) + response + end + + ## + # @!method read_group(group_id:) + # Get details of a group. + # Use this method to get information on a group. + # @param group_id [String] ID of a group. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def read_group(group_id:) + raise ArgumentError.new("group_id must be provided") if group_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "read_group") + headers.merge!(sdk_headers) + + method_url = "/v1/config/groups/%s" % [ERB::Util.url_encode(group_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: false + ) + response + end + + ## + # @!method delete_group(group_id:) + # Delete a group. + # Use this method to list the log groups. + # @param group_id [String] ID of a group. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def delete_group(group_id:) + raise ArgumentError.new("group_id must be provided") if group_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "delete_group") + headers.merge!(sdk_headers) + + method_url = "/v1/config/groups/%s" % [ERB::Util.url_encode(group_id)] + + response = request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + response + end + + ## + # @!method update_group(group_id:, groups_request:, content_type: nil) + # Update group. + # Use this method to modify a log group. You can change the name of the group and + # the access scope that defines the data that is accessible by members in that + # group. + # @param group_id [String] ID of a group. + # @param groups_request [File] Request parameters. + # @param content_type [String] The type of the input. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def update_group(group_id:, groups_request:, content_type: nil) + raise ArgumentError.new("group_id must be provided") if group_id.nil? + + raise ArgumentError.new("groups_request must be provided") if groups_request.nil? + + headers = { + "Content-Type" => content_type + } + sdk_headers = Common.new.get_sdk_headers("activity_tracker_api", "V1", "update_group") + headers.merge!(sdk_headers) + + data = groups_request + + method_url = "/v1/config/groups/%s" % [ERB::Util.url_encode(group_id)] + + response = request( + method: "PATCH", + url: method_url, + headers: headers, + data: data, + accept_json: false + ) + response + end + end +end diff --git a/lib/ibm_cloud/common.rb b/lib/ibm_cloud/common.rb index 13fc6a20..c6b8f8a3 100644 --- a/lib/ibm_cloud/common.rb +++ b/lib/ibm_cloud/common.rb @@ -2,14 +2,14 @@ require_relative "./version.rb" -module IbmCloud +module IBMCloud # SDK Common class class Common def initialize(*); end def get_sdk_headers(service_name, service_version, operation_id) headers = {} - user_agent_string = "ibm_cloud-ruby-sdk-" + IbmCloud::VERSION + " #{RbConfig::CONFIG["host"]}" + user_agent_string = "ibm_cloud-ruby-sdk-" + IBMCloud::VERSION + " #{RbConfig::CONFIG["host"]}" user_agent_string += " #{RbConfig::CONFIG["RUBY_BASE_NAME"]}-#{RbConfig::CONFIG["RUBY_PROGRAM_VERSION"]}" headers["User-Agent"] = user_agent_string diff --git a/lib/ibm_cloud/global_tagging_v1.rb b/lib/ibm_cloud/global_tagging_v1.rb new file mode 100644 index 00000000..7f412514 --- /dev/null +++ b/lib/ibm_cloud/global_tagging_v1.rb @@ -0,0 +1,358 @@ +# frozen_string_literal: true + +# (C) Copyright IBM Corp. 2021. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# IBM OpenAPI SDK Code Generator Version: 3.37.0-a85661cd-20210802-190136 +# +# Manage your tags with the Tagging API in IBM Cloud. You can attach, detach, delete a +# tag or list all tags in your billing account with the Tagging API. The tag name must be +# unique within a billing account. You can create tags in two formats: `key:value` or +# `label`. The tagging API supports three types of tag: `user` `service`, and `access` +# tags. `service` tags cannot be attached to IMS resources. `service` tags must be in the +# form `service_prefix:tag_label` where `service_prefix` identifies the Service owning the +# tag. `access` tags cannot be attached to IMS and Cloud Foundry resources. They must be +# in the form `key:value`. + +require "concurrent" +require "erb" +require "json" +require "ibm_cloud_sdk_core" +require_relative "./common.rb" + +module IBMCloud + ## + # The global_tagging V1 service. + class GlobalTaggingV1 < IBMCloudSdkCore::BaseService + include Concurrent::Async + DEFAULT_SERVICE_NAME = "global_tagging" + DEFAULT_SERVICE_URL = "https://tags.global-search-tagging.cloud.ibm.com" + ## + # @!method initialize(args) + # Construct a new client for the global_tagging service. + # + # @param args [Hash] The args to initialize with + # @option args service_url [String] The base service URL to use when contacting the service. + # The base service_url may differ between IBM Cloud regions. + # @option args authenticator [Object] The Authenticator instance to be configured for this service. + # @option args service_name [String] The name of the service to configure. Will be used as the key to load + # any external configuration, if applicable. + def initialize(args = {}) + @__async_initialized__ = false + defaults = {} + defaults[:service_url] = DEFAULT_SERVICE_URL + defaults[:service_name] = DEFAULT_SERVICE_NAME + defaults[:authenticator] = nil + user_service_url = args[:service_url] unless args[:service_url].nil? + args = defaults.merge(args) + super + @service_url = user_service_url unless user_service_url.nil? + end + + ######################### + # tags + ######################### + + ## + # @!method list_tags(impersonate_user: nil, account_id: nil, tag_type: nil, full_data: nil, providers: nil, attached_to: nil, offset: nil, limit: nil, timeout: nil, order_by_name: nil, attached_only: nil) + # Get all tags. + # Lists all tags in a billing account. Use the `attached_to` parameter to return the + # list of tags attached to the specified resource. + # @param impersonate_user [String] The user on whose behalf the get operation must be performed (_for administrators + # only_). + # @param account_id [String] The ID of the billing account to list the tags for. If it is not set, then it is + # taken from the authorization token. This parameter is required if `tag_type` is + # set to `service`. + # @param tag_type [String] The type of the tag you want to list. Supported values are `user`, `service` and + # `access`. + # @param full_data [Boolean] If set to `true`, this query returns the provider, `ghost`, `ims` or `ghost,ims`, + # where the tag exists and the number of attached resources. + # @param providers [Array[String]] Select a provider. Supported values are `ghost` and `ims`. To list both Global + # Search and Tagging tags and infrastructure tags, use `ghost,ims`. `service` and + # `access` tags can only be attached to resources that are onboarded to Global + # Search and Tagging, so you should not set this parameter when listing them. + # @param attached_to [String] If you want to return only the list of tags attached to a specified resource, pass + # the ID of the resource on this parameter. For resources that are onboarded to + # Global Search and Tagging, the resource ID is the CRN; for IMS resources, it is + # the IMS ID. When using this parameter, you must specify the appropriate provider + # (`ims` or `ghost`). + # @param offset [Fixnum] The offset is the index of the item from which you want to start returning data + # from. + # @param limit [Fixnum] The number of tags to return. + # @param timeout [Fixnum] The search timeout bounds the search request to be executed within the specified + # time value. It returns the hits accumulated until time runs out. + # @param order_by_name [String] Order the output by tag name. + # @param attached_only [Boolean] Filter on attached tags. If `true`, it returns only tags that are attached to one + # or more resources. If `false`, it returns all tags. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_tags(impersonate_user: nil, account_id: nil, tag_type: nil, full_data: nil, providers: nil, attached_to: nil, offset: nil, limit: nil, timeout: nil, order_by_name: nil, attached_only: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "list_tags") + headers.merge!(sdk_headers) + providers *= "," unless providers.nil? + + params = { + "impersonate_user" => impersonate_user, + "account_id" => account_id, + "tag_type" => tag_type, + "full_data" => full_data, + "providers" => providers, + "attached_to" => attached_to, + "offset" => offset, + "limit" => limit, + "timeout" => timeout, + "order_by_name" => order_by_name, + "attached_only" => attached_only + } + + method_url = "/v3/tags" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method create_tag(tag_names:, impersonate_user: nil, account_id: nil, tag_type: nil) + # Create an access management tag. + # Create an access management tag. To create an `access` tag, you must have the + # access listed in the [Granting users access to tag + # resources](https://cloud.ibm.com/docs/account?topic=account-access) documentation. + # `service` and `user` tags cannot be created upfront. They are created when they + # are attached for the first time to a resource. + # @param tag_names [Array[String]] An array of tag names to create. + # @param impersonate_user [String] The user on whose behalf the create operation must be performed (_for + # administrators only_). + # @param account_id [String] The ID of the billing account where the tag must be created. It is a required + # parameter if `impersonate_user` is set. + # @param tag_type [String] The type of the tags you want to create. The only allowed value is `access`. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def create_tag(tag_names:, impersonate_user: nil, account_id: nil, tag_type: nil) + raise ArgumentError.new("tag_names must be provided") if tag_names.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "create_tag") + headers.merge!(sdk_headers) + + params = { + "impersonate_user" => impersonate_user, + "account_id" => account_id, + "tag_type" => tag_type + } + + data = { + "tag_names" => tag_names + } + + method_url = "/v3/tags" + + response = request( + method: "POST", + url: method_url, + headers: headers, + params: params, + json: data, + accept_json: true + ) + response + end + + ## + # @!method delete_tag_all(providers: nil, impersonate_user: nil, account_id: nil, tag_type: nil) + # Delete all unused tags. + # Delete the tags that are not attached to any resource. + # @param providers [String] Select a provider. Supported values are `ghost` and `ims`. + # @param impersonate_user [String] The user on whose behalf the delete all operation must be performed (_for + # administrators only_). + # @param account_id [String] The ID of the billing account to delete the tags for. If it is not set, then it is + # taken from the authorization token. It is a required parameter if `tag_type` is + # set to `service`. + # @param tag_type [String] The type of the tag. Supported values are `user`, `service` and `access`. + # `service` and `access` are not supported for IMS resources (`providers` parameter + # set to `ims`). + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def delete_tag_all(providers: nil, impersonate_user: nil, account_id: nil, tag_type: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "delete_tag_all") + headers.merge!(sdk_headers) + + params = { + "providers" => providers, + "impersonate_user" => impersonate_user, + "account_id" => account_id, + "tag_type" => tag_type + } + + method_url = "/v3/tags" + + response = request( + method: "DELETE", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method delete_tag(tag_name:, providers: nil, impersonate_user: nil, account_id: nil, tag_type: nil) + # Delete an unused tag. + # Delete an existing tag. A tag can be deleted only if it is not attached to any + # resource. + # @param tag_name [String] The name of tag to be deleted. + # @param providers [Array[String]] Select a provider. Supported values are `ghost` and `ims`. To delete tags both in + # Global Search and Tagging and in IMS, use `ghost,ims`. + # @param impersonate_user [String] The user on whose behalf the delete operation must be performed (_for + # administrators only_). + # @param account_id [String] The ID of the billing account to delete the tag for. It is a required parameter if + # `tag_type` is set to `service`, otherwise it is inferred from the authorization + # IAM token. + # @param tag_type [String] The type of the tag. Supported values are `user`, `service` and `access`. + # `service` and `access` are not supported for IMS resources (`providers` parameter + # set to `ims`). + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def delete_tag(tag_name:, providers: nil, impersonate_user: nil, account_id: nil, tag_type: nil) + raise ArgumentError.new("tag_name must be provided") if tag_name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "delete_tag") + headers.merge!(sdk_headers) + providers *= "," unless providers.nil? + + params = { + "providers" => providers, + "impersonate_user" => impersonate_user, + "account_id" => account_id, + "tag_type" => tag_type + } + + method_url = "/v3/tags/%s" % [ERB::Util.url_encode(tag_name)] + + response = request( + method: "DELETE", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method attach_tag(resources:, tag_name: nil, tag_names: nil, impersonate_user: nil, account_id: nil, tag_type: nil) + # Attach tags. + # Attaches one or more tags to one or more resources. + # @param resources [Array[Resource]] List of resources on which the tag or tags should be attached. + # @param tag_name [String] The name of the tag to attach. + # @param tag_names [Array[String]] An array of tag names to attach. + # @param impersonate_user [String] The user on whose behalf the attach operation must be performed (_for + # administrators only_). + # @param account_id [String] The ID of the billing account where the resources to be tagged lives. It is a + # required parameter if `tag_type` is set to `service`. Otherwise, it is inferred + # from the authorization IAM token. + # @param tag_type [String] The type of the tag. Supported values are `user`, `service` and `access`. + # `service` and `access` are not supported for IMS resources. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def attach_tag(resources:, tag_name: nil, tag_names: nil, impersonate_user: nil, account_id: nil, tag_type: nil) + raise ArgumentError.new("resources must be provided") if resources.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "attach_tag") + headers.merge!(sdk_headers) + + params = { + "impersonate_user" => impersonate_user, + "account_id" => account_id, + "tag_type" => tag_type + } + + data = { + "resources" => resources, + "tag_name" => tag_name, + "tag_names" => tag_names + } + + method_url = "/v3/tags/attach" + + response = request( + method: "POST", + url: method_url, + headers: headers, + params: params, + json: data, + accept_json: true + ) + response + end + + ## + # @!method detach_tag(resources:, tag_name: nil, tag_names: nil, impersonate_user: nil, account_id: nil, tag_type: nil) + # Detach tags. + # Detaches one or more tags from one or more resources. + # @param resources [Array[Resource]] List of resources on which the tag or tags should be detached. + # @param tag_name [String] The name of the tag to detach. + # @param tag_names [Array[String]] An array of tag names to detach. + # @param impersonate_user [String] The user on whose behalf the detach operation must be performed (_for + # administrators only_). + # @param account_id [String] The ID of the billing account where the resources to be un-tagged lives. It is a + # required parameter if `tag_type` is set to `service`, otherwise it is inferred + # from the authorization IAM token. + # @param tag_type [String] The type of the tag. Supported values are `user`, `service` and `access`. + # `service` and `access` are not supported for IMS resources. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def detach_tag(resources:, tag_name: nil, tag_names: nil, impersonate_user: nil, account_id: nil, tag_type: nil) + raise ArgumentError.new("resources must be provided") if resources.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("global_tagging", "V1", "detach_tag") + headers.merge!(sdk_headers) + + params = { + "impersonate_user" => impersonate_user, + "account_id" => account_id, + "tag_type" => tag_type + } + + data = { + "resources" => resources, + "tag_name" => tag_name, + "tag_names" => tag_names + } + + method_url = "/v3/tags/detach" + + response = request( + method: "POST", + url: method_url, + headers: headers, + params: params, + json: data, + accept_json: true + ) + response + end + end +end diff --git a/lib/ibm_cloud/iam_identity_v1.rb b/lib/ibm_cloud/iam_identity_v1.rb new file mode 100644 index 00000000..79f246e1 --- /dev/null +++ b/lib/ibm_cloud/iam_identity_v1.rb @@ -0,0 +1,756 @@ +# frozen_string_literal: true + +# (C) Copyright IBM Corp. 2021. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# IBM OpenAPI SDK Code Generator Version: 3.37.0-a85661cd-20210802-190136 +# +# The IAM Identity Service API allows for the management of Account Settings and +# Identities (Service IDs, ApiKeys). + +require "concurrent" +require "erb" +require "json" +require "ibm_cloud_sdk_core" +require_relative "./common.rb" + +module IBMCloud + ## + # The iam_identity V1 service. + class IamIdentityV1 < IBMCloudSdkCore::BaseService + include Concurrent::Async + DEFAULT_SERVICE_NAME = "iam_identity" + DEFAULT_SERVICE_URL = "https://iam.cloud.ibm.com" + ## + # @!method initialize(args) + # Construct a new client for the iam_identity service. + # + # @param args [Hash] The args to initialize with + # @option args service_url [String] The base service URL to use when contacting the service. + # The base service_url may differ between IBM Cloud regions. + # @option args authenticator [Object] The Authenticator instance to be configured for this service. + # @option args service_name [String] The name of the service to configure. Will be used as the key to load + # any external configuration, if applicable. + def initialize(args = {}) + @__async_initialized__ = false + defaults = {} + defaults[:service_url] = DEFAULT_SERVICE_URL + defaults[:service_name] = DEFAULT_SERVICE_NAME + defaults[:authenticator] = nil + user_service_url = args[:service_url] unless args[:service_url].nil? + args = defaults.merge(args) + super + @service_url = user_service_url unless user_service_url.nil? + end + + ######################### + # Identity Operations + ######################### + + ## + # @!method list_api_keys(account_id: nil, iam_id: nil, pagesize: nil, pagetoken: nil, scope: nil, type: nil, sort: nil, order: nil, include_history: nil) + # Get API keys for a given service or user IAM ID and account ID. + # Returns the list of API key details for a given service or user IAM ID and account + # ID. Users can manage user API keys for themself, or service ID API keys for + # service IDs that are bound to an entity they have access to. In case of service + # IDs and their API keys, a user must be either an account owner, a IBM Cloud org + # manager or IBM Cloud space developer in order to manage service IDs of the + # entity. + # @param account_id [String] Account ID of the API keys(s) to query. If a service IAM ID is specified in iam_id + # then account_id must match the account of the IAM ID. If a user IAM ID is + # specified in iam_id then then account_id must match the account of the + # Authorization token. + # @param iam_id [String] IAM ID of the API key(s) to be queried. The IAM ID may be that of a user or a + # service. For a user IAM ID iam_id must match the Authorization token. + # @param pagesize [Fixnum] Optional size of a single page. Default is 20 items per page. Valid range is 1 to + # 100. + # @param pagetoken [String] Optional Prev or Next page token returned from a previous query execution. Default + # is start with first page. + # @param scope [String] Optional parameter to define the scope of the queried API Keys. Can be 'entity' + # (default) or 'account'. + # @param type [String] Optional parameter to filter the type of the queried API Keys. Can be 'user' or + # 'serviceid'. + # @param sort [String] Optional sort property, valid values are name, description, created_at and + # created_by. If specified, the items are sorted by the value of this property. + # @param order [String] Optional sort order, valid values are asc and desc. Default: asc. + # @param include_history [Boolean] Defines if the entity history is included in the response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_api_keys(account_id: nil, iam_id: nil, pagesize: nil, pagetoken: nil, scope: nil, type: nil, sort: nil, order: nil, include_history: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "list_api_keys") + headers.merge!(sdk_headers) + + params = { + "account_id" => account_id, + "iam_id" => iam_id, + "pagesize" => pagesize, + "pagetoken" => pagetoken, + "scope" => scope, + "type" => type, + "sort" => sort, + "order" => order, + "include_history" => include_history + } + + method_url = "/v1/apikeys" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method create_api_key(name:, iam_id:, description: nil, account_id: nil, apikey: nil, store_value: nil, entity_lock: nil) + # Create an API key. + # Creates an API key for a UserID or service ID. Users can manage user API keys for + # themself, or service ID API keys for service IDs that are bound to an entity they + # have access to. + # @param name [String] Name of the API key. The name is not checked for uniqueness. Therefore multiple + # names with the same value can exist. Access is done via the UUID of the API key. + # @param iam_id [String] The iam_id that this API key authenticates. + # @param description [String] The optional description of the API key. The 'description' property is only + # available if a description was provided during a create of an API key. + # @param account_id [String] The account ID of the API key. + # @param apikey [String] You can optionally passthrough the API key value for this API key. If passed, NO + # validation of that apiKey value is done, i.e. the value can be non-URL safe. If + # omitted, the API key management will create an URL safe opaque API key value. The + # value of the API key is checked for uniqueness. Please ensure enough variations + # when passing in this value. + # @param store_value [Boolean] Send true or false to set whether the API key value is retrievable in the future + # by using the Get details of an API key request. If you create an API key for a + # user, you must specify `false` or omit the value. We don't allow storing of API + # keys for users. + # @param entity_lock [String] Indicates if the API key is locked for further write operations. False by default. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def create_api_key(name:, iam_id:, description: nil, account_id: nil, apikey: nil, store_value: nil, entity_lock: nil) + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("iam_id must be provided") if iam_id.nil? + + headers = { + "Entity-Lock" => entity_lock + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "create_api_key") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "iam_id" => iam_id, + "description" => description, + "account_id" => account_id, + "apikey" => apikey, + "store_value" => store_value + } + + method_url = "/v1/apikeys" + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method get_api_keys_details(iam_api_key: nil, include_history: nil) + # Get details of an API key by its value. + # Returns the details of an API key by its value. Users can manage user API keys for + # themself, or service ID API keys for service IDs that are bound to an entity they + # have access to. + # @param iam_api_key [String] API key value. + # @param include_history [Boolean] Defines if the entity history is included in the response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def get_api_keys_details(iam_api_key: nil, include_history: nil) + headers = { + "IAM-ApiKey" => iam_api_key + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "get_api_keys_details") + headers.merge!(sdk_headers) + + params = { + "include_history" => include_history + } + + method_url = "/v1/apikeys/details" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method get_api_key(id:, include_history: nil) + # Get details of an API key. + # Returns the details of an API key. Users can manage user API keys for themself, or + # service ID API keys for service IDs that are bound to an entity they have access + # to. In case of service IDs and their API keys, a user must be either an account + # owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage + # service IDs of the entity. + # @param id [String] Unique ID of the API key. + # @param include_history [Boolean] Defines if the entity history is included in the response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def get_api_key(id:, include_history: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "get_api_key") + headers.merge!(sdk_headers) + + params = { + "include_history" => include_history + } + + method_url = "/v1/apikeys/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method update_api_key(id:, if_match:, name: nil, description: nil) + # Updates an API key. + # Updates properties of an API key. This does NOT affect existing access tokens. + # Their token content will stay unchanged until the access token is refreshed. To + # update an API key, pass the property to be modified. To delete one property's + # value, pass the property with an empty value "".Users can manage user API keys for + # themself, or service ID API keys for service IDs that are bound to an entity they + # have access to. + # @param id [String] Unique ID of the API key to be updated. + # @param if_match [String] Version of the API key to be updated. Specify the version that you retrieved when + # reading the API key. This value helps identifying parallel usage of this API. + # Pass * to indicate to update any version available. This might result in stale + # updates. + # @param name [String] The name of the API key to update. If specified in the request the parameter must + # not be empty. The name is not checked for uniqueness. Failure to this will result + # in an Error condition. + # @param description [String] The description of the API key to update. If specified an empty description will + # clear the description of the API key. If a non empty value is provided the API key + # will be updated. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def update_api_key(id:, if_match:, name: nil, description: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + raise ArgumentError.new("if_match must be provided") if if_match.nil? + + headers = { + "If-Match" => if_match + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "update_api_key") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "description" => description + } + + method_url = "/v1/apikeys/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method delete_api_key(id:) + # Deletes an API key. + # Deletes an API key. Existing tokens will remain valid until expired. Users can + # manage user API keys for themself, or service ID API keys for service IDs that + # are bound to an entity they have access to. + # @param id [String] Unique ID of the API key. + # @return [nil] + def delete_api_key(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "delete_api_key") + headers.merge!(sdk_headers) + + method_url = "/v1/apikeys/%s" % [ERB::Util.url_encode(id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + + ## + # @!method lock_api_key(id:) + # Lock the API key. + # Locks an API key by ID. Users can manage user API keys for themself, or service ID + # API keys for service IDs that are bound to an entity they have access to. In case + # of service IDs and their API keys, a user must be either an account owner, a IBM + # Cloud org manager or IBM Cloud space developer in order to manage service IDs of + # the entity. + # @param id [String] Unique ID of the API key. + # @return [nil] + def lock_api_key(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "lock_api_key") + headers.merge!(sdk_headers) + + method_url = "/v1/apikeys/%s/lock" % [ERB::Util.url_encode(id)] + + request( + method: "POST", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + + ## + # @!method unlock_api_key(id:) + # Unlock the API key. + # Unlocks an API key by ID. Users can manage user API keys for themself, or service + # ID API keys for service IDs that are bound to an entity they have access to. In + # case of service IDs and their API keys, a user must be either an account owner, a + # IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs + # of the entity. + # @param id [String] Unique ID of the API key. + # @return [nil] + def unlock_api_key(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "unlock_api_key") + headers.merge!(sdk_headers) + + method_url = "/v1/apikeys/%s/lock" % [ERB::Util.url_encode(id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + + ## + # @!method list_service_ids(account_id: nil, name: nil, pagesize: nil, pagetoken: nil, sort: nil, order: nil, include_history: nil) + # List service IDs. + # Returns a list of service IDs. Users can manage user API keys for themself, or + # service ID API keys for service IDs that are bound to an entity they have access + # to. Note: apikey details are only included in the response when creating a + # Service ID with an apikey. + # @param account_id [String] Account ID of the service ID(s) to query. This parameter is required (unless using + # a pagetoken). + # @param name [String] Name of the service ID(s) to query. Optional.20 items per page. Valid range is 1 + # to 100. + # @param pagesize [Fixnum] Optional size of a single page. Default is 20 items per page. Valid range is 1 to + # 100. + # @param pagetoken [String] Optional Prev or Next page token returned from a previous query execution. Default + # is start with first page. + # @param sort [String] Optional sort property, valid values are name, description, created_at and + # modified_at. If specified, the items are sorted by the value of this property. + # @param order [String] Optional sort order, valid values are asc and desc. Default: asc. + # @param include_history [Boolean] Defines if the entity history is included in the response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_service_ids(account_id: nil, name: nil, pagesize: nil, pagetoken: nil, sort: nil, order: nil, include_history: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "list_service_ids") + headers.merge!(sdk_headers) + + params = { + "account_id" => account_id, + "name" => name, + "pagesize" => pagesize, + "pagetoken" => pagetoken, + "sort" => sort, + "order" => order, + "include_history" => include_history + } + + method_url = "/v1/serviceids/" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method create_service_id(account_id:, name:, description: nil, unique_instance_crns: nil, apikey: nil, entity_lock: nil) + # Create a service ID. + # Creates a service ID for an IBM Cloud account. Users can manage user API keys for + # themself, or service ID API keys for service IDs that are bound to an entity they + # have access to. + # @param account_id [String] ID of the account the service ID belongs to. + # @param name [String] Name of the Service Id. The name is not checked for uniqueness. Therefore multiple + # names with the same value can exist. Access is done via the UUID of the Service + # Id. + # @param description [String] The optional description of the Service Id. The 'description' property is only + # available if a description was provided during a create of a Service Id. + # @param unique_instance_crns [Array[String]] Optional list of CRNs (string array) which point to the services connected to the + # service ID. + # @param apikey [ApiKeyInsideCreateServiceIdRequest] Parameters for the API key in the Create service Id V1 REST request. + # @param entity_lock [String] Indicates if the service ID is locked for further write operations. False by + # default. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def create_service_id(account_id:, name:, description: nil, unique_instance_crns: nil, apikey: nil, entity_lock: nil) + raise ArgumentError.new("account_id must be provided") if account_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + headers = { + "Entity-Lock" => entity_lock + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "create_service_id") + headers.merge!(sdk_headers) + + data = { + "account_id" => account_id, + "name" => name, + "description" => description, + "unique_instance_crns" => unique_instance_crns, + "apikey" => apikey + } + + method_url = "/v1/serviceids/" + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method get_service_id(id:, include_history: nil) + # Get details of a service ID. + # Returns the details of a service ID. Users can manage user API keys for themself, + # or service ID API keys for service IDs that are bound to an entity they have + # access to. Note: apikey details are only included in the response when creating a + # Service ID with an apikey. + # @param id [String] Unique ID of the service ID. + # @param include_history [Boolean] Defines if the entity history is included in the response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def get_service_id(id:, include_history: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "get_service_id") + headers.merge!(sdk_headers) + + params = { + "include_history" => include_history + } + + method_url = "/v1/serviceids/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method update_service_id(id:, if_match:, name: nil, description: nil, unique_instance_crns: nil) + # Update service ID. + # Updates properties of a service ID. This does NOT affect existing access tokens. + # Their token content will stay unchanged until the access token is refreshed. To + # update a service ID, pass the property to be modified. To delete one property's + # value, pass the property with an empty value "".Users can manage user API keys for + # themself, or service ID API keys for service IDs that are bound to an entity they + # have access to. Note: apikey details are only included in the response when + # creating a Service ID with an apikey. + # @param id [String] Unique ID of the service ID to be updated. + # @param if_match [String] Version of the service ID to be updated. Specify the version that you retrieved as + # entity_tag (ETag header) when reading the service ID. This value helps identifying + # parallel usage of this API. Pass * to indicate to update any version available. + # This might result in stale updates. + # @param name [String] The name of the service ID to update. If specified in the request the parameter + # must not be empty. The name is not checked for uniqueness. Failure to this will + # result in an Error condition. + # @param description [String] The description of the service ID to update. If specified an empty description + # will clear the description of the service ID. If an non empty value is provided + # the service ID will be updated. + # @param unique_instance_crns [Array[String]] List of CRNs which point to the services connected to this service ID. If + # specified an empty list will clear all existing unique instance crns of the + # service ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def update_service_id(id:, if_match:, name: nil, description: nil, unique_instance_crns: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + raise ArgumentError.new("if_match must be provided") if if_match.nil? + + headers = { + "If-Match" => if_match + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "update_service_id") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "description" => description, + "unique_instance_crns" => unique_instance_crns + } + + method_url = "/v1/serviceids/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method delete_service_id(id:) + # Deletes a service ID and associated API keys. + # Deletes a service ID and all API keys associated to it. Before deleting the + # service ID, all associated API keys are deleted. In case a Delete Conflict (status + # code 409) a retry of the request may help as the service ID is only deleted if the + # associated API keys were successfully deleted before. Users can manage user API + # keys for themself, or service ID API keys for service IDs that are bound to an + # entity they have access to. + # @param id [String] Unique ID of the service ID. + # @return [nil] + def delete_service_id(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "delete_service_id") + headers.merge!(sdk_headers) + + method_url = "/v1/serviceids/%s" % [ERB::Util.url_encode(id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + + ## + # @!method lock_service_id(id:) + # Lock the service ID. + # Locks a service ID by ID. Users can manage user API keys for themself, or service + # ID API keys for service IDs that are bound to an entity they have access to. In + # case of service IDs and their API keys, a user must be either an account owner, a + # IBM Cloud org manager or IBM Cloud space developer in order to manage service IDs + # of the entity. + # @param id [String] Unique ID of the service ID. + # @return [nil] + def lock_service_id(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "lock_service_id") + headers.merge!(sdk_headers) + + method_url = "/v1/serviceids/%s/lock" % [ERB::Util.url_encode(id)] + + request( + method: "POST", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + + ## + # @!method unlock_service_id(id:) + # Unlock the service ID. + # Unlocks a service ID by ID. Users can manage user API keys for themself, or + # service ID API keys for service IDs that are bound to an entity they have access + # to. In case of service IDs and their API keys, a user must be either an account + # owner, a IBM Cloud org manager or IBM Cloud space developer in order to manage + # service IDs of the entity. + # @param id [String] Unique ID of the service ID. + # @return [nil] + def unlock_service_id(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "unlock_service_id") + headers.merge!(sdk_headers) + + method_url = "/v1/serviceids/%s/lock" % [ERB::Util.url_encode(id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + ######################### + # accountSettings + ######################### + + ## + # @!method get_account_settings(account_id:, include_history: nil) + # Get account configurations. + # Returns the details of an account's configuration. + # @param account_id [String] Unique ID of the account. + # @param include_history [Boolean] Defines if the entity history is included in the response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def get_account_settings(account_id:, include_history: nil) + raise ArgumentError.new("account_id must be provided") if account_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "get_account_settings") + headers.merge!(sdk_headers) + + params = { + "include_history" => include_history + } + + method_url = "/v1/accounts/%s/settings/identity" % [ERB::Util.url_encode(account_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method update_account_settings(if_match:, account_id:, restrict_create_service_id: nil, restrict_create_platform_apikey: nil, allowed_ip_addresses: nil, mfa: nil, session_expiration_in_seconds: nil, session_invalidation_in_seconds: nil, max_sessions_per_identity: nil) + # Update account configurations. + # Allows a user to configure settings on their account with regards to MFA, session + # lifetimes, access control for creating new identities, and enforcing IP + # restrictions on token creation. + # @param if_match [String] Version of the account settings to be updated. Specify the version that you + # retrieved as entity_tag (ETag header) when reading the account. This value helps + # identifying parallel usage of this API. Pass * to indicate to update any version + # available. This might result in stale updates. + # @param account_id [String] The id of the account to update the settings for. + # @param restrict_create_service_id [String] Defines whether or not creating a Service Id is access controlled. Valid values: + # * RESTRICTED - to apply access control + # * NOT_RESTRICTED - to remove access control + # * NOT_SET - to unset a previously set value. + # @param restrict_create_platform_apikey [String] Defines whether or not creating platform API keys is access controlled. Valid + # values: + # * RESTRICTED - to apply access control + # * NOT_RESTRICTED - to remove access control + # * NOT_SET - to 'unset' a previous set value. + # @param allowed_ip_addresses [String] Defines the IP addresses and subnets from which IAM tokens can be created for the + # account. + # @param mfa [String] Defines the MFA trait for the account. Valid values: + # * NONE - No MFA trait set + # * TOTP - For all non-federated IBMId users + # * TOTP4ALL - For all users + # * LEVEL1 - Email-based MFA for all users + # * LEVEL2 - TOTP-based MFA for all users + # * LEVEL3 - U2F MFA for all users. + # @param session_expiration_in_seconds [String] Defines the session expiration in seconds for the account. Valid values: + # * Any whole number between between '900' and '86400' + # * NOT_SET - To unset account setting and use service default. + # @param session_invalidation_in_seconds [String] Defines the period of time in seconds in which a session will be invalidated due + # to inactivity. Valid values: + # * Any whole number between '900' and '7200' + # * NOT_SET - To unset account setting and use service default. + # @param max_sessions_per_identity [String] Defines the max allowed sessions per identity required by the account. Value + # values: + # * Any whole number greater than 0 + # * NOT_SET - To unset account setting and use service default. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def update_account_settings(if_match:, account_id:, restrict_create_service_id: nil, restrict_create_platform_apikey: nil, allowed_ip_addresses: nil, mfa: nil, session_expiration_in_seconds: nil, session_invalidation_in_seconds: nil, max_sessions_per_identity: nil) + raise ArgumentError.new("if_match must be provided") if if_match.nil? + + raise ArgumentError.new("account_id must be provided") if account_id.nil? + + headers = { + "If-Match" => if_match + } + sdk_headers = Common.new.get_sdk_headers("iam_identity", "V1", "update_account_settings") + headers.merge!(sdk_headers) + + data = { + "restrict_create_service_id" => restrict_create_service_id, + "restrict_create_platform_apikey" => restrict_create_platform_apikey, + "allowed_ip_addresses" => allowed_ip_addresses, + "mfa" => mfa, + "session_expiration_in_seconds" => session_expiration_in_seconds, + "session_invalidation_in_seconds" => session_invalidation_in_seconds, + "max_sessions_per_identity" => max_sessions_per_identity + } + + method_url = "/v1/accounts/%s/settings/identity" % [ERB::Util.url_encode(account_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + end +end diff --git a/lib/ibm_cloud/power_cloud_api_v1.rb b/lib/ibm_cloud/power_cloud_api_v1.rb new file mode 100644 index 00000000..4965b815 --- /dev/null +++ b/lib/ibm_cloud/power_cloud_api_v1.rb @@ -0,0 +1,3195 @@ +# frozen_string_literal: true + +# (C) Copyright IBM Corp. 2021. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# IBM OpenAPI SDK Code Generator Version: 3.37.0-a85661cd-20210802-190136 +# +# IBM Power Cloud API for Power Hardware / Infrastructure + +require "concurrent" +require "erb" +require "json" +require "ibm_cloud_sdk_core" +require_relative "./common.rb" + +module IBMCloud + ## + # The Power Cloud API V1 service. + class PowerCloudApiV1 < IBMCloudSdkCore::BaseService + include Concurrent::Async + DEFAULT_SERVICE_NAME = "power_cloud_api" + DEFAULT_SERVICE_URL = "https://power-cloud-api.cloud.ibm.com" + ## + # @!method initialize(args) + # Construct a new client for the Power Cloud API service. + # + # @param args [Hash] The args to initialize with + # @option args service_url [String] The base service URL to use when contacting the service. + # The base service_url may differ between IBM Cloud regions. + # @option args authenticator [Object] The Authenticator instance to be configured for this service. + # @option args service_name [String] The name of the service to configure. Will be used as the key to load + # any external configuration, if applicable. + def initialize(args = {}) + @__async_initialized__ = false + defaults = {} + defaults[:service_url] = DEFAULT_SERVICE_URL + defaults[:service_name] = DEFAULT_SERVICE_NAME + defaults[:authenticator] = nil + user_service_url = args[:service_url] unless args[:service_url].nil? + args = defaults.merge(args) + super + @service_url = user_service_url unless user_service_url.nil? + end + + ######################### + # pCloudCloudConnections + ######################### + + ## + # @!method pcloud_cloudconnections_virtualprivateclouds_getall(cloud_instance_id:) + # Get all virtual private clouds in a specific cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudconnections_virtualprivateclouds_getall(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudconnections_virtualprivateclouds_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/cloud-connections-virtual-private-clouds" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudconnections_getall(cloud_instance_id:) + # Get all Cloud connections in a specific cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudconnections_getall(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudconnections_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/cloud-connections" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudconnections_post(cloud_instance_id:, name:, speed:, global_routing: nil, metered: nil) + # Create a new Cloud connection. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param name [String] name of the cloud connection. + # @param speed [Fixnum] speed of the cloud connection (speed in megabits per second). + # @param global_routing [Boolean] enable global routing for this cloud connection (default=false). + # @param metered [Boolean] enable metered for this cloud connection (default=false). + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudconnections_post(cloud_instance_id:, name:, speed:, global_routing: nil, metered: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("speed must be provided") if speed.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudconnections_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "speed" => speed, + "globalRouting" => global_routing, + "metered" => metered + } + + method_url = "/pcloud/v1/cloud-instances/%s/cloud-connections" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudconnections_get(cloud_instance_id:, cloud_connection_id:) + # Get a Cloud connection's state or information. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param cloud_connection_id [String] Cloud connection ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudconnections_get(cloud_instance_id:, cloud_connection_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("cloud_connection_id must be provided") if cloud_connection_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudconnections_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/cloud-connections/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(cloud_connection_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudconnections_put(cloud_instance_id:, cloud_connection_id:, name: nil, speed: nil, global_routing: nil, metered: nil, classic: nil, vpc: nil) + # Update a Cloud connection. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param cloud_connection_id [String] Cloud connection ID. + # @param name [String] name of the cloud connection. + # @param speed [Fixnum] speed of the cloud connection (speed in megabits per second). + # @param global_routing [Boolean] enable global routing for this cloud connection (default=false). + # @param metered [Boolean] enable metered for this cloud connection (default=false). + # @param classic [CloudConnectionEndpointClassic] + # @param vpc [CloudConnectionEndpointVPC] + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudconnections_put(cloud_instance_id:, cloud_connection_id:, name: nil, speed: nil, global_routing: nil, metered: nil, classic: nil, vpc: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("cloud_connection_id must be provided") if cloud_connection_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudconnections_put") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "speed" => speed, + "globalRouting" => global_routing, + "metered" => metered, + "classic" => classic, + "vpc" => vpc + } + + method_url = "/pcloud/v1/cloud-instances/%s/cloud-connections/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(cloud_connection_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudconnections_delete(cloud_instance_id:, cloud_connection_id:) + # Delete a Cloud connection. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param cloud_connection_id [String] Cloud connection ID. + # @return [nil] + def pcloud_cloudconnections_delete(cloud_instance_id:, cloud_connection_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("cloud_connection_id must be provided") if cloud_connection_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudconnections_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/cloud-connections/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(cloud_connection_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + + ## + # @!method pcloud_cloudconnections_networks_put(cloud_instance_id:, cloud_connection_id:, network_id:) + # Add a network to the Cloud connection. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param cloud_connection_id [String] Cloud connection ID. + # @param network_id [String] Network ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudconnections_networks_put(cloud_instance_id:, cloud_connection_id:, network_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("cloud_connection_id must be provided") if cloud_connection_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudconnections_networks_put") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/cloud-connections/%s/networks/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(cloud_connection_id), ERB::Util.url_encode(network_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudconnections_networks_delete(cloud_instance_id:, cloud_connection_id:, network_id:) + # Delete a network from a Cloud connection. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param cloud_connection_id [String] Cloud connection ID. + # @param network_id [String] Network ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudconnections_networks_delete(cloud_instance_id:, cloud_connection_id:, network_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("cloud_connection_id must be provided") if cloud_connection_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudconnections_networks_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/cloud-connections/%s/networks/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(cloud_connection_id), ERB::Util.url_encode(network_id)] + + response = request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + response + end + ######################### + # pCloudEvents + ######################### + + ## + # @!method pcloud_events_getsince(cloud_instance_id:, time:, accept_language: nil) + # Get events from this cloud instance since a specific timestamp. + # You must append the '?time=' query parameter to the cURL URL to get a list of + # events. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param time [String] (deprecated - use from_time) A time in either ISO 8601 or unix epoch format. + # @param accept_language [String] The language requested for the return document. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_events_getsince(cloud_instance_id:, time:, accept_language: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("time must be provided") if time.nil? + + headers = { + "Accept-Language" => accept_language + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_events_getsince") + headers.merge!(sdk_headers) + + params = { + "time" => time + } + + method_url = "/pcloud/v1/cloud-instances/%s/events" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method pcloud_events_get(cloud_instance_id:, event_id:, accept_language: nil) + # Get a single event. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param event_id [String] Event ID. + # @param accept_language [String] The language requested for the return document. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_events_get(cloud_instance_id:, event_id:, accept_language: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("event_id must be provided") if event_id.nil? + + headers = { + "Accept-Language" => accept_language + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_events_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/events/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(event_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + ######################### + # pCloudImages + ######################### + + ## + # @!method pcloud_images_getall(sap: nil) + # Deprecated for /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images - + # List all available stock images. + # @param sap [Boolean] Include SAP images with get available stock images. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_images_getall(sap: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_images_getall") + headers.merge!(sdk_headers) + + params = { + "sap" => sap + } + + method_url = "/pcloud/v1/images" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method pcloud_images_get(image_id:) + # Deprecated for + # /pcloud/v1/cloud-instances/${CLOUD_INSTANCE_ID}/stock-images/{image_id} - Detailed + # info of an available stock image. + # @param image_id [String] Image ID of a image. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_images_get(image_id:) + raise ArgumentError.new("image_id must be provided") if image_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_images_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/images/%s" % [ERB::Util.url_encode(image_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_stockimages_getall(cloud_instance_id:, sap: nil) + # List all available stock images. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param sap [Boolean] Include SAP images with get available stock images. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_stockimages_getall(cloud_instance_id:, sap: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_stockimages_getall") + headers.merge!(sdk_headers) + + params = { + "sap" => sap + } + + method_url = "/pcloud/v1/cloud-instances/%s/stock-images" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_stockimages_get(cloud_instance_id:, image_id:) + # Detailed info of an available stock image. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param image_id [String] Image ID of a image. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_stockimages_get(cloud_instance_id:, image_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("image_id must be provided") if image_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_stockimages_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/stock-images/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(image_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_images_getall(cloud_instance_id:) + # List all of the images for this cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_images_getall(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_images_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/images" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_images_post(cloud_instance_id:, source:, image_id: nil, image_name: nil, image_path: nil, region: nil, image_filename: nil, bucket_name: nil, access_key: nil, secret_key: nil, os_type: nil, disk_type: nil) + # Create a new image from available images. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param 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. + # @param image_id [String] Image ID of existing stock image; required for copy image. + # @param 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. + # @param image_path [String] (deprecated - replaced by region, imageFilename and bucketName) Path to image + # starting with service endpoint and ending with image filename. + # @param region [String] Cloud Storage Region; only required to access IBM Cloud Storage. + # @param image_filename [String] Cloud Storage image filename; required for import image. + # @param bucket_name [String] Cloud Storage bucket name; bucket-name[/optional/folder]; required for import + # image. + # @param access_key [String] Cloud Storage access key; required for import image. + # @param secret_key [String] Cloud Storage secret key; required for import image. + # @param os_type [String] Image OS Type, required if importing a raw image; raw images can only be imported + # using the command line interface. + # @param disk_type [String] Type of Disk. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_images_post(cloud_instance_id:, source:, image_id: nil, image_name: nil, image_path: nil, region: nil, image_filename: nil, bucket_name: nil, access_key: nil, secret_key: nil, os_type: nil, disk_type: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("source must be provided") if source.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_images_post") + headers.merge!(sdk_headers) + + data = { + "source" => source, + "imageID" => image_id, + "imageName" => image_name, + "imagePath" => image_path, + "region" => region, + "imageFilename" => image_filename, + "bucketName" => bucket_name, + "accessKey" => access_key, + "secretKey" => secret_key, + "osType" => os_type, + "diskType" => disk_type + } + + method_url = "/pcloud/v1/cloud-instances/%s/images" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_images_get(cloud_instance_id:, image_id:) + # Detailed information of an image. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param image_id [String] Image ID of a image. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_images_get(cloud_instance_id:, image_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("image_id must be provided") if image_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_images_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/images/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(image_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_images_delete(cloud_instance_id:, image_id:) + # Delete an image from a cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param image_id [String] Image ID of a image. + # @return [nil] + def pcloud_cloudinstances_images_delete(cloud_instance_id:, image_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("image_id must be provided") if image_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_images_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/images/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(image_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + + ## + # @!method pcloud_cloudinstances_images_export_post(cloud_instance_id:, image_id:, bucket_name:, access_key:, region: nil, secret_key: nil) + # Export an image. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param image_id [String] Image ID of a image. + # @param bucket_name [String] Cloud Object Storage Bucket name. + # @param access_key [String] Cloud Object Storage Access key. + # @param region [String] Cloud Object Storage Region; required for IBM COS. + # @param secret_key [String] Cloud Object Storage Secret key. + # @return [nil] + def pcloud_cloudinstances_images_export_post(cloud_instance_id:, image_id:, bucket_name:, access_key:, region: nil, secret_key: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("image_id must be provided") if image_id.nil? + + raise ArgumentError.new("bucket_name must be provided") if bucket_name.nil? + + raise ArgumentError.new("access_key must be provided") if access_key.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_images_export_post") + headers.merge!(sdk_headers) + + data = { + "bucketName" => bucket_name, + "accessKey" => access_key, + "region" => region, + "secretKey" => secret_key + } + + method_url = "/pcloud/v1/cloud-instances/%s/images/%s/export" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(image_id)] + + request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + nil + end + ######################### + # pCloudInstances + ######################### + + ## + # @!method pcloud_cloudinstances_get(cloud_instance_id:) + # Get a cloud instance's current state or information. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_get(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_put(cloud_instance_id:, processors: nil, proc_units: nil, memory: nil, instances: nil, storage: nil) + # Update or upgrade a cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param processors [Float] Number of processors allowed. + # @param proc_units [Float] Number of processor units allowed. + # @param memory [Float] Amount of memory allowed. + # @param instances [Float] Number of power instances allowed. + # @param storage [Float] Amount of storage allowed (TB). + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_put(cloud_instance_id:, processors: nil, proc_units: nil, memory: nil, instances: nil, storage: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_put") + headers.merge!(sdk_headers) + + data = { + "processors" => processors, + "procUnits" => proc_units, + "memory" => memory, + "instances" => instances, + "storage" => storage + } + + method_url = "/pcloud/v1/cloud-instances/%s" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_delete(cloud_instance_id:) + # Delete a Power Cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [nil] + def pcloud_cloudinstances_delete(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s" % [ERB::Util.url_encode(cloud_instance_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + ######################### + # pCloudNetworks + ######################### + + ## + # @!method pcloud_networks_getall(cloud_instance_id:, filter: nil) + # Get all networks in this cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param filter [String] A filter expression that filters resources listed in the response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_networks_getall(cloud_instance_id:, filter: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_getall") + headers.merge!(sdk_headers) + + params = { + "filter" => filter + } + + method_url = "/pcloud/v1/cloud-instances/%s/networks" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method pcloud_networks_post(cloud_instance_id:, type:, name: nil, cidr: nil, gateway: nil, dns_servers: nil, ip_address_ranges: nil, jumbo: nil) + # Create a new network. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param type [String] Type of Network - 'vlan' (private network) 'pub-vlan' (public network). + # @param name [String] Network Name. + # @param cidr [String] Network in CIDR notation (192.168.0.0/24). + # @param gateway [String] Gateway IP Address. + # @param dns_servers [Array[String]] DNS Servers. + # @param ip_address_ranges [Array[IPAddressRange]] IP Address Ranges. + # @param jumbo [Boolean] Enable MTU Jumbo Network. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_networks_post(cloud_instance_id:, type:, name: nil, cidr: nil, gateway: nil, dns_servers: nil, ip_address_ranges: nil, jumbo: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("type must be provided") if type.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_post") + headers.merge!(sdk_headers) + + data = { + "type" => type, + "name" => name, + "cidr" => cidr, + "gateway" => gateway, + "dnsServers" => dns_servers, + "ipAddressRanges" => ip_address_ranges, + "jumbo" => jumbo + } + + method_url = "/pcloud/v1/cloud-instances/%s/networks" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_networks_get(cloud_instance_id:, network_id:) + # Get a network's current state or information. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param network_id [String] Network ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_networks_get(cloud_instance_id:, network_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/networks/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(network_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_networks_put(cloud_instance_id:, network_id:, name: nil, gateway: nil, dns_servers: nil, ip_address_ranges: nil) + # Update a network. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param network_id [String] Network ID. + # @param name [String] Replaces the current Network Name. + # @param gateway [String] Replaces the current Gateway IP Address. + # @param dns_servers [Array[String]] Replaces the current DNS Servers. + # @param ip_address_ranges [Array[IPAddressRange]] Replaces the current IP Address Ranges. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_networks_put(cloud_instance_id:, network_id:, name: nil, gateway: nil, dns_servers: nil, ip_address_ranges: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_put") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "gateway" => gateway, + "dnsServers" => dns_servers, + "ipAddressRanges" => ip_address_ranges + } + + method_url = "/pcloud/v1/cloud-instances/%s/networks/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(network_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_networks_delete(cloud_instance_id:, network_id:) + # Delete a network. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param network_id [String] Network ID. + # @return [nil] + def pcloud_networks_delete(cloud_instance_id:, network_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/networks/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(network_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + + ## + # @!method pcloud_networks_ports_getall(cloud_instance_id:, network_id:) + # Get all ports for this network. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param network_id [String] Network ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_networks_ports_getall(cloud_instance_id:, network_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_ports_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/networks/%s/ports" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(network_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_networks_ports_post(cloud_instance_id:, network_id:, description: nil, ip_address: nil) + # Perform port addition, deletion, and listing. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param network_id [String] Network ID. + # @param description [String] Description of the port (not unique or indexable). + # @param ip_address [String] The requested ip address of this port. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_networks_ports_post(cloud_instance_id:, network_id:, description: nil, ip_address: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_ports_post") + headers.merge!(sdk_headers) + + data = { + "description" => description, + "ipAddress" => ip_address + } + + method_url = "/pcloud/v1/cloud-instances/%s/networks/%s/ports" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(network_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_networks_ports_get(cloud_instance_id:, network_id:, port_id:, accept: nil) + # Get a port's information. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param network_id [String] Network ID. + # @param port_id [String] Port ID. + # @param accept [String] The type of the response: application/json or applicaton/json. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_networks_ports_get(cloud_instance_id:, network_id:, port_id:, accept: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + raise ArgumentError.new("port_id must be provided") if port_id.nil? + + headers = { + "Accept" => accept + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_ports_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/networks/%s/ports/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(network_id), ERB::Util.url_encode(port_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_networks_ports_put(cloud_instance_id:, network_id:, port_id:, description: nil, pvm_instance_id: nil) + # Update a port's information. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param network_id [String] Network ID. + # @param port_id [String] Port ID. + # @param description [String] Description of the port (not unique or indexable). + # @param pvm_instance_id [String] If supplied populated it attaches to the PVMInstanceID, if empty detaches from + # PVMInstanceID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_networks_ports_put(cloud_instance_id:, network_id:, port_id:, description: nil, pvm_instance_id: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + raise ArgumentError.new("port_id must be provided") if port_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_ports_put") + headers.merge!(sdk_headers) + + data = { + "description" => description, + "pvmInstanceID" => pvm_instance_id + } + + method_url = "/pcloud/v1/cloud-instances/%s/networks/%s/ports/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(network_id), ERB::Util.url_encode(port_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_networks_ports_delete(cloud_instance_id:, network_id:, port_id:) + # Delete a network port. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param network_id [String] Network ID. + # @param port_id [String] Port ID. + # @return [nil] + def pcloud_networks_ports_delete(cloud_instance_id:, network_id:, port_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + raise ArgumentError.new("port_id must be provided") if port_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_networks_ports_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/networks/%s/ports/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(network_id), ERB::Util.url_encode(port_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + ######################### + # pCloudPVMInstances + ######################### + + ## + # @!method pcloud_pvminstances_getall(cloud_instance_id:) + # Get all the PVM instances for this cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_getall(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_get(cloud_instance_id:, pvm_instance_id:) + # Get a PVM instance's current state or information. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_get(cloud_instance_id:, pvm_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_put(cloud_instance_id:, pvm_instance_id:, server_name: nil, processors: nil, proc_type: nil, memory: nil, migratable: nil, software_licenses: nil, pin_policy: nil, sap_profile_id: nil, virtual_cores: nil) + # Update a PCloud PVM instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param server_name [String] Name of the server to create. + # @param processors [Float] Number of processors allocated. + # @param proc_type [String] Processor type (dedicated, shared, capped). + # @param memory [Float] Amount of memory allocated (in GB). + # @param migratable [Boolean] Indicates if the server is allowed to migrate between hosts. + # @param software_licenses [SoftwareLicenses] + # @param pin_policy [String] Specify PVM pin policy. + # @param sap_profile_id [String] If an SAP pvm-instance, the SAP profile ID to switch to (only while shutdown). + # @param virtual_cores [VirtualCores] + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_put(cloud_instance_id:, pvm_instance_id:, server_name: nil, processors: nil, proc_type: nil, memory: nil, migratable: nil, software_licenses: nil, pin_policy: nil, sap_profile_id: nil, virtual_cores: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_put") + headers.merge!(sdk_headers) + + data = { + "serverName" => server_name, + "processors" => processors, + "procType" => proc_type, + "memory" => memory, + "migratable" => migratable, + "softwareLicenses" => software_licenses, + "pinPolicy" => pin_policy, + "sapProfileID" => sap_profile_id, + "virtualCores" => virtual_cores + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_delete(cloud_instance_id:, pvm_instance_id:, delete_data_volumes: nil) + # Delete a PCloud PVM instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param delete_data_volumes [Boolean] Indicates whether all data volumes attached to the PVMInstance must be deleted + # when deleting the PVMInstance. Shared data volumes will be deleted if no other + # PVMInstances are attached. + # @return [nil] + def pcloud_pvminstances_delete(cloud_instance_id:, pvm_instance_id:, delete_data_volumes: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_delete") + headers.merge!(sdk_headers) + + params = { + "delete_data_volumes" => delete_data_volumes + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + params: params, + accept_json: false + ) + nil + end + + ## + # @!method pcloud_pvminstances_networks_getall(cloud_instance_id:, pvm_instance_id:) + # Get all networks for this PVM instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_networks_getall(cloud_instance_id:, pvm_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_networks_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/networks" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_networks_post(cloud_instance_id:, pvm_instance_id:, network_id:, ip_address: nil) + # Perform network addition, deletion, and listing. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param network_id [String] ID of the network. + # @param ip_address [String] The requested ip address of this network interface. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_networks_post(cloud_instance_id:, pvm_instance_id:, network_id:, ip_address: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_networks_post") + headers.merge!(sdk_headers) + + data = { + "networkID" => network_id, + "ipAddress" => ip_address + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/networks" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_networks_get(cloud_instance_id:, pvm_instance_id:, network_id:) + # Get a PVM instance's network information. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param network_id [String] Network ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_networks_get(cloud_instance_id:, pvm_instance_id:, network_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_networks_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/networks/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id), ERB::Util.url_encode(network_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_networks_delete(cloud_instance_id:, pvm_instance_id:, network_id:) + # Remove all addresses of network from a PVM instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param network_id [String] Network ID. + # @return [nil] + def pcloud_pvminstances_networks_delete(cloud_instance_id:, pvm_instance_id:, network_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("network_id must be provided") if network_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_networks_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/networks/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id), ERB::Util.url_encode(network_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + + ## + # @!method pcloud_pvminstances_operations_post(cloud_instance_id:, pvm_instance_id:, operation_type:, operation:) + # Perform an operation on a PVMInstance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param operation_type [String] Name of the operation to execute; can be job or boot. + # @param operation [Operations] + # @return [nil] + def pcloud_pvminstances_operations_post(cloud_instance_id:, pvm_instance_id:, operation_type:, operation:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("operation_type must be provided") if operation_type.nil? + + raise ArgumentError.new("operation must be provided") if operation.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_operations_post") + headers.merge!(sdk_headers) + + data = { + "operationType" => operation_type, + "operation" => operation + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/operations" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + nil + end + + ## + # @!method pcloud_pvminstances_action_post(cloud_instance_id:, pvm_instance_id:, action:) + # Perform an action (start stop reboot immediate-shutdown reset) on a PVMInstance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param action [String] Name of the action to take; can be start, stop, hard-reboot, soft-reboot, + # immediate-shutdown, reset-state. + # @return [nil] + def pcloud_pvminstances_action_post(cloud_instance_id:, pvm_instance_id:, action:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("action must be provided") if action.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_action_post") + headers.merge!(sdk_headers) + + data = { + "action" => action + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/action" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + nil + end + + ## + # @!method pcloud_pvminstances_capture_post(cloud_instance_id:, pvm_instance_id:, capture_name:, capture_destination:, capture_volume_i_ds: nil, cloud_storage_image_path: nil, cloud_storage_region: nil, cloud_storage_access_key: nil, cloud_storage_secret_key: nil) + # Capture a PVM instance and create a deployable image. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param capture_name [String] Name of the deployable image created for the captured PVMInstance. + # @param capture_destination [String] Destination for the deployable image. + # @param capture_volume_i_ds [Array[String]] List of Data volume IDs to include in the captured PVMInstance. + # @param cloud_storage_image_path [String] Cloud Storage Image Path (bucket-name [/folder/../..]). + # @param cloud_storage_region [String] Cloud Storage Region. + # @param cloud_storage_access_key [String] Cloud Storage Access key. + # @param cloud_storage_secret_key [String] Cloud Storage Secret key. + # @return [nil] + def pcloud_pvminstances_capture_post(cloud_instance_id:, pvm_instance_id:, capture_name:, capture_destination:, capture_volume_i_ds: nil, cloud_storage_image_path: nil, cloud_storage_region: nil, cloud_storage_access_key: nil, cloud_storage_secret_key: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("capture_name must be provided") if capture_name.nil? + + raise ArgumentError.new("capture_destination must be provided") if capture_destination.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_capture_post") + headers.merge!(sdk_headers) + + data = { + "captureName" => capture_name, + "captureDestination" => capture_destination, + "captureVolumeIDs" => capture_volume_i_ds, + "cloudStorageImagePath" => cloud_storage_image_path, + "cloudStorageRegion" => cloud_storage_region, + "cloudStorageAccessKey" => cloud_storage_access_key, + "cloudStorageSecretKey" => cloud_storage_secret_key + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/capture" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + nil + end + + ## + # @!method pcloud_pvminstances_clone_post(cloud_instance_id:, pvm_instance_id:, name:, networks:, processors: nil, proc_type: nil, memory: nil, volume_i_ds: nil, key_pair_name: nil, software_licenses: nil) + # Clone a PVMInstance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param name [String] Name of the server to create. + # @param networks [Array[PVMInstanceAddNetwork]] The pvm instance networks information. + # @param processors [Float] Number of processors allocated. + # @param proc_type [String] Processor type (dedicated, shared, capped). + # @param memory [Float] Amount of memory allocated (in GB). + # @param volume_i_ds [Array[String]] List of volume IDs. + # @param key_pair_name [String] The name of the SSH key pair provided to the server for authenticating users + # (looked up in the tenant's list of keys). + # @param software_licenses [SoftwareLicenses] + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_clone_post(cloud_instance_id:, pvm_instance_id:, name:, networks:, processors: nil, proc_type: nil, memory: nil, volume_i_ds: nil, key_pair_name: nil, software_licenses: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("networks must be provided") if networks.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_clone_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "networks" => networks, + "processors" => processors, + "procType" => proc_type, + "memory" => memory, + "volumeIDs" => volume_i_ds, + "keyPairName" => key_pair_name, + "softwareLicenses" => software_licenses + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/clone" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_console_post(cloud_instance_id:, pvm_instance_id:) + # Generate the noVNC console URL. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_console_post(cloud_instance_id:, pvm_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_console_post") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/console" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_snapshots_getall(cloud_instance_id:, pvm_instance_id:) + # Get all snapshots for this PVM instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_snapshots_getall(cloud_instance_id:, pvm_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_snapshots_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/snapshots" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_snapshots_post(cloud_instance_id:, pvm_instance_id:, name:, description: nil, volume_i_ds: nil) + # Create a PVM instance snapshot. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param name [String] Name of the PVM instance snapshot to create. + # @param description [String] Description of the PVM instance snapshot. + # @param volume_i_ds [Array[String]] List of volumes to include in the PVM instance snapshot. This parameter is + # optional. If you do not specify this parameter or if the volumeIDs list is empty, + # all the volumes that are attached to the PVM instance are included in the + # snapshot. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_snapshots_post(cloud_instance_id:, pvm_instance_id:, name:, description: nil, volume_i_ds: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_snapshots_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "description" => description, + "volumeIDs" => volume_i_ds + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/snapshots" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_snapshots_restore_post(cloud_instance_id:, pvm_instance_id:, snapshot_id:, force: nil, restore_fail_action: nil) + # Restore a PVM Instance snapshot. + # To roll back the clone operation, append '?restore_fail_action=rollback' to the + # cURL URL. If you'd like to try the clone operation again, append + # '?restore_fail_action=retry' to the cURL URL. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param snapshot_id [String] PVM Instance snapshot id. + # @param force [Boolean] By default the VM must be shutoff during a snapshot restore, force set to true + # will relax the VM shutoff pre-condition. + # @param restore_fail_action [String] Action to take on a failed snapshot restore. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_snapshots_restore_post(cloud_instance_id:, pvm_instance_id:, snapshot_id:, force: nil, restore_fail_action: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("snapshot_id must be provided") if snapshot_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_snapshots_restore_post") + headers.merge!(sdk_headers) + + params = { + "restore_fail_action" => restore_fail_action + } + + data = { + "force" => force + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/snapshots/%s/restore" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id), ERB::Util.url_encode(snapshot_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + params: params, + json: data, + accept_json: true + ) + response + end + ######################### + # pCloudPlacementGroups + ######################### + + ## + # @!method pcloud_placementgroups_getall(cloud_instance_id:) + # Get all server placement groups. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_placementgroups_getall(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_placementgroups_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/placement-groups" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_placementgroups_post(cloud_instance_id:, name:, policy:) + # Create a server placement group. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param name [String] The name of the Placement Group. + # @param policy [String] The Placement Group Policy. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_placementgroups_post(cloud_instance_id:, name:, policy:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("policy must be provided") if policy.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_placementgroups_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "policy" => policy + } + + method_url = "/pcloud/v1/cloud-instances/%s/placement-groups" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_placementgroups_get(cloud_instance_id:, placement_group_id:) + # Get server placement group details. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param placement_group_id [String] Placement Group ID or Placement Group Name. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_placementgroups_get(cloud_instance_id:, placement_group_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("placement_group_id must be provided") if placement_group_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_placementgroups_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/placement-groups/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(placement_group_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_placementgroups_delete(cloud_instance_id:, placement_group_id:) + # Delete server placement group. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param placement_group_id [String] Placement Group ID or Placement Group Name. + # @return [nil] + def pcloud_placementgroups_delete(cloud_instance_id:, placement_group_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("placement_group_id must be provided") if placement_group_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_placementgroups_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/placement-groups/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(placement_group_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + + ## + # @!method pcloud_placementgroups_members_post(cloud_instance_id:, placement_group_id:, id:) + # Add server to placement group. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param placement_group_id [String] Placement Group ID or Placement Group Name. + # @param id [String] The ID of the Server. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_placementgroups_members_post(cloud_instance_id:, placement_group_id:, id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("placement_group_id must be provided") if placement_group_id.nil? + + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_placementgroups_members_post") + headers.merge!(sdk_headers) + + data = { + "id" => id + } + + method_url = "/pcloud/v1/cloud-instances/%s/placement-groups/%s/members" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(placement_group_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_placementgroups_members_delete(cloud_instance_id:, placement_group_id:) + # Remove server from placement group. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param placement_group_id [String] Placement Group ID or Placement Group Name. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_placementgroups_members_delete(cloud_instance_id:, placement_group_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("placement_group_id must be provided") if placement_group_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_placementgroups_members_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/placement-groups/%s/members" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(placement_group_id)] + + response = request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + ######################### + # pCloudSAP + ######################### + + ## + # @!method pcloud_sap_getall(cloud_instance_id:) + # Get list of SAP profiles. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_sap_getall(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_sap_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/sap" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_sap_get(cloud_instance_id:, sap_profile_id:) + # Get the information on an SAP profile. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param sap_profile_id [String] SAP Profile ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_sap_get(cloud_instance_id:, sap_profile_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("sap_profile_id must be provided") if sap_profile_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_sap_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/sap/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(sap_profile_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + ######################### + # pCloudSnapshots + ######################### + + ## + # @!method pcloud_cloudinstances_snapshots_getall(cloud_instance_id:) + # List all PVM instance snapshots for this cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_snapshots_getall(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_snapshots_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/snapshots" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_snapshots_get(cloud_instance_id:, snapshot_id:) + # Get the detail of a snapshot. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param snapshot_id [String] PVM Instance snapshot id. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_snapshots_get(cloud_instance_id:, snapshot_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("snapshot_id must be provided") if snapshot_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_snapshots_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/snapshots/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(snapshot_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_snapshots_put(cloud_instance_id:, snapshot_id:, name: nil, description: nil) + # Update a PVM instance snapshot. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param snapshot_id [String] PVM Instance snapshot id. + # @param name [String] Name of the PVM instance snapshot. + # @param description [String] Description of the PVM instance snapshot. + # @return [nil] + def pcloud_cloudinstances_snapshots_put(cloud_instance_id:, snapshot_id:, name: nil, description: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("snapshot_id must be provided") if snapshot_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_snapshots_put") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "description" => description + } + + method_url = "/pcloud/v1/cloud-instances/%s/snapshots/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(snapshot_id)] + + request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + nil + end + + ## + # @!method pcloud_cloudinstances_snapshots_delete(cloud_instance_id:, snapshot_id:) + # Delete a PVM instance snapshot of a cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param snapshot_id [String] PVM Instance snapshot id. + # @return [nil] + def pcloud_cloudinstances_snapshots_delete(cloud_instance_id:, snapshot_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("snapshot_id must be provided") if snapshot_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_snapshots_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/snapshots/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(snapshot_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + ######################### + # pCloudStorageCapacity + ######################### + + ## + # @!method pcloud_storagecapacity_types_getall(cloud_instance_id:) + # Storage capacity for all available storage types in a region. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_storagecapacity_types_getall(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_storagecapacity_types_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/storage-capacity/storage-types" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_storagecapacity_types_get(cloud_instance_id:, storage_type_name:) + # Storage capacity for a storage type in a region. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param storage_type_name [String] Storage type name. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_storagecapacity_types_get(cloud_instance_id:, storage_type_name:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("storage_type_name must be provided") if storage_type_name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_storagecapacity_types_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/storage-capacity/storage-types/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(storage_type_name)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_storagecapacity_pools_getall(cloud_instance_id:) + # Storage capacity for all available storage pools in a region. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_storagecapacity_pools_getall(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_storagecapacity_pools_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/storage-capacity/storage-pools" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_storagecapacity_pools_get(cloud_instance_id:, storage_pool_name:) + # Storage capacity for a storage pool in a region. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param storage_pool_name [String] Storage pool name. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_storagecapacity_pools_get(cloud_instance_id:, storage_pool_name:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("storage_pool_name must be provided") if storage_pool_name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_storagecapacity_pools_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/storage-capacity/storage-pools/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(storage_pool_name)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + ######################### + # pCloudSystemPools + ######################### + + ## + # @!method pcloud_systempools_get(cloud_instance_id:) + # List of available system pools within a particular data center. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_systempools_get(cloud_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_systempools_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/system-pools" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + ######################### + # pCloudTasks + ######################### + + ## + # @!method pcloud_tasks_get(task_id:) + # Get a task. + # @param task_id [String] PCloud Task ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_tasks_get(task_id:) + raise ArgumentError.new("task_id must be provided") if task_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_tasks_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/tasks/%s" % [ERB::Util.url_encode(task_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_tasks_delete(task_id:) + # Delete a task. + # @param task_id [String] PCloud Task ID. + # @return [nil] + def pcloud_tasks_delete(task_id:) + raise ArgumentError.new("task_id must be provided") if task_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_tasks_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/tasks/%s" % [ERB::Util.url_encode(task_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + ######################### + # pCloudTenants + ######################### + + ## + # @!method pcloud_tenants_get(tenant_id:) + # Get a tenant's current state or information. + # @param tenant_id [String] Tenant ID of a pcloud tenant. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_tenants_get(tenant_id:) + raise ArgumentError.new("tenant_id must be provided") if tenant_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_tenants_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/tenants/%s" % [ERB::Util.url_encode(tenant_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_tenants_put(tenant_id:, icn: nil, peering_networks: nil) + # Update a tenant. + # @param tenant_id [String] Tenant ID of a pcloud tenant. + # @param icn [String] IBM Customer Number. + # @param peering_networks [Array[PeeringNetwork]] Peering Network Information (optional). + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_tenants_put(tenant_id:, icn: nil, peering_networks: nil) + raise ArgumentError.new("tenant_id must be provided") if tenant_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_tenants_put") + headers.merge!(sdk_headers) + + data = { + "icn" => icn, + "peeringNetworks" => peering_networks + } + + method_url = "/pcloud/v1/tenants/%s" % [ERB::Util.url_encode(tenant_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + ######################### + # pCloudTenantsSSHKeys + ######################### + + ## + # @!method pcloud_tenants_sshkeys_getall(tenant_id:) + # List a tenant's SSH Keys. + # @param tenant_id [String] Tenant ID of a pcloud tenant. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_tenants_sshkeys_getall(tenant_id:) + raise ArgumentError.new("tenant_id must be provided") if tenant_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_tenants_sshkeys_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/tenants/%s/sshkeys" % [ERB::Util.url_encode(tenant_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_tenants_sshkeys_post(tenant_id:, name:, ssh_key:, creation_date: nil) + # Add a new SSH key to the tenant. + # @param tenant_id [String] Tenant ID of a pcloud tenant. + # @param name [String] User defined name for the SSH key. + # @param ssh_key [String] SSH RSA key. + # @param creation_date [Time] Date of sshkey creation. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_tenants_sshkeys_post(tenant_id:, name:, ssh_key:, creation_date: nil) + raise ArgumentError.new("tenant_id must be provided") if tenant_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("ssh_key must be provided") if ssh_key.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_tenants_sshkeys_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "sshKey" => ssh_key, + "creationDate" => creation_date + } + + method_url = "/pcloud/v1/tenants/%s/sshkeys" % [ERB::Util.url_encode(tenant_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_tenants_sshkeys_get(tenant_id:, sshkey_name:) + # Get a tenant's SSH Key by name. + # @param tenant_id [String] Tenant ID of a pcloud tenant. + # @param sshkey_name [String] SSH key name for a pcloud tenant. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_tenants_sshkeys_get(tenant_id:, sshkey_name:) + raise ArgumentError.new("tenant_id must be provided") if tenant_id.nil? + + raise ArgumentError.new("sshkey_name must be provided") if sshkey_name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_tenants_sshkeys_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/tenants/%s/sshkeys/%s" % [ERB::Util.url_encode(tenant_id), ERB::Util.url_encode(sshkey_name)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_tenants_sshkeys_put(tenant_id:, sshkey_name:, name:, ssh_key:, creation_date: nil) + # Update an SSH Key. + # @param tenant_id [String] Tenant ID of a pcloud tenant. + # @param sshkey_name [String] SSH key name for a pcloud tenant. + # @param name [String] User defined name for the SSH key. + # @param ssh_key [String] SSH RSA key. + # @param creation_date [Time] Date of sshkey creation. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_tenants_sshkeys_put(tenant_id:, sshkey_name:, name:, ssh_key:, creation_date: nil) + raise ArgumentError.new("tenant_id must be provided") if tenant_id.nil? + + raise ArgumentError.new("sshkey_name must be provided") if sshkey_name.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("ssh_key must be provided") if ssh_key.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_tenants_sshkeys_put") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "sshKey" => ssh_key, + "creationDate" => creation_date + } + + method_url = "/pcloud/v1/tenants/%s/sshkeys/%s" % [ERB::Util.url_encode(tenant_id), ERB::Util.url_encode(sshkey_name)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_tenants_sshkeys_delete(tenant_id:, sshkey_name:) + # Delete a tenant's SSH key. + # @param tenant_id [String] Tenant ID of a pcloud tenant. + # @param sshkey_name [String] SSH key name for a pcloud tenant. + # @return [nil] + def pcloud_tenants_sshkeys_delete(tenant_id:, sshkey_name:) + raise ArgumentError.new("tenant_id must be provided") if tenant_id.nil? + + raise ArgumentError.new("sshkey_name must be provided") if sshkey_name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_tenants_sshkeys_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/tenants/%s/sshkeys/%s" % [ERB::Util.url_encode(tenant_id), ERB::Util.url_encode(sshkey_name)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + ######################### + # pCloudVolumes + ######################### + + ## + # @!method pcloud_cloudinstances_volumes_getall(cloud_instance_id:, affinity: nil) + # List all volumes for this cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param affinity [String] A pvmInstance (id or name), limits a volumes list response to only volumes that + # have affinity to the pvmInstance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_volumes_getall(cloud_instance_id:, affinity: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_volumes_getall") + headers.merge!(sdk_headers) + + params = { + "affinity" => affinity + } + + method_url = "/pcloud/v1/cloud-instances/%s/volumes" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_volumes_post(cloud_instance_id:, name:, size:, disk_type: nil, shareable: nil, affinity_policy: nil, affinity_volume: nil, affinity_pvm_instance: nil) + # Create a new data volume. + # All regions use Tier 1 (NVMe-based flash storage) or Tier 3 (SSD flash storage) + # storage types. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param name [String] Volume Name. + # @param size [Float] Volume Size (GB). + # @param disk_type [String] Type of disk, required if affinityPolicy is not provided, otherwise ignored. + # @param shareable [Boolean] Indicates if the volume is shareable between VMs. + # @param affinity_policy [String] Affinity policy for data volume being created; requires affinityPVMInstance or + # affinityVolume to be specified;. + # @param affinity_volume [String] Volume (ID or Name) to base volume affinity policy against; required if + # affinityPolicy is provided and affinityPVMInstance is not provided. + # @param 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. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_volumes_post(cloud_instance_id:, name:, size:, disk_type: nil, shareable: nil, affinity_policy: nil, affinity_volume: nil, affinity_pvm_instance: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("size must be provided") if size.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_volumes_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "size" => size, + "diskType" => disk_type, + "shareable" => shareable, + "affinityPolicy" => affinity_policy, + "affinityVolume" => affinity_volume, + "affinityPVMInstance" => affinity_pvm_instance + } + + method_url = "/pcloud/v1/cloud-instances/%s/volumes" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_volumes_clone_post(cloud_instance_id:, display_name:, volume_i_ds:) + # Create a volume clone for specified volumes (version 1 - depricated). + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param 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", ... + # @param volume_i_ds [Array[String]] List of volumes to be cloned. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_volumes_clone_post(cloud_instance_id:, display_name:, volume_i_ds:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("display_name must be provided") if display_name.nil? + + raise ArgumentError.new("volume_i_ds must be provided") if volume_i_ds.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_volumes_clone_post") + headers.merge!(sdk_headers) + + data = { + "displayName" => display_name, + "volumeIDs" => volume_i_ds + } + + method_url = "/pcloud/v1/cloud-instances/%s/volumes/clone" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_v2_volumes_clone_post(cloud_instance_id:, name:, volume_i_ds:) + # Create a volume clone for specified volumes (version 2). + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param 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", ... + # @param volume_i_ds [Array[String]] List of volumes to be cloned. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_v2_volumes_clone_post(cloud_instance_id:, name:, volume_i_ds:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("volume_i_ds must be provided") if volume_i_ds.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumes_clone_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "volumeIDs" => volume_i_ds + } + + method_url = "/pcloud/v2/cloud-instances/%s/volumes/clone" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_v2_volumes_clonetasks_get(cloud_instance_id:, clone_task_id:) + # Get the status of a volume clone request for the specified clone task ID. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param clone_task_id [String] Volumes Clone Task ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_v2_volumes_clonetasks_get(cloud_instance_id:, clone_task_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("clone_task_id must be provided") if clone_task_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumes_clonetasks_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v2/cloud-instances/%s/volumes/clone-tasks/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(clone_task_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_v2_volumesclone_getall(cloud_instance_id:, filter: nil) + # Get the list of volumes-clone request for a cloud instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param filter [String] volumes-clone filter to limit list items: + # prepare - includes status values (preparing, prepared) + # start - includes status values (starting, available) + # execute - includes status values (executing, available-rollback) + # cancel - includes status values (cancelling) + # completed - includes status values (completed) + # failed - includes status values (failed) + # cancelled - includes status values (cancelled) + # finalized - included status values (completed, failed, cancelled). + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_v2_volumesclone_getall(cloud_instance_id:, filter: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumesclone_getall") + headers.merge!(sdk_headers) + + params = { + "filter" => filter + } + + method_url = "/pcloud/v2/cloud-instances/%s/volumes-clone" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method pcloud_v2_volumesclone_post(cloud_instance_id:, name:, volume_i_ds:) + # Create a new volumes clone request and initiate the Prepare action. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param 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. + # @param volume_i_ds [Array[String]] List of volumes to be cloned. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_v2_volumesclone_post(cloud_instance_id:, name:, volume_i_ds:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("volume_i_ds must be provided") if volume_i_ds.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumesclone_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "volumeIDs" => volume_i_ds + } + + method_url = "/pcloud/v2/cloud-instances/%s/volumes-clone" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_v2_volumesclone_get(cloud_instance_id:, volumes_clone_id:) + # Get the details for a volumes-clone request. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone + # name. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_v2_volumesclone_get(cloud_instance_id:, volumes_clone_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("volumes_clone_id must be provided") if volumes_clone_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumesclone_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v2/cloud-instances/%s/volumes-clone/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(volumes_clone_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_v2_volumesclone_delete(cloud_instance_id:, volumes_clone_id:) + # Delete a volumes-clone request. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone + # name. + # @return [nil] + def pcloud_v2_volumesclone_delete(cloud_instance_id:, volumes_clone_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("volumes_clone_id must be provided") if volumes_clone_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumesclone_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v2/cloud-instances/%s/volumes-clone/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(volumes_clone_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + + ## + # @!method pcloud_v2_volumesclone_start_post(cloud_instance_id:, volumes_clone_id:, accept: nil) + # Initiate the Start action for a volume-clone request. The Start action starts + # the consistency group to initiate the flash copy. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone + # name. + # @param accept [String] The type of the response: *_/_* or application/json. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_v2_volumesclone_start_post(cloud_instance_id:, volumes_clone_id:, accept: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("volumes_clone_id must be provided") if volumes_clone_id.nil? + + headers = { + "Accept" => accept + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumesclone_start_post") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v2/cloud-instances/%s/volumes-clone/%s/start" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(volumes_clone_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_v2_volumesclone_execute_post(cloud_instance_id:, volumes_clone_id:, name:, rollback_prepare: nil) + # Initiate the Execute action for a volumes-clone request. The Execute action + # creates the cloned volumes using the volume snapshots. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone + # name. + # @param 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", ... + # @param 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. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_v2_volumesclone_execute_post(cloud_instance_id:, volumes_clone_id:, name:, rollback_prepare: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("volumes_clone_id must be provided") if volumes_clone_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumesclone_execute_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "rollbackPrepare" => rollback_prepare + } + + method_url = "/pcloud/v2/cloud-instances/%s/volumes-clone/%s/execute" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(volumes_clone_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_v2_volumesclone_cancel_post(cloud_instance_id:, volumes_clone_id:, force: nil) + # Cancel a volume-clone request, initiates the Cleanup action. The Cleanup action + # performs the cleanup of the preparatory clones and snapshot volumes. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param volumes_clone_id [String] Volumes Clone ID, can be identified by the volumes-clone id or the volumes-clone + # name. + # @param force [Boolean] default False, Cancel will only be allowed if the status is 'prepared', or + # 'available' True, Cancel will be allowed when the status is NOT completed, + # cancelling, cancelled, or failed. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_v2_volumesclone_cancel_post(cloud_instance_id:, volumes_clone_id:, force: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("volumes_clone_id must be provided") if volumes_clone_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumesclone_cancel_post") + headers.merge!(sdk_headers) + + data = { + "force" => force + } + + method_url = "/pcloud/v2/cloud-instances/%s/volumes-clone/%s/cancel" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(volumes_clone_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_volumes_get(cloud_instance_id:, volume_id:) + # Detailed information of a volume. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param volume_id [String] Volume ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_volumes_get(cloud_instance_id:, volume_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("volume_id must be provided") if volume_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_volumes_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/volumes/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(volume_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_volumes_put(cloud_instance_id:, volume_id:, name: nil, size: nil, shareable: nil, bootable: nil) + # Update a cloud instance volume. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param volume_id [String] Volume ID. + # @param name [String] Name. + # @param size [Float] New Volume size. + # @param shareable [Boolean] Indicates if the volume is shareable between VMs. + # @param bootable [Boolean] Indicates if the volume is boot capable. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_cloudinstances_volumes_put(cloud_instance_id:, volume_id:, name: nil, size: nil, shareable: nil, bootable: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("volume_id must be provided") if volume_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_volumes_put") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "size" => size, + "shareable" => shareable, + "bootable" => bootable + } + + method_url = "/pcloud/v1/cloud-instances/%s/volumes/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(volume_id)] + + response = request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_cloudinstances_volumes_delete(cloud_instance_id:, volume_id:) + # Delete a cloud instance volume. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param volume_id [String] Volume ID. + # @return [nil] + def pcloud_cloudinstances_volumes_delete(cloud_instance_id:, volume_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("volume_id must be provided") if volume_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_cloudinstances_volumes_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/volumes/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(volume_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + + ## + # @!method pcloud_v2_volumes_post(cloud_instance_id:, name:, size:, count: nil, shareable: nil, disk_type: nil, affinity_policy: nil, affinity_volume: nil, affinity_pvm_instance: nil) + # Create multiple data volumes from a single definition. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param name [String] Base name of the volume(s). + # @param size [Fixnum] Volume Size (GB). + # @param count [Fixnum] Number of volumes to create. + # @param shareable [Boolean] Indicates if the volume is shareable between VMs. + # @param disk_type [String] Type of Disk; required if affinityPolicy is not provided, otherwise ignored. + # @param affinity_policy [String] Affinity policy for data volume being created; requires affinityPVMInstance or + # affinityVolume to be specified;. + # @param affinity_volume [String] Volume (ID or Name) to base volume affinity policy against; required if + # affinityPolicy is provided and affinityPVMInstance is not provided. + # @param 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. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_v2_volumes_post(cloud_instance_id:, name:, size:, count: nil, shareable: nil, disk_type: nil, affinity_policy: nil, affinity_volume: nil, affinity_pvm_instance: nil) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("size must be provided") if size.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_v2_volumes_post") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "size" => size, + "count" => count, + "shareable" => shareable, + "diskType" => disk_type, + "affinityPolicy" => affinity_policy, + "affinityVolume" => affinity_volume, + "affinityPVMInstance" => affinity_pvm_instance + } + + method_url = "/pcloud/v2/cloud-instances/%s/volumes" % [ERB::Util.url_encode(cloud_instance_id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_volumes_getall(cloud_instance_id:, pvm_instance_id:) + # List all volumes attached to a PVM Instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_volumes_getall(cloud_instance_id:, pvm_instance_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_volumes_getall") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/volumes" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_volumes_get(cloud_instance_id:, pvm_instance_id:, volume_id:) + # Detailed information of a volume attached to a PVM Instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param volume_id [String] Volume ID. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def pcloud_pvminstances_volumes_get(cloud_instance_id:, pvm_instance_id:, volume_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("volume_id must be provided") if volume_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_volumes_get") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/volumes/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id), ERB::Util.url_encode(volume_id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method pcloud_pvminstances_volumes_put(cloud_instance_id:, pvm_instance_id:, volume_id:, delete_on_termination:) + # Update a volume attached to a PVMInstance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param volume_id [String] Volume ID. + # @param delete_on_termination [Boolean] Indicates if the volume should be deleted when the PVMInstance is terminated. + # @return [nil] + def pcloud_pvminstances_volumes_put(cloud_instance_id:, pvm_instance_id:, volume_id:, delete_on_termination:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("volume_id must be provided") if volume_id.nil? + + raise ArgumentError.new("delete_on_termination must be provided") if delete_on_termination.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_volumes_put") + headers.merge!(sdk_headers) + + data = { + "deleteOnTermination" => delete_on_termination + } + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/volumes/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id), ERB::Util.url_encode(volume_id)] + + request( + method: "PUT", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + nil + end + + ## + # @!method pcloud_pvminstances_volumes_post(cloud_instance_id:, pvm_instance_id:, volume_id:) + # Attach a volume to a PVM Instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param volume_id [String] Volume ID. + # @return [nil] + def pcloud_pvminstances_volumes_post(cloud_instance_id:, pvm_instance_id:, volume_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("volume_id must be provided") if volume_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_volumes_post") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/volumes/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id), ERB::Util.url_encode(volume_id)] + + request( + method: "POST", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + + ## + # @!method pcloud_pvminstances_volumes_delete(cloud_instance_id:, pvm_instance_id:, volume_id:) + # Detach a volume from a PVM Instance. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param volume_id [String] Volume ID. + # @return [nil] + def pcloud_pvminstances_volumes_delete(cloud_instance_id:, pvm_instance_id:, volume_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("volume_id must be provided") if volume_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_volumes_delete") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/volumes/%s" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id), ERB::Util.url_encode(volume_id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + nil + end + + ## + # @!method pcloud_pvminstances_volumes_setboot_put(cloud_instance_id:, pvm_instance_id:, volume_id:) + # Set the PVMInstance volume as the boot volume. + # @param cloud_instance_id [String] Cloud Instance ID of a PCloud Instance. + # @param pvm_instance_id [String] PCloud PVM Instance ID. + # @param volume_id [String] Volume ID. + # @return [nil] + def pcloud_pvminstances_volumes_setboot_put(cloud_instance_id:, pvm_instance_id:, volume_id:) + raise ArgumentError.new("cloud_instance_id must be provided") if cloud_instance_id.nil? + + raise ArgumentError.new("pvm_instance_id must be provided") if pvm_instance_id.nil? + + raise ArgumentError.new("volume_id must be provided") if volume_id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("power_cloud_api", "V1", "pcloud_pvminstances_volumes_setboot_put") + headers.merge!(sdk_headers) + + method_url = "/pcloud/v1/cloud-instances/%s/pvm-instances/%s/volumes/%s/setboot" % [ERB::Util.url_encode(cloud_instance_id), ERB::Util.url_encode(pvm_instance_id), ERB::Util.url_encode(volume_id)] + + request( + method: "PUT", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + end +end diff --git a/lib/ibm_cloud/resource_controller_v2.rb b/lib/ibm_cloud/resource_controller_v2.rb new file mode 100644 index 00000000..2f7c24ac --- /dev/null +++ b/lib/ibm_cloud/resource_controller_v2.rb @@ -0,0 +1,1052 @@ +# frozen_string_literal: true + +# (C) Copyright IBM Corp. 2021. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# IBM OpenAPI SDK Code Generator Version: 3.37.0-a85661cd-20210802-190136 +# +# Manage lifecycle of your Cloud resources using Resource Controller APIs. Resources are +# provisioned globally in an account scope. Supports asynchronous provisioning of +# resources. Enables consumption of a global resource through a Cloud Foundry space in any +# region. + +require "concurrent" +require "erb" +require "json" +require "ibm_cloud_sdk_core" +require_relative "./common.rb" + +module IBMCloud + ## + # The resource_controller V2 service. + class ResourceControllerV2 < IBMCloudSdkCore::BaseService + include Concurrent::Async + DEFAULT_SERVICE_NAME = "resource_controller" + DEFAULT_SERVICE_URL = "https://resource-controller.cloud.ibm.com" + ## + # @!method initialize(args) + # Construct a new client for the resource_controller service. + # + # @param args [Hash] The args to initialize with + # @option args service_url [String] The base service URL to use when contacting the service. + # The base service_url may differ between IBM Cloud regions. + # @option args authenticator [Object] The Authenticator instance to be configured for this service. + # @option args service_name [String] The name of the service to configure. Will be used as the key to load + # any external configuration, if applicable. + def initialize(args = {}) + @__async_initialized__ = false + defaults = {} + defaults[:service_url] = DEFAULT_SERVICE_URL + defaults[:service_name] = DEFAULT_SERVICE_NAME + defaults[:authenticator] = nil + user_service_url = args[:service_url] unless args[:service_url].nil? + args = defaults.merge(args) + super + @service_url = user_service_url unless user_service_url.nil? + end + + ######################### + # Resource Instances + ######################### + + ## + # @!method list_resource_instances(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, resource_plan_id: nil, type: nil, sub_type: nil, limit: nil, start: nil, state: nil, updated_from: nil, updated_to: nil) + # Get a list of all resource instances. + # View a list of all available resource instances. Resources is a broad term that + # could mean anything from a service instance to a virtual machine associated with + # the customer account. + # @param guid [String] The GUID of the instance. + # @param name [String] The human-readable name of the instance. + # @param resource_group_id [String] The ID of the resource group. + # @param resource_id [String] The unique ID of the offering. This value is provided by and stored in the global + # catalog. + # @param resource_plan_id [String] The unique ID of the plan associated with the offering. This value is provided by + # and stored in the global catalog. + # @param type [String] The type of the instance, for example, `service_instance`. + # @param sub_type [String] The sub-type of instance, for example, `kms`. + # @param limit [Fixnum] Limit on how many items should be returned. + # @param start [String] An optional token that indicates the beginning of the page of results to be + # returned. Any additional query parameters are ignored if a page token is present. + # If omitted, the first page of results is returned. This value is obtained from the + # 'next_url' field of the operation response. + # @param state [String] The state of the instance. If not specified, instances in state `active` and + # `provisioning` are returned. + # @param updated_from [String] Start date inclusive filter. + # @param updated_to [String] End date inclusive filter. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_resource_instances(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, resource_plan_id: nil, type: nil, sub_type: nil, limit: nil, start: nil, state: nil, updated_from: nil, updated_to: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_instances") + headers.merge!(sdk_headers) + + params = { + "guid" => guid, + "name" => name, + "resource_group_id" => resource_group_id, + "resource_id" => resource_id, + "resource_plan_id" => resource_plan_id, + "type" => type, + "sub_type" => sub_type, + "limit" => limit, + "start" => start, + "state" => state, + "updated_from" => updated_from, + "updated_to" => updated_to + } + + method_url = "/v2/resource_instances" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method create_resource_instance(name:, target:, resource_group:, resource_plan_id:, tags: nil, allow_cleanup: nil, parameters: nil, entity_lock: nil) + # Create (provision) a new resource instance. + # When you provision a service you get an instance of that service. An instance + # represents the resource with which you create, and additionally, represents a + # chargeable record of which billing can occur. + # @param name [String] The name of the instance. Must be 180 characters or less and cannot include any + # special characters other than `(space) - . _ :`. + # @param target [String] The deployment location where the instance should be hosted. + # @param resource_group [String] The ID of the resource group. + # @param resource_plan_id [String] The unique ID of the plan associated with the offering. This value is provided by + # and stored in the global catalog. + # @param tags [Array[String]] Tags that are attached to the instance after provisioning. These tags can be + # searched and managed through the Tagging API in IBM Cloud. + # @param allow_cleanup [Boolean] A boolean that dictates if the resource instance should be deleted (cleaned up) + # during the processing of a region instance delete call. + # @param parameters [Hash] Configuration options represented as key-value pairs that are passed through to + # the target resource brokers. + # @param entity_lock [Boolean] Indicates if the resource instance is locked for further update or delete + # operations. It does not affect actions performed on child resources like aliases, + # bindings or keys. False by default. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def create_resource_instance(name:, target:, resource_group:, resource_plan_id:, tags: nil, allow_cleanup: nil, parameters: nil, entity_lock: nil) + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("target must be provided") if target.nil? + + raise ArgumentError.new("resource_group must be provided") if resource_group.nil? + + raise ArgumentError.new("resource_plan_id must be provided") if resource_plan_id.nil? + + headers = { + "Entity-Lock" => entity_lock + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "create_resource_instance") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "target" => target, + "resource_group" => resource_group, + "resource_plan_id" => resource_plan_id, + "tags" => tags, + "allow_cleanup" => allow_cleanup, + "parameters" => parameters + } + + method_url = "/v2/resource_instances" + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method get_resource_instance(id:) + # Get a resource instance. + # Retrieve a resource instance by ID. Find more details on a particular instance, + # like when it was provisioned and who provisioned it. + # @param id [String] The ID of the instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def get_resource_instance(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "get_resource_instance") + headers.merge!(sdk_headers) + + method_url = "/v2/resource_instances/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method delete_resource_instance(id:, recursive: nil) + # Delete a resource instance. + # Delete a resource instance by ID. If the resource instance has any resource keys + # or aliases associated with it, use the `recursive=true parameter` to delete it. + # @param id [String] The ID of the instance. + # @param recursive [Boolean] Will delete resource bindings, keys and aliases associated with the instance. + # @return [nil] + def delete_resource_instance(id:, recursive: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "delete_resource_instance") + headers.merge!(sdk_headers) + + params = { + "recursive" => recursive + } + + method_url = "/v2/resource_instances/%s" % [ERB::Util.url_encode(id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + params: params, + accept_json: false + ) + nil + end + + ## + # @!method update_resource_instance(id:, name: nil, parameters: nil, resource_plan_id: nil, allow_cleanup: nil) + # Update a resource instance. + # You can use the ID to make updates to the resource instance, like changing the + # name or plan. + # @param id [String] The ID of the instance. + # @param name [String] The new name of the instance. Must be 180 characters or less and cannot include + # any special characters other than `(space) - . _ :`. + # @param parameters [Hash] The new configuration options for the instance. + # @param resource_plan_id [String] The unique ID of the plan associated with the offering. This value is provided by + # and stored in the global catalog. + # @param allow_cleanup [Boolean] A boolean that dictates if the resource instance should be deleted (cleaned up) + # during the processing of a region instance delete call. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def update_resource_instance(id:, name: nil, parameters: nil, resource_plan_id: nil, allow_cleanup: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "update_resource_instance") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "parameters" => parameters, + "resource_plan_id" => resource_plan_id, + "allow_cleanup" => allow_cleanup + } + + method_url = "/v2/resource_instances/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "PATCH", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method list_resource_aliases_for_instance(id:, limit: nil, start: nil) + # Get a list of all resource aliases for the instance. + # Retrieving a list of all resource aliases can help you find out who's using the + # resource instance. + # @param id [String] The ID of the instance. + # @param limit [Fixnum] Limit on how many items should be returned. + # @param start [String] An optional token that indicates the beginning of the page of results to be + # returned. Any additional query parameters are ignored if a page token is present. + # If omitted, the first page of results is returned. This value is obtained from the + # 'next_url' field of the operation response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_resource_aliases_for_instance(id:, limit: nil, start: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_aliases_for_instance") + headers.merge!(sdk_headers) + + params = { + "limit" => limit, + "start" => start + } + + method_url = "/v2/resource_instances/%s/resource_aliases" % [ERB::Util.url_encode(id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method list_resource_keys_for_instance(id:, limit: nil, start: nil) + # Get a list of all the resource keys for the instance. + # You may have many resource keys for one resource instance. For example, you may + # have a different resource key for each user or each role. + # @param id [String] The ID of the instance. + # @param limit [Fixnum] Limit on how many items should be returned. + # @param start [String] An optional token that indicates the beginning of the page of results to be + # returned. Any additional query parameters are ignored if a page token is present. + # If omitted, the first page of results is returned. This value is obtained from the + # 'next_url' field of the operation response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_resource_keys_for_instance(id:, limit: nil, start: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_keys_for_instance") + headers.merge!(sdk_headers) + + params = { + "limit" => limit, + "start" => start + } + + method_url = "/v2/resource_instances/%s/resource_keys" % [ERB::Util.url_encode(id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method lock_resource_instance(id:) + # Lock a resource instance. + # Locks a resource instance by ID. A locked instance can not be updated or deleted. + # It does not affect actions performed on child resources like aliases, bindings or + # keys. + # @param id [String] The ID of the instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def lock_resource_instance(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "lock_resource_instance") + headers.merge!(sdk_headers) + + method_url = "/v2/resource_instances/%s/lock" % [ERB::Util.url_encode(id)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method unlock_resource_instance(id:) + # Unlock a resource instance. + # Unlock a resource instance to update or delete it. Unlocking a resource instance + # does not affect child resources like aliases, bindings or keys. + # @param id [String] The ID of the instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def unlock_resource_instance(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "unlock_resource_instance") + headers.merge!(sdk_headers) + + method_url = "/v2/resource_instances/%s/lock" % [ERB::Util.url_encode(id)] + + response = request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + ######################### + # Resource Keys + ######################### + + ## + # @!method list_resource_keys(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, limit: nil, start: nil, updated_from: nil, updated_to: nil) + # Get a list of all of the resource keys. + # View all of the resource keys that exist for all of your resource instances. + # @param guid [String] The GUID of the key. + # @param name [String] The human-readable name of the key. + # @param resource_group_id [String] The ID of the resource group. + # @param resource_id [String] The unique ID of the offering. This value is provided by and stored in the global + # catalog. + # @param limit [Fixnum] Limit on how many items should be returned. + # @param start [String] An optional token that indicates the beginning of the page of results to be + # returned. Any additional query parameters are ignored if a page token is present. + # If omitted, the first page of results is returned. This value is obtained from the + # 'next_url' field of the operation response. + # @param updated_from [String] Start date inclusive filter. + # @param updated_to [String] End date inclusive filter. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_resource_keys(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, limit: nil, start: nil, updated_from: nil, updated_to: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_keys") + headers.merge!(sdk_headers) + + params = { + "guid" => guid, + "name" => name, + "resource_group_id" => resource_group_id, + "resource_id" => resource_id, + "limit" => limit, + "start" => start, + "updated_from" => updated_from, + "updated_to" => updated_to + } + + method_url = "/v2/resource_keys" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method create_resource_key(name:, source:, parameters: nil, role: nil) + # Create a new resource key. + # A resource key is a saved credential you can use to authenticate with a resource + # instance. + # @param name [String] The name of the key. + # @param source [String] The ID of resource instance or alias. + # @param parameters [ResourceKeyPostParameters] Configuration options represented as key-value pairs. Service defined options are + # passed through to the target resource brokers, whereas platform defined options + # are not. + # @param role [String] The role name or it's CRN. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def create_resource_key(name:, source:, parameters: nil, role: nil) + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("source must be provided") if source.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "create_resource_key") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "source" => source, + "parameters" => parameters, + "role" => role + } + + method_url = "/v2/resource_keys" + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method get_resource_key(id:) + # Get resource key by ID. + # View a resource key and all of its details, like the credentials for the key and + # who created it. + # @param id [String] The ID of the key. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def get_resource_key(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "get_resource_key") + headers.merge!(sdk_headers) + + method_url = "/v2/resource_keys/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method delete_resource_key(id:) + # Delete a resource key by ID. + # Deleting a resource key does not affect any resource instance or resource alias + # associated with the key. + # @param id [String] The ID of the key. + # @return [nil] + def delete_resource_key(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "delete_resource_key") + headers.merge!(sdk_headers) + + method_url = "/v2/resource_keys/%s" % [ERB::Util.url_encode(id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + + ## + # @!method update_resource_key(id:, name:) + # Update a resource key. + # Use the resource key ID to update the name of the resource key. + # @param id [String] The ID of the key. + # @param name [String] The new name of the key. Must be 180 characters or less and cannot include any + # special characters other than `(space) - . _ :`. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def update_resource_key(id:, name:) + raise ArgumentError.new("id must be provided") if id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "update_resource_key") + headers.merge!(sdk_headers) + + data = { + "name" => name + } + + method_url = "/v2/resource_keys/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "PATCH", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + ######################### + # Resource Bindings + ######################### + + ## + # @!method list_resource_bindings(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, region_binding_id: nil, limit: nil, start: nil, updated_from: nil, updated_to: nil) + # Get a list of all resource bindings. + # View all of the resource bindings that exist for all of your resource aliases. + # @param guid [String] The GUID of the binding. + # @param name [String] The human-readable name of the binding. + # @param resource_group_id [String] The ID of the resource group. + # @param resource_id [String] The unique ID of the offering (service name). This value is provided by and stored + # in the global catalog. + # @param region_binding_id [String] The ID of the binding in the target environment. For example, `service_binding_id` + # in a given IBM Cloud environment. + # @param limit [Fixnum] Limit on how many items should be returned. + # @param start [String] An optional token that indicates the beginning of the page of results to be + # returned. Any additional query parameters are ignored if a page token is present. + # If omitted, the first page of results is returned. This value is obtained from the + # 'next_url' field of the operation response. + # @param updated_from [String] Start date inclusive filter. + # @param updated_to [String] End date inclusive filter. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_resource_bindings(guid: nil, name: nil, resource_group_id: nil, resource_id: nil, region_binding_id: nil, limit: nil, start: nil, updated_from: nil, updated_to: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_bindings") + headers.merge!(sdk_headers) + + params = { + "guid" => guid, + "name" => name, + "resource_group_id" => resource_group_id, + "resource_id" => resource_id, + "region_binding_id" => region_binding_id, + "limit" => limit, + "start" => start, + "updated_from" => updated_from, + "updated_to" => updated_to + } + + method_url = "/v2/resource_bindings" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method create_resource_binding(source:, target:, name: nil, parameters: nil, role: nil) + # Create a new resource binding. + # A resource binding connects credentials to a resource alias. The credentials are + # in the form of a resource key. + # @param source [String] The ID of resource alias. + # @param target [String] The CRN of application to bind to in a specific environment, for example, Dallas + # YP, CFEE instance. + # @param name [String] The name of the binding. Must be 180 characters or less and cannot include any + # special characters other than `(space) - . _ :`. + # @param parameters [ResourceBindingPostParameters] Configuration options represented as key-value pairs. Service defined options are + # passed through to the target resource brokers, whereas platform defined options + # are not. + # @param role [String] The role name or it's CRN. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def create_resource_binding(source:, target:, name: nil, parameters: nil, role: nil) + raise ArgumentError.new("source must be provided") if source.nil? + + raise ArgumentError.new("target must be provided") if target.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "create_resource_binding") + headers.merge!(sdk_headers) + + data = { + "source" => source, + "target" => target, + "name" => name, + "parameters" => parameters, + "role" => role + } + + method_url = "/v2/resource_bindings" + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method get_resource_binding(id:) + # Get a resource binding. + # View a resource binding and all of its details, like who created it, the + # credential, and the resource alias that the binding is associated with. + # @param id [String] The ID of the binding. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def get_resource_binding(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "get_resource_binding") + headers.merge!(sdk_headers) + + method_url = "/v2/resource_bindings/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method delete_resource_binding(id:) + # Delete a resource binding. + # Deleting a resource binding does not affect the resource alias that the binding is + # associated with. + # @param id [String] The ID of the binding. + # @return [nil] + def delete_resource_binding(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "delete_resource_binding") + headers.merge!(sdk_headers) + + method_url = "/v2/resource_bindings/%s" % [ERB::Util.url_encode(id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + + ## + # @!method update_resource_binding(id:, name:) + # Update a resource binding. + # Use the resource binding ID to update the name of the resource binding. + # @param id [String] The ID of the binding. + # @param name [String] The new name of the binding. Must be 180 characters or less and cannot include any + # special characters other than `(space) - . _ :`. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def update_resource_binding(id:, name:) + raise ArgumentError.new("id must be provided") if id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "update_resource_binding") + headers.merge!(sdk_headers) + + data = { + "name" => name + } + + method_url = "/v2/resource_bindings/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "PATCH", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + ######################### + # Resource Aliases + ######################### + + ## + # @!method list_resource_aliases(guid: nil, name: nil, resource_instance_id: nil, region_instance_id: nil, resource_id: nil, resource_group_id: nil, limit: nil, start: nil, updated_from: nil, updated_to: nil) + # Get a list of all resource aliases. + # View all of the resource aliases that exist for every resource instance. + # @param guid [String] The GUID of the alias. + # @param name [String] The human-readable name of the alias. + # @param resource_instance_id [String] The ID of the resource instance. + # @param region_instance_id [String] The ID of the instance in the target environment. For example, + # `service_instance_id` in a given IBM Cloud environment. + # @param resource_id [String] The unique ID of the offering (service name). This value is provided by and stored + # in the global catalog. + # @param resource_group_id [String] The ID of the resource group. + # @param limit [Fixnum] Limit on how many items should be returned. + # @param start [String] An optional token that indicates the beginning of the page of results to be + # returned. Any additional query parameters are ignored if a page token is present. + # If omitted, the first page of results is returned. This value is obtained from the + # 'next_url' field of the operation response. + # @param updated_from [String] Start date inclusive filter. + # @param updated_to [String] End date inclusive filter. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_resource_aliases(guid: nil, name: nil, resource_instance_id: nil, region_instance_id: nil, resource_id: nil, resource_group_id: nil, limit: nil, start: nil, updated_from: nil, updated_to: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_aliases") + headers.merge!(sdk_headers) + + params = { + "guid" => guid, + "name" => name, + "resource_instance_id" => resource_instance_id, + "region_instance_id" => region_instance_id, + "resource_id" => resource_id, + "resource_group_id" => resource_group_id, + "limit" => limit, + "start" => start, + "updated_from" => updated_from, + "updated_to" => updated_to + } + + method_url = "/v2/resource_aliases" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method create_resource_alias(name:, source:, target:) + # Create a new resource alias. + # Alias a resource instance into a targeted environment's (name)space. + # @param name [String] The name of the alias. Must be 180 characters or less and cannot include any + # special characters other than `(space) - . _ :`. + # @param source [String] The ID of resource instance. + # @param target [String] The CRN of target name(space) in a specific environment, for example, space in + # Dallas YP, CFEE instance etc. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def create_resource_alias(name:, source:, target:) + raise ArgumentError.new("name must be provided") if name.nil? + + raise ArgumentError.new("source must be provided") if source.nil? + + raise ArgumentError.new("target must be provided") if target.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "create_resource_alias") + headers.merge!(sdk_headers) + + data = { + "name" => name, + "source" => source, + "target" => target + } + + method_url = "/v2/resource_aliases" + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method get_resource_alias(id:) + # Get a resource alias. + # View a resource alias and all of its details, like who created it and the resource + # instance that it's associated with. + # @param id [String] The ID of the alias. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def get_resource_alias(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "get_resource_alias") + headers.merge!(sdk_headers) + + method_url = "/v2/resource_aliases/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + accept_json: true + ) + response + end + + ## + # @!method delete_resource_alias(id:) + # Delete a resource alias. + # If the resource alias has any resource keys or bindings associated with it, you + # must delete those child resources before deleting the resource alias. + # @param id [String] The ID of the alias. + # @return [nil] + def delete_resource_alias(id:) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "delete_resource_alias") + headers.merge!(sdk_headers) + + method_url = "/v2/resource_aliases/%s" % [ERB::Util.url_encode(id)] + + request( + method: "DELETE", + url: method_url, + headers: headers, + accept_json: false + ) + nil + end + + ## + # @!method update_resource_alias(id:, name:) + # Update a resource alias. + # Use the resource alias ID to update the name of the resource alias. + # @param id [String] The ID of the alias. + # @param name [String] The new name of the alias. Must be 180 characters or less and cannot include any + # special characters other than `(space) - . _ :`. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def update_resource_alias(id:, name:) + raise ArgumentError.new("id must be provided") if id.nil? + + raise ArgumentError.new("name must be provided") if name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "update_resource_alias") + headers.merge!(sdk_headers) + + data = { + "name" => name + } + + method_url = "/v2/resource_aliases/%s" % [ERB::Util.url_encode(id)] + + response = request( + method: "PATCH", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + + ## + # @!method list_resource_bindings_for_alias(id:, limit: nil, start: nil) + # Get a list of all resource bindings for the alias. + # View all of the resource bindings associated with a specific resource alias. + # @param id [String] The ID of the alias. + # @param limit [Fixnum] Limit on how many items should be returned. + # @param start [String] An optional token that indicates the beginning of the page of results to be + # returned. Any additional query parameters are ignored if a page token is present. + # If omitted, the first page of results is returned. This value is obtained from the + # 'next_url' field of the operation response. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_resource_bindings_for_alias(id:, limit: nil, start: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_resource_bindings_for_alias") + headers.merge!(sdk_headers) + + params = { + "limit" => limit, + "start" => start + } + + method_url = "/v2/resource_aliases/%s/resource_bindings" % [ERB::Util.url_encode(id)] + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + ######################### + # Resource Reclamations + ######################### + + ## + # @!method list_reclamations(account_id: nil, resource_instance_id: nil) + # Get a list of all reclamations. + # View all of the resource reclamations that exist for every resource instance. + # @param account_id [String] An alpha-numeric value identifying the account ID. + # @param resource_instance_id [String] The ID of the resource instance. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def list_reclamations(account_id: nil, resource_instance_id: nil) + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "list_reclamations") + headers.merge!(sdk_headers) + + params = { + "account_id" => account_id, + "resource_instance_id" => resource_instance_id + } + + method_url = "/v1/reclamations" + + response = request( + method: "GET", + url: method_url, + headers: headers, + params: params, + accept_json: true + ) + response + end + + ## + # @!method run_reclamation_action(id:, action_name:, request_by: nil, comment: nil) + # Perform a reclamation action. + # Reclaim a resource instance so that it can no longer be used, or restore the + # resource instance so that it's usable again. + # @param id [String] The ID associated with the reclamation. + # @param action_name [String] The reclamation action name. Specify `reclaim` to delete a resource, or `restore` + # to restore a resource. + # @param request_by [String] The request initiator, if different from the request token. + # @param comment [String] A comment to describe the action. + # @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response. + def run_reclamation_action(id:, action_name:, request_by: nil, comment: nil) + raise ArgumentError.new("id must be provided") if id.nil? + + raise ArgumentError.new("action_name must be provided") if action_name.nil? + + headers = { + } + sdk_headers = Common.new.get_sdk_headers("resource_controller", "V2", "run_reclamation_action") + headers.merge!(sdk_headers) + + data = { + "request_by" => request_by, + "comment" => comment + } + + method_url = "/v1/reclamations/%s/actions/%s" % [ERB::Util.url_encode(id), ERB::Util.url_encode(action_name)] + + response = request( + method: "POST", + url: method_url, + headers: headers, + json: data, + accept_json: true + ) + response + end + end +end diff --git a/lib/ibm_cloud/version.rb b/lib/ibm_cloud/version.rb index 7c1b1779..9c45df06 100644 --- a/lib/ibm_cloud/version.rb +++ b/lib/ibm_cloud/version.rb @@ -1,3 +1,3 @@ -module IbmCloud +module IBMCloud VERSION = "0.1.0" end