hatchet-sdk 0.13.0 → 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 +13 -0
- data/lib/hatchet/clients/rest/.openapi-generator/FILES +15 -0
- data/lib/hatchet/clients/rest/README.md +26 -6
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/api_token_api.rb +71 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/concurrency_api.rb +71 -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/api/tenant_api.rb +71 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_token.rb +16 -4
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_api_token_request.rb +32 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_role.rb +321 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_role_list.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/token_capability.rb +341 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/token_capability_list.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_key.rb +1 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_strategy.rb +1 -1
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_concurrency_totals.rb +320 -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 +15 -0
- data/lib/hatchet/version.rb +1 -1
- data/lib/hatchet/worker/durable_event_listener.rb +7 -7
- metadata +17 -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,19 @@ 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
|
+
|
|
14
|
+
## [0.13.1] - 2026-11-30
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Optional field `capabilities` on the `APIToken` and `CreateAPITokenRequest` REST types, the capabilities that limit which REST operations and gRPC procedures an API token can call. Tokens created without it hold `all`.
|
|
19
|
+
- `api_token_capability_list` and `tenant_role_list` REST methods, which list the capabilities an API token can hold and the roles a tenant member can hold.
|
|
20
|
+
|
|
8
21
|
## [0.13.0] - 2026-11-23
|
|
9
22
|
|
|
10
23
|
### 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
|
|
@@ -158,8 +159,12 @@ lib/hatchet-sdk-rest/models/tenant_queue_metrics.rb
|
|
|
158
159
|
lib/hatchet-sdk-rest/models/tenant_resource.rb
|
|
159
160
|
lib/hatchet-sdk-rest/models/tenant_resource_limit.rb
|
|
160
161
|
lib/hatchet-sdk-rest/models/tenant_resource_policy.rb
|
|
162
|
+
lib/hatchet-sdk-rest/models/tenant_role.rb
|
|
163
|
+
lib/hatchet-sdk-rest/models/tenant_role_list.rb
|
|
161
164
|
lib/hatchet-sdk-rest/models/tenant_step_run_queue_metrics.rb
|
|
162
165
|
lib/hatchet-sdk-rest/models/tenant_version.rb
|
|
166
|
+
lib/hatchet-sdk-rest/models/token_capability.rb
|
|
167
|
+
lib/hatchet-sdk-rest/models/token_capability_list.rb
|
|
163
168
|
lib/hatchet-sdk-rest/models/trigger_run_result.rb
|
|
164
169
|
lib/hatchet-sdk-rest/models/trigger_workflow_run_request.rb
|
|
165
170
|
lib/hatchet-sdk-rest/models/update_cron_workflow_trigger_request.rb
|
|
@@ -191,7 +196,9 @@ lib/hatchet-sdk-rest/models/v1_concurrency_scope.rb
|
|
|
191
196
|
lib/hatchet-sdk-rest/models/v1_concurrency_strategy.rb
|
|
192
197
|
lib/hatchet-sdk-rest/models/v1_concurrency_strategy_list.rb
|
|
193
198
|
lib/hatchet-sdk-rest/models/v1_concurrency_strategy_usage.rb
|
|
199
|
+
lib/hatchet-sdk-rest/models/v1_concurrency_totals.rb
|
|
194
200
|
lib/hatchet-sdk-rest/models/v1_create_filter_request.rb
|
|
201
|
+
lib/hatchet-sdk-rest/models/v1_create_sandbox_provider_request.rb
|
|
195
202
|
lib/hatchet-sdk-rest/models/v1_create_serverless_endpoint_request.rb
|
|
196
203
|
lib/hatchet-sdk-rest/models/v1_create_webhook_request.rb
|
|
197
204
|
lib/hatchet-sdk-rest/models/v1_create_webhook_request_api_key.rb
|
|
@@ -220,6 +227,13 @@ lib/hatchet-sdk-rest/models/v1_replayed_tasks.rb
|
|
|
220
227
|
lib/hatchet-sdk-rest/models/v1_restore_task_response.rb
|
|
221
228
|
lib/hatchet-sdk-rest/models/v1_running_detail_count.rb
|
|
222
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
|
|
223
237
|
lib/hatchet-sdk-rest/models/v1_serverless_endpoint.rb
|
|
224
238
|
lib/hatchet-sdk-rest/models/v1_serverless_endpoint_check_stage.rb
|
|
225
239
|
lib/hatchet-sdk-rest/models/v1_serverless_endpoint_event.rb
|
|
@@ -247,6 +261,7 @@ lib/hatchet-sdk-rest/models/v1_task_timing.rb
|
|
|
247
261
|
lib/hatchet-sdk-rest/models/v1_task_timing_list.rb
|
|
248
262
|
lib/hatchet-sdk-rest/models/v1_trigger_workflow_run_request.rb
|
|
249
263
|
lib/hatchet-sdk-rest/models/v1_update_filter_request.rb
|
|
264
|
+
lib/hatchet-sdk-rest/models/v1_update_sandbox_provider_request.rb
|
|
250
265
|
lib/hatchet-sdk-rest/models/v1_update_serverless_endpoint_request.rb
|
|
251
266
|
lib/hatchet-sdk-rest/models/v1_update_webhook_request.rb
|
|
252
267
|
lib/hatchet-sdk-rest/models/v1_wait_item.rb
|
|
@@ -76,16 +76,13 @@ end
|
|
|
76
76
|
|
|
77
77
|
api_instance = HatchetSdkRest::APITokenApi.new
|
|
78
78
|
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
79
|
-
opts = {
|
|
80
|
-
create_api_token_request: HatchetSdkRest::CreateAPITokenRequest.new({name: 'name_example'}) # CreateAPITokenRequest |
|
|
81
|
-
}
|
|
82
79
|
|
|
83
80
|
begin
|
|
84
|
-
#
|
|
85
|
-
result = api_instance.
|
|
81
|
+
#List API token capabilities
|
|
82
|
+
result = api_instance.api_token_capability_list(tenant)
|
|
86
83
|
p result
|
|
87
84
|
rescue HatchetSdkRest::ApiError => e
|
|
88
|
-
puts "Exception when calling APITokenApi->
|
|
85
|
+
puts "Exception when calling APITokenApi->api_token_capability_list: #{e}"
|
|
89
86
|
end
|
|
90
87
|
|
|
91
88
|
```
|
|
@@ -96,12 +93,14 @@ All URIs are relative to *http://localhost*
|
|
|
96
93
|
|
|
97
94
|
Class | Method | HTTP request | Description
|
|
98
95
|
------------ | ------------- | ------------- | -------------
|
|
96
|
+
*HatchetSdkRest::APITokenApi* | [**api_token_capability_list**](docs/APITokenApi.md#api_token_capability_list) | **GET** /api/v1/tenants/{tenant}/api-tokens/capabilities | List API token capabilities
|
|
99
97
|
*HatchetSdkRest::APITokenApi* | [**api_token_create**](docs/APITokenApi.md#api_token_create) | **POST** /api/v1/tenants/{tenant}/api-tokens | Create API Token
|
|
100
98
|
*HatchetSdkRest::APITokenApi* | [**api_token_list**](docs/APITokenApi.md#api_token_list) | **GET** /api/v1/tenants/{tenant}/api-tokens | List API Tokens
|
|
101
99
|
*HatchetSdkRest::APITokenApi* | [**api_token_update_revoke**](docs/APITokenApi.md#api_token_update_revoke) | **POST** /api/v1/api-tokens/{api-token} | Revoke API Token
|
|
102
100
|
*HatchetSdkRest::CELApi* | [**v1_cel_debug**](docs/CELApi.md#v1_cel_debug) | **POST** /api/v1/stable/tenants/{tenant}/cel/debug | Debug a CEL expression
|
|
103
101
|
*HatchetSdkRest::ConcurrencyApi* | [**v1_concurrency_key_list**](docs/ConcurrencyApi.md#v1_concurrency_key_list) | **GET** /api/v1/stable/tenants/{tenant}/concurrency/strategies/{scope}/{strategy}/keys | List concurrency keys
|
|
104
102
|
*HatchetSdkRest::ConcurrencyApi* | [**v1_concurrency_strategy_list**](docs/ConcurrencyApi.md#v1_concurrency_strategy_list) | **GET** /api/v1/stable/tenants/{tenant}/concurrency/strategies | List concurrency strategies
|
|
103
|
+
*HatchetSdkRest::ConcurrencyApi* | [**v1_concurrency_totals_get**](docs/ConcurrencyApi.md#v1_concurrency_totals_get) | **GET** /api/v1/stable/tenants/{tenant}/concurrency/totals | Get concurrency totals
|
|
105
104
|
*HatchetSdkRest::DefaultApi* | [**info_get_version**](docs/DefaultApi.md#info_get_version) | **GET** /api/v1/version | We return the version for the currently running server
|
|
106
105
|
*HatchetSdkRest::DefaultApi* | [**monitoring_post_run_probe**](docs/DefaultApi.md#monitoring_post_run_probe) | **POST** /api/v1/monitoring/{tenant}/probe | Detailed Health Probe For the Instance
|
|
107
106
|
*HatchetSdkRest::DefaultApi* | [**tenant_invite_delete**](docs/DefaultApi.md#tenant_invite_delete) | **DELETE** /api/v1/tenants/{tenant}/invites/{tenant-invite} | Delete invite
|
|
@@ -144,6 +143,12 @@ Class | Method | HTTP request | Description
|
|
|
144
143
|
*HatchetSdkRest::SNSApi* | [**sns_create**](docs/SNSApi.md#sns_create) | **POST** /api/v1/tenants/{tenant}/sns | Create SNS integration
|
|
145
144
|
*HatchetSdkRest::SNSApi* | [**sns_delete**](docs/SNSApi.md#sns_delete) | **DELETE** /api/v1/sns/{sns} | Delete SNS integration
|
|
146
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
|
|
147
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
|
|
148
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
|
|
149
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
|
|
@@ -190,6 +195,7 @@ Class | Method | HTTP request | Description
|
|
|
190
195
|
*HatchetSdkRest::TenantApi* | [**tenant_member_list**](docs/TenantApi.md#tenant_member_list) | **GET** /api/v1/tenants/{tenant}/members | List tenant members
|
|
191
196
|
*HatchetSdkRest::TenantApi* | [**tenant_member_update**](docs/TenantApi.md#tenant_member_update) | **PATCH** /api/v1/tenants/{tenant}/members/{member} | Update a tenant member
|
|
192
197
|
*HatchetSdkRest::TenantApi* | [**tenant_resource_policy_get**](docs/TenantApi.md#tenant_resource_policy_get) | **GET** /api/v1/tenants/{tenant}/resource-policy | Create tenant alert email group
|
|
198
|
+
*HatchetSdkRest::TenantApi* | [**tenant_role_list**](docs/TenantApi.md#tenant_role_list) | **GET** /api/v1/tenants/{tenant}/roles | List tenant roles
|
|
193
199
|
*HatchetSdkRest::TenantApi* | [**tenant_update**](docs/TenantApi.md#tenant_update) | **PATCH** /api/v1/tenants/{tenant} | Update tenant
|
|
194
200
|
*HatchetSdkRest::TenantApi* | [**user_list_tenant_invites**](docs/TenantApi.md#user_list_tenant_invites) | **GET** /api/v1/users/invites | List tenant invites
|
|
195
201
|
*HatchetSdkRest::UserApi* | [**tenant_memberships_list**](docs/UserApi.md#tenant_memberships_list) | **GET** /api/v1/users/memberships | List tenant memberships
|
|
@@ -376,8 +382,12 @@ Class | Method | HTTP request | Description
|
|
|
376
382
|
- [HatchetSdkRest::TenantResource](docs/TenantResource.md)
|
|
377
383
|
- [HatchetSdkRest::TenantResourceLimit](docs/TenantResourceLimit.md)
|
|
378
384
|
- [HatchetSdkRest::TenantResourcePolicy](docs/TenantResourcePolicy.md)
|
|
385
|
+
- [HatchetSdkRest::TenantRole](docs/TenantRole.md)
|
|
386
|
+
- [HatchetSdkRest::TenantRoleList](docs/TenantRoleList.md)
|
|
379
387
|
- [HatchetSdkRest::TenantStepRunQueueMetrics](docs/TenantStepRunQueueMetrics.md)
|
|
380
388
|
- [HatchetSdkRest::TenantVersion](docs/TenantVersion.md)
|
|
389
|
+
- [HatchetSdkRest::TokenCapability](docs/TokenCapability.md)
|
|
390
|
+
- [HatchetSdkRest::TokenCapabilityList](docs/TokenCapabilityList.md)
|
|
381
391
|
- [HatchetSdkRest::TriggerRunResult](docs/TriggerRunResult.md)
|
|
382
392
|
- [HatchetSdkRest::TriggerWorkflowRunRequest](docs/TriggerWorkflowRunRequest.md)
|
|
383
393
|
- [HatchetSdkRest::UpdateCronWorkflowTriggerRequest](docs/UpdateCronWorkflowTriggerRequest.md)
|
|
@@ -409,7 +419,9 @@ Class | Method | HTTP request | Description
|
|
|
409
419
|
- [HatchetSdkRest::V1ConcurrencyStrategy](docs/V1ConcurrencyStrategy.md)
|
|
410
420
|
- [HatchetSdkRest::V1ConcurrencyStrategyList](docs/V1ConcurrencyStrategyList.md)
|
|
411
421
|
- [HatchetSdkRest::V1ConcurrencyStrategyUsage](docs/V1ConcurrencyStrategyUsage.md)
|
|
422
|
+
- [HatchetSdkRest::V1ConcurrencyTotals](docs/V1ConcurrencyTotals.md)
|
|
412
423
|
- [HatchetSdkRest::V1CreateFilterRequest](docs/V1CreateFilterRequest.md)
|
|
424
|
+
- [HatchetSdkRest::V1CreateSandboxProviderRequest](docs/V1CreateSandboxProviderRequest.md)
|
|
413
425
|
- [HatchetSdkRest::V1CreateServerlessEndpointRequest](docs/V1CreateServerlessEndpointRequest.md)
|
|
414
426
|
- [HatchetSdkRest::V1CreateWebhookRequest](docs/V1CreateWebhookRequest.md)
|
|
415
427
|
- [HatchetSdkRest::V1CreateWebhookRequestAPIKey](docs/V1CreateWebhookRequestAPIKey.md)
|
|
@@ -438,6 +450,13 @@ Class | Method | HTTP request | Description
|
|
|
438
450
|
- [HatchetSdkRest::V1RestoreTaskResponse](docs/V1RestoreTaskResponse.md)
|
|
439
451
|
- [HatchetSdkRest::V1RunningDetailCount](docs/V1RunningDetailCount.md)
|
|
440
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)
|
|
441
460
|
- [HatchetSdkRest::V1ServerlessEndpoint](docs/V1ServerlessEndpoint.md)
|
|
442
461
|
- [HatchetSdkRest::V1ServerlessEndpointCheckStage](docs/V1ServerlessEndpointCheckStage.md)
|
|
443
462
|
- [HatchetSdkRest::V1ServerlessEndpointEvent](docs/V1ServerlessEndpointEvent.md)
|
|
@@ -465,6 +484,7 @@ Class | Method | HTTP request | Description
|
|
|
465
484
|
- [HatchetSdkRest::V1TaskTimingList](docs/V1TaskTimingList.md)
|
|
466
485
|
- [HatchetSdkRest::V1TriggerWorkflowRunRequest](docs/V1TriggerWorkflowRunRequest.md)
|
|
467
486
|
- [HatchetSdkRest::V1UpdateFilterRequest](docs/V1UpdateFilterRequest.md)
|
|
487
|
+
- [HatchetSdkRest::V1UpdateSandboxProviderRequest](docs/V1UpdateSandboxProviderRequest.md)
|
|
468
488
|
- [HatchetSdkRest::V1UpdateServerlessEndpointRequest](docs/V1UpdateServerlessEndpointRequest.md)
|
|
469
489
|
- [HatchetSdkRest::V1UpdateWebhookRequest](docs/V1UpdateWebhookRequest.md)
|
|
470
490
|
- [HatchetSdkRest::V1WaitItem](docs/V1WaitItem.md)
|
|
@@ -19,6 +19,77 @@ module HatchetSdkRest
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# List API token capabilities
|
|
23
|
+
# List the capabilities an API token in this tenant can hold, with the bundles that group them
|
|
24
|
+
# @param tenant [String] The tenant id
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [TokenCapabilityList]
|
|
27
|
+
def api_token_capability_list(tenant, opts = {})
|
|
28
|
+
data, _status_code, _headers = api_token_capability_list_with_http_info(tenant, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# List API token capabilities
|
|
33
|
+
# List the capabilities an API token in this tenant can hold, with the bundles that group them
|
|
34
|
+
# @param tenant [String] The tenant id
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(TokenCapabilityList, Integer, Hash)>] TokenCapabilityList data, response status code and response headers
|
|
37
|
+
def api_token_capability_list_with_http_info(tenant, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: APITokenApi.api_token_capability_list ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'tenant' is set
|
|
42
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling APITokenApi.api_token_capability_list"
|
|
44
|
+
end
|
|
45
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
46
|
+
fail ArgumentError, 'invalid value for "tenant" when calling APITokenApi.api_token_capability_list, the character length must be smaller than or equal to 36.'
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
50
|
+
fail ArgumentError, 'invalid value for "tenant" when calling APITokenApi.api_token_capability_list, the character length must be greater than or equal to 36.'
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = '/api/v1/tenants/{tenant}/api-tokens/capabilities'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = opts[:query_params] || {}
|
|
58
|
+
|
|
59
|
+
# header parameters
|
|
60
|
+
header_params = opts[:header_params] || {}
|
|
61
|
+
# HTTP header 'Accept' (if needed)
|
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
63
|
+
|
|
64
|
+
# form parameters
|
|
65
|
+
form_params = opts[:form_params] || {}
|
|
66
|
+
|
|
67
|
+
# http body (model)
|
|
68
|
+
post_body = opts[:debug_body]
|
|
69
|
+
|
|
70
|
+
# return_type
|
|
71
|
+
return_type = opts[:debug_return_type] || 'TokenCapabilityList'
|
|
72
|
+
|
|
73
|
+
# auth_names
|
|
74
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
75
|
+
|
|
76
|
+
new_options = opts.merge(
|
|
77
|
+
:operation => :"APITokenApi.api_token_capability_list",
|
|
78
|
+
:header_params => header_params,
|
|
79
|
+
:query_params => query_params,
|
|
80
|
+
:form_params => form_params,
|
|
81
|
+
:body => post_body,
|
|
82
|
+
:auth_names => auth_names,
|
|
83
|
+
:return_type => return_type
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
87
|
+
if @api_client.config.debugging
|
|
88
|
+
@api_client.config.logger.debug "API called: APITokenApi#api_token_capability_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
89
|
+
end
|
|
90
|
+
return data, status_code, headers
|
|
91
|
+
end
|
|
92
|
+
|
|
22
93
|
# Create API Token
|
|
23
94
|
# Create an API token for a tenant
|
|
24
95
|
# @param tenant [String] The tenant id
|
|
@@ -184,5 +184,76 @@ module HatchetSdkRest
|
|
|
184
184
|
end
|
|
185
185
|
return data, status_code, headers
|
|
186
186
|
end
|
|
187
|
+
|
|
188
|
+
# Get concurrency totals
|
|
189
|
+
# Gets the tenant-wide concurrency totals. A run in a chain of strategies holds a slot in each of them, so these are not the sums of the per-strategy counts.
|
|
190
|
+
# @param tenant [String] The tenant id
|
|
191
|
+
# @param [Hash] opts the optional parameters
|
|
192
|
+
# @return [V1ConcurrencyTotals]
|
|
193
|
+
def v1_concurrency_totals_get(tenant, opts = {})
|
|
194
|
+
data, _status_code, _headers = v1_concurrency_totals_get_with_http_info(tenant, opts)
|
|
195
|
+
data
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Get concurrency totals
|
|
199
|
+
# Gets the tenant-wide concurrency totals. A run in a chain of strategies holds a slot in each of them, so these are not the sums of the per-strategy counts.
|
|
200
|
+
# @param tenant [String] The tenant id
|
|
201
|
+
# @param [Hash] opts the optional parameters
|
|
202
|
+
# @return [Array<(V1ConcurrencyTotals, Integer, Hash)>] V1ConcurrencyTotals data, response status code and response headers
|
|
203
|
+
def v1_concurrency_totals_get_with_http_info(tenant, opts = {})
|
|
204
|
+
if @api_client.config.debugging
|
|
205
|
+
@api_client.config.logger.debug 'Calling API: ConcurrencyApi.v1_concurrency_totals_get ...'
|
|
206
|
+
end
|
|
207
|
+
# verify the required parameter 'tenant' is set
|
|
208
|
+
if @api_client.config.client_side_validation && tenant.nil?
|
|
209
|
+
fail ArgumentError, "Missing the required parameter 'tenant' when calling ConcurrencyApi.v1_concurrency_totals_get"
|
|
210
|
+
end
|
|
211
|
+
if @api_client.config.client_side_validation && tenant.to_s.length > 36
|
|
212
|
+
fail ArgumentError, 'invalid value for "tenant" when calling ConcurrencyApi.v1_concurrency_totals_get, the character length must be smaller than or equal to 36.'
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if @api_client.config.client_side_validation && tenant.to_s.length < 36
|
|
216
|
+
fail ArgumentError, 'invalid value for "tenant" when calling ConcurrencyApi.v1_concurrency_totals_get, the character length must be greater than or equal to 36.'
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# resource path
|
|
220
|
+
local_var_path = '/api/v1/stable/tenants/{tenant}/concurrency/totals'.sub('{' + 'tenant' + '}', CGI.escape(tenant.to_s))
|
|
221
|
+
|
|
222
|
+
# query parameters
|
|
223
|
+
query_params = opts[:query_params] || {}
|
|
224
|
+
|
|
225
|
+
# header parameters
|
|
226
|
+
header_params = opts[:header_params] || {}
|
|
227
|
+
# HTTP header 'Accept' (if needed)
|
|
228
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
229
|
+
|
|
230
|
+
# form parameters
|
|
231
|
+
form_params = opts[:form_params] || {}
|
|
232
|
+
|
|
233
|
+
# http body (model)
|
|
234
|
+
post_body = opts[:debug_body]
|
|
235
|
+
|
|
236
|
+
# return_type
|
|
237
|
+
return_type = opts[:debug_return_type] || 'V1ConcurrencyTotals'
|
|
238
|
+
|
|
239
|
+
# auth_names
|
|
240
|
+
auth_names = opts[:debug_auth_names] || ['cookieAuth', 'bearerAuth']
|
|
241
|
+
|
|
242
|
+
new_options = opts.merge(
|
|
243
|
+
:operation => :"ConcurrencyApi.v1_concurrency_totals_get",
|
|
244
|
+
:header_params => header_params,
|
|
245
|
+
:query_params => query_params,
|
|
246
|
+
:form_params => form_params,
|
|
247
|
+
:body => post_body,
|
|
248
|
+
:auth_names => auth_names,
|
|
249
|
+
:return_type => return_type
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
253
|
+
if @api_client.config.debugging
|
|
254
|
+
@api_client.config.logger.debug "API called: ConcurrencyApi#v1_concurrency_totals_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
255
|
+
end
|
|
256
|
+
return data, status_code, headers
|
|
257
|
+
end
|
|
187
258
|
end
|
|
188
259
|
end
|