Skip to content

Commit 17693ce

Browse files
authored
Add field to update search attributes of a schedule (#385)
1 parent 2644a4b commit 17693ce

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

openapi/openapiv2.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,6 +3432,10 @@
34323432
"requestId": {
34333433
"type": "string",
34343434
"description": "A unique identifier for this update request for idempotence. Typically UUIDv4."
3435+
},
3436+
"searchAttributes": {
3437+
"$ref": "#/definitions/v1SearchAttributes",
3438+
"description": "Schedule search attributes to be updated.\nDo not set this field if you do not want to update the search attributes.\nA non-null empty object will set the search attributes to an empty map.\nNote: you cannot only update the search attributes with `UpdateScheduleRequest`,\nyou must also set the `schedule` field; otherwise, it will unset the schedule."
34353439
}
34363440
}
34373441
},

openapi/openapiv3.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6604,6 +6604,15 @@ components:
66046604
requestId:
66056605
type: string
66066606
description: A unique identifier for this update request for idempotence. Typically UUIDv4.
6607+
searchAttributes:
6608+
allOf:
6609+
- $ref: '#/components/schemas/SearchAttributes'
6610+
description: |-
6611+
Schedule search attributes to be updated.
6612+
Do not set this field if you do not want to update the search attributes.
6613+
A non-null empty object will set the search attributes to an empty map.
6614+
Note: you cannot only update the search attributes with `UpdateScheduleRequest`,
6615+
you must also set the `schedule` field; otherwise, it will unset the schedule.
66076616
UpdateScheduleResponse:
66086617
type: object
66096618
properties: {}

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,12 @@ message UpdateScheduleRequest {
10711071
string identity = 5;
10721072
// A unique identifier for this update request for idempotence. Typically UUIDv4.
10731073
string request_id = 6;
1074+
// Schedule search attributes to be updated.
1075+
// Do not set this field if you do not want to update the search attributes.
1076+
// A non-null empty object will set the search attributes to an empty map.
1077+
// Note: you cannot only update the search attributes with `UpdateScheduleRequest`,
1078+
// you must also set the `schedule` field; otherwise, it will unset the schedule.
1079+
temporal.api.common.v1.SearchAttributes search_attributes = 7;
10741080
}
10751081

10761082
message UpdateScheduleResponse {

0 commit comments

Comments
 (0)