Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -15134,6 +15134,13 @@
},
"description": "Optional. The set of task queue types this scaling group serves.\nIf not provided, this scaling group serves all not otherwise defined\ntask types."
},
"regionIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional. If set, this scaling group is used only while the namespace is\nactive in one of these regions."
},
"provider": {
"$ref": "#/definitions/v1ComputeProvider",
"description": "Stores instructions for a worker control plane controller how to respond\nto worker lifeycle events."
Expand All @@ -15155,6 +15162,12 @@
},
"providerType": {
"type": "string"
},
"regionIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
Expand All @@ -15166,7 +15179,7 @@
},
"updateMask": {
"type": "string",
"title": "Controls which fields from `scaling_group` will be applied. Semantics:\n- Mask is ignored for new scaling groups (only applicable when scaling group already exists).\n- Empty mask for an existing scaling group is no-op: no change.\n- Non-empty mask for an existing scaling group will update/unset only to the fields\n mentioned in the mask.\n- Accepted paths: \"task_queue_types\", \"provider\", \"provider.type\", \"provider.details\",\n \"provider.nexus_endpoint\", \"scaler\", \"scaler.type\", \"scaler.details\""
"title": "Controls which fields from `scaling_group` will be applied. Semantics:\n- Mask is ignored for new scaling groups (only applicable when scaling group already exists).\n- Empty mask for an existing scaling group is no-op: no change.\n- Non-empty mask for an existing scaling group will update/unset only to the fields\n mentioned in the mask.\n- Accepted paths: \"task_queue_types\", \"region_ids\", \"provider\", \"provider.type\", \"provider.details\",\n \"provider.nexus_endpoint\", \"scaler\", \"scaler.type\", \"scaler.details\""
}
}
},
Expand Down
13 changes: 12 additions & 1 deletion openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11249,6 +11249,13 @@ components:
Optional. The set of task queue types this scaling group serves.
If not provided, this scaling group serves all not otherwise defined
task types.
regionIds:
type: array
items:
type: string
description: |-
Optional. If set, this scaling group is used only while the namespace is
active in one of these regions.
provider:
allOf:
- $ref: '#/components/schemas/ComputeProvider'
Expand Down Expand Up @@ -11276,6 +11283,10 @@ components:
format: enum
providerType:
type: string
regionIds:
type: array
items:
type: string
ComputeConfigScalingGroupUpdate:
type: object
properties:
Expand All @@ -11289,7 +11300,7 @@ components:
- Empty mask for an existing scaling group is no-op: no change.
- Non-empty mask for an existing scaling group will update/unset only to the fields
mentioned in the mask.
- Accepted paths: "task_queue_types", "provider", "provider.type", "provider.details",
- Accepted paths: "task_queue_types", "region_ids", "provider", "provider.type", "provider.details",
"provider.nexus_endpoint", "scaler", "scaler.type", "scaler.details"
format: field-mask
ComputeConfigSummary:
Expand Down
7 changes: 6 additions & 1 deletion temporal/api/compute/v1/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ message ComputeConfigScalingGroup {
// task types.
repeated temporal.api.enums.v1.TaskQueueType task_queue_types = 1;

// Optional. If set, this scaling group is used only while the namespace is
// active in one of these regions.
repeated string region_ids = 2;

// Stores instructions for a worker control plane controller how to respond
// to worker lifeycle events.
temporal.api.compute.v1.ComputeProvider provider = 3;
Expand Down Expand Up @@ -52,7 +56,7 @@ message ComputeConfigScalingGroupUpdate {
// - Empty mask for an existing scaling group is no-op: no change.
// - Non-empty mask for an existing scaling group will update/unset only to the fields
// mentioned in the mask.
// - Accepted paths: "task_queue_types", "provider", "provider.type", "provider.details",
// - Accepted paths: "task_queue_types", "region_ids", "provider", "provider.type", "provider.details",
// "provider.nexus_endpoint", "scaler", "scaler.type", "scaler.details"
google.protobuf.FieldMask update_mask = 2;
}
Expand All @@ -65,4 +69,5 @@ message ComputeConfigSummary {
message ComputeConfigScalingGroupSummary {
repeated temporal.api.enums.v1.TaskQueueType task_queue_types = 1;
string provider_type = 2;
repeated string region_ids = 3;
}
Loading