hatchet-sdk 0.0.0 → 0.1.0.pre.alpha
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 +3 -2
- data/CLAUDE.md +61 -4
- data/INTEGRATION_TESTING.md +176 -0
- data/LICENSE.txt +1 -1
- data/REST_API_GENERATION.md +257 -0
- data/Rakefile +9 -0
- data/Rakefile.rest +133 -0
- data/config/openapi_generator_config.json +31 -0
- data/lib/hatchet/clients/rest/.gitignore +39 -0
- data/lib/hatchet/clients/rest/.gitlab-ci.yml +26 -0
- data/lib/hatchet/clients/rest/.openapi-generator/FILES +420 -0
- data/lib/hatchet/clients/rest/.openapi-generator/VERSION +1 -0
- data/lib/hatchet/clients/rest/.openapi-generator-ignore +23 -0
- data/lib/hatchet/clients/rest/.rspec +2 -0
- data/lib/hatchet/clients/rest/.rubocop.yml +148 -0
- data/lib/hatchet/clients/rest/.travis.yml +11 -0
- data/lib/hatchet/clients/rest/Gemfile +9 -0
- data/lib/hatchet/clients/rest/README.md +420 -0
- data/lib/hatchet/clients/rest/Rakefile +10 -0
- data/lib/hatchet/clients/rest/docs/APIError.md +24 -0
- data/lib/hatchet/clients/rest/docs/APIErrors.md +18 -0
- data/lib/hatchet/clients/rest/docs/APIMeta.md +30 -0
- data/lib/hatchet/clients/rest/docs/APIMetaAuth.md +18 -0
- data/lib/hatchet/clients/rest/docs/APIMetaIntegration.md +20 -0
- data/lib/hatchet/clients/rest/docs/APIMetaPosthog.md +20 -0
- data/lib/hatchet/clients/rest/docs/APIResourceMeta.md +22 -0
- data/lib/hatchet/clients/rest/docs/APIToken.md +22 -0
- data/lib/hatchet/clients/rest/docs/APITokenApi.md +235 -0
- data/lib/hatchet/clients/rest/docs/AcceptInviteRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/BulkCreateEventRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/CancelEventRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/ConcurrencyLimitStrategy.md +15 -0
- data/lib/hatchet/clients/rest/docs/CreateAPITokenRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/CreateAPITokenResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/CreateCronWorkflowTriggerRequest.md +26 -0
- data/lib/hatchet/clients/rest/docs/CreateEventRequest.md +26 -0
- data/lib/hatchet/clients/rest/docs/CreatePullRequestFromStepRun.md +18 -0
- data/lib/hatchet/clients/rest/docs/CreateSNSIntegrationRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/CreateTenantAlertEmailGroupRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/CreateTenantInviteRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/CreateTenantRequest.md +24 -0
- data/lib/hatchet/clients/rest/docs/CronWorkflows.md +40 -0
- data/lib/hatchet/clients/rest/docs/CronWorkflowsList.md +20 -0
- data/lib/hatchet/clients/rest/docs/CronWorkflowsMethod.md +15 -0
- data/lib/hatchet/clients/rest/docs/CronWorkflowsOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/DefaultApi.md +602 -0
- data/lib/hatchet/clients/rest/docs/Event.md +28 -0
- data/lib/hatchet/clients/rest/docs/EventApi.md +809 -0
- data/lib/hatchet/clients/rest/docs/EventData.md +18 -0
- data/lib/hatchet/clients/rest/docs/EventKeyList.md +20 -0
- data/lib/hatchet/clients/rest/docs/EventList.md +20 -0
- data/lib/hatchet/clients/rest/docs/EventOrderByDirection.md +15 -0
- data/lib/hatchet/clients/rest/docs/EventOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/EventUpdateCancel200Response.md +18 -0
- data/lib/hatchet/clients/rest/docs/EventWorkflowRunSummary.md +28 -0
- data/lib/hatchet/clients/rest/docs/Events.md +20 -0
- data/lib/hatchet/clients/rest/docs/FilterApi.md +402 -0
- data/lib/hatchet/clients/rest/docs/GetStepRunDiffResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/GithubApi.md +73 -0
- data/lib/hatchet/clients/rest/docs/HealthcheckApi.md +129 -0
- data/lib/hatchet/clients/rest/docs/InfoGetVersion200Response.md +18 -0
- data/lib/hatchet/clients/rest/docs/Job.md +30 -0
- data/lib/hatchet/clients/rest/docs/JobRun.md +48 -0
- data/lib/hatchet/clients/rest/docs/JobRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/ListAPITokensResponse.md +20 -0
- data/lib/hatchet/clients/rest/docs/ListPullRequestsResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/ListSNSIntegrations.md +20 -0
- data/lib/hatchet/clients/rest/docs/ListSlackWebhooks.md +20 -0
- data/lib/hatchet/clients/rest/docs/LogApi.md +171 -0
- data/lib/hatchet/clients/rest/docs/LogLine.md +22 -0
- data/lib/hatchet/clients/rest/docs/LogLineLevel.md +15 -0
- data/lib/hatchet/clients/rest/docs/LogLineList.md +20 -0
- data/lib/hatchet/clients/rest/docs/LogLineOrderByDirection.md +15 -0
- data/lib/hatchet/clients/rest/docs/LogLineOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/MetadataApi.md +203 -0
- data/lib/hatchet/clients/rest/docs/PaginationResponse.md +22 -0
- data/lib/hatchet/clients/rest/docs/PullRequest.md +32 -0
- data/lib/hatchet/clients/rest/docs/PullRequestState.md +15 -0
- data/lib/hatchet/clients/rest/docs/QueueMetrics.md +22 -0
- data/lib/hatchet/clients/rest/docs/RateLimit.md +28 -0
- data/lib/hatchet/clients/rest/docs/RateLimitList.md +20 -0
- data/lib/hatchet/clients/rest/docs/RateLimitOrderByDirection.md +15 -0
- data/lib/hatchet/clients/rest/docs/RateLimitOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/RateLimitsApi.md +94 -0
- data/lib/hatchet/clients/rest/docs/RecentStepRuns.md +30 -0
- data/lib/hatchet/clients/rest/docs/RejectInviteRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/ReplayEventRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/ReplayWorkflowRunsRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/ReplayWorkflowRunsResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/RerunStepRunRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/SNSApi.md +235 -0
- data/lib/hatchet/clients/rest/docs/SNSIntegration.md +24 -0
- data/lib/hatchet/clients/rest/docs/ScheduleWorkflowRunRequest.md +24 -0
- data/lib/hatchet/clients/rest/docs/ScheduledRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/ScheduledWorkflows.md +44 -0
- data/lib/hatchet/clients/rest/docs/ScheduledWorkflowsList.md +20 -0
- data/lib/hatchet/clients/rest/docs/ScheduledWorkflowsMethod.md +15 -0
- data/lib/hatchet/clients/rest/docs/ScheduledWorkflowsOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/SemaphoreSlots.md +28 -0
- data/lib/hatchet/clients/rest/docs/SlackApi.md +156 -0
- data/lib/hatchet/clients/rest/docs/SlackWebhook.md +28 -0
- data/lib/hatchet/clients/rest/docs/Step.md +32 -0
- data/lib/hatchet/clients/rest/docs/StepRun.md +68 -0
- data/lib/hatchet/clients/rest/docs/StepRunApi.md +560 -0
- data/lib/hatchet/clients/rest/docs/StepRunArchive.md +50 -0
- data/lib/hatchet/clients/rest/docs/StepRunArchiveList.md +20 -0
- data/lib/hatchet/clients/rest/docs/StepRunDiff.md +22 -0
- data/lib/hatchet/clients/rest/docs/StepRunEvent.md +36 -0
- data/lib/hatchet/clients/rest/docs/StepRunEventList.md +20 -0
- data/lib/hatchet/clients/rest/docs/StepRunEventReason.md +15 -0
- data/lib/hatchet/clients/rest/docs/StepRunEventSeverity.md +15 -0
- data/lib/hatchet/clients/rest/docs/StepRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/TaskApi.md +566 -0
- data/lib/hatchet/clients/rest/docs/Tenant.md +30 -0
- data/lib/hatchet/clients/rest/docs/TenantAlertEmailGroup.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantAlertEmailGroupList.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantAlertingSettings.md +30 -0
- data/lib/hatchet/clients/rest/docs/TenantApi.md +1362 -0
- data/lib/hatchet/clients/rest/docs/TenantInvite.md +28 -0
- data/lib/hatchet/clients/rest/docs/TenantInviteList.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantList.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantMember.md +24 -0
- data/lib/hatchet/clients/rest/docs/TenantMemberList.md +20 -0
- data/lib/hatchet/clients/rest/docs/TenantMemberRole.md +15 -0
- data/lib/hatchet/clients/rest/docs/TenantQueueMetrics.md +22 -0
- data/lib/hatchet/clients/rest/docs/TenantResource.md +15 -0
- data/lib/hatchet/clients/rest/docs/TenantResourceLimit.md +30 -0
- data/lib/hatchet/clients/rest/docs/TenantResourcePolicy.md +18 -0
- data/lib/hatchet/clients/rest/docs/TenantStepRunQueueMetrics.md +18 -0
- data/lib/hatchet/clients/rest/docs/TenantUIVersion.md +15 -0
- data/lib/hatchet/clients/rest/docs/TenantVersion.md +15 -0
- data/lib/hatchet/clients/rest/docs/TriggerWorkflowRunRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/UpdateTenantAlertEmailGroupRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/UpdateTenantInviteRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/UpdateTenantRequest.md +34 -0
- data/lib/hatchet/clients/rest/docs/UpdateWorkerRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/User.md +28 -0
- data/lib/hatchet/clients/rest/docs/UserApi.md +805 -0
- data/lib/hatchet/clients/rest/docs/UserChangePasswordRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/UserLoginRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/UserRegisterRequest.md +22 -0
- data/lib/hatchet/clients/rest/docs/UserTenantMembershipsList.md +20 -0
- data/lib/hatchet/clients/rest/docs/UserTenantPublic.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1CancelTaskRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1CancelledTasks.md +18 -0
- data/lib/hatchet/clients/rest/docs/V1CreateFilterRequest.md +24 -0
- data/lib/hatchet/clients/rest/docs/V1DagChildren.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1Event.md +36 -0
- data/lib/hatchet/clients/rest/docs/V1EventList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1EventTriggeredRun.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1EventWorkflowRunSummary.md +26 -0
- data/lib/hatchet/clients/rest/docs/V1Filter.md +28 -0
- data/lib/hatchet/clients/rest/docs/V1FilterList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1LogLine.md +28 -0
- data/lib/hatchet/clients/rest/docs/V1LogLineLevel.md +15 -0
- data/lib/hatchet/clients/rest/docs/V1LogLineList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1ReplayTaskRequest.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1ReplayedTasks.md +18 -0
- data/lib/hatchet/clients/rest/docs/V1TaskEvent.md +38 -0
- data/lib/hatchet/clients/rest/docs/V1TaskEventList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1TaskEventType.md +15 -0
- data/lib/hatchet/clients/rest/docs/V1TaskFilter.md +26 -0
- data/lib/hatchet/clients/rest/docs/V1TaskPointMetric.md +22 -0
- data/lib/hatchet/clients/rest/docs/V1TaskPointMetrics.md +18 -0
- data/lib/hatchet/clients/rest/docs/V1TaskRunMetric.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1TaskRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/V1TaskStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/V1TaskSummary.md +72 -0
- data/lib/hatchet/clients/rest/docs/V1TaskSummaryList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1TaskTiming.md +46 -0
- data/lib/hatchet/clients/rest/docs/V1TaskTimingList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1TriggerWorkflowRunRequest.md +24 -0
- data/lib/hatchet/clients/rest/docs/V1UpdateFilterRequest.md +22 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowRun.md +46 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowRunDetails.md +26 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowRunDisplayName.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowRunDisplayNameList.md +20 -0
- data/lib/hatchet/clients/rest/docs/V1WorkflowType.md +15 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorker.md +22 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerCreateRequest.md +22 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerCreateResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerCreated.md +24 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerListResponse.md +20 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerRequest.md +22 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerRequestListResponse.md +18 -0
- data/lib/hatchet/clients/rest/docs/WebhookWorkerRequestMethod.md +15 -0
- data/lib/hatchet/clients/rest/docs/Worker.md +48 -0
- data/lib/hatchet/clients/rest/docs/WorkerApi.md +234 -0
- data/lib/hatchet/clients/rest/docs/WorkerLabel.md +22 -0
- data/lib/hatchet/clients/rest/docs/WorkerList.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkerRuntimeInfo.md +26 -0
- data/lib/hatchet/clients/rest/docs/WorkerRuntimeSDKs.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkerType.md +15 -0
- data/lib/hatchet/clients/rest/docs/Workflow.md +32 -0
- data/lib/hatchet/clients/rest/docs/WorkflowApi.md +1480 -0
- data/lib/hatchet/clients/rest/docs/WorkflowConcurrency.md +22 -0
- data/lib/hatchet/clients/rest/docs/WorkflowKind.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkflowList.md +22 -0
- data/lib/hatchet/clients/rest/docs/WorkflowMetrics.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRun.md +48 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunApi.md +477 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunList.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunOrderByDirection.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunOrderByField.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunShape.md +50 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunShapeItemForWorkflowRunDetails.md +24 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunStatus.md +15 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunTriggeredBy.md +26 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunsApi.md +572 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunsCancelRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunsMetrics.md +18 -0
- data/lib/hatchet/clients/rest/docs/WorkflowRunsMetricsCounts.md +28 -0
- data/lib/hatchet/clients/rest/docs/WorkflowTag.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowTriggerCronRef.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowTriggerEventRef.md +20 -0
- data/lib/hatchet/clients/rest/docs/WorkflowTriggers.md +26 -0
- data/lib/hatchet/clients/rest/docs/WorkflowUpdateRequest.md +18 -0
- data/lib/hatchet/clients/rest/docs/WorkflowVersion.md +40 -0
- data/lib/hatchet/clients/rest/docs/WorkflowVersionDefinition.md +18 -0
- data/lib/hatchet/clients/rest/docs/WorkflowVersionMeta.md +26 -0
- data/lib/hatchet/clients/rest/docs/WorkflowWorkersCount.md +22 -0
- data/lib/hatchet/clients/rest/git_push.sh +57 -0
- data/lib/hatchet/clients/rest/hatchet-sdk-rest.gemspec +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/api_token_api.rb +242 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/default_api.rb +622 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/event_api.rb +836 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/filter_api.rb +449 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/github_api.rb +107 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/healthcheck_api.rb +132 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/log_api.rb +182 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/metadata_api.rb +193 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/rate_limits_api.rb +108 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/slack_api.rb +164 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/sns_api.rb +242 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/step_run_api.rb +615 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/task_api.rb +599 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/tenant_api.rb +1327 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/user_api.rb +729 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/worker_api.rb +246 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_api.rb +1654 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_run_api.rb +540 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api/workflow_runs_api.rb +614 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api_client.rb +437 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/api_error.rb +58 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/configuration.rb +399 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/accept_invite_request.rb +255 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_error.rb +268 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_errors.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta.rb +279 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta_auth.rb +223 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta_integration.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_meta_posthog.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_resource_meta.rb +310 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/api_token.rb +300 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/bulk_create_event_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cancel_event_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/concurrency_limit_strategy.rb +42 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_api_token_request.rb +257 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_api_token_response.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_cron_workflow_trigger_request.rb +352 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_event_request.rb +295 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_pull_request_from_step_run.rb +237 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_sns_integration_request.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_tenant_alert_email_group_request.rb +240 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_tenant_invite_request.rb +287 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/create_tenant_request.rb +307 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cron_workflows.rb +509 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cron_workflows_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cron_workflows_method.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/cron_workflows_order_by_field.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event.rb +321 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_data.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_key_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_order_by_direction.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_order_by_field.rb +39 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_update_cancel200_response.rb +222 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/event_workflow_run_summary.rb +271 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/events.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/get_step_run_diff_response.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/info_get_version200_response.rb +237 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/job.rb +363 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/job_run.rb +464 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/job_run_status.rb +44 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/list_api_tokens_response.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/list_pull_requests_response.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/list_slack_webhooks.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/list_sns_integrations.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line.rb +292 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_level.rb +42 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_order_by_direction.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/log_line_order_by_field.rb +39 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/pagination_response.rb +241 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/pull_request.rb +441 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/pull_request_state.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/queue_metrics.rb +292 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rate_limit.rb +373 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rate_limit_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rate_limit_order_by_direction.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rate_limit_order_by_field.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/recent_step_runs.rb +365 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/reject_invite_request.rb +255 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/replay_event_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/replay_workflow_runs_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/replay_workflow_runs_response.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/rerun_step_run_request.rb +237 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/schedule_workflow_run_request.rb +326 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_run_status.rb +45 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_workflows.rb +538 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_workflows_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_workflows_method.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/scheduled_workflows_order_by_field.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/semaphore_slots.rb +343 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/slack_webhook.rb +372 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/sns_integration.rb +301 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step.rb +374 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run.rb +556 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_archive.rb +432 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_archive_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_diff.rb +289 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_event.rb +442 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_event_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_event_reason.rb +55 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_event_severity.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/step_run_status.rb +47 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant.rb +370 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_alert_email_group.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_alert_email_group_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_alerting_settings.rb +314 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_invite.rb +377 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_invite_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_member.rb +323 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_member_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_member_role.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_queue_metrics.rb +243 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_resource.rb +45 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_resource_limit.rb +370 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_resource_policy.rb +240 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_step_run_queue_metrics.rb +220 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_ui_version.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/tenant_version.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/trigger_workflow_run_request.rb +246 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_tenant_alert_email_group_request.rb +240 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_tenant_invite_request.rb +260 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_tenant_request.rb +323 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/update_worker_request.rb +221 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user.rb +321 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_change_password_request.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_login_request.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_register_request.rb +292 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_tenant_memberships_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/user_tenant_public.rb +248 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_cancel_task_request.rb +232 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_cancelled_tasks.rb +223 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_create_filter_request.rb +320 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_dag_children.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event.rb +380 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event_triggered_run.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_event_workflow_run_summary.rb +346 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_filter.rb +390 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_filter_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line.rb +344 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line_level.rb +42 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_log_line_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_replay_task_request.rb +232 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_replayed_tasks.rb +223 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event.rb +419 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_event_type.rb +58 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_filter.rb +279 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_point_metric.rb +289 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_point_metrics.rb +222 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_run_metric.rb +285 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_run_status.rb +43 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_status.rb +43 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_summary.rb +812 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_summary_list.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_timing.rb +581 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_task_timing_list.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_trigger_workflow_run_request.rb +283 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_update_filter_request.rb +241 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_run.rb +544 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_run_details.rb +331 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_run_display_name.rb +263 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_run_display_name_list.rb +266 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/v1_workflow_type.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker.rb +291 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_create_request.rb +294 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_create_response.rb +220 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_created.rb +318 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_list_response.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_request.rb +314 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_request_list_response.rb +223 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/webhook_worker_request_method.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker.rb +489 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_label.rb +274 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_runtime_info.rb +278 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_runtime_sdks.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/worker_type.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow.rb +346 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_concurrency.rb +314 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_kind.rb +41 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_list.rb +240 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_metrics.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run.rb +524 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_list.rb +231 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_order_by_direction.rb +40 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_order_by_field.rb +42 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_shape.rb +533 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_shape_item_for_workflow_run_details.rb +353 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_status.rb +45 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_run_triggered_by.rb +273 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_runs_cancel_request.rb +239 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_runs_metrics.rb +220 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_runs_metrics_counts.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_tag.rb +265 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_trigger_cron_ref.rb +229 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_trigger_event_ref.rb +229 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_triggers.rb +260 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_update_request.rb +221 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version.rb +392 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_definition.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_version_meta.rb +325 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/models/workflow_workers_count.rb +238 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest/version.rb +15 -0
- data/lib/hatchet/clients/rest/lib/hatchet-sdk-rest.rb +241 -0
- data/lib/hatchet/clients/rest/spec/spec_helper.rb +111 -0
- data/lib/hatchet/clients/rest.rb +126 -0
- data/lib/hatchet/clients.rb +71 -0
- data/lib/hatchet/config.rb +482 -0
- data/lib/hatchet/features/events.rb +265 -0
- data/lib/hatchet/features/runs.rb +423 -0
- data/lib/hatchet/version.rb +1 -1
- data/lib/hatchet-sdk.rb +74 -3
- data/scripts/generate.sh +167 -0
- data/scripts/generate_api.rb +174 -0
- data/sig/hatchet-sdk.rbs +525 -1
- metadata +491 -1
|
@@ -0,0 +1,1480 @@
|
|
|
1
|
+
# HatchetSdkRest::WorkflowApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**cron_workflow_list**](WorkflowApi.md#cron_workflow_list) | **GET** /api/v1/tenants/{tenant}/workflows/crons | Get cron job workflows |
|
|
8
|
+
| [**tenant_get_queue_metrics**](WorkflowApi.md#tenant_get_queue_metrics) | **GET** /api/v1/tenants/{tenant}/queue-metrics | Get workflow metrics |
|
|
9
|
+
| [**workflow_cron_delete**](WorkflowApi.md#workflow_cron_delete) | **DELETE** /api/v1/tenants/{tenant}/workflows/crons/{cron-workflow} | Delete cron job workflow run |
|
|
10
|
+
| [**workflow_cron_get**](WorkflowApi.md#workflow_cron_get) | **GET** /api/v1/tenants/{tenant}/workflows/crons/{cron-workflow} | Get cron job workflow run |
|
|
11
|
+
| [**workflow_delete**](WorkflowApi.md#workflow_delete) | **DELETE** /api/v1/workflows/{workflow} | Delete workflow |
|
|
12
|
+
| [**workflow_get**](WorkflowApi.md#workflow_get) | **GET** /api/v1/workflows/{workflow} | Get workflow |
|
|
13
|
+
| [**workflow_get_metrics**](WorkflowApi.md#workflow_get_metrics) | **GET** /api/v1/workflows/{workflow}/metrics | Get workflow metrics |
|
|
14
|
+
| [**workflow_get_workers_count**](WorkflowApi.md#workflow_get_workers_count) | **GET** /api/v1/tenants/{tenant}/workflows/{workflow}/worker-count | Get workflow worker count |
|
|
15
|
+
| [**workflow_list**](WorkflowApi.md#workflow_list) | **GET** /api/v1/tenants/{tenant}/workflows | Get workflows |
|
|
16
|
+
| [**workflow_run_get**](WorkflowApi.md#workflow_run_get) | **GET** /api/v1/tenants/{tenant}/workflow-runs/{workflow-run} | Get workflow run |
|
|
17
|
+
| [**workflow_run_get_metrics**](WorkflowApi.md#workflow_run_get_metrics) | **GET** /api/v1/tenants/{tenant}/workflows/runs/metrics | Get workflow runs metrics |
|
|
18
|
+
| [**workflow_run_get_shape**](WorkflowApi.md#workflow_run_get_shape) | **GET** /api/v1/tenants/{tenant}/workflow-runs/{workflow-run}/shape | Get workflow run |
|
|
19
|
+
| [**workflow_run_list**](WorkflowApi.md#workflow_run_list) | **GET** /api/v1/tenants/{tenant}/workflows/runs | Get workflow runs |
|
|
20
|
+
| [**workflow_scheduled_delete**](WorkflowApi.md#workflow_scheduled_delete) | **DELETE** /api/v1/tenants/{tenant}/workflows/scheduled/{scheduled-workflow-run} | Delete scheduled workflow run |
|
|
21
|
+
| [**workflow_scheduled_get**](WorkflowApi.md#workflow_scheduled_get) | **GET** /api/v1/tenants/{tenant}/workflows/scheduled/{scheduled-workflow-run} | Get scheduled workflow run |
|
|
22
|
+
| [**workflow_scheduled_list**](WorkflowApi.md#workflow_scheduled_list) | **GET** /api/v1/tenants/{tenant}/workflows/scheduled | Get scheduled workflow runs |
|
|
23
|
+
| [**workflow_update**](WorkflowApi.md#workflow_update) | **PATCH** /api/v1/workflows/{workflow} | Update workflow |
|
|
24
|
+
| [**workflow_version_get**](WorkflowApi.md#workflow_version_get) | **GET** /api/v1/workflows/{workflow}/versions | Get workflow version |
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## cron_workflow_list
|
|
28
|
+
|
|
29
|
+
> <CronWorkflowsList> cron_workflow_list(tenant, opts)
|
|
30
|
+
|
|
31
|
+
Get cron job workflows
|
|
32
|
+
|
|
33
|
+
Get all cron job workflow triggers for a tenant
|
|
34
|
+
|
|
35
|
+
### Examples
|
|
36
|
+
|
|
37
|
+
```ruby
|
|
38
|
+
require 'time'
|
|
39
|
+
require 'hatchet-sdk-rest'
|
|
40
|
+
# setup authorization
|
|
41
|
+
HatchetSdkRest.configure do |config|
|
|
42
|
+
# Configure API key authorization: cookieAuth
|
|
43
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
44
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
45
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
46
|
+
|
|
47
|
+
# Configure Bearer authorization: bearerAuth
|
|
48
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
52
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
53
|
+
opts = {
|
|
54
|
+
offset: 789, # Integer | The number to skip
|
|
55
|
+
limit: 789, # Integer | The number to limit by
|
|
56
|
+
workflow_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The workflow id to get runs for.
|
|
57
|
+
workflow_name: 'workflow_name_example', # String | The workflow name to get runs for.
|
|
58
|
+
cron_name: 'cron_name_example', # String | The cron name to get runs for.
|
|
59
|
+
additional_metadata: ['inner_example'], # Array<String> | A list of metadata key value pairs to filter by
|
|
60
|
+
order_by_field: HatchetSdkRest::CronWorkflowsOrderByField::NAME, # CronWorkflowsOrderByField | The order by field
|
|
61
|
+
order_by_direction: HatchetSdkRest::WorkflowRunOrderByDirection::ASC # WorkflowRunOrderByDirection | The order by direction
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
begin
|
|
65
|
+
# Get cron job workflows
|
|
66
|
+
result = api_instance.cron_workflow_list(tenant, opts)
|
|
67
|
+
p result
|
|
68
|
+
rescue HatchetSdkRest::ApiError => e
|
|
69
|
+
puts "Error when calling WorkflowApi->cron_workflow_list: #{e}"
|
|
70
|
+
end
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
#### Using the cron_workflow_list_with_http_info variant
|
|
74
|
+
|
|
75
|
+
This returns an Array which contains the response data, status code and headers.
|
|
76
|
+
|
|
77
|
+
> <Array(<CronWorkflowsList>, Integer, Hash)> cron_workflow_list_with_http_info(tenant, opts)
|
|
78
|
+
|
|
79
|
+
```ruby
|
|
80
|
+
begin
|
|
81
|
+
# Get cron job workflows
|
|
82
|
+
data, status_code, headers = api_instance.cron_workflow_list_with_http_info(tenant, opts)
|
|
83
|
+
p status_code # => 2xx
|
|
84
|
+
p headers # => { ... }
|
|
85
|
+
p data # => <CronWorkflowsList>
|
|
86
|
+
rescue HatchetSdkRest::ApiError => e
|
|
87
|
+
puts "Error when calling WorkflowApi->cron_workflow_list_with_http_info: #{e}"
|
|
88
|
+
end
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
| Name | Type | Description | Notes |
|
|
94
|
+
| ---- | ---- | ----------- | ----- |
|
|
95
|
+
| **tenant** | **String** | The tenant id | |
|
|
96
|
+
| **offset** | **Integer** | The number to skip | [optional] |
|
|
97
|
+
| **limit** | **Integer** | The number to limit by | [optional] |
|
|
98
|
+
| **workflow_id** | **String** | The workflow id to get runs for. | [optional] |
|
|
99
|
+
| **workflow_name** | **String** | The workflow name to get runs for. | [optional] |
|
|
100
|
+
| **cron_name** | **String** | The cron name to get runs for. | [optional] |
|
|
101
|
+
| **additional_metadata** | [**Array<String>**](String.md) | A list of metadata key value pairs to filter by | [optional] |
|
|
102
|
+
| **order_by_field** | [**CronWorkflowsOrderByField**](.md) | The order by field | [optional] |
|
|
103
|
+
| **order_by_direction** | [**WorkflowRunOrderByDirection**](.md) | The order by direction | [optional] |
|
|
104
|
+
|
|
105
|
+
### Return type
|
|
106
|
+
|
|
107
|
+
[**CronWorkflowsList**](CronWorkflowsList.md)
|
|
108
|
+
|
|
109
|
+
### Authorization
|
|
110
|
+
|
|
111
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
112
|
+
|
|
113
|
+
### HTTP request headers
|
|
114
|
+
|
|
115
|
+
- **Content-Type**: Not defined
|
|
116
|
+
- **Accept**: application/json
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## tenant_get_queue_metrics
|
|
120
|
+
|
|
121
|
+
> <TenantQueueMetrics> tenant_get_queue_metrics(tenant, opts)
|
|
122
|
+
|
|
123
|
+
Get workflow metrics
|
|
124
|
+
|
|
125
|
+
Get the queue metrics for the tenant
|
|
126
|
+
|
|
127
|
+
### Examples
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
require 'time'
|
|
131
|
+
require 'hatchet-sdk-rest'
|
|
132
|
+
# setup authorization
|
|
133
|
+
HatchetSdkRest.configure do |config|
|
|
134
|
+
# Configure API key authorization: cookieAuth
|
|
135
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
136
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
137
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
138
|
+
|
|
139
|
+
# Configure Bearer authorization: bearerAuth
|
|
140
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
144
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
145
|
+
opts = {
|
|
146
|
+
workflows: ['inner_example'], # Array<String> | A list of workflow IDs to filter by
|
|
147
|
+
additional_metadata: ['inner_example'] # Array<String> | A list of metadata key value pairs to filter by
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
begin
|
|
151
|
+
# Get workflow metrics
|
|
152
|
+
result = api_instance.tenant_get_queue_metrics(tenant, opts)
|
|
153
|
+
p result
|
|
154
|
+
rescue HatchetSdkRest::ApiError => e
|
|
155
|
+
puts "Error when calling WorkflowApi->tenant_get_queue_metrics: #{e}"
|
|
156
|
+
end
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
#### Using the tenant_get_queue_metrics_with_http_info variant
|
|
160
|
+
|
|
161
|
+
This returns an Array which contains the response data, status code and headers.
|
|
162
|
+
|
|
163
|
+
> <Array(<TenantQueueMetrics>, Integer, Hash)> tenant_get_queue_metrics_with_http_info(tenant, opts)
|
|
164
|
+
|
|
165
|
+
```ruby
|
|
166
|
+
begin
|
|
167
|
+
# Get workflow metrics
|
|
168
|
+
data, status_code, headers = api_instance.tenant_get_queue_metrics_with_http_info(tenant, opts)
|
|
169
|
+
p status_code # => 2xx
|
|
170
|
+
p headers # => { ... }
|
|
171
|
+
p data # => <TenantQueueMetrics>
|
|
172
|
+
rescue HatchetSdkRest::ApiError => e
|
|
173
|
+
puts "Error when calling WorkflowApi->tenant_get_queue_metrics_with_http_info: #{e}"
|
|
174
|
+
end
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Parameters
|
|
178
|
+
|
|
179
|
+
| Name | Type | Description | Notes |
|
|
180
|
+
| ---- | ---- | ----------- | ----- |
|
|
181
|
+
| **tenant** | **String** | The tenant id | |
|
|
182
|
+
| **workflows** | [**Array<String>**](String.md) | A list of workflow IDs to filter by | [optional] |
|
|
183
|
+
| **additional_metadata** | [**Array<String>**](String.md) | A list of metadata key value pairs to filter by | [optional] |
|
|
184
|
+
|
|
185
|
+
### Return type
|
|
186
|
+
|
|
187
|
+
[**TenantQueueMetrics**](TenantQueueMetrics.md)
|
|
188
|
+
|
|
189
|
+
### Authorization
|
|
190
|
+
|
|
191
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
192
|
+
|
|
193
|
+
### HTTP request headers
|
|
194
|
+
|
|
195
|
+
- **Content-Type**: Not defined
|
|
196
|
+
- **Accept**: application/json
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
## workflow_cron_delete
|
|
200
|
+
|
|
201
|
+
> workflow_cron_delete(tenant, cron_workflow)
|
|
202
|
+
|
|
203
|
+
Delete cron job workflow run
|
|
204
|
+
|
|
205
|
+
Delete a cron job workflow run for a tenant
|
|
206
|
+
|
|
207
|
+
### Examples
|
|
208
|
+
|
|
209
|
+
```ruby
|
|
210
|
+
require 'time'
|
|
211
|
+
require 'hatchet-sdk-rest'
|
|
212
|
+
# setup authorization
|
|
213
|
+
HatchetSdkRest.configure do |config|
|
|
214
|
+
# Configure API key authorization: cookieAuth
|
|
215
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
216
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
217
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
218
|
+
|
|
219
|
+
# Configure Bearer authorization: bearerAuth
|
|
220
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
224
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
225
|
+
cron_workflow = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The cron job id
|
|
226
|
+
|
|
227
|
+
begin
|
|
228
|
+
# Delete cron job workflow run
|
|
229
|
+
api_instance.workflow_cron_delete(tenant, cron_workflow)
|
|
230
|
+
rescue HatchetSdkRest::ApiError => e
|
|
231
|
+
puts "Error when calling WorkflowApi->workflow_cron_delete: #{e}"
|
|
232
|
+
end
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
#### Using the workflow_cron_delete_with_http_info variant
|
|
236
|
+
|
|
237
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
238
|
+
|
|
239
|
+
> <Array(nil, Integer, Hash)> workflow_cron_delete_with_http_info(tenant, cron_workflow)
|
|
240
|
+
|
|
241
|
+
```ruby
|
|
242
|
+
begin
|
|
243
|
+
# Delete cron job workflow run
|
|
244
|
+
data, status_code, headers = api_instance.workflow_cron_delete_with_http_info(tenant, cron_workflow)
|
|
245
|
+
p status_code # => 2xx
|
|
246
|
+
p headers # => { ... }
|
|
247
|
+
p data # => nil
|
|
248
|
+
rescue HatchetSdkRest::ApiError => e
|
|
249
|
+
puts "Error when calling WorkflowApi->workflow_cron_delete_with_http_info: #{e}"
|
|
250
|
+
end
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Parameters
|
|
254
|
+
|
|
255
|
+
| Name | Type | Description | Notes |
|
|
256
|
+
| ---- | ---- | ----------- | ----- |
|
|
257
|
+
| **tenant** | **String** | The tenant id | |
|
|
258
|
+
| **cron_workflow** | **String** | The cron job id | |
|
|
259
|
+
|
|
260
|
+
### Return type
|
|
261
|
+
|
|
262
|
+
nil (empty response body)
|
|
263
|
+
|
|
264
|
+
### Authorization
|
|
265
|
+
|
|
266
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
267
|
+
|
|
268
|
+
### HTTP request headers
|
|
269
|
+
|
|
270
|
+
- **Content-Type**: Not defined
|
|
271
|
+
- **Accept**: application/json
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
## workflow_cron_get
|
|
275
|
+
|
|
276
|
+
> <CronWorkflows> workflow_cron_get(tenant, cron_workflow)
|
|
277
|
+
|
|
278
|
+
Get cron job workflow run
|
|
279
|
+
|
|
280
|
+
Get a cron job workflow run for a tenant
|
|
281
|
+
|
|
282
|
+
### Examples
|
|
283
|
+
|
|
284
|
+
```ruby
|
|
285
|
+
require 'time'
|
|
286
|
+
require 'hatchet-sdk-rest'
|
|
287
|
+
# setup authorization
|
|
288
|
+
HatchetSdkRest.configure do |config|
|
|
289
|
+
# Configure API key authorization: cookieAuth
|
|
290
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
291
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
292
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
293
|
+
|
|
294
|
+
# Configure Bearer authorization: bearerAuth
|
|
295
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
299
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
300
|
+
cron_workflow = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The cron job id
|
|
301
|
+
|
|
302
|
+
begin
|
|
303
|
+
# Get cron job workflow run
|
|
304
|
+
result = api_instance.workflow_cron_get(tenant, cron_workflow)
|
|
305
|
+
p result
|
|
306
|
+
rescue HatchetSdkRest::ApiError => e
|
|
307
|
+
puts "Error when calling WorkflowApi->workflow_cron_get: #{e}"
|
|
308
|
+
end
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
#### Using the workflow_cron_get_with_http_info variant
|
|
312
|
+
|
|
313
|
+
This returns an Array which contains the response data, status code and headers.
|
|
314
|
+
|
|
315
|
+
> <Array(<CronWorkflows>, Integer, Hash)> workflow_cron_get_with_http_info(tenant, cron_workflow)
|
|
316
|
+
|
|
317
|
+
```ruby
|
|
318
|
+
begin
|
|
319
|
+
# Get cron job workflow run
|
|
320
|
+
data, status_code, headers = api_instance.workflow_cron_get_with_http_info(tenant, cron_workflow)
|
|
321
|
+
p status_code # => 2xx
|
|
322
|
+
p headers # => { ... }
|
|
323
|
+
p data # => <CronWorkflows>
|
|
324
|
+
rescue HatchetSdkRest::ApiError => e
|
|
325
|
+
puts "Error when calling WorkflowApi->workflow_cron_get_with_http_info: #{e}"
|
|
326
|
+
end
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
### Parameters
|
|
330
|
+
|
|
331
|
+
| Name | Type | Description | Notes |
|
|
332
|
+
| ---- | ---- | ----------- | ----- |
|
|
333
|
+
| **tenant** | **String** | The tenant id | |
|
|
334
|
+
| **cron_workflow** | **String** | The cron job id | |
|
|
335
|
+
|
|
336
|
+
### Return type
|
|
337
|
+
|
|
338
|
+
[**CronWorkflows**](CronWorkflows.md)
|
|
339
|
+
|
|
340
|
+
### Authorization
|
|
341
|
+
|
|
342
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
343
|
+
|
|
344
|
+
### HTTP request headers
|
|
345
|
+
|
|
346
|
+
- **Content-Type**: Not defined
|
|
347
|
+
- **Accept**: application/json
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
## workflow_delete
|
|
351
|
+
|
|
352
|
+
> workflow_delete(workflow)
|
|
353
|
+
|
|
354
|
+
Delete workflow
|
|
355
|
+
|
|
356
|
+
Delete a workflow for a tenant
|
|
357
|
+
|
|
358
|
+
### Examples
|
|
359
|
+
|
|
360
|
+
```ruby
|
|
361
|
+
require 'time'
|
|
362
|
+
require 'hatchet-sdk-rest'
|
|
363
|
+
# setup authorization
|
|
364
|
+
HatchetSdkRest.configure do |config|
|
|
365
|
+
# Configure API key authorization: cookieAuth
|
|
366
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
367
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
368
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
369
|
+
|
|
370
|
+
# Configure Bearer authorization: bearerAuth
|
|
371
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
375
|
+
workflow = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The workflow id
|
|
376
|
+
|
|
377
|
+
begin
|
|
378
|
+
# Delete workflow
|
|
379
|
+
api_instance.workflow_delete(workflow)
|
|
380
|
+
rescue HatchetSdkRest::ApiError => e
|
|
381
|
+
puts "Error when calling WorkflowApi->workflow_delete: #{e}"
|
|
382
|
+
end
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
#### Using the workflow_delete_with_http_info variant
|
|
386
|
+
|
|
387
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
388
|
+
|
|
389
|
+
> <Array(nil, Integer, Hash)> workflow_delete_with_http_info(workflow)
|
|
390
|
+
|
|
391
|
+
```ruby
|
|
392
|
+
begin
|
|
393
|
+
# Delete workflow
|
|
394
|
+
data, status_code, headers = api_instance.workflow_delete_with_http_info(workflow)
|
|
395
|
+
p status_code # => 2xx
|
|
396
|
+
p headers # => { ... }
|
|
397
|
+
p data # => nil
|
|
398
|
+
rescue HatchetSdkRest::ApiError => e
|
|
399
|
+
puts "Error when calling WorkflowApi->workflow_delete_with_http_info: #{e}"
|
|
400
|
+
end
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
### Parameters
|
|
404
|
+
|
|
405
|
+
| Name | Type | Description | Notes |
|
|
406
|
+
| ---- | ---- | ----------- | ----- |
|
|
407
|
+
| **workflow** | **String** | The workflow id | |
|
|
408
|
+
|
|
409
|
+
### Return type
|
|
410
|
+
|
|
411
|
+
nil (empty response body)
|
|
412
|
+
|
|
413
|
+
### Authorization
|
|
414
|
+
|
|
415
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
416
|
+
|
|
417
|
+
### HTTP request headers
|
|
418
|
+
|
|
419
|
+
- **Content-Type**: Not defined
|
|
420
|
+
- **Accept**: application/json
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
## workflow_get
|
|
424
|
+
|
|
425
|
+
> <Workflow> workflow_get(workflow)
|
|
426
|
+
|
|
427
|
+
Get workflow
|
|
428
|
+
|
|
429
|
+
Get a workflow for a tenant
|
|
430
|
+
|
|
431
|
+
### Examples
|
|
432
|
+
|
|
433
|
+
```ruby
|
|
434
|
+
require 'time'
|
|
435
|
+
require 'hatchet-sdk-rest'
|
|
436
|
+
# setup authorization
|
|
437
|
+
HatchetSdkRest.configure do |config|
|
|
438
|
+
# Configure API key authorization: cookieAuth
|
|
439
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
440
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
441
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
442
|
+
|
|
443
|
+
# Configure Bearer authorization: bearerAuth
|
|
444
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
445
|
+
end
|
|
446
|
+
|
|
447
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
448
|
+
workflow = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The workflow id
|
|
449
|
+
|
|
450
|
+
begin
|
|
451
|
+
# Get workflow
|
|
452
|
+
result = api_instance.workflow_get(workflow)
|
|
453
|
+
p result
|
|
454
|
+
rescue HatchetSdkRest::ApiError => e
|
|
455
|
+
puts "Error when calling WorkflowApi->workflow_get: #{e}"
|
|
456
|
+
end
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
#### Using the workflow_get_with_http_info variant
|
|
460
|
+
|
|
461
|
+
This returns an Array which contains the response data, status code and headers.
|
|
462
|
+
|
|
463
|
+
> <Array(<Workflow>, Integer, Hash)> workflow_get_with_http_info(workflow)
|
|
464
|
+
|
|
465
|
+
```ruby
|
|
466
|
+
begin
|
|
467
|
+
# Get workflow
|
|
468
|
+
data, status_code, headers = api_instance.workflow_get_with_http_info(workflow)
|
|
469
|
+
p status_code # => 2xx
|
|
470
|
+
p headers # => { ... }
|
|
471
|
+
p data # => <Workflow>
|
|
472
|
+
rescue HatchetSdkRest::ApiError => e
|
|
473
|
+
puts "Error when calling WorkflowApi->workflow_get_with_http_info: #{e}"
|
|
474
|
+
end
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
### Parameters
|
|
478
|
+
|
|
479
|
+
| Name | Type | Description | Notes |
|
|
480
|
+
| ---- | ---- | ----------- | ----- |
|
|
481
|
+
| **workflow** | **String** | The workflow id | |
|
|
482
|
+
|
|
483
|
+
### Return type
|
|
484
|
+
|
|
485
|
+
[**Workflow**](Workflow.md)
|
|
486
|
+
|
|
487
|
+
### Authorization
|
|
488
|
+
|
|
489
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
490
|
+
|
|
491
|
+
### HTTP request headers
|
|
492
|
+
|
|
493
|
+
- **Content-Type**: Not defined
|
|
494
|
+
- **Accept**: application/json
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
## workflow_get_metrics
|
|
498
|
+
|
|
499
|
+
> <WorkflowMetrics> workflow_get_metrics(workflow, opts)
|
|
500
|
+
|
|
501
|
+
Get workflow metrics
|
|
502
|
+
|
|
503
|
+
Get the metrics for a workflow version
|
|
504
|
+
|
|
505
|
+
### Examples
|
|
506
|
+
|
|
507
|
+
```ruby
|
|
508
|
+
require 'time'
|
|
509
|
+
require 'hatchet-sdk-rest'
|
|
510
|
+
# setup authorization
|
|
511
|
+
HatchetSdkRest.configure do |config|
|
|
512
|
+
# Configure API key authorization: cookieAuth
|
|
513
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
514
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
515
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
516
|
+
|
|
517
|
+
# Configure Bearer authorization: bearerAuth
|
|
518
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
522
|
+
workflow = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The workflow id
|
|
523
|
+
opts = {
|
|
524
|
+
status: HatchetSdkRest::WorkflowRunStatus::PENDING, # WorkflowRunStatus | A status of workflow run statuses to filter by
|
|
525
|
+
group_key: 'group_key_example' # String | A group key to filter metrics by
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
begin
|
|
529
|
+
# Get workflow metrics
|
|
530
|
+
result = api_instance.workflow_get_metrics(workflow, opts)
|
|
531
|
+
p result
|
|
532
|
+
rescue HatchetSdkRest::ApiError => e
|
|
533
|
+
puts "Error when calling WorkflowApi->workflow_get_metrics: #{e}"
|
|
534
|
+
end
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
#### Using the workflow_get_metrics_with_http_info variant
|
|
538
|
+
|
|
539
|
+
This returns an Array which contains the response data, status code and headers.
|
|
540
|
+
|
|
541
|
+
> <Array(<WorkflowMetrics>, Integer, Hash)> workflow_get_metrics_with_http_info(workflow, opts)
|
|
542
|
+
|
|
543
|
+
```ruby
|
|
544
|
+
begin
|
|
545
|
+
# Get workflow metrics
|
|
546
|
+
data, status_code, headers = api_instance.workflow_get_metrics_with_http_info(workflow, opts)
|
|
547
|
+
p status_code # => 2xx
|
|
548
|
+
p headers # => { ... }
|
|
549
|
+
p data # => <WorkflowMetrics>
|
|
550
|
+
rescue HatchetSdkRest::ApiError => e
|
|
551
|
+
puts "Error when calling WorkflowApi->workflow_get_metrics_with_http_info: #{e}"
|
|
552
|
+
end
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
### Parameters
|
|
556
|
+
|
|
557
|
+
| Name | Type | Description | Notes |
|
|
558
|
+
| ---- | ---- | ----------- | ----- |
|
|
559
|
+
| **workflow** | **String** | The workflow id | |
|
|
560
|
+
| **status** | [**WorkflowRunStatus**](.md) | A status of workflow run statuses to filter by | [optional] |
|
|
561
|
+
| **group_key** | **String** | A group key to filter metrics by | [optional] |
|
|
562
|
+
|
|
563
|
+
### Return type
|
|
564
|
+
|
|
565
|
+
[**WorkflowMetrics**](WorkflowMetrics.md)
|
|
566
|
+
|
|
567
|
+
### Authorization
|
|
568
|
+
|
|
569
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
570
|
+
|
|
571
|
+
### HTTP request headers
|
|
572
|
+
|
|
573
|
+
- **Content-Type**: Not defined
|
|
574
|
+
- **Accept**: application/json
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
## workflow_get_workers_count
|
|
578
|
+
|
|
579
|
+
> <WorkflowWorkersCount> workflow_get_workers_count(tenant, workflow)
|
|
580
|
+
|
|
581
|
+
Get workflow worker count
|
|
582
|
+
|
|
583
|
+
Get a count of the workers available for workflow
|
|
584
|
+
|
|
585
|
+
### Examples
|
|
586
|
+
|
|
587
|
+
```ruby
|
|
588
|
+
require 'time'
|
|
589
|
+
require 'hatchet-sdk-rest'
|
|
590
|
+
# setup authorization
|
|
591
|
+
HatchetSdkRest.configure do |config|
|
|
592
|
+
# Configure API key authorization: cookieAuth
|
|
593
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
594
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
595
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
596
|
+
|
|
597
|
+
# Configure Bearer authorization: bearerAuth
|
|
598
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
602
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
603
|
+
workflow = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The workflow id
|
|
604
|
+
|
|
605
|
+
begin
|
|
606
|
+
# Get workflow worker count
|
|
607
|
+
result = api_instance.workflow_get_workers_count(tenant, workflow)
|
|
608
|
+
p result
|
|
609
|
+
rescue HatchetSdkRest::ApiError => e
|
|
610
|
+
puts "Error when calling WorkflowApi->workflow_get_workers_count: #{e}"
|
|
611
|
+
end
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
#### Using the workflow_get_workers_count_with_http_info variant
|
|
615
|
+
|
|
616
|
+
This returns an Array which contains the response data, status code and headers.
|
|
617
|
+
|
|
618
|
+
> <Array(<WorkflowWorkersCount>, Integer, Hash)> workflow_get_workers_count_with_http_info(tenant, workflow)
|
|
619
|
+
|
|
620
|
+
```ruby
|
|
621
|
+
begin
|
|
622
|
+
# Get workflow worker count
|
|
623
|
+
data, status_code, headers = api_instance.workflow_get_workers_count_with_http_info(tenant, workflow)
|
|
624
|
+
p status_code # => 2xx
|
|
625
|
+
p headers # => { ... }
|
|
626
|
+
p data # => <WorkflowWorkersCount>
|
|
627
|
+
rescue HatchetSdkRest::ApiError => e
|
|
628
|
+
puts "Error when calling WorkflowApi->workflow_get_workers_count_with_http_info: #{e}"
|
|
629
|
+
end
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
### Parameters
|
|
633
|
+
|
|
634
|
+
| Name | Type | Description | Notes |
|
|
635
|
+
| ---- | ---- | ----------- | ----- |
|
|
636
|
+
| **tenant** | **String** | The tenant id | |
|
|
637
|
+
| **workflow** | **String** | The workflow id | |
|
|
638
|
+
|
|
639
|
+
### Return type
|
|
640
|
+
|
|
641
|
+
[**WorkflowWorkersCount**](WorkflowWorkersCount.md)
|
|
642
|
+
|
|
643
|
+
### Authorization
|
|
644
|
+
|
|
645
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
646
|
+
|
|
647
|
+
### HTTP request headers
|
|
648
|
+
|
|
649
|
+
- **Content-Type**: Not defined
|
|
650
|
+
- **Accept**: application/json
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
## workflow_list
|
|
654
|
+
|
|
655
|
+
> <WorkflowList> workflow_list(tenant, opts)
|
|
656
|
+
|
|
657
|
+
Get workflows
|
|
658
|
+
|
|
659
|
+
Get all workflows for a tenant
|
|
660
|
+
|
|
661
|
+
### Examples
|
|
662
|
+
|
|
663
|
+
```ruby
|
|
664
|
+
require 'time'
|
|
665
|
+
require 'hatchet-sdk-rest'
|
|
666
|
+
# setup authorization
|
|
667
|
+
HatchetSdkRest.configure do |config|
|
|
668
|
+
# Configure API key authorization: cookieAuth
|
|
669
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
670
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
671
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
672
|
+
|
|
673
|
+
# Configure Bearer authorization: bearerAuth
|
|
674
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
675
|
+
end
|
|
676
|
+
|
|
677
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
678
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
679
|
+
opts = {
|
|
680
|
+
offset: 56, # Integer | The number to skip
|
|
681
|
+
limit: 56, # Integer | The number to limit by
|
|
682
|
+
name: 'name_example' # String | Search by name
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
begin
|
|
686
|
+
# Get workflows
|
|
687
|
+
result = api_instance.workflow_list(tenant, opts)
|
|
688
|
+
p result
|
|
689
|
+
rescue HatchetSdkRest::ApiError => e
|
|
690
|
+
puts "Error when calling WorkflowApi->workflow_list: #{e}"
|
|
691
|
+
end
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
#### Using the workflow_list_with_http_info variant
|
|
695
|
+
|
|
696
|
+
This returns an Array which contains the response data, status code and headers.
|
|
697
|
+
|
|
698
|
+
> <Array(<WorkflowList>, Integer, Hash)> workflow_list_with_http_info(tenant, opts)
|
|
699
|
+
|
|
700
|
+
```ruby
|
|
701
|
+
begin
|
|
702
|
+
# Get workflows
|
|
703
|
+
data, status_code, headers = api_instance.workflow_list_with_http_info(tenant, opts)
|
|
704
|
+
p status_code # => 2xx
|
|
705
|
+
p headers # => { ... }
|
|
706
|
+
p data # => <WorkflowList>
|
|
707
|
+
rescue HatchetSdkRest::ApiError => e
|
|
708
|
+
puts "Error when calling WorkflowApi->workflow_list_with_http_info: #{e}"
|
|
709
|
+
end
|
|
710
|
+
```
|
|
711
|
+
|
|
712
|
+
### Parameters
|
|
713
|
+
|
|
714
|
+
| Name | Type | Description | Notes |
|
|
715
|
+
| ---- | ---- | ----------- | ----- |
|
|
716
|
+
| **tenant** | **String** | The tenant id | |
|
|
717
|
+
| **offset** | **Integer** | The number to skip | [optional][default to 0] |
|
|
718
|
+
| **limit** | **Integer** | The number to limit by | [optional][default to 50] |
|
|
719
|
+
| **name** | **String** | Search by name | [optional] |
|
|
720
|
+
|
|
721
|
+
### Return type
|
|
722
|
+
|
|
723
|
+
[**WorkflowList**](WorkflowList.md)
|
|
724
|
+
|
|
725
|
+
### Authorization
|
|
726
|
+
|
|
727
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
728
|
+
|
|
729
|
+
### HTTP request headers
|
|
730
|
+
|
|
731
|
+
- **Content-Type**: Not defined
|
|
732
|
+
- **Accept**: application/json
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
## workflow_run_get
|
|
736
|
+
|
|
737
|
+
> <WorkflowRun> workflow_run_get(tenant, workflow_run)
|
|
738
|
+
|
|
739
|
+
Get workflow run
|
|
740
|
+
|
|
741
|
+
Get a workflow run for a tenant
|
|
742
|
+
|
|
743
|
+
### Examples
|
|
744
|
+
|
|
745
|
+
```ruby
|
|
746
|
+
require 'time'
|
|
747
|
+
require 'hatchet-sdk-rest'
|
|
748
|
+
# setup authorization
|
|
749
|
+
HatchetSdkRest.configure do |config|
|
|
750
|
+
# Configure API key authorization: cookieAuth
|
|
751
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
752
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
753
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
754
|
+
|
|
755
|
+
# Configure Bearer authorization: bearerAuth
|
|
756
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
760
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
761
|
+
workflow_run = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The workflow run id
|
|
762
|
+
|
|
763
|
+
begin
|
|
764
|
+
# Get workflow run
|
|
765
|
+
result = api_instance.workflow_run_get(tenant, workflow_run)
|
|
766
|
+
p result
|
|
767
|
+
rescue HatchetSdkRest::ApiError => e
|
|
768
|
+
puts "Error when calling WorkflowApi->workflow_run_get: #{e}"
|
|
769
|
+
end
|
|
770
|
+
```
|
|
771
|
+
|
|
772
|
+
#### Using the workflow_run_get_with_http_info variant
|
|
773
|
+
|
|
774
|
+
This returns an Array which contains the response data, status code and headers.
|
|
775
|
+
|
|
776
|
+
> <Array(<WorkflowRun>, Integer, Hash)> workflow_run_get_with_http_info(tenant, workflow_run)
|
|
777
|
+
|
|
778
|
+
```ruby
|
|
779
|
+
begin
|
|
780
|
+
# Get workflow run
|
|
781
|
+
data, status_code, headers = api_instance.workflow_run_get_with_http_info(tenant, workflow_run)
|
|
782
|
+
p status_code # => 2xx
|
|
783
|
+
p headers # => { ... }
|
|
784
|
+
p data # => <WorkflowRun>
|
|
785
|
+
rescue HatchetSdkRest::ApiError => e
|
|
786
|
+
puts "Error when calling WorkflowApi->workflow_run_get_with_http_info: #{e}"
|
|
787
|
+
end
|
|
788
|
+
```
|
|
789
|
+
|
|
790
|
+
### Parameters
|
|
791
|
+
|
|
792
|
+
| Name | Type | Description | Notes |
|
|
793
|
+
| ---- | ---- | ----------- | ----- |
|
|
794
|
+
| **tenant** | **String** | The tenant id | |
|
|
795
|
+
| **workflow_run** | **String** | The workflow run id | |
|
|
796
|
+
|
|
797
|
+
### Return type
|
|
798
|
+
|
|
799
|
+
[**WorkflowRun**](WorkflowRun.md)
|
|
800
|
+
|
|
801
|
+
### Authorization
|
|
802
|
+
|
|
803
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
804
|
+
|
|
805
|
+
### HTTP request headers
|
|
806
|
+
|
|
807
|
+
- **Content-Type**: Not defined
|
|
808
|
+
- **Accept**: application/json
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
## workflow_run_get_metrics
|
|
812
|
+
|
|
813
|
+
> <WorkflowRunsMetrics> workflow_run_get_metrics(tenant, opts)
|
|
814
|
+
|
|
815
|
+
Get workflow runs metrics
|
|
816
|
+
|
|
817
|
+
Get a summary of workflow run metrics for a tenant
|
|
818
|
+
|
|
819
|
+
### Examples
|
|
820
|
+
|
|
821
|
+
```ruby
|
|
822
|
+
require 'time'
|
|
823
|
+
require 'hatchet-sdk-rest'
|
|
824
|
+
# setup authorization
|
|
825
|
+
HatchetSdkRest.configure do |config|
|
|
826
|
+
# Configure API key authorization: cookieAuth
|
|
827
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
828
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
829
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
830
|
+
|
|
831
|
+
# Configure Bearer authorization: bearerAuth
|
|
832
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
836
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
837
|
+
opts = {
|
|
838
|
+
event_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The event id to get runs for.
|
|
839
|
+
workflow_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The workflow id to get runs for.
|
|
840
|
+
parent_workflow_run_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The parent workflow run id
|
|
841
|
+
parent_step_run_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The parent step run id
|
|
842
|
+
additional_metadata: ['inner_example'], # Array<String> | A list of metadata key value pairs to filter by
|
|
843
|
+
created_after: Time.parse('2021-01-01T00:00:00Z'), # Time | The time after the workflow run was created
|
|
844
|
+
created_before: Time.parse('2021-01-01T00:00:00Z') # Time | The time before the workflow run was created
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
begin
|
|
848
|
+
# Get workflow runs metrics
|
|
849
|
+
result = api_instance.workflow_run_get_metrics(tenant, opts)
|
|
850
|
+
p result
|
|
851
|
+
rescue HatchetSdkRest::ApiError => e
|
|
852
|
+
puts "Error when calling WorkflowApi->workflow_run_get_metrics: #{e}"
|
|
853
|
+
end
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
#### Using the workflow_run_get_metrics_with_http_info variant
|
|
857
|
+
|
|
858
|
+
This returns an Array which contains the response data, status code and headers.
|
|
859
|
+
|
|
860
|
+
> <Array(<WorkflowRunsMetrics>, Integer, Hash)> workflow_run_get_metrics_with_http_info(tenant, opts)
|
|
861
|
+
|
|
862
|
+
```ruby
|
|
863
|
+
begin
|
|
864
|
+
# Get workflow runs metrics
|
|
865
|
+
data, status_code, headers = api_instance.workflow_run_get_metrics_with_http_info(tenant, opts)
|
|
866
|
+
p status_code # => 2xx
|
|
867
|
+
p headers # => { ... }
|
|
868
|
+
p data # => <WorkflowRunsMetrics>
|
|
869
|
+
rescue HatchetSdkRest::ApiError => e
|
|
870
|
+
puts "Error when calling WorkflowApi->workflow_run_get_metrics_with_http_info: #{e}"
|
|
871
|
+
end
|
|
872
|
+
```
|
|
873
|
+
|
|
874
|
+
### Parameters
|
|
875
|
+
|
|
876
|
+
| Name | Type | Description | Notes |
|
|
877
|
+
| ---- | ---- | ----------- | ----- |
|
|
878
|
+
| **tenant** | **String** | The tenant id | |
|
|
879
|
+
| **event_id** | **String** | The event id to get runs for. | [optional] |
|
|
880
|
+
| **workflow_id** | **String** | The workflow id to get runs for. | [optional] |
|
|
881
|
+
| **parent_workflow_run_id** | **String** | The parent workflow run id | [optional] |
|
|
882
|
+
| **parent_step_run_id** | **String** | The parent step run id | [optional] |
|
|
883
|
+
| **additional_metadata** | [**Array<String>**](String.md) | A list of metadata key value pairs to filter by | [optional] |
|
|
884
|
+
| **created_after** | **Time** | The time after the workflow run was created | [optional] |
|
|
885
|
+
| **created_before** | **Time** | The time before the workflow run was created | [optional] |
|
|
886
|
+
|
|
887
|
+
### Return type
|
|
888
|
+
|
|
889
|
+
[**WorkflowRunsMetrics**](WorkflowRunsMetrics.md)
|
|
890
|
+
|
|
891
|
+
### Authorization
|
|
892
|
+
|
|
893
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
894
|
+
|
|
895
|
+
### HTTP request headers
|
|
896
|
+
|
|
897
|
+
- **Content-Type**: Not defined
|
|
898
|
+
- **Accept**: application/json
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
## workflow_run_get_shape
|
|
902
|
+
|
|
903
|
+
> <WorkflowRunShape> workflow_run_get_shape(tenant, workflow_run)
|
|
904
|
+
|
|
905
|
+
Get workflow run
|
|
906
|
+
|
|
907
|
+
Get a workflow run for a tenant
|
|
908
|
+
|
|
909
|
+
### Examples
|
|
910
|
+
|
|
911
|
+
```ruby
|
|
912
|
+
require 'time'
|
|
913
|
+
require 'hatchet-sdk-rest'
|
|
914
|
+
# setup authorization
|
|
915
|
+
HatchetSdkRest.configure do |config|
|
|
916
|
+
# Configure API key authorization: cookieAuth
|
|
917
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
918
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
919
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
920
|
+
|
|
921
|
+
# Configure Bearer authorization: bearerAuth
|
|
922
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
923
|
+
end
|
|
924
|
+
|
|
925
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
926
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
927
|
+
workflow_run = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The workflow run id
|
|
928
|
+
|
|
929
|
+
begin
|
|
930
|
+
# Get workflow run
|
|
931
|
+
result = api_instance.workflow_run_get_shape(tenant, workflow_run)
|
|
932
|
+
p result
|
|
933
|
+
rescue HatchetSdkRest::ApiError => e
|
|
934
|
+
puts "Error when calling WorkflowApi->workflow_run_get_shape: #{e}"
|
|
935
|
+
end
|
|
936
|
+
```
|
|
937
|
+
|
|
938
|
+
#### Using the workflow_run_get_shape_with_http_info variant
|
|
939
|
+
|
|
940
|
+
This returns an Array which contains the response data, status code and headers.
|
|
941
|
+
|
|
942
|
+
> <Array(<WorkflowRunShape>, Integer, Hash)> workflow_run_get_shape_with_http_info(tenant, workflow_run)
|
|
943
|
+
|
|
944
|
+
```ruby
|
|
945
|
+
begin
|
|
946
|
+
# Get workflow run
|
|
947
|
+
data, status_code, headers = api_instance.workflow_run_get_shape_with_http_info(tenant, workflow_run)
|
|
948
|
+
p status_code # => 2xx
|
|
949
|
+
p headers # => { ... }
|
|
950
|
+
p data # => <WorkflowRunShape>
|
|
951
|
+
rescue HatchetSdkRest::ApiError => e
|
|
952
|
+
puts "Error when calling WorkflowApi->workflow_run_get_shape_with_http_info: #{e}"
|
|
953
|
+
end
|
|
954
|
+
```
|
|
955
|
+
|
|
956
|
+
### Parameters
|
|
957
|
+
|
|
958
|
+
| Name | Type | Description | Notes |
|
|
959
|
+
| ---- | ---- | ----------- | ----- |
|
|
960
|
+
| **tenant** | **String** | The tenant id | |
|
|
961
|
+
| **workflow_run** | **String** | The workflow run id | |
|
|
962
|
+
|
|
963
|
+
### Return type
|
|
964
|
+
|
|
965
|
+
[**WorkflowRunShape**](WorkflowRunShape.md)
|
|
966
|
+
|
|
967
|
+
### Authorization
|
|
968
|
+
|
|
969
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
970
|
+
|
|
971
|
+
### HTTP request headers
|
|
972
|
+
|
|
973
|
+
- **Content-Type**: Not defined
|
|
974
|
+
- **Accept**: application/json
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
## workflow_run_list
|
|
978
|
+
|
|
979
|
+
> <WorkflowRunList> workflow_run_list(tenant, opts)
|
|
980
|
+
|
|
981
|
+
Get workflow runs
|
|
982
|
+
|
|
983
|
+
Get all workflow runs for a tenant
|
|
984
|
+
|
|
985
|
+
### Examples
|
|
986
|
+
|
|
987
|
+
```ruby
|
|
988
|
+
require 'time'
|
|
989
|
+
require 'hatchet-sdk-rest'
|
|
990
|
+
# setup authorization
|
|
991
|
+
HatchetSdkRest.configure do |config|
|
|
992
|
+
# Configure API key authorization: cookieAuth
|
|
993
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
994
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
995
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
996
|
+
|
|
997
|
+
# Configure Bearer authorization: bearerAuth
|
|
998
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
1002
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
1003
|
+
opts = {
|
|
1004
|
+
offset: 789, # Integer | The number to skip
|
|
1005
|
+
limit: 789, # Integer | The number to limit by
|
|
1006
|
+
event_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The event id to get runs for.
|
|
1007
|
+
workflow_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The workflow id to get runs for.
|
|
1008
|
+
parent_workflow_run_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The parent workflow run id
|
|
1009
|
+
parent_step_run_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The parent step run id
|
|
1010
|
+
statuses: [HatchetSdkRest::WorkflowRunStatus::PENDING], # Array<WorkflowRunStatus> | A list of workflow run statuses to filter by
|
|
1011
|
+
kinds: [HatchetSdkRest::WorkflowKind::FUNCTION], # Array<WorkflowKind> | A list of workflow kinds to filter by
|
|
1012
|
+
additional_metadata: ['inner_example'], # Array<String> | A list of metadata key value pairs to filter by
|
|
1013
|
+
created_after: Time.parse('2021-01-01T00:00:00Z'), # Time | The time after the workflow run was created
|
|
1014
|
+
created_before: Time.parse('2021-01-01T00:00:00Z'), # Time | The time before the workflow run was created
|
|
1015
|
+
finished_after: Time.parse('2021-01-01T00:00:00Z'), # Time | The time after the workflow run was finished
|
|
1016
|
+
finished_before: Time.parse('2021-01-01T00:00:00Z'), # Time | The time before the workflow run was finished
|
|
1017
|
+
order_by_field: HatchetSdkRest::WorkflowRunOrderByField::CREATED_AT, # WorkflowRunOrderByField | The order by field
|
|
1018
|
+
order_by_direction: HatchetSdkRest::WorkflowRunOrderByDirection::ASC # WorkflowRunOrderByDirection | The order by direction
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
begin
|
|
1022
|
+
# Get workflow runs
|
|
1023
|
+
result = api_instance.workflow_run_list(tenant, opts)
|
|
1024
|
+
p result
|
|
1025
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1026
|
+
puts "Error when calling WorkflowApi->workflow_run_list: #{e}"
|
|
1027
|
+
end
|
|
1028
|
+
```
|
|
1029
|
+
|
|
1030
|
+
#### Using the workflow_run_list_with_http_info variant
|
|
1031
|
+
|
|
1032
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1033
|
+
|
|
1034
|
+
> <Array(<WorkflowRunList>, Integer, Hash)> workflow_run_list_with_http_info(tenant, opts)
|
|
1035
|
+
|
|
1036
|
+
```ruby
|
|
1037
|
+
begin
|
|
1038
|
+
# Get workflow runs
|
|
1039
|
+
data, status_code, headers = api_instance.workflow_run_list_with_http_info(tenant, opts)
|
|
1040
|
+
p status_code # => 2xx
|
|
1041
|
+
p headers # => { ... }
|
|
1042
|
+
p data # => <WorkflowRunList>
|
|
1043
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1044
|
+
puts "Error when calling WorkflowApi->workflow_run_list_with_http_info: #{e}"
|
|
1045
|
+
end
|
|
1046
|
+
```
|
|
1047
|
+
|
|
1048
|
+
### Parameters
|
|
1049
|
+
|
|
1050
|
+
| Name | Type | Description | Notes |
|
|
1051
|
+
| ---- | ---- | ----------- | ----- |
|
|
1052
|
+
| **tenant** | **String** | The tenant id | |
|
|
1053
|
+
| **offset** | **Integer** | The number to skip | [optional] |
|
|
1054
|
+
| **limit** | **Integer** | The number to limit by | [optional] |
|
|
1055
|
+
| **event_id** | **String** | The event id to get runs for. | [optional] |
|
|
1056
|
+
| **workflow_id** | **String** | The workflow id to get runs for. | [optional] |
|
|
1057
|
+
| **parent_workflow_run_id** | **String** | The parent workflow run id | [optional] |
|
|
1058
|
+
| **parent_step_run_id** | **String** | The parent step run id | [optional] |
|
|
1059
|
+
| **statuses** | [**Array<WorkflowRunStatus>**](WorkflowRunStatus.md) | A list of workflow run statuses to filter by | [optional] |
|
|
1060
|
+
| **kinds** | [**Array<WorkflowKind>**](WorkflowKind.md) | A list of workflow kinds to filter by | [optional] |
|
|
1061
|
+
| **additional_metadata** | [**Array<String>**](String.md) | A list of metadata key value pairs to filter by | [optional] |
|
|
1062
|
+
| **created_after** | **Time** | The time after the workflow run was created | [optional] |
|
|
1063
|
+
| **created_before** | **Time** | The time before the workflow run was created | [optional] |
|
|
1064
|
+
| **finished_after** | **Time** | The time after the workflow run was finished | [optional] |
|
|
1065
|
+
| **finished_before** | **Time** | The time before the workflow run was finished | [optional] |
|
|
1066
|
+
| **order_by_field** | [**WorkflowRunOrderByField**](.md) | The order by field | [optional] |
|
|
1067
|
+
| **order_by_direction** | [**WorkflowRunOrderByDirection**](.md) | The order by direction | [optional] |
|
|
1068
|
+
|
|
1069
|
+
### Return type
|
|
1070
|
+
|
|
1071
|
+
[**WorkflowRunList**](WorkflowRunList.md)
|
|
1072
|
+
|
|
1073
|
+
### Authorization
|
|
1074
|
+
|
|
1075
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
1076
|
+
|
|
1077
|
+
### HTTP request headers
|
|
1078
|
+
|
|
1079
|
+
- **Content-Type**: Not defined
|
|
1080
|
+
- **Accept**: application/json
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
## workflow_scheduled_delete
|
|
1084
|
+
|
|
1085
|
+
> workflow_scheduled_delete(tenant, scheduled_workflow_run)
|
|
1086
|
+
|
|
1087
|
+
Delete scheduled workflow run
|
|
1088
|
+
|
|
1089
|
+
Delete a scheduled workflow run for a tenant
|
|
1090
|
+
|
|
1091
|
+
### Examples
|
|
1092
|
+
|
|
1093
|
+
```ruby
|
|
1094
|
+
require 'time'
|
|
1095
|
+
require 'hatchet-sdk-rest'
|
|
1096
|
+
# setup authorization
|
|
1097
|
+
HatchetSdkRest.configure do |config|
|
|
1098
|
+
# Configure API key authorization: cookieAuth
|
|
1099
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
1100
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1101
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
1102
|
+
|
|
1103
|
+
# Configure Bearer authorization: bearerAuth
|
|
1104
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1105
|
+
end
|
|
1106
|
+
|
|
1107
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
1108
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
1109
|
+
scheduled_workflow_run = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The scheduled workflow id
|
|
1110
|
+
|
|
1111
|
+
begin
|
|
1112
|
+
# Delete scheduled workflow run
|
|
1113
|
+
api_instance.workflow_scheduled_delete(tenant, scheduled_workflow_run)
|
|
1114
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1115
|
+
puts "Error when calling WorkflowApi->workflow_scheduled_delete: #{e}"
|
|
1116
|
+
end
|
|
1117
|
+
```
|
|
1118
|
+
|
|
1119
|
+
#### Using the workflow_scheduled_delete_with_http_info variant
|
|
1120
|
+
|
|
1121
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
1122
|
+
|
|
1123
|
+
> <Array(nil, Integer, Hash)> workflow_scheduled_delete_with_http_info(tenant, scheduled_workflow_run)
|
|
1124
|
+
|
|
1125
|
+
```ruby
|
|
1126
|
+
begin
|
|
1127
|
+
# Delete scheduled workflow run
|
|
1128
|
+
data, status_code, headers = api_instance.workflow_scheduled_delete_with_http_info(tenant, scheduled_workflow_run)
|
|
1129
|
+
p status_code # => 2xx
|
|
1130
|
+
p headers # => { ... }
|
|
1131
|
+
p data # => nil
|
|
1132
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1133
|
+
puts "Error when calling WorkflowApi->workflow_scheduled_delete_with_http_info: #{e}"
|
|
1134
|
+
end
|
|
1135
|
+
```
|
|
1136
|
+
|
|
1137
|
+
### Parameters
|
|
1138
|
+
|
|
1139
|
+
| Name | Type | Description | Notes |
|
|
1140
|
+
| ---- | ---- | ----------- | ----- |
|
|
1141
|
+
| **tenant** | **String** | The tenant id | |
|
|
1142
|
+
| **scheduled_workflow_run** | **String** | The scheduled workflow id | |
|
|
1143
|
+
|
|
1144
|
+
### Return type
|
|
1145
|
+
|
|
1146
|
+
nil (empty response body)
|
|
1147
|
+
|
|
1148
|
+
### Authorization
|
|
1149
|
+
|
|
1150
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
1151
|
+
|
|
1152
|
+
### HTTP request headers
|
|
1153
|
+
|
|
1154
|
+
- **Content-Type**: Not defined
|
|
1155
|
+
- **Accept**: application/json
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
## workflow_scheduled_get
|
|
1159
|
+
|
|
1160
|
+
> <ScheduledWorkflows> workflow_scheduled_get(tenant, scheduled_workflow_run)
|
|
1161
|
+
|
|
1162
|
+
Get scheduled workflow run
|
|
1163
|
+
|
|
1164
|
+
Get a scheduled workflow run for a tenant
|
|
1165
|
+
|
|
1166
|
+
### Examples
|
|
1167
|
+
|
|
1168
|
+
```ruby
|
|
1169
|
+
require 'time'
|
|
1170
|
+
require 'hatchet-sdk-rest'
|
|
1171
|
+
# setup authorization
|
|
1172
|
+
HatchetSdkRest.configure do |config|
|
|
1173
|
+
# Configure API key authorization: cookieAuth
|
|
1174
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
1175
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1176
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
1177
|
+
|
|
1178
|
+
# Configure Bearer authorization: bearerAuth
|
|
1179
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
1183
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
1184
|
+
scheduled_workflow_run = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The scheduled workflow id
|
|
1185
|
+
|
|
1186
|
+
begin
|
|
1187
|
+
# Get scheduled workflow run
|
|
1188
|
+
result = api_instance.workflow_scheduled_get(tenant, scheduled_workflow_run)
|
|
1189
|
+
p result
|
|
1190
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1191
|
+
puts "Error when calling WorkflowApi->workflow_scheduled_get: #{e}"
|
|
1192
|
+
end
|
|
1193
|
+
```
|
|
1194
|
+
|
|
1195
|
+
#### Using the workflow_scheduled_get_with_http_info variant
|
|
1196
|
+
|
|
1197
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1198
|
+
|
|
1199
|
+
> <Array(<ScheduledWorkflows>, Integer, Hash)> workflow_scheduled_get_with_http_info(tenant, scheduled_workflow_run)
|
|
1200
|
+
|
|
1201
|
+
```ruby
|
|
1202
|
+
begin
|
|
1203
|
+
# Get scheduled workflow run
|
|
1204
|
+
data, status_code, headers = api_instance.workflow_scheduled_get_with_http_info(tenant, scheduled_workflow_run)
|
|
1205
|
+
p status_code # => 2xx
|
|
1206
|
+
p headers # => { ... }
|
|
1207
|
+
p data # => <ScheduledWorkflows>
|
|
1208
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1209
|
+
puts "Error when calling WorkflowApi->workflow_scheduled_get_with_http_info: #{e}"
|
|
1210
|
+
end
|
|
1211
|
+
```
|
|
1212
|
+
|
|
1213
|
+
### Parameters
|
|
1214
|
+
|
|
1215
|
+
| Name | Type | Description | Notes |
|
|
1216
|
+
| ---- | ---- | ----------- | ----- |
|
|
1217
|
+
| **tenant** | **String** | The tenant id | |
|
|
1218
|
+
| **scheduled_workflow_run** | **String** | The scheduled workflow id | |
|
|
1219
|
+
|
|
1220
|
+
### Return type
|
|
1221
|
+
|
|
1222
|
+
[**ScheduledWorkflows**](ScheduledWorkflows.md)
|
|
1223
|
+
|
|
1224
|
+
### Authorization
|
|
1225
|
+
|
|
1226
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
1227
|
+
|
|
1228
|
+
### HTTP request headers
|
|
1229
|
+
|
|
1230
|
+
- **Content-Type**: Not defined
|
|
1231
|
+
- **Accept**: application/json
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
## workflow_scheduled_list
|
|
1235
|
+
|
|
1236
|
+
> <ScheduledWorkflowsList> workflow_scheduled_list(tenant, opts)
|
|
1237
|
+
|
|
1238
|
+
Get scheduled workflow runs
|
|
1239
|
+
|
|
1240
|
+
Get all scheduled workflow runs for a tenant
|
|
1241
|
+
|
|
1242
|
+
### Examples
|
|
1243
|
+
|
|
1244
|
+
```ruby
|
|
1245
|
+
require 'time'
|
|
1246
|
+
require 'hatchet-sdk-rest'
|
|
1247
|
+
# setup authorization
|
|
1248
|
+
HatchetSdkRest.configure do |config|
|
|
1249
|
+
# Configure API key authorization: cookieAuth
|
|
1250
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
1251
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1252
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
1253
|
+
|
|
1254
|
+
# Configure Bearer authorization: bearerAuth
|
|
1255
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1258
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
1259
|
+
tenant = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The tenant id
|
|
1260
|
+
opts = {
|
|
1261
|
+
offset: 789, # Integer | The number to skip
|
|
1262
|
+
limit: 789, # Integer | The number to limit by
|
|
1263
|
+
order_by_field: HatchetSdkRest::ScheduledWorkflowsOrderByField::TRIGGER_AT, # ScheduledWorkflowsOrderByField | The order by field
|
|
1264
|
+
order_by_direction: HatchetSdkRest::WorkflowRunOrderByDirection::ASC, # WorkflowRunOrderByDirection | The order by direction
|
|
1265
|
+
workflow_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The workflow id to get runs for.
|
|
1266
|
+
parent_workflow_run_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The parent workflow run id
|
|
1267
|
+
parent_step_run_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | The parent step run id
|
|
1268
|
+
additional_metadata: ['inner_example'], # Array<String> | A list of metadata key value pairs to filter by
|
|
1269
|
+
statuses: [HatchetSdkRest::ScheduledRunStatus::PENDING] # Array<ScheduledRunStatus> | A list of scheduled run statuses to filter by
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
begin
|
|
1273
|
+
# Get scheduled workflow runs
|
|
1274
|
+
result = api_instance.workflow_scheduled_list(tenant, opts)
|
|
1275
|
+
p result
|
|
1276
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1277
|
+
puts "Error when calling WorkflowApi->workflow_scheduled_list: #{e}"
|
|
1278
|
+
end
|
|
1279
|
+
```
|
|
1280
|
+
|
|
1281
|
+
#### Using the workflow_scheduled_list_with_http_info variant
|
|
1282
|
+
|
|
1283
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1284
|
+
|
|
1285
|
+
> <Array(<ScheduledWorkflowsList>, Integer, Hash)> workflow_scheduled_list_with_http_info(tenant, opts)
|
|
1286
|
+
|
|
1287
|
+
```ruby
|
|
1288
|
+
begin
|
|
1289
|
+
# Get scheduled workflow runs
|
|
1290
|
+
data, status_code, headers = api_instance.workflow_scheduled_list_with_http_info(tenant, opts)
|
|
1291
|
+
p status_code # => 2xx
|
|
1292
|
+
p headers # => { ... }
|
|
1293
|
+
p data # => <ScheduledWorkflowsList>
|
|
1294
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1295
|
+
puts "Error when calling WorkflowApi->workflow_scheduled_list_with_http_info: #{e}"
|
|
1296
|
+
end
|
|
1297
|
+
```
|
|
1298
|
+
|
|
1299
|
+
### Parameters
|
|
1300
|
+
|
|
1301
|
+
| Name | Type | Description | Notes |
|
|
1302
|
+
| ---- | ---- | ----------- | ----- |
|
|
1303
|
+
| **tenant** | **String** | The tenant id | |
|
|
1304
|
+
| **offset** | **Integer** | The number to skip | [optional] |
|
|
1305
|
+
| **limit** | **Integer** | The number to limit by | [optional] |
|
|
1306
|
+
| **order_by_field** | [**ScheduledWorkflowsOrderByField**](.md) | The order by field | [optional] |
|
|
1307
|
+
| **order_by_direction** | [**WorkflowRunOrderByDirection**](.md) | The order by direction | [optional] |
|
|
1308
|
+
| **workflow_id** | **String** | The workflow id to get runs for. | [optional] |
|
|
1309
|
+
| **parent_workflow_run_id** | **String** | The parent workflow run id | [optional] |
|
|
1310
|
+
| **parent_step_run_id** | **String** | The parent step run id | [optional] |
|
|
1311
|
+
| **additional_metadata** | [**Array<String>**](String.md) | A list of metadata key value pairs to filter by | [optional] |
|
|
1312
|
+
| **statuses** | [**Array<ScheduledRunStatus>**](ScheduledRunStatus.md) | A list of scheduled run statuses to filter by | [optional] |
|
|
1313
|
+
|
|
1314
|
+
### Return type
|
|
1315
|
+
|
|
1316
|
+
[**ScheduledWorkflowsList**](ScheduledWorkflowsList.md)
|
|
1317
|
+
|
|
1318
|
+
### Authorization
|
|
1319
|
+
|
|
1320
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
1321
|
+
|
|
1322
|
+
### HTTP request headers
|
|
1323
|
+
|
|
1324
|
+
- **Content-Type**: Not defined
|
|
1325
|
+
- **Accept**: application/json
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
## workflow_update
|
|
1329
|
+
|
|
1330
|
+
> <Workflow> workflow_update(workflow, workflow_update_request)
|
|
1331
|
+
|
|
1332
|
+
Update workflow
|
|
1333
|
+
|
|
1334
|
+
Update a workflow for a tenant
|
|
1335
|
+
|
|
1336
|
+
### Examples
|
|
1337
|
+
|
|
1338
|
+
```ruby
|
|
1339
|
+
require 'time'
|
|
1340
|
+
require 'hatchet-sdk-rest'
|
|
1341
|
+
# setup authorization
|
|
1342
|
+
HatchetSdkRest.configure do |config|
|
|
1343
|
+
# Configure API key authorization: cookieAuth
|
|
1344
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
1345
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1346
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
1347
|
+
|
|
1348
|
+
# Configure Bearer authorization: bearerAuth
|
|
1349
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1350
|
+
end
|
|
1351
|
+
|
|
1352
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
1353
|
+
workflow = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The workflow id
|
|
1354
|
+
workflow_update_request = HatchetSdkRest::WorkflowUpdateRequest.new # WorkflowUpdateRequest | The input to update the workflow
|
|
1355
|
+
|
|
1356
|
+
begin
|
|
1357
|
+
# Update workflow
|
|
1358
|
+
result = api_instance.workflow_update(workflow, workflow_update_request)
|
|
1359
|
+
p result
|
|
1360
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1361
|
+
puts "Error when calling WorkflowApi->workflow_update: #{e}"
|
|
1362
|
+
end
|
|
1363
|
+
```
|
|
1364
|
+
|
|
1365
|
+
#### Using the workflow_update_with_http_info variant
|
|
1366
|
+
|
|
1367
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1368
|
+
|
|
1369
|
+
> <Array(<Workflow>, Integer, Hash)> workflow_update_with_http_info(workflow, workflow_update_request)
|
|
1370
|
+
|
|
1371
|
+
```ruby
|
|
1372
|
+
begin
|
|
1373
|
+
# Update workflow
|
|
1374
|
+
data, status_code, headers = api_instance.workflow_update_with_http_info(workflow, workflow_update_request)
|
|
1375
|
+
p status_code # => 2xx
|
|
1376
|
+
p headers # => { ... }
|
|
1377
|
+
p data # => <Workflow>
|
|
1378
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1379
|
+
puts "Error when calling WorkflowApi->workflow_update_with_http_info: #{e}"
|
|
1380
|
+
end
|
|
1381
|
+
```
|
|
1382
|
+
|
|
1383
|
+
### Parameters
|
|
1384
|
+
|
|
1385
|
+
| Name | Type | Description | Notes |
|
|
1386
|
+
| ---- | ---- | ----------- | ----- |
|
|
1387
|
+
| **workflow** | **String** | The workflow id | |
|
|
1388
|
+
| **workflow_update_request** | [**WorkflowUpdateRequest**](WorkflowUpdateRequest.md) | The input to update the workflow | |
|
|
1389
|
+
|
|
1390
|
+
### Return type
|
|
1391
|
+
|
|
1392
|
+
[**Workflow**](Workflow.md)
|
|
1393
|
+
|
|
1394
|
+
### Authorization
|
|
1395
|
+
|
|
1396
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
1397
|
+
|
|
1398
|
+
### HTTP request headers
|
|
1399
|
+
|
|
1400
|
+
- **Content-Type**: application/json
|
|
1401
|
+
- **Accept**: application/json
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
## workflow_version_get
|
|
1405
|
+
|
|
1406
|
+
> <WorkflowVersion> workflow_version_get(workflow, opts)
|
|
1407
|
+
|
|
1408
|
+
Get workflow version
|
|
1409
|
+
|
|
1410
|
+
Get a workflow version for a tenant
|
|
1411
|
+
|
|
1412
|
+
### Examples
|
|
1413
|
+
|
|
1414
|
+
```ruby
|
|
1415
|
+
require 'time'
|
|
1416
|
+
require 'hatchet-sdk-rest'
|
|
1417
|
+
# setup authorization
|
|
1418
|
+
HatchetSdkRest.configure do |config|
|
|
1419
|
+
# Configure API key authorization: cookieAuth
|
|
1420
|
+
config.api_key['hatchet'] = 'YOUR API KEY'
|
|
1421
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1422
|
+
# config.api_key_prefix['hatchet'] = 'Bearer'
|
|
1423
|
+
|
|
1424
|
+
# Configure Bearer authorization: bearerAuth
|
|
1425
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
api_instance = HatchetSdkRest::WorkflowApi.new
|
|
1429
|
+
workflow = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The workflow id
|
|
1430
|
+
opts = {
|
|
1431
|
+
version: '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The workflow version. If not supplied, the latest version is fetched.
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
begin
|
|
1435
|
+
# Get workflow version
|
|
1436
|
+
result = api_instance.workflow_version_get(workflow, opts)
|
|
1437
|
+
p result
|
|
1438
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1439
|
+
puts "Error when calling WorkflowApi->workflow_version_get: #{e}"
|
|
1440
|
+
end
|
|
1441
|
+
```
|
|
1442
|
+
|
|
1443
|
+
#### Using the workflow_version_get_with_http_info variant
|
|
1444
|
+
|
|
1445
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1446
|
+
|
|
1447
|
+
> <Array(<WorkflowVersion>, Integer, Hash)> workflow_version_get_with_http_info(workflow, opts)
|
|
1448
|
+
|
|
1449
|
+
```ruby
|
|
1450
|
+
begin
|
|
1451
|
+
# Get workflow version
|
|
1452
|
+
data, status_code, headers = api_instance.workflow_version_get_with_http_info(workflow, opts)
|
|
1453
|
+
p status_code # => 2xx
|
|
1454
|
+
p headers # => { ... }
|
|
1455
|
+
p data # => <WorkflowVersion>
|
|
1456
|
+
rescue HatchetSdkRest::ApiError => e
|
|
1457
|
+
puts "Error when calling WorkflowApi->workflow_version_get_with_http_info: #{e}"
|
|
1458
|
+
end
|
|
1459
|
+
```
|
|
1460
|
+
|
|
1461
|
+
### Parameters
|
|
1462
|
+
|
|
1463
|
+
| Name | Type | Description | Notes |
|
|
1464
|
+
| ---- | ---- | ----------- | ----- |
|
|
1465
|
+
| **workflow** | **String** | The workflow id | |
|
|
1466
|
+
| **version** | **String** | The workflow version. If not supplied, the latest version is fetched. | [optional] |
|
|
1467
|
+
|
|
1468
|
+
### Return type
|
|
1469
|
+
|
|
1470
|
+
[**WorkflowVersion**](WorkflowVersion.md)
|
|
1471
|
+
|
|
1472
|
+
### Authorization
|
|
1473
|
+
|
|
1474
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
1475
|
+
|
|
1476
|
+
### HTTP request headers
|
|
1477
|
+
|
|
1478
|
+
- **Content-Type**: Not defined
|
|
1479
|
+
- **Accept**: application/json
|
|
1480
|
+
|