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