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,2340 @@
|
|
|
1
|
+
# Code generated by protoc-gen-rbi. DO NOT EDIT.
|
|
2
|
+
# source: temporal/api/deployment/v1/message.proto
|
|
3
|
+
# typed: strict
|
|
4
|
+
|
|
5
|
+
# Worker Deployment options set in SDK that need to be sent to server in every poll.
|
|
6
|
+
class Temporalio::Api::Deployment::V1::WorkerDeploymentOptions
|
|
7
|
+
include ::Google::Protobuf::MessageExts
|
|
8
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
9
|
+
|
|
10
|
+
sig do
|
|
11
|
+
params(
|
|
12
|
+
deployment_name: T.nilable(String),
|
|
13
|
+
build_id: T.nilable(String),
|
|
14
|
+
worker_versioning_mode: T.nilable(T.any(Symbol, String, Integer))
|
|
15
|
+
).void
|
|
16
|
+
end
|
|
17
|
+
def initialize(
|
|
18
|
+
deployment_name: "",
|
|
19
|
+
build_id: "",
|
|
20
|
+
worker_versioning_mode: :WORKER_VERSIONING_MODE_UNSPECIFIED
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Required when `worker_versioning_mode==VERSIONED`.
|
|
25
|
+
sig { returns(String) }
|
|
26
|
+
def deployment_name
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Required when `worker_versioning_mode==VERSIONED`.
|
|
30
|
+
sig { params(value: String).void }
|
|
31
|
+
def deployment_name=(value)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Required when `worker_versioning_mode==VERSIONED`.
|
|
35
|
+
sig { void }
|
|
36
|
+
def clear_deployment_name
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# The Build ID of the worker. Required when `worker_versioning_mode==VERSIONED`, in which case,
|
|
40
|
+
# the worker will be part of a Deployment Version.
|
|
41
|
+
sig { returns(String) }
|
|
42
|
+
def build_id
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# The Build ID of the worker. Required when `worker_versioning_mode==VERSIONED`, in which case,
|
|
46
|
+
# the worker will be part of a Deployment Version.
|
|
47
|
+
sig { params(value: String).void }
|
|
48
|
+
def build_id=(value)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# The Build ID of the worker. Required when `worker_versioning_mode==VERSIONED`, in which case,
|
|
52
|
+
# the worker will be part of a Deployment Version.
|
|
53
|
+
sig { void }
|
|
54
|
+
def clear_build_id
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Required. Versioning Mode for this worker. Must be the same for all workers with the
|
|
58
|
+
# same `deployment_name` and `build_id` combination, across all Task Queues.
|
|
59
|
+
# When `worker_versioning_mode==VERSIONED`, the worker will be part of a Deployment Version.
|
|
60
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
61
|
+
def worker_versioning_mode
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Required. Versioning Mode for this worker. Must be the same for all workers with the
|
|
65
|
+
# same `deployment_name` and `build_id` combination, across all Task Queues.
|
|
66
|
+
# When `worker_versioning_mode==VERSIONED`, the worker will be part of a Deployment Version.
|
|
67
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
68
|
+
def worker_versioning_mode=(value)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Required. Versioning Mode for this worker. Must be the same for all workers with the
|
|
72
|
+
# same `deployment_name` and `build_id` combination, across all Task Queues.
|
|
73
|
+
# When `worker_versioning_mode==VERSIONED`, the worker will be part of a Deployment Version.
|
|
74
|
+
sig { void }
|
|
75
|
+
def clear_worker_versioning_mode
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
sig { params(field: String).returns(T.untyped) }
|
|
79
|
+
def [](field)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
sig { params(field: String, value: T.untyped).void }
|
|
83
|
+
def []=(field, value)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
87
|
+
def to_h
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentOptions) }
|
|
91
|
+
def self.decode(str)
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentOptions).returns(String) }
|
|
95
|
+
def self.encode(msg)
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentOptions) }
|
|
99
|
+
def self.decode_json(str, **kw)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentOptions, kw: T.untyped).returns(String) }
|
|
103
|
+
def self.encode_json(msg, **kw)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
107
|
+
def self.descriptor
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# `Deployment` identifies a deployment of Temporal workers. The combination of deployment series
|
|
112
|
+
# name + build ID serves as the identifier. User can use `WorkerDeploymentOptions` in their worker
|
|
113
|
+
# programs to specify these values.
|
|
114
|
+
# Deprecated.
|
|
115
|
+
class Temporalio::Api::Deployment::V1::Deployment
|
|
116
|
+
include ::Google::Protobuf::MessageExts
|
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
118
|
+
|
|
119
|
+
sig do
|
|
120
|
+
params(
|
|
121
|
+
series_name: T.nilable(String),
|
|
122
|
+
build_id: T.nilable(String)
|
|
123
|
+
).void
|
|
124
|
+
end
|
|
125
|
+
def initialize(
|
|
126
|
+
series_name: "",
|
|
127
|
+
build_id: ""
|
|
128
|
+
)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Different versions of the same worker service/application are related together by having a
|
|
132
|
+
# shared series name.
|
|
133
|
+
# Out of all deployments of a series, one can be designated as the current deployment, which
|
|
134
|
+
# receives new workflow executions and new tasks of workflows with
|
|
135
|
+
# `VERSIONING_BEHAVIOR_AUTO_UPGRADE` versioning behavior.
|
|
136
|
+
sig { returns(String) }
|
|
137
|
+
def series_name
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Different versions of the same worker service/application are related together by having a
|
|
141
|
+
# shared series name.
|
|
142
|
+
# Out of all deployments of a series, one can be designated as the current deployment, which
|
|
143
|
+
# receives new workflow executions and new tasks of workflows with
|
|
144
|
+
# `VERSIONING_BEHAVIOR_AUTO_UPGRADE` versioning behavior.
|
|
145
|
+
sig { params(value: String).void }
|
|
146
|
+
def series_name=(value)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Different versions of the same worker service/application are related together by having a
|
|
150
|
+
# shared series name.
|
|
151
|
+
# Out of all deployments of a series, one can be designated as the current deployment, which
|
|
152
|
+
# receives new workflow executions and new tasks of workflows with
|
|
153
|
+
# `VERSIONING_BEHAVIOR_AUTO_UPGRADE` versioning behavior.
|
|
154
|
+
sig { void }
|
|
155
|
+
def clear_series_name
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Build ID changes with each version of the worker when the worker program code and/or config
|
|
159
|
+
# changes.
|
|
160
|
+
sig { returns(String) }
|
|
161
|
+
def build_id
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Build ID changes with each version of the worker when the worker program code and/or config
|
|
165
|
+
# changes.
|
|
166
|
+
sig { params(value: String).void }
|
|
167
|
+
def build_id=(value)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Build ID changes with each version of the worker when the worker program code and/or config
|
|
171
|
+
# changes.
|
|
172
|
+
sig { void }
|
|
173
|
+
def clear_build_id
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
sig { params(field: String).returns(T.untyped) }
|
|
177
|
+
def [](field)
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
sig { params(field: String, value: T.untyped).void }
|
|
181
|
+
def []=(field, value)
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
185
|
+
def to_h
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::Deployment) }
|
|
189
|
+
def self.decode(str)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::Deployment).returns(String) }
|
|
193
|
+
def self.encode(msg)
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::Deployment) }
|
|
197
|
+
def self.decode_json(str, **kw)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::Deployment, kw: T.untyped).returns(String) }
|
|
201
|
+
def self.encode_json(msg, **kw)
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
205
|
+
def self.descriptor
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# `DeploymentInfo` holds information about a deployment. Deployment information is tracked
|
|
210
|
+
# automatically by server as soon as the first poll from that deployment reaches the server. There
|
|
211
|
+
# can be multiple task queue workers in a single deployment which are listed in this message.
|
|
212
|
+
# Deprecated.
|
|
213
|
+
class Temporalio::Api::Deployment::V1::DeploymentInfo
|
|
214
|
+
include ::Google::Protobuf::MessageExts
|
|
215
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
216
|
+
|
|
217
|
+
sig do
|
|
218
|
+
params(
|
|
219
|
+
deployment: T.nilable(Temporalio::Api::Deployment::V1::Deployment),
|
|
220
|
+
create_time: T.nilable(Google::Protobuf::Timestamp),
|
|
221
|
+
task_queue_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::Deployment::V1::DeploymentInfo::TaskQueueInfo)]),
|
|
222
|
+
metadata: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
|
|
223
|
+
is_current: T.nilable(T::Boolean)
|
|
224
|
+
).void
|
|
225
|
+
end
|
|
226
|
+
def initialize(
|
|
227
|
+
deployment: nil,
|
|
228
|
+
create_time: nil,
|
|
229
|
+
task_queue_infos: [],
|
|
230
|
+
metadata: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
|
|
231
|
+
is_current: false
|
|
232
|
+
)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::Deployment)) }
|
|
236
|
+
def deployment
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::Deployment)).void }
|
|
240
|
+
def deployment=(value)
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
sig { void }
|
|
244
|
+
def clear_deployment
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
248
|
+
def create_time
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
252
|
+
def create_time=(value)
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
sig { void }
|
|
256
|
+
def clear_create_time
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Deployment::V1::DeploymentInfo::TaskQueueInfo)]) }
|
|
260
|
+
def task_queue_infos
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
264
|
+
def task_queue_infos=(value)
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
sig { void }
|
|
268
|
+
def clear_task_queue_infos
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# A user-defined set of key-values. Can be updated as part of write operations to the
|
|
272
|
+
# deployment, such as `SetCurrentDeployment`.
|
|
273
|
+
sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
|
|
274
|
+
def metadata
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# A user-defined set of key-values. Can be updated as part of write operations to the
|
|
278
|
+
# deployment, such as `SetCurrentDeployment`.
|
|
279
|
+
sig { params(value: ::Google::Protobuf::Map).void }
|
|
280
|
+
def metadata=(value)
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# A user-defined set of key-values. Can be updated as part of write operations to the
|
|
284
|
+
# deployment, such as `SetCurrentDeployment`.
|
|
285
|
+
sig { void }
|
|
286
|
+
def clear_metadata
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# If this deployment is the current deployment of its deployment series.
|
|
290
|
+
sig { returns(T::Boolean) }
|
|
291
|
+
def is_current
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# If this deployment is the current deployment of its deployment series.
|
|
295
|
+
sig { params(value: T::Boolean).void }
|
|
296
|
+
def is_current=(value)
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# If this deployment is the current deployment of its deployment series.
|
|
300
|
+
sig { void }
|
|
301
|
+
def clear_is_current
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
sig { params(field: String).returns(T.untyped) }
|
|
305
|
+
def [](field)
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
sig { params(field: String, value: T.untyped).void }
|
|
309
|
+
def []=(field, value)
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
313
|
+
def to_h
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::DeploymentInfo) }
|
|
317
|
+
def self.decode(str)
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::DeploymentInfo).returns(String) }
|
|
321
|
+
def self.encode(msg)
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::DeploymentInfo) }
|
|
325
|
+
def self.decode_json(str, **kw)
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::DeploymentInfo, kw: T.untyped).returns(String) }
|
|
329
|
+
def self.encode_json(msg, **kw)
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
333
|
+
def self.descriptor
|
|
334
|
+
end
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# Used as part of Deployment write APIs to update metadata attached to a deployment.
|
|
338
|
+
# Deprecated.
|
|
339
|
+
class Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata
|
|
340
|
+
include ::Google::Protobuf::MessageExts
|
|
341
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
342
|
+
|
|
343
|
+
sig do
|
|
344
|
+
params(
|
|
345
|
+
upsert_entries: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]),
|
|
346
|
+
remove_entries: T.nilable(T::Array[String])
|
|
347
|
+
).void
|
|
348
|
+
end
|
|
349
|
+
def initialize(
|
|
350
|
+
upsert_entries: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload),
|
|
351
|
+
remove_entries: []
|
|
352
|
+
)
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
|
|
356
|
+
def upsert_entries
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
sig { params(value: ::Google::Protobuf::Map).void }
|
|
360
|
+
def upsert_entries=(value)
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
sig { void }
|
|
364
|
+
def clear_upsert_entries
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
# List of keys to remove from the metadata.
|
|
368
|
+
sig { returns(T::Array[String]) }
|
|
369
|
+
def remove_entries
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# List of keys to remove from the metadata.
|
|
373
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
374
|
+
def remove_entries=(value)
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# List of keys to remove from the metadata.
|
|
378
|
+
sig { void }
|
|
379
|
+
def clear_remove_entries
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
sig { params(field: String).returns(T.untyped) }
|
|
383
|
+
def [](field)
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
sig { params(field: String, value: T.untyped).void }
|
|
387
|
+
def []=(field, value)
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
391
|
+
def to_h
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata) }
|
|
395
|
+
def self.decode(str)
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata).returns(String) }
|
|
399
|
+
def self.encode(msg)
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata) }
|
|
403
|
+
def self.decode_json(str, **kw)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::UpdateDeploymentMetadata, kw: T.untyped).returns(String) }
|
|
407
|
+
def self.encode_json(msg, **kw)
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
411
|
+
def self.descriptor
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# DeploymentListInfo is an abbreviated set of fields from DeploymentInfo that's returned in
|
|
416
|
+
# ListDeployments.
|
|
417
|
+
# Deprecated.
|
|
418
|
+
class Temporalio::Api::Deployment::V1::DeploymentListInfo
|
|
419
|
+
include ::Google::Protobuf::MessageExts
|
|
420
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
421
|
+
|
|
422
|
+
sig do
|
|
423
|
+
params(
|
|
424
|
+
deployment: T.nilable(Temporalio::Api::Deployment::V1::Deployment),
|
|
425
|
+
create_time: T.nilable(Google::Protobuf::Timestamp),
|
|
426
|
+
is_current: T.nilable(T::Boolean)
|
|
427
|
+
).void
|
|
428
|
+
end
|
|
429
|
+
def initialize(
|
|
430
|
+
deployment: nil,
|
|
431
|
+
create_time: nil,
|
|
432
|
+
is_current: false
|
|
433
|
+
)
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::Deployment)) }
|
|
437
|
+
def deployment
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::Deployment)).void }
|
|
441
|
+
def deployment=(value)
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
sig { void }
|
|
445
|
+
def clear_deployment
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
449
|
+
def create_time
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
453
|
+
def create_time=(value)
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
sig { void }
|
|
457
|
+
def clear_create_time
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
# If this deployment is the current deployment of its deployment series.
|
|
461
|
+
sig { returns(T::Boolean) }
|
|
462
|
+
def is_current
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
# If this deployment is the current deployment of its deployment series.
|
|
466
|
+
sig { params(value: T::Boolean).void }
|
|
467
|
+
def is_current=(value)
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
# If this deployment is the current deployment of its deployment series.
|
|
471
|
+
sig { void }
|
|
472
|
+
def clear_is_current
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
sig { params(field: String).returns(T.untyped) }
|
|
476
|
+
def [](field)
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
sig { params(field: String, value: T.untyped).void }
|
|
480
|
+
def []=(field, value)
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
484
|
+
def to_h
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::DeploymentListInfo) }
|
|
488
|
+
def self.decode(str)
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::DeploymentListInfo).returns(String) }
|
|
492
|
+
def self.encode(msg)
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::DeploymentListInfo) }
|
|
496
|
+
def self.decode_json(str, **kw)
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::DeploymentListInfo, kw: T.untyped).returns(String) }
|
|
500
|
+
def self.encode_json(msg, **kw)
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
504
|
+
def self.descriptor
|
|
505
|
+
end
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
# A Worker Deployment Version (Version, for short) represents all workers of the same
|
|
509
|
+
# code and config within a Deployment. Workers of the same Version are expected to
|
|
510
|
+
# behave exactly the same so when executions move between them there are no
|
|
511
|
+
# non-determinism issues.
|
|
512
|
+
# Worker Deployment Versions are created in Temporal server automatically when
|
|
513
|
+
# their first poller arrives to the server.
|
|
514
|
+
class Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo
|
|
515
|
+
include ::Google::Protobuf::MessageExts
|
|
516
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
517
|
+
|
|
518
|
+
sig do
|
|
519
|
+
params(
|
|
520
|
+
version: T.nilable(String),
|
|
521
|
+
status: T.nilable(T.any(Symbol, String, Integer)),
|
|
522
|
+
deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
|
|
523
|
+
deployment_name: T.nilable(String),
|
|
524
|
+
create_time: T.nilable(Google::Protobuf::Timestamp),
|
|
525
|
+
routing_changed_time: T.nilable(Google::Protobuf::Timestamp),
|
|
526
|
+
current_since_time: T.nilable(Google::Protobuf::Timestamp),
|
|
527
|
+
ramping_since_time: T.nilable(Google::Protobuf::Timestamp),
|
|
528
|
+
first_activation_time: T.nilable(Google::Protobuf::Timestamp),
|
|
529
|
+
last_current_time: T.nilable(Google::Protobuf::Timestamp),
|
|
530
|
+
last_deactivation_time: T.nilable(Google::Protobuf::Timestamp),
|
|
531
|
+
ramp_percentage: T.nilable(Float),
|
|
532
|
+
task_queue_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::VersionTaskQueueInfo)]),
|
|
533
|
+
drainage_info: T.nilable(Temporalio::Api::Deployment::V1::VersionDrainageInfo),
|
|
534
|
+
metadata: T.nilable(Temporalio::Api::Deployment::V1::VersionMetadata),
|
|
535
|
+
compute_config: T.nilable(Temporalio::Api::Compute::V1::ComputeConfig),
|
|
536
|
+
last_modifier_identity: T.nilable(String)
|
|
537
|
+
).void
|
|
538
|
+
end
|
|
539
|
+
def initialize(
|
|
540
|
+
version: "",
|
|
541
|
+
status: :WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED,
|
|
542
|
+
deployment_version: nil,
|
|
543
|
+
deployment_name: "",
|
|
544
|
+
create_time: nil,
|
|
545
|
+
routing_changed_time: nil,
|
|
546
|
+
current_since_time: nil,
|
|
547
|
+
ramping_since_time: nil,
|
|
548
|
+
first_activation_time: nil,
|
|
549
|
+
last_current_time: nil,
|
|
550
|
+
last_deactivation_time: nil,
|
|
551
|
+
ramp_percentage: 0.0,
|
|
552
|
+
task_queue_infos: [],
|
|
553
|
+
drainage_info: nil,
|
|
554
|
+
metadata: nil,
|
|
555
|
+
compute_config: nil,
|
|
556
|
+
last_modifier_identity: ""
|
|
557
|
+
)
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
# Deprecated. Use `deployment_version`.
|
|
561
|
+
sig { returns(String) }
|
|
562
|
+
def version
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
# Deprecated. Use `deployment_version`.
|
|
566
|
+
sig { params(value: String).void }
|
|
567
|
+
def version=(value)
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
# Deprecated. Use `deployment_version`.
|
|
571
|
+
sig { void }
|
|
572
|
+
def clear_version
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
# The status of the Worker Deployment Version.
|
|
576
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
577
|
+
def status
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
# The status of the Worker Deployment Version.
|
|
581
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
582
|
+
def status=(value)
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# The status of the Worker Deployment Version.
|
|
586
|
+
sig { void }
|
|
587
|
+
def clear_status
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
# Required.
|
|
591
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
|
|
592
|
+
def deployment_version
|
|
593
|
+
end
|
|
594
|
+
|
|
595
|
+
# Required.
|
|
596
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
|
|
597
|
+
def deployment_version=(value)
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
# Required.
|
|
601
|
+
sig { void }
|
|
602
|
+
def clear_deployment_version
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
# Deprecated. User deployment_version.deployment_name.
|
|
606
|
+
sig { returns(String) }
|
|
607
|
+
def deployment_name
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
# Deprecated. User deployment_version.deployment_name.
|
|
611
|
+
sig { params(value: String).void }
|
|
612
|
+
def deployment_name=(value)
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
# Deprecated. User deployment_version.deployment_name.
|
|
616
|
+
sig { void }
|
|
617
|
+
def clear_deployment_name
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
621
|
+
def create_time
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
625
|
+
def create_time=(value)
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
sig { void }
|
|
629
|
+
def clear_create_time
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
# Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.
|
|
633
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
634
|
+
def routing_changed_time
|
|
635
|
+
end
|
|
636
|
+
|
|
637
|
+
# Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.
|
|
638
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
639
|
+
def routing_changed_time=(value)
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.
|
|
643
|
+
sig { void }
|
|
644
|
+
def clear_routing_changed_time
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
648
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
649
|
+
# Unset if not current.
|
|
650
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
651
|
+
def current_since_time
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
655
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
656
|
+
# Unset if not current.
|
|
657
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
658
|
+
def current_since_time=(value)
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
662
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
663
|
+
# Unset if not current.
|
|
664
|
+
sig { void }
|
|
665
|
+
def clear_current_since_time
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
669
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
670
|
+
# Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
|
|
671
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
672
|
+
def ramping_since_time
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
676
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
677
|
+
# Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
|
|
678
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
679
|
+
def ramping_since_time=(value)
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
683
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
684
|
+
# Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
|
|
685
|
+
sig { void }
|
|
686
|
+
def clear_ramping_since_time
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
# Timestamp when this version first became current or ramping.
|
|
690
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
691
|
+
def first_activation_time
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# Timestamp when this version first became current or ramping.
|
|
695
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
696
|
+
def first_activation_time=(value)
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
# Timestamp when this version first became current or ramping.
|
|
700
|
+
sig { void }
|
|
701
|
+
def clear_first_activation_time
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
# Timestamp when this version last became current.
|
|
705
|
+
# Can be used to determine whether a version has ever been Current.
|
|
706
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
707
|
+
def last_current_time
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# Timestamp when this version last became current.
|
|
711
|
+
# Can be used to determine whether a version has ever been Current.
|
|
712
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
713
|
+
def last_current_time=(value)
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
# Timestamp when this version last became current.
|
|
717
|
+
# Can be used to determine whether a version has ever been Current.
|
|
718
|
+
sig { void }
|
|
719
|
+
def clear_last_current_time
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
# Timestamp when this version last stopped being current or ramping.
|
|
723
|
+
# Cleared if the version becomes current or ramping again.
|
|
724
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
725
|
+
def last_deactivation_time
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
# Timestamp when this version last stopped being current or ramping.
|
|
729
|
+
# Cleared if the version becomes current or ramping again.
|
|
730
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
731
|
+
def last_deactivation_time=(value)
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
# Timestamp when this version last stopped being current or ramping.
|
|
735
|
+
# Cleared if the version becomes current or ramping again.
|
|
736
|
+
sig { void }
|
|
737
|
+
def clear_last_deactivation_time
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
# Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil).
|
|
741
|
+
# Can be in the range [0, 100] if the version is ramping.
|
|
742
|
+
sig { returns(Float) }
|
|
743
|
+
def ramp_percentage
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
# Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil).
|
|
747
|
+
# Can be in the range [0, 100] if the version is ramping.
|
|
748
|
+
sig { params(value: Float).void }
|
|
749
|
+
def ramp_percentage=(value)
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
# Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil).
|
|
753
|
+
# Can be in the range [0, 100] if the version is ramping.
|
|
754
|
+
sig { void }
|
|
755
|
+
def clear_ramp_percentage
|
|
756
|
+
end
|
|
757
|
+
|
|
758
|
+
# All the Task Queues that have ever polled from this Deployment version.
|
|
759
|
+
# Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead.
|
|
760
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::VersionTaskQueueInfo)]) }
|
|
761
|
+
def task_queue_infos
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
# All the Task Queues that have ever polled from this Deployment version.
|
|
765
|
+
# Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead.
|
|
766
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
767
|
+
def task_queue_infos=(value)
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
# All the Task Queues that have ever polled from this Deployment version.
|
|
771
|
+
# Deprecated. Use `version_task_queues` in DescribeWorkerDeploymentVersionResponse instead.
|
|
772
|
+
sig { void }
|
|
773
|
+
def clear_task_queue_infos
|
|
774
|
+
end
|
|
775
|
+
|
|
776
|
+
# Helps user determine when it is safe to decommission the workers of this
|
|
777
|
+
# Version. Not present when version is current or ramping.
|
|
778
|
+
# Current limitations:
|
|
779
|
+
# - Not supported for Unversioned mode.
|
|
780
|
+
# - Periodically refreshed, may have delays up to few minutes (consult the
|
|
781
|
+
# last_checked_time value).
|
|
782
|
+
# - Refreshed only when version is not current or ramping AND the status is not
|
|
783
|
+
# "drained" yet.
|
|
784
|
+
# - Once the status is changed to "drained", it is not changed until the Version
|
|
785
|
+
# becomes Current or Ramping again, at which time the drainage info is cleared.
|
|
786
|
+
# This means if the Version is "drained" but new workflows are sent to it via
|
|
787
|
+
# Pinned Versioning Override, the status does not account for those Pinned-override
|
|
788
|
+
# executions and remains "drained".
|
|
789
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::VersionDrainageInfo)) }
|
|
790
|
+
def drainage_info
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
# Helps user determine when it is safe to decommission the workers of this
|
|
794
|
+
# Version. Not present when version is current or ramping.
|
|
795
|
+
# Current limitations:
|
|
796
|
+
# - Not supported for Unversioned mode.
|
|
797
|
+
# - Periodically refreshed, may have delays up to few minutes (consult the
|
|
798
|
+
# last_checked_time value).
|
|
799
|
+
# - Refreshed only when version is not current or ramping AND the status is not
|
|
800
|
+
# "drained" yet.
|
|
801
|
+
# - Once the status is changed to "drained", it is not changed until the Version
|
|
802
|
+
# becomes Current or Ramping again, at which time the drainage info is cleared.
|
|
803
|
+
# This means if the Version is "drained" but new workflows are sent to it via
|
|
804
|
+
# Pinned Versioning Override, the status does not account for those Pinned-override
|
|
805
|
+
# executions and remains "drained".
|
|
806
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::VersionDrainageInfo)).void }
|
|
807
|
+
def drainage_info=(value)
|
|
808
|
+
end
|
|
809
|
+
|
|
810
|
+
# Helps user determine when it is safe to decommission the workers of this
|
|
811
|
+
# Version. Not present when version is current or ramping.
|
|
812
|
+
# Current limitations:
|
|
813
|
+
# - Not supported for Unversioned mode.
|
|
814
|
+
# - Periodically refreshed, may have delays up to few minutes (consult the
|
|
815
|
+
# last_checked_time value).
|
|
816
|
+
# - Refreshed only when version is not current or ramping AND the status is not
|
|
817
|
+
# "drained" yet.
|
|
818
|
+
# - Once the status is changed to "drained", it is not changed until the Version
|
|
819
|
+
# becomes Current or Ramping again, at which time the drainage info is cleared.
|
|
820
|
+
# This means if the Version is "drained" but new workflows are sent to it via
|
|
821
|
+
# Pinned Versioning Override, the status does not account for those Pinned-override
|
|
822
|
+
# executions and remains "drained".
|
|
823
|
+
sig { void }
|
|
824
|
+
def clear_drainage_info
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
# Arbitrary user-provided metadata attached to this version.
|
|
828
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::VersionMetadata)) }
|
|
829
|
+
def metadata
|
|
830
|
+
end
|
|
831
|
+
|
|
832
|
+
# Arbitrary user-provided metadata attached to this version.
|
|
833
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::VersionMetadata)).void }
|
|
834
|
+
def metadata=(value)
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
# Arbitrary user-provided metadata attached to this version.
|
|
838
|
+
sig { void }
|
|
839
|
+
def clear_metadata
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
# Optional. Contains the new worker compute configuration for the Worker
|
|
843
|
+
# Deployment. Used for worker scale management.
|
|
844
|
+
sig { returns(T.nilable(Temporalio::Api::Compute::V1::ComputeConfig)) }
|
|
845
|
+
def compute_config
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
# Optional. Contains the new worker compute configuration for the Worker
|
|
849
|
+
# Deployment. Used for worker scale management.
|
|
850
|
+
sig { params(value: T.nilable(Temporalio::Api::Compute::V1::ComputeConfig)).void }
|
|
851
|
+
def compute_config=(value)
|
|
852
|
+
end
|
|
853
|
+
|
|
854
|
+
# Optional. Contains the new worker compute configuration for the Worker
|
|
855
|
+
# Deployment. Used for worker scale management.
|
|
856
|
+
sig { void }
|
|
857
|
+
def clear_compute_config
|
|
858
|
+
end
|
|
859
|
+
|
|
860
|
+
# Identity of the last client who modified the configuration of this Version.
|
|
861
|
+
# As of now, this field only covers changes through the following APIs:
|
|
862
|
+
# - `CreateWorkerDeploymentVersion`
|
|
863
|
+
# - `UpdateWorkerDeploymentVersionComputeConfig`
|
|
864
|
+
# - `UpdateWorkerDeploymentVersionMetadata`
|
|
865
|
+
sig { returns(String) }
|
|
866
|
+
def last_modifier_identity
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
# Identity of the last client who modified the configuration of this Version.
|
|
870
|
+
# As of now, this field only covers changes through the following APIs:
|
|
871
|
+
# - `CreateWorkerDeploymentVersion`
|
|
872
|
+
# - `UpdateWorkerDeploymentVersionComputeConfig`
|
|
873
|
+
# - `UpdateWorkerDeploymentVersionMetadata`
|
|
874
|
+
sig { params(value: String).void }
|
|
875
|
+
def last_modifier_identity=(value)
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
# Identity of the last client who modified the configuration of this Version.
|
|
879
|
+
# As of now, this field only covers changes through the following APIs:
|
|
880
|
+
# - `CreateWorkerDeploymentVersion`
|
|
881
|
+
# - `UpdateWorkerDeploymentVersionComputeConfig`
|
|
882
|
+
# - `UpdateWorkerDeploymentVersionMetadata`
|
|
883
|
+
sig { void }
|
|
884
|
+
def clear_last_modifier_identity
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
sig { params(field: String).returns(T.untyped) }
|
|
888
|
+
def [](field)
|
|
889
|
+
end
|
|
890
|
+
|
|
891
|
+
sig { params(field: String, value: T.untyped).void }
|
|
892
|
+
def []=(field, value)
|
|
893
|
+
end
|
|
894
|
+
|
|
895
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
896
|
+
def to_h
|
|
897
|
+
end
|
|
898
|
+
|
|
899
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo) }
|
|
900
|
+
def self.decode(str)
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo).returns(String) }
|
|
904
|
+
def self.encode(msg)
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo) }
|
|
908
|
+
def self.decode_json(str, **kw)
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo, kw: T.untyped).returns(String) }
|
|
912
|
+
def self.encode_json(msg, **kw)
|
|
913
|
+
end
|
|
914
|
+
|
|
915
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
916
|
+
def self.descriptor
|
|
917
|
+
end
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
# Information about workflow drainage to help the user determine when it is safe
|
|
921
|
+
# to decommission a Version. Not present while version is current or ramping.
|
|
922
|
+
class Temporalio::Api::Deployment::V1::VersionDrainageInfo
|
|
923
|
+
include ::Google::Protobuf::MessageExts
|
|
924
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
925
|
+
|
|
926
|
+
sig do
|
|
927
|
+
params(
|
|
928
|
+
status: T.nilable(T.any(Symbol, String, Integer)),
|
|
929
|
+
last_changed_time: T.nilable(Google::Protobuf::Timestamp),
|
|
930
|
+
last_checked_time: T.nilable(Google::Protobuf::Timestamp)
|
|
931
|
+
).void
|
|
932
|
+
end
|
|
933
|
+
def initialize(
|
|
934
|
+
status: :VERSION_DRAINAGE_STATUS_UNSPECIFIED,
|
|
935
|
+
last_changed_time: nil,
|
|
936
|
+
last_checked_time: nil
|
|
937
|
+
)
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# Set to DRAINING when the version first stops accepting new executions (is no longer current or ramping).
|
|
941
|
+
# Set to DRAINED when no more open pinned workflows exist on this version.
|
|
942
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
943
|
+
def status
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
# Set to DRAINING when the version first stops accepting new executions (is no longer current or ramping).
|
|
947
|
+
# Set to DRAINED when no more open pinned workflows exist on this version.
|
|
948
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
949
|
+
def status=(value)
|
|
950
|
+
end
|
|
951
|
+
|
|
952
|
+
# Set to DRAINING when the version first stops accepting new executions (is no longer current or ramping).
|
|
953
|
+
# Set to DRAINED when no more open pinned workflows exist on this version.
|
|
954
|
+
sig { void }
|
|
955
|
+
def clear_status
|
|
956
|
+
end
|
|
957
|
+
|
|
958
|
+
# Last time the drainage status changed.
|
|
959
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
960
|
+
def last_changed_time
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
# Last time the drainage status changed.
|
|
964
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
965
|
+
def last_changed_time=(value)
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
# Last time the drainage status changed.
|
|
969
|
+
sig { void }
|
|
970
|
+
def clear_last_changed_time
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
# Last time the system checked for drainage of this version.
|
|
974
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
975
|
+
def last_checked_time
|
|
976
|
+
end
|
|
977
|
+
|
|
978
|
+
# Last time the system checked for drainage of this version.
|
|
979
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
980
|
+
def last_checked_time=(value)
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
# Last time the system checked for drainage of this version.
|
|
984
|
+
sig { void }
|
|
985
|
+
def clear_last_checked_time
|
|
986
|
+
end
|
|
987
|
+
|
|
988
|
+
sig { params(field: String).returns(T.untyped) }
|
|
989
|
+
def [](field)
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
sig { params(field: String, value: T.untyped).void }
|
|
993
|
+
def []=(field, value)
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
997
|
+
def to_h
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::VersionDrainageInfo) }
|
|
1001
|
+
def self.decode(str)
|
|
1002
|
+
end
|
|
1003
|
+
|
|
1004
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::VersionDrainageInfo).returns(String) }
|
|
1005
|
+
def self.encode(msg)
|
|
1006
|
+
end
|
|
1007
|
+
|
|
1008
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::VersionDrainageInfo) }
|
|
1009
|
+
def self.decode_json(str, **kw)
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::VersionDrainageInfo, kw: T.untyped).returns(String) }
|
|
1013
|
+
def self.encode_json(msg, **kw)
|
|
1014
|
+
end
|
|
1015
|
+
|
|
1016
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1017
|
+
def self.descriptor
|
|
1018
|
+
end
|
|
1019
|
+
end
|
|
1020
|
+
|
|
1021
|
+
# ComputeStatus represents compute-related configuration and health for a Worker Deployment Version.
|
|
1022
|
+
class Temporalio::Api::Deployment::V1::ComputeStatus
|
|
1023
|
+
include ::Google::Protobuf::MessageExts
|
|
1024
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1025
|
+
|
|
1026
|
+
sig do
|
|
1027
|
+
params(
|
|
1028
|
+
provider_validation: T.nilable(Temporalio::Api::Deployment::V1::ComputeStatus::ProviderValidationStatus)
|
|
1029
|
+
).void
|
|
1030
|
+
end
|
|
1031
|
+
def initialize(
|
|
1032
|
+
provider_validation: nil
|
|
1033
|
+
)
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
# provider_validation encapsulates the health signal for validating the compute provider.
|
|
1037
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::ComputeStatus::ProviderValidationStatus)) }
|
|
1038
|
+
def provider_validation
|
|
1039
|
+
end
|
|
1040
|
+
|
|
1041
|
+
# provider_validation encapsulates the health signal for validating the compute provider.
|
|
1042
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::ComputeStatus::ProviderValidationStatus)).void }
|
|
1043
|
+
def provider_validation=(value)
|
|
1044
|
+
end
|
|
1045
|
+
|
|
1046
|
+
# provider_validation encapsulates the health signal for validating the compute provider.
|
|
1047
|
+
sig { void }
|
|
1048
|
+
def clear_provider_validation
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1052
|
+
def [](field)
|
|
1053
|
+
end
|
|
1054
|
+
|
|
1055
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1056
|
+
def []=(field, value)
|
|
1057
|
+
end
|
|
1058
|
+
|
|
1059
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1060
|
+
def to_h
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::ComputeStatus) }
|
|
1064
|
+
def self.decode(str)
|
|
1065
|
+
end
|
|
1066
|
+
|
|
1067
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::ComputeStatus).returns(String) }
|
|
1068
|
+
def self.encode(msg)
|
|
1069
|
+
end
|
|
1070
|
+
|
|
1071
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::ComputeStatus) }
|
|
1072
|
+
def self.decode_json(str, **kw)
|
|
1073
|
+
end
|
|
1074
|
+
|
|
1075
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::ComputeStatus, kw: T.untyped).returns(String) }
|
|
1076
|
+
def self.encode_json(msg, **kw)
|
|
1077
|
+
end
|
|
1078
|
+
|
|
1079
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1080
|
+
def self.descriptor
|
|
1081
|
+
end
|
|
1082
|
+
end
|
|
1083
|
+
|
|
1084
|
+
# A Worker Deployment (Deployment, for short) represents all workers serving
|
|
1085
|
+
# a shared set of Task Queues. Typically, a Deployment represents one service or
|
|
1086
|
+
# application.
|
|
1087
|
+
# A Deployment contains multiple Deployment Versions, each representing a different
|
|
1088
|
+
# version of workers. (see documentation of WorkerDeploymentVersionInfo)
|
|
1089
|
+
# Deployment records are created in Temporal server automatically when their
|
|
1090
|
+
# first poller arrives to the server.
|
|
1091
|
+
class Temporalio::Api::Deployment::V1::WorkerDeploymentInfo
|
|
1092
|
+
include ::Google::Protobuf::MessageExts
|
|
1093
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1094
|
+
|
|
1095
|
+
sig do
|
|
1096
|
+
params(
|
|
1097
|
+
name: T.nilable(String),
|
|
1098
|
+
version_summaries: T.nilable(T::Array[T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary)]),
|
|
1099
|
+
create_time: T.nilable(Google::Protobuf::Timestamp),
|
|
1100
|
+
routing_config: T.nilable(Temporalio::Api::Deployment::V1::RoutingConfig),
|
|
1101
|
+
last_modifier_identity: T.nilable(String),
|
|
1102
|
+
manager_identity: T.nilable(String),
|
|
1103
|
+
routing_config_update_state: T.nilable(T.any(Symbol, String, Integer))
|
|
1104
|
+
).void
|
|
1105
|
+
end
|
|
1106
|
+
def initialize(
|
|
1107
|
+
name: "",
|
|
1108
|
+
version_summaries: [],
|
|
1109
|
+
create_time: nil,
|
|
1110
|
+
routing_config: nil,
|
|
1111
|
+
last_modifier_identity: "",
|
|
1112
|
+
manager_identity: "",
|
|
1113
|
+
routing_config_update_state: :ROUTING_CONFIG_UPDATE_STATE_UNSPECIFIED
|
|
1114
|
+
)
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
# Identifies a Worker Deployment. Must be unique within the namespace.
|
|
1118
|
+
sig { returns(String) }
|
|
1119
|
+
def name
|
|
1120
|
+
end
|
|
1121
|
+
|
|
1122
|
+
# Identifies a Worker Deployment. Must be unique within the namespace.
|
|
1123
|
+
sig { params(value: String).void }
|
|
1124
|
+
def name=(value)
|
|
1125
|
+
end
|
|
1126
|
+
|
|
1127
|
+
# Identifies a Worker Deployment. Must be unique within the namespace.
|
|
1128
|
+
sig { void }
|
|
1129
|
+
def clear_name
|
|
1130
|
+
end
|
|
1131
|
+
|
|
1132
|
+
# Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
|
|
1133
|
+
# cleaned up automatically if all the following conditions meet:
|
|
1134
|
+
# - It does not receive new executions (is not current or ramping)
|
|
1135
|
+
# - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status)
|
|
1136
|
+
# - It is drained (see WorkerDeploymentVersionInfo.drainage_status)
|
|
1137
|
+
sig { returns(T::Array[T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary)]) }
|
|
1138
|
+
def version_summaries
|
|
1139
|
+
end
|
|
1140
|
+
|
|
1141
|
+
# Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
|
|
1142
|
+
# cleaned up automatically if all the following conditions meet:
|
|
1143
|
+
# - It does not receive new executions (is not current or ramping)
|
|
1144
|
+
# - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status)
|
|
1145
|
+
# - It is drained (see WorkerDeploymentVersionInfo.drainage_status)
|
|
1146
|
+
sig { params(value: ::Google::Protobuf::RepeatedField).void }
|
|
1147
|
+
def version_summaries=(value)
|
|
1148
|
+
end
|
|
1149
|
+
|
|
1150
|
+
# Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be
|
|
1151
|
+
# cleaned up automatically if all the following conditions meet:
|
|
1152
|
+
# - It does not receive new executions (is not current or ramping)
|
|
1153
|
+
# - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status)
|
|
1154
|
+
# - It is drained (see WorkerDeploymentVersionInfo.drainage_status)
|
|
1155
|
+
sig { void }
|
|
1156
|
+
def clear_version_summaries
|
|
1157
|
+
end
|
|
1158
|
+
|
|
1159
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
1160
|
+
def create_time
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1163
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
1164
|
+
def create_time=(value)
|
|
1165
|
+
end
|
|
1166
|
+
|
|
1167
|
+
sig { void }
|
|
1168
|
+
def clear_create_time
|
|
1169
|
+
end
|
|
1170
|
+
|
|
1171
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::RoutingConfig)) }
|
|
1172
|
+
def routing_config
|
|
1173
|
+
end
|
|
1174
|
+
|
|
1175
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::RoutingConfig)).void }
|
|
1176
|
+
def routing_config=(value)
|
|
1177
|
+
end
|
|
1178
|
+
|
|
1179
|
+
sig { void }
|
|
1180
|
+
def clear_routing_config
|
|
1181
|
+
end
|
|
1182
|
+
|
|
1183
|
+
# Identity of the last client who modified the configuration of this Deployment. Set to the
|
|
1184
|
+
# `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and
|
|
1185
|
+
# `SetWorkerDeploymentRampingVersion`.
|
|
1186
|
+
sig { returns(String) }
|
|
1187
|
+
def last_modifier_identity
|
|
1188
|
+
end
|
|
1189
|
+
|
|
1190
|
+
# Identity of the last client who modified the configuration of this Deployment. Set to the
|
|
1191
|
+
# `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and
|
|
1192
|
+
# `SetWorkerDeploymentRampingVersion`.
|
|
1193
|
+
sig { params(value: String).void }
|
|
1194
|
+
def last_modifier_identity=(value)
|
|
1195
|
+
end
|
|
1196
|
+
|
|
1197
|
+
# Identity of the last client who modified the configuration of this Deployment. Set to the
|
|
1198
|
+
# `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and
|
|
1199
|
+
# `SetWorkerDeploymentRampingVersion`.
|
|
1200
|
+
sig { void }
|
|
1201
|
+
def clear_last_modifier_identity
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1204
|
+
# Identity of the client that has the exclusive right to make changes to this Worker Deployment.
|
|
1205
|
+
# Empty by default.
|
|
1206
|
+
# If this is set, clients whose identity does not match `manager_identity` will not be able to make changes
|
|
1207
|
+
# to this Worker Deployment. They can either set their own identity as the manager or unset the field to proceed.
|
|
1208
|
+
sig { returns(String) }
|
|
1209
|
+
def manager_identity
|
|
1210
|
+
end
|
|
1211
|
+
|
|
1212
|
+
# Identity of the client that has the exclusive right to make changes to this Worker Deployment.
|
|
1213
|
+
# Empty by default.
|
|
1214
|
+
# If this is set, clients whose identity does not match `manager_identity` will not be able to make changes
|
|
1215
|
+
# to this Worker Deployment. They can either set their own identity as the manager or unset the field to proceed.
|
|
1216
|
+
sig { params(value: String).void }
|
|
1217
|
+
def manager_identity=(value)
|
|
1218
|
+
end
|
|
1219
|
+
|
|
1220
|
+
# Identity of the client that has the exclusive right to make changes to this Worker Deployment.
|
|
1221
|
+
# Empty by default.
|
|
1222
|
+
# If this is set, clients whose identity does not match `manager_identity` will not be able to make changes
|
|
1223
|
+
# to this Worker Deployment. They can either set their own identity as the manager or unset the field to proceed.
|
|
1224
|
+
sig { void }
|
|
1225
|
+
def clear_manager_identity
|
|
1226
|
+
end
|
|
1227
|
+
|
|
1228
|
+
# Indicates whether the routing_config has been fully propagated to all
|
|
1229
|
+
# relevant task queues and their partitions.
|
|
1230
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
1231
|
+
def routing_config_update_state
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1234
|
+
# Indicates whether the routing_config has been fully propagated to all
|
|
1235
|
+
# relevant task queues and their partitions.
|
|
1236
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
1237
|
+
def routing_config_update_state=(value)
|
|
1238
|
+
end
|
|
1239
|
+
|
|
1240
|
+
# Indicates whether the routing_config has been fully propagated to all
|
|
1241
|
+
# relevant task queues and their partitions.
|
|
1242
|
+
sig { void }
|
|
1243
|
+
def clear_routing_config_update_state
|
|
1244
|
+
end
|
|
1245
|
+
|
|
1246
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1247
|
+
def [](field)
|
|
1248
|
+
end
|
|
1249
|
+
|
|
1250
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1251
|
+
def []=(field, value)
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1255
|
+
def to_h
|
|
1256
|
+
end
|
|
1257
|
+
|
|
1258
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentInfo) }
|
|
1259
|
+
def self.decode(str)
|
|
1260
|
+
end
|
|
1261
|
+
|
|
1262
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentInfo).returns(String) }
|
|
1263
|
+
def self.encode(msg)
|
|
1264
|
+
end
|
|
1265
|
+
|
|
1266
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentInfo) }
|
|
1267
|
+
def self.decode_json(str, **kw)
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1270
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentInfo, kw: T.untyped).returns(String) }
|
|
1271
|
+
def self.encode_json(msg, **kw)
|
|
1272
|
+
end
|
|
1273
|
+
|
|
1274
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1275
|
+
def self.descriptor
|
|
1276
|
+
end
|
|
1277
|
+
end
|
|
1278
|
+
|
|
1279
|
+
# A Worker Deployment Version (Version, for short) represents a
|
|
1280
|
+
# version of workers within a Worker Deployment. (see documentation of WorkerDeploymentVersionInfo)
|
|
1281
|
+
# Version records are created in Temporal server automatically when their
|
|
1282
|
+
# first poller arrives to the server.
|
|
1283
|
+
# Experimental. Worker Deployment Versions are experimental and might significantly change in the future.
|
|
1284
|
+
class Temporalio::Api::Deployment::V1::WorkerDeploymentVersion
|
|
1285
|
+
include ::Google::Protobuf::MessageExts
|
|
1286
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1287
|
+
|
|
1288
|
+
sig do
|
|
1289
|
+
params(
|
|
1290
|
+
build_id: T.nilable(String),
|
|
1291
|
+
deployment_name: T.nilable(String)
|
|
1292
|
+
).void
|
|
1293
|
+
end
|
|
1294
|
+
def initialize(
|
|
1295
|
+
build_id: "",
|
|
1296
|
+
deployment_name: ""
|
|
1297
|
+
)
|
|
1298
|
+
end
|
|
1299
|
+
|
|
1300
|
+
# A unique identifier for this Version within the Deployment it is a part of.
|
|
1301
|
+
# Not necessarily unique within the namespace.
|
|
1302
|
+
# The combination of `deployment_name` and `build_id` uniquely identifies this
|
|
1303
|
+
# Version within the namespace, because Deployment names are unique within a namespace.
|
|
1304
|
+
sig { returns(String) }
|
|
1305
|
+
def build_id
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
# A unique identifier for this Version within the Deployment it is a part of.
|
|
1309
|
+
# Not necessarily unique within the namespace.
|
|
1310
|
+
# The combination of `deployment_name` and `build_id` uniquely identifies this
|
|
1311
|
+
# Version within the namespace, because Deployment names are unique within a namespace.
|
|
1312
|
+
sig { params(value: String).void }
|
|
1313
|
+
def build_id=(value)
|
|
1314
|
+
end
|
|
1315
|
+
|
|
1316
|
+
# A unique identifier for this Version within the Deployment it is a part of.
|
|
1317
|
+
# Not necessarily unique within the namespace.
|
|
1318
|
+
# The combination of `deployment_name` and `build_id` uniquely identifies this
|
|
1319
|
+
# Version within the namespace, because Deployment names are unique within a namespace.
|
|
1320
|
+
sig { void }
|
|
1321
|
+
def clear_build_id
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
# Identifies the Worker Deployment this Version is part of.
|
|
1325
|
+
sig { returns(String) }
|
|
1326
|
+
def deployment_name
|
|
1327
|
+
end
|
|
1328
|
+
|
|
1329
|
+
# Identifies the Worker Deployment this Version is part of.
|
|
1330
|
+
sig { params(value: String).void }
|
|
1331
|
+
def deployment_name=(value)
|
|
1332
|
+
end
|
|
1333
|
+
|
|
1334
|
+
# Identifies the Worker Deployment this Version is part of.
|
|
1335
|
+
sig { void }
|
|
1336
|
+
def clear_deployment_name
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1339
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1340
|
+
def [](field)
|
|
1341
|
+
end
|
|
1342
|
+
|
|
1343
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1344
|
+
def []=(field, value)
|
|
1345
|
+
end
|
|
1346
|
+
|
|
1347
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1348
|
+
def to_h
|
|
1349
|
+
end
|
|
1350
|
+
|
|
1351
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion) }
|
|
1352
|
+
def self.decode(str)
|
|
1353
|
+
end
|
|
1354
|
+
|
|
1355
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentVersion).returns(String) }
|
|
1356
|
+
def self.encode(msg)
|
|
1357
|
+
end
|
|
1358
|
+
|
|
1359
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion) }
|
|
1360
|
+
def self.decode_json(str, **kw)
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1363
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentVersion, kw: T.untyped).returns(String) }
|
|
1364
|
+
def self.encode_json(msg, **kw)
|
|
1365
|
+
end
|
|
1366
|
+
|
|
1367
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1368
|
+
def self.descriptor
|
|
1369
|
+
end
|
|
1370
|
+
end
|
|
1371
|
+
|
|
1372
|
+
class Temporalio::Api::Deployment::V1::VersionMetadata
|
|
1373
|
+
include ::Google::Protobuf::MessageExts
|
|
1374
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1375
|
+
|
|
1376
|
+
sig do
|
|
1377
|
+
params(
|
|
1378
|
+
entries: T.nilable(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)])
|
|
1379
|
+
).void
|
|
1380
|
+
end
|
|
1381
|
+
def initialize(
|
|
1382
|
+
entries: ::Google::Protobuf::Map.new(:string, :message, Temporalio::Api::Common::V1::Payload)
|
|
1383
|
+
)
|
|
1384
|
+
end
|
|
1385
|
+
|
|
1386
|
+
# Arbitrary key-values.
|
|
1387
|
+
sig { returns(T::Hash[String, T.nilable(Temporalio::Api::Common::V1::Payload)]) }
|
|
1388
|
+
def entries
|
|
1389
|
+
end
|
|
1390
|
+
|
|
1391
|
+
# Arbitrary key-values.
|
|
1392
|
+
sig { params(value: ::Google::Protobuf::Map).void }
|
|
1393
|
+
def entries=(value)
|
|
1394
|
+
end
|
|
1395
|
+
|
|
1396
|
+
# Arbitrary key-values.
|
|
1397
|
+
sig { void }
|
|
1398
|
+
def clear_entries
|
|
1399
|
+
end
|
|
1400
|
+
|
|
1401
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1402
|
+
def [](field)
|
|
1403
|
+
end
|
|
1404
|
+
|
|
1405
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1406
|
+
def []=(field, value)
|
|
1407
|
+
end
|
|
1408
|
+
|
|
1409
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1410
|
+
def to_h
|
|
1411
|
+
end
|
|
1412
|
+
|
|
1413
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::VersionMetadata) }
|
|
1414
|
+
def self.decode(str)
|
|
1415
|
+
end
|
|
1416
|
+
|
|
1417
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::VersionMetadata).returns(String) }
|
|
1418
|
+
def self.encode(msg)
|
|
1419
|
+
end
|
|
1420
|
+
|
|
1421
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::VersionMetadata) }
|
|
1422
|
+
def self.decode_json(str, **kw)
|
|
1423
|
+
end
|
|
1424
|
+
|
|
1425
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::VersionMetadata, kw: T.untyped).returns(String) }
|
|
1426
|
+
def self.encode_json(msg, **kw)
|
|
1427
|
+
end
|
|
1428
|
+
|
|
1429
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1430
|
+
def self.descriptor
|
|
1431
|
+
end
|
|
1432
|
+
end
|
|
1433
|
+
|
|
1434
|
+
class Temporalio::Api::Deployment::V1::RoutingConfig
|
|
1435
|
+
include ::Google::Protobuf::MessageExts
|
|
1436
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1437
|
+
|
|
1438
|
+
sig do
|
|
1439
|
+
params(
|
|
1440
|
+
current_deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
|
|
1441
|
+
current_version: T.nilable(String),
|
|
1442
|
+
ramping_deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
|
|
1443
|
+
ramping_version: T.nilable(String),
|
|
1444
|
+
ramping_version_percentage: T.nilable(Float),
|
|
1445
|
+
current_version_changed_time: T.nilable(Google::Protobuf::Timestamp),
|
|
1446
|
+
ramping_version_changed_time: T.nilable(Google::Protobuf::Timestamp),
|
|
1447
|
+
ramping_version_percentage_changed_time: T.nilable(Google::Protobuf::Timestamp),
|
|
1448
|
+
revision_number: T.nilable(Integer)
|
|
1449
|
+
).void
|
|
1450
|
+
end
|
|
1451
|
+
def initialize(
|
|
1452
|
+
current_deployment_version: nil,
|
|
1453
|
+
current_version: "",
|
|
1454
|
+
ramping_deployment_version: nil,
|
|
1455
|
+
ramping_version: "",
|
|
1456
|
+
ramping_version_percentage: 0.0,
|
|
1457
|
+
current_version_changed_time: nil,
|
|
1458
|
+
ramping_version_changed_time: nil,
|
|
1459
|
+
ramping_version_percentage_changed_time: nil,
|
|
1460
|
+
revision_number: 0
|
|
1461
|
+
)
|
|
1462
|
+
end
|
|
1463
|
+
|
|
1464
|
+
# Specifies which Deployment Version should receive new workflow executions and tasks of
|
|
1465
|
+
# existing unversioned or AutoUpgrade workflows.
|
|
1466
|
+
# Nil value means no Version in this Deployment (except Ramping Version, if present) receives traffic other than tasks of previously Pinned workflows. In absence of a Current Version, remaining traffic after any ramp (if set) goes to unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.).
|
|
1467
|
+
# Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage
|
|
1468
|
+
# is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`).
|
|
1469
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
|
|
1470
|
+
def current_deployment_version
|
|
1471
|
+
end
|
|
1472
|
+
|
|
1473
|
+
# Specifies which Deployment Version should receive new workflow executions and tasks of
|
|
1474
|
+
# existing unversioned or AutoUpgrade workflows.
|
|
1475
|
+
# Nil value means no Version in this Deployment (except Ramping Version, if present) receives traffic other than tasks of previously Pinned workflows. In absence of a Current Version, remaining traffic after any ramp (if set) goes to unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.).
|
|
1476
|
+
# Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage
|
|
1477
|
+
# is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`).
|
|
1478
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
|
|
1479
|
+
def current_deployment_version=(value)
|
|
1480
|
+
end
|
|
1481
|
+
|
|
1482
|
+
# Specifies which Deployment Version should receive new workflow executions and tasks of
|
|
1483
|
+
# existing unversioned or AutoUpgrade workflows.
|
|
1484
|
+
# Nil value means no Version in this Deployment (except Ramping Version, if present) receives traffic other than tasks of previously Pinned workflows. In absence of a Current Version, remaining traffic after any ramp (if set) goes to unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.).
|
|
1485
|
+
# Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage
|
|
1486
|
+
# is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`).
|
|
1487
|
+
sig { void }
|
|
1488
|
+
def clear_current_deployment_version
|
|
1489
|
+
end
|
|
1490
|
+
|
|
1491
|
+
# Deprecated. Use `current_deployment_version`.
|
|
1492
|
+
sig { returns(String) }
|
|
1493
|
+
def current_version
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1496
|
+
# Deprecated. Use `current_deployment_version`.
|
|
1497
|
+
sig { params(value: String).void }
|
|
1498
|
+
def current_version=(value)
|
|
1499
|
+
end
|
|
1500
|
+
|
|
1501
|
+
# Deprecated. Use `current_deployment_version`.
|
|
1502
|
+
sig { void }
|
|
1503
|
+
def clear_current_version
|
|
1504
|
+
end
|
|
1505
|
+
|
|
1506
|
+
# When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
|
|
1507
|
+
# Must always be different from `current_deployment_version` unless both are nil.
|
|
1508
|
+
# Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
|
|
1509
|
+
# Note that it is possible to ramp from one Version to another Version, or from unversioned
|
|
1510
|
+
# workers to a particular Version, or from a particular Version to unversioned workers.
|
|
1511
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
|
|
1512
|
+
def ramping_deployment_version
|
|
1513
|
+
end
|
|
1514
|
+
|
|
1515
|
+
# When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
|
|
1516
|
+
# Must always be different from `current_deployment_version` unless both are nil.
|
|
1517
|
+
# Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
|
|
1518
|
+
# Note that it is possible to ramp from one Version to another Version, or from unversioned
|
|
1519
|
+
# workers to a particular Version, or from a particular Version to unversioned workers.
|
|
1520
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
|
|
1521
|
+
def ramping_deployment_version=(value)
|
|
1522
|
+
end
|
|
1523
|
+
|
|
1524
|
+
# When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
|
|
1525
|
+
# Must always be different from `current_deployment_version` unless both are nil.
|
|
1526
|
+
# Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
|
|
1527
|
+
# Note that it is possible to ramp from one Version to another Version, or from unversioned
|
|
1528
|
+
# workers to a particular Version, or from a particular Version to unversioned workers.
|
|
1529
|
+
sig { void }
|
|
1530
|
+
def clear_ramping_deployment_version
|
|
1531
|
+
end
|
|
1532
|
+
|
|
1533
|
+
# Deprecated. Use `ramping_deployment_version`.
|
|
1534
|
+
sig { returns(String) }
|
|
1535
|
+
def ramping_version
|
|
1536
|
+
end
|
|
1537
|
+
|
|
1538
|
+
# Deprecated. Use `ramping_deployment_version`.
|
|
1539
|
+
sig { params(value: String).void }
|
|
1540
|
+
def ramping_version=(value)
|
|
1541
|
+
end
|
|
1542
|
+
|
|
1543
|
+
# Deprecated. Use `ramping_deployment_version`.
|
|
1544
|
+
sig { void }
|
|
1545
|
+
def clear_ramping_version
|
|
1546
|
+
end
|
|
1547
|
+
|
|
1548
|
+
# Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
|
|
1549
|
+
# Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
|
|
1550
|
+
# not yet "promoted" to be the Current Version, likely due to pending validations.
|
|
1551
|
+
# A 0% value means the Ramping Version is receiving no traffic.
|
|
1552
|
+
sig { returns(Float) }
|
|
1553
|
+
def ramping_version_percentage
|
|
1554
|
+
end
|
|
1555
|
+
|
|
1556
|
+
# Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
|
|
1557
|
+
# Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
|
|
1558
|
+
# not yet "promoted" to be the Current Version, likely due to pending validations.
|
|
1559
|
+
# A 0% value means the Ramping Version is receiving no traffic.
|
|
1560
|
+
sig { params(value: Float).void }
|
|
1561
|
+
def ramping_version_percentage=(value)
|
|
1562
|
+
end
|
|
1563
|
+
|
|
1564
|
+
# Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
|
|
1565
|
+
# Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
|
|
1566
|
+
# not yet "promoted" to be the Current Version, likely due to pending validations.
|
|
1567
|
+
# A 0% value means the Ramping Version is receiving no traffic.
|
|
1568
|
+
sig { void }
|
|
1569
|
+
def clear_ramping_version_percentage
|
|
1570
|
+
end
|
|
1571
|
+
|
|
1572
|
+
# Last time current version was changed.
|
|
1573
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
1574
|
+
def current_version_changed_time
|
|
1575
|
+
end
|
|
1576
|
+
|
|
1577
|
+
# Last time current version was changed.
|
|
1578
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
1579
|
+
def current_version_changed_time=(value)
|
|
1580
|
+
end
|
|
1581
|
+
|
|
1582
|
+
# Last time current version was changed.
|
|
1583
|
+
sig { void }
|
|
1584
|
+
def clear_current_version_changed_time
|
|
1585
|
+
end
|
|
1586
|
+
|
|
1587
|
+
# Last time ramping version was changed. Not updated if only the ramp percentage changes.
|
|
1588
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
1589
|
+
def ramping_version_changed_time
|
|
1590
|
+
end
|
|
1591
|
+
|
|
1592
|
+
# Last time ramping version was changed. Not updated if only the ramp percentage changes.
|
|
1593
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
1594
|
+
def ramping_version_changed_time=(value)
|
|
1595
|
+
end
|
|
1596
|
+
|
|
1597
|
+
# Last time ramping version was changed. Not updated if only the ramp percentage changes.
|
|
1598
|
+
sig { void }
|
|
1599
|
+
def clear_ramping_version_changed_time
|
|
1600
|
+
end
|
|
1601
|
+
|
|
1602
|
+
# Last time ramping version percentage was changed.
|
|
1603
|
+
# If ramping version is changed, this is also updated, even if the percentage stays the same.
|
|
1604
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
1605
|
+
def ramping_version_percentage_changed_time
|
|
1606
|
+
end
|
|
1607
|
+
|
|
1608
|
+
# Last time ramping version percentage was changed.
|
|
1609
|
+
# If ramping version is changed, this is also updated, even if the percentage stays the same.
|
|
1610
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
1611
|
+
def ramping_version_percentage_changed_time=(value)
|
|
1612
|
+
end
|
|
1613
|
+
|
|
1614
|
+
# Last time ramping version percentage was changed.
|
|
1615
|
+
# If ramping version is changed, this is also updated, even if the percentage stays the same.
|
|
1616
|
+
sig { void }
|
|
1617
|
+
def clear_ramping_version_percentage_changed_time
|
|
1618
|
+
end
|
|
1619
|
+
|
|
1620
|
+
# Monotonically increasing value which is incremented on every mutation
|
|
1621
|
+
# to any field of this message to achieve eventual consistency between task queues and their partitions.
|
|
1622
|
+
sig { returns(Integer) }
|
|
1623
|
+
def revision_number
|
|
1624
|
+
end
|
|
1625
|
+
|
|
1626
|
+
# Monotonically increasing value which is incremented on every mutation
|
|
1627
|
+
# to any field of this message to achieve eventual consistency between task queues and their partitions.
|
|
1628
|
+
sig { params(value: Integer).void }
|
|
1629
|
+
def revision_number=(value)
|
|
1630
|
+
end
|
|
1631
|
+
|
|
1632
|
+
# Monotonically increasing value which is incremented on every mutation
|
|
1633
|
+
# to any field of this message to achieve eventual consistency between task queues and their partitions.
|
|
1634
|
+
sig { void }
|
|
1635
|
+
def clear_revision_number
|
|
1636
|
+
end
|
|
1637
|
+
|
|
1638
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1639
|
+
def [](field)
|
|
1640
|
+
end
|
|
1641
|
+
|
|
1642
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1643
|
+
def []=(field, value)
|
|
1644
|
+
end
|
|
1645
|
+
|
|
1646
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1647
|
+
def to_h
|
|
1648
|
+
end
|
|
1649
|
+
|
|
1650
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::RoutingConfig) }
|
|
1651
|
+
def self.decode(str)
|
|
1652
|
+
end
|
|
1653
|
+
|
|
1654
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::RoutingConfig).returns(String) }
|
|
1655
|
+
def self.encode(msg)
|
|
1656
|
+
end
|
|
1657
|
+
|
|
1658
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::RoutingConfig) }
|
|
1659
|
+
def self.decode_json(str, **kw)
|
|
1660
|
+
end
|
|
1661
|
+
|
|
1662
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::RoutingConfig, kw: T.untyped).returns(String) }
|
|
1663
|
+
def self.encode_json(msg, **kw)
|
|
1664
|
+
end
|
|
1665
|
+
|
|
1666
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1667
|
+
def self.descriptor
|
|
1668
|
+
end
|
|
1669
|
+
end
|
|
1670
|
+
|
|
1671
|
+
# Used as part of WorkflowExecutionStartedEventAttributes to pass down the AutoUpgrade behavior and source deployment version
|
|
1672
|
+
# to a workflow execution whose parent/previous workflow has an AutoUpgrade behavior.
|
|
1673
|
+
# Also used for Upgrade-on-CaN behaviors AutoUpgrade and UseRampingVersion.
|
|
1674
|
+
class Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo
|
|
1675
|
+
include ::Google::Protobuf::MessageExts
|
|
1676
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1677
|
+
|
|
1678
|
+
sig do
|
|
1679
|
+
params(
|
|
1680
|
+
source_deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
|
|
1681
|
+
source_deployment_revision_number: T.nilable(Integer),
|
|
1682
|
+
continue_as_new_initial_versioning_behavior: T.nilable(T.any(Symbol, String, Integer))
|
|
1683
|
+
).void
|
|
1684
|
+
end
|
|
1685
|
+
def initialize(
|
|
1686
|
+
source_deployment_version: nil,
|
|
1687
|
+
source_deployment_revision_number: 0,
|
|
1688
|
+
continue_as_new_initial_versioning_behavior: :CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED
|
|
1689
|
+
)
|
|
1690
|
+
end
|
|
1691
|
+
|
|
1692
|
+
# The source deployment version of the parent/previous workflow.
|
|
1693
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
|
|
1694
|
+
def source_deployment_version
|
|
1695
|
+
end
|
|
1696
|
+
|
|
1697
|
+
# The source deployment version of the parent/previous workflow.
|
|
1698
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
|
|
1699
|
+
def source_deployment_version=(value)
|
|
1700
|
+
end
|
|
1701
|
+
|
|
1702
|
+
# The source deployment version of the parent/previous workflow.
|
|
1703
|
+
sig { void }
|
|
1704
|
+
def clear_source_deployment_version
|
|
1705
|
+
end
|
|
1706
|
+
|
|
1707
|
+
# The revision number of the source deployment version of the parent/previous workflow.
|
|
1708
|
+
sig { returns(Integer) }
|
|
1709
|
+
def source_deployment_revision_number
|
|
1710
|
+
end
|
|
1711
|
+
|
|
1712
|
+
# The revision number of the source deployment version of the parent/previous workflow.
|
|
1713
|
+
sig { params(value: Integer).void }
|
|
1714
|
+
def source_deployment_revision_number=(value)
|
|
1715
|
+
end
|
|
1716
|
+
|
|
1717
|
+
# The revision number of the source deployment version of the parent/previous workflow.
|
|
1718
|
+
sig { void }
|
|
1719
|
+
def clear_source_deployment_revision_number
|
|
1720
|
+
end
|
|
1721
|
+
|
|
1722
|
+
# Experimental.
|
|
1723
|
+
# If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
|
|
1724
|
+
# specified in that command.
|
|
1725
|
+
# Only used for the initial task of this run and the initial task of any retries of this run.
|
|
1726
|
+
# Not passed to children or to future continue-as-new.
|
|
1727
|
+
#
|
|
1728
|
+
# Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
|
|
1729
|
+
# a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
|
|
1730
|
+
# with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade
|
|
1731
|
+
# value if the InheritedAutoUpgradeInfo is non-empty.
|
|
1732
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
1733
|
+
def continue_as_new_initial_versioning_behavior
|
|
1734
|
+
end
|
|
1735
|
+
|
|
1736
|
+
# Experimental.
|
|
1737
|
+
# If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
|
|
1738
|
+
# specified in that command.
|
|
1739
|
+
# Only used for the initial task of this run and the initial task of any retries of this run.
|
|
1740
|
+
# Not passed to children or to future continue-as-new.
|
|
1741
|
+
#
|
|
1742
|
+
# Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
|
|
1743
|
+
# a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
|
|
1744
|
+
# with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade
|
|
1745
|
+
# value if the InheritedAutoUpgradeInfo is non-empty.
|
|
1746
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
1747
|
+
def continue_as_new_initial_versioning_behavior=(value)
|
|
1748
|
+
end
|
|
1749
|
+
|
|
1750
|
+
# Experimental.
|
|
1751
|
+
# If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
|
|
1752
|
+
# specified in that command.
|
|
1753
|
+
# Only used for the initial task of this run and the initial task of any retries of this run.
|
|
1754
|
+
# Not passed to children or to future continue-as-new.
|
|
1755
|
+
#
|
|
1756
|
+
# Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
|
|
1757
|
+
# a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
|
|
1758
|
+
# with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade
|
|
1759
|
+
# value if the InheritedAutoUpgradeInfo is non-empty.
|
|
1760
|
+
sig { void }
|
|
1761
|
+
def clear_continue_as_new_initial_versioning_behavior
|
|
1762
|
+
end
|
|
1763
|
+
|
|
1764
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1765
|
+
def [](field)
|
|
1766
|
+
end
|
|
1767
|
+
|
|
1768
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1769
|
+
def []=(field, value)
|
|
1770
|
+
end
|
|
1771
|
+
|
|
1772
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1773
|
+
def to_h
|
|
1774
|
+
end
|
|
1775
|
+
|
|
1776
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo) }
|
|
1777
|
+
def self.decode(str)
|
|
1778
|
+
end
|
|
1779
|
+
|
|
1780
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo).returns(String) }
|
|
1781
|
+
def self.encode(msg)
|
|
1782
|
+
end
|
|
1783
|
+
|
|
1784
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo) }
|
|
1785
|
+
def self.decode_json(str, **kw)
|
|
1786
|
+
end
|
|
1787
|
+
|
|
1788
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::InheritedAutoUpgradeInfo, kw: T.untyped).returns(String) }
|
|
1789
|
+
def self.encode_json(msg, **kw)
|
|
1790
|
+
end
|
|
1791
|
+
|
|
1792
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1793
|
+
def self.descriptor
|
|
1794
|
+
end
|
|
1795
|
+
end
|
|
1796
|
+
|
|
1797
|
+
class Temporalio::Api::Deployment::V1::DeploymentInfo::TaskQueueInfo
|
|
1798
|
+
include ::Google::Protobuf::MessageExts
|
|
1799
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1800
|
+
|
|
1801
|
+
sig do
|
|
1802
|
+
params(
|
|
1803
|
+
name: T.nilable(String),
|
|
1804
|
+
type: T.nilable(T.any(Symbol, String, Integer)),
|
|
1805
|
+
first_poller_time: T.nilable(Google::Protobuf::Timestamp)
|
|
1806
|
+
).void
|
|
1807
|
+
end
|
|
1808
|
+
def initialize(
|
|
1809
|
+
name: "",
|
|
1810
|
+
type: :TASK_QUEUE_TYPE_UNSPECIFIED,
|
|
1811
|
+
first_poller_time: nil
|
|
1812
|
+
)
|
|
1813
|
+
end
|
|
1814
|
+
|
|
1815
|
+
sig { returns(String) }
|
|
1816
|
+
def name
|
|
1817
|
+
end
|
|
1818
|
+
|
|
1819
|
+
sig { params(value: String).void }
|
|
1820
|
+
def name=(value)
|
|
1821
|
+
end
|
|
1822
|
+
|
|
1823
|
+
sig { void }
|
|
1824
|
+
def clear_name
|
|
1825
|
+
end
|
|
1826
|
+
|
|
1827
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
1828
|
+
def type
|
|
1829
|
+
end
|
|
1830
|
+
|
|
1831
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
1832
|
+
def type=(value)
|
|
1833
|
+
end
|
|
1834
|
+
|
|
1835
|
+
sig { void }
|
|
1836
|
+
def clear_type
|
|
1837
|
+
end
|
|
1838
|
+
|
|
1839
|
+
# When server saw the first poller for this task queue in this deployment.
|
|
1840
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
1841
|
+
def first_poller_time
|
|
1842
|
+
end
|
|
1843
|
+
|
|
1844
|
+
# When server saw the first poller for this task queue in this deployment.
|
|
1845
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
1846
|
+
def first_poller_time=(value)
|
|
1847
|
+
end
|
|
1848
|
+
|
|
1849
|
+
# When server saw the first poller for this task queue in this deployment.
|
|
1850
|
+
sig { void }
|
|
1851
|
+
def clear_first_poller_time
|
|
1852
|
+
end
|
|
1853
|
+
|
|
1854
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1855
|
+
def [](field)
|
|
1856
|
+
end
|
|
1857
|
+
|
|
1858
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1859
|
+
def []=(field, value)
|
|
1860
|
+
end
|
|
1861
|
+
|
|
1862
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1863
|
+
def to_h
|
|
1864
|
+
end
|
|
1865
|
+
|
|
1866
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::DeploymentInfo::TaskQueueInfo) }
|
|
1867
|
+
def self.decode(str)
|
|
1868
|
+
end
|
|
1869
|
+
|
|
1870
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::DeploymentInfo::TaskQueueInfo).returns(String) }
|
|
1871
|
+
def self.encode(msg)
|
|
1872
|
+
end
|
|
1873
|
+
|
|
1874
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::DeploymentInfo::TaskQueueInfo) }
|
|
1875
|
+
def self.decode_json(str, **kw)
|
|
1876
|
+
end
|
|
1877
|
+
|
|
1878
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::DeploymentInfo::TaskQueueInfo, kw: T.untyped).returns(String) }
|
|
1879
|
+
def self.encode_json(msg, **kw)
|
|
1880
|
+
end
|
|
1881
|
+
|
|
1882
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1883
|
+
def self.descriptor
|
|
1884
|
+
end
|
|
1885
|
+
end
|
|
1886
|
+
|
|
1887
|
+
class Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::VersionTaskQueueInfo
|
|
1888
|
+
include ::Google::Protobuf::MessageExts
|
|
1889
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1890
|
+
|
|
1891
|
+
sig do
|
|
1892
|
+
params(
|
|
1893
|
+
name: T.nilable(String),
|
|
1894
|
+
type: T.nilable(T.any(Symbol, String, Integer))
|
|
1895
|
+
).void
|
|
1896
|
+
end
|
|
1897
|
+
def initialize(
|
|
1898
|
+
name: "",
|
|
1899
|
+
type: :TASK_QUEUE_TYPE_UNSPECIFIED
|
|
1900
|
+
)
|
|
1901
|
+
end
|
|
1902
|
+
|
|
1903
|
+
sig { returns(String) }
|
|
1904
|
+
def name
|
|
1905
|
+
end
|
|
1906
|
+
|
|
1907
|
+
sig { params(value: String).void }
|
|
1908
|
+
def name=(value)
|
|
1909
|
+
end
|
|
1910
|
+
|
|
1911
|
+
sig { void }
|
|
1912
|
+
def clear_name
|
|
1913
|
+
end
|
|
1914
|
+
|
|
1915
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
1916
|
+
def type
|
|
1917
|
+
end
|
|
1918
|
+
|
|
1919
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
1920
|
+
def type=(value)
|
|
1921
|
+
end
|
|
1922
|
+
|
|
1923
|
+
sig { void }
|
|
1924
|
+
def clear_type
|
|
1925
|
+
end
|
|
1926
|
+
|
|
1927
|
+
sig { params(field: String).returns(T.untyped) }
|
|
1928
|
+
def [](field)
|
|
1929
|
+
end
|
|
1930
|
+
|
|
1931
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1932
|
+
def []=(field, value)
|
|
1933
|
+
end
|
|
1934
|
+
|
|
1935
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1936
|
+
def to_h
|
|
1937
|
+
end
|
|
1938
|
+
|
|
1939
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::VersionTaskQueueInfo) }
|
|
1940
|
+
def self.decode(str)
|
|
1941
|
+
end
|
|
1942
|
+
|
|
1943
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::VersionTaskQueueInfo).returns(String) }
|
|
1944
|
+
def self.encode(msg)
|
|
1945
|
+
end
|
|
1946
|
+
|
|
1947
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::VersionTaskQueueInfo) }
|
|
1948
|
+
def self.decode_json(str, **kw)
|
|
1949
|
+
end
|
|
1950
|
+
|
|
1951
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentVersionInfo::VersionTaskQueueInfo, kw: T.untyped).returns(String) }
|
|
1952
|
+
def self.encode_json(msg, **kw)
|
|
1953
|
+
end
|
|
1954
|
+
|
|
1955
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1956
|
+
def self.descriptor
|
|
1957
|
+
end
|
|
1958
|
+
end
|
|
1959
|
+
|
|
1960
|
+
# ProviderValidationStatus represents the result of the most recent
|
|
1961
|
+
# connectivity check between Temporal and a customer's compute provider.
|
|
1962
|
+
class Temporalio::Api::Deployment::V1::ComputeStatus::ProviderValidationStatus
|
|
1963
|
+
include ::Google::Protobuf::MessageExts
|
|
1964
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1965
|
+
|
|
1966
|
+
sig do
|
|
1967
|
+
params(
|
|
1968
|
+
error_message: T.nilable(String),
|
|
1969
|
+
last_check_time: T.nilable(Google::Protobuf::Timestamp)
|
|
1970
|
+
).void
|
|
1971
|
+
end
|
|
1972
|
+
def initialize(
|
|
1973
|
+
error_message: "",
|
|
1974
|
+
last_check_time: nil
|
|
1975
|
+
)
|
|
1976
|
+
end
|
|
1977
|
+
|
|
1978
|
+
# Human-readable error message if connectivity validation failed.
|
|
1979
|
+
# An empty string means validation passed.
|
|
1980
|
+
sig { returns(String) }
|
|
1981
|
+
def error_message
|
|
1982
|
+
end
|
|
1983
|
+
|
|
1984
|
+
# Human-readable error message if connectivity validation failed.
|
|
1985
|
+
# An empty string means validation passed.
|
|
1986
|
+
sig { params(value: String).void }
|
|
1987
|
+
def error_message=(value)
|
|
1988
|
+
end
|
|
1989
|
+
|
|
1990
|
+
# Human-readable error message if connectivity validation failed.
|
|
1991
|
+
# An empty string means validation passed.
|
|
1992
|
+
sig { void }
|
|
1993
|
+
def clear_error_message
|
|
1994
|
+
end
|
|
1995
|
+
|
|
1996
|
+
# Timestamp of the last validation check.
|
|
1997
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
1998
|
+
def last_check_time
|
|
1999
|
+
end
|
|
2000
|
+
|
|
2001
|
+
# Timestamp of the last validation check.
|
|
2002
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2003
|
+
def last_check_time=(value)
|
|
2004
|
+
end
|
|
2005
|
+
|
|
2006
|
+
# Timestamp of the last validation check.
|
|
2007
|
+
sig { void }
|
|
2008
|
+
def clear_last_check_time
|
|
2009
|
+
end
|
|
2010
|
+
|
|
2011
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2012
|
+
def [](field)
|
|
2013
|
+
end
|
|
2014
|
+
|
|
2015
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2016
|
+
def []=(field, value)
|
|
2017
|
+
end
|
|
2018
|
+
|
|
2019
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2020
|
+
def to_h
|
|
2021
|
+
end
|
|
2022
|
+
|
|
2023
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::ComputeStatus::ProviderValidationStatus) }
|
|
2024
|
+
def self.decode(str)
|
|
2025
|
+
end
|
|
2026
|
+
|
|
2027
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::ComputeStatus::ProviderValidationStatus).returns(String) }
|
|
2028
|
+
def self.encode(msg)
|
|
2029
|
+
end
|
|
2030
|
+
|
|
2031
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::ComputeStatus::ProviderValidationStatus) }
|
|
2032
|
+
def self.decode_json(str, **kw)
|
|
2033
|
+
end
|
|
2034
|
+
|
|
2035
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::ComputeStatus::ProviderValidationStatus, kw: T.untyped).returns(String) }
|
|
2036
|
+
def self.encode_json(msg, **kw)
|
|
2037
|
+
end
|
|
2038
|
+
|
|
2039
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2040
|
+
def self.descriptor
|
|
2041
|
+
end
|
|
2042
|
+
end
|
|
2043
|
+
|
|
2044
|
+
class Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary
|
|
2045
|
+
include ::Google::Protobuf::MessageExts
|
|
2046
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2047
|
+
|
|
2048
|
+
sig do
|
|
2049
|
+
params(
|
|
2050
|
+
version: T.nilable(String),
|
|
2051
|
+
status: T.nilable(T.any(Symbol, String, Integer)),
|
|
2052
|
+
deployment_version: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion),
|
|
2053
|
+
create_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2054
|
+
drainage_status: T.nilable(T.any(Symbol, String, Integer)),
|
|
2055
|
+
drainage_info: T.nilable(Temporalio::Api::Deployment::V1::VersionDrainageInfo),
|
|
2056
|
+
current_since_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2057
|
+
ramping_since_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2058
|
+
routing_update_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2059
|
+
first_activation_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2060
|
+
last_current_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2061
|
+
last_deactivation_time: T.nilable(Google::Protobuf::Timestamp),
|
|
2062
|
+
compute_config: T.nilable(Temporalio::Api::Compute::V1::ComputeConfigSummary),
|
|
2063
|
+
compute_status: T.nilable(Temporalio::Api::Deployment::V1::ComputeStatus)
|
|
2064
|
+
).void
|
|
2065
|
+
end
|
|
2066
|
+
def initialize(
|
|
2067
|
+
version: "",
|
|
2068
|
+
status: :WORKER_DEPLOYMENT_VERSION_STATUS_UNSPECIFIED,
|
|
2069
|
+
deployment_version: nil,
|
|
2070
|
+
create_time: nil,
|
|
2071
|
+
drainage_status: :VERSION_DRAINAGE_STATUS_UNSPECIFIED,
|
|
2072
|
+
drainage_info: nil,
|
|
2073
|
+
current_since_time: nil,
|
|
2074
|
+
ramping_since_time: nil,
|
|
2075
|
+
routing_update_time: nil,
|
|
2076
|
+
first_activation_time: nil,
|
|
2077
|
+
last_current_time: nil,
|
|
2078
|
+
last_deactivation_time: nil,
|
|
2079
|
+
compute_config: nil,
|
|
2080
|
+
compute_status: nil
|
|
2081
|
+
)
|
|
2082
|
+
end
|
|
2083
|
+
|
|
2084
|
+
# Deprecated. Use `deployment_version`.
|
|
2085
|
+
sig { returns(String) }
|
|
2086
|
+
def version
|
|
2087
|
+
end
|
|
2088
|
+
|
|
2089
|
+
# Deprecated. Use `deployment_version`.
|
|
2090
|
+
sig { params(value: String).void }
|
|
2091
|
+
def version=(value)
|
|
2092
|
+
end
|
|
2093
|
+
|
|
2094
|
+
# Deprecated. Use `deployment_version`.
|
|
2095
|
+
sig { void }
|
|
2096
|
+
def clear_version
|
|
2097
|
+
end
|
|
2098
|
+
|
|
2099
|
+
# The status of the Worker Deployment Version.
|
|
2100
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
2101
|
+
def status
|
|
2102
|
+
end
|
|
2103
|
+
|
|
2104
|
+
# The status of the Worker Deployment Version.
|
|
2105
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
2106
|
+
def status=(value)
|
|
2107
|
+
end
|
|
2108
|
+
|
|
2109
|
+
# The status of the Worker Deployment Version.
|
|
2110
|
+
sig { void }
|
|
2111
|
+
def clear_status
|
|
2112
|
+
end
|
|
2113
|
+
|
|
2114
|
+
# Required.
|
|
2115
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)) }
|
|
2116
|
+
def deployment_version
|
|
2117
|
+
end
|
|
2118
|
+
|
|
2119
|
+
# Required.
|
|
2120
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentVersion)).void }
|
|
2121
|
+
def deployment_version=(value)
|
|
2122
|
+
end
|
|
2123
|
+
|
|
2124
|
+
# Required.
|
|
2125
|
+
sig { void }
|
|
2126
|
+
def clear_deployment_version
|
|
2127
|
+
end
|
|
2128
|
+
|
|
2129
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2130
|
+
def create_time
|
|
2131
|
+
end
|
|
2132
|
+
|
|
2133
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2134
|
+
def create_time=(value)
|
|
2135
|
+
end
|
|
2136
|
+
|
|
2137
|
+
sig { void }
|
|
2138
|
+
def clear_create_time
|
|
2139
|
+
end
|
|
2140
|
+
|
|
2141
|
+
# Deprecated. Use `drainage_info` instead.
|
|
2142
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
2143
|
+
def drainage_status
|
|
2144
|
+
end
|
|
2145
|
+
|
|
2146
|
+
# Deprecated. Use `drainage_info` instead.
|
|
2147
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
2148
|
+
def drainage_status=(value)
|
|
2149
|
+
end
|
|
2150
|
+
|
|
2151
|
+
# Deprecated. Use `drainage_info` instead.
|
|
2152
|
+
sig { void }
|
|
2153
|
+
def clear_drainage_status
|
|
2154
|
+
end
|
|
2155
|
+
|
|
2156
|
+
# Information about workflow drainage to help the user determine when it is safe
|
|
2157
|
+
# to decommission a Version. Not present while version is current or ramping
|
|
2158
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::VersionDrainageInfo)) }
|
|
2159
|
+
def drainage_info
|
|
2160
|
+
end
|
|
2161
|
+
|
|
2162
|
+
# Information about workflow drainage to help the user determine when it is safe
|
|
2163
|
+
# to decommission a Version. Not present while version is current or ramping
|
|
2164
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::VersionDrainageInfo)).void }
|
|
2165
|
+
def drainage_info=(value)
|
|
2166
|
+
end
|
|
2167
|
+
|
|
2168
|
+
# Information about workflow drainage to help the user determine when it is safe
|
|
2169
|
+
# to decommission a Version. Not present while version is current or ramping
|
|
2170
|
+
sig { void }
|
|
2171
|
+
def clear_drainage_info
|
|
2172
|
+
end
|
|
2173
|
+
|
|
2174
|
+
# Unset if not current.
|
|
2175
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
2176
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
2177
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2178
|
+
def current_since_time
|
|
2179
|
+
end
|
|
2180
|
+
|
|
2181
|
+
# Unset if not current.
|
|
2182
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
2183
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
2184
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2185
|
+
def current_since_time=(value)
|
|
2186
|
+
end
|
|
2187
|
+
|
|
2188
|
+
# Unset if not current.
|
|
2189
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
2190
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
2191
|
+
sig { void }
|
|
2192
|
+
def clear_current_since_time
|
|
2193
|
+
end
|
|
2194
|
+
|
|
2195
|
+
# Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
|
|
2196
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
2197
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
2198
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2199
|
+
def ramping_since_time
|
|
2200
|
+
end
|
|
2201
|
+
|
|
2202
|
+
# Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
|
|
2203
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
2204
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
2205
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2206
|
+
def ramping_since_time=(value)
|
|
2207
|
+
end
|
|
2208
|
+
|
|
2209
|
+
# Unset if not ramping. Updated when the version first starts ramping, not on each ramp change.
|
|
2210
|
+
# (-- api-linter: core::0140::prepositions=disabled
|
|
2211
|
+
# aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --)
|
|
2212
|
+
sig { void }
|
|
2213
|
+
def clear_ramping_since_time
|
|
2214
|
+
end
|
|
2215
|
+
|
|
2216
|
+
# Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.
|
|
2217
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2218
|
+
def routing_update_time
|
|
2219
|
+
end
|
|
2220
|
+
|
|
2221
|
+
# Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.
|
|
2222
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2223
|
+
def routing_update_time=(value)
|
|
2224
|
+
end
|
|
2225
|
+
|
|
2226
|
+
# Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.
|
|
2227
|
+
sig { void }
|
|
2228
|
+
def clear_routing_update_time
|
|
2229
|
+
end
|
|
2230
|
+
|
|
2231
|
+
# Timestamp when this version first became current or ramping.
|
|
2232
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2233
|
+
def first_activation_time
|
|
2234
|
+
end
|
|
2235
|
+
|
|
2236
|
+
# Timestamp when this version first became current or ramping.
|
|
2237
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2238
|
+
def first_activation_time=(value)
|
|
2239
|
+
end
|
|
2240
|
+
|
|
2241
|
+
# Timestamp when this version first became current or ramping.
|
|
2242
|
+
sig { void }
|
|
2243
|
+
def clear_first_activation_time
|
|
2244
|
+
end
|
|
2245
|
+
|
|
2246
|
+
# Timestamp when this version last became current.
|
|
2247
|
+
# Can be used to determine whether a version has ever been Current.
|
|
2248
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2249
|
+
def last_current_time
|
|
2250
|
+
end
|
|
2251
|
+
|
|
2252
|
+
# Timestamp when this version last became current.
|
|
2253
|
+
# Can be used to determine whether a version has ever been Current.
|
|
2254
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2255
|
+
def last_current_time=(value)
|
|
2256
|
+
end
|
|
2257
|
+
|
|
2258
|
+
# Timestamp when this version last became current.
|
|
2259
|
+
# Can be used to determine whether a version has ever been Current.
|
|
2260
|
+
sig { void }
|
|
2261
|
+
def clear_last_current_time
|
|
2262
|
+
end
|
|
2263
|
+
|
|
2264
|
+
# Timestamp when this version last stopped being current or ramping.
|
|
2265
|
+
# Cleared if the version becomes current or ramping again.
|
|
2266
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
2267
|
+
def last_deactivation_time
|
|
2268
|
+
end
|
|
2269
|
+
|
|
2270
|
+
# Timestamp when this version last stopped being current or ramping.
|
|
2271
|
+
# Cleared if the version becomes current or ramping again.
|
|
2272
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
2273
|
+
def last_deactivation_time=(value)
|
|
2274
|
+
end
|
|
2275
|
+
|
|
2276
|
+
# Timestamp when this version last stopped being current or ramping.
|
|
2277
|
+
# Cleared if the version becomes current or ramping again.
|
|
2278
|
+
sig { void }
|
|
2279
|
+
def clear_last_deactivation_time
|
|
2280
|
+
end
|
|
2281
|
+
|
|
2282
|
+
sig { returns(T.nilable(Temporalio::Api::Compute::V1::ComputeConfigSummary)) }
|
|
2283
|
+
def compute_config
|
|
2284
|
+
end
|
|
2285
|
+
|
|
2286
|
+
sig { params(value: T.nilable(Temporalio::Api::Compute::V1::ComputeConfigSummary)).void }
|
|
2287
|
+
def compute_config=(value)
|
|
2288
|
+
end
|
|
2289
|
+
|
|
2290
|
+
sig { void }
|
|
2291
|
+
def clear_compute_config
|
|
2292
|
+
end
|
|
2293
|
+
|
|
2294
|
+
# ComputeStatus represents compute-related configuration and healthchecks.
|
|
2295
|
+
sig { returns(T.nilable(Temporalio::Api::Deployment::V1::ComputeStatus)) }
|
|
2296
|
+
def compute_status
|
|
2297
|
+
end
|
|
2298
|
+
|
|
2299
|
+
# ComputeStatus represents compute-related configuration and healthchecks.
|
|
2300
|
+
sig { params(value: T.nilable(Temporalio::Api::Deployment::V1::ComputeStatus)).void }
|
|
2301
|
+
def compute_status=(value)
|
|
2302
|
+
end
|
|
2303
|
+
|
|
2304
|
+
# ComputeStatus represents compute-related configuration and healthchecks.
|
|
2305
|
+
sig { void }
|
|
2306
|
+
def clear_compute_status
|
|
2307
|
+
end
|
|
2308
|
+
|
|
2309
|
+
sig { params(field: String).returns(T.untyped) }
|
|
2310
|
+
def [](field)
|
|
2311
|
+
end
|
|
2312
|
+
|
|
2313
|
+
sig { params(field: String, value: T.untyped).void }
|
|
2314
|
+
def []=(field, value)
|
|
2315
|
+
end
|
|
2316
|
+
|
|
2317
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
2318
|
+
def to_h
|
|
2319
|
+
end
|
|
2320
|
+
|
|
2321
|
+
sig { params(str: String).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary) }
|
|
2322
|
+
def self.decode(str)
|
|
2323
|
+
end
|
|
2324
|
+
|
|
2325
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary).returns(String) }
|
|
2326
|
+
def self.encode(msg)
|
|
2327
|
+
end
|
|
2328
|
+
|
|
2329
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary) }
|
|
2330
|
+
def self.decode_json(str, **kw)
|
|
2331
|
+
end
|
|
2332
|
+
|
|
2333
|
+
sig { params(msg: Temporalio::Api::Deployment::V1::WorkerDeploymentInfo::WorkerDeploymentVersionSummary, kw: T.untyped).returns(String) }
|
|
2334
|
+
def self.encode_json(msg, **kw)
|
|
2335
|
+
end
|
|
2336
|
+
|
|
2337
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
2338
|
+
def self.descriptor
|
|
2339
|
+
end
|
|
2340
|
+
end
|