eryph-compute 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +47 -0
- data/LICENSE +21 -0
- data/README.md +144 -0
- data/eryph-clientruntime.gemspec +42 -0
- data/eryph-compute.gemspec +44 -0
- data/lib/eryph/clientruntime/client_credentials_lookup.rb +295 -0
- data/lib/eryph/clientruntime/config_store.rb +206 -0
- data/lib/eryph/clientruntime/config_stores_reader.rb +211 -0
- data/lib/eryph/clientruntime/endpoint_lookup.rb +226 -0
- data/lib/eryph/clientruntime/environment.rb +440 -0
- data/lib/eryph/clientruntime/local_identity_provider_info.rb +153 -0
- data/lib/eryph/clientruntime/token_provider.rb +275 -0
- data/lib/eryph/clientruntime/version.rb +6 -0
- data/lib/eryph/clientruntime.rb +79 -0
- data/lib/eryph/compute/client.rb +442 -0
- data/lib/eryph/compute/generated/Gemfile +9 -0
- data/lib/eryph/compute/generated/README.md +206 -0
- data/lib/eryph/compute/generated/Rakefile +10 -0
- data/lib/eryph/compute/generated/compute_client.gemspec +41 -0
- data/lib/eryph/compute/generated/docs/ApiVersion.md +20 -0
- data/lib/eryph/compute/generated/docs/ApiVersionResponse.md +18 -0
- data/lib/eryph/compute/generated/docs/Catlet.md +32 -0
- data/lib/eryph/compute/generated/docs/CatletConfigOperationResult.md +18 -0
- data/lib/eryph/compute/generated/docs/CatletConfigValidationResult.md +20 -0
- data/lib/eryph/compute/generated/docs/CatletConfiguration.md +18 -0
- data/lib/eryph/compute/generated/docs/CatletDrive.md +20 -0
- data/lib/eryph/compute/generated/docs/CatletDriveType.md +15 -0
- data/lib/eryph/compute/generated/docs/CatletList.md +18 -0
- data/lib/eryph/compute/generated/docs/CatletNetwork.md +30 -0
- data/lib/eryph/compute/generated/docs/CatletNetworkAdapter.md +20 -0
- data/lib/eryph/compute/generated/docs/CatletStatus.md +15 -0
- data/lib/eryph/compute/generated/docs/CatletStopMode.md +15 -0
- data/lib/eryph/compute/generated/docs/CatletsApi.md +863 -0
- data/lib/eryph/compute/generated/docs/DiskStatus.md +15 -0
- data/lib/eryph/compute/generated/docs/ExpandCatletConfigRequestBody.md +22 -0
- data/lib/eryph/compute/generated/docs/ExpandNewCatletConfigRequest.md +22 -0
- data/lib/eryph/compute/generated/docs/FloatingNetworkPort.md +26 -0
- data/lib/eryph/compute/generated/docs/Gene.md +30 -0
- data/lib/eryph/compute/generated/docs/GeneList.md +18 -0
- data/lib/eryph/compute/generated/docs/GeneType.md +15 -0
- data/lib/eryph/compute/generated/docs/GeneWithUsage.md +34 -0
- data/lib/eryph/compute/generated/docs/GenesApi.md +281 -0
- data/lib/eryph/compute/generated/docs/NewCatletRequest.md +20 -0
- data/lib/eryph/compute/generated/docs/NewProjectMemberBody.md +22 -0
- data/lib/eryph/compute/generated/docs/NewProjectRequest.md +20 -0
- data/lib/eryph/compute/generated/docs/NewVirtualDiskRequest.md +30 -0
- data/lib/eryph/compute/generated/docs/Operation.md +32 -0
- data/lib/eryph/compute/generated/docs/OperationList.md +18 -0
- data/lib/eryph/compute/generated/docs/OperationLogEntry.md +24 -0
- data/lib/eryph/compute/generated/docs/OperationResource.md +22 -0
- data/lib/eryph/compute/generated/docs/OperationResult.md +18 -0
- data/lib/eryph/compute/generated/docs/OperationStatus.md +15 -0
- data/lib/eryph/compute/generated/docs/OperationTask.md +30 -0
- data/lib/eryph/compute/generated/docs/OperationTaskReference.md +22 -0
- data/lib/eryph/compute/generated/docs/OperationTaskStatus.md +15 -0
- data/lib/eryph/compute/generated/docs/OperationsApi.md +157 -0
- data/lib/eryph/compute/generated/docs/PopulateCatletConfigVariablesRequest.md +20 -0
- data/lib/eryph/compute/generated/docs/ProblemDetails.md +26 -0
- data/lib/eryph/compute/generated/docs/Project.md +22 -0
- data/lib/eryph/compute/generated/docs/ProjectList.md +18 -0
- data/lib/eryph/compute/generated/docs/ProjectMemberRole.md +26 -0
- data/lib/eryph/compute/generated/docs/ProjectMemberRoleList.md +18 -0
- data/lib/eryph/compute/generated/docs/ProjectMembersApi.md +293 -0
- data/lib/eryph/compute/generated/docs/ProjectsApi.md +286 -0
- data/lib/eryph/compute/generated/docs/ResourceType.md +15 -0
- data/lib/eryph/compute/generated/docs/StopCatletRequestBody.md +18 -0
- data/lib/eryph/compute/generated/docs/TaskReferenceType.md +15 -0
- data/lib/eryph/compute/generated/docs/UpdateCatletRequestBody.md +20 -0
- data/lib/eryph/compute/generated/docs/UpdateProjectNetworksRequestBody.md +20 -0
- data/lib/eryph/compute/generated/docs/ValidateConfigRequest.md +18 -0
- data/lib/eryph/compute/generated/docs/ValidationIssue.md +20 -0
- data/lib/eryph/compute/generated/docs/VersionApi.md +69 -0
- data/lib/eryph/compute/generated/docs/VirtualDisk.md +42 -0
- data/lib/eryph/compute/generated/docs/VirtualDiskAttachedCatlet.md +20 -0
- data/lib/eryph/compute/generated/docs/VirtualDiskGeneInfo.md +22 -0
- data/lib/eryph/compute/generated/docs/VirtualDiskList.md +18 -0
- data/lib/eryph/compute/generated/docs/VirtualDisksApi.md +291 -0
- data/lib/eryph/compute/generated/docs/VirtualNetwork.md +28 -0
- data/lib/eryph/compute/generated/docs/VirtualNetworkConfiguration.md +18 -0
- data/lib/eryph/compute/generated/docs/VirtualNetworkList.md +18 -0
- data/lib/eryph/compute/generated/docs/VirtualNetworksApi.md +291 -0
- data/lib/eryph/compute/generated/git_push.sh +57 -0
- data/lib/eryph/compute/generated/lib/compute_client/api/catlets_api.rb +812 -0
- data/lib/eryph/compute/generated/lib/compute_client/api/genes_api.rb +262 -0
- data/lib/eryph/compute/generated/lib/compute_client/api/operations_api.rb +154 -0
- data/lib/eryph/compute/generated/lib/compute_client/api/project_members_api.rb +297 -0
- data/lib/eryph/compute/generated/lib/compute_client/api/projects_api.rb +269 -0
- data/lib/eryph/compute/generated/lib/compute_client/api/version_api.rb +79 -0
- data/lib/eryph/compute/generated/lib/compute_client/api/virtual_disks_api.rb +272 -0
- data/lib/eryph/compute/generated/lib/compute_client/api/virtual_networks_api.rb +282 -0
- data/lib/eryph/compute/generated/lib/compute_client/api_client.rb +437 -0
- data/lib/eryph/compute/generated/lib/compute_client/api_error.rb +58 -0
- data/lib/eryph/compute/generated/lib/compute_client/configuration.rb +392 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/api_version.rb +263 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/api_version_response.rb +237 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet.rb +400 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_config_operation_result.rb +234 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_config_validation_result.rb +251 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_configuration.rb +223 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_drive.rb +270 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_drive_type.rb +43 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_list.rb +239 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_network.rb +318 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_network_adapter.rb +247 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_status.rb +43 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/catlet_stop_mode.rb +41 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/disk_status.rb +40 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/expand_catlet_config_request_body.rb +243 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/expand_new_catlet_config_request.rb +243 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/floating_network_port.rb +313 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/gene.rb +415 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/gene_list.rb +239 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/gene_type.rb +41 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/gene_with_usage.rb +439 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/new_catlet_request.rb +233 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/new_project_member_body.rb +273 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/new_project_request.rb +247 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/new_virtual_disk_request.rb +345 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/operation.rb +352 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/operation_list.rb +239 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/operation_log_entry.rb +299 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/operation_resource.rb +311 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/operation_result.rb +242 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/operation_status.rb +42 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/operation_task.rb +366 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/operation_task_reference.rb +311 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/operation_task_status.rb +42 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/populate_catlet_config_variables_request.rb +233 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/problem_details.rb +261 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/project.rb +289 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/project_list.rb +239 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/project_member_role.rb +341 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/project_member_role_list.rb +239 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/resource_type.rb +42 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/stop_catlet_request_body.rb +259 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/task_reference_type.rb +40 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/update_catlet_request_body.rb +233 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/update_project_networks_request_body.rb +233 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/validate_config_request.rb +223 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/validation_issue.rb +249 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/virtual_disk.rb +479 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/virtual_disk_attached_catlet.rb +285 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/virtual_disk_gene_info.rb +289 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/virtual_disk_list.rb +239 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/virtual_network.rb +351 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/virtual_network_configuration.rb +223 -0
- data/lib/eryph/compute/generated/lib/compute_client/models/virtual_network_list.rb +239 -0
- data/lib/eryph/compute/generated/lib/compute_client/version.rb +15 -0
- data/lib/eryph/compute/generated/lib/compute_client.rb +101 -0
- data/lib/eryph/compute/generated/spec/api/catlets_api_spec.rb +182 -0
- data/lib/eryph/compute/generated/spec/api/genes_api_spec.rb +81 -0
- data/lib/eryph/compute/generated/spec/api/operations_api_spec.rb +62 -0
- data/lib/eryph/compute/generated/spec/api/project_members_api_spec.rb +86 -0
- data/lib/eryph/compute/generated/spec/api/projects_api_spec.rb +82 -0
- data/lib/eryph/compute/generated/spec/api/version_api_spec.rb +46 -0
- data/lib/eryph/compute/generated/spec/api/virtual_disks_api_spec.rb +83 -0
- data/lib/eryph/compute/generated/spec/api/virtual_networks_api_spec.rb +84 -0
- data/lib/eryph/compute/generated/spec/models/api_version_response_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/api_version_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/catlet_config_operation_result_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/catlet_config_validation_result_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/catlet_configuration_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/catlet_drive_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/catlet_drive_type_spec.rb +30 -0
- data/lib/eryph/compute/generated/spec/models/catlet_list_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/catlet_network_adapter_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/catlet_network_spec.rb +72 -0
- data/lib/eryph/compute/generated/spec/models/catlet_spec.rb +78 -0
- data/lib/eryph/compute/generated/spec/models/catlet_status_spec.rb +30 -0
- data/lib/eryph/compute/generated/spec/models/catlet_stop_mode_spec.rb +30 -0
- data/lib/eryph/compute/generated/spec/models/disk_status_spec.rb +30 -0
- data/lib/eryph/compute/generated/spec/models/expand_catlet_config_request_body_spec.rb +48 -0
- data/lib/eryph/compute/generated/spec/models/expand_new_catlet_config_request_spec.rb +48 -0
- data/lib/eryph/compute/generated/spec/models/floating_network_port_spec.rb +60 -0
- data/lib/eryph/compute/generated/spec/models/gene_list_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/gene_spec.rb +72 -0
- data/lib/eryph/compute/generated/spec/models/gene_type_spec.rb +30 -0
- data/lib/eryph/compute/generated/spec/models/gene_with_usage_spec.rb +84 -0
- data/lib/eryph/compute/generated/spec/models/new_catlet_request_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/new_project_member_body_spec.rb +48 -0
- data/lib/eryph/compute/generated/spec/models/new_project_request_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/new_virtual_disk_request_spec.rb +72 -0
- data/lib/eryph/compute/generated/spec/models/operation_list_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/operation_log_entry_spec.rb +54 -0
- data/lib/eryph/compute/generated/spec/models/operation_resource_spec.rb +48 -0
- data/lib/eryph/compute/generated/spec/models/operation_result_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/operation_spec.rb +78 -0
- data/lib/eryph/compute/generated/spec/models/operation_status_spec.rb +30 -0
- data/lib/eryph/compute/generated/spec/models/operation_task_reference_spec.rb +48 -0
- data/lib/eryph/compute/generated/spec/models/operation_task_spec.rb +72 -0
- data/lib/eryph/compute/generated/spec/models/operation_task_status_spec.rb +30 -0
- data/lib/eryph/compute/generated/spec/models/populate_catlet_config_variables_request_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/problem_details_spec.rb +60 -0
- data/lib/eryph/compute/generated/spec/models/project_list_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/project_member_role_list_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/project_member_role_spec.rb +60 -0
- data/lib/eryph/compute/generated/spec/models/project_spec.rb +48 -0
- data/lib/eryph/compute/generated/spec/models/resource_type_spec.rb +30 -0
- data/lib/eryph/compute/generated/spec/models/stop_catlet_request_body_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/task_reference_type_spec.rb +30 -0
- data/lib/eryph/compute/generated/spec/models/update_catlet_request_body_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/update_project_networks_request_body_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/validate_config_request_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/validation_issue_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/virtual_disk_attached_catlet_spec.rb +42 -0
- data/lib/eryph/compute/generated/spec/models/virtual_disk_gene_info_spec.rb +48 -0
- data/lib/eryph/compute/generated/spec/models/virtual_disk_list_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/virtual_disk_spec.rb +108 -0
- data/lib/eryph/compute/generated/spec/models/virtual_network_configuration_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/virtual_network_list_spec.rb +36 -0
- data/lib/eryph/compute/generated/spec/models/virtual_network_spec.rb +66 -0
- data/lib/eryph/compute/generated/spec/spec_helper.rb +111 -0
- data/lib/eryph/compute/generated.rb +137 -0
- data/lib/eryph/compute/operation_result.rb +255 -0
- data/lib/eryph/compute/operation_tracker.rb +247 -0
- data/lib/eryph/compute/problem_details_error.rb +139 -0
- data/lib/eryph/compute/version.rb +6 -0
- data/lib/eryph/compute.rb +40 -0
- data/lib/eryph/version.rb +4 -0
- data/lib/eryph.rb +68 -0
- metadata +329 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
# ComputeClient::OperationTask
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **parent_task_id** | **String** | | [optional] |
|
9
|
+
| **name** | **String** | | |
|
10
|
+
| **display_name** | **String** | | [optional] |
|
11
|
+
| **progress** | **Integer** | | |
|
12
|
+
| **status** | [**OperationTaskStatus**](OperationTaskStatus.md) | | |
|
13
|
+
| **reference** | [**OperationTaskReference**](OperationTaskReference.md) | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'compute_client'
|
19
|
+
|
20
|
+
instance = ComputeClient::OperationTask.new(
|
21
|
+
id: null,
|
22
|
+
parent_task_id: null,
|
23
|
+
name: null,
|
24
|
+
display_name: null,
|
25
|
+
progress: null,
|
26
|
+
status: null,
|
27
|
+
reference: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# ComputeClient::OperationTaskReference
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **type** | [**TaskReferenceType**](TaskReferenceType.md) | | |
|
9
|
+
| **project_name** | **String** | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'compute_client'
|
15
|
+
|
16
|
+
instance = ComputeClient::OperationTaskReference.new(
|
17
|
+
id: null,
|
18
|
+
type: null,
|
19
|
+
project_name: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# ComputeClient::OperationTaskStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'compute_client'
|
12
|
+
|
13
|
+
instance = ComputeClient::OperationTaskStatus.new()
|
14
|
+
```
|
15
|
+
|
@@ -0,0 +1,157 @@
|
|
1
|
+
# ComputeClient::OperationsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost:8000/compute*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**operations_get**](OperationsApi.md#operations_get) | **GET** /v1/operations/{id} | Get an operation |
|
8
|
+
| [**operations_list**](OperationsApi.md#operations_list) | **GET** /v1/operations | List all operations |
|
9
|
+
|
10
|
+
|
11
|
+
## operations_get
|
12
|
+
|
13
|
+
> <Operation> operations_get(id, opts)
|
14
|
+
|
15
|
+
Get an operation
|
16
|
+
|
17
|
+
Get an operation
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'compute_client'
|
24
|
+
# setup authorization
|
25
|
+
ComputeClient.configure do |config|
|
26
|
+
# Configure OAuth2 access token for authorization: oauth2
|
27
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = ComputeClient::OperationsApi.new
|
31
|
+
id = 'id_example' # String |
|
32
|
+
opts = {
|
33
|
+
log_time_stamp: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filters returned log entries by the requested timestamp
|
34
|
+
expand: 'expand_example' # String | Expand details. Supported details are: logs,resources,projects,tasks
|
35
|
+
}
|
36
|
+
|
37
|
+
begin
|
38
|
+
# Get an operation
|
39
|
+
result = api_instance.operations_get(id, opts)
|
40
|
+
p result
|
41
|
+
rescue ComputeClient::ApiError => e
|
42
|
+
puts "Error when calling OperationsApi->operations_get: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the operations_get_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
49
|
+
|
50
|
+
> <Array(<Operation>, Integer, Hash)> operations_get_with_http_info(id, opts)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Get an operation
|
55
|
+
data, status_code, headers = api_instance.operations_get_with_http_info(id, opts)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <Operation>
|
59
|
+
rescue ComputeClient::ApiError => e
|
60
|
+
puts "Error when calling OperationsApi->operations_get_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **id** | **String** | | |
|
69
|
+
| **log_time_stamp** | **Time** | Filters returned log entries by the requested timestamp | [optional] |
|
70
|
+
| **expand** | **String** | Expand details. Supported details are: logs,resources,projects,tasks | [optional] |
|
71
|
+
|
72
|
+
### Return type
|
73
|
+
|
74
|
+
[**Operation**](Operation.md)
|
75
|
+
|
76
|
+
### Authorization
|
77
|
+
|
78
|
+
[oauth2](../README.md#oauth2)
|
79
|
+
|
80
|
+
### HTTP request headers
|
81
|
+
|
82
|
+
- **Content-Type**: Not defined
|
83
|
+
- **Accept**: application/json, application/problem+json
|
84
|
+
|
85
|
+
|
86
|
+
## operations_list
|
87
|
+
|
88
|
+
> <OperationList> operations_list(opts)
|
89
|
+
|
90
|
+
List all operations
|
91
|
+
|
92
|
+
List all operations
|
93
|
+
|
94
|
+
### Examples
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
require 'time'
|
98
|
+
require 'compute_client'
|
99
|
+
# setup authorization
|
100
|
+
ComputeClient.configure do |config|
|
101
|
+
# Configure OAuth2 access token for authorization: oauth2
|
102
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
103
|
+
end
|
104
|
+
|
105
|
+
api_instance = ComputeClient::OperationsApi.new
|
106
|
+
opts = {
|
107
|
+
log_time_stamp: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filters returned log entries by the requested timestamp
|
108
|
+
expand: 'expand_example' # String | Expand details. Supported details are: logs,resources,projects,tasks
|
109
|
+
}
|
110
|
+
|
111
|
+
begin
|
112
|
+
# List all operations
|
113
|
+
result = api_instance.operations_list(opts)
|
114
|
+
p result
|
115
|
+
rescue ComputeClient::ApiError => e
|
116
|
+
puts "Error when calling OperationsApi->operations_list: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
#### Using the operations_list_with_http_info variant
|
121
|
+
|
122
|
+
This returns an Array which contains the response data, status code and headers.
|
123
|
+
|
124
|
+
> <Array(<OperationList>, Integer, Hash)> operations_list_with_http_info(opts)
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
begin
|
128
|
+
# List all operations
|
129
|
+
data, status_code, headers = api_instance.operations_list_with_http_info(opts)
|
130
|
+
p status_code # => 2xx
|
131
|
+
p headers # => { ... }
|
132
|
+
p data # => <OperationList>
|
133
|
+
rescue ComputeClient::ApiError => e
|
134
|
+
puts "Error when calling OperationsApi->operations_list_with_http_info: #{e}"
|
135
|
+
end
|
136
|
+
```
|
137
|
+
|
138
|
+
### Parameters
|
139
|
+
|
140
|
+
| Name | Type | Description | Notes |
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
142
|
+
| **log_time_stamp** | **Time** | Filters returned log entries by the requested timestamp | [optional] |
|
143
|
+
| **expand** | **String** | Expand details. Supported details are: logs,resources,projects,tasks | [optional] |
|
144
|
+
|
145
|
+
### Return type
|
146
|
+
|
147
|
+
[**OperationList**](OperationList.md)
|
148
|
+
|
149
|
+
### Authorization
|
150
|
+
|
151
|
+
[oauth2](../README.md#oauth2)
|
152
|
+
|
153
|
+
### HTTP request headers
|
154
|
+
|
155
|
+
- **Content-Type**: Not defined
|
156
|
+
- **Accept**: application/json, application/problem+json
|
157
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# ComputeClient::PopulateCatletConfigVariablesRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **correlation_id** | **String** | | [optional] |
|
8
|
+
| **configuration** | **Object** | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'compute_client'
|
14
|
+
|
15
|
+
instance = ComputeClient::PopulateCatletConfigVariablesRequest.new(
|
16
|
+
correlation_id: null,
|
17
|
+
configuration: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# ComputeClient::ProblemDetails
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | | [optional] |
|
8
|
+
| **title** | **String** | | [optional] |
|
9
|
+
| **status** | **Integer** | | [optional] |
|
10
|
+
| **detail** | **String** | | [optional] |
|
11
|
+
| **instance** | **String** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'compute_client'
|
17
|
+
|
18
|
+
instance = ComputeClient::ProblemDetails.new(
|
19
|
+
type: null,
|
20
|
+
title: null,
|
21
|
+
status: null,
|
22
|
+
detail: null,
|
23
|
+
instance: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# ComputeClient::Project
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **name** | **String** | | |
|
9
|
+
| **tenant_id** | **String** | | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'compute_client'
|
15
|
+
|
16
|
+
instance = ComputeClient::Project.new(
|
17
|
+
id: null,
|
18
|
+
name: null,
|
19
|
+
tenant_id: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ComputeClient::ProjectList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **value** | [**Array<Project>**](Project.md) | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'compute_client'
|
13
|
+
|
14
|
+
instance = ComputeClient::ProjectList.new(
|
15
|
+
value: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# ComputeClient::ProjectMemberRole
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **project** | [**Project**](Project.md) | | |
|
9
|
+
| **member_id** | **String** | | |
|
10
|
+
| **role_id** | **String** | | |
|
11
|
+
| **role_name** | **String** | | |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'compute_client'
|
17
|
+
|
18
|
+
instance = ComputeClient::ProjectMemberRole.new(
|
19
|
+
id: null,
|
20
|
+
project: null,
|
21
|
+
member_id: null,
|
22
|
+
role_id: null,
|
23
|
+
role_name: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ComputeClient::ProjectMemberRoleList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **value** | [**Array<ProjectMemberRole>**](ProjectMemberRole.md) | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'compute_client'
|
13
|
+
|
14
|
+
instance = ComputeClient::ProjectMemberRoleList.new(
|
15
|
+
value: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,293 @@
|
|
1
|
+
# ComputeClient::ProjectMembersApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost:8000/compute*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**project_members_add**](ProjectMembersApi.md#project_members_add) | **POST** /v1/projects/{project_id}/members | Add a project member |
|
8
|
+
| [**project_members_get**](ProjectMembersApi.md#project_members_get) | **GET** /v1/projects/{project_id}/members/{id} | Get a project member |
|
9
|
+
| [**project_members_list**](ProjectMembersApi.md#project_members_list) | **GET** /v1/projects/{project_id}/members | List all project members |
|
10
|
+
| [**project_members_remove**](ProjectMembersApi.md#project_members_remove) | **DELETE** /v1/projects/{project_id}/members/{id} | Remove a project member |
|
11
|
+
|
12
|
+
|
13
|
+
## project_members_add
|
14
|
+
|
15
|
+
> <Operation> project_members_add(project_id, new_project_member_body)
|
16
|
+
|
17
|
+
Add a project member
|
18
|
+
|
19
|
+
Add a project member
|
20
|
+
|
21
|
+
### Examples
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'time'
|
25
|
+
require 'compute_client'
|
26
|
+
# setup authorization
|
27
|
+
ComputeClient.configure do |config|
|
28
|
+
# Configure OAuth2 access token for authorization: oauth2
|
29
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = ComputeClient::ProjectMembersApi.new
|
33
|
+
project_id = 'project_id_example' # String |
|
34
|
+
new_project_member_body = ComputeClient::NewProjectMemberBody.new({member_id: 'member_id_example', role_id: 'role_id_example'}) # NewProjectMemberBody |
|
35
|
+
|
36
|
+
begin
|
37
|
+
# Add a project member
|
38
|
+
result = api_instance.project_members_add(project_id, new_project_member_body)
|
39
|
+
p result
|
40
|
+
rescue ComputeClient::ApiError => e
|
41
|
+
puts "Error when calling ProjectMembersApi->project_members_add: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
#### Using the project_members_add_with_http_info variant
|
46
|
+
|
47
|
+
This returns an Array which contains the response data, status code and headers.
|
48
|
+
|
49
|
+
> <Array(<Operation>, Integer, Hash)> project_members_add_with_http_info(project_id, new_project_member_body)
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
begin
|
53
|
+
# Add a project member
|
54
|
+
data, status_code, headers = api_instance.project_members_add_with_http_info(project_id, new_project_member_body)
|
55
|
+
p status_code # => 2xx
|
56
|
+
p headers # => { ... }
|
57
|
+
p data # => <Operation>
|
58
|
+
rescue ComputeClient::ApiError => e
|
59
|
+
puts "Error when calling ProjectMembersApi->project_members_add_with_http_info: #{e}"
|
60
|
+
end
|
61
|
+
```
|
62
|
+
|
63
|
+
### Parameters
|
64
|
+
|
65
|
+
| Name | Type | Description | Notes |
|
66
|
+
| ---- | ---- | ----------- | ----- |
|
67
|
+
| **project_id** | **String** | | |
|
68
|
+
| **new_project_member_body** | [**NewProjectMemberBody**](NewProjectMemberBody.md) | | |
|
69
|
+
|
70
|
+
### Return type
|
71
|
+
|
72
|
+
[**Operation**](Operation.md)
|
73
|
+
|
74
|
+
### Authorization
|
75
|
+
|
76
|
+
[oauth2](../README.md#oauth2)
|
77
|
+
|
78
|
+
### HTTP request headers
|
79
|
+
|
80
|
+
- **Content-Type**: application/json
|
81
|
+
- **Accept**: application/json, application/problem+json
|
82
|
+
|
83
|
+
|
84
|
+
## project_members_get
|
85
|
+
|
86
|
+
> <ProjectMemberRole> project_members_get(project_id, id)
|
87
|
+
|
88
|
+
Get a project member
|
89
|
+
|
90
|
+
Get a project member
|
91
|
+
|
92
|
+
### Examples
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
require 'time'
|
96
|
+
require 'compute_client'
|
97
|
+
# setup authorization
|
98
|
+
ComputeClient.configure do |config|
|
99
|
+
# Configure OAuth2 access token for authorization: oauth2
|
100
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
101
|
+
end
|
102
|
+
|
103
|
+
api_instance = ComputeClient::ProjectMembersApi.new
|
104
|
+
project_id = 'project_id_example' # String |
|
105
|
+
id = 'id_example' # String |
|
106
|
+
|
107
|
+
begin
|
108
|
+
# Get a project member
|
109
|
+
result = api_instance.project_members_get(project_id, id)
|
110
|
+
p result
|
111
|
+
rescue ComputeClient::ApiError => e
|
112
|
+
puts "Error when calling ProjectMembersApi->project_members_get: #{e}"
|
113
|
+
end
|
114
|
+
```
|
115
|
+
|
116
|
+
#### Using the project_members_get_with_http_info variant
|
117
|
+
|
118
|
+
This returns an Array which contains the response data, status code and headers.
|
119
|
+
|
120
|
+
> <Array(<ProjectMemberRole>, Integer, Hash)> project_members_get_with_http_info(project_id, id)
|
121
|
+
|
122
|
+
```ruby
|
123
|
+
begin
|
124
|
+
# Get a project member
|
125
|
+
data, status_code, headers = api_instance.project_members_get_with_http_info(project_id, id)
|
126
|
+
p status_code # => 2xx
|
127
|
+
p headers # => { ... }
|
128
|
+
p data # => <ProjectMemberRole>
|
129
|
+
rescue ComputeClient::ApiError => e
|
130
|
+
puts "Error when calling ProjectMembersApi->project_members_get_with_http_info: #{e}"
|
131
|
+
end
|
132
|
+
```
|
133
|
+
|
134
|
+
### Parameters
|
135
|
+
|
136
|
+
| Name | Type | Description | Notes |
|
137
|
+
| ---- | ---- | ----------- | ----- |
|
138
|
+
| **project_id** | **String** | | |
|
139
|
+
| **id** | **String** | | |
|
140
|
+
|
141
|
+
### Return type
|
142
|
+
|
143
|
+
[**ProjectMemberRole**](ProjectMemberRole.md)
|
144
|
+
|
145
|
+
### Authorization
|
146
|
+
|
147
|
+
[oauth2](../README.md#oauth2)
|
148
|
+
|
149
|
+
### HTTP request headers
|
150
|
+
|
151
|
+
- **Content-Type**: Not defined
|
152
|
+
- **Accept**: application/json, application/problem+json
|
153
|
+
|
154
|
+
|
155
|
+
## project_members_list
|
156
|
+
|
157
|
+
> <ProjectMemberRoleList> project_members_list(project_id)
|
158
|
+
|
159
|
+
List all project members
|
160
|
+
|
161
|
+
List all project members
|
162
|
+
|
163
|
+
### Examples
|
164
|
+
|
165
|
+
```ruby
|
166
|
+
require 'time'
|
167
|
+
require 'compute_client'
|
168
|
+
# setup authorization
|
169
|
+
ComputeClient.configure do |config|
|
170
|
+
# Configure OAuth2 access token for authorization: oauth2
|
171
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
172
|
+
end
|
173
|
+
|
174
|
+
api_instance = ComputeClient::ProjectMembersApi.new
|
175
|
+
project_id = 'project_id_example' # String |
|
176
|
+
|
177
|
+
begin
|
178
|
+
# List all project members
|
179
|
+
result = api_instance.project_members_list(project_id)
|
180
|
+
p result
|
181
|
+
rescue ComputeClient::ApiError => e
|
182
|
+
puts "Error when calling ProjectMembersApi->project_members_list: #{e}"
|
183
|
+
end
|
184
|
+
```
|
185
|
+
|
186
|
+
#### Using the project_members_list_with_http_info variant
|
187
|
+
|
188
|
+
This returns an Array which contains the response data, status code and headers.
|
189
|
+
|
190
|
+
> <Array(<ProjectMemberRoleList>, Integer, Hash)> project_members_list_with_http_info(project_id)
|
191
|
+
|
192
|
+
```ruby
|
193
|
+
begin
|
194
|
+
# List all project members
|
195
|
+
data, status_code, headers = api_instance.project_members_list_with_http_info(project_id)
|
196
|
+
p status_code # => 2xx
|
197
|
+
p headers # => { ... }
|
198
|
+
p data # => <ProjectMemberRoleList>
|
199
|
+
rescue ComputeClient::ApiError => e
|
200
|
+
puts "Error when calling ProjectMembersApi->project_members_list_with_http_info: #{e}"
|
201
|
+
end
|
202
|
+
```
|
203
|
+
|
204
|
+
### Parameters
|
205
|
+
|
206
|
+
| Name | Type | Description | Notes |
|
207
|
+
| ---- | ---- | ----------- | ----- |
|
208
|
+
| **project_id** | **String** | | |
|
209
|
+
|
210
|
+
### Return type
|
211
|
+
|
212
|
+
[**ProjectMemberRoleList**](ProjectMemberRoleList.md)
|
213
|
+
|
214
|
+
### Authorization
|
215
|
+
|
216
|
+
[oauth2](../README.md#oauth2)
|
217
|
+
|
218
|
+
### HTTP request headers
|
219
|
+
|
220
|
+
- **Content-Type**: Not defined
|
221
|
+
- **Accept**: application/json, application/problem+json
|
222
|
+
|
223
|
+
|
224
|
+
## project_members_remove
|
225
|
+
|
226
|
+
> <Operation> project_members_remove(project_id, id)
|
227
|
+
|
228
|
+
Remove a project member
|
229
|
+
|
230
|
+
Removes a project member assignment
|
231
|
+
|
232
|
+
### Examples
|
233
|
+
|
234
|
+
```ruby
|
235
|
+
require 'time'
|
236
|
+
require 'compute_client'
|
237
|
+
# setup authorization
|
238
|
+
ComputeClient.configure do |config|
|
239
|
+
# Configure OAuth2 access token for authorization: oauth2
|
240
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
241
|
+
end
|
242
|
+
|
243
|
+
api_instance = ComputeClient::ProjectMembersApi.new
|
244
|
+
project_id = 'project_id_example' # String |
|
245
|
+
id = 'id_example' # String |
|
246
|
+
|
247
|
+
begin
|
248
|
+
# Remove a project member
|
249
|
+
result = api_instance.project_members_remove(project_id, id)
|
250
|
+
p result
|
251
|
+
rescue ComputeClient::ApiError => e
|
252
|
+
puts "Error when calling ProjectMembersApi->project_members_remove: #{e}"
|
253
|
+
end
|
254
|
+
```
|
255
|
+
|
256
|
+
#### Using the project_members_remove_with_http_info variant
|
257
|
+
|
258
|
+
This returns an Array which contains the response data, status code and headers.
|
259
|
+
|
260
|
+
> <Array(<Operation>, Integer, Hash)> project_members_remove_with_http_info(project_id, id)
|
261
|
+
|
262
|
+
```ruby
|
263
|
+
begin
|
264
|
+
# Remove a project member
|
265
|
+
data, status_code, headers = api_instance.project_members_remove_with_http_info(project_id, id)
|
266
|
+
p status_code # => 2xx
|
267
|
+
p headers # => { ... }
|
268
|
+
p data # => <Operation>
|
269
|
+
rescue ComputeClient::ApiError => e
|
270
|
+
puts "Error when calling ProjectMembersApi->project_members_remove_with_http_info: #{e}"
|
271
|
+
end
|
272
|
+
```
|
273
|
+
|
274
|
+
### Parameters
|
275
|
+
|
276
|
+
| Name | Type | Description | Notes |
|
277
|
+
| ---- | ---- | ----------- | ----- |
|
278
|
+
| **project_id** | **String** | | |
|
279
|
+
| **id** | **String** | | |
|
280
|
+
|
281
|
+
### Return type
|
282
|
+
|
283
|
+
[**Operation**](Operation.md)
|
284
|
+
|
285
|
+
### Authorization
|
286
|
+
|
287
|
+
[oauth2](../README.md#oauth2)
|
288
|
+
|
289
|
+
### HTTP request headers
|
290
|
+
|
291
|
+
- **Content-Type**: Not defined
|
292
|
+
- **Accept**: application/json, application/problem+json
|
293
|
+
|