hatchet-sdk 0.13.1 → 0.13.2
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/hatchet/clients/rest/.openapi-generator/FILES +10 -0
- data/lib/hatchet/clients/rest/README.md +15 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/sandbox_provider_api.rb +474 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_sandbox_provider_request.rb +393 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_sandbox_provider.rb +486 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_sandbox_provider_event.rb +374 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_sandbox_provider_event_kind.rb +46 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_sandbox_provider_event_list.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_sandbox_provider_kind.rb +44 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_sandbox_provider_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_sandbox_provider_status.rb +242 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_update_sandbox_provider_request.rb +329 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest.rb +10 -0
- data/lib/hatchet/version.rb +1 -1
- data/lib/hatchet/worker/durable_event_listener.rb +7 -7
- metadata +12 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7c25bee8394393a612c76ee2f0e8b26b7355514594a69ee970283d5c2dc5a4bd
|
|
4
|
+
data.tar.gz: 252305692655848bab7bbda918f16dc96f5138f31a3d6e15343900f2c339c168
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e02fec767b47ce5bc0e25f6160e13b67f6e432f059e142234923a1bed40c176e3462143532c9d3569ba66743dab1665a3df71ba433c56ae5e064e656530b80b
|
|
7
|
+
data.tar.gz: 54fffcd89c7fbe1955885a6e4e291e42ae54be03f40e560b4e2a23c51e509815a955ec9b4010440f01407096c20f21d9f92048fa4d73a8851f1f3372785b8614
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to Hatchet's Ruby SDK will be documented in this changelog.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.13.2] - 2026-12-02
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Internal names in the durable event listener now say "satisfied entry" instead of "completion", matching the engine. No behavior change.
|
|
13
|
+
|
|
8
14
|
## [0.13.1] - 2026-11-30
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -23,6 +23,7 @@ lib/hatchet-sdk-rest/api/log_api.rb
|
|
|
23
23
|
lib/hatchet-sdk-rest/api/metadata_api.rb
|
|
24
24
|
lib/hatchet-sdk-rest/api/observability_api.rb
|
|
25
25
|
lib/hatchet-sdk-rest/api/rate_limits_api.rb
|
|
26
|
+
lib/hatchet-sdk-rest/api/sandbox_provider_api.rb
|
|
26
27
|
lib/hatchet-sdk-rest/api/serverless_api.rb
|
|
27
28
|
lib/hatchet-sdk-rest/api/slack_api.rb
|
|
28
29
|
lib/hatchet-sdk-rest/api/sns_api.rb
|
|
@@ -197,6 +198,7 @@ lib/hatchet-sdk-rest/models/v1_concurrency_strategy_list.rb
|
|
|
197
198
|
lib/hatchet-sdk-rest/models/v1_concurrency_strategy_usage.rb
|
|
198
199
|
lib/hatchet-sdk-rest/models/v1_concurrency_totals.rb
|
|
199
200
|
lib/hatchet-sdk-rest/models/v1_create_filter_request.rb
|
|
201
|
+
lib/hatchet-sdk-rest/models/v1_create_sandbox_provider_request.rb
|
|
200
202
|
lib/hatchet-sdk-rest/models/v1_create_serverless_endpoint_request.rb
|
|
201
203
|
lib/hatchet-sdk-rest/models/v1_create_webhook_request.rb
|
|
202
204
|
lib/hatchet-sdk-rest/models/v1_create_webhook_request_api_key.rb
|
|
@@ -225,6 +227,13 @@ lib/hatchet-sdk-rest/models/v1_replayed_tasks.rb
|
|
|
225
227
|
lib/hatchet-sdk-rest/models/v1_restore_task_response.rb
|
|
226
228
|
lib/hatchet-sdk-rest/models/v1_running_detail_count.rb
|
|
227
229
|
lib/hatchet-sdk-rest/models/v1_running_filter.rb
|
|
230
|
+
lib/hatchet-sdk-rest/models/v1_sandbox_provider.rb
|
|
231
|
+
lib/hatchet-sdk-rest/models/v1_sandbox_provider_event.rb
|
|
232
|
+
lib/hatchet-sdk-rest/models/v1_sandbox_provider_event_kind.rb
|
|
233
|
+
lib/hatchet-sdk-rest/models/v1_sandbox_provider_event_list.rb
|
|
234
|
+
lib/hatchet-sdk-rest/models/v1_sandbox_provider_kind.rb
|
|
235
|
+
lib/hatchet-sdk-rest/models/v1_sandbox_provider_list.rb
|
|
236
|
+
lib/hatchet-sdk-rest/models/v1_sandbox_provider_status.rb
|
|
228
237
|
lib/hatchet-sdk-rest/models/v1_serverless_endpoint.rb
|
|
229
238
|
lib/hatchet-sdk-rest/models/v1_serverless_endpoint_check_stage.rb
|
|
230
239
|
lib/hatchet-sdk-rest/models/v1_serverless_endpoint_event.rb
|
|
@@ -252,6 +261,7 @@ lib/hatchet-sdk-rest/models/v1_task_timing.rb
|
|
|
252
261
|
lib/hatchet-sdk-rest/models/v1_task_timing_list.rb
|
|
253
262
|
lib/hatchet-sdk-rest/models/v1_trigger_workflow_run_request.rb
|
|
254
263
|
lib/hatchet-sdk-rest/models/v1_update_filter_request.rb
|
|
264
|
+
lib/hatchet-sdk-rest/models/v1_update_sandbox_provider_request.rb
|
|
255
265
|
lib/hatchet-sdk-rest/models/v1_update_serverless_endpoint_request.rb
|
|
256
266
|
lib/hatchet-sdk-rest/models/v1_update_webhook_request.rb
|
|
257
267
|
lib/hatchet-sdk-rest/models/v1_wait_item.rb
|
|
@@ -143,6 +143,12 @@ Class | Method | HTTP request | Description
|
|
|
143
143
|
*HatchetSdkRest::SNSApi* | [**sns_create**](docs/SNSApi.md#sns_create) | **POST** /api/v1/tenants/{tenant}/sns | Create SNS integration
|
|
144
144
|
*HatchetSdkRest::SNSApi* | [**sns_delete**](docs/SNSApi.md#sns_delete) | **DELETE** /api/v1/sns/{sns} | Delete SNS integration
|
|
145
145
|
*HatchetSdkRest::SNSApi* | [**sns_list**](docs/SNSApi.md#sns_list) | **GET** /api/v1/tenants/{tenant}/sns | List SNS integrations
|
|
146
|
+
*HatchetSdkRest::SandboxProviderApi* | [**v1_sandbox_provider_create**](docs/SandboxProviderApi.md#v1_sandbox_provider_create) | **POST** /api/v1/stable/tenants/{tenant}/sandbox/providers | Create Sandbox Provider
|
|
147
|
+
*HatchetSdkRest::SandboxProviderApi* | [**v1_sandbox_provider_delete**](docs/SandboxProviderApi.md#v1_sandbox_provider_delete) | **DELETE** /api/v1/stable/sandbox/providers/{v1-sandbox-provider} | Delete Sandbox Provider
|
|
148
|
+
*HatchetSdkRest::SandboxProviderApi* | [**v1_sandbox_provider_events_list**](docs/SandboxProviderApi.md#v1_sandbox_provider_events_list) | **GET** /api/v1/stable/sandbox/providers/{v1-sandbox-provider}/events | List Sandbox Provider Events
|
|
149
|
+
*HatchetSdkRest::SandboxProviderApi* | [**v1_sandbox_provider_get**](docs/SandboxProviderApi.md#v1_sandbox_provider_get) | **GET** /api/v1/stable/sandbox/providers/{v1-sandbox-provider} | Get Sandbox Provider
|
|
150
|
+
*HatchetSdkRest::SandboxProviderApi* | [**v1_sandbox_provider_list**](docs/SandboxProviderApi.md#v1_sandbox_provider_list) | **GET** /api/v1/stable/tenants/{tenant}/sandbox/providers | List Sandbox Providers
|
|
151
|
+
*HatchetSdkRest::SandboxProviderApi* | [**v1_sandbox_provider_update**](docs/SandboxProviderApi.md#v1_sandbox_provider_update) | **PATCH** /api/v1/stable/sandbox/providers/{v1-sandbox-provider} | Update Sandbox Provider
|
|
146
152
|
*HatchetSdkRest::ServerlessApi* | [**v1_serverless_endpoint_create**](docs/ServerlessApi.md#v1_serverless_endpoint_create) | **POST** /api/v1/stable/tenants/{tenant}/serverless/endpoints | Create a serverless endpoint
|
|
147
153
|
*HatchetSdkRest::ServerlessApi* | [**v1_serverless_endpoint_delete**](docs/ServerlessApi.md#v1_serverless_endpoint_delete) | **DELETE** /api/v1/stable/serverless/endpoints/{v1-serverless-endpoint} | Delete a serverless endpoint
|
|
148
154
|
*HatchetSdkRest::ServerlessApi* | [**v1_serverless_endpoint_event_list**](docs/ServerlessApi.md#v1_serverless_endpoint_event_list) | **GET** /api/v1/stable/serverless/endpoints/{v1-serverless-endpoint}/events | List serverless endpoint events
|
|
@@ -415,6 +421,7 @@ Class | Method | HTTP request | Description
|
|
|
415
421
|
- [HatchetSdkRest::V1ConcurrencyStrategyUsage](docs/V1ConcurrencyStrategyUsage.md)
|
|
416
422
|
- [HatchetSdkRest::V1ConcurrencyTotals](docs/V1ConcurrencyTotals.md)
|
|
417
423
|
- [HatchetSdkRest::V1CreateFilterRequest](docs/V1CreateFilterRequest.md)
|
|
424
|
+
- [HatchetSdkRest::V1CreateSandboxProviderRequest](docs/V1CreateSandboxProviderRequest.md)
|
|
418
425
|
- [HatchetSdkRest::V1CreateServerlessEndpointRequest](docs/V1CreateServerlessEndpointRequest.md)
|
|
419
426
|
- [HatchetSdkRest::V1CreateWebhookRequest](docs/V1CreateWebhookRequest.md)
|
|
420
427
|
- [HatchetSdkRest::V1CreateWebhookRequestAPIKey](docs/V1CreateWebhookRequestAPIKey.md)
|
|
@@ -443,6 +450,13 @@ Class | Method | HTTP request | Description
|
|
|
443
450
|
- [HatchetSdkRest::V1RestoreTaskResponse](docs/V1RestoreTaskResponse.md)
|
|
444
451
|
- [HatchetSdkRest::V1RunningDetailCount](docs/V1RunningDetailCount.md)
|
|
445
452
|
- [HatchetSdkRest::V1RunningFilter](docs/V1RunningFilter.md)
|
|
453
|
+
- [HatchetSdkRest::V1SandboxProvider](docs/V1SandboxProvider.md)
|
|
454
|
+
- [HatchetSdkRest::V1SandboxProviderEvent](docs/V1SandboxProviderEvent.md)
|
|
455
|
+
- [HatchetSdkRest::V1SandboxProviderEventKind](docs/V1SandboxProviderEventKind.md)
|
|
456
|
+
- [HatchetSdkRest::V1SandboxProviderEventList](docs/V1SandboxProviderEventList.md)
|
|
457
|
+
- [HatchetSdkRest::V1SandboxProviderKind](docs/V1SandboxProviderKind.md)
|
|
458
|
+
- [HatchetSdkRest::V1SandboxProviderList](docs/V1SandboxProviderList.md)
|
|
459
|
+
- [HatchetSdkRest::V1SandboxProviderStatus](docs/V1SandboxProviderStatus.md)
|
|
446
460
|
- [HatchetSdkRest::V1ServerlessEndpoint](docs/V1ServerlessEndpoint.md)
|
|
447
461
|
- [HatchetSdkRest::V1ServerlessEndpointCheckStage](docs/V1ServerlessEndpointCheckStage.md)
|
|
448
462
|
- [HatchetSdkRest::V1ServerlessEndpointEvent](docs/V1ServerlessEndpointEvent.md)
|
|
@@ -470,6 +484,7 @@ Class | Method | HTTP request | Description
|
|
|
470
484
|
- [HatchetSdkRest::V1TaskTimingList](docs/V1TaskTimingList.md)
|
|
471
485
|
- [HatchetSdkRest::V1TriggerWorkflowRunRequest](docs/V1TriggerWorkflowRunRequest.md)
|
|
472
486
|
- [HatchetSdkRest::V1UpdateFilterRequest](docs/V1UpdateFilterRequest.md)
|
|
487
|
+
- [HatchetSdkRest::V1UpdateSandboxProviderRequest](docs/V1UpdateSandboxProviderRequest.md)
|
|
473
488
|
- [HatchetSdkRest::V1UpdateServerlessEndpointRequest](docs/V1UpdateServerlessEndpointRequest.md)
|
|
474
489
|
- [HatchetSdkRest::V1UpdateWebhookRequest](docs/V1UpdateWebhookRequest.md)
|
|
475
490
|
- [HatchetSdkRest::V1WaitItem](docs/V1WaitItem.md)
|
|
@@ -0,0 +1,474 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hatchet API
|
|
3
|
+
|
|
4
|
+
#The Hatchet API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.14.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module HatchetSdkRest
|
|
16
|
+
class SandboxProviderApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create Sandbox Provider
|
|
23
|
+
# Create a sandbox provider for the tenant. Requires the sandbox operator entitlement.
|
|
24
|
+
# @param tenant [String] The tenant id
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [V1CreateSandboxProviderRequest] :v1_create_sandbox_provider_request
|
|
27
|
+
# @return [V1SandboxProvider]
|
|
28
|
+
def v1_sandbox_provider_create(tenant, opts = {})
|
|
29
|
+
data, _status_code, _headers = v1_sandbox_provider_create_with_http_info(tenant, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Create Sandbox Provider
|
|
34
|
+
# Create a sandbox provider for the tenant. Requires the sandbox operator entitlement.
|
|
35
|
+
# @param tenant [String] The tenant id
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [V1CreateSandboxProviderRequest] :v1_create_sandbox_provider_request
|
|
38
|
+
# @return [Array<(V1SandboxProvider, Integer, Hash)>] V1SandboxProvider data, response status code and response headers
|
|
39
|
+
def v1_sandbox_provider_create_with_http_info(tenant, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: SandboxProviderApi.v1_sandbox_provider_create ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'tenant' is set
|
|
44
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling SandboxProviderApi.v1_sandbox_provider_create"
|
|
46
|
+
end
|
|
47
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
48
|
+
fail ArgumentError, 'invalid value for "tenant" when calling SandboxProviderApi.v1_sandbox_provider_create, the character length must be smaller than or equal to 36.'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
52
|
+
fail ArgumentError, 'invalid value for "tenant" when calling SandboxProviderApi.v1_sandbox_provider_create, the character length must be greater than or equal to 36.'
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# resource path
|
|
56
|
+
local_var_path = '/api/v1/stable/tenants/{tenant}/sandbox/providers'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
57
|
+
|
|
58
|
+
# query parameters
|
|
59
|
+
query_params = opts[:query_params] || {}
|
|
60
|
+
|
|
61
|
+
# header parameters
|
|
62
|
+
header_params = opts[:header_params] || {}
|
|
63
|
+
# HTTP header 'Accept' (if needed)
|
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
65
|
+
# HTTP header 'Content-Type'
|
|
66
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
67
|
+
if !content_type.nil?
|
|
68
|
+
header_params['Content-Type'] = content_type
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# form parameters
|
|
72
|
+
form_params = opts[:form_params] || {}
|
|
73
|
+
|
|
74
|
+
# http body (model)
|
|
75
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'v1_create_sandbox_provider_request'])
|
|
76
|
+
|
|
77
|
+
# return_type
|
|
78
|
+
return_type = opts[:debug_return_type] || 'V1SandboxProvider'
|
|
79
|
+
|
|
80
|
+
# auth_names
|
|
81
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
82
|
+
|
|
83
|
+
new_options = opts.merge(
|
|
84
|
+
:operation => :"SandboxProviderApi.v1_sandbox_provider_create",
|
|
85
|
+
:header_params => header_params,
|
|
86
|
+
:query_params => query_params,
|
|
87
|
+
:form_params => form_params,
|
|
88
|
+
:body => post_body,
|
|
89
|
+
:auth_names => auth_names,
|
|
90
|
+
:return_type => return_type
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
94
|
+
if @api_client.config.debugging
|
|
95
|
+
@api_client.config.logger.debug "API called: SandboxProviderApi#v1_sandbox_provider_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
96
|
+
end
|
|
97
|
+
return data, status_code, headers
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Delete Sandbox Provider
|
|
101
|
+
# Delete a sandbox provider and every sandbox and snapshot on it. Machines at the sandbox provider are not touched.
|
|
102
|
+
# @param v1_sandbox_provider [String] The sandbox provider id
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [V1SandboxProvider]
|
|
105
|
+
def v1_sandbox_provider_delete(v1_sandbox_provider, opts = {})
|
|
106
|
+
data, _status_code, _headers = v1_sandbox_provider_delete_with_http_info(v1_sandbox_provider, opts)
|
|
107
|
+
data
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Delete Sandbox Provider
|
|
111
|
+
# Delete a sandbox provider and every sandbox and snapshot on it. Machines at the sandbox provider are not touched.
|
|
112
|
+
# @param v1_sandbox_provider [String] The sandbox provider id
|
|
113
|
+
# @param [Hash] opts the optional parameters
|
|
114
|
+
# @return [Array<(V1SandboxProvider, Integer, Hash)>] V1SandboxProvider data, response status code and response headers
|
|
115
|
+
def v1_sandbox_provider_delete_with_http_info(v1_sandbox_provider, opts = {})
|
|
116
|
+
if @api_client.config.debugging
|
|
117
|
+
@api_client.config.logger.debug 'Calling API: SandboxProviderApi.v1_sandbox_provider_delete ...'
|
|
118
|
+
end
|
|
119
|
+
# verify the required parameter 'v1_sandbox_provider' is set
|
|
120
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.nil?
|
|
121
|
+
fail ArgumentError, "Missing the required parameter 'v1_sandbox_provider' when calling SandboxProviderApi.v1_sandbox_provider_delete"
|
|
122
|
+
end
|
|
123
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.to_s.length > 36
|
|
124
|
+
fail ArgumentError, 'invalid value for "v1_sandbox_provider" when calling SandboxProviderApi.v1_sandbox_provider_delete, the character length must be smaller than or equal to 36.'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.to_s.length < 36
|
|
128
|
+
fail ArgumentError, 'invalid value for "v1_sandbox_provider" when calling SandboxProviderApi.v1_sandbox_provider_delete, the character length must be greater than or equal to 36.'
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# resource path
|
|
132
|
+
local_var_path = '/api/v1/stable/sandbox/providers/{v1-sandbox-provider}'.sub('{' + 'v1-sandbox-provider' + '}', CGI.escape(v1_sandbox_provider.to_s))
|
|
133
|
+
|
|
134
|
+
# query parameters
|
|
135
|
+
query_params = opts[:query_params] || {}
|
|
136
|
+
|
|
137
|
+
# header parameters
|
|
138
|
+
header_params = opts[:header_params] || {}
|
|
139
|
+
# HTTP header 'Accept' (if needed)
|
|
140
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
141
|
+
|
|
142
|
+
# form parameters
|
|
143
|
+
form_params = opts[:form_params] || {}
|
|
144
|
+
|
|
145
|
+
# http body (model)
|
|
146
|
+
post_body = opts[:debug_body]
|
|
147
|
+
|
|
148
|
+
# return_type
|
|
149
|
+
return_type = opts[:debug_return_type] || 'V1SandboxProvider'
|
|
150
|
+
|
|
151
|
+
# auth_names
|
|
152
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
153
|
+
|
|
154
|
+
new_options = opts.merge(
|
|
155
|
+
:operation => :"SandboxProviderApi.v1_sandbox_provider_delete",
|
|
156
|
+
:header_params => header_params,
|
|
157
|
+
:query_params => query_params,
|
|
158
|
+
:form_params => form_params,
|
|
159
|
+
:body => post_body,
|
|
160
|
+
:auth_names => auth_names,
|
|
161
|
+
:return_type => return_type
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
165
|
+
if @api_client.config.debugging
|
|
166
|
+
@api_client.config.logger.debug "API called: SandboxProviderApi#v1_sandbox_provider_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
167
|
+
end
|
|
168
|
+
return data, status_code, headers
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# List Sandbox Provider Events
|
|
172
|
+
# List what the sandbox operator observed about the provider, newest first, within the tenant's retention window.
|
|
173
|
+
# @param v1_sandbox_provider [String] The sandbox provider id
|
|
174
|
+
# @param [Hash] opts the optional parameters
|
|
175
|
+
# @option opts [Integer] :limit The number of events to return, at most 500. Defaults to 100.
|
|
176
|
+
# @option opts [Time] :since Only return events created after this time
|
|
177
|
+
# @return [V1SandboxProviderEventList]
|
|
178
|
+
def v1_sandbox_provider_events_list(v1_sandbox_provider, opts = {})
|
|
179
|
+
data, _status_code, _headers = v1_sandbox_provider_events_list_with_http_info(v1_sandbox_provider, opts)
|
|
180
|
+
data
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# List Sandbox Provider Events
|
|
184
|
+
# List what the sandbox operator observed about the provider, newest first, within the tenant's retention window.
|
|
185
|
+
# @param v1_sandbox_provider [String] The sandbox provider id
|
|
186
|
+
# @param [Hash] opts the optional parameters
|
|
187
|
+
# @option opts [Integer] :limit The number of events to return, at most 500. Defaults to 100.
|
|
188
|
+
# @option opts [Time] :since Only return events created after this time
|
|
189
|
+
# @return [Array<(V1SandboxProviderEventList, Integer, Hash)>] V1SandboxProviderEventList data, response status code and response headers
|
|
190
|
+
def v1_sandbox_provider_events_list_with_http_info(v1_sandbox_provider, opts = {})
|
|
191
|
+
if @api_client.config.debugging
|
|
192
|
+
@api_client.config.logger.debug 'Calling API: SandboxProviderApi.v1_sandbox_provider_events_list ...'
|
|
193
|
+
end
|
|
194
|
+
# verify the required parameter 'v1_sandbox_provider' is set
|
|
195
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.nil?
|
|
196
|
+
fail ArgumentError, "Missing the required parameter 'v1_sandbox_provider' when calling SandboxProviderApi.v1_sandbox_provider_events_list"
|
|
197
|
+
end
|
|
198
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.to_s.length > 36
|
|
199
|
+
fail ArgumentError, 'invalid value for "v1_sandbox_provider" when calling SandboxProviderApi.v1_sandbox_provider_events_list, the character length must be smaller than or equal to 36.'
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.to_s.length < 36
|
|
203
|
+
fail ArgumentError, 'invalid value for "v1_sandbox_provider" when calling SandboxProviderApi.v1_sandbox_provider_events_list, the character length must be greater than or equal to 36.'
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# resource path
|
|
207
|
+
local_var_path = '/api/v1/stable/sandbox/providers/{v1-sandbox-provider}/events'.sub('{' + 'v1-sandbox-provider' + '}', CGI.escape(v1_sandbox_provider.to_s))
|
|
208
|
+
|
|
209
|
+
# query parameters
|
|
210
|
+
query_params = opts[:query_params] || {}
|
|
211
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
212
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
|
213
|
+
|
|
214
|
+
# header parameters
|
|
215
|
+
header_params = opts[:header_params] || {}
|
|
216
|
+
# HTTP header 'Accept' (if needed)
|
|
217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
218
|
+
|
|
219
|
+
# form parameters
|
|
220
|
+
form_params = opts[:form_params] || {}
|
|
221
|
+
|
|
222
|
+
# http body (model)
|
|
223
|
+
post_body = opts[:debug_body]
|
|
224
|
+
|
|
225
|
+
# return_type
|
|
226
|
+
return_type = opts[:debug_return_type] || 'V1SandboxProviderEventList'
|
|
227
|
+
|
|
228
|
+
# auth_names
|
|
229
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
230
|
+
|
|
231
|
+
new_options = opts.merge(
|
|
232
|
+
:operation => :"SandboxProviderApi.v1_sandbox_provider_events_list",
|
|
233
|
+
:header_params => header_params,
|
|
234
|
+
:query_params => query_params,
|
|
235
|
+
:form_params => form_params,
|
|
236
|
+
:body => post_body,
|
|
237
|
+
:auth_names => auth_names,
|
|
238
|
+
:return_type => return_type
|
|
239
|
+
)
|
|
240
|
+
|
|
241
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
242
|
+
if @api_client.config.debugging
|
|
243
|
+
@api_client.config.logger.debug "API called: SandboxProviderApi#v1_sandbox_provider_events_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
244
|
+
end
|
|
245
|
+
return data, status_code, headers
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Get Sandbox Provider
|
|
249
|
+
# Get a sandbox provider
|
|
250
|
+
# @param v1_sandbox_provider [String] The sandbox provider id
|
|
251
|
+
# @param [Hash] opts the optional parameters
|
|
252
|
+
# @return [V1SandboxProvider]
|
|
253
|
+
def v1_sandbox_provider_get(v1_sandbox_provider, opts = {})
|
|
254
|
+
data, _status_code, _headers = v1_sandbox_provider_get_with_http_info(v1_sandbox_provider, opts)
|
|
255
|
+
data
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Get Sandbox Provider
|
|
259
|
+
# Get a sandbox provider
|
|
260
|
+
# @param v1_sandbox_provider [String] The sandbox provider id
|
|
261
|
+
# @param [Hash] opts the optional parameters
|
|
262
|
+
# @return [Array<(V1SandboxProvider, Integer, Hash)>] V1SandboxProvider data, response status code and response headers
|
|
263
|
+
def v1_sandbox_provider_get_with_http_info(v1_sandbox_provider, opts = {})
|
|
264
|
+
if @api_client.config.debugging
|
|
265
|
+
@api_client.config.logger.debug 'Calling API: SandboxProviderApi.v1_sandbox_provider_get ...'
|
|
266
|
+
end
|
|
267
|
+
# verify the required parameter 'v1_sandbox_provider' is set
|
|
268
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.nil?
|
|
269
|
+
fail ArgumentError, "Missing the required parameter 'v1_sandbox_provider' when calling SandboxProviderApi.v1_sandbox_provider_get"
|
|
270
|
+
end
|
|
271
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.to_s.length > 36
|
|
272
|
+
fail ArgumentError, 'invalid value for "v1_sandbox_provider" when calling SandboxProviderApi.v1_sandbox_provider_get, the character length must be smaller than or equal to 36.'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.to_s.length < 36
|
|
276
|
+
fail ArgumentError, 'invalid value for "v1_sandbox_provider" when calling SandboxProviderApi.v1_sandbox_provider_get, the character length must be greater than or equal to 36.'
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# resource path
|
|
280
|
+
local_var_path = '/api/v1/stable/sandbox/providers/{v1-sandbox-provider}'.sub('{' + 'v1-sandbox-provider' + '}', CGI.escape(v1_sandbox_provider.to_s))
|
|
281
|
+
|
|
282
|
+
# query parameters
|
|
283
|
+
query_params = opts[:query_params] || {}
|
|
284
|
+
|
|
285
|
+
# header parameters
|
|
286
|
+
header_params = opts[:header_params] || {}
|
|
287
|
+
# HTTP header 'Accept' (if needed)
|
|
288
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
289
|
+
|
|
290
|
+
# form parameters
|
|
291
|
+
form_params = opts[:form_params] || {}
|
|
292
|
+
|
|
293
|
+
# http body (model)
|
|
294
|
+
post_body = opts[:debug_body]
|
|
295
|
+
|
|
296
|
+
# return_type
|
|
297
|
+
return_type = opts[:debug_return_type] || 'V1SandboxProvider'
|
|
298
|
+
|
|
299
|
+
# auth_names
|
|
300
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
301
|
+
|
|
302
|
+
new_options = opts.merge(
|
|
303
|
+
:operation => :"SandboxProviderApi.v1_sandbox_provider_get",
|
|
304
|
+
:header_params => header_params,
|
|
305
|
+
:query_params => query_params,
|
|
306
|
+
:form_params => form_params,
|
|
307
|
+
:body => post_body,
|
|
308
|
+
:auth_names => auth_names,
|
|
309
|
+
:return_type => return_type
|
|
310
|
+
)
|
|
311
|
+
|
|
312
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
313
|
+
if @api_client.config.debugging
|
|
314
|
+
@api_client.config.logger.debug "API called: SandboxProviderApi#v1_sandbox_provider_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
315
|
+
end
|
|
316
|
+
return data, status_code, headers
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# List Sandbox Providers
|
|
320
|
+
# List the sandbox providers of the tenant
|
|
321
|
+
# @param tenant [String] The tenant id
|
|
322
|
+
# @param [Hash] opts the optional parameters
|
|
323
|
+
# @option opts [Integer] :offset The number to skip
|
|
324
|
+
# @option opts [Integer] :limit The number to limit by
|
|
325
|
+
# @return [V1SandboxProviderList]
|
|
326
|
+
def v1_sandbox_provider_list(tenant, opts = {})
|
|
327
|
+
data, _status_code, _headers = v1_sandbox_provider_list_with_http_info(tenant, opts)
|
|
328
|
+
data
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# List Sandbox Providers
|
|
332
|
+
# List the sandbox providers of the tenant
|
|
333
|
+
# @param tenant [String] The tenant id
|
|
334
|
+
# @param [Hash] opts the optional parameters
|
|
335
|
+
# @option opts [Integer] :offset The number to skip
|
|
336
|
+
# @option opts [Integer] :limit The number to limit by
|
|
337
|
+
# @return [Array<(V1SandboxProviderList, Integer, Hash)>] V1SandboxProviderList data, response status code and response headers
|
|
338
|
+
def v1_sandbox_provider_list_with_http_info(tenant, opts = {})
|
|
339
|
+
if @api_client.config.debugging
|
|
340
|
+
@api_client.config.logger.debug 'Calling API: SandboxProviderApi.v1_sandbox_provider_list ...'
|
|
341
|
+
end
|
|
342
|
+
# verify the required parameter 'tenant' is set
|
|
343
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
344
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling SandboxProviderApi.v1_sandbox_provider_list"
|
|
345
|
+
end
|
|
346
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
347
|
+
fail ArgumentError, 'invalid value for "tenant" when calling SandboxProviderApi.v1_sandbox_provider_list, the character length must be smaller than or equal to 36.'
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
351
|
+
fail ArgumentError, 'invalid value for "tenant" when calling SandboxProviderApi.v1_sandbox_provider_list, the character length must be greater than or equal to 36.'
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# resource path
|
|
355
|
+
local_var_path = '/api/v1/stable/tenants/{tenant}/sandbox/providers'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
356
|
+
|
|
357
|
+
# query parameters
|
|
358
|
+
query_params = opts[:query_params] || {}
|
|
359
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
360
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
361
|
+
|
|
362
|
+
# header parameters
|
|
363
|
+
header_params = opts[:header_params] || {}
|
|
364
|
+
# HTTP header 'Accept' (if needed)
|
|
365
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
366
|
+
|
|
367
|
+
# form parameters
|
|
368
|
+
form_params = opts[:form_params] || {}
|
|
369
|
+
|
|
370
|
+
# http body (model)
|
|
371
|
+
post_body = opts[:debug_body]
|
|
372
|
+
|
|
373
|
+
# return_type
|
|
374
|
+
return_type = opts[:debug_return_type] || 'V1SandboxProviderList'
|
|
375
|
+
|
|
376
|
+
# auth_names
|
|
377
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
378
|
+
|
|
379
|
+
new_options = opts.merge(
|
|
380
|
+
:operation => :"SandboxProviderApi.v1_sandbox_provider_list",
|
|
381
|
+
:header_params => header_params,
|
|
382
|
+
:query_params => query_params,
|
|
383
|
+
:form_params => form_params,
|
|
384
|
+
:body => post_body,
|
|
385
|
+
:auth_names => auth_names,
|
|
386
|
+
:return_type => return_type
|
|
387
|
+
)
|
|
388
|
+
|
|
389
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
390
|
+
if @api_client.config.debugging
|
|
391
|
+
@api_client.config.logger.debug "API called: SandboxProviderApi#v1_sandbox_provider_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
392
|
+
end
|
|
393
|
+
return data, status_code, headers
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
# Update Sandbox Provider
|
|
397
|
+
# Update a sandbox provider
|
|
398
|
+
# @param v1_sandbox_provider [String] The sandbox provider id
|
|
399
|
+
# @param [Hash] opts the optional parameters
|
|
400
|
+
# @option opts [V1UpdateSandboxProviderRequest] :v1_update_sandbox_provider_request
|
|
401
|
+
# @return [V1SandboxProvider]
|
|
402
|
+
def v1_sandbox_provider_update(v1_sandbox_provider, opts = {})
|
|
403
|
+
data, _status_code, _headers = v1_sandbox_provider_update_with_http_info(v1_sandbox_provider, opts)
|
|
404
|
+
data
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
# Update Sandbox Provider
|
|
408
|
+
# Update a sandbox provider
|
|
409
|
+
# @param v1_sandbox_provider [String] The sandbox provider id
|
|
410
|
+
# @param [Hash] opts the optional parameters
|
|
411
|
+
# @option opts [V1UpdateSandboxProviderRequest] :v1_update_sandbox_provider_request
|
|
412
|
+
# @return [Array<(V1SandboxProvider, Integer, Hash)>] V1SandboxProvider data, response status code and response headers
|
|
413
|
+
def v1_sandbox_provider_update_with_http_info(v1_sandbox_provider, opts = {})
|
|
414
|
+
if @api_client.config.debugging
|
|
415
|
+
@api_client.config.logger.debug 'Calling API: SandboxProviderApi.v1_sandbox_provider_update ...'
|
|
416
|
+
end
|
|
417
|
+
# verify the required parameter 'v1_sandbox_provider' is set
|
|
418
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.nil?
|
|
419
|
+
fail ArgumentError, "Missing the required parameter 'v1_sandbox_provider' when calling SandboxProviderApi.v1_sandbox_provider_update"
|
|
420
|
+
end
|
|
421
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.to_s.length > 36
|
|
422
|
+
fail ArgumentError, 'invalid value for "v1_sandbox_provider" when calling SandboxProviderApi.v1_sandbox_provider_update, the character length must be smaller than or equal to 36.'
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
if @api_client.config.client_side_validation && v1_sandbox_provider.to_s.length < 36
|
|
426
|
+
fail ArgumentError, 'invalid value for "v1_sandbox_provider" when calling SandboxProviderApi.v1_sandbox_provider_update, the character length must be greater than or equal to 36.'
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# resource path
|
|
430
|
+
local_var_path = '/api/v1/stable/sandbox/providers/{v1-sandbox-provider}'.sub('{' + 'v1-sandbox-provider' + '}', CGI.escape(v1_sandbox_provider.to_s))
|
|
431
|
+
|
|
432
|
+
# query parameters
|
|
433
|
+
query_params = opts[:query_params] || {}
|
|
434
|
+
|
|
435
|
+
# header parameters
|
|
436
|
+
header_params = opts[:header_params] || {}
|
|
437
|
+
# HTTP header 'Accept' (if needed)
|
|
438
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
439
|
+
# HTTP header 'Content-Type'
|
|
440
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
441
|
+
if !content_type.nil?
|
|
442
|
+
header_params['Content-Type'] = content_type
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
# form parameters
|
|
446
|
+
form_params = opts[:form_params] || {}
|
|
447
|
+
|
|
448
|
+
# http body (model)
|
|
449
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'v1_update_sandbox_provider_request'])
|
|
450
|
+
|
|
451
|
+
# return_type
|
|
452
|
+
return_type = opts[:debug_return_type] || 'V1SandboxProvider'
|
|
453
|
+
|
|
454
|
+
# auth_names
|
|
455
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
456
|
+
|
|
457
|
+
new_options = opts.merge(
|
|
458
|
+
:operation => :"SandboxProviderApi.v1_sandbox_provider_update",
|
|
459
|
+
:header_params => header_params,
|
|
460
|
+
:query_params => query_params,
|
|
461
|
+
:form_params => form_params,
|
|
462
|
+
:body => post_body,
|
|
463
|
+
:auth_names => auth_names,
|
|
464
|
+
:return_type => return_type
|
|
465
|
+
)
|
|
466
|
+
|
|
467
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
468
|
+
if @api_client.config.debugging
|
|
469
|
+
@api_client.config.logger.debug "API called: SandboxProviderApi#v1_sandbox_provider_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
470
|
+
end
|
|
471
|
+
return data, status_code, headers
|
|
472
|
+
end
|
|
473
|
+
end
|
|
474
|
+
end
|