Skip to content

Commit b53be98

Browse files
authored
Versioning Override support (#871)
1 parent 5afb131 commit b53be98

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2332
-1897
lines changed

temporalio/api/activity/v1/message_pb2.pyi

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
11
"""
22
@generated by mypy-protobuf. Do not edit manually!
33
isort:skip_file
4-
The MIT License
5-
6-
Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
7-
8-
Permission is hereby granted, free of charge, to any person obtaining a copy
9-
of this software and associated documentation files (the "Software"), to deal
10-
in the Software without restriction, including without limitation the rights
11-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12-
copies of the Software, and to permit persons to whom the Software is
13-
furnished to do so, subject to the following conditions:
14-
15-
The above copyright notice and this permission notice shall be included in
16-
all copies or substantial portions of the Software.
17-
18-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24-
THE SOFTWARE.
254
"""
265

276
import builtins

temporalio/api/batch/v1/message_pb2.py

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

temporalio/api/batch/v1/message_pb2.pyi

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,16 @@
11
"""
22
@generated by mypy-protobuf. Do not edit manually!
33
isort:skip_file
4-
The MIT License
5-
6-
Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
7-
8-
Permission is hereby granted, free of charge, to any person obtaining a copy
9-
of this software and associated documentation files (the "Software"), to deal
10-
in the Software without restriction, including without limitation the rights
11-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12-
copies of the Software, and to permit persons to whom the Software is
13-
furnished to do so, subject to the following conditions:
14-
15-
The above copyright notice and this permission notice shall be included in
16-
all copies or substantial portions of the Software.
17-
18-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24-
THE SOFTWARE.
254
"""
265

276
import builtins
7+
import collections.abc
288
import sys
299

3010
import google.protobuf.descriptor
3111
import google.protobuf.duration_pb2
3212
import google.protobuf.field_mask_pb2
13+
import google.protobuf.internal.containers
3314
import google.protobuf.message
3415
import google.protobuf.timestamp_pb2
3516

@@ -231,6 +212,7 @@ class BatchOperationReset(google.protobuf.message.Message):
231212
OPTIONS_FIELD_NUMBER: builtins.int
232213
RESET_TYPE_FIELD_NUMBER: builtins.int
233214
RESET_REAPPLY_TYPE_FIELD_NUMBER: builtins.int
215+
POST_RESET_OPERATIONS_FIELD_NUMBER: builtins.int
234216
identity: builtins.str
235217
"""The identity of the worker/client."""
236218
@property
@@ -240,13 +222,27 @@ class BatchOperationReset(google.protobuf.message.Message):
240222
"""Reset type (deprecated, use `options`)."""
241223
reset_reapply_type: temporalio.api.enums.v1.reset_pb2.ResetReapplyType.ValueType
242224
"""History event reapply options (deprecated, use `options`)."""
225+
@property
226+
def post_reset_operations(
227+
self,
228+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
229+
temporalio.api.workflow.v1.message_pb2.PostResetOperation
230+
]:
231+
"""Operations to perform after the workflow has been reset. These operations will be applied
232+
to the *new* run of the workflow execution in the order they are provided.
233+
All operations are applied to the workflow before the first new workflow task is generated
234+
"""
243235
def __init__(
244236
self,
245237
*,
246238
identity: builtins.str = ...,
247239
options: temporalio.api.common.v1.message_pb2.ResetOptions | None = ...,
248240
reset_type: temporalio.api.enums.v1.reset_pb2.ResetType.ValueType = ...,
249241
reset_reapply_type: temporalio.api.enums.v1.reset_pb2.ResetReapplyType.ValueType = ...,
242+
post_reset_operations: collections.abc.Iterable[
243+
temporalio.api.workflow.v1.message_pb2.PostResetOperation
244+
]
245+
| None = ...,
250246
) -> None: ...
251247
def HasField(
252248
self, field_name: typing_extensions.Literal["options", b"options"]
@@ -258,6 +254,8 @@ class BatchOperationReset(google.protobuf.message.Message):
258254
b"identity",
259255
"options",
260256
b"options",
257+
"post_reset_operations",
258+
b"post_reset_operations",
261259
"reset_reapply_type",
262260
b"reset_reapply_type",
263261
"reset_type",
@@ -283,7 +281,7 @@ class BatchOperationUpdateWorkflowExecutionOptions(google.protobuf.message.Messa
283281
def workflow_execution_options(
284282
self,
285283
) -> temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions:
286-
"""Workflow Execution options. Partial updates are accepted and controlled by update_mask."""
284+
"""Update Workflow options that were originally specified via StartWorkflowExecution. Partial updates are accepted and controlled by update_mask."""
287285
@property
288286
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask:
289287
"""Controls which fields from `workflow_execution_options` will be applied.

temporalio/api/command/v1/message_pb2.pyi

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
11
"""
22
@generated by mypy-protobuf. Do not edit manually!
33
isort:skip_file
4-
The MIT License
5-
6-
Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
7-
8-
Permission is hereby granted, free of charge, to any person obtaining a copy
9-
of this software and associated documentation files (the "Software"), to deal
10-
in the Software without restriction, including without limitation the rights
11-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12-
copies of the Software, and to permit persons to whom the Software is
13-
furnished to do so, subject to the following conditions:
14-
15-
The above copyright notice and this permission notice shall be included in
16-
all copies or substantial portions of the Software.
17-
18-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24-
THE SOFTWARE.
254
"""
265

276
import builtins

0 commit comments

Comments
 (0)