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.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +33 -11
  3. data/Cargo.toml +1 -0
  4. data/README.md +168 -11
  5. data/ext/Cargo.toml +3 -3
  6. data/lib/temporalio/api/cloud/account/v1/message.rb +2 -1
  7. data/lib/temporalio/api/cloud/cloudservice/v1/request_response.rb +43 -1
  8. data/lib/temporalio/api/cloud/cloudservice/v1/service.rb +1 -1
  9. data/lib/temporalio/api/cloud/connectivityrule/v1/message.rb +1 -1
  10. data/lib/temporalio/api/cloud/identity/v1/message.rb +8 -1
  11. data/lib/temporalio/api/cloud/namespace/v1/message.rb +8 -1
  12. data/lib/temporalio/api/cloud/nexus/v1/message.rb +1 -1
  13. data/lib/temporalio/api/cloud/project/v1/message.rb +28 -0
  14. data/lib/temporalio/api/cloud/region/v1/message.rb +1 -1
  15. data/lib/temporalio/api/cloud/sink/v1/message.rb +2 -1
  16. data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
  17. data/lib/temporalio/api/enums/v1/namespace.rb +2 -1
  18. data/lib/temporalio/api/operatorservice/v1/request_response.rb +9 -1
  19. data/lib/temporalio/api/operatorservice/v1/service.rb +1 -1
  20. data/lib/temporalio/api/payload_visitor.rb +66 -0
  21. data/lib/temporalio/api/taskqueue/v1/message.rb +3 -1
  22. data/lib/temporalio/api/workflowservice/v1/request_response.rb +2 -1
  23. data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
  24. data/lib/temporalio/client/connection/cloud_service.rb +285 -0
  25. data/lib/temporalio/client/connection/operator_service.rb +45 -0
  26. data/lib/temporalio/client/schedule.rb +56 -8
  27. data/lib/temporalio/contrib/aws/s3_driver/aws_sdk_s3_storage_driver_client.rb +0 -2
  28. data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver.rb +3 -5
  29. data/lib/temporalio/contrib/aws/s3_driver/s3_storage_driver_client.rb +0 -2
  30. data/lib/temporalio/contrib/aws/s3_driver.rb +0 -2
  31. data/lib/temporalio/converters/data_converter.rb +52 -1
  32. data/lib/temporalio/converters/external_storage.rb +6 -12
  33. data/lib/temporalio/converters/external_storage_concurrency.rb +4 -2
  34. data/lib/temporalio/converters/storage_driver.rb +3 -4
  35. data/lib/temporalio/converters/storage_driver_activity_info.rb +0 -2
  36. data/lib/temporalio/converters/storage_driver_claim.rb +0 -2
  37. data/lib/temporalio/converters/storage_driver_limiter.rb +16 -0
  38. data/lib/temporalio/converters/storage_driver_retrieve_context.rb +7 -6
  39. data/lib/temporalio/converters/storage_driver_select_context.rb +11 -5
  40. data/lib/temporalio/converters/storage_driver_store_context.rb +11 -7
  41. data/lib/temporalio/converters/storage_driver_workflow_info.rb +0 -2
  42. data/lib/temporalio/error.rb +10 -3
  43. data/lib/temporalio/internal/bridge/worker.rb +1 -0
  44. data/lib/temporalio/internal/client/described_schedule_action.rb +41 -0
  45. data/lib/temporalio/internal/client/implementation.rb +92 -48
  46. data/lib/temporalio/internal/external_storage_references.rb +5 -4
  47. data/lib/temporalio/internal/external_storage_runner.rb +177 -0
  48. data/lib/temporalio/internal/storage_operation_metrics.rb +76 -0
  49. data/lib/temporalio/internal/worker/activity_worker.rb +60 -24
  50. data/lib/temporalio/internal/worker/workflow_worker.rb +211 -15
  51. data/lib/temporalio/version.rb +1 -1
  52. data/lib/temporalio/worker/workflow_replayer.rb +5 -3
  53. data/lib/temporalio/worker.rb +4 -2
  54. data/rbi/temporalio/api/cloud/account/v1/message.rbi +84 -2
  55. data/rbi/temporalio/api/cloud/cloudservice/v1/request_response.rbi +5006 -1157
  56. data/rbi/temporalio/api/cloud/cloudservice/v1/service_services.rbi +171 -0
  57. data/rbi/temporalio/api/cloud/connectivityrule/v1/message.rbi +71 -16
  58. data/rbi/temporalio/api/cloud/identity/v1/message.rbi +789 -23
  59. data/rbi/temporalio/api/cloud/namespace/v1/message.rbi +765 -15
  60. data/rbi/temporalio/api/cloud/nexus/v1/message.rbi +19 -2
  61. data/rbi/temporalio/api/cloud/project/v1/message.rbi +334 -0
  62. data/rbi/temporalio/api/cloud/region/v1/message.rbi +1 -0
  63. data/rbi/temporalio/api/cloud/sink/v1/message.rbi +147 -0
  64. data/rbi/temporalio/api/common/v1/message.rbi +6 -0
  65. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +2 -0
  66. data/rbi/temporalio/api/enums/v1/namespace.rbi +20 -0
  67. data/rbi/temporalio/api/history/v1/message.rbi +40 -18
  68. data/rbi/temporalio/api/operatorservice/v1/request_response.rbi +480 -0
  69. data/rbi/temporalio/api/operatorservice/v1/service_services.rbi +32 -0
  70. data/rbi/temporalio/api/payload_visitor.rbi +33 -0
  71. data/rbi/temporalio/api/schedule/v1/message.rbi +12 -6
  72. data/rbi/temporalio/api/taskqueue/v1/message.rbi +179 -13
  73. data/rbi/temporalio/api/worker/v1/message.rbi +6 -6
  74. data/rbi/temporalio/api/workflow/v1/message.rbi +12 -6
  75. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +140 -41
  76. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +3 -0
  77. data/rbi/temporalio/client/connection/cloud_service.rbi +57 -0
  78. data/rbi/temporalio/client/connection/operator_service.rbi +9 -0
  79. data/rbi/temporalio/converters/data_converter.rbi +43 -2
  80. data/rbi/temporalio/converters/external_storage.rbi +2 -7
  81. data/rbi/temporalio/converters/storage_driver_limiter.rbi +4 -0
  82. data/rbi/temporalio/converters/storage_driver_retrieve_context.rbi +1 -1
  83. data/rbi/temporalio/converters/storage_driver_select_context.rbi +6 -2
  84. data/rbi/temporalio/converters/storage_driver_store_context.rbi +6 -2
  85. data/rbi/temporalio/error.rbi +3 -1
  86. data/rbi/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbi +6 -0
  87. data/rbi/temporalio/internal/bridge/worker.rbi +4 -2
  88. data/rbi/temporalio/internal/client/described_schedule_action.rbi +22 -0
  89. data/rbi/temporalio/internal/client/implementation.rbi +30 -0
  90. data/rbi/temporalio/internal/external_storage_runner.rbi +36 -0
  91. data/rbi/temporalio/internal/storage_operation_metrics.rbi +27 -0
  92. data/rbi/temporalio/internal/worker/activity_worker.rbi +24 -4
  93. data/rbi/temporalio/internal/worker/workflow_worker.rbi +61 -1
  94. data/rbi/temporalio/workflow.rbi +0 -12
  95. data/sig/temporalio/api/cloud/account/v1/message.rbs +30 -0
  96. data/sig/temporalio/api/cloud/cloudservice/v1/request_response.rbs +2122 -601
  97. data/sig/temporalio/api/cloud/connectivityrule/v1/message.rbs +29 -4
  98. data/sig/temporalio/api/cloud/identity/v1/message.rbs +342 -1
  99. data/sig/temporalio/api/cloud/namespace/v1/message.rbs +341 -2
  100. data/sig/temporalio/api/cloud/nexus/v1/message.rbs +9 -0
  101. data/sig/temporalio/api/cloud/project/v1/message.rbs +164 -0
  102. data/sig/temporalio/api/cloud/region/v1/message.rbs +5 -3
  103. data/sig/temporalio/api/cloud/sink/v1/message.rbs +66 -0
  104. data/sig/temporalio/api/common/v1/message.rbs +6 -0
  105. data/sig/temporalio/api/enums/v1/event_type.rbs +1 -0
  106. data/sig/temporalio/api/enums/v1/failed_cause.rbs +9 -3
  107. data/sig/temporalio/api/enums/v1/namespace.rbs +30 -2
  108. data/sig/temporalio/api/enums/v1/time_skipping.rbs +1 -0
  109. data/sig/temporalio/api/history/v1/message.rbs +8 -0
  110. data/sig/temporalio/api/operatorservice/v1/request_response.rbs +188 -0
  111. data/sig/temporalio/api/payload_visitor.rbs +11 -0
  112. data/sig/temporalio/api/schedule/v1/message.rbs +2 -0
  113. data/sig/temporalio/api/taskqueue/v1/message.rbs +66 -5
  114. data/sig/temporalio/api/worker/v1/message.rbs +2 -2
  115. data/sig/temporalio/api/workflow/v1/message.rbs +2 -0
  116. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +53 -9
  117. data/sig/temporalio/client/connection/cloud_service.rbs +76 -0
  118. data/sig/temporalio/client/connection/operator_service.rbs +12 -0
  119. data/sig/temporalio/client/schedule.rbs +24 -3
  120. data/sig/temporalio/contrib/aws/s3_driver/s3_storage_driver.rbs +2 -1
  121. data/sig/temporalio/contrib/open_telemetry.rbs +4 -4
  122. data/sig/temporalio/converters/data_converter.rbs +19 -1
  123. data/sig/temporalio/converters/external_storage.rbs +1 -3
  124. data/sig/temporalio/converters/storage_driver_limiter.rbs +5 -0
  125. data/sig/temporalio/converters/storage_driver_retrieve_context.rbs +1 -1
  126. data/sig/temporalio/converters/storage_driver_select_context.rbs +3 -1
  127. data/sig/temporalio/converters/storage_driver_store_context.rbs +3 -1
  128. data/sig/temporalio/error.rbs +4 -1
  129. data/sig/temporalio/internal/bridge/api/workflow_activation/workflow_activation.rbs +4 -0
  130. data/sig/temporalio/internal/bridge/worker.rbs +2 -0
  131. data/sig/temporalio/internal/client/described_schedule_action.rbs +18 -0
  132. data/sig/temporalio/internal/client/implementation.rbs +22 -0
  133. data/sig/temporalio/internal/external_storage_runner.rbs +32 -0
  134. data/sig/temporalio/internal/storage_operation_metrics.rbs +25 -0
  135. data/sig/temporalio/internal/worker/activity_worker.rbs +11 -2
  136. data/sig/temporalio/internal/worker/workflow_worker.rbs +32 -1
  137. metadata +13 -2
  138. data/sig/open_telemetry.rbs +0 -47
@@ -20,17 +20,19 @@ module Temporalio
20
20
 
21
21
  CLOUD_PROVIDER_GCP: 2
22
22
 
23
+ CLOUD_PROVIDER_AZURE: 3
24
+
23
25
  def self.lookup: (::Integer number) -> ::Symbol
24
26
 
25
27
 
26
28
  def self.resolve: (::Symbol name) -> ::Integer
27
29
 
28
30
 
29
- type names = :CLOUD_PROVIDER_UNSPECIFIED | :CLOUD_PROVIDER_AWS | :CLOUD_PROVIDER_GCP
31
+ type names = :CLOUD_PROVIDER_UNSPECIFIED | :CLOUD_PROVIDER_AWS | :CLOUD_PROVIDER_GCP | :CLOUD_PROVIDER_AZURE
30
32
 
31
- type strings = "CLOUD_PROVIDER_UNSPECIFIED" | "CLOUD_PROVIDER_AWS" | "CLOUD_PROVIDER_GCP"
33
+ type strings = "CLOUD_PROVIDER_UNSPECIFIED" | "CLOUD_PROVIDER_AWS" | "CLOUD_PROVIDER_GCP" | "CLOUD_PROVIDER_AZURE"
32
34
 
33
- type numbers = 0 | 1 | 2
35
+ type numbers = 0 | 1 | 2 | 3
34
36
  end
35
37
 
36
38
  # The id of the temporal cloud region.
@@ -115,6 +115,72 @@ module Temporalio
115
115
  | ("region" name, (::String | ::Symbol) value) -> void
116
116
  end
117
117
 
118
+ class AzureBlobSpec < ::Google::Protobuf::AbstractMessage
119
+
120
+ # The customer's Azure tenant ID where the storage account exists and where Temporal's app registration is consented/granted access.
121
+ attr_reader tenant_id(): ::String
122
+ attr_writer tenant_id(): ::String | ::Symbol
123
+ def clear_tenant_id: () -> void
124
+
125
+ # The name of the destination Azure storage account where Temporal will send data.
126
+ attr_reader storage_account(): ::String
127
+ attr_writer storage_account(): ::String | ::Symbol
128
+ def clear_storage_account: () -> void
129
+
130
+ # The name of the destination Azure Blob container where Temporal will send data.
131
+ attr_reader container_name(): ::String
132
+ attr_writer container_name(): ::String | ::Symbol
133
+ def clear_container_name: () -> void
134
+
135
+ # The region where the Azure storage account is located.
136
+ attr_reader region(): ::String
137
+ attr_writer region(): ::String | ::Symbol
138
+ def clear_region: () -> void
139
+
140
+ # The Azure subscription ID that contains the storage account.
141
+ attr_reader subscription_id(): ::String
142
+ attr_writer subscription_id(): ::String | ::Symbol
143
+ def clear_subscription_id: () -> void
144
+
145
+ # The Azure resource group that contains the storage account.
146
+ attr_reader resource_group(): ::String
147
+ attr_writer resource_group(): ::String | ::Symbol
148
+ def clear_resource_group: () -> void
149
+
150
+ type init_map = {
151
+ tenant_id: (::String | ::Symbol)?,
152
+ "tenant_id" => (::String | ::Symbol)?,
153
+ storage_account: (::String | ::Symbol)?,
154
+ "storage_account" => (::String | ::Symbol)?,
155
+ container_name: (::String | ::Symbol)?,
156
+ "container_name" => (::String | ::Symbol)?,
157
+ region: (::String | ::Symbol)?,
158
+ "region" => (::String | ::Symbol)?,
159
+ subscription_id: (::String | ::Symbol)?,
160
+ "subscription_id" => (::String | ::Symbol)?,
161
+ resource_group: (::String | ::Symbol)?,
162
+ "resource_group" => (::String | ::Symbol)?,
163
+ }
164
+
165
+ def initialize: (?init_map initial_value) -> void
166
+
167
+ def []:
168
+ ("tenant_id" name) -> ::String
169
+ | ("storage_account" name) -> ::String
170
+ | ("container_name" name) -> ::String
171
+ | ("region" name) -> ::String
172
+ | ("subscription_id" name) -> ::String
173
+ | ("resource_group" name) -> ::String
174
+
175
+ def []=:
176
+ ("tenant_id" name, (::String | ::Symbol) value) -> void
177
+ | ("storage_account" name, (::String | ::Symbol) value) -> void
178
+ | ("container_name" name, (::String | ::Symbol) value) -> void
179
+ | ("region" name, (::String | ::Symbol) value) -> void
180
+ | ("subscription_id" name, (::String | ::Symbol) value) -> void
181
+ | ("resource_group" name, (::String | ::Symbol) value) -> void
182
+ end
183
+
118
184
  class KinesisSpec < ::Google::Protobuf::AbstractMessage
119
185
 
120
186
  # The role Temporal Cloud assumes when writing records to Kinesis
@@ -1345,6 +1345,7 @@ module Temporalio
1345
1345
  # but a parent's fast_forward won't affect its child's execution. A flag is provided to disable propagation of the
1346
1346
  # "enabled" flag to child workflows; regardless of that flag, a child workflow inherits the virtual time from the
1347
1347
  # parent execution as its start time.
1348
+ # Experimental. Might change in the future.
1348
1349
  class TimeSkippingConfig < ::Google::Protobuf::AbstractMessage
1349
1350
 
1350
1351
  # Enables or disables time skipping for this workflow execution.
@@ -1401,6 +1402,8 @@ module Temporalio
1401
1402
  | ("max_session_skip_count" name, (::Integer | ::Float) value) -> void
1402
1403
  end
1403
1404
 
1405
+ # Controls a time-skipping fast-forward for an execution.
1406
+ # Experimental. Might change in the future.
1404
1407
  class FastForwardConfig < ::Google::Protobuf::AbstractMessage
1405
1408
 
1406
1409
  # A client-supplied ID, required field, set alongside `duration`. It is used to poll for
@@ -1443,6 +1446,7 @@ module Temporalio
1443
1446
 
1444
1447
  # The time-skipping state that needs to be propagated from one execution to another, or through a chain of runs
1445
1448
  # within the same execution.
1449
+ # Experimental. Might change in the future.
1446
1450
  class TimeSkippingStatePropagation < ::Google::Protobuf::AbstractMessage
1447
1451
 
1448
1452
  # The time skipped by the previous run. It is propagated both to executions started by the
@@ -1486,6 +1490,7 @@ module Temporalio
1486
1490
  end
1487
1491
 
1488
1492
  # Describes the current time-skipping state of a workflow execution.
1493
+ # Experimental. Might change in the future.
1489
1494
  class TimeSkippingInfo < ::Google::Protobuf::AbstractMessage
1490
1495
 
1491
1496
  # Current virtual time of the execution. If the execution hasn't skipped
@@ -1541,6 +1546,7 @@ module Temporalio
1541
1546
  end
1542
1547
 
1543
1548
  # TimeSkippingFastForwardInfo describes the current time-skipping fast-forward on an execution.
1549
+ # Experimental. Might change in the future.
1544
1550
  class TimeSkippingFastForwardInfo < ::Google::Protobuf::AbstractMessage
1545
1551
 
1546
1552
  # The client-supplied `fast_forward` duration.
@@ -234,6 +234,7 @@ module Temporalio
234
234
  # An event that indicates that the previously paused workflow execution has been unpaused.
235
235
  EVENT_TYPE_WORKFLOW_EXECUTION_UNPAUSED: 59
236
236
 
237
+ # Experimental.
237
238
  # An event that indicates time skipping advanced time or was disabled automatically after a bound was reached.
238
239
  EVENT_TYPE_WORKFLOW_EXECUTION_TIME_SKIPPING_TRANSITIONED: 60
239
240
 
@@ -281,17 +281,23 @@ module Temporalio
281
281
  # Namespace exceeds bandwidth limit.
282
282
  RESOURCE_EXHAUSTED_CAUSE_BANDWIDTH_LIMIT: 11
283
283
 
284
+ # Caller exceeds Nexus requests per second limit.
285
+ RESOURCE_EXHAUSTED_CAUSE_CALLER_RPS_LIMIT: 12
286
+
287
+ # Persistence rate limit exceeded on a single shard.
288
+ RESOURCE_EXHAUSTED_CAUSE_SHARD_PERSISTENCE_LIMIT: 13
289
+
284
290
  def self.lookup: (::Integer number) -> ::Symbol
285
291
 
286
292
 
287
293
  def self.resolve: (::Symbol name) -> ::Integer
288
294
 
289
295
 
290
- type names = :RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED | :RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED | :RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW | :RESOURCE_EXHAUSTED_CAUSE_APS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_CIRCUIT_BREAKER_OPEN | :RESOURCE_EXHAUSTED_CAUSE_OPS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_WORKER_DEPLOYMENT_LIMITS | :RESOURCE_EXHAUSTED_CAUSE_BANDWIDTH_LIMIT
296
+ type names = :RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED | :RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED | :RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW | :RESOURCE_EXHAUSTED_CAUSE_APS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_CIRCUIT_BREAKER_OPEN | :RESOURCE_EXHAUSTED_CAUSE_OPS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_WORKER_DEPLOYMENT_LIMITS | :RESOURCE_EXHAUSTED_CAUSE_BANDWIDTH_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_CALLER_RPS_LIMIT | :RESOURCE_EXHAUSTED_CAUSE_SHARD_PERSISTENCE_LIMIT
291
297
 
292
- type strings = "RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED" | "RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED" | "RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW" | "RESOURCE_EXHAUSTED_CAUSE_APS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_CIRCUIT_BREAKER_OPEN" | "RESOURCE_EXHAUSTED_CAUSE_OPS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_WORKER_DEPLOYMENT_LIMITS" | "RESOURCE_EXHAUSTED_CAUSE_BANDWIDTH_LIMIT"
298
+ type strings = "RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED" | "RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED" | "RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW" | "RESOURCE_EXHAUSTED_CAUSE_APS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_CIRCUIT_BREAKER_OPEN" | "RESOURCE_EXHAUSTED_CAUSE_OPS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_WORKER_DEPLOYMENT_LIMITS" | "RESOURCE_EXHAUSTED_CAUSE_BANDWIDTH_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_CALLER_RPS_LIMIT" | "RESOURCE_EXHAUSTED_CAUSE_SHARD_PERSISTENCE_LIMIT"
293
299
 
294
- type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11
300
+ type numbers = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13
295
301
  end
296
302
 
297
303
  module ResourceExhaustedScope
@@ -19,15 +19,43 @@ module Temporalio
19
19
 
20
20
  NAMESPACE_STATE_DELETED: 3
21
21
 
22
+ # Set by OperatorService.SoftDeleteNamespace. Executions make no progress, but no data is
23
+ # removed until the namespace is restored or deleted.
24
+ NAMESPACE_STATE_SOFT_DELETED: 4
25
+
26
+ def self.lookup: (::Integer number) -> ::Symbol
27
+
28
+
29
+ def self.resolve: (::Symbol name) -> ::Integer
30
+
31
+
32
+ type names = :NAMESPACE_STATE_UNSPECIFIED | :NAMESPACE_STATE_REGISTERED | :NAMESPACE_STATE_DEPRECATED | :NAMESPACE_STATE_DELETED | :NAMESPACE_STATE_SOFT_DELETED
33
+
34
+ type strings = "NAMESPACE_STATE_UNSPECIFIED" | "NAMESPACE_STATE_REGISTERED" | "NAMESPACE_STATE_DEPRECATED" | "NAMESPACE_STATE_DELETED" | "NAMESPACE_STATE_SOFT_DELETED"
35
+
36
+ type numbers = 0 | 1 | 2 | 3 | 4
37
+ end
38
+
39
+ # State of a restore started by OperatorService.RestoreNamespace.
40
+ module NamespaceRestoreState
41
+
42
+ NAMESPACE_RESTORE_STATE_UNSPECIFIED: 0
43
+
44
+ NAMESPACE_RESTORE_STATE_RUNNING: 1
45
+
46
+ NAMESPACE_RESTORE_STATE_COMPLETED: 2
47
+
48
+ NAMESPACE_RESTORE_STATE_FAILED: 3
49
+
22
50
  def self.lookup: (::Integer number) -> ::Symbol
23
51
 
24
52
 
25
53
  def self.resolve: (::Symbol name) -> ::Integer
26
54
 
27
55
 
28
- type names = :NAMESPACE_STATE_UNSPECIFIED | :NAMESPACE_STATE_REGISTERED | :NAMESPACE_STATE_DEPRECATED | :NAMESPACE_STATE_DELETED
56
+ type names = :NAMESPACE_RESTORE_STATE_UNSPECIFIED | :NAMESPACE_RESTORE_STATE_RUNNING | :NAMESPACE_RESTORE_STATE_COMPLETED | :NAMESPACE_RESTORE_STATE_FAILED
29
57
 
30
- type strings = "NAMESPACE_STATE_UNSPECIFIED" | "NAMESPACE_STATE_REGISTERED" | "NAMESPACE_STATE_DEPRECATED" | "NAMESPACE_STATE_DELETED"
58
+ type strings = "NAMESPACE_RESTORE_STATE_UNSPECIFIED" | "NAMESPACE_RESTORE_STATE_RUNNING" | "NAMESPACE_RESTORE_STATE_COMPLETED" | "NAMESPACE_RESTORE_STATE_FAILED"
31
59
 
32
60
  type numbers = 0 | 1 | 2 | 3
33
61
  end
@@ -14,6 +14,7 @@ module Temporalio
14
14
  # FAST_FORWARD_POLLING_RESULT_POLL_TIMEOUT and FAST_FORWARD_POLLING_RESULT_FAST_FORWARD_COMPLETED
15
15
  # are the normal poll outcomes; FAST_FORWARD_POLLING_RESULT_FAST_FORWARD_FAILED means the
16
16
  # fast-forward can no longer complete.
17
+ # Experimental. Might change in the future.
17
18
  module FastForwardPollingResult
18
19
 
19
20
  # Never returned; guards against an unset result.
@@ -284,6 +284,7 @@ module Temporalio
284
284
  def has_declined_target_version_upgrade?: () -> bool
285
285
  def clear_declined_target_version_upgrade: () -> void
286
286
 
287
+ # Experimental.
287
288
  # Initial time-skipping configuration for this workflow execution, recorded at start time.
288
289
  # This may have been set explicitly via the start workflow request, or propagated from a
289
290
  # parent/previous execution.
@@ -293,6 +294,7 @@ module Temporalio
293
294
  def has_time_skipping_config?: () -> bool
294
295
  def clear_time_skipping_config: () -> void
295
296
 
297
+ # Experimental.
296
298
  # The time-skipping state propagated from a previous run of this workflow. This can be nil
297
299
  # if no time skipping has occurred or there is no previous run.
298
300
  attr_accessor time_skipping_state_propagation(): ::Temporalio::Api::Common::V1::TimeSkippingStatePropagation?
@@ -2702,11 +2704,13 @@ module Temporalio
2702
2704
  def has_priority?: () -> bool
2703
2705
  def clear_priority: () -> void
2704
2706
 
2707
+ # Experimental.
2705
2708
  # The propagated time-skipping configuration for the child workflow.
2706
2709
  attr_accessor time_skipping_config(): ::Temporalio::Api::Common::V1::TimeSkippingConfig?
2707
2710
  def has_time_skipping_config?: () -> bool
2708
2711
  def clear_time_skipping_config: () -> void
2709
2712
 
2713
+ # Experimental.
2710
2714
  # The time-skipping state propagated from the parent workflow. This can be nil if no time skipping
2711
2715
  # has occurred or there is no previous run.
2712
2716
  attr_accessor time_skipping_state_propagation(): ::Temporalio::Api::Common::V1::TimeSkippingStatePropagation?
@@ -3400,11 +3404,13 @@ module Temporalio
3400
3404
  def has_priority?: () -> bool
3401
3405
  def clear_priority: () -> void
3402
3406
 
3407
+ # Experimental.
3403
3408
  # TimeSkippingConfig override upserted in this event. Represents the full config.
3404
3409
  attr_accessor time_skipping_config(): ::Temporalio::Api::Common::V1::TimeSkippingConfig?
3405
3410
  def has_time_skipping_config?: () -> bool
3406
3411
  def clear_time_skipping_config: () -> void
3407
3412
 
3413
+ # Experimental.
3408
3414
  # Indicates the time skipping config was updated by the recent call to update
3409
3415
  # workflow execution options.
3410
3416
  attr_accessor time_skipping_config_updated(): bool
@@ -3816,6 +3822,7 @@ module Temporalio
3816
3822
  # Attributes for an event indicating that time skipping state changed for a workflow execution:
3817
3823
  # either time was advanced, or time skipping was stopped automatically due to the fast_forward completing.
3818
3824
  # The worker_may_ignore field in HistoryEvent should always be set true for this event.
3825
+ # Experimental. Might change in the future.
3819
3826
  class WorkflowExecutionTimeSkippingTransitionedEventAttributes < ::Google::Protobuf::AbstractMessage
3820
3827
 
3821
3828
  # The virtual time point that time skipping advanced to.
@@ -4626,6 +4633,7 @@ module Temporalio
4626
4633
  def has_workflow_execution_unpaused_event_attributes?: () -> bool
4627
4634
  def clear_workflow_execution_unpaused_event_attributes: () -> void
4628
4635
 
4636
+ # Experimental.
4629
4637
  attr_accessor workflow_execution_time_skipping_transitioned_event_attributes(): ::Temporalio::Api::History::V1::WorkflowExecutionTimeSkippingTransitionedEventAttributes?
4630
4638
  def has_workflow_execution_time_skipping_transitioned_event_attributes?: () -> bool
4631
4639
  def clear_workflow_execution_time_skipping_transitioned_event_attributes: () -> void
@@ -198,6 +198,194 @@ module Temporalio
198
198
  ("deleted_namespace" name, (::String | ::Symbol) value) -> void
199
199
  end
200
200
 
201
+ class SoftDeleteNamespaceRequest < ::Google::Protobuf::AbstractMessage
202
+
203
+ # Only one of namespace or namespace_id must be specified to identify namespace.
204
+ attr_reader namespace(): ::String
205
+ attr_writer namespace(): ::String | ::Symbol
206
+ def clear_namespace: () -> void
207
+
208
+ attr_reader namespace_id(): ::String
209
+ attr_writer namespace_id(): ::String | ::Symbol
210
+ def clear_namespace_id: () -> void
211
+
212
+ type init_map = {
213
+ namespace: (::String | ::Symbol)?,
214
+ "namespace" => (::String | ::Symbol)?,
215
+ namespace_id: (::String | ::Symbol)?,
216
+ "namespace_id" => (::String | ::Symbol)?,
217
+ }
218
+
219
+ def initialize: (?init_map initial_value) -> void
220
+
221
+ def []:
222
+ ("namespace" name) -> ::String
223
+ | ("namespace_id" name) -> ::String
224
+
225
+ def []=:
226
+ ("namespace" name, (::String | ::Symbol) value) -> void
227
+ | ("namespace_id" name, (::String | ::Symbol) value) -> void
228
+ end
229
+
230
+ class SoftDeleteNamespaceResponse < ::Google::Protobuf::AbstractMessage
231
+
232
+ type init_map = {
233
+ }
234
+
235
+ def initialize: (?init_map initial_value) -> void
236
+ end
237
+
238
+ class RestoreNamespaceRequest < ::Google::Protobuf::AbstractMessage
239
+
240
+ # Only one of namespace or namespace_id must be specified to identify namespace.
241
+ attr_reader namespace(): ::String
242
+ attr_writer namespace(): ::String | ::Symbol
243
+ def clear_namespace: () -> void
244
+
245
+ attr_reader namespace_id(): ::String
246
+ attr_writer namespace_id(): ::String | ::Symbol
247
+ def clear_namespace_id: () -> void
248
+
249
+ type init_map = {
250
+ namespace: (::String | ::Symbol)?,
251
+ "namespace" => (::String | ::Symbol)?,
252
+ namespace_id: (::String | ::Symbol)?,
253
+ "namespace_id" => (::String | ::Symbol)?,
254
+ }
255
+
256
+ def initialize: (?init_map initial_value) -> void
257
+
258
+ def []:
259
+ ("namespace" name) -> ::String
260
+ | ("namespace_id" name) -> ::String
261
+
262
+ def []=:
263
+ ("namespace" name, (::String | ::Symbol) value) -> void
264
+ | ("namespace_id" name, (::String | ::Symbol) value) -> void
265
+ end
266
+
267
+ class RestoreNamespaceResponse < ::Google::Protobuf::AbstractMessage
268
+
269
+ type init_map = {
270
+ }
271
+
272
+ def initialize: (?init_map initial_value) -> void
273
+ end
274
+
275
+ class DescribeNamespaceRestoreRequest < ::Google::Protobuf::AbstractMessage
276
+
277
+ # Only one of namespace or namespace_id must be specified to identify namespace.
278
+ attr_reader namespace(): ::String
279
+ attr_writer namespace(): ::String | ::Symbol
280
+ def clear_namespace: () -> void
281
+
282
+ attr_reader namespace_id(): ::String
283
+ attr_writer namespace_id(): ::String | ::Symbol
284
+ def clear_namespace_id: () -> void
285
+
286
+ type init_map = {
287
+ namespace: (::String | ::Symbol)?,
288
+ "namespace" => (::String | ::Symbol)?,
289
+ namespace_id: (::String | ::Symbol)?,
290
+ "namespace_id" => (::String | ::Symbol)?,
291
+ }
292
+
293
+ def initialize: (?init_map initial_value) -> void
294
+
295
+ def []:
296
+ ("namespace" name) -> ::String
297
+ | ("namespace_id" name) -> ::String
298
+
299
+ def []=:
300
+ ("namespace" name, (::String | ::Symbol) value) -> void
301
+ | ("namespace_id" name, (::String | ::Symbol) value) -> void
302
+ end
303
+
304
+ class DescribeNamespaceRestoreResponse < ::Google::Protobuf::AbstractMessage
305
+
306
+ attr_reader state(): ::Temporalio::Api::Enums::V1::NamespaceRestoreState::names | ::Integer
307
+ attr_writer state(): ::Temporalio::Api::Enums::V1::NamespaceRestoreState::names | ::Temporalio::Api::Enums::V1::NamespaceRestoreState::strings | ::Integer | ::Float
308
+ attr_reader state_const(): ::Integer
309
+ def clear_state: () -> void
310
+
311
+ # Cluster that runs the restore job.
312
+ attr_reader host_cluster(): ::String
313
+ attr_writer host_cluster(): ::String | ::Symbol
314
+ def clear_host_cluster: () -> void
315
+
316
+ attr_reader start_time(): ::Google::Protobuf::Timestamp?
317
+ attr_writer start_time(): (::Google::Protobuf::Timestamp | ::Time)?
318
+ def has_start_time?: () -> bool
319
+ def clear_start_time: () -> void
320
+
321
+ # Unset while the restore is running.
322
+ attr_reader close_time(): ::Google::Protobuf::Timestamp?
323
+ attr_writer close_time(): (::Google::Protobuf::Timestamp | ::Time)?
324
+ def has_close_time?: () -> bool
325
+ def clear_close_time: () -> void
326
+
327
+ # Run ID of the restore job.
328
+ attr_reader run_id(): ::String
329
+ attr_writer run_id(): ::String | ::Symbol
330
+ def clear_run_id: () -> void
331
+
332
+ # Estimated when the refresh starts.
333
+ attr_reader total_execution_count(): ::Integer
334
+ attr_writer total_execution_count(): ::Integer | ::Float
335
+ def clear_total_execution_count: () -> void
336
+
337
+ # Executions processed on every cluster.
338
+ attr_reader processed_execution_count(): ::Integer
339
+ attr_writer processed_execution_count(): ::Integer | ::Float
340
+ def clear_processed_execution_count: () -> void
341
+
342
+ attr_reader estimated_completion_time(): ::Google::Protobuf::Timestamp?
343
+ attr_writer estimated_completion_time(): (::Google::Protobuf::Timestamp | ::Time)?
344
+ def has_estimated_completion_time?: () -> bool
345
+ def clear_estimated_completion_time: () -> void
346
+
347
+ type init_map = {
348
+ state: (::Temporalio::Api::Enums::V1::NamespaceRestoreState::names | ::Temporalio::Api::Enums::V1::NamespaceRestoreState::strings | ::Integer | ::Float)?,
349
+ "state" => (::Temporalio::Api::Enums::V1::NamespaceRestoreState::names | ::Temporalio::Api::Enums::V1::NamespaceRestoreState::strings | ::Integer | ::Float)?,
350
+ host_cluster: (::String | ::Symbol)?,
351
+ "host_cluster" => (::String | ::Symbol)?,
352
+ start_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
353
+ "start_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
354
+ close_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
355
+ "close_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
356
+ run_id: (::String | ::Symbol)?,
357
+ "run_id" => (::String | ::Symbol)?,
358
+ total_execution_count: (::Integer | ::Float)?,
359
+ "total_execution_count" => (::Integer | ::Float)?,
360
+ processed_execution_count: (::Integer | ::Float)?,
361
+ "processed_execution_count" => (::Integer | ::Float)?,
362
+ estimated_completion_time: (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
363
+ "estimated_completion_time" => (::Google::Protobuf::Timestamp | ::Google::Protobuf::Timestamp)?,
364
+ }
365
+
366
+ def initialize: (?init_map initial_value) -> void
367
+
368
+ def []:
369
+ ("state" name) -> (::Temporalio::Api::Enums::V1::NamespaceRestoreState::names | ::Integer)
370
+ | ("host_cluster" name) -> ::String
371
+ | ("start_time" name) -> ::Google::Protobuf::Timestamp?
372
+ | ("close_time" name) -> ::Google::Protobuf::Timestamp?
373
+ | ("run_id" name) -> ::String
374
+ | ("total_execution_count" name) -> ::Integer
375
+ | ("processed_execution_count" name) -> ::Integer
376
+ | ("estimated_completion_time" name) -> ::Google::Protobuf::Timestamp?
377
+
378
+ def []=:
379
+ ("state" name, (::Temporalio::Api::Enums::V1::NamespaceRestoreState::names | ::Temporalio::Api::Enums::V1::NamespaceRestoreState::strings | ::Integer | ::Float) value) -> void
380
+ | ("host_cluster" name, (::String | ::Symbol) value) -> void
381
+ | ("start_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
382
+ | ("close_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
383
+ | ("run_id" name, (::String | ::Symbol) value) -> void
384
+ | ("total_execution_count" name, (::Integer | ::Float) value) -> void
385
+ | ("processed_execution_count" name, (::Integer | ::Float) value) -> void
386
+ | ("estimated_completion_time" name, ((::Google::Protobuf::Timestamp | ::Time)?) value) -> void
387
+ end
388
+
201
389
  class AddOrUpdateRemoteClusterRequest < ::Google::Protobuf::AbstractMessage
202
390
 
203
391
  # Frontend Address is a cross cluster accessible address for gRPC traffic. This field is required.
@@ -30,23 +30,27 @@ def api_activity_v1_activity_execution_info: (untyped value) -> void
30
30
  def api_cloud_cloudservice_v1_create_account_audit_log_sink_response: (untyped value) -> void
31
31
  def api_cloud_cloudservice_v1_create_api_key_response: (untyped value) -> void
32
32
  def api_cloud_cloudservice_v1_create_billing_report_response: (untyped value) -> void
33
+ def api_cloud_cloudservice_v1_create_caller_rate_limit_response: (untyped value) -> void
33
34
  def api_cloud_cloudservice_v1_create_connectivity_rule_response: (untyped value) -> void
34
35
  def api_cloud_cloudservice_v1_create_custom_role_response: (untyped value) -> void
35
36
  def api_cloud_cloudservice_v1_create_namespace_export_sink_response: (untyped value) -> void
36
37
  def api_cloud_cloudservice_v1_create_namespace_response: (untyped value) -> void
37
38
  def api_cloud_cloudservice_v1_create_nexus_endpoint_request: (untyped value) -> void
38
39
  def api_cloud_cloudservice_v1_create_nexus_endpoint_response: (untyped value) -> void
40
+ def api_cloud_cloudservice_v1_create_project_response: (untyped value) -> void
39
41
  def api_cloud_cloudservice_v1_create_service_account_response: (untyped value) -> void
40
42
  def api_cloud_cloudservice_v1_create_user_group_response: (untyped value) -> void
41
43
  def api_cloud_cloudservice_v1_create_user_response: (untyped value) -> void
42
44
  def api_cloud_cloudservice_v1_delete_account_audit_log_sink_response: (untyped value) -> void
43
45
  def api_cloud_cloudservice_v1_delete_api_key_response: (untyped value) -> void
46
+ def api_cloud_cloudservice_v1_delete_caller_rate_limit_response: (untyped value) -> void
44
47
  def api_cloud_cloudservice_v1_delete_connectivity_rule_response: (untyped value) -> void
45
48
  def api_cloud_cloudservice_v1_delete_custom_role_response: (untyped value) -> void
46
49
  def api_cloud_cloudservice_v1_delete_namespace_export_sink_response: (untyped value) -> void
47
50
  def api_cloud_cloudservice_v1_delete_namespace_region_response: (untyped value) -> void
48
51
  def api_cloud_cloudservice_v1_delete_namespace_response: (untyped value) -> void
49
52
  def api_cloud_cloudservice_v1_delete_nexus_endpoint_response: (untyped value) -> void
53
+ def api_cloud_cloudservice_v1_delete_project_response: (untyped value) -> void
50
54
  def api_cloud_cloudservice_v1_delete_service_account_response: (untyped value) -> void
51
55
  def api_cloud_cloudservice_v1_delete_user_group_response: (untyped value) -> void
52
56
  def api_cloud_cloudservice_v1_delete_user_response: (untyped value) -> void
@@ -54,20 +58,27 @@ def api_activity_v1_activity_execution_info: (untyped value) -> void
54
58
  def api_cloud_cloudservice_v1_get_async_operation_response: (untyped value) -> void
55
59
  def api_cloud_cloudservice_v1_get_nexus_endpoint_response: (untyped value) -> void
56
60
  def api_cloud_cloudservice_v1_get_nexus_endpoints_response: (untyped value) -> void
61
+ def api_cloud_cloudservice_v1_move_namespace_to_project_response: (untyped value) -> void
62
+ def api_cloud_cloudservice_v1_move_nexus_endpoint_to_project_response: (untyped value) -> void
57
63
  def api_cloud_cloudservice_v1_remove_user_group_member_response: (untyped value) -> void
58
64
  def api_cloud_cloudservice_v1_rename_custom_search_attribute_response: (untyped value) -> void
59
65
  def api_cloud_cloudservice_v1_set_service_account_namespace_access_response: (untyped value) -> void
66
+ def api_cloud_cloudservice_v1_set_service_account_project_access_response: (untyped value) -> void
60
67
  def api_cloud_cloudservice_v1_set_user_group_namespace_access_response: (untyped value) -> void
68
+ def api_cloud_cloudservice_v1_set_user_group_project_access_response: (untyped value) -> void
61
69
  def api_cloud_cloudservice_v1_set_user_namespace_access_response: (untyped value) -> void
70
+ def api_cloud_cloudservice_v1_set_user_project_access_response: (untyped value) -> void
62
71
  def api_cloud_cloudservice_v1_update_account_audit_log_sink_response: (untyped value) -> void
63
72
  def api_cloud_cloudservice_v1_update_account_response: (untyped value) -> void
64
73
  def api_cloud_cloudservice_v1_update_api_key_response: (untyped value) -> void
74
+ def api_cloud_cloudservice_v1_update_caller_rate_limit_response: (untyped value) -> void
65
75
  def api_cloud_cloudservice_v1_update_custom_role_response: (untyped value) -> void
66
76
  def api_cloud_cloudservice_v1_update_namespace_export_sink_response: (untyped value) -> void
67
77
  def api_cloud_cloudservice_v1_update_namespace_response: (untyped value) -> void
68
78
  def api_cloud_cloudservice_v1_update_namespace_tags_response: (untyped value) -> void
69
79
  def api_cloud_cloudservice_v1_update_nexus_endpoint_request: (untyped value) -> void
70
80
  def api_cloud_cloudservice_v1_update_nexus_endpoint_response: (untyped value) -> void
81
+ def api_cloud_cloudservice_v1_update_project_response: (untyped value) -> void
71
82
  def api_cloud_cloudservice_v1_update_service_account_response: (untyped value) -> void
72
83
  def api_cloud_cloudservice_v1_update_user_group_response: (untyped value) -> void
73
84
  def api_cloud_cloudservice_v1_update_user_response: (untyped value) -> void
@@ -738,6 +738,7 @@ module Temporalio
738
738
  attr_writer unpause(): ::String | ::Symbol
739
739
  def clear_unpause: () -> void
740
740
 
741
+ # Experimental.
741
742
  # If set, applies the specified time-skipping configuration to this schedule,
742
743
  # replacing any existing time-skipping configuration.
743
744
  attr_accessor time_skipping_config(): ::Temporalio::Api::Common::V1::TimeSkippingConfig?
@@ -841,6 +842,7 @@ module Temporalio
841
842
  attr_writer state_size_bytes(): ::Integer | ::Float
842
843
  def clear_state_size_bytes: () -> void
843
844
 
845
+ # Experimental.
844
846
  # Information about time skipping for this schedule.
845
847
  # If the schedule has never enabled time skipping, this will be unset.
846
848
  attr_accessor time_skipping_info(): ::Temporalio::Api::Common::V1::TimeSkippingInfo?