@@ -1268,10 +1268,10 @@ message GetSystemInfoResponse {
12681268 // This flag is dependent both on server version and for Nexus to be enabled via server configuration.
12691269 bool nexus = 11 ;
12701270
1271- // True if the server supports serverless deployments.
1272- // This flag is dependent both on server version and for serverless deployments
1271+ // True if the server supports server-scaled deployments.
1272+ // This flag is dependent both on server version and for server-scaled deployments
12731273 // to be enabled via server configuration.
1274- bool serverless_deployments = 12 ;
1274+ bool server_scaled_deployments = 12 ;
12751275
12761276 }
12771277}
@@ -2353,10 +2353,6 @@ message CreateWorkerDeploymentRequest {
23532353 // this name already exists, an error will be returned.
23542354 string deployment_name = 2 ;
23552355
2356- // Optional. Contains the new worker compute configuration for the Worker
2357- // Deployment. Used for worker scale management.
2358- temporal.api.compute.v1.ComputeConfig compute_config = 3 ;
2359-
23602356 // Optional. The identity of the client who initiated this request.
23612357 string identity = 4 ;
23622358 // A unique identifier for this create request for idempotence. Typically UUIDv4.
@@ -2402,20 +2398,16 @@ message CreateWorkerDeploymentVersionRequest {
24022398 // Required.
24032399 temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2 ;
24042400
2405- // All the Task Queues that will be polled from this Deployment version.
2406- repeated VersionTaskQueueInfo task_queue_infos = 6 ;
2407- message VersionTaskQueueInfo {
2408- string name = 1 ;
2409- temporal.api.enums.v1.TaskQueueType type = 2 ;
2410- }
2411-
24122401 // Optional. Contains the new worker compute configuration for the Worker
24132402 // Deployment. Used for worker scale management.
2414- temporal.api.compute.v1.ComputeConfig compute_config = 3 ;
2403+ temporal.api.compute.v1.ComputeConfig compute_config = 4 ;
24152404
24162405 // Optional. The identity of the client who initiated this request.
2417- string identity = 4 ;
2406+ string identity = 3 ;
2407+
24182408 // A unique identifier for this create request for idempotence. Typically UUIDv4.
2409+ // If a second request with the same ID is recieved, it is considered a successful no-op.
2410+ // Retrying with a different request ID for the same deployment name + build ID is an error.
24192411 string request_id = 5 ;
24202412}
24212413
@@ -2460,22 +2452,63 @@ message DeleteWorkerDeploymentRequest {
24602452message DeleteWorkerDeploymentResponse {
24612453}
24622454
2463- // Used to update the compute provider of a Worker Deployment Version.
2464- message UpdateWorkerDeploymentVersionComputeProviderRequest {
2455+ // Used to update the compute config of a Worker Deployment Version.
2456+ message UpdateWorkerDeploymentVersionComputeConfigRequest {
24652457 string namespace = 1 ;
24662458
24672459 // Required.
24682460 temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2 ;
24692461
2470- // Optional. Contains the new worker compute configuration for the Worker
2471- // Deployment. Used for worker scale management.
2472- temporal.api.compute.v1.ComputeConfig compute_config = 3 ;
2462+ message ScalingGroupUpdate {
2463+ temporal.api.compute.v1.ComputeConfigScalingGroup scaling_group = 1 ;
2464+
2465+ // Controls which fields from `scaling_group` will be applied
2466+ google.protobuf.FieldMask update_mask = 2 ;
2467+ }
2468+
2469+ // Optional. Contains the compute config scaling groups to add or updated for the Worker
2470+ // Deployment.
2471+ map <string , ScalingGroupUpdate > compute_config_scaling_groups = 6 ;
2472+
2473+ // Optional. Contains the compute config scaling groups to remove from the Worker Deployment.
2474+ repeated string remove_compute_config_scaling_groups = 7 ;
24732475
24742476 // Optional. The identity of the client who initiated this request.
2475- string identity = 4 ;
2477+ string identity = 3 ;
2478+
2479+ // A unique identifier for this create request for idempotence. Typically UUIDv4.
2480+ // If a second request with the same ID is recieved, it is considered a successful no-op.
2481+ // Retrying with a different request ID for the same deployment name + build ID is an error.
2482+ string request_id = 4 ;
2483+
2484+ // Optional. This value is returned so that it can be optionally passed to APIs
2485+ // that write to the Worker Deployment state to ensure that the state
2486+ // did not change between this API call and a future write.
2487+ bytes conflict_token = 5 ;
2488+ }
2489+
2490+ message UpdateWorkerDeploymentVersionComputeConfigResponse {
2491+ // This value is returned so that it can be optionally passed to APIs that
2492+ // write to the WorkerDeployment state to ensure that the state did not
2493+ // change between this API call and a future write.
2494+ bytes conflict_token = 1 ;
2495+ }
2496+
2497+ // Used to validate the compute config without attaching it to a Worker Deployment Version.
2498+ message ValidateWorkerDeploymentVersionComputeConfigRequest {
2499+ string namespace = 1 ;
2500+
2501+ // Required.
2502+ temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2 ;
2503+
2504+ // Required. Contains the new worker compute configuration for the Worker Deployment.
2505+ temporal.api.compute.v1.ComputeConfig compute_config = 4 ;
2506+
2507+ // Optional. The identity of the client who initiated this request.
2508+ string identity = 3 ;
24762509}
24772510
2478- message UpdateWorkerDEploymentVersionComputeProviderResponse {
2511+ message ValidateWorkerDeploymentVersionComputeConfigResponse {
24792512}
24802513
24812514// Used to update the user-defined metadata of a Worker Deployment Version.
0 commit comments