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,863 @@
|
|
1
|
+
# ComputeClient::CatletsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost:8000/compute*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**catlets_create**](CatletsApi.md#catlets_create) | **POST** /v1/catlets | Create a new catlet |
|
8
|
+
| [**catlets_delete**](CatletsApi.md#catlets_delete) | **DELETE** /v1/catlets/{id} | Delete a catlet |
|
9
|
+
| [**catlets_expand_config**](CatletsApi.md#catlets_expand_config) | **POST** /v1/catlets/{id}/config/expand | Expand catlet config |
|
10
|
+
| [**catlets_expand_new_config**](CatletsApi.md#catlets_expand_new_config) | **POST** /v1/catlets/config/expand | Expand new catlet config |
|
11
|
+
| [**catlets_get**](CatletsApi.md#catlets_get) | **GET** /v1/catlets/{id} | Get a catlet |
|
12
|
+
| [**catlets_get_config**](CatletsApi.md#catlets_get_config) | **GET** /v1/catlets/{id}/config | Get a catlet configuration |
|
13
|
+
| [**catlets_list**](CatletsApi.md#catlets_list) | **GET** /v1/catlets | List all catlets |
|
14
|
+
| [**catlets_populate_config_variables**](CatletsApi.md#catlets_populate_config_variables) | **POST** /v1/catlets/config/populate-variables | Populate catlet config variables |
|
15
|
+
| [**catlets_start**](CatletsApi.md#catlets_start) | **PUT** /v1/catlets/{id}/start | Start a catlet |
|
16
|
+
| [**catlets_stop**](CatletsApi.md#catlets_stop) | **PUT** /v1/catlets/{id}/stop | Stop a catlet |
|
17
|
+
| [**catlets_update**](CatletsApi.md#catlets_update) | **PUT** /v1/catlets/{id} | Update a catlet |
|
18
|
+
| [**catlets_validate_config**](CatletsApi.md#catlets_validate_config) | **POST** /v1/catlets/config/validate | Validate catlet config |
|
19
|
+
|
20
|
+
|
21
|
+
## catlets_create
|
22
|
+
|
23
|
+
> <Operation> catlets_create(opts)
|
24
|
+
|
25
|
+
Create a new catlet
|
26
|
+
|
27
|
+
Create a catlet
|
28
|
+
|
29
|
+
### Examples
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
require 'time'
|
33
|
+
require 'compute_client'
|
34
|
+
# setup authorization
|
35
|
+
ComputeClient.configure do |config|
|
36
|
+
# Configure OAuth2 access token for authorization: oauth2
|
37
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
38
|
+
end
|
39
|
+
|
40
|
+
api_instance = ComputeClient::CatletsApi.new
|
41
|
+
opts = {
|
42
|
+
new_catlet_request: ComputeClient::NewCatletRequest.new({configuration: 3.56}) # NewCatletRequest |
|
43
|
+
}
|
44
|
+
|
45
|
+
begin
|
46
|
+
# Create a new catlet
|
47
|
+
result = api_instance.catlets_create(opts)
|
48
|
+
p result
|
49
|
+
rescue ComputeClient::ApiError => e
|
50
|
+
puts "Error when calling CatletsApi->catlets_create: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
#### Using the catlets_create_with_http_info variant
|
55
|
+
|
56
|
+
This returns an Array which contains the response data, status code and headers.
|
57
|
+
|
58
|
+
> <Array(<Operation>, Integer, Hash)> catlets_create_with_http_info(opts)
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
begin
|
62
|
+
# Create a new catlet
|
63
|
+
data, status_code, headers = api_instance.catlets_create_with_http_info(opts)
|
64
|
+
p status_code # => 2xx
|
65
|
+
p headers # => { ... }
|
66
|
+
p data # => <Operation>
|
67
|
+
rescue ComputeClient::ApiError => e
|
68
|
+
puts "Error when calling CatletsApi->catlets_create_with_http_info: #{e}"
|
69
|
+
end
|
70
|
+
```
|
71
|
+
|
72
|
+
### Parameters
|
73
|
+
|
74
|
+
| Name | Type | Description | Notes |
|
75
|
+
| ---- | ---- | ----------- | ----- |
|
76
|
+
| **new_catlet_request** | [**NewCatletRequest**](NewCatletRequest.md) | | [optional] |
|
77
|
+
|
78
|
+
### Return type
|
79
|
+
|
80
|
+
[**Operation**](Operation.md)
|
81
|
+
|
82
|
+
### Authorization
|
83
|
+
|
84
|
+
[oauth2](../README.md#oauth2)
|
85
|
+
|
86
|
+
### HTTP request headers
|
87
|
+
|
88
|
+
- **Content-Type**: application/json
|
89
|
+
- **Accept**: application/json, application/problem+json
|
90
|
+
|
91
|
+
|
92
|
+
## catlets_delete
|
93
|
+
|
94
|
+
> <Operation> catlets_delete(id)
|
95
|
+
|
96
|
+
Delete a catlet
|
97
|
+
|
98
|
+
Deletes a catlet
|
99
|
+
|
100
|
+
### Examples
|
101
|
+
|
102
|
+
```ruby
|
103
|
+
require 'time'
|
104
|
+
require 'compute_client'
|
105
|
+
# setup authorization
|
106
|
+
ComputeClient.configure do |config|
|
107
|
+
# Configure OAuth2 access token for authorization: oauth2
|
108
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
109
|
+
end
|
110
|
+
|
111
|
+
api_instance = ComputeClient::CatletsApi.new
|
112
|
+
id = 'id_example' # String |
|
113
|
+
|
114
|
+
begin
|
115
|
+
# Delete a catlet
|
116
|
+
result = api_instance.catlets_delete(id)
|
117
|
+
p result
|
118
|
+
rescue ComputeClient::ApiError => e
|
119
|
+
puts "Error when calling CatletsApi->catlets_delete: #{e}"
|
120
|
+
end
|
121
|
+
```
|
122
|
+
|
123
|
+
#### Using the catlets_delete_with_http_info variant
|
124
|
+
|
125
|
+
This returns an Array which contains the response data, status code and headers.
|
126
|
+
|
127
|
+
> <Array(<Operation>, Integer, Hash)> catlets_delete_with_http_info(id)
|
128
|
+
|
129
|
+
```ruby
|
130
|
+
begin
|
131
|
+
# Delete a catlet
|
132
|
+
data, status_code, headers = api_instance.catlets_delete_with_http_info(id)
|
133
|
+
p status_code # => 2xx
|
134
|
+
p headers # => { ... }
|
135
|
+
p data # => <Operation>
|
136
|
+
rescue ComputeClient::ApiError => e
|
137
|
+
puts "Error when calling CatletsApi->catlets_delete_with_http_info: #{e}"
|
138
|
+
end
|
139
|
+
```
|
140
|
+
|
141
|
+
### Parameters
|
142
|
+
|
143
|
+
| Name | Type | Description | Notes |
|
144
|
+
| ---- | ---- | ----------- | ----- |
|
145
|
+
| **id** | **String** | | |
|
146
|
+
|
147
|
+
### Return type
|
148
|
+
|
149
|
+
[**Operation**](Operation.md)
|
150
|
+
|
151
|
+
### Authorization
|
152
|
+
|
153
|
+
[oauth2](../README.md#oauth2)
|
154
|
+
|
155
|
+
### HTTP request headers
|
156
|
+
|
157
|
+
- **Content-Type**: Not defined
|
158
|
+
- **Accept**: application/json, application/problem+json
|
159
|
+
|
160
|
+
|
161
|
+
## catlets_expand_config
|
162
|
+
|
163
|
+
> <Operation> catlets_expand_config(id, expand_catlet_config_request_body)
|
164
|
+
|
165
|
+
Expand catlet config
|
166
|
+
|
167
|
+
Expand the config for an existing catlet
|
168
|
+
|
169
|
+
### Examples
|
170
|
+
|
171
|
+
```ruby
|
172
|
+
require 'time'
|
173
|
+
require 'compute_client'
|
174
|
+
# setup authorization
|
175
|
+
ComputeClient.configure do |config|
|
176
|
+
# Configure OAuth2 access token for authorization: oauth2
|
177
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
178
|
+
end
|
179
|
+
|
180
|
+
api_instance = ComputeClient::CatletsApi.new
|
181
|
+
id = 'id_example' # String |
|
182
|
+
expand_catlet_config_request_body = ComputeClient::ExpandCatletConfigRequestBody.new({configuration: 3.56}) # ExpandCatletConfigRequestBody |
|
183
|
+
|
184
|
+
begin
|
185
|
+
# Expand catlet config
|
186
|
+
result = api_instance.catlets_expand_config(id, expand_catlet_config_request_body)
|
187
|
+
p result
|
188
|
+
rescue ComputeClient::ApiError => e
|
189
|
+
puts "Error when calling CatletsApi->catlets_expand_config: #{e}"
|
190
|
+
end
|
191
|
+
```
|
192
|
+
|
193
|
+
#### Using the catlets_expand_config_with_http_info variant
|
194
|
+
|
195
|
+
This returns an Array which contains the response data, status code and headers.
|
196
|
+
|
197
|
+
> <Array(<Operation>, Integer, Hash)> catlets_expand_config_with_http_info(id, expand_catlet_config_request_body)
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
begin
|
201
|
+
# Expand catlet config
|
202
|
+
data, status_code, headers = api_instance.catlets_expand_config_with_http_info(id, expand_catlet_config_request_body)
|
203
|
+
p status_code # => 2xx
|
204
|
+
p headers # => { ... }
|
205
|
+
p data # => <Operation>
|
206
|
+
rescue ComputeClient::ApiError => e
|
207
|
+
puts "Error when calling CatletsApi->catlets_expand_config_with_http_info: #{e}"
|
208
|
+
end
|
209
|
+
```
|
210
|
+
|
211
|
+
### Parameters
|
212
|
+
|
213
|
+
| Name | Type | Description | Notes |
|
214
|
+
| ---- | ---- | ----------- | ----- |
|
215
|
+
| **id** | **String** | | |
|
216
|
+
| **expand_catlet_config_request_body** | [**ExpandCatletConfigRequestBody**](ExpandCatletConfigRequestBody.md) | | |
|
217
|
+
|
218
|
+
### Return type
|
219
|
+
|
220
|
+
[**Operation**](Operation.md)
|
221
|
+
|
222
|
+
### Authorization
|
223
|
+
|
224
|
+
[oauth2](../README.md#oauth2)
|
225
|
+
|
226
|
+
### HTTP request headers
|
227
|
+
|
228
|
+
- **Content-Type**: application/json
|
229
|
+
- **Accept**: application/json, application/problem+json
|
230
|
+
|
231
|
+
|
232
|
+
## catlets_expand_new_config
|
233
|
+
|
234
|
+
> <Operation> catlets_expand_new_config(opts)
|
235
|
+
|
236
|
+
Expand new catlet config
|
237
|
+
|
238
|
+
Expand the config for a new catlet
|
239
|
+
|
240
|
+
### Examples
|
241
|
+
|
242
|
+
```ruby
|
243
|
+
require 'time'
|
244
|
+
require 'compute_client'
|
245
|
+
# setup authorization
|
246
|
+
ComputeClient.configure do |config|
|
247
|
+
# Configure OAuth2 access token for authorization: oauth2
|
248
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
249
|
+
end
|
250
|
+
|
251
|
+
api_instance = ComputeClient::CatletsApi.new
|
252
|
+
opts = {
|
253
|
+
expand_new_catlet_config_request: ComputeClient::ExpandNewCatletConfigRequest.new({configuration: 3.56}) # ExpandNewCatletConfigRequest |
|
254
|
+
}
|
255
|
+
|
256
|
+
begin
|
257
|
+
# Expand new catlet config
|
258
|
+
result = api_instance.catlets_expand_new_config(opts)
|
259
|
+
p result
|
260
|
+
rescue ComputeClient::ApiError => e
|
261
|
+
puts "Error when calling CatletsApi->catlets_expand_new_config: #{e}"
|
262
|
+
end
|
263
|
+
```
|
264
|
+
|
265
|
+
#### Using the catlets_expand_new_config_with_http_info variant
|
266
|
+
|
267
|
+
This returns an Array which contains the response data, status code and headers.
|
268
|
+
|
269
|
+
> <Array(<Operation>, Integer, Hash)> catlets_expand_new_config_with_http_info(opts)
|
270
|
+
|
271
|
+
```ruby
|
272
|
+
begin
|
273
|
+
# Expand new catlet config
|
274
|
+
data, status_code, headers = api_instance.catlets_expand_new_config_with_http_info(opts)
|
275
|
+
p status_code # => 2xx
|
276
|
+
p headers # => { ... }
|
277
|
+
p data # => <Operation>
|
278
|
+
rescue ComputeClient::ApiError => e
|
279
|
+
puts "Error when calling CatletsApi->catlets_expand_new_config_with_http_info: #{e}"
|
280
|
+
end
|
281
|
+
```
|
282
|
+
|
283
|
+
### Parameters
|
284
|
+
|
285
|
+
| Name | Type | Description | Notes |
|
286
|
+
| ---- | ---- | ----------- | ----- |
|
287
|
+
| **expand_new_catlet_config_request** | [**ExpandNewCatletConfigRequest**](ExpandNewCatletConfigRequest.md) | | [optional] |
|
288
|
+
|
289
|
+
### Return type
|
290
|
+
|
291
|
+
[**Operation**](Operation.md)
|
292
|
+
|
293
|
+
### Authorization
|
294
|
+
|
295
|
+
[oauth2](../README.md#oauth2)
|
296
|
+
|
297
|
+
### HTTP request headers
|
298
|
+
|
299
|
+
- **Content-Type**: application/json
|
300
|
+
- **Accept**: application/json, application/problem+json
|
301
|
+
|
302
|
+
|
303
|
+
## catlets_get
|
304
|
+
|
305
|
+
> <Catlet> catlets_get(id)
|
306
|
+
|
307
|
+
Get a catlet
|
308
|
+
|
309
|
+
Get a catlet
|
310
|
+
|
311
|
+
### Examples
|
312
|
+
|
313
|
+
```ruby
|
314
|
+
require 'time'
|
315
|
+
require 'compute_client'
|
316
|
+
# setup authorization
|
317
|
+
ComputeClient.configure do |config|
|
318
|
+
# Configure OAuth2 access token for authorization: oauth2
|
319
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
320
|
+
end
|
321
|
+
|
322
|
+
api_instance = ComputeClient::CatletsApi.new
|
323
|
+
id = 'id_example' # String |
|
324
|
+
|
325
|
+
begin
|
326
|
+
# Get a catlet
|
327
|
+
result = api_instance.catlets_get(id)
|
328
|
+
p result
|
329
|
+
rescue ComputeClient::ApiError => e
|
330
|
+
puts "Error when calling CatletsApi->catlets_get: #{e}"
|
331
|
+
end
|
332
|
+
```
|
333
|
+
|
334
|
+
#### Using the catlets_get_with_http_info variant
|
335
|
+
|
336
|
+
This returns an Array which contains the response data, status code and headers.
|
337
|
+
|
338
|
+
> <Array(<Catlet>, Integer, Hash)> catlets_get_with_http_info(id)
|
339
|
+
|
340
|
+
```ruby
|
341
|
+
begin
|
342
|
+
# Get a catlet
|
343
|
+
data, status_code, headers = api_instance.catlets_get_with_http_info(id)
|
344
|
+
p status_code # => 2xx
|
345
|
+
p headers # => { ... }
|
346
|
+
p data # => <Catlet>
|
347
|
+
rescue ComputeClient::ApiError => e
|
348
|
+
puts "Error when calling CatletsApi->catlets_get_with_http_info: #{e}"
|
349
|
+
end
|
350
|
+
```
|
351
|
+
|
352
|
+
### Parameters
|
353
|
+
|
354
|
+
| Name | Type | Description | Notes |
|
355
|
+
| ---- | ---- | ----------- | ----- |
|
356
|
+
| **id** | **String** | | |
|
357
|
+
|
358
|
+
### Return type
|
359
|
+
|
360
|
+
[**Catlet**](Catlet.md)
|
361
|
+
|
362
|
+
### Authorization
|
363
|
+
|
364
|
+
[oauth2](../README.md#oauth2)
|
365
|
+
|
366
|
+
### HTTP request headers
|
367
|
+
|
368
|
+
- **Content-Type**: Not defined
|
369
|
+
- **Accept**: application/json, application/problem+json
|
370
|
+
|
371
|
+
|
372
|
+
## catlets_get_config
|
373
|
+
|
374
|
+
> <CatletConfiguration> catlets_get_config(id)
|
375
|
+
|
376
|
+
Get a catlet configuration
|
377
|
+
|
378
|
+
Get the configuration of a catlet
|
379
|
+
|
380
|
+
### Examples
|
381
|
+
|
382
|
+
```ruby
|
383
|
+
require 'time'
|
384
|
+
require 'compute_client'
|
385
|
+
# setup authorization
|
386
|
+
ComputeClient.configure do |config|
|
387
|
+
# Configure OAuth2 access token for authorization: oauth2
|
388
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
389
|
+
end
|
390
|
+
|
391
|
+
api_instance = ComputeClient::CatletsApi.new
|
392
|
+
id = 'id_example' # String |
|
393
|
+
|
394
|
+
begin
|
395
|
+
# Get a catlet configuration
|
396
|
+
result = api_instance.catlets_get_config(id)
|
397
|
+
p result
|
398
|
+
rescue ComputeClient::ApiError => e
|
399
|
+
puts "Error when calling CatletsApi->catlets_get_config: #{e}"
|
400
|
+
end
|
401
|
+
```
|
402
|
+
|
403
|
+
#### Using the catlets_get_config_with_http_info variant
|
404
|
+
|
405
|
+
This returns an Array which contains the response data, status code and headers.
|
406
|
+
|
407
|
+
> <Array(<CatletConfiguration>, Integer, Hash)> catlets_get_config_with_http_info(id)
|
408
|
+
|
409
|
+
```ruby
|
410
|
+
begin
|
411
|
+
# Get a catlet configuration
|
412
|
+
data, status_code, headers = api_instance.catlets_get_config_with_http_info(id)
|
413
|
+
p status_code # => 2xx
|
414
|
+
p headers # => { ... }
|
415
|
+
p data # => <CatletConfiguration>
|
416
|
+
rescue ComputeClient::ApiError => e
|
417
|
+
puts "Error when calling CatletsApi->catlets_get_config_with_http_info: #{e}"
|
418
|
+
end
|
419
|
+
```
|
420
|
+
|
421
|
+
### Parameters
|
422
|
+
|
423
|
+
| Name | Type | Description | Notes |
|
424
|
+
| ---- | ---- | ----------- | ----- |
|
425
|
+
| **id** | **String** | | |
|
426
|
+
|
427
|
+
### Return type
|
428
|
+
|
429
|
+
[**CatletConfiguration**](CatletConfiguration.md)
|
430
|
+
|
431
|
+
### Authorization
|
432
|
+
|
433
|
+
[oauth2](../README.md#oauth2)
|
434
|
+
|
435
|
+
### HTTP request headers
|
436
|
+
|
437
|
+
- **Content-Type**: Not defined
|
438
|
+
- **Accept**: application/json, application/problem+json
|
439
|
+
|
440
|
+
|
441
|
+
## catlets_list
|
442
|
+
|
443
|
+
> <CatletList> catlets_list(opts)
|
444
|
+
|
445
|
+
List all catlets
|
446
|
+
|
447
|
+
List all catlets
|
448
|
+
|
449
|
+
### Examples
|
450
|
+
|
451
|
+
```ruby
|
452
|
+
require 'time'
|
453
|
+
require 'compute_client'
|
454
|
+
# setup authorization
|
455
|
+
ComputeClient.configure do |config|
|
456
|
+
# Configure OAuth2 access token for authorization: oauth2
|
457
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
458
|
+
end
|
459
|
+
|
460
|
+
api_instance = ComputeClient::CatletsApi.new
|
461
|
+
opts = {
|
462
|
+
project_id: 'project_id_example' # String |
|
463
|
+
}
|
464
|
+
|
465
|
+
begin
|
466
|
+
# List all catlets
|
467
|
+
result = api_instance.catlets_list(opts)
|
468
|
+
p result
|
469
|
+
rescue ComputeClient::ApiError => e
|
470
|
+
puts "Error when calling CatletsApi->catlets_list: #{e}"
|
471
|
+
end
|
472
|
+
```
|
473
|
+
|
474
|
+
#### Using the catlets_list_with_http_info variant
|
475
|
+
|
476
|
+
This returns an Array which contains the response data, status code and headers.
|
477
|
+
|
478
|
+
> <Array(<CatletList>, Integer, Hash)> catlets_list_with_http_info(opts)
|
479
|
+
|
480
|
+
```ruby
|
481
|
+
begin
|
482
|
+
# List all catlets
|
483
|
+
data, status_code, headers = api_instance.catlets_list_with_http_info(opts)
|
484
|
+
p status_code # => 2xx
|
485
|
+
p headers # => { ... }
|
486
|
+
p data # => <CatletList>
|
487
|
+
rescue ComputeClient::ApiError => e
|
488
|
+
puts "Error when calling CatletsApi->catlets_list_with_http_info: #{e}"
|
489
|
+
end
|
490
|
+
```
|
491
|
+
|
492
|
+
### Parameters
|
493
|
+
|
494
|
+
| Name | Type | Description | Notes |
|
495
|
+
| ---- | ---- | ----------- | ----- |
|
496
|
+
| **project_id** | **String** | | [optional] |
|
497
|
+
|
498
|
+
### Return type
|
499
|
+
|
500
|
+
[**CatletList**](CatletList.md)
|
501
|
+
|
502
|
+
### Authorization
|
503
|
+
|
504
|
+
[oauth2](../README.md#oauth2)
|
505
|
+
|
506
|
+
### HTTP request headers
|
507
|
+
|
508
|
+
- **Content-Type**: Not defined
|
509
|
+
- **Accept**: application/json, application/problem+json
|
510
|
+
|
511
|
+
|
512
|
+
## catlets_populate_config_variables
|
513
|
+
|
514
|
+
> <Operation> catlets_populate_config_variables(opts)
|
515
|
+
|
516
|
+
Populate catlet config variables
|
517
|
+
|
518
|
+
Populates the variables in a config for a new catlet based on the parent.
|
519
|
+
|
520
|
+
### Examples
|
521
|
+
|
522
|
+
```ruby
|
523
|
+
require 'time'
|
524
|
+
require 'compute_client'
|
525
|
+
# setup authorization
|
526
|
+
ComputeClient.configure do |config|
|
527
|
+
# Configure OAuth2 access token for authorization: oauth2
|
528
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
529
|
+
end
|
530
|
+
|
531
|
+
api_instance = ComputeClient::CatletsApi.new
|
532
|
+
opts = {
|
533
|
+
populate_catlet_config_variables_request: ComputeClient::PopulateCatletConfigVariablesRequest.new({configuration: 3.56}) # PopulateCatletConfigVariablesRequest |
|
534
|
+
}
|
535
|
+
|
536
|
+
begin
|
537
|
+
# Populate catlet config variables
|
538
|
+
result = api_instance.catlets_populate_config_variables(opts)
|
539
|
+
p result
|
540
|
+
rescue ComputeClient::ApiError => e
|
541
|
+
puts "Error when calling CatletsApi->catlets_populate_config_variables: #{e}"
|
542
|
+
end
|
543
|
+
```
|
544
|
+
|
545
|
+
#### Using the catlets_populate_config_variables_with_http_info variant
|
546
|
+
|
547
|
+
This returns an Array which contains the response data, status code and headers.
|
548
|
+
|
549
|
+
> <Array(<Operation>, Integer, Hash)> catlets_populate_config_variables_with_http_info(opts)
|
550
|
+
|
551
|
+
```ruby
|
552
|
+
begin
|
553
|
+
# Populate catlet config variables
|
554
|
+
data, status_code, headers = api_instance.catlets_populate_config_variables_with_http_info(opts)
|
555
|
+
p status_code # => 2xx
|
556
|
+
p headers # => { ... }
|
557
|
+
p data # => <Operation>
|
558
|
+
rescue ComputeClient::ApiError => e
|
559
|
+
puts "Error when calling CatletsApi->catlets_populate_config_variables_with_http_info: #{e}"
|
560
|
+
end
|
561
|
+
```
|
562
|
+
|
563
|
+
### Parameters
|
564
|
+
|
565
|
+
| Name | Type | Description | Notes |
|
566
|
+
| ---- | ---- | ----------- | ----- |
|
567
|
+
| **populate_catlet_config_variables_request** | [**PopulateCatletConfigVariablesRequest**](PopulateCatletConfigVariablesRequest.md) | | [optional] |
|
568
|
+
|
569
|
+
### Return type
|
570
|
+
|
571
|
+
[**Operation**](Operation.md)
|
572
|
+
|
573
|
+
### Authorization
|
574
|
+
|
575
|
+
[oauth2](../README.md#oauth2)
|
576
|
+
|
577
|
+
### HTTP request headers
|
578
|
+
|
579
|
+
- **Content-Type**: application/json
|
580
|
+
- **Accept**: application/json, application/problem+json
|
581
|
+
|
582
|
+
|
583
|
+
## catlets_start
|
584
|
+
|
585
|
+
> <Operation> catlets_start(id)
|
586
|
+
|
587
|
+
Start a catlet
|
588
|
+
|
589
|
+
Start a catlet
|
590
|
+
|
591
|
+
### Examples
|
592
|
+
|
593
|
+
```ruby
|
594
|
+
require 'time'
|
595
|
+
require 'compute_client'
|
596
|
+
# setup authorization
|
597
|
+
ComputeClient.configure do |config|
|
598
|
+
# Configure OAuth2 access token for authorization: oauth2
|
599
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
600
|
+
end
|
601
|
+
|
602
|
+
api_instance = ComputeClient::CatletsApi.new
|
603
|
+
id = 'id_example' # String |
|
604
|
+
|
605
|
+
begin
|
606
|
+
# Start a catlet
|
607
|
+
result = api_instance.catlets_start(id)
|
608
|
+
p result
|
609
|
+
rescue ComputeClient::ApiError => e
|
610
|
+
puts "Error when calling CatletsApi->catlets_start: #{e}"
|
611
|
+
end
|
612
|
+
```
|
613
|
+
|
614
|
+
#### Using the catlets_start_with_http_info variant
|
615
|
+
|
616
|
+
This returns an Array which contains the response data, status code and headers.
|
617
|
+
|
618
|
+
> <Array(<Operation>, Integer, Hash)> catlets_start_with_http_info(id)
|
619
|
+
|
620
|
+
```ruby
|
621
|
+
begin
|
622
|
+
# Start a catlet
|
623
|
+
data, status_code, headers = api_instance.catlets_start_with_http_info(id)
|
624
|
+
p status_code # => 2xx
|
625
|
+
p headers # => { ... }
|
626
|
+
p data # => <Operation>
|
627
|
+
rescue ComputeClient::ApiError => e
|
628
|
+
puts "Error when calling CatletsApi->catlets_start_with_http_info: #{e}"
|
629
|
+
end
|
630
|
+
```
|
631
|
+
|
632
|
+
### Parameters
|
633
|
+
|
634
|
+
| Name | Type | Description | Notes |
|
635
|
+
| ---- | ---- | ----------- | ----- |
|
636
|
+
| **id** | **String** | | |
|
637
|
+
|
638
|
+
### Return type
|
639
|
+
|
640
|
+
[**Operation**](Operation.md)
|
641
|
+
|
642
|
+
### Authorization
|
643
|
+
|
644
|
+
[oauth2](../README.md#oauth2)
|
645
|
+
|
646
|
+
### HTTP request headers
|
647
|
+
|
648
|
+
- **Content-Type**: Not defined
|
649
|
+
- **Accept**: application/json, application/problem+json
|
650
|
+
|
651
|
+
|
652
|
+
## catlets_stop
|
653
|
+
|
654
|
+
> <Operation> catlets_stop(id, stop_catlet_request_body)
|
655
|
+
|
656
|
+
Stop a catlet
|
657
|
+
|
658
|
+
Stop a catlet
|
659
|
+
|
660
|
+
### Examples
|
661
|
+
|
662
|
+
```ruby
|
663
|
+
require 'time'
|
664
|
+
require 'compute_client'
|
665
|
+
# setup authorization
|
666
|
+
ComputeClient.configure do |config|
|
667
|
+
# Configure OAuth2 access token for authorization: oauth2
|
668
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
669
|
+
end
|
670
|
+
|
671
|
+
api_instance = ComputeClient::CatletsApi.new
|
672
|
+
id = 'id_example' # String |
|
673
|
+
stop_catlet_request_body = ComputeClient::StopCatletRequestBody.new({mode: ComputeClient::CatletStopMode::SHUTDOWN}) # StopCatletRequestBody |
|
674
|
+
|
675
|
+
begin
|
676
|
+
# Stop a catlet
|
677
|
+
result = api_instance.catlets_stop(id, stop_catlet_request_body)
|
678
|
+
p result
|
679
|
+
rescue ComputeClient::ApiError => e
|
680
|
+
puts "Error when calling CatletsApi->catlets_stop: #{e}"
|
681
|
+
end
|
682
|
+
```
|
683
|
+
|
684
|
+
#### Using the catlets_stop_with_http_info variant
|
685
|
+
|
686
|
+
This returns an Array which contains the response data, status code and headers.
|
687
|
+
|
688
|
+
> <Array(<Operation>, Integer, Hash)> catlets_stop_with_http_info(id, stop_catlet_request_body)
|
689
|
+
|
690
|
+
```ruby
|
691
|
+
begin
|
692
|
+
# Stop a catlet
|
693
|
+
data, status_code, headers = api_instance.catlets_stop_with_http_info(id, stop_catlet_request_body)
|
694
|
+
p status_code # => 2xx
|
695
|
+
p headers # => { ... }
|
696
|
+
p data # => <Operation>
|
697
|
+
rescue ComputeClient::ApiError => e
|
698
|
+
puts "Error when calling CatletsApi->catlets_stop_with_http_info: #{e}"
|
699
|
+
end
|
700
|
+
```
|
701
|
+
|
702
|
+
### Parameters
|
703
|
+
|
704
|
+
| Name | Type | Description | Notes |
|
705
|
+
| ---- | ---- | ----------- | ----- |
|
706
|
+
| **id** | **String** | | |
|
707
|
+
| **stop_catlet_request_body** | [**StopCatletRequestBody**](StopCatletRequestBody.md) | | |
|
708
|
+
|
709
|
+
### Return type
|
710
|
+
|
711
|
+
[**Operation**](Operation.md)
|
712
|
+
|
713
|
+
### Authorization
|
714
|
+
|
715
|
+
[oauth2](../README.md#oauth2)
|
716
|
+
|
717
|
+
### HTTP request headers
|
718
|
+
|
719
|
+
- **Content-Type**: application/json
|
720
|
+
- **Accept**: application/json, application/problem+json
|
721
|
+
|
722
|
+
|
723
|
+
## catlets_update
|
724
|
+
|
725
|
+
> <Operation> catlets_update(id, update_catlet_request_body)
|
726
|
+
|
727
|
+
Update a catlet
|
728
|
+
|
729
|
+
Update a catlet
|
730
|
+
|
731
|
+
### Examples
|
732
|
+
|
733
|
+
```ruby
|
734
|
+
require 'time'
|
735
|
+
require 'compute_client'
|
736
|
+
# setup authorization
|
737
|
+
ComputeClient.configure do |config|
|
738
|
+
# Configure OAuth2 access token for authorization: oauth2
|
739
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
740
|
+
end
|
741
|
+
|
742
|
+
api_instance = ComputeClient::CatletsApi.new
|
743
|
+
id = 'id_example' # String |
|
744
|
+
update_catlet_request_body = ComputeClient::UpdateCatletRequestBody.new({configuration: 3.56}) # UpdateCatletRequestBody |
|
745
|
+
|
746
|
+
begin
|
747
|
+
# Update a catlet
|
748
|
+
result = api_instance.catlets_update(id, update_catlet_request_body)
|
749
|
+
p result
|
750
|
+
rescue ComputeClient::ApiError => e
|
751
|
+
puts "Error when calling CatletsApi->catlets_update: #{e}"
|
752
|
+
end
|
753
|
+
```
|
754
|
+
|
755
|
+
#### Using the catlets_update_with_http_info variant
|
756
|
+
|
757
|
+
This returns an Array which contains the response data, status code and headers.
|
758
|
+
|
759
|
+
> <Array(<Operation>, Integer, Hash)> catlets_update_with_http_info(id, update_catlet_request_body)
|
760
|
+
|
761
|
+
```ruby
|
762
|
+
begin
|
763
|
+
# Update a catlet
|
764
|
+
data, status_code, headers = api_instance.catlets_update_with_http_info(id, update_catlet_request_body)
|
765
|
+
p status_code # => 2xx
|
766
|
+
p headers # => { ... }
|
767
|
+
p data # => <Operation>
|
768
|
+
rescue ComputeClient::ApiError => e
|
769
|
+
puts "Error when calling CatletsApi->catlets_update_with_http_info: #{e}"
|
770
|
+
end
|
771
|
+
```
|
772
|
+
|
773
|
+
### Parameters
|
774
|
+
|
775
|
+
| Name | Type | Description | Notes |
|
776
|
+
| ---- | ---- | ----------- | ----- |
|
777
|
+
| **id** | **String** | | |
|
778
|
+
| **update_catlet_request_body** | [**UpdateCatletRequestBody**](UpdateCatletRequestBody.md) | | |
|
779
|
+
|
780
|
+
### Return type
|
781
|
+
|
782
|
+
[**Operation**](Operation.md)
|
783
|
+
|
784
|
+
### Authorization
|
785
|
+
|
786
|
+
[oauth2](../README.md#oauth2)
|
787
|
+
|
788
|
+
### HTTP request headers
|
789
|
+
|
790
|
+
- **Content-Type**: application/json
|
791
|
+
- **Accept**: application/json, application/problem+json
|
792
|
+
|
793
|
+
|
794
|
+
## catlets_validate_config
|
795
|
+
|
796
|
+
> <CatletConfigValidationResult> catlets_validate_config(opts)
|
797
|
+
|
798
|
+
Validate catlet config
|
799
|
+
|
800
|
+
Performs a quick validation of the catlet configuration
|
801
|
+
|
802
|
+
### Examples
|
803
|
+
|
804
|
+
```ruby
|
805
|
+
require 'time'
|
806
|
+
require 'compute_client'
|
807
|
+
# setup authorization
|
808
|
+
ComputeClient.configure do |config|
|
809
|
+
# Configure OAuth2 access token for authorization: oauth2
|
810
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
811
|
+
end
|
812
|
+
|
813
|
+
api_instance = ComputeClient::CatletsApi.new
|
814
|
+
opts = {
|
815
|
+
validate_config_request: ComputeClient::ValidateConfigRequest.new({configuration: 3.56}) # ValidateConfigRequest |
|
816
|
+
}
|
817
|
+
|
818
|
+
begin
|
819
|
+
# Validate catlet config
|
820
|
+
result = api_instance.catlets_validate_config(opts)
|
821
|
+
p result
|
822
|
+
rescue ComputeClient::ApiError => e
|
823
|
+
puts "Error when calling CatletsApi->catlets_validate_config: #{e}"
|
824
|
+
end
|
825
|
+
```
|
826
|
+
|
827
|
+
#### Using the catlets_validate_config_with_http_info variant
|
828
|
+
|
829
|
+
This returns an Array which contains the response data, status code and headers.
|
830
|
+
|
831
|
+
> <Array(<CatletConfigValidationResult>, Integer, Hash)> catlets_validate_config_with_http_info(opts)
|
832
|
+
|
833
|
+
```ruby
|
834
|
+
begin
|
835
|
+
# Validate catlet config
|
836
|
+
data, status_code, headers = api_instance.catlets_validate_config_with_http_info(opts)
|
837
|
+
p status_code # => 2xx
|
838
|
+
p headers # => { ... }
|
839
|
+
p data # => <CatletConfigValidationResult>
|
840
|
+
rescue ComputeClient::ApiError => e
|
841
|
+
puts "Error when calling CatletsApi->catlets_validate_config_with_http_info: #{e}"
|
842
|
+
end
|
843
|
+
```
|
844
|
+
|
845
|
+
### Parameters
|
846
|
+
|
847
|
+
| Name | Type | Description | Notes |
|
848
|
+
| ---- | ---- | ----------- | ----- |
|
849
|
+
| **validate_config_request** | [**ValidateConfigRequest**](ValidateConfigRequest.md) | | [optional] |
|
850
|
+
|
851
|
+
### Return type
|
852
|
+
|
853
|
+
[**CatletConfigValidationResult**](CatletConfigValidationResult.md)
|
854
|
+
|
855
|
+
### Authorization
|
856
|
+
|
857
|
+
[oauth2](../README.md#oauth2)
|
858
|
+
|
859
|
+
### HTTP request headers
|
860
|
+
|
861
|
+
- **Content-Type**: application/json
|
862
|
+
- **Accept**: application/json, application/problem+json
|
863
|
+
|