temporalio 1.11.0 → 1.12.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 +33 -11
- data/Cargo.toml +1 -0
- data/README.md +168 -11
- data/ext/Cargo.toml +3 -3
- data/lib/temporalio/api/cloud/account/v1/message.rb +2 -1
- data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +43 -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 +8 -1
- data/lib/temporalio/api/cloud/nexus/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/project/v1/message.rb +28 -0
- data/lib/temporalio/api/cloud/region/v1/message.rb +1 -1
- data/lib/temporalio/api/cloud/sink/v1/message.rb +2 -1
- data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
- data/lib/temporalio/api/enums/v1/namespace.rb +2 -1
- data/lib/temporalio/api/operatorservice/v1/request_response.rb +9 -1
- data/lib/temporalio/api/operatorservice/v1/service.rb +1 -1
- data/lib/temporalio/api/payload_visitor.rb +66 -0
- data/lib/temporalio/api/taskqueue/v1/message.rb +3 -1
- data/lib/temporalio/api/workflowservice/v1/request_response.rb +2 -1
- data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
- data/lib/temporalio/client/connection/cloud_service.rb +285 -0
- data/lib/temporalio/client/connection/operator_service.rb +45 -0
- data/lib/temporalio/client/schedule.rb +56 -8
- data/lib/temporalio/contrib/aws/s3_driver/aws_sdk_s3_storage_driver_client.rb +0 -2
- data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver.rb +3 -5
- data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver_client.rb +0 -2
- data/lib/temporalio/contrib/aws/s3_driver.rb +0 -2
- data/lib/temporalio/converters/data_converter.rb +52 -1
- data/lib/temporalio/converters/external_storage.rb +6 -12
- data/lib/temporalio/converters/external_storage_concurrency.rb +4 -2
- data/lib/temporalio/converters/storage_driver.rb +3 -4
- data/lib/temporalio/converters/storage_driver_activity_info.rb +0 -2
- data/lib/temporalio/converters/storage_driver_claim.rb +0 -2
- data/lib/temporalio/converters/storage_driver_limiter.rb +16 -0
- data/lib/temporalio/converters/storage_driver_retrieve_context.rb +7 -6
- data/lib/temporalio/converters/storage_driver_select_context.rb +11 -5
- data/lib/temporalio/converters/storage_driver_store_context.rb +11 -7
- data/lib/temporalio/converters/storage_driver_workflow_info.rb +0 -2
- data/lib/temporalio/error.rb +10 -3
- data/lib/temporalio/internal/bridge/worker.rb +1 -0
- data/lib/temporalio/internal/client/described_schedule_action.rb +41 -0
- data/lib/temporalio/internal/client/implementation.rb +92 -48
- data/lib/temporalio/internal/external_storage_references.rb +5 -4
- data/lib/temporalio/internal/external_storage_runner.rb +177 -0
- data/lib/temporalio/internal/storage_operation_metrics.rb +76 -0
- data/lib/temporalio/internal/worker/activity_worker.rb +60 -24
- data/lib/temporalio/internal/worker/workflow_worker.rb +211 -15
- data/lib/temporalio/version.rb +1 -1
- data/lib/temporalio/worker/workflow_replayer.rb +5 -3
- data/lib/temporalio/worker.rb +4 -2
- data/rbi/temporalio/api/cloud/account/v1/message.rbi +84 -2
- data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +5006 -1157
- data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +171 -0
- data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +71 -16
- data/rbi/temporalio/api/cloud/identity/v1/message.rbi +789 -23
- data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +765 -15
- data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +19 -2
- data/rbi/temporalio/api/cloud/project/v1/message.rbi +334 -0
- data/rbi/temporalio/api/cloud/region/v1/message.rbi +1 -0
- data/rbi/temporalio/api/cloud/sink/v1/message.rbi +147 -0
- data/rbi/temporalio/api/common/v1/message.rbi +6 -0
- data/rbi/temporalio/api/enums/v1/failed_cause.rbi +2 -0
- data/rbi/temporalio/api/enums/v1/namespace.rbi +20 -0
- data/rbi/temporalio/api/history/v1/message.rbi +40 -18
- data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +480 -0
- data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +32 -0
- data/rbi/temporalio/api/payload_visitor.rbi +33 -0
- data/rbi/temporalio/api/schedule/v1/message.rbi +12 -6
- data/rbi/temporalio/api/taskqueue/v1/message.rbi +179 -13
- data/rbi/temporalio/api/worker/v1/message.rbi +6 -6
- data/rbi/temporalio/api/workflow/v1/message.rbi +12 -6
- data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +140 -41
- data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +3 -0
- data/rbi/temporalio/client/connection/cloud_service.rbi +57 -0
- data/rbi/temporalio/client/connection/operator_service.rbi +9 -0
- data/rbi/temporalio/converters/data_converter.rbi +43 -2
- data/rbi/temporalio/converters/external_storage.rbi +2 -7
- data/rbi/temporalio/converters/storage_driver_limiter.rbi +4 -0
- data/rbi/temporalio/converters/storage_driver_retrieve_context.rbi +1 -1
- data/rbi/temporalio/converters/storage_driver_select_context.rbi +6 -2
- data/rbi/temporalio/converters/storage_driver_store_context.rbi +6 -2
- data/rbi/temporalio/error.rbi +3 -1
- data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +6 -0
- data/rbi/temporalio/internal/bridge/worker.rbi +4 -2
- data/rbi/temporalio/internal/client/described_schedule_action.rbi +22 -0
- data/rbi/temporalio/internal/client/implementation.rbi +30 -0
- data/rbi/temporalio/internal/external_storage_runner.rbi +36 -0
- data/rbi/temporalio/internal/storage_operation_metrics.rbi +27 -0
- data/rbi/temporalio/internal/worker/activity_worker.rbi +24 -4
- data/rbi/temporalio/internal/worker/workflow_worker.rbi +61 -1
- data/rbi/temporalio/workflow.rbi +0 -12
- data/sig/temporalio/api/cloud/account/v1/message.rbs +30 -0
- data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +2122 -601
- data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +29 -4
- data/sig/temporalio/api/cloud/identity/v1/message.rbs +342 -1
- data/sig/temporalio/api/cloud/namespace/v1/message.rbs +341 -2
- data/sig/temporalio/api/cloud/nexus/v1/message.rbs +9 -0
- data/sig/temporalio/api/cloud/project/v1/message.rbs +164 -0
- data/sig/temporalio/api/cloud/region/v1/message.rbs +5 -3
- data/sig/temporalio/api/cloud/sink/v1/message.rbs +66 -0
- data/sig/temporalio/api/common/v1/message.rbs +6 -0
- data/sig/temporalio/api/enums/v1/event_type.rbs +1 -0
- data/sig/temporalio/api/enums/v1/failed_cause.rbs +9 -3
- data/sig/temporalio/api/enums/v1/namespace.rbs +30 -2
- data/sig/temporalio/api/enums/v1/time_skipping.rbs +1 -0
- data/sig/temporalio/api/history/v1/message.rbs +8 -0
- data/sig/temporalio/api/operatorservice/v1/request_response.rbs +188 -0
- data/sig/temporalio/api/payload_visitor.rbs +11 -0
- data/sig/temporalio/api/schedule/v1/message.rbs +2 -0
- data/sig/temporalio/api/taskqueue/v1/message.rbs +66 -5
- data/sig/temporalio/api/worker/v1/message.rbs +2 -2
- data/sig/temporalio/api/workflow/v1/message.rbs +2 -0
- data/sig/temporalio/api/workflowservice/v1/request_response.rbs +53 -9
- data/sig/temporalio/client/connection/cloud_service.rbs +76 -0
- data/sig/temporalio/client/connection/operator_service.rbs +12 -0
- data/sig/temporalio/client/schedule.rbs +24 -3
- data/sig/temporalio/contrib/aws/s3_driver/s3_storage_driver.rbs +2 -1
- data/sig/temporalio/contrib/open_telemetry.rbs +4 -4
- data/sig/temporalio/converters/data_converter.rbs +19 -1
- data/sig/temporalio/converters/external_storage.rbs +1 -3
- data/sig/temporalio/converters/storage_driver_limiter.rbs +5 -0
- data/sig/temporalio/converters/storage_driver_retrieve_context.rbs +1 -1
- data/sig/temporalio/converters/storage_driver_select_context.rbs +3 -1
- data/sig/temporalio/converters/storage_driver_store_context.rbs +3 -1
- data/sig/temporalio/error.rbs +4 -1
- data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +4 -0
- data/sig/temporalio/internal/bridge/worker.rbs +2 -0
- data/sig/temporalio/internal/client/described_schedule_action.rbs +18 -0
- data/sig/temporalio/internal/client/implementation.rbs +22 -0
- data/sig/temporalio/internal/external_storage_runner.rbs +32 -0
- data/sig/temporalio/internal/storage_operation_metrics.rbs +25 -0
- data/sig/temporalio/internal/worker/activity_worker.rbs +11 -2
- data/sig/temporalio/internal/worker/workflow_worker.rbs +32 -1
- metadata +13 -2
- data/sig/open_telemetry.rbs +0 -47
|
@@ -924,7 +924,8 @@ class Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes
|
|
|
924
924
|
def clear_declined_target_version_upgrade
|
|
925
925
|
end
|
|
926
926
|
|
|
927
|
-
#
|
|
927
|
+
# Experimental.
|
|
928
|
+
# Initial time-skipping configuration for this workflow execution, recorded at start time.
|
|
928
929
|
# This may have been set explicitly via the start workflow request, or propagated from a
|
|
929
930
|
# parent/previous execution.
|
|
930
931
|
#
|
|
@@ -934,7 +935,8 @@ class Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes
|
|
|
934
935
|
def time_skipping_config
|
|
935
936
|
end
|
|
936
937
|
|
|
937
|
-
#
|
|
938
|
+
# Experimental.
|
|
939
|
+
# Initial time-skipping configuration for this workflow execution, recorded at start time.
|
|
938
940
|
# This may have been set explicitly via the start workflow request, or propagated from a
|
|
939
941
|
# parent/previous execution.
|
|
940
942
|
#
|
|
@@ -944,7 +946,8 @@ class Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes
|
|
|
944
946
|
def time_skipping_config=(value)
|
|
945
947
|
end
|
|
946
948
|
|
|
947
|
-
#
|
|
949
|
+
# Experimental.
|
|
950
|
+
# Initial time-skipping configuration for this workflow execution, recorded at start time.
|
|
948
951
|
# This may have been set explicitly via the start workflow request, or propagated from a
|
|
949
952
|
# parent/previous execution.
|
|
950
953
|
#
|
|
@@ -954,19 +957,22 @@ class Temporalio::Api::History::V1::WorkflowExecutionStartedEventAttributes
|
|
|
954
957
|
def clear_time_skipping_config
|
|
955
958
|
end
|
|
956
959
|
|
|
957
|
-
#
|
|
960
|
+
# Experimental.
|
|
961
|
+
# The time-skipping state propagated from a previous run of this workflow. This can be nil
|
|
958
962
|
# if no time skipping has occurred or there is no previous run.
|
|
959
963
|
sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingStatePropagation)) }
|
|
960
964
|
def time_skipping_state_propagation
|
|
961
965
|
end
|
|
962
966
|
|
|
963
|
-
#
|
|
967
|
+
# Experimental.
|
|
968
|
+
# The time-skipping state propagated from a previous run of this workflow. This can be nil
|
|
964
969
|
# if no time skipping has occurred or there is no previous run.
|
|
965
970
|
sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingStatePropagation)).void }
|
|
966
971
|
def time_skipping_state_propagation=(value)
|
|
967
972
|
end
|
|
968
973
|
|
|
969
|
-
#
|
|
974
|
+
# Experimental.
|
|
975
|
+
# The time-skipping state propagated from a previous run of this workflow. This can be nil
|
|
970
976
|
# if no time skipping has occurred or there is no previous run.
|
|
971
977
|
sig { void }
|
|
972
978
|
def clear_time_skipping_state_propagation
|
|
@@ -6107,34 +6113,40 @@ class Temporalio::Api::History::V1::StartChildWorkflowExecutionInitiatedEventAtt
|
|
|
6107
6113
|
def clear_priority
|
|
6108
6114
|
end
|
|
6109
6115
|
|
|
6110
|
-
#
|
|
6116
|
+
# Experimental.
|
|
6117
|
+
# The propagated time-skipping configuration for the child workflow.
|
|
6111
6118
|
sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)) }
|
|
6112
6119
|
def time_skipping_config
|
|
6113
6120
|
end
|
|
6114
6121
|
|
|
6115
|
-
#
|
|
6122
|
+
# Experimental.
|
|
6123
|
+
# The propagated time-skipping configuration for the child workflow.
|
|
6116
6124
|
sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)).void }
|
|
6117
6125
|
def time_skipping_config=(value)
|
|
6118
6126
|
end
|
|
6119
6127
|
|
|
6120
|
-
#
|
|
6128
|
+
# Experimental.
|
|
6129
|
+
# The propagated time-skipping configuration for the child workflow.
|
|
6121
6130
|
sig { void }
|
|
6122
6131
|
def clear_time_skipping_config
|
|
6123
6132
|
end
|
|
6124
6133
|
|
|
6125
|
-
#
|
|
6134
|
+
# Experimental.
|
|
6135
|
+
# The time-skipping state propagated from the parent workflow. This can be nil if no time skipping
|
|
6126
6136
|
# has occurred or there is no previous run.
|
|
6127
6137
|
sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingStatePropagation)) }
|
|
6128
6138
|
def time_skipping_state_propagation
|
|
6129
6139
|
end
|
|
6130
6140
|
|
|
6131
|
-
#
|
|
6141
|
+
# Experimental.
|
|
6142
|
+
# The time-skipping state propagated from the parent workflow. This can be nil if no time skipping
|
|
6132
6143
|
# has occurred or there is no previous run.
|
|
6133
6144
|
sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingStatePropagation)).void }
|
|
6134
6145
|
def time_skipping_state_propagation=(value)
|
|
6135
6146
|
end
|
|
6136
6147
|
|
|
6137
|
-
#
|
|
6148
|
+
# Experimental.
|
|
6149
|
+
# The time-skipping state propagated from the parent workflow. This can be nil if no time skipping
|
|
6138
6150
|
# has occurred or there is no previous run.
|
|
6139
6151
|
sig { void }
|
|
6140
6152
|
def clear_time_skipping_state_propagation
|
|
@@ -7405,34 +7417,40 @@ class Temporalio::Api::History::V1::WorkflowExecutionOptionsUpdatedEventAttribut
|
|
|
7405
7417
|
def clear_priority
|
|
7406
7418
|
end
|
|
7407
7419
|
|
|
7408
|
-
#
|
|
7420
|
+
# Experimental.
|
|
7421
|
+
# TimeSkippingConfig override upserted in this event. Represents the full config.
|
|
7409
7422
|
sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)) }
|
|
7410
7423
|
def time_skipping_config
|
|
7411
7424
|
end
|
|
7412
7425
|
|
|
7413
|
-
#
|
|
7426
|
+
# Experimental.
|
|
7427
|
+
# TimeSkippingConfig override upserted in this event. Represents the full config.
|
|
7414
7428
|
sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingConfig)).void }
|
|
7415
7429
|
def time_skipping_config=(value)
|
|
7416
7430
|
end
|
|
7417
7431
|
|
|
7418
|
-
#
|
|
7432
|
+
# Experimental.
|
|
7433
|
+
# TimeSkippingConfig override upserted in this event. Represents the full config.
|
|
7419
7434
|
sig { void }
|
|
7420
7435
|
def clear_time_skipping_config
|
|
7421
7436
|
end
|
|
7422
7437
|
|
|
7423
|
-
#
|
|
7438
|
+
# Experimental.
|
|
7439
|
+
# Indicates the time skipping config was updated by the recent call to update
|
|
7424
7440
|
# workflow execution options.
|
|
7425
7441
|
sig { returns(T::Boolean) }
|
|
7426
7442
|
def time_skipping_config_updated
|
|
7427
7443
|
end
|
|
7428
7444
|
|
|
7429
|
-
#
|
|
7445
|
+
# Experimental.
|
|
7446
|
+
# Indicates the time skipping config was updated by the recent call to update
|
|
7430
7447
|
# workflow execution options.
|
|
7431
7448
|
sig { params(value: T::Boolean).void }
|
|
7432
7449
|
def time_skipping_config_updated=(value)
|
|
7433
7450
|
end
|
|
7434
7451
|
|
|
7435
|
-
#
|
|
7452
|
+
# Experimental.
|
|
7453
|
+
# Indicates the time skipping config was updated by the recent call to update
|
|
7436
7454
|
# workflow execution options.
|
|
7437
7455
|
sig { void }
|
|
7438
7456
|
def clear_time_skipping_config_updated
|
|
@@ -8332,6 +8350,7 @@ end
|
|
|
8332
8350
|
# Attributes for an event indicating that time skipping state changed for a workflow execution:
|
|
8333
8351
|
# either time was advanced, or time skipping was stopped automatically due to the fast_forward completing.
|
|
8334
8352
|
# The worker_may_ignore field in HistoryEvent should always be set true for this event.
|
|
8353
|
+
# Experimental. Might change in the future.
|
|
8335
8354
|
class Temporalio::Api::History::V1::WorkflowExecutionTimeSkippingTransitionedEventAttributes
|
|
8336
8355
|
include ::Google::Protobuf::MessageExts
|
|
8337
8356
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -10583,14 +10602,17 @@ class Temporalio::Api::History::V1::HistoryEvent
|
|
|
10583
10602
|
def clear_workflow_execution_unpaused_event_attributes
|
|
10584
10603
|
end
|
|
10585
10604
|
|
|
10605
|
+
# Experimental.
|
|
10586
10606
|
sig { returns(T.nilable(Temporalio::Api::History::V1::WorkflowExecutionTimeSkippingTransitionedEventAttributes)) }
|
|
10587
10607
|
def workflow_execution_time_skipping_transitioned_event_attributes
|
|
10588
10608
|
end
|
|
10589
10609
|
|
|
10610
|
+
# Experimental.
|
|
10590
10611
|
sig { params(value: T.nilable(Temporalio::Api::History::V1::WorkflowExecutionTimeSkippingTransitionedEventAttributes)).void }
|
|
10591
10612
|
def workflow_execution_time_skipping_transitioned_event_attributes=(value)
|
|
10592
10613
|
end
|
|
10593
10614
|
|
|
10615
|
+
# Experimental.
|
|
10594
10616
|
sig { void }
|
|
10595
10617
|
def clear_workflow_execution_time_skipping_transitioned_event_attributes
|
|
10596
10618
|
end
|
|
@@ -547,6 +547,486 @@ class Temporalio::Api::OperatorService::V1::DeleteNamespaceResponse
|
|
|
547
547
|
end
|
|
548
548
|
end
|
|
549
549
|
|
|
550
|
+
class Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceRequest
|
|
551
|
+
include ::Google::Protobuf::MessageExts
|
|
552
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
553
|
+
|
|
554
|
+
sig do
|
|
555
|
+
params(
|
|
556
|
+
namespace: T.nilable(String),
|
|
557
|
+
namespace_id: T.nilable(String)
|
|
558
|
+
).void
|
|
559
|
+
end
|
|
560
|
+
def initialize(
|
|
561
|
+
namespace: "",
|
|
562
|
+
namespace_id: ""
|
|
563
|
+
)
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
# Only one of namespace or namespace_id must be specified to identify namespace.
|
|
567
|
+
sig { returns(String) }
|
|
568
|
+
def namespace
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
# Only one of namespace or namespace_id must be specified to identify namespace.
|
|
572
|
+
sig { params(value: String).void }
|
|
573
|
+
def namespace=(value)
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
# Only one of namespace or namespace_id must be specified to identify namespace.
|
|
577
|
+
sig { void }
|
|
578
|
+
def clear_namespace
|
|
579
|
+
end
|
|
580
|
+
|
|
581
|
+
sig { returns(String) }
|
|
582
|
+
def namespace_id
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
sig { params(value: String).void }
|
|
586
|
+
def namespace_id=(value)
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
sig { void }
|
|
590
|
+
def clear_namespace_id
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
sig { params(field: String).returns(T.untyped) }
|
|
594
|
+
def [](field)
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
sig { params(field: String, value: T.untyped).void }
|
|
598
|
+
def []=(field, value)
|
|
599
|
+
end
|
|
600
|
+
|
|
601
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
602
|
+
def to_h
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
sig { params(str: String).returns(Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceRequest) }
|
|
606
|
+
def self.decode(str)
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceRequest).returns(String) }
|
|
610
|
+
def self.encode(msg)
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceRequest) }
|
|
614
|
+
def self.decode_json(str, **kw)
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceRequest, kw: T.untyped).returns(String) }
|
|
618
|
+
def self.encode_json(msg, **kw)
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
622
|
+
def self.descriptor
|
|
623
|
+
end
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
class Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceResponse
|
|
627
|
+
include ::Google::Protobuf::MessageExts
|
|
628
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
629
|
+
|
|
630
|
+
sig {void}
|
|
631
|
+
def initialize; end
|
|
632
|
+
|
|
633
|
+
sig { params(field: String).returns(T.untyped) }
|
|
634
|
+
def [](field)
|
|
635
|
+
end
|
|
636
|
+
|
|
637
|
+
sig { params(field: String, value: T.untyped).void }
|
|
638
|
+
def []=(field, value)
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
642
|
+
def to_h
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
sig { params(str: String).returns(Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceResponse) }
|
|
646
|
+
def self.decode(str)
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceResponse).returns(String) }
|
|
650
|
+
def self.encode(msg)
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceResponse) }
|
|
654
|
+
def self.decode_json(str, **kw)
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceResponse, kw: T.untyped).returns(String) }
|
|
658
|
+
def self.encode_json(msg, **kw)
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
662
|
+
def self.descriptor
|
|
663
|
+
end
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
class Temporalio::Api::OperatorService::V1::RestoreNamespaceRequest
|
|
667
|
+
include ::Google::Protobuf::MessageExts
|
|
668
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
669
|
+
|
|
670
|
+
sig do
|
|
671
|
+
params(
|
|
672
|
+
namespace: T.nilable(String),
|
|
673
|
+
namespace_id: T.nilable(String)
|
|
674
|
+
).void
|
|
675
|
+
end
|
|
676
|
+
def initialize(
|
|
677
|
+
namespace: "",
|
|
678
|
+
namespace_id: ""
|
|
679
|
+
)
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
# Only one of namespace or namespace_id must be specified to identify namespace.
|
|
683
|
+
sig { returns(String) }
|
|
684
|
+
def namespace
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
# Only one of namespace or namespace_id must be specified to identify namespace.
|
|
688
|
+
sig { params(value: String).void }
|
|
689
|
+
def namespace=(value)
|
|
690
|
+
end
|
|
691
|
+
|
|
692
|
+
# Only one of namespace or namespace_id must be specified to identify namespace.
|
|
693
|
+
sig { void }
|
|
694
|
+
def clear_namespace
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
sig { returns(String) }
|
|
698
|
+
def namespace_id
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
sig { params(value: String).void }
|
|
702
|
+
def namespace_id=(value)
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
sig { void }
|
|
706
|
+
def clear_namespace_id
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
sig { params(field: String).returns(T.untyped) }
|
|
710
|
+
def [](field)
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
sig { params(field: String, value: T.untyped).void }
|
|
714
|
+
def []=(field, value)
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
718
|
+
def to_h
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
sig { params(str: String).returns(Temporalio::Api::OperatorService::V1::RestoreNamespaceRequest) }
|
|
722
|
+
def self.decode(str)
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::RestoreNamespaceRequest).returns(String) }
|
|
726
|
+
def self.encode(msg)
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::OperatorService::V1::RestoreNamespaceRequest) }
|
|
730
|
+
def self.decode_json(str, **kw)
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::RestoreNamespaceRequest, kw: T.untyped).returns(String) }
|
|
734
|
+
def self.encode_json(msg, **kw)
|
|
735
|
+
end
|
|
736
|
+
|
|
737
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
738
|
+
def self.descriptor
|
|
739
|
+
end
|
|
740
|
+
end
|
|
741
|
+
|
|
742
|
+
class Temporalio::Api::OperatorService::V1::RestoreNamespaceResponse
|
|
743
|
+
include ::Google::Protobuf::MessageExts
|
|
744
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
745
|
+
|
|
746
|
+
sig {void}
|
|
747
|
+
def initialize; end
|
|
748
|
+
|
|
749
|
+
sig { params(field: String).returns(T.untyped) }
|
|
750
|
+
def [](field)
|
|
751
|
+
end
|
|
752
|
+
|
|
753
|
+
sig { params(field: String, value: T.untyped).void }
|
|
754
|
+
def []=(field, value)
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
758
|
+
def to_h
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
sig { params(str: String).returns(Temporalio::Api::OperatorService::V1::RestoreNamespaceResponse) }
|
|
762
|
+
def self.decode(str)
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::RestoreNamespaceResponse).returns(String) }
|
|
766
|
+
def self.encode(msg)
|
|
767
|
+
end
|
|
768
|
+
|
|
769
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::OperatorService::V1::RestoreNamespaceResponse) }
|
|
770
|
+
def self.decode_json(str, **kw)
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::RestoreNamespaceResponse, kw: T.untyped).returns(String) }
|
|
774
|
+
def self.encode_json(msg, **kw)
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
778
|
+
def self.descriptor
|
|
779
|
+
end
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
class Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreRequest
|
|
783
|
+
include ::Google::Protobuf::MessageExts
|
|
784
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
785
|
+
|
|
786
|
+
sig do
|
|
787
|
+
params(
|
|
788
|
+
namespace: T.nilable(String),
|
|
789
|
+
namespace_id: T.nilable(String)
|
|
790
|
+
).void
|
|
791
|
+
end
|
|
792
|
+
def initialize(
|
|
793
|
+
namespace: "",
|
|
794
|
+
namespace_id: ""
|
|
795
|
+
)
|
|
796
|
+
end
|
|
797
|
+
|
|
798
|
+
# Only one of namespace or namespace_id must be specified to identify namespace.
|
|
799
|
+
sig { returns(String) }
|
|
800
|
+
def namespace
|
|
801
|
+
end
|
|
802
|
+
|
|
803
|
+
# Only one of namespace or namespace_id must be specified to identify namespace.
|
|
804
|
+
sig { params(value: String).void }
|
|
805
|
+
def namespace=(value)
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
# Only one of namespace or namespace_id must be specified to identify namespace.
|
|
809
|
+
sig { void }
|
|
810
|
+
def clear_namespace
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
sig { returns(String) }
|
|
814
|
+
def namespace_id
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
sig { params(value: String).void }
|
|
818
|
+
def namespace_id=(value)
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
sig { void }
|
|
822
|
+
def clear_namespace_id
|
|
823
|
+
end
|
|
824
|
+
|
|
825
|
+
sig { params(field: String).returns(T.untyped) }
|
|
826
|
+
def [](field)
|
|
827
|
+
end
|
|
828
|
+
|
|
829
|
+
sig { params(field: String, value: T.untyped).void }
|
|
830
|
+
def []=(field, value)
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
834
|
+
def to_h
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
sig { params(str: String).returns(Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreRequest) }
|
|
838
|
+
def self.decode(str)
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreRequest).returns(String) }
|
|
842
|
+
def self.encode(msg)
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreRequest) }
|
|
846
|
+
def self.decode_json(str, **kw)
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreRequest, kw: T.untyped).returns(String) }
|
|
850
|
+
def self.encode_json(msg, **kw)
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
854
|
+
def self.descriptor
|
|
855
|
+
end
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
class Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreResponse
|
|
859
|
+
include ::Google::Protobuf::MessageExts
|
|
860
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
861
|
+
|
|
862
|
+
sig do
|
|
863
|
+
params(
|
|
864
|
+
state: T.nilable(T.any(Symbol, String, Integer)),
|
|
865
|
+
host_cluster: T.nilable(String),
|
|
866
|
+
start_time: T.nilable(Google::Protobuf::Timestamp),
|
|
867
|
+
close_time: T.nilable(Google::Protobuf::Timestamp),
|
|
868
|
+
run_id: T.nilable(String),
|
|
869
|
+
total_execution_count: T.nilable(Integer),
|
|
870
|
+
processed_execution_count: T.nilable(Integer),
|
|
871
|
+
estimated_completion_time: T.nilable(Google::Protobuf::Timestamp)
|
|
872
|
+
).void
|
|
873
|
+
end
|
|
874
|
+
def initialize(
|
|
875
|
+
state: :NAMESPACE_RESTORE_STATE_UNSPECIFIED,
|
|
876
|
+
host_cluster: "",
|
|
877
|
+
start_time: nil,
|
|
878
|
+
close_time: nil,
|
|
879
|
+
run_id: "",
|
|
880
|
+
total_execution_count: 0,
|
|
881
|
+
processed_execution_count: 0,
|
|
882
|
+
estimated_completion_time: nil
|
|
883
|
+
)
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
sig { returns(T.any(Symbol, Integer)) }
|
|
887
|
+
def state
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
sig { params(value: T.any(Symbol, String, Integer)).void }
|
|
891
|
+
def state=(value)
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
sig { void }
|
|
895
|
+
def clear_state
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
# Cluster that runs the restore job.
|
|
899
|
+
sig { returns(String) }
|
|
900
|
+
def host_cluster
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
# Cluster that runs the restore job.
|
|
904
|
+
sig { params(value: String).void }
|
|
905
|
+
def host_cluster=(value)
|
|
906
|
+
end
|
|
907
|
+
|
|
908
|
+
# Cluster that runs the restore job.
|
|
909
|
+
sig { void }
|
|
910
|
+
def clear_host_cluster
|
|
911
|
+
end
|
|
912
|
+
|
|
913
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
914
|
+
def start_time
|
|
915
|
+
end
|
|
916
|
+
|
|
917
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
918
|
+
def start_time=(value)
|
|
919
|
+
end
|
|
920
|
+
|
|
921
|
+
sig { void }
|
|
922
|
+
def clear_start_time
|
|
923
|
+
end
|
|
924
|
+
|
|
925
|
+
# Unset while the restore is running.
|
|
926
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
927
|
+
def close_time
|
|
928
|
+
end
|
|
929
|
+
|
|
930
|
+
# Unset while the restore is running.
|
|
931
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
932
|
+
def close_time=(value)
|
|
933
|
+
end
|
|
934
|
+
|
|
935
|
+
# Unset while the restore is running.
|
|
936
|
+
sig { void }
|
|
937
|
+
def clear_close_time
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
# Run ID of the restore job.
|
|
941
|
+
sig { returns(String) }
|
|
942
|
+
def run_id
|
|
943
|
+
end
|
|
944
|
+
|
|
945
|
+
# Run ID of the restore job.
|
|
946
|
+
sig { params(value: String).void }
|
|
947
|
+
def run_id=(value)
|
|
948
|
+
end
|
|
949
|
+
|
|
950
|
+
# Run ID of the restore job.
|
|
951
|
+
sig { void }
|
|
952
|
+
def clear_run_id
|
|
953
|
+
end
|
|
954
|
+
|
|
955
|
+
# Estimated when the refresh starts.
|
|
956
|
+
sig { returns(Integer) }
|
|
957
|
+
def total_execution_count
|
|
958
|
+
end
|
|
959
|
+
|
|
960
|
+
# Estimated when the refresh starts.
|
|
961
|
+
sig { params(value: Integer).void }
|
|
962
|
+
def total_execution_count=(value)
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
# Estimated when the refresh starts.
|
|
966
|
+
sig { void }
|
|
967
|
+
def clear_total_execution_count
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
# Executions processed on every cluster.
|
|
971
|
+
sig { returns(Integer) }
|
|
972
|
+
def processed_execution_count
|
|
973
|
+
end
|
|
974
|
+
|
|
975
|
+
# Executions processed on every cluster.
|
|
976
|
+
sig { params(value: Integer).void }
|
|
977
|
+
def processed_execution_count=(value)
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
# Executions processed on every cluster.
|
|
981
|
+
sig { void }
|
|
982
|
+
def clear_processed_execution_count
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
|
|
986
|
+
def estimated_completion_time
|
|
987
|
+
end
|
|
988
|
+
|
|
989
|
+
sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
|
|
990
|
+
def estimated_completion_time=(value)
|
|
991
|
+
end
|
|
992
|
+
|
|
993
|
+
sig { void }
|
|
994
|
+
def clear_estimated_completion_time
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
sig { params(field: String).returns(T.untyped) }
|
|
998
|
+
def [](field)
|
|
999
|
+
end
|
|
1000
|
+
|
|
1001
|
+
sig { params(field: String, value: T.untyped).void }
|
|
1002
|
+
def []=(field, value)
|
|
1003
|
+
end
|
|
1004
|
+
|
|
1005
|
+
sig { returns(T::Hash[Symbol, T.untyped]) }
|
|
1006
|
+
def to_h
|
|
1007
|
+
end
|
|
1008
|
+
|
|
1009
|
+
sig { params(str: String).returns(Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreResponse) }
|
|
1010
|
+
def self.decode(str)
|
|
1011
|
+
end
|
|
1012
|
+
|
|
1013
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreResponse).returns(String) }
|
|
1014
|
+
def self.encode(msg)
|
|
1015
|
+
end
|
|
1016
|
+
|
|
1017
|
+
sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreResponse) }
|
|
1018
|
+
def self.decode_json(str, **kw)
|
|
1019
|
+
end
|
|
1020
|
+
|
|
1021
|
+
sig { params(msg: Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreResponse, kw: T.untyped).returns(String) }
|
|
1022
|
+
def self.encode_json(msg, **kw)
|
|
1023
|
+
end
|
|
1024
|
+
|
|
1025
|
+
sig { returns(::Google::Protobuf::Descriptor) }
|
|
1026
|
+
def self.descriptor
|
|
1027
|
+
end
|
|
1028
|
+
end
|
|
1029
|
+
|
|
550
1030
|
class Temporalio::Api::OperatorService::V1::AddOrUpdateRemoteClusterRequest
|
|
551
1031
|
include ::Google::Protobuf::MessageExts
|
|
552
1032
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -59,6 +59,38 @@ module Temporalio::Api::OperatorService::V1::OperatorService
|
|
|
59
59
|
def delete_namespace(request)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
+
# SoftDeleteNamespace moves a namespace to NAMESPACE_STATE_SOFT_DELETED on every cluster in its
|
|
63
|
+
# replication config. Executions stop making progress, but no data is removed. A running restore
|
|
64
|
+
# is marked failed. Idempotent.
|
|
65
|
+
sig do
|
|
66
|
+
params(
|
|
67
|
+
request: Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceRequest
|
|
68
|
+
).returns(Temporalio::Api::OperatorService::V1::SoftDeleteNamespaceResponse)
|
|
69
|
+
end
|
|
70
|
+
def soft_delete_namespace(request)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# RestoreNamespace moves a soft-deleted namespace back to NAMESPACE_STATE_REGISTERED on every
|
|
74
|
+
# cluster in its replication config, then starts a job that refreshes every execution so they
|
|
75
|
+
# resume. Returns UNAVAILABLE until every cluster has the new state; retry until it succeeds.
|
|
76
|
+
# Idempotent.
|
|
77
|
+
sig do
|
|
78
|
+
params(
|
|
79
|
+
request: Temporalio::Api::OperatorService::V1::RestoreNamespaceRequest
|
|
80
|
+
).returns(Temporalio::Api::OperatorService::V1::RestoreNamespaceResponse)
|
|
81
|
+
end
|
|
82
|
+
def restore_namespace(request)
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# DescribeNamespaceRestore reports the state and progress of the namespace's most recent restore.
|
|
86
|
+
sig do
|
|
87
|
+
params(
|
|
88
|
+
request: Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreRequest
|
|
89
|
+
).returns(Temporalio::Api::OperatorService::V1::DescribeNamespaceRestoreResponse)
|
|
90
|
+
end
|
|
91
|
+
def describe_namespace_restore(request)
|
|
92
|
+
end
|
|
93
|
+
|
|
62
94
|
# AddOrUpdateRemoteCluster adds or updates remote cluster.
|
|
63
95
|
sig do
|
|
64
96
|
params(
|