temporalio 1.5.0 → 1.6.0
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/Cargo.lock +1461 -621
- data/Cargo.toml +1 -1
- data/Gemfile +6 -5
- data/README.md +42 -1
- data/ext/Cargo.toml +9 -3
- data/lib/temporalio/api/activity/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/billing/v1/message.rb +2 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +17 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
- data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
- data/lib/temporalio/api/cloud/namespace/v1/message.rb +5 -1
- data/lib/temporalio/api/command/v1/message.rb +2 -1
- data/lib/temporalio/api/common/v1/message.rb +5 -1
- data/lib/temporalio/api/deployment/v1/message.rb +3 -1
- data/lib/temporalio/api/history/v1/message.rb +3 -1
- data/lib/temporalio/api/namespace/v1/message.rb +1 -1
- data/lib/temporalio/api/nexus/v1/message.rb +1 -1
- data/lib/temporalio/api/nexusannotations/v1/options.rb +20 -0
- data/lib/temporalio/api/payload_visitor.rb +32 -0
- data/lib/temporalio/api/schedule/v1/message.rb +1 -1
- data/lib/temporalio/api/sdk/v1/event_group_marker.rb +26 -0
- data/lib/temporalio/api/update/v1/message.rb +1 -1
- data/lib/temporalio/api/workflow/v1/message.rb +3 -2
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +11 -1
- data/lib/temporalio/api/workflowservice/v1/service.rb +3 -2
- data/lib/temporalio/client/connection/cloud_service.rb +120 -0
- data/lib/temporalio/client/connection/workflow_service.rb +75 -0
- data/lib/temporalio/client/connection.rb +37 -2
- data/lib/temporalio/client.rb +10 -5
- data/lib/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rb +1 -1
- data/lib/temporalio/internal/bridge/client.rb +6 -1
- data/lib/temporalio/internal/bridge.rb +20 -0
- data/lib/temporalio/internal/google_protobuf.rb +11 -0
- data/lib/temporalio/internal/worker/workflow_instance/context.rb +2 -0
- data/lib/temporalio/internal/worker/workflow_instance/details.rb +3 -1
- data/lib/temporalio/internal/worker/workflow_instance/scheduler.rb +73 -2
- data/lib/temporalio/internal/worker/workflow_instance.rb +36 -6
- data/lib/temporalio/internal/worker/workflow_worker.rb +10 -2
- data/lib/temporalio/internal/workflow_task_failure_error.rb +9 -0
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/activity_executor/fiber.rb +1 -1
- data/lib/temporalio/worker/activity_executor/thread_pool.rb +1 -1
- data/lib/temporalio/worker/illegal_workflow_call_validator.rb +3 -1
- data/lib/temporalio/worker/workflow_executor/thread_pool.rb +5 -1
- data/lib/temporalio/worker/workflow_replayer.rb +17 -4
- data/lib/temporalio/worker.rb +30 -5
- data/lib/temporalio/workflow/future.rb +5 -0
- data/lib/temporalio/workflow/nexus_operation_cancellation_type.rb +4 -2
- data/lib/temporalio/workflow.rb +8 -0
- data/rbi/google/protobuf.rbi +25 -0
- data/rbi/temporalio/activity/cancellation_details.rbi +33 -0
- data/rbi/temporalio/activity/complete_async_error.rbi +3 -0
- data/rbi/temporalio/activity/context.rbi +42 -0
- data/rbi/temporalio/activity/definition.rbi +74 -0
- data/rbi/temporalio/activity/info.rbi +112 -0
- data/rbi/temporalio/activity.rbi +3 -0
- data/rbi/temporalio/api/activity/v1/message.rbi +1453 -0
- data/rbi/temporalio/api/batch/v1/message.rbi +1283 -0
- data/rbi/temporalio/api/callback/v1/message.rbi +188 -0
- data/rbi/temporalio/api/cloud/account/v1/message.rbi +650 -0
- data/rbi/temporalio/api/cloud/auditlog/v1/message.rbi +318 -0
- data/rbi/temporalio/api/cloud/billing/v1/message.rbi +480 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +12454 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +709 -0
- data/rbi/temporalio/api/cloud/cloudservice.rbi +5 -0
- data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +403 -0
- data/rbi/temporalio/api/cloud/identity/v1/message.rbi +3072 -0
- data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +3659 -0
- data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +595 -0
- data/rbi/temporalio/api/cloud/operation/v1/message.rbi +244 -0
- data/rbi/temporalio/api/cloud/region/v1/message.rbi +166 -0
- data/rbi/temporalio/api/cloud/resource/v1/message.rbi +29 -0
- data/rbi/temporalio/api/cloud/sink/v1/message.rbi +438 -0
- data/rbi/temporalio/api/cloud/usage/v1/message.rbi +409 -0
- data/rbi/temporalio/api/command/v1/message.rbi +2655 -0
- data/rbi/temporalio/api/common/v1/grpc_status.rbi +92 -0
- data/rbi/temporalio/api/common/v1/message.rbi +2983 -0
- data/rbi/temporalio/api/compute/v1/config.rbi +421 -0
- data/rbi/temporalio/api/compute/v1/provider.rbi +125 -0
- data/rbi/temporalio/api/compute/v1/scaler.rbi +102 -0
- data/rbi/temporalio/api/deployment/v1/message.rbi +2340 -0
- data/rbi/temporalio/api/enums/v1/activity.rbi +62 -0
- data/rbi/temporalio/api/enums/v1/batch_operation.rbi +47 -0
- data/rbi/temporalio/api/enums/v1/command_type.rbi +36 -0
- data/rbi/temporalio/api/enums/v1/common.rbi +181 -0
- data/rbi/temporalio/api/enums/v1/deployment.rbi +80 -0
- data/rbi/temporalio/api/enums/v1/event_type.rbi +79 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +155 -0
- data/rbi/temporalio/api/enums/v1/namespace.rbi +58 -0
- data/rbi/temporalio/api/enums/v1/nexus.rbi +98 -0
- data/rbi/temporalio/api/enums/v1/query.rbi +40 -0
- data/rbi/temporalio/api/enums/v1/reset.rbi +60 -0
- data/rbi/temporalio/api/enums/v1/schedule.rbi +25 -0
- data/rbi/temporalio/api/enums/v1/task_queue.rbi +134 -0
- data/rbi/temporalio/api/enums/v1/update.rbi +39 -0
- data/rbi/temporalio/api/enums/v1/workflow.rbi +259 -0
- data/rbi/temporalio/api/errordetails/v1/message.rbi +1389 -0
- data/rbi/temporalio/api/export/v1/message.rbi +123 -0
- data/rbi/temporalio/api/failure/v1/message.rbi +1303 -0
- data/rbi/temporalio/api/filter/v1/message.rbi +267 -0
- data/rbi/temporalio/api/history/v1/message.rbi +10737 -0
- data/rbi/temporalio/api/namespace/v1/message.rbi +1044 -0
- data/rbi/temporalio/api/nexus/v1/message.rbi +2780 -0
- data/rbi/temporalio/api/nexusannotations/v1/options.rbi +161 -0
- data/rbi/temporalio/api/nexusservices/workerservice/v1/request_response.rbi +124 -0
- data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +1836 -0
- data/rbi/temporalio/api/operatorservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +143 -0
- data/rbi/temporalio/api/operatorservice.rbi +5 -0
- data/rbi/temporalio/api/payload_visitor.rbi +876 -0
- data/rbi/temporalio/api/protoc_gen_openapiv2/options/annotations.rbi +3 -0
- data/rbi/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbi +3482 -0
- data/rbi/temporalio/api/protocol/v1/message.rbi +139 -0
- data/rbi/temporalio/api/protometa/v1/annotations.rbi +97 -0
- data/rbi/temporalio/api/query/v1/message.rbi +288 -0
- data/rbi/temporalio/api/replication/v1/message.rbi +226 -0
- data/rbi/temporalio/api/rules/v1/message.rbi +492 -0
- data/rbi/temporalio/api/schedule/v1/message.rbi +2377 -0
- data/rbi/temporalio/api/sdk/v1/enhanced_stack_trace.rbi +478 -0
- data/rbi/temporalio/api/sdk/v1/event_group_marker.rbi +337 -0
- data/rbi/temporalio/api/sdk/v1/external_storage.rbi +85 -0
- data/rbi/temporalio/api/sdk/v1/task_complete_metadata.rbi +206 -0
- data/rbi/temporalio/api/sdk/v1/user_metadata.rbi +98 -0
- data/rbi/temporalio/api/sdk/v1/worker_config.rbi +255 -0
- data/rbi/temporalio/api/sdk/v1/workflow_metadata.rbi +297 -0
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +2460 -0
- data/rbi/temporalio/api/testservice/v1/request_response.rbi +380 -0
- data/rbi/temporalio/api/testservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/testservice/v1/service_services.rbi +100 -0
- data/rbi/temporalio/api/update/v1/message.rbi +800 -0
- data/rbi/temporalio/api/version/v1/message.rbi +281 -0
- data/rbi/temporalio/api/worker/v1/message.rbi +1565 -0
- data/rbi/temporalio/api/workflow/v1/message.rbi +5011 -0
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +30477 -0
- data/rbi/temporalio/api/workflowservice/v1/service.rbi +3 -0
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +1571 -0
- data/rbi/temporalio/api/workflowservice.rbi +5 -0
- data/rbi/temporalio/api.rbi +7 -0
- data/rbi/temporalio/cancellation.rbi +40 -0
- data/rbi/temporalio/client/activity_execution.rbi +134 -0
- data/rbi/temporalio/client/activity_execution_count.rbi +23 -0
- data/rbi/temporalio/client/activity_execution_status.rbi +11 -0
- data/rbi/temporalio/client/activity_handle.rbi +49 -0
- data/rbi/temporalio/client/activity_id_reference.rbi +24 -0
- data/rbi/temporalio/client/async_activity_handle.rbi +49 -0
- data/rbi/temporalio/client/connection/cloud_service.rbi +239 -0
- data/rbi/temporalio/client/connection/operator_service.rbi +47 -0
- data/rbi/temporalio/client/connection/service.rbi +19 -0
- data/rbi/temporalio/client/connection/test_service.rbi +29 -0
- data/rbi/temporalio/client/connection/workflow_service.rbi +377 -0
- data/rbi/temporalio/client/connection.rbi +284 -0
- data/rbi/temporalio/client/interceptor.rbi +1067 -0
- data/rbi/temporalio/client/pending_activity_state.rbi +9 -0
- data/rbi/temporalio/client/plugin.rbi +17 -0
- data/rbi/temporalio/client/schedule.rbi +677 -0
- data/rbi/temporalio/client/schedule_handle.rbi +40 -0
- data/rbi/temporalio/client/with_start_workflow_operation.rbi +126 -0
- data/rbi/temporalio/client/workflow_execution.rbi +62 -0
- data/rbi/temporalio/client/workflow_execution_count.rbi +23 -0
- data/rbi/temporalio/client/workflow_execution_status.rbi +11 -0
- data/rbi/temporalio/client/workflow_handle.rbi +148 -0
- data/rbi/temporalio/client/workflow_query_reject_condition.rbi +7 -0
- data/rbi/temporalio/client/workflow_update_handle.rbi +38 -0
- data/rbi/temporalio/client/workflow_update_wait_stage.rbi +7 -0
- data/rbi/temporalio/client.rbi +534 -0
- data/rbi/temporalio/common_enums.rbi +45 -0
- data/rbi/temporalio/contrib/open_telemetry.rbi +73 -0
- data/rbi/temporalio/converters/data_converter.rbi +44 -0
- data/rbi/temporalio/converters/failure_converter.rbi +20 -0
- data/rbi/temporalio/converters/payload_codec.rbi +11 -0
- data/rbi/temporalio/converters/payload_converter/binary_null.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/binary_plain.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/binary_protobuf.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter/composite.rbi +20 -0
- data/rbi/temporalio/converters/payload_converter/encoding.rbi +14 -0
- data/rbi/temporalio/converters/payload_converter/json_plain.rbi +10 -0
- data/rbi/temporalio/converters/payload_converter/json_protobuf.rbi +5 -0
- data/rbi/temporalio/converters/payload_converter.rbi +28 -0
- data/rbi/temporalio/converters/raw_value.rbi +11 -0
- data/rbi/temporalio/converters.rbi +3 -0
- data/rbi/temporalio/env_config.rbi +156 -0
- data/rbi/temporalio/error/failure.rbi +3 -0
- data/rbi/temporalio/error.rbi +313 -0
- data/rbi/temporalio/internal/bridge/api/activity_result/activity_result.rbi +547 -0
- data/rbi/temporalio/internal/bridge/api/activity_task/activity_task.rbi +705 -0
- data/rbi/temporalio/internal/bridge/api/child_workflow/child_workflow.rbi +332 -0
- data/rbi/temporalio/internal/bridge/api/common/common.rbi +191 -0
- data/rbi/temporalio/internal/bridge/api/core_interface.rbi +567 -0
- data/rbi/temporalio/internal/bridge/api/external_data/external_data.rbi +255 -0
- data/rbi/temporalio/internal/bridge/api/nexus/nexus.rbi +527 -0
- data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +2808 -0
- data/rbi/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbi +3309 -0
- data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +272 -0
- data/rbi/temporalio/internal/bridge/api.rbi +3 -0
- data/rbi/temporalio/internal/bridge/client.rbi +346 -0
- data/rbi/temporalio/internal/bridge/runtime.rbi +231 -0
- data/rbi/temporalio/internal/bridge/testing.rbi +109 -0
- data/rbi/temporalio/internal/bridge/worker.rbi +250 -0
- data/rbi/temporalio/internal/bridge.rbi +47 -0
- data/rbi/temporalio/internal/client/implementation.rbi +53 -0
- data/rbi/temporalio/internal/google_protobuf.rbi +8 -0
- data/rbi/temporalio/internal/metric.rbi +55 -0
- data/rbi/temporalio/internal/proto_utils.rbi +148 -0
- data/rbi/temporalio/internal/worker/activity_worker.rbi +108 -0
- data/rbi/temporalio/internal/worker/multi_runner.rbi +175 -0
- data/rbi/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbi +20 -0
- data/rbi/temporalio/internal/worker/workflow_instance/context.rbi +290 -0
- data/rbi/temporalio/internal/worker/workflow_instance/details.rbi +87 -0
- data/rbi/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbi +14 -0
- data/rbi/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/handler_execution.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/handler_hash.rbi +24 -0
- data/rbi/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbi +17 -0
- data/rbi/temporalio/internal/worker/workflow_instance/inbound_implementation.rbi +21 -0
- data/rbi/temporalio/internal/worker/workflow_instance/nexus_client.rbi +47 -0
- data/rbi/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbi +19 -0
- data/rbi/temporalio/internal/worker/workflow_instance/outbound_implementation.rbi +43 -0
- data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbi +11 -0
- data/rbi/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbi +15 -0
- data/rbi/temporalio/internal/worker/workflow_instance/scheduler.rbi +36 -0
- data/rbi/temporalio/internal/worker/workflow_instance.rbi +231 -0
- data/rbi/temporalio/internal/worker/workflow_worker.rbi +199 -0
- data/rbi/temporalio/internal/workflow_task_failure_error.rbi +3 -0
- data/rbi/temporalio/internal.rbi +3 -0
- data/rbi/temporalio/metric.rbi +56 -0
- data/rbi/temporalio/priority.rbi +38 -0
- data/rbi/temporalio/retry_policy.rbi +40 -0
- data/rbi/temporalio/runtime/metric_buffer.rbi +45 -0
- data/rbi/temporalio/runtime.rbi +185 -0
- data/rbi/temporalio/scoped_logger.rbi +50 -0
- data/rbi/temporalio/search_attributes.rbi +94 -0
- data/rbi/temporalio/simple_plugin.rbi +41 -0
- data/rbi/temporalio/testing/activity_environment.rbi +43 -0
- data/rbi/temporalio/testing/workflow_environment.rbi +116 -0
- data/rbi/temporalio/testing.rbi +3 -0
- data/rbi/temporalio/version.rbi +5 -0
- data/rbi/temporalio/versioning_override.rbi +13 -0
- data/rbi/temporalio/worker/activity_executor/fiber.rbi +20 -0
- data/rbi/temporalio/worker/activity_executor/thread_pool.rbi +20 -0
- data/rbi/temporalio/worker/activity_executor.rbi +20 -0
- data/rbi/temporalio/worker/deployment_options.rbi +23 -0
- data/rbi/temporalio/worker/illegal_workflow_call_validator.rbi +33 -0
- data/rbi/temporalio/worker/interceptor.rbi +489 -0
- data/rbi/temporalio/worker/plugin.rbi +49 -0
- data/rbi/temporalio/worker/poller_behavior.rbi +29 -0
- data/rbi/temporalio/worker/thread_pool.rbi +38 -0
- data/rbi/temporalio/worker/tuner.rbi +221 -0
- data/rbi/temporalio/worker/workflow_executor/thread_pool.rbi +15 -0
- data/rbi/temporalio/worker/workflow_executor.rbi +8 -0
- data/rbi/temporalio/worker/workflow_replayer.rbi +152 -0
- data/rbi/temporalio/worker.rbi +258 -0
- data/rbi/temporalio/worker_deployment_version.rbi +29 -0
- data/rbi/temporalio/workflow/activity_cancellation_type.rbi +7 -0
- data/rbi/temporalio/workflow/child_workflow_cancellation_type.rbi +8 -0
- data/rbi/temporalio/workflow/child_workflow_handle.rbi +27 -0
- data/rbi/temporalio/workflow/definition.rbi +305 -0
- data/rbi/temporalio/workflow/external_workflow_handle.rbi +24 -0
- data/rbi/temporalio/workflow/future.rbi +62 -0
- data/rbi/temporalio/workflow/handler_unfinished_policy.rbi +6 -0
- data/rbi/temporalio/workflow/info.rbi +100 -0
- data/rbi/temporalio/workflow/nexus_client.rbi +65 -0
- data/rbi/temporalio/workflow/nexus_operation_cancellation_type.rbi +8 -0
- data/rbi/temporalio/workflow/nexus_operation_handle.rbi +14 -0
- data/rbi/temporalio/workflow/parent_close_policy.rbi +8 -0
- data/rbi/temporalio/workflow/update_info.rbi +14 -0
- data/rbi/temporalio/workflow.rbi +393 -0
- data/rbi/temporalio/workflow_history.rbi +21 -0
- data/rbi/temporalio.rbi +5 -0
- data/sig/common.rbs +1 -0
- data/sig/google/protobuf_compat.rbs +17 -0
- data/sig/open_telemetry.rbs +47 -0
- data/sig/temporalio/activity/cancellation_details.rbs +21 -0
- data/sig/temporalio/activity/complete_async_error.rbs +6 -0
- data/sig/temporalio/activity/context.rbs +26 -0
- data/sig/temporalio/activity/definition.rbs +60 -0
- data/sig/temporalio/activity/info.rbs +57 -0
- data/sig/temporalio/activity.rbs +4 -0
- data/sig/temporalio/api/activity/v1/message.rbs +708 -0
- data/sig/temporalio/api/batch/v1/message.rbs +594 -0
- data/sig/temporalio/api/callback/v1/message.rbs +112 -0
- data/sig/temporalio/api/cloud/account/v1/message.rbs +314 -0
- data/sig/temporalio/api/cloud/auditlog/v1/message.rbs +168 -0
- data/sig/temporalio/api/cloud/billing/v1/message.rbs +279 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +4726 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/service.rbs +25 -0
- data/sig/temporalio/api/cloud/cloudservice.rbs +8 -0
- data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +191 -0
- data/sig/temporalio/api/cloud/identity/v1/message.rbs +1372 -0
- data/sig/temporalio/api/cloud/namespace/v1/message.rbs +1571 -0
- data/sig/temporalio/api/cloud/nexus/v1/message.rbs +269 -0
- data/sig/temporalio/api/cloud/operation/v1/message.rbs +156 -0
- data/sig/temporalio/api/cloud/region/v1/message.rbs +109 -0
- data/sig/temporalio/api/cloud/resource/v1/message.rbs +61 -0
- data/sig/temporalio/api/cloud/sink/v1/message.rbs +207 -0
- data/sig/temporalio/api/cloud/usage/v1/message.rbs +230 -0
- data/sig/temporalio/api/command/v1/message.rbs +1211 -0
- data/sig/temporalio/api/common/v1/grpc_status.rbs +59 -0
- data/sig/temporalio/api/common/v1/message.rbs +1238 -0
- data/sig/temporalio/api/compute/v1/config.rbs +176 -0
- data/sig/temporalio/api/compute/v1/provider.rbs +73 -0
- data/sig/temporalio/api/compute/v1/scaler.rbs +60 -0
- data/sig/temporalio/api/deployment/v1/message.rbs +1063 -0
- data/sig/temporalio/api/enums/v1/activity.rbs +134 -0
- data/sig/temporalio/api/enums/v1/batch_operation.rbs +80 -0
- data/sig/temporalio/api/enums/v1/command_type.rbs +74 -0
- data/sig/temporalio/api/enums/v1/common.rbs +271 -0
- data/sig/temporalio/api/enums/v1/deployment.rbs +177 -0
- data/sig/temporalio/api/enums/v1/event_type.rbs +263 -0
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +281 -0
- data/sig/temporalio/api/enums/v1/namespace.rbs +87 -0
- data/sig/temporalio/api/enums/v1/nexus.rbs +172 -0
- data/sig/temporalio/api/enums/v1/query.rbs +69 -0
- data/sig/temporalio/api/enums/v1/reset.rbs +106 -0
- data/sig/temporalio/api/enums/v1/schedule.rbs +68 -0
- data/sig/temporalio/api/enums/v1/task_queue.rbs +238 -0
- data/sig/temporalio/api/enums/v1/update.rbs +87 -0
- data/sig/temporalio/api/enums/v1/workflow.rbs +435 -0
- data/sig/temporalio/api/errordetails/v1/message.rbs +532 -0
- data/sig/temporalio/api/export/v1/message.rbs +63 -0
- data/sig/temporalio/api/failure/v1/message.rbs +579 -0
- data/sig/temporalio/api/filter/v1/message.rbs +121 -0
- data/sig/temporalio/api/history/v1/message.rbs +4928 -0
- data/sig/temporalio/api/namespace/v1/message.rbs +465 -0
- data/sig/temporalio/api/nexus/v1/message.rbs +1268 -0
- data/sig/temporalio/api/nexusannotations/v1/options.rbs +76 -0
- data/sig/temporalio/api/nexusservices/workerservice/v1/request_response.rbs +65 -0
- data/sig/temporalio/api/operatorservice/v1/request_response.rbs +679 -0
- data/sig/temporalio/api/operatorservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/operatorservice.rbs +6 -0
- data/sig/temporalio/api/payload_visitor.rbs +298 -0
- data/sig/temporalio/api/protoc_gen_openapiv2/options/annotations.rbs +23 -0
- data/sig/temporalio/api/protoc_gen_openapiv2/options/openapiv2.rbs +1691 -0
- data/sig/temporalio/api/protocol/v1/message.rbs +90 -0
- data/sig/temporalio/api/protometa/v1/annotations.rbs +62 -0
- data/sig/temporalio/api/query/v1/message.rbs +138 -0
- data/sig/temporalio/api/replication/v1/message.rbs +109 -0
- data/sig/temporalio/api/rules/v1/message.rbs +213 -0
- data/sig/temporalio/api/schedule/v1/message.rbs +1066 -0
- data/sig/temporalio/api/sdk/v1/enhanced_stack_trace.rbs +210 -0
- data/sig/temporalio/api/sdk/v1/event_group_marker.rbs +154 -0
- data/sig/temporalio/api/sdk/v1/external_storage.rbs +54 -0
- data/sig/temporalio/api/sdk/v1/task_complete_metadata.rbs +92 -0
- data/sig/temporalio/api/sdk/v1/user_metadata.rbs +58 -0
- data/sig/temporalio/api/sdk/v1/worker_config.rbs +122 -0
- data/sig/temporalio/api/sdk/v1/workflow_metadata.rbs +138 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +1013 -0
- data/sig/temporalio/api/testservice/v1/request_response.rbs +125 -0
- data/sig/temporalio/api/testservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/update/v1/message.rbs +349 -0
- data/sig/temporalio/api/version/v1/message.rbs +143 -0
- data/sig/temporalio/api/worker/v1/message.rbs +716 -0
- data/sig/temporalio/api/workflow/v1/message.rbs +2322 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +12735 -0
- data/sig/temporalio/api/workflowservice/v1/service.rbs +23 -0
- data/sig/temporalio/api/workflowservice.rbs +6 -0
- data/sig/temporalio/api.rbs +4 -0
- data/sig/temporalio/cancellation.rbs +20 -0
- data/sig/temporalio/client/activity_execution.rbs +50 -0
- data/sig/temporalio/client/activity_execution_count.rbs +17 -0
- data/sig/temporalio/client/activity_execution_status.rbs +15 -0
- data/sig/temporalio/client/activity_handle.rbs +26 -0
- data/sig/temporalio/client/activity_id_reference.rbs +16 -0
- data/sig/temporalio/client/async_activity_handle.rbs +41 -0
- data/sig/temporalio/client/connection/cloud_service.rbs +315 -0
- data/sig/temporalio/client/connection/operator_service.rbs +59 -0
- data/sig/temporalio/client/connection/service.rbs +17 -0
- data/sig/temporalio/client/connection/test_service.rbs +35 -0
- data/sig/temporalio/client/connection/workflow_service.rbs +499 -0
- data/sig/temporalio/client/connection.rbs +143 -0
- data/sig/temporalio/client/interceptor.rbs +622 -0
- data/sig/temporalio/client/pending_activity_state.rbs +14 -0
- data/sig/temporalio/client/plugin.rbs +14 -0
- data/sig/temporalio/client/schedule.rbs +337 -0
- data/sig/temporalio/client/schedule_handle.rbs +44 -0
- data/sig/temporalio/client/with_start_workflow_operation.rbs +82 -0
- data/sig/temporalio/client/workflow_execution.rbs +37 -0
- data/sig/temporalio/client/workflow_execution_count.rbs +17 -0
- data/sig/temporalio/client/workflow_execution_status.rbs +16 -0
- data/sig/temporalio/client/workflow_handle.rbs +95 -0
- data/sig/temporalio/client/workflow_query_reject_condition.rbs +12 -0
- data/sig/temporalio/client/workflow_update_handle.rbs +26 -0
- data/sig/temporalio/client/workflow_update_wait_stage.rbs +12 -0
- data/sig/temporalio/client.rbs +271 -0
- data/sig/temporalio/common_enums.rbs +60 -0
- data/sig/temporalio/contrib/open_telemetry.rbs +74 -0
- data/sig/temporalio/converters/data_converter.rbs +32 -0
- data/sig/temporalio/converters/failure_converter.rbs +12 -0
- data/sig/temporalio/converters/payload_codec.rbs +8 -0
- data/sig/temporalio/converters/payload_converter/binary_null.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/binary_plain.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/binary_protobuf.rbs +9 -0
- data/sig/temporalio/converters/payload_converter/composite.rbs +16 -0
- data/sig/temporalio/converters/payload_converter/encoding.rbs +13 -0
- data/sig/temporalio/converters/payload_converter/json_plain.rbs +14 -0
- data/sig/temporalio/converters/payload_converter/json_protobuf.rbs +9 -0
- data/sig/temporalio/converters/payload_converter.rbs +24 -0
- data/sig/temporalio/converters/raw_value.rbs +9 -0
- data/sig/temporalio/converters.rbs +4 -0
- data/sig/temporalio/env_config.rbs +86 -0
- data/sig/temporalio/error/failure.rbs +170 -0
- data/sig/temporalio/error.rbs +88 -0
- data/sig/temporalio/internal/bridge/api/activity_result/activity_result.rbs +247 -0
- data/sig/temporalio/internal/bridge/api/activity_task/activity_task.rbs +372 -0
- data/sig/temporalio/internal/bridge/api/child_workflow/child_workflow.rbs +207 -0
- data/sig/temporalio/internal/bridge/api/common/common.rbs +123 -0
- data/sig/temporalio/internal/bridge/api/core_interface.rbs +231 -0
- data/sig/temporalio/internal/bridge/api/external_data/external_data.rbs +134 -0
- data/sig/temporalio/internal/bridge/api/nexus/nexus.rbs +285 -0
- data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +1304 -0
- data/sig/temporalio/internal/bridge/api/workflow_commands/workflow_commands.rbs +1526 -0
- data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +136 -0
- data/sig/temporalio/internal/bridge/api.rbs +8 -0
- data/sig/temporalio/internal/bridge/client.rbs +144 -0
- data/sig/temporalio/internal/bridge/metric.rbs +28 -0
- data/sig/temporalio/internal/bridge/runtime.rbs +97 -0
- data/sig/temporalio/internal/bridge/testing.rbs +91 -0
- data/sig/temporalio/internal/bridge/worker.rbs +199 -0
- data/sig/temporalio/internal/bridge.rbs +36 -0
- data/sig/temporalio/internal/client/implementation.rbs +33 -0
- data/sig/temporalio/internal/google_protobuf.rbs +7 -0
- data/sig/temporalio/internal/metric.rbs +35 -0
- data/sig/temporalio/internal/proto_utils.rbs +94 -0
- data/sig/temporalio/internal/worker/activity_worker.rbs +64 -0
- data/sig/temporalio/internal/worker/multi_runner.rbs +132 -0
- data/sig/temporalio/internal/worker/workflow_instance/child_workflow_handle.rbs +22 -0
- data/sig/temporalio/internal/worker/workflow_instance/context.rbs +172 -0
- data/sig/temporalio/internal/worker/workflow_instance/details.rbs +43 -0
- data/sig/temporalio/internal/worker/workflow_instance/external_workflow_handle.rbs +15 -0
- data/sig/temporalio/internal/worker/workflow_instance/externally_immutable_hash.rbs +16 -0
- data/sig/temporalio/internal/worker/workflow_instance/handler_execution.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/handler_hash.rbs +14 -0
- data/sig/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rbs +20 -0
- data/sig/temporalio/internal/worker/workflow_instance/inbound_implementation.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/nexus_client.rbs +25 -0
- data/sig/temporalio/internal/worker/workflow_instance/nexus_operation_handle.rbs +19 -0
- data/sig/temporalio/internal/worker/workflow_instance/outbound_implementation.rbs +35 -0
- data/sig/temporalio/internal/worker/workflow_instance/replay_safe_logger.rbs +16 -0
- data/sig/temporalio/internal/worker/workflow_instance/replay_safe_metric.rbs +15 -0
- data/sig/temporalio/internal/worker/workflow_instance/scheduler.rbs +52 -0
- data/sig/temporalio/internal/worker/workflow_instance.rbs +111 -0
- data/sig/temporalio/internal/worker/workflow_worker.rbs +99 -0
- data/sig/temporalio/internal/workflow_task_failure_error.rbs +6 -0
- data/sig/temporalio/internal.rbs +4 -0
- data/sig/temporalio/metric.rbs +55 -0
- data/sig/temporalio/priority.rbs +17 -0
- data/sig/temporalio/retry_policy.rbs +21 -0
- data/sig/temporalio/runtime/metric_buffer.rbs +49 -0
- data/sig/temporalio/runtime.rbs +118 -0
- data/sig/temporalio/scoped_logger.rbs +15 -0
- data/sig/temporalio/search_attributes.rbs +82 -0
- data/sig/temporalio/simple_plugin.rbs +65 -0
- data/sig/temporalio/testing/activity_environment.rbs +52 -0
- data/sig/temporalio/testing/workflow_environment.rbs +141 -0
- data/sig/temporalio/testing.rbs +4 -0
- data/sig/temporalio/version.rbs +3 -0
- data/sig/temporalio/versioning_override.rbs +17 -0
- data/sig/temporalio/worker/activity_executor/fiber.rbs +9 -0
- data/sig/temporalio/worker/activity_executor/thread_pool.rbs +11 -0
- data/sig/temporalio/worker/activity_executor.rbs +12 -0
- data/sig/temporalio/worker/deployment_options.rbs +17 -0
- data/sig/temporalio/worker/illegal_workflow_call_validator.rbs +25 -0
- data/sig/temporalio/worker/interceptor.rbs +373 -0
- data/sig/temporalio/worker/plugin.rbs +47 -0
- data/sig/temporalio/worker/poller_behavior.rbs +23 -0
- data/sig/temporalio/worker/thread_pool.rbs +44 -0
- data/sig/temporalio/worker/tuner.rbs +121 -0
- data/sig/temporalio/worker/workflow_executor/thread_pool.rbs +58 -0
- data/sig/temporalio/worker/workflow_executor.rbs +15 -0
- data/sig/temporalio/worker/workflow_replayer.rbs +105 -0
- data/sig/temporalio/worker.rbs +168 -0
- data/sig/temporalio/worker_deployment_version.rbs +17 -0
- data/sig/temporalio/workflow/activity_cancellation_type.rbs +11 -0
- data/sig/temporalio/workflow/child_workflow_cancellation_type.rbs +12 -0
- data/sig/temporalio/workflow/child_workflow_handle.rbs +18 -0
- data/sig/temporalio/workflow/definition.rbs +181 -0
- data/sig/temporalio/workflow/external_workflow_handle.rbs +17 -0
- data/sig/temporalio/workflow/future.rbs +24 -0
- data/sig/temporalio/workflow/handler_unfinished_policy.rbs +10 -0
- data/sig/temporalio/workflow/info.rbs +79 -0
- data/sig/temporalio/workflow/nexus_client.rbs +34 -0
- data/sig/temporalio/workflow/nexus_operation_cancellation_type.rbs +12 -0
- data/sig/temporalio/workflow/nexus_operation_handle.rbs +10 -0
- data/sig/temporalio/workflow/parent_close_policy.rbs +12 -0
- data/sig/temporalio/workflow/update_info.rbs +15 -0
- data/sig/temporalio/workflow.rbs +215 -0
- data/sig/temporalio/workflow_history.rbs +13 -0
- data/sig/temporalio.rbs +3 -0
- data/temporalio.gemspec +1 -1
- metadata +445 -2
|
@@ -0,0 +1,1268 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# This RBS interface is provided for convenience, on a best-effort basis.
|
|
3
|
+
# The library is the definitive source for the API contract; if the RBS file
|
|
4
|
+
# and the library's behavior differ, the library behavior is authoritative.
|
|
5
|
+
# We welcome fixes to change the RBS file to match.
|
|
6
|
+
# source: temporal/api/nexus/v1/message.proto
|
|
7
|
+
|
|
8
|
+
module Temporalio
|
|
9
|
+
module Api
|
|
10
|
+
module Nexus
|
|
11
|
+
module V1
|
|
12
|
+
# A general purpose failure message.
|
|
13
|
+
# See: https://github.com/nexus-rpc/api/blob/main/SPEC.md#failure
|
|
14
|
+
class Failure < ::Google::Protobuf::AbstractMessage
|
|
15
|
+
|
|
16
|
+
attr_reader message(): ::String
|
|
17
|
+
attr_writer message(): ::String | ::Symbol
|
|
18
|
+
def clear_message: () -> void
|
|
19
|
+
|
|
20
|
+
attr_reader stack_trace(): ::String
|
|
21
|
+
attr_writer stack_trace(): ::String | ::Symbol
|
|
22
|
+
def clear_stack_trace: () -> void
|
|
23
|
+
|
|
24
|
+
attr_accessor metadata(): ::Google::Protobuf::Map[::String, ::String]
|
|
25
|
+
def clear_metadata: () -> void
|
|
26
|
+
|
|
27
|
+
# UTF-8 encoded JSON serializable details.
|
|
28
|
+
attr_accessor details(): ::String
|
|
29
|
+
def clear_details: () -> void
|
|
30
|
+
|
|
31
|
+
attr_accessor cause(): ::Temporalio::Api::Nexus::V1::Failure?
|
|
32
|
+
def has_cause?: () -> bool
|
|
33
|
+
def clear_cause: () -> void
|
|
34
|
+
|
|
35
|
+
type init_map = {
|
|
36
|
+
message: (::String | ::Symbol)?,
|
|
37
|
+
"message" => (::String | ::Symbol)?,
|
|
38
|
+
stack_trace: (::String | ::Symbol)?,
|
|
39
|
+
"stack_trace" => (::String | ::Symbol)?,
|
|
40
|
+
metadata: ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
|
|
41
|
+
"metadata" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
|
|
42
|
+
details: ::String?,
|
|
43
|
+
"details" => ::String?,
|
|
44
|
+
cause: (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?,
|
|
45
|
+
"cause" => (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?,
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
def initialize: (?init_map initial_value) -> void
|
|
49
|
+
|
|
50
|
+
def []:
|
|
51
|
+
("message" name) -> ::String
|
|
52
|
+
| ("stack_trace" name) -> ::String
|
|
53
|
+
| ("metadata" name) -> (::Google::Protobuf::Map[::String, ::String])
|
|
54
|
+
| ("details" name) -> ::String
|
|
55
|
+
| ("cause" name) -> ::Temporalio::Api::Nexus::V1::Failure?
|
|
56
|
+
|
|
57
|
+
def []=:
|
|
58
|
+
("message" name, (::String | ::Symbol) value) -> void
|
|
59
|
+
| ("stack_trace" name, (::String | ::Symbol) value) -> void
|
|
60
|
+
| ("metadata" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void
|
|
61
|
+
| ("details" name, ::String value) -> void
|
|
62
|
+
| ("cause" name, ::Temporalio::Api::Nexus::V1::Failure? value) -> void
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
class HandlerError < ::Google::Protobuf::AbstractMessage
|
|
66
|
+
|
|
67
|
+
# See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.
|
|
68
|
+
attr_reader error_type(): ::String
|
|
69
|
+
attr_writer error_type(): ::String | ::Symbol
|
|
70
|
+
def clear_error_type: () -> void
|
|
71
|
+
|
|
72
|
+
attr_accessor failure(): ::Temporalio::Api::Nexus::V1::Failure?
|
|
73
|
+
def has_failure?: () -> bool
|
|
74
|
+
def clear_failure: () -> void
|
|
75
|
+
|
|
76
|
+
# Retry behavior, defaults to the retry behavior of the error type as defined in the spec.
|
|
77
|
+
attr_reader retry_behavior(): ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Integer
|
|
78
|
+
attr_writer retry_behavior(): ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float
|
|
79
|
+
attr_reader retry_behavior_const(): ::Integer
|
|
80
|
+
def clear_retry_behavior: () -> void
|
|
81
|
+
|
|
82
|
+
type init_map = {
|
|
83
|
+
error_type: (::String | ::Symbol)?,
|
|
84
|
+
"error_type" => (::String | ::Symbol)?,
|
|
85
|
+
failure: (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?,
|
|
86
|
+
"failure" => (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?,
|
|
87
|
+
retry_behavior: (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float)?,
|
|
88
|
+
"retry_behavior" => (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float)?,
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
def initialize: (?init_map initial_value) -> void
|
|
92
|
+
|
|
93
|
+
def []:
|
|
94
|
+
("error_type" name) -> ::String
|
|
95
|
+
| ("failure" name) -> ::Temporalio::Api::Nexus::V1::Failure?
|
|
96
|
+
| ("retry_behavior" name) -> (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Integer)
|
|
97
|
+
|
|
98
|
+
def []=:
|
|
99
|
+
("error_type" name, (::String | ::Symbol) value) -> void
|
|
100
|
+
| ("failure" name, ::Temporalio::Api::Nexus::V1::Failure? value) -> void
|
|
101
|
+
| ("retry_behavior" name, (::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::names | ::Temporalio::Api::Enums::V1::NexusHandlerErrorRetryBehavior::strings | ::Integer | ::Float) value) -> void
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
class UnsuccessfulOperationError < ::Google::Protobuf::AbstractMessage
|
|
105
|
+
|
|
106
|
+
# See https://github.com/nexus-rpc/api/blob/main/SPEC.md#operationinfo.
|
|
107
|
+
attr_reader operation_state(): ::String
|
|
108
|
+
attr_writer operation_state(): ::String | ::Symbol
|
|
109
|
+
def clear_operation_state: () -> void
|
|
110
|
+
|
|
111
|
+
attr_accessor failure(): ::Temporalio::Api::Nexus::V1::Failure?
|
|
112
|
+
def has_failure?: () -> bool
|
|
113
|
+
def clear_failure: () -> void
|
|
114
|
+
|
|
115
|
+
type init_map = {
|
|
116
|
+
operation_state: (::String | ::Symbol)?,
|
|
117
|
+
"operation_state" => (::String | ::Symbol)?,
|
|
118
|
+
failure: (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?,
|
|
119
|
+
"failure" => (::Temporalio::Api::Nexus::V1::Failure | ::Temporalio::Api::Nexus::V1::Failure::init_map)?,
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
def initialize: (?init_map initial_value) -> void
|
|
123
|
+
|
|
124
|
+
def []:
|
|
125
|
+
("operation_state" name) -> ::String
|
|
126
|
+
| ("failure" name) -> ::Temporalio::Api::Nexus::V1::Failure?
|
|
127
|
+
|
|
128
|
+
def []=:
|
|
129
|
+
("operation_state" name, (::String | ::Symbol) value) -> void
|
|
130
|
+
| ("failure" name, ::Temporalio::Api::Nexus::V1::Failure? value) -> void
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class Link < ::Google::Protobuf::AbstractMessage
|
|
134
|
+
|
|
135
|
+
# See https://github.com/nexus-rpc/api/blob/main/SPEC.md#links.
|
|
136
|
+
attr_reader url(): ::String
|
|
137
|
+
attr_writer url(): ::String | ::Symbol
|
|
138
|
+
def clear_url: () -> void
|
|
139
|
+
|
|
140
|
+
attr_reader type(): ::String
|
|
141
|
+
attr_writer type(): ::String | ::Symbol
|
|
142
|
+
def clear_type: () -> void
|
|
143
|
+
|
|
144
|
+
type init_map = {
|
|
145
|
+
url: (::String | ::Symbol)?,
|
|
146
|
+
"url" => (::String | ::Symbol)?,
|
|
147
|
+
type: (::String | ::Symbol)?,
|
|
148
|
+
"type" => (::String | ::Symbol)?,
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
def initialize: (?init_map initial_value) -> void
|
|
152
|
+
|
|
153
|
+
def []:
|
|
154
|
+
("url" name) -> ::String
|
|
155
|
+
| ("type" name) -> ::String
|
|
156
|
+
|
|
157
|
+
def []=:
|
|
158
|
+
("url" name, (::String | ::Symbol) value) -> void
|
|
159
|
+
| ("type" name, (::String | ::Symbol) value) -> void
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# A request to start an operation.
|
|
163
|
+
class StartOperationRequest < ::Google::Protobuf::AbstractMessage
|
|
164
|
+
|
|
165
|
+
# Name of service to start the operation in.
|
|
166
|
+
attr_reader service(): ::String
|
|
167
|
+
attr_writer service(): ::String | ::Symbol
|
|
168
|
+
def clear_service: () -> void
|
|
169
|
+
|
|
170
|
+
# Type of operation to start.
|
|
171
|
+
attr_reader operation(): ::String
|
|
172
|
+
attr_writer operation(): ::String | ::Symbol
|
|
173
|
+
def clear_operation: () -> void
|
|
174
|
+
|
|
175
|
+
# A request ID that can be used as an idempotentency key.
|
|
176
|
+
attr_reader request_id(): ::String
|
|
177
|
+
attr_writer request_id(): ::String | ::Symbol
|
|
178
|
+
def clear_request_id: () -> void
|
|
179
|
+
|
|
180
|
+
# Callback URL to call upon completion if the started operation is async.
|
|
181
|
+
attr_reader callback(): ::String
|
|
182
|
+
attr_writer callback(): ::String | ::Symbol
|
|
183
|
+
def clear_callback: () -> void
|
|
184
|
+
|
|
185
|
+
# Full request body from the incoming HTTP request.
|
|
186
|
+
attr_accessor payload(): ::Temporalio::Api::Common::V1::Payload?
|
|
187
|
+
def has_payload?: () -> bool
|
|
188
|
+
def clear_payload: () -> void
|
|
189
|
+
|
|
190
|
+
# Header that is expected to be attached to the callback request when the operation completes.
|
|
191
|
+
attr_accessor callback_header(): ::Google::Protobuf::Map[::String, ::String]
|
|
192
|
+
def clear_callback_header: () -> void
|
|
193
|
+
|
|
194
|
+
# Links contain caller information and can be attached to the operations started by the handler.
|
|
195
|
+
attr_accessor links(): ::Google::Protobuf::RepeatedField
|
|
196
|
+
def clear_links: () -> void
|
|
197
|
+
|
|
198
|
+
type init_map = {
|
|
199
|
+
service: (::String | ::Symbol)?,
|
|
200
|
+
"service" => (::String | ::Symbol)?,
|
|
201
|
+
operation: (::String | ::Symbol)?,
|
|
202
|
+
"operation" => (::String | ::Symbol)?,
|
|
203
|
+
request_id: (::String | ::Symbol)?,
|
|
204
|
+
"request_id" => (::String | ::Symbol)?,
|
|
205
|
+
callback: (::String | ::Symbol)?,
|
|
206
|
+
"callback" => (::String | ::Symbol)?,
|
|
207
|
+
payload: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?,
|
|
208
|
+
"payload" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?,
|
|
209
|
+
callback_header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
|
|
210
|
+
"callback_header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
|
|
211
|
+
links: ::Array[::Temporalio::Api::Nexus::V1::Link]?,
|
|
212
|
+
"links" => ::Array[::Temporalio::Api::Nexus::V1::Link]?,
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
def initialize: (?init_map initial_value) -> void
|
|
216
|
+
|
|
217
|
+
def []:
|
|
218
|
+
("service" name) -> ::String
|
|
219
|
+
| ("operation" name) -> ::String
|
|
220
|
+
| ("request_id" name) -> ::String
|
|
221
|
+
| ("callback" name) -> ::String
|
|
222
|
+
| ("payload" name) -> ::Temporalio::Api::Common::V1::Payload?
|
|
223
|
+
| ("callback_header" name) -> (::Google::Protobuf::Map[::String, ::String])
|
|
224
|
+
| ("links" name) -> ::Google::Protobuf::RepeatedField
|
|
225
|
+
|
|
226
|
+
def []=:
|
|
227
|
+
("service" name, (::String | ::Symbol) value) -> void
|
|
228
|
+
| ("operation" name, (::String | ::Symbol) value) -> void
|
|
229
|
+
| ("request_id" name, (::String | ::Symbol) value) -> void
|
|
230
|
+
| ("callback" name, (::String | ::Symbol) value) -> void
|
|
231
|
+
| ("payload" name, ::Temporalio::Api::Common::V1::Payload? value) -> void
|
|
232
|
+
| ("callback_header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void
|
|
233
|
+
| ("links" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# A request to cancel an operation.
|
|
237
|
+
class CancelOperationRequest < ::Google::Protobuf::AbstractMessage
|
|
238
|
+
|
|
239
|
+
# Service name.
|
|
240
|
+
attr_reader service(): ::String
|
|
241
|
+
attr_writer service(): ::String | ::Symbol
|
|
242
|
+
def clear_service: () -> void
|
|
243
|
+
|
|
244
|
+
# Type of operation to cancel.
|
|
245
|
+
attr_reader operation(): ::String
|
|
246
|
+
attr_writer operation(): ::String | ::Symbol
|
|
247
|
+
def clear_operation: () -> void
|
|
248
|
+
|
|
249
|
+
# Operation ID as originally generated by a Handler.
|
|
250
|
+
# Deprecated. Renamed to operation_token.
|
|
251
|
+
# @deprecated
|
|
252
|
+
attr_reader operation_id(): ::String
|
|
253
|
+
attr_writer operation_id(): ::String | ::Symbol
|
|
254
|
+
def clear_operation_id: () -> void
|
|
255
|
+
|
|
256
|
+
# Operation token as originally generated by a Handler.
|
|
257
|
+
attr_reader operation_token(): ::String
|
|
258
|
+
attr_writer operation_token(): ::String | ::Symbol
|
|
259
|
+
def clear_operation_token: () -> void
|
|
260
|
+
|
|
261
|
+
type init_map = {
|
|
262
|
+
service: (::String | ::Symbol)?,
|
|
263
|
+
"service" => (::String | ::Symbol)?,
|
|
264
|
+
operation: (::String | ::Symbol)?,
|
|
265
|
+
"operation" => (::String | ::Symbol)?,
|
|
266
|
+
operation_id: (::String | ::Symbol)?,
|
|
267
|
+
"operation_id" => (::String | ::Symbol)?,
|
|
268
|
+
operation_token: (::String | ::Symbol)?,
|
|
269
|
+
"operation_token" => (::String | ::Symbol)?,
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
def initialize: (?init_map initial_value) -> void
|
|
273
|
+
|
|
274
|
+
def []:
|
|
275
|
+
("service" name) -> ::String
|
|
276
|
+
| ("operation" name) -> ::String
|
|
277
|
+
| ("operation_id" name) -> ::String
|
|
278
|
+
| ("operation_token" name) -> ::String
|
|
279
|
+
|
|
280
|
+
def []=:
|
|
281
|
+
("service" name, (::String | ::Symbol) value) -> void
|
|
282
|
+
| ("operation" name, (::String | ::Symbol) value) -> void
|
|
283
|
+
| ("operation_id" name, (::String | ::Symbol) value) -> void
|
|
284
|
+
| ("operation_token" name, (::String | ::Symbol) value) -> void
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# A Nexus request.
|
|
288
|
+
class Request < ::Google::Protobuf::AbstractMessage
|
|
289
|
+
class Capabilities < ::Google::Protobuf::AbstractMessage
|
|
290
|
+
|
|
291
|
+
# If set, handlers may use temporal.api.failure.v1.Failure instances to return failures to the server.
|
|
292
|
+
# This also allows handler and operation errors to have their own messages and stack traces.
|
|
293
|
+
attr_accessor temporal_failure_responses(): bool
|
|
294
|
+
def clear_temporal_failure_responses: () -> void
|
|
295
|
+
|
|
296
|
+
type init_map = {
|
|
297
|
+
temporal_failure_responses: bool?,
|
|
298
|
+
"temporal_failure_responses" => bool?,
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
def initialize: (?init_map initial_value) -> void
|
|
302
|
+
|
|
303
|
+
def []:
|
|
304
|
+
("temporal_failure_responses" name) -> bool
|
|
305
|
+
|
|
306
|
+
def []=:
|
|
307
|
+
("temporal_failure_responses" name, bool value) -> void
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Headers extracted from the original request in the Temporal frontend.
|
|
311
|
+
# When using Nexus over HTTP, this includes the request's HTTP headers ignoring multiple values.
|
|
312
|
+
attr_accessor header(): ::Google::Protobuf::Map[::String, ::String]
|
|
313
|
+
def clear_header: () -> void
|
|
314
|
+
|
|
315
|
+
# The timestamp when the request was scheduled in the frontend.
|
|
316
|
+
# (-- api-linter: core::0142::time-field-names=disabled
|
|
317
|
+
# aip.dev/not-precedent: Not following linter rules. --)
|
|
318
|
+
attr_reader scheduled_time(): ::Google::Protobuf::Timestamp?
|
|
319
|
+
attr_writer scheduled_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
320
|
+
def has_scheduled_time?: () -> bool
|
|
321
|
+
def clear_scheduled_time: () -> void
|
|
322
|
+
|
|
323
|
+
attr_accessor capabilities(): ::Temporalio::Api::Nexus::V1::Request::Capabilities?
|
|
324
|
+
def has_capabilities?: () -> bool
|
|
325
|
+
def clear_capabilities: () -> void
|
|
326
|
+
|
|
327
|
+
attr_accessor start_operation(): ::Temporalio::Api::Nexus::V1::StartOperationRequest?
|
|
328
|
+
def has_start_operation?: () -> bool
|
|
329
|
+
def clear_start_operation: () -> void
|
|
330
|
+
|
|
331
|
+
attr_accessor cancel_operation(): ::Temporalio::Api::Nexus::V1::CancelOperationRequest?
|
|
332
|
+
def has_cancel_operation?: () -> bool
|
|
333
|
+
def clear_cancel_operation: () -> void
|
|
334
|
+
|
|
335
|
+
# The endpoint this request was addressed to before forwarding to the worker.
|
|
336
|
+
# Supported from server version 1.30.0.
|
|
337
|
+
attr_reader endpoint(): ::String
|
|
338
|
+
attr_writer endpoint(): ::String | ::Symbol
|
|
339
|
+
def clear_endpoint: () -> void
|
|
340
|
+
|
|
341
|
+
attr_reader variant(): (::Temporalio::Api::Nexus::V1::StartOperationRequest | ::Temporalio::Api::Nexus::V1::CancelOperationRequest)?
|
|
342
|
+
def has_variant?: () -> bool
|
|
343
|
+
def clear_variant: () -> void
|
|
344
|
+
|
|
345
|
+
type init_map = {
|
|
346
|
+
header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
|
|
347
|
+
"header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
|
|
348
|
+
scheduled_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
349
|
+
"scheduled_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
350
|
+
capabilities: (::Temporalio::Api::Nexus::V1::Request::Capabilities | ::Temporalio::Api::Nexus::V1::Request::Capabilities::init_map)?,
|
|
351
|
+
"capabilities" => (::Temporalio::Api::Nexus::V1::Request::Capabilities | ::Temporalio::Api::Nexus::V1::Request::Capabilities::init_map)?,
|
|
352
|
+
start_operation: (::Temporalio::Api::Nexus::V1::StartOperationRequest | ::Temporalio::Api::Nexus::V1::StartOperationRequest::init_map)?,
|
|
353
|
+
"start_operation" => (::Temporalio::Api::Nexus::V1::StartOperationRequest | ::Temporalio::Api::Nexus::V1::StartOperationRequest::init_map)?,
|
|
354
|
+
cancel_operation: (::Temporalio::Api::Nexus::V1::CancelOperationRequest | ::Temporalio::Api::Nexus::V1::CancelOperationRequest::init_map)?,
|
|
355
|
+
"cancel_operation" => (::Temporalio::Api::Nexus::V1::CancelOperationRequest | ::Temporalio::Api::Nexus::V1::CancelOperationRequest::init_map)?,
|
|
356
|
+
endpoint: (::String | ::Symbol)?,
|
|
357
|
+
"endpoint" => (::String | ::Symbol)?,
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
def initialize: (?init_map initial_value) -> void
|
|
361
|
+
|
|
362
|
+
def []:
|
|
363
|
+
("header" name) -> (::Google::Protobuf::Map[::String, ::String])
|
|
364
|
+
| ("scheduled_time" name) -> ::Google::Protobuf::Timestamp?
|
|
365
|
+
| ("capabilities" name) -> ::Temporalio::Api::Nexus::V1::Request::Capabilities?
|
|
366
|
+
| ("start_operation" name) -> ::Temporalio::Api::Nexus::V1::StartOperationRequest?
|
|
367
|
+
| ("cancel_operation" name) -> ::Temporalio::Api::Nexus::V1::CancelOperationRequest?
|
|
368
|
+
| ("endpoint" name) -> ::String
|
|
369
|
+
|
|
370
|
+
def []=:
|
|
371
|
+
("header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void
|
|
372
|
+
| ("scheduled_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
373
|
+
| ("capabilities" name, ::Temporalio::Api::Nexus::V1::Request::Capabilities? value) -> void
|
|
374
|
+
| ("start_operation" name, ::Temporalio::Api::Nexus::V1::StartOperationRequest? value) -> void
|
|
375
|
+
| ("cancel_operation" name, ::Temporalio::Api::Nexus::V1::CancelOperationRequest? value) -> void
|
|
376
|
+
| ("endpoint" name, (::String | ::Symbol) value) -> void
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Response variant for StartOperationRequest.
|
|
380
|
+
class StartOperationResponse < ::Google::Protobuf::AbstractMessage
|
|
381
|
+
# An operation completed successfully.
|
|
382
|
+
class Sync < ::Google::Protobuf::AbstractMessage
|
|
383
|
+
|
|
384
|
+
attr_accessor payload(): ::Temporalio::Api::Common::V1::Payload?
|
|
385
|
+
def has_payload?: () -> bool
|
|
386
|
+
def clear_payload: () -> void
|
|
387
|
+
|
|
388
|
+
attr_accessor links(): ::Google::Protobuf::RepeatedField
|
|
389
|
+
def clear_links: () -> void
|
|
390
|
+
|
|
391
|
+
type init_map = {
|
|
392
|
+
payload: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?,
|
|
393
|
+
"payload" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?,
|
|
394
|
+
links: ::Array[::Temporalio::Api::Nexus::V1::Link]?,
|
|
395
|
+
"links" => ::Array[::Temporalio::Api::Nexus::V1::Link]?,
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
def initialize: (?init_map initial_value) -> void
|
|
399
|
+
|
|
400
|
+
def []:
|
|
401
|
+
("payload" name) -> ::Temporalio::Api::Common::V1::Payload?
|
|
402
|
+
| ("links" name) -> ::Google::Protobuf::RepeatedField
|
|
403
|
+
|
|
404
|
+
def []=:
|
|
405
|
+
("payload" name, ::Temporalio::Api::Common::V1::Payload? value) -> void
|
|
406
|
+
| ("links" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# The operation will complete asynchronously.
|
|
410
|
+
# The returned ID can be used to reference this operation.
|
|
411
|
+
class Async < ::Google::Protobuf::AbstractMessage
|
|
412
|
+
|
|
413
|
+
# Deprecated. Renamed to operation_token.
|
|
414
|
+
# @deprecated
|
|
415
|
+
attr_reader operation_id(): ::String
|
|
416
|
+
attr_writer operation_id(): ::String | ::Symbol
|
|
417
|
+
def clear_operation_id: () -> void
|
|
418
|
+
|
|
419
|
+
attr_accessor links(): ::Google::Protobuf::RepeatedField
|
|
420
|
+
def clear_links: () -> void
|
|
421
|
+
|
|
422
|
+
attr_reader operation_token(): ::String
|
|
423
|
+
attr_writer operation_token(): ::String | ::Symbol
|
|
424
|
+
def clear_operation_token: () -> void
|
|
425
|
+
|
|
426
|
+
type init_map = {
|
|
427
|
+
operation_id: (::String | ::Symbol)?,
|
|
428
|
+
"operation_id" => (::String | ::Symbol)?,
|
|
429
|
+
links: ::Array[::Temporalio::Api::Nexus::V1::Link]?,
|
|
430
|
+
"links" => ::Array[::Temporalio::Api::Nexus::V1::Link]?,
|
|
431
|
+
operation_token: (::String | ::Symbol)?,
|
|
432
|
+
"operation_token" => (::String | ::Symbol)?,
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
def initialize: (?init_map initial_value) -> void
|
|
436
|
+
|
|
437
|
+
def []:
|
|
438
|
+
("operation_id" name) -> ::String
|
|
439
|
+
| ("links" name) -> ::Google::Protobuf::RepeatedField
|
|
440
|
+
| ("operation_token" name) -> ::String
|
|
441
|
+
|
|
442
|
+
def []=:
|
|
443
|
+
("operation_id" name, (::String | ::Symbol) value) -> void
|
|
444
|
+
| ("links" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
445
|
+
| ("operation_token" name, (::String | ::Symbol) value) -> void
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
attr_accessor sync_success(): ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync?
|
|
449
|
+
def has_sync_success?: () -> bool
|
|
450
|
+
def clear_sync_success: () -> void
|
|
451
|
+
|
|
452
|
+
attr_accessor async_success(): ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async?
|
|
453
|
+
def has_async_success?: () -> bool
|
|
454
|
+
def clear_async_success: () -> void
|
|
455
|
+
|
|
456
|
+
# The operation completed unsuccessfully (failed or canceled).
|
|
457
|
+
# Deprecated. Use the failure variant instead.
|
|
458
|
+
# @deprecated
|
|
459
|
+
attr_accessor operation_error(): ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError?
|
|
460
|
+
def has_operation_error?: () -> bool
|
|
461
|
+
def clear_operation_error: () -> void
|
|
462
|
+
|
|
463
|
+
# The operation completed unsuccessfully (failed or canceled).
|
|
464
|
+
# Failure object must contain an ApplicationFailureInfo or CanceledFailureInfo object.
|
|
465
|
+
attr_accessor failure(): ::Temporalio::Api::Failure::V1::Failure?
|
|
466
|
+
def has_failure?: () -> bool
|
|
467
|
+
def clear_failure: () -> void
|
|
468
|
+
|
|
469
|
+
attr_reader variant(): (::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async | ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError | ::Temporalio::Api::Failure::V1::Failure)?
|
|
470
|
+
def has_variant?: () -> bool
|
|
471
|
+
def clear_variant: () -> void
|
|
472
|
+
|
|
473
|
+
type init_map = {
|
|
474
|
+
sync_success: (::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync::init_map)?,
|
|
475
|
+
"sync_success" => (::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync::init_map)?,
|
|
476
|
+
async_success: (::Temporalio::Api::Nexus::V1::StartOperationResponse::Async | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async::init_map)?,
|
|
477
|
+
"async_success" => (::Temporalio::Api::Nexus::V1::StartOperationResponse::Async | ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async::init_map)?,
|
|
478
|
+
operation_error: (::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError | ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError::init_map)?,
|
|
479
|
+
"operation_error" => (::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError | ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError::init_map)?,
|
|
480
|
+
failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
481
|
+
"failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
def initialize: (?init_map initial_value) -> void
|
|
485
|
+
|
|
486
|
+
def []:
|
|
487
|
+
("sync_success" name) -> ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync?
|
|
488
|
+
| ("async_success" name) -> ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async?
|
|
489
|
+
| ("operation_error" name) -> ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError?
|
|
490
|
+
| ("failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
491
|
+
|
|
492
|
+
def []=:
|
|
493
|
+
("sync_success" name, ::Temporalio::Api::Nexus::V1::StartOperationResponse::Sync? value) -> void
|
|
494
|
+
| ("async_success" name, ::Temporalio::Api::Nexus::V1::StartOperationResponse::Async? value) -> void
|
|
495
|
+
| ("operation_error" name, ::Temporalio::Api::Nexus::V1::UnsuccessfulOperationError? value) -> void
|
|
496
|
+
| ("failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
# Response variant for CancelOperationRequest.
|
|
500
|
+
class CancelOperationResponse < ::Google::Protobuf::AbstractMessage
|
|
501
|
+
|
|
502
|
+
type init_map = {
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
def initialize: (?init_map initial_value) -> void
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
# A response indicating that the handler has successfully processed a request.
|
|
509
|
+
class Response < ::Google::Protobuf::AbstractMessage
|
|
510
|
+
|
|
511
|
+
attr_accessor start_operation(): ::Temporalio::Api::Nexus::V1::StartOperationResponse?
|
|
512
|
+
def has_start_operation?: () -> bool
|
|
513
|
+
def clear_start_operation: () -> void
|
|
514
|
+
|
|
515
|
+
attr_accessor cancel_operation(): ::Temporalio::Api::Nexus::V1::CancelOperationResponse?
|
|
516
|
+
def has_cancel_operation?: () -> bool
|
|
517
|
+
def clear_cancel_operation: () -> void
|
|
518
|
+
|
|
519
|
+
# Variant must correlate to the corresponding Request's variant.
|
|
520
|
+
attr_reader variant(): (::Temporalio::Api::Nexus::V1::StartOperationResponse | ::Temporalio::Api::Nexus::V1::CancelOperationResponse)?
|
|
521
|
+
def has_variant?: () -> bool
|
|
522
|
+
def clear_variant: () -> void
|
|
523
|
+
|
|
524
|
+
type init_map = {
|
|
525
|
+
start_operation: (::Temporalio::Api::Nexus::V1::StartOperationResponse | ::Temporalio::Api::Nexus::V1::StartOperationResponse::init_map)?,
|
|
526
|
+
"start_operation" => (::Temporalio::Api::Nexus::V1::StartOperationResponse | ::Temporalio::Api::Nexus::V1::StartOperationResponse::init_map)?,
|
|
527
|
+
cancel_operation: (::Temporalio::Api::Nexus::V1::CancelOperationResponse | ::Temporalio::Api::Nexus::V1::CancelOperationResponse::init_map)?,
|
|
528
|
+
"cancel_operation" => (::Temporalio::Api::Nexus::V1::CancelOperationResponse | ::Temporalio::Api::Nexus::V1::CancelOperationResponse::init_map)?,
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
def initialize: (?init_map initial_value) -> void
|
|
532
|
+
|
|
533
|
+
def []:
|
|
534
|
+
("start_operation" name) -> ::Temporalio::Api::Nexus::V1::StartOperationResponse?
|
|
535
|
+
| ("cancel_operation" name) -> ::Temporalio::Api::Nexus::V1::CancelOperationResponse?
|
|
536
|
+
|
|
537
|
+
def []=:
|
|
538
|
+
("start_operation" name, ::Temporalio::Api::Nexus::V1::StartOperationResponse? value) -> void
|
|
539
|
+
| ("cancel_operation" name, ::Temporalio::Api::Nexus::V1::CancelOperationResponse? value) -> void
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
# A cluster-global binding from an endpoint ID to a target for dispatching incoming Nexus requests.
|
|
543
|
+
class Endpoint < ::Google::Protobuf::AbstractMessage
|
|
544
|
+
|
|
545
|
+
# Data version for this endpoint, incremented for every update issued via the UpdateNexusEndpoint API.
|
|
546
|
+
attr_reader version(): ::Integer
|
|
547
|
+
attr_writer version(): ::Integer | ::Float
|
|
548
|
+
def clear_version: () -> void
|
|
549
|
+
|
|
550
|
+
# Unique server-generated endpoint ID.
|
|
551
|
+
attr_reader id(): ::String
|
|
552
|
+
attr_writer id(): ::String | ::Symbol
|
|
553
|
+
def clear_id: () -> void
|
|
554
|
+
|
|
555
|
+
# Spec for the endpoint.
|
|
556
|
+
attr_accessor spec(): ::Temporalio::Api::Nexus::V1::EndpointSpec?
|
|
557
|
+
def has_spec?: () -> bool
|
|
558
|
+
def clear_spec: () -> void
|
|
559
|
+
|
|
560
|
+
# The date and time when the endpoint was created.
|
|
561
|
+
# (-- api-linter: core::0142::time-field-names=disabled
|
|
562
|
+
# aip.dev/not-precedent: Not following linter rules. --)
|
|
563
|
+
attr_reader created_time(): ::Google::Protobuf::Timestamp?
|
|
564
|
+
attr_writer created_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
565
|
+
def has_created_time?: () -> bool
|
|
566
|
+
def clear_created_time: () -> void
|
|
567
|
+
|
|
568
|
+
# The date and time when the endpoint was last modified.
|
|
569
|
+
# Will not be set if the endpoint has never been modified.
|
|
570
|
+
# (-- api-linter: core::0142::time-field-names=disabled
|
|
571
|
+
# aip.dev/not-precedent: Not following linter rules. --)
|
|
572
|
+
attr_reader last_modified_time(): ::Google::Protobuf::Timestamp?
|
|
573
|
+
attr_writer last_modified_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
574
|
+
def has_last_modified_time?: () -> bool
|
|
575
|
+
def clear_last_modified_time: () -> void
|
|
576
|
+
|
|
577
|
+
# Server exposed URL prefix for invocation of operations on this endpoint.
|
|
578
|
+
# This doesn't include the protocol, hostname or port as the server does not know how it should be accessed
|
|
579
|
+
# publicly. The URL is stable in the face of endpoint renames.
|
|
580
|
+
attr_reader url_prefix(): ::String
|
|
581
|
+
attr_writer url_prefix(): ::String | ::Symbol
|
|
582
|
+
def clear_url_prefix: () -> void
|
|
583
|
+
|
|
584
|
+
type init_map = {
|
|
585
|
+
version: (::Integer | ::Float)?,
|
|
586
|
+
"version" => (::Integer | ::Float)?,
|
|
587
|
+
id: (::String | ::Symbol)?,
|
|
588
|
+
"id" => (::String | ::Symbol)?,
|
|
589
|
+
spec: (::Temporalio::Api::Nexus::V1::EndpointSpec | ::Temporalio::Api::Nexus::V1::EndpointSpec::init_map)?,
|
|
590
|
+
"spec" => (::Temporalio::Api::Nexus::V1::EndpointSpec | ::Temporalio::Api::Nexus::V1::EndpointSpec::init_map)?,
|
|
591
|
+
created_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
592
|
+
"created_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
593
|
+
last_modified_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
594
|
+
"last_modified_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
595
|
+
url_prefix: (::String | ::Symbol)?,
|
|
596
|
+
"url_prefix" => (::String | ::Symbol)?,
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
def initialize: (?init_map initial_value) -> void
|
|
600
|
+
|
|
601
|
+
def []:
|
|
602
|
+
("version" name) -> ::Integer
|
|
603
|
+
| ("id" name) -> ::String
|
|
604
|
+
| ("spec" name) -> ::Temporalio::Api::Nexus::V1::EndpointSpec?
|
|
605
|
+
| ("created_time" name) -> ::Google::Protobuf::Timestamp?
|
|
606
|
+
| ("last_modified_time" name) -> ::Google::Protobuf::Timestamp?
|
|
607
|
+
| ("url_prefix" name) -> ::String
|
|
608
|
+
|
|
609
|
+
def []=:
|
|
610
|
+
("version" name, (::Integer | ::Float) value) -> void
|
|
611
|
+
| ("id" name, (::String | ::Symbol) value) -> void
|
|
612
|
+
| ("spec" name, ::Temporalio::Api::Nexus::V1::EndpointSpec? value) -> void
|
|
613
|
+
| ("created_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
614
|
+
| ("last_modified_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
615
|
+
| ("url_prefix" name, (::String | ::Symbol) value) -> void
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
# Contains mutable fields for an Endpoint.
|
|
619
|
+
class EndpointSpec < ::Google::Protobuf::AbstractMessage
|
|
620
|
+
|
|
621
|
+
# Endpoint name, unique for this cluster. Must match `[a-zA-Z_][a-zA-Z0-9_]*`.
|
|
622
|
+
# Renaming an endpoint breaks all workflow callers that reference this endpoint, causing operations to fail.
|
|
623
|
+
attr_reader name(): ::String
|
|
624
|
+
attr_writer name(): ::String | ::Symbol
|
|
625
|
+
def clear_name: () -> void
|
|
626
|
+
|
|
627
|
+
# Markdown description serialized as a single JSON string.
|
|
628
|
+
# If the Payload is encrypted, the UI and CLI may decrypt with the configured codec server endpoint.
|
|
629
|
+
# By default, the server enforces a limit of 20,000 bytes for this entire payload.
|
|
630
|
+
attr_accessor description(): ::Temporalio::Api::Common::V1::Payload?
|
|
631
|
+
def has_description?: () -> bool
|
|
632
|
+
def clear_description: () -> void
|
|
633
|
+
|
|
634
|
+
# Target to route requests to.
|
|
635
|
+
attr_accessor target(): ::Temporalio::Api::Nexus::V1::EndpointTarget?
|
|
636
|
+
def has_target?: () -> bool
|
|
637
|
+
def clear_target: () -> void
|
|
638
|
+
|
|
639
|
+
type init_map = {
|
|
640
|
+
name: (::String | ::Symbol)?,
|
|
641
|
+
"name" => (::String | ::Symbol)?,
|
|
642
|
+
description: (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?,
|
|
643
|
+
"description" => (::Temporalio::Api::Common::V1::Payload | ::Temporalio::Api::Common::V1::Payload::init_map)?,
|
|
644
|
+
target: (::Temporalio::Api::Nexus::V1::EndpointTarget | ::Temporalio::Api::Nexus::V1::EndpointTarget::init_map)?,
|
|
645
|
+
"target" => (::Temporalio::Api::Nexus::V1::EndpointTarget | ::Temporalio::Api::Nexus::V1::EndpointTarget::init_map)?,
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
def initialize: (?init_map initial_value) -> void
|
|
649
|
+
|
|
650
|
+
def []:
|
|
651
|
+
("name" name) -> ::String
|
|
652
|
+
| ("description" name) -> ::Temporalio::Api::Common::V1::Payload?
|
|
653
|
+
| ("target" name) -> ::Temporalio::Api::Nexus::V1::EndpointTarget?
|
|
654
|
+
|
|
655
|
+
def []=:
|
|
656
|
+
("name" name, (::String | ::Symbol) value) -> void
|
|
657
|
+
| ("description" name, ::Temporalio::Api::Common::V1::Payload? value) -> void
|
|
658
|
+
| ("target" name, ::Temporalio::Api::Nexus::V1::EndpointTarget? value) -> void
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
# Target to route requests to.
|
|
662
|
+
class EndpointTarget < ::Google::Protobuf::AbstractMessage
|
|
663
|
+
# Target a worker polling on a Nexus task queue in a specific namespace.
|
|
664
|
+
class Worker < ::Google::Protobuf::AbstractMessage
|
|
665
|
+
|
|
666
|
+
# Namespace to route requests to.
|
|
667
|
+
attr_reader namespace(): ::String
|
|
668
|
+
attr_writer namespace(): ::String | ::Symbol
|
|
669
|
+
def clear_namespace: () -> void
|
|
670
|
+
|
|
671
|
+
# Nexus task queue to route requests to.
|
|
672
|
+
attr_reader task_queue(): ::String
|
|
673
|
+
attr_writer task_queue(): ::String | ::Symbol
|
|
674
|
+
def clear_task_queue: () -> void
|
|
675
|
+
|
|
676
|
+
type init_map = {
|
|
677
|
+
namespace: (::String | ::Symbol)?,
|
|
678
|
+
"namespace" => (::String | ::Symbol)?,
|
|
679
|
+
task_queue: (::String | ::Symbol)?,
|
|
680
|
+
"task_queue" => (::String | ::Symbol)?,
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
def initialize: (?init_map initial_value) -> void
|
|
684
|
+
|
|
685
|
+
def []:
|
|
686
|
+
("namespace" name) -> ::String
|
|
687
|
+
| ("task_queue" name) -> ::String
|
|
688
|
+
|
|
689
|
+
def []=:
|
|
690
|
+
("namespace" name, (::String | ::Symbol) value) -> void
|
|
691
|
+
| ("task_queue" name, (::String | ::Symbol) value) -> void
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# Target an external server by URL.
|
|
695
|
+
# At a later point, this will support providing credentials, in the meantime, an http.RoundTripper can be injected
|
|
696
|
+
# into the server to modify the request.
|
|
697
|
+
class External < ::Google::Protobuf::AbstractMessage
|
|
698
|
+
|
|
699
|
+
# URL to call.
|
|
700
|
+
attr_reader url(): ::String
|
|
701
|
+
attr_writer url(): ::String | ::Symbol
|
|
702
|
+
def clear_url: () -> void
|
|
703
|
+
|
|
704
|
+
type init_map = {
|
|
705
|
+
url: (::String | ::Symbol)?,
|
|
706
|
+
"url" => (::String | ::Symbol)?,
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
def initialize: (?init_map initial_value) -> void
|
|
710
|
+
|
|
711
|
+
def []:
|
|
712
|
+
("url" name) -> ::String
|
|
713
|
+
|
|
714
|
+
def []=:
|
|
715
|
+
("url" name, (::String | ::Symbol) value) -> void
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
attr_accessor worker(): ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker?
|
|
719
|
+
def has_worker?: () -> bool
|
|
720
|
+
def clear_worker: () -> void
|
|
721
|
+
|
|
722
|
+
attr_accessor external(): ::Temporalio::Api::Nexus::V1::EndpointTarget::External?
|
|
723
|
+
def has_external?: () -> bool
|
|
724
|
+
def clear_external: () -> void
|
|
725
|
+
|
|
726
|
+
attr_reader variant(): (::Temporalio::Api::Nexus::V1::EndpointTarget::Worker | ::Temporalio::Api::Nexus::V1::EndpointTarget::External)?
|
|
727
|
+
def has_variant?: () -> bool
|
|
728
|
+
def clear_variant: () -> void
|
|
729
|
+
|
|
730
|
+
type init_map = {
|
|
731
|
+
worker: (::Temporalio::Api::Nexus::V1::EndpointTarget::Worker | ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker::init_map)?,
|
|
732
|
+
"worker" => (::Temporalio::Api::Nexus::V1::EndpointTarget::Worker | ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker::init_map)?,
|
|
733
|
+
external: (::Temporalio::Api::Nexus::V1::EndpointTarget::External | ::Temporalio::Api::Nexus::V1::EndpointTarget::External::init_map)?,
|
|
734
|
+
"external" => (::Temporalio::Api::Nexus::V1::EndpointTarget::External | ::Temporalio::Api::Nexus::V1::EndpointTarget::External::init_map)?,
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
def initialize: (?init_map initial_value) -> void
|
|
738
|
+
|
|
739
|
+
def []:
|
|
740
|
+
("worker" name) -> ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker?
|
|
741
|
+
| ("external" name) -> ::Temporalio::Api::Nexus::V1::EndpointTarget::External?
|
|
742
|
+
|
|
743
|
+
def []=:
|
|
744
|
+
("worker" name, ::Temporalio::Api::Nexus::V1::EndpointTarget::Worker? value) -> void
|
|
745
|
+
| ("external" name, ::Temporalio::Api::Nexus::V1::EndpointTarget::External? value) -> void
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
# NexusOperationExecutionCancellationInfo contains the state of a Nexus operation cancellation.
|
|
749
|
+
class NexusOperationExecutionCancellationInfo < ::Google::Protobuf::AbstractMessage
|
|
750
|
+
|
|
751
|
+
# The time when cancellation was requested.
|
|
752
|
+
attr_reader requested_time(): ::Google::Protobuf::Timestamp?
|
|
753
|
+
attr_writer requested_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
754
|
+
def has_requested_time?: () -> bool
|
|
755
|
+
def clear_requested_time: () -> void
|
|
756
|
+
|
|
757
|
+
attr_reader state(): ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Integer
|
|
758
|
+
attr_writer state(): ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float
|
|
759
|
+
attr_reader state_const(): ::Integer
|
|
760
|
+
def clear_state: () -> void
|
|
761
|
+
|
|
762
|
+
# The number of attempts made to deliver the cancel operation request.
|
|
763
|
+
# This number represents a minimum bound since the attempt is incremented after the request completes.
|
|
764
|
+
attr_reader attempt(): ::Integer
|
|
765
|
+
attr_writer attempt(): ::Integer | ::Float
|
|
766
|
+
def clear_attempt: () -> void
|
|
767
|
+
|
|
768
|
+
# The time when the last attempt completed.
|
|
769
|
+
attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp?
|
|
770
|
+
attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
771
|
+
def has_last_attempt_complete_time?: () -> bool
|
|
772
|
+
def clear_last_attempt_complete_time: () -> void
|
|
773
|
+
|
|
774
|
+
# The last attempt's failure, if any.
|
|
775
|
+
attr_accessor last_attempt_failure(): ::Temporalio::Api::Failure::V1::Failure?
|
|
776
|
+
def has_last_attempt_failure?: () -> bool
|
|
777
|
+
def clear_last_attempt_failure: () -> void
|
|
778
|
+
|
|
779
|
+
# The time when the next attempt is scheduled.
|
|
780
|
+
attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp?
|
|
781
|
+
attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
782
|
+
def has_next_attempt_schedule_time?: () -> bool
|
|
783
|
+
def clear_next_attempt_schedule_time: () -> void
|
|
784
|
+
|
|
785
|
+
# If the state is BLOCKED, blocked reason provides additional information.
|
|
786
|
+
attr_reader blocked_reason(): ::String
|
|
787
|
+
attr_writer blocked_reason(): ::String | ::Symbol
|
|
788
|
+
def clear_blocked_reason: () -> void
|
|
789
|
+
|
|
790
|
+
# A reason that may be specified in the CancelNexusOperationRequest.
|
|
791
|
+
attr_reader reason(): ::String
|
|
792
|
+
attr_writer reason(): ::String | ::Symbol
|
|
793
|
+
def clear_reason: () -> void
|
|
794
|
+
|
|
795
|
+
type init_map = {
|
|
796
|
+
requested_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
797
|
+
"requested_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
798
|
+
state: (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float)?,
|
|
799
|
+
"state" => (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float)?,
|
|
800
|
+
attempt: (::Integer | ::Float)?,
|
|
801
|
+
"attempt" => (::Integer | ::Float)?,
|
|
802
|
+
last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
803
|
+
"last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
804
|
+
last_attempt_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
805
|
+
"last_attempt_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
806
|
+
next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
807
|
+
"next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
808
|
+
blocked_reason: (::String | ::Symbol)?,
|
|
809
|
+
"blocked_reason" => (::String | ::Symbol)?,
|
|
810
|
+
reason: (::String | ::Symbol)?,
|
|
811
|
+
"reason" => (::String | ::Symbol)?,
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
def initialize: (?init_map initial_value) -> void
|
|
815
|
+
|
|
816
|
+
def []:
|
|
817
|
+
("requested_time" name) -> ::Google::Protobuf::Timestamp?
|
|
818
|
+
| ("state" name) -> (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Integer)
|
|
819
|
+
| ("attempt" name) -> ::Integer
|
|
820
|
+
| ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp?
|
|
821
|
+
| ("last_attempt_failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
822
|
+
| ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp?
|
|
823
|
+
| ("blocked_reason" name) -> ::String
|
|
824
|
+
| ("reason" name) -> ::String
|
|
825
|
+
|
|
826
|
+
def []=:
|
|
827
|
+
("requested_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
828
|
+
| ("state" name, (::Temporalio::Api::Enums::V1::NexusOperationCancellationState::names | ::Temporalio::Api::Enums::V1::NexusOperationCancellationState::strings | ::Integer | ::Float) value) -> void
|
|
829
|
+
| ("attempt" name, (::Integer | ::Float) value) -> void
|
|
830
|
+
| ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
831
|
+
| ("last_attempt_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
832
|
+
| ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
833
|
+
| ("blocked_reason" name, (::String | ::Symbol) value) -> void
|
|
834
|
+
| ("reason" name, (::String | ::Symbol) value) -> void
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
# Full current state of a standalone Nexus operation, as of the time of the request.
|
|
838
|
+
class NexusOperationExecutionInfo < ::Google::Protobuf::AbstractMessage
|
|
839
|
+
|
|
840
|
+
# Unique identifier of this Nexus operation within its namespace along with run ID (below).
|
|
841
|
+
attr_reader operation_id(): ::String
|
|
842
|
+
attr_writer operation_id(): ::String | ::Symbol
|
|
843
|
+
def clear_operation_id: () -> void
|
|
844
|
+
|
|
845
|
+
attr_reader run_id(): ::String
|
|
846
|
+
attr_writer run_id(): ::String | ::Symbol
|
|
847
|
+
def clear_run_id: () -> void
|
|
848
|
+
|
|
849
|
+
# Endpoint name, resolved to a URL via the cluster's endpoint registry.
|
|
850
|
+
attr_reader endpoint(): ::String
|
|
851
|
+
attr_writer endpoint(): ::String | ::Symbol
|
|
852
|
+
def clear_endpoint: () -> void
|
|
853
|
+
|
|
854
|
+
# Service name.
|
|
855
|
+
attr_reader service(): ::String
|
|
856
|
+
attr_writer service(): ::String | ::Symbol
|
|
857
|
+
def clear_service: () -> void
|
|
858
|
+
|
|
859
|
+
# Operation name.
|
|
860
|
+
attr_reader operation(): ::String
|
|
861
|
+
attr_writer operation(): ::String | ::Symbol
|
|
862
|
+
def clear_operation: () -> void
|
|
863
|
+
|
|
864
|
+
# A general status for this operation, indicates whether it is currently running or in one of the terminal statuses.
|
|
865
|
+
# Updated once when the operation is originally scheduled, and again when it reaches a terminal status.
|
|
866
|
+
attr_reader status(): ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Integer
|
|
867
|
+
attr_writer status(): ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::strings | ::Integer | ::Float
|
|
868
|
+
attr_reader status_const(): ::Integer
|
|
869
|
+
def clear_status: () -> void
|
|
870
|
+
|
|
871
|
+
# More detailed breakdown of NEXUS_OPERATION_EXECUTION_STATUS_RUNNING.
|
|
872
|
+
attr_reader state(): ::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Integer
|
|
873
|
+
attr_writer state(): ::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float
|
|
874
|
+
attr_reader state_const(): ::Integer
|
|
875
|
+
def clear_state: () -> void
|
|
876
|
+
|
|
877
|
+
# Schedule-to-close timeout for this operation.
|
|
878
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
879
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
880
|
+
attr_reader schedule_to_close_timeout(): ::Google::Protobuf::Duration?
|
|
881
|
+
attr_writer schedule_to_close_timeout(): (::Google::Protobuf::Duration | ::int)?
|
|
882
|
+
def has_schedule_to_close_timeout?: () -> bool
|
|
883
|
+
def clear_schedule_to_close_timeout: () -> void
|
|
884
|
+
|
|
885
|
+
# Schedule-to-start timeout for this operation.
|
|
886
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
887
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
888
|
+
attr_reader schedule_to_start_timeout(): ::Google::Protobuf::Duration?
|
|
889
|
+
attr_writer schedule_to_start_timeout(): (::Google::Protobuf::Duration | ::int)?
|
|
890
|
+
def has_schedule_to_start_timeout?: () -> bool
|
|
891
|
+
def clear_schedule_to_start_timeout: () -> void
|
|
892
|
+
|
|
893
|
+
# Start-to-close timeout for this operation.
|
|
894
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
895
|
+
# aip.dev/not-precedent: "to" is used to indicate interval. --)
|
|
896
|
+
attr_reader start_to_close_timeout(): ::Google::Protobuf::Duration?
|
|
897
|
+
attr_writer start_to_close_timeout(): (::Google::Protobuf::Duration | ::int)?
|
|
898
|
+
def has_start_to_close_timeout?: () -> bool
|
|
899
|
+
def clear_start_to_close_timeout: () -> void
|
|
900
|
+
|
|
901
|
+
# The number of attempts made to deliver the start operation request.
|
|
902
|
+
# This number is approximate, it is incremented when a task is added to the history queue.
|
|
903
|
+
# In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task
|
|
904
|
+
# was never executed.
|
|
905
|
+
attr_reader attempt(): ::Integer
|
|
906
|
+
attr_writer attempt(): ::Integer | ::Float
|
|
907
|
+
def clear_attempt: () -> void
|
|
908
|
+
|
|
909
|
+
# Time the operation was originally scheduled via a StartNexusOperation request.
|
|
910
|
+
attr_reader schedule_time(): ::Google::Protobuf::Timestamp?
|
|
911
|
+
attr_writer schedule_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
912
|
+
def has_schedule_time?: () -> bool
|
|
913
|
+
def clear_schedule_time: () -> void
|
|
914
|
+
|
|
915
|
+
# Scheduled time + schedule to close timeout.
|
|
916
|
+
attr_reader expiration_time(): ::Google::Protobuf::Timestamp?
|
|
917
|
+
attr_writer expiration_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
918
|
+
def has_expiration_time?: () -> bool
|
|
919
|
+
def clear_expiration_time: () -> void
|
|
920
|
+
|
|
921
|
+
# Time when the operation transitioned to a closed state.
|
|
922
|
+
attr_reader close_time(): ::Google::Protobuf::Timestamp?
|
|
923
|
+
attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
924
|
+
def has_close_time?: () -> bool
|
|
925
|
+
def clear_close_time: () -> void
|
|
926
|
+
|
|
927
|
+
# The time when the last attempt completed.
|
|
928
|
+
attr_reader last_attempt_complete_time(): ::Google::Protobuf::Timestamp?
|
|
929
|
+
attr_writer last_attempt_complete_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
930
|
+
def has_last_attempt_complete_time?: () -> bool
|
|
931
|
+
def clear_last_attempt_complete_time: () -> void
|
|
932
|
+
|
|
933
|
+
# The last attempt's failure, if any.
|
|
934
|
+
attr_accessor last_attempt_failure(): ::Temporalio::Api::Failure::V1::Failure?
|
|
935
|
+
def has_last_attempt_failure?: () -> bool
|
|
936
|
+
def clear_last_attempt_failure: () -> void
|
|
937
|
+
|
|
938
|
+
# The time when the next attempt is scheduled.
|
|
939
|
+
attr_reader next_attempt_schedule_time(): ::Google::Protobuf::Timestamp?
|
|
940
|
+
attr_writer next_attempt_schedule_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
941
|
+
def has_next_attempt_schedule_time?: () -> bool
|
|
942
|
+
def clear_next_attempt_schedule_time: () -> void
|
|
943
|
+
|
|
944
|
+
# Elapsed time from schedule_time to now for running operations or to close_time for closed
|
|
945
|
+
# operations, including all attempts and backoff between attempts.
|
|
946
|
+
attr_reader execution_duration(): ::Google::Protobuf::Duration?
|
|
947
|
+
attr_writer execution_duration(): (::Google::Protobuf::Duration | ::int)?
|
|
948
|
+
def has_execution_duration?: () -> bool
|
|
949
|
+
def clear_execution_duration: () -> void
|
|
950
|
+
|
|
951
|
+
attr_accessor cancellation_info(): ::Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo?
|
|
952
|
+
def has_cancellation_info?: () -> bool
|
|
953
|
+
def clear_cancellation_info: () -> void
|
|
954
|
+
|
|
955
|
+
# If the state is BLOCKED, blocked reason provides additional information.
|
|
956
|
+
attr_reader blocked_reason(): ::String
|
|
957
|
+
attr_writer blocked_reason(): ::String | ::Symbol
|
|
958
|
+
def clear_blocked_reason: () -> void
|
|
959
|
+
|
|
960
|
+
# Server-generated request ID used as an idempotency token when submitting start requests to
|
|
961
|
+
# the handler. Distinct from the request_id in StartNexusOperationRequest, which is the
|
|
962
|
+
# caller-side idempotency key for the StartNexusOperation RPC itself.
|
|
963
|
+
attr_reader request_id(): ::String
|
|
964
|
+
attr_writer request_id(): ::String | ::Symbol
|
|
965
|
+
def clear_request_id: () -> void
|
|
966
|
+
|
|
967
|
+
# Operation token. Only set for asynchronous operations after a successful StartOperation call.
|
|
968
|
+
attr_reader operation_token(): ::String
|
|
969
|
+
attr_writer operation_token(): ::String | ::Symbol
|
|
970
|
+
def clear_operation_token: () -> void
|
|
971
|
+
|
|
972
|
+
# Incremented each time the operation's state is mutated in persistence.
|
|
973
|
+
attr_reader state_transition_count(): ::Integer
|
|
974
|
+
attr_writer state_transition_count(): ::Integer | ::Float
|
|
975
|
+
def clear_state_transition_count: () -> void
|
|
976
|
+
|
|
977
|
+
attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes?
|
|
978
|
+
def has_search_attributes?: () -> bool
|
|
979
|
+
def clear_search_attributes: () -> void
|
|
980
|
+
|
|
981
|
+
# Header for context propagation and tracing purposes.
|
|
982
|
+
attr_accessor nexus_header(): ::Google::Protobuf::Map[::String, ::String]
|
|
983
|
+
def clear_nexus_header: () -> void
|
|
984
|
+
|
|
985
|
+
# Metadata for use by user interfaces to display the fixed as-of-start summary and details of the operation.
|
|
986
|
+
attr_accessor user_metadata(): ::Temporalio::Api::Sdk::V1::UserMetadata?
|
|
987
|
+
def has_user_metadata?: () -> bool
|
|
988
|
+
def clear_user_metadata: () -> void
|
|
989
|
+
|
|
990
|
+
# Links attached by the handler of this operation on start or completion.
|
|
991
|
+
attr_accessor links(): ::Google::Protobuf::RepeatedField
|
|
992
|
+
def clear_links: () -> void
|
|
993
|
+
|
|
994
|
+
# The identity of the client who started this operation.
|
|
995
|
+
attr_reader identity(): ::String
|
|
996
|
+
attr_writer identity(): ::String | ::Symbol
|
|
997
|
+
def clear_identity: () -> void
|
|
998
|
+
|
|
999
|
+
# Updated once on scheduled and once on terminal status.
|
|
1000
|
+
attr_reader state_size_bytes(): ::Integer
|
|
1001
|
+
attr_writer state_size_bytes(): ::Integer | ::Float
|
|
1002
|
+
def clear_state_size_bytes: () -> void
|
|
1003
|
+
|
|
1004
|
+
type init_map = {
|
|
1005
|
+
operation_id: (::String | ::Symbol)?,
|
|
1006
|
+
"operation_id" => (::String | ::Symbol)?,
|
|
1007
|
+
run_id: (::String | ::Symbol)?,
|
|
1008
|
+
"run_id" => (::String | ::Symbol)?,
|
|
1009
|
+
endpoint: (::String | ::Symbol)?,
|
|
1010
|
+
"endpoint" => (::String | ::Symbol)?,
|
|
1011
|
+
service: (::String | ::Symbol)?,
|
|
1012
|
+
"service" => (::String | ::Symbol)?,
|
|
1013
|
+
operation: (::String | ::Symbol)?,
|
|
1014
|
+
"operation" => (::String | ::Symbol)?,
|
|
1015
|
+
status: (::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::strings | ::Integer | ::Float)?,
|
|
1016
|
+
"status" => (::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::strings | ::Integer | ::Float)?,
|
|
1017
|
+
state: (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float)?,
|
|
1018
|
+
"state" => (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float)?,
|
|
1019
|
+
schedule_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1020
|
+
"schedule_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1021
|
+
schedule_to_start_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1022
|
+
"schedule_to_start_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1023
|
+
start_to_close_timeout: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1024
|
+
"start_to_close_timeout" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1025
|
+
attempt: (::Integer | ::Float)?,
|
|
1026
|
+
"attempt" => (::Integer | ::Float)?,
|
|
1027
|
+
schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1028
|
+
"schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1029
|
+
expiration_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1030
|
+
"expiration_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1031
|
+
close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1032
|
+
"close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1033
|
+
last_attempt_complete_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1034
|
+
"last_attempt_complete_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1035
|
+
last_attempt_failure: (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
1036
|
+
"last_attempt_failure" => (::Temporalio::Api::Failure::V1::Failure | ::Temporalio::Api::Failure::V1::Failure::init_map)?,
|
|
1037
|
+
next_attempt_schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1038
|
+
"next_attempt_schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1039
|
+
execution_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1040
|
+
"execution_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1041
|
+
cancellation_info: (::Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo | ::Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo::init_map)?,
|
|
1042
|
+
"cancellation_info" => (::Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo | ::Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo::init_map)?,
|
|
1043
|
+
blocked_reason: (::String | ::Symbol)?,
|
|
1044
|
+
"blocked_reason" => (::String | ::Symbol)?,
|
|
1045
|
+
request_id: (::String | ::Symbol)?,
|
|
1046
|
+
"request_id" => (::String | ::Symbol)?,
|
|
1047
|
+
operation_token: (::String | ::Symbol)?,
|
|
1048
|
+
"operation_token" => (::String | ::Symbol)?,
|
|
1049
|
+
state_transition_count: (::Integer | ::Float)?,
|
|
1050
|
+
"state_transition_count" => (::Integer | ::Float)?,
|
|
1051
|
+
search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
|
|
1052
|
+
"search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
|
|
1053
|
+
nexus_header: ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
|
|
1054
|
+
"nexus_header" => ::Hash[::String | ::Symbol, ::String | ::Symbol]?,
|
|
1055
|
+
user_metadata: (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?,
|
|
1056
|
+
"user_metadata" => (::Temporalio::Api::Sdk::V1::UserMetadata | ::Temporalio::Api::Sdk::V1::UserMetadata::init_map)?,
|
|
1057
|
+
links: ::Array[::Temporalio::Api::Common::V1::Link]?,
|
|
1058
|
+
"links" => ::Array[::Temporalio::Api::Common::V1::Link]?,
|
|
1059
|
+
identity: (::String | ::Symbol)?,
|
|
1060
|
+
"identity" => (::String | ::Symbol)?,
|
|
1061
|
+
state_size_bytes: (::Integer | ::Float)?,
|
|
1062
|
+
"state_size_bytes" => (::Integer | ::Float)?,
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
def initialize: (?init_map initial_value) -> void
|
|
1066
|
+
|
|
1067
|
+
def []:
|
|
1068
|
+
("operation_id" name) -> ::String
|
|
1069
|
+
| ("run_id" name) -> ::String
|
|
1070
|
+
| ("endpoint" name) -> ::String
|
|
1071
|
+
| ("service" name) -> ::String
|
|
1072
|
+
| ("operation" name) -> ::String
|
|
1073
|
+
| ("status" name) -> (::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Integer)
|
|
1074
|
+
| ("state" name) -> (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Integer)
|
|
1075
|
+
| ("schedule_to_close_timeout" name) -> ::Google::Protobuf::Duration?
|
|
1076
|
+
| ("schedule_to_start_timeout" name) -> ::Google::Protobuf::Duration?
|
|
1077
|
+
| ("start_to_close_timeout" name) -> ::Google::Protobuf::Duration?
|
|
1078
|
+
| ("attempt" name) -> ::Integer
|
|
1079
|
+
| ("schedule_time" name) -> ::Google::Protobuf::Timestamp?
|
|
1080
|
+
| ("expiration_time" name) -> ::Google::Protobuf::Timestamp?
|
|
1081
|
+
| ("close_time" name) -> ::Google::Protobuf::Timestamp?
|
|
1082
|
+
| ("last_attempt_complete_time" name) -> ::Google::Protobuf::Timestamp?
|
|
1083
|
+
| ("last_attempt_failure" name) -> ::Temporalio::Api::Failure::V1::Failure?
|
|
1084
|
+
| ("next_attempt_schedule_time" name) -> ::Google::Protobuf::Timestamp?
|
|
1085
|
+
| ("execution_duration" name) -> ::Google::Protobuf::Duration?
|
|
1086
|
+
| ("cancellation_info" name) -> ::Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo?
|
|
1087
|
+
| ("blocked_reason" name) -> ::String
|
|
1088
|
+
| ("request_id" name) -> ::String
|
|
1089
|
+
| ("operation_token" name) -> ::String
|
|
1090
|
+
| ("state_transition_count" name) -> ::Integer
|
|
1091
|
+
| ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes?
|
|
1092
|
+
| ("nexus_header" name) -> (::Google::Protobuf::Map[::String, ::String])
|
|
1093
|
+
| ("user_metadata" name) -> ::Temporalio::Api::Sdk::V1::UserMetadata?
|
|
1094
|
+
| ("links" name) -> ::Google::Protobuf::RepeatedField
|
|
1095
|
+
| ("identity" name) -> ::String
|
|
1096
|
+
| ("state_size_bytes" name) -> ::Integer
|
|
1097
|
+
|
|
1098
|
+
def []=:
|
|
1099
|
+
("operation_id" name, (::String | ::Symbol) value) -> void
|
|
1100
|
+
| ("run_id" name, (::String | ::Symbol) value) -> void
|
|
1101
|
+
| ("endpoint" name, (::String | ::Symbol) value) -> void
|
|
1102
|
+
| ("service" name, (::String | ::Symbol) value) -> void
|
|
1103
|
+
| ("operation" name, (::String | ::Symbol) value) -> void
|
|
1104
|
+
| ("status" name, (::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::strings | ::Integer | ::Float) value) -> void
|
|
1105
|
+
| ("state" name, (::Temporalio::Api::Enums::V1::PendingNexusOperationState::names | ::Temporalio::Api::Enums::V1::PendingNexusOperationState::strings | ::Integer | ::Float) value) -> void
|
|
1106
|
+
| ("schedule_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
1107
|
+
| ("schedule_to_start_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
1108
|
+
| ("start_to_close_timeout" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
1109
|
+
| ("attempt" name, (::Integer | ::Float) value) -> void
|
|
1110
|
+
| ("schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
1111
|
+
| ("expiration_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
1112
|
+
| ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
1113
|
+
| ("last_attempt_complete_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
1114
|
+
| ("last_attempt_failure" name, ::Temporalio::Api::Failure::V1::Failure? value) -> void
|
|
1115
|
+
| ("next_attempt_schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
1116
|
+
| ("execution_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
1117
|
+
| ("cancellation_info" name, ::Temporalio::Api::Nexus::V1::NexusOperationExecutionCancellationInfo? value) -> void
|
|
1118
|
+
| ("blocked_reason" name, (::String | ::Symbol) value) -> void
|
|
1119
|
+
| ("request_id" name, (::String | ::Symbol) value) -> void
|
|
1120
|
+
| ("operation_token" name, (::String | ::Symbol) value) -> void
|
|
1121
|
+
| ("state_transition_count" name, (::Integer | ::Float) value) -> void
|
|
1122
|
+
| ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void
|
|
1123
|
+
| ("nexus_header" name, (::Google::Protobuf::Map[::String, ::String]) value) -> void
|
|
1124
|
+
| ("user_metadata" name, ::Temporalio::Api::Sdk::V1::UserMetadata? value) -> void
|
|
1125
|
+
| ("links" name, ::Google::Protobuf::RepeatedField value) -> void
|
|
1126
|
+
| ("identity" name, (::String | ::Symbol) value) -> void
|
|
1127
|
+
| ("state_size_bytes" name, (::Integer | ::Float) value) -> void
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1130
|
+
# Limited Nexus operation information returned in the list response.
|
|
1131
|
+
# When adding fields here, ensure that it is also present in NexusOperationExecutionInfo (note that it may already be present in
|
|
1132
|
+
# NexusOperationExecutionInfo but not at the top-level).
|
|
1133
|
+
class NexusOperationExecutionListInfo < ::Google::Protobuf::AbstractMessage
|
|
1134
|
+
|
|
1135
|
+
# A unique identifier of this operation within its namespace along with run ID (below).
|
|
1136
|
+
attr_reader operation_id(): ::String
|
|
1137
|
+
attr_writer operation_id(): ::String | ::Symbol
|
|
1138
|
+
def clear_operation_id: () -> void
|
|
1139
|
+
|
|
1140
|
+
# The run ID of the standalone Nexus operation.
|
|
1141
|
+
attr_reader run_id(): ::String
|
|
1142
|
+
attr_writer run_id(): ::String | ::Symbol
|
|
1143
|
+
def clear_run_id: () -> void
|
|
1144
|
+
|
|
1145
|
+
# Endpoint name.
|
|
1146
|
+
attr_reader endpoint(): ::String
|
|
1147
|
+
attr_writer endpoint(): ::String | ::Symbol
|
|
1148
|
+
def clear_endpoint: () -> void
|
|
1149
|
+
|
|
1150
|
+
# Service name.
|
|
1151
|
+
attr_reader service(): ::String
|
|
1152
|
+
attr_writer service(): ::String | ::Symbol
|
|
1153
|
+
def clear_service: () -> void
|
|
1154
|
+
|
|
1155
|
+
# Operation name.
|
|
1156
|
+
attr_reader operation(): ::String
|
|
1157
|
+
attr_writer operation(): ::String | ::Symbol
|
|
1158
|
+
def clear_operation: () -> void
|
|
1159
|
+
|
|
1160
|
+
# Time the operation was originally scheduled via a StartNexusOperation request.
|
|
1161
|
+
attr_reader schedule_time(): ::Google::Protobuf::Timestamp?
|
|
1162
|
+
attr_writer schedule_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
1163
|
+
def has_schedule_time?: () -> bool
|
|
1164
|
+
def clear_schedule_time: () -> void
|
|
1165
|
+
|
|
1166
|
+
# If the operation is in a terminal status, this field represents the time the operation transitioned to that status.
|
|
1167
|
+
attr_reader close_time(): ::Google::Protobuf::Timestamp?
|
|
1168
|
+
attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)?
|
|
1169
|
+
def has_close_time?: () -> bool
|
|
1170
|
+
def clear_close_time: () -> void
|
|
1171
|
+
|
|
1172
|
+
# The status is updated once, when the operation is originally scheduled, and again when the operation reaches a terminal status.
|
|
1173
|
+
attr_reader status(): ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Integer
|
|
1174
|
+
attr_writer status(): ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::strings | ::Integer | ::Float
|
|
1175
|
+
attr_reader status_const(): ::Integer
|
|
1176
|
+
def clear_status: () -> void
|
|
1177
|
+
|
|
1178
|
+
# Search attributes from the start request.
|
|
1179
|
+
attr_accessor search_attributes(): ::Temporalio::Api::Common::V1::SearchAttributes?
|
|
1180
|
+
def has_search_attributes?: () -> bool
|
|
1181
|
+
def clear_search_attributes: () -> void
|
|
1182
|
+
|
|
1183
|
+
# Updated on terminal status.
|
|
1184
|
+
attr_reader state_transition_count(): ::Integer
|
|
1185
|
+
attr_writer state_transition_count(): ::Integer | ::Float
|
|
1186
|
+
def clear_state_transition_count: () -> void
|
|
1187
|
+
|
|
1188
|
+
# The difference between close time and scheduled time.
|
|
1189
|
+
# This field is only populated if the operation is closed.
|
|
1190
|
+
attr_reader execution_duration(): ::Google::Protobuf::Duration?
|
|
1191
|
+
attr_writer execution_duration(): (::Google::Protobuf::Duration | ::int)?
|
|
1192
|
+
def has_execution_duration?: () -> bool
|
|
1193
|
+
def clear_execution_duration: () -> void
|
|
1194
|
+
|
|
1195
|
+
# Updated once on scheduled and once on terminal status.
|
|
1196
|
+
attr_reader state_size_bytes(): ::Integer
|
|
1197
|
+
attr_writer state_size_bytes(): ::Integer | ::Float
|
|
1198
|
+
def clear_state_size_bytes: () -> void
|
|
1199
|
+
|
|
1200
|
+
type init_map = {
|
|
1201
|
+
operation_id: (::String | ::Symbol)?,
|
|
1202
|
+
"operation_id" => (::String | ::Symbol)?,
|
|
1203
|
+
run_id: (::String | ::Symbol)?,
|
|
1204
|
+
"run_id" => (::String | ::Symbol)?,
|
|
1205
|
+
endpoint: (::String | ::Symbol)?,
|
|
1206
|
+
"endpoint" => (::String | ::Symbol)?,
|
|
1207
|
+
service: (::String | ::Symbol)?,
|
|
1208
|
+
"service" => (::String | ::Symbol)?,
|
|
1209
|
+
operation: (::String | ::Symbol)?,
|
|
1210
|
+
"operation" => (::String | ::Symbol)?,
|
|
1211
|
+
schedule_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1212
|
+
"schedule_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1213
|
+
close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1214
|
+
"close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
|
|
1215
|
+
status: (::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::strings | ::Integer | ::Float)?,
|
|
1216
|
+
"status" => (::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::strings | ::Integer | ::Float)?,
|
|
1217
|
+
search_attributes: (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
|
|
1218
|
+
"search_attributes" => (::Temporalio::Api::Common::V1::SearchAttributes | ::Temporalio::Api::Common::V1::SearchAttributes::init_map)?,
|
|
1219
|
+
state_transition_count: (::Integer | ::Float)?,
|
|
1220
|
+
"state_transition_count" => (::Integer | ::Float)?,
|
|
1221
|
+
execution_duration: (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1222
|
+
"execution_duration" => (::Google::Protobuf::Duration | ::Google::Protobuf::Duration)?,
|
|
1223
|
+
state_size_bytes: (::Integer | ::Float)?,
|
|
1224
|
+
"state_size_bytes" => (::Integer | ::Float)?,
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
def initialize: (?init_map initial_value) -> void
|
|
1228
|
+
|
|
1229
|
+
def []:
|
|
1230
|
+
("operation_id" name) -> ::String
|
|
1231
|
+
| ("run_id" name) -> ::String
|
|
1232
|
+
| ("endpoint" name) -> ::String
|
|
1233
|
+
| ("service" name) -> ::String
|
|
1234
|
+
| ("operation" name) -> ::String
|
|
1235
|
+
| ("schedule_time" name) -> ::Google::Protobuf::Timestamp?
|
|
1236
|
+
| ("close_time" name) -> ::Google::Protobuf::Timestamp?
|
|
1237
|
+
| ("status" name) -> (::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Integer)
|
|
1238
|
+
| ("search_attributes" name) -> ::Temporalio::Api::Common::V1::SearchAttributes?
|
|
1239
|
+
| ("state_transition_count" name) -> ::Integer
|
|
1240
|
+
| ("execution_duration" name) -> ::Google::Protobuf::Duration?
|
|
1241
|
+
| ("state_size_bytes" name) -> ::Integer
|
|
1242
|
+
|
|
1243
|
+
def []=:
|
|
1244
|
+
("operation_id" name, (::String | ::Symbol) value) -> void
|
|
1245
|
+
| ("run_id" name, (::String | ::Symbol) value) -> void
|
|
1246
|
+
| ("endpoint" name, (::String | ::Symbol) value) -> void
|
|
1247
|
+
| ("service" name, (::String | ::Symbol) value) -> void
|
|
1248
|
+
| ("operation" name, (::String | ::Symbol) value) -> void
|
|
1249
|
+
| ("schedule_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
1250
|
+
| ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
|
|
1251
|
+
| ("status" name, (::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::names | ::Temporalio::Api::Enums::V1::NexusOperationExecutionStatus::strings | ::Integer | ::Float) value) -> void
|
|
1252
|
+
| ("search_attributes" name, ::Temporalio::Api::Common::V1::SearchAttributes? value) -> void
|
|
1253
|
+
| ("state_transition_count" name, (::Integer | ::Float) value) -> void
|
|
1254
|
+
| ("execution_duration" name, ((::Google::Protobuf::Duration | ::int)?) value) -> void
|
|
1255
|
+
| ("state_size_bytes" name, (::Integer | ::Float) value) -> void
|
|
1256
|
+
end
|
|
1257
|
+
end
|
|
1258
|
+
end
|
|
1259
|
+
end
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1262
|
+
module Google
|
|
1263
|
+
module Protobuf
|
|
1264
|
+
class DescriptorPool
|
|
1265
|
+
def lookup: (::String name) -> ::Google::Protobuf::Descriptor
|
|
1266
|
+
end
|
|
1267
|
+
end
|
|
1268
|
+
end
|