Method: projects.locations.workerPools.patch

Updates a WorkerPool.

HTTP request

PATCH https://run.googleapis.com/v2/{workerPool.name}

Path parameters

Parameters
workerPool.name

string

The fully qualified name of this WorkerPool. In CreateWorkerPoolRequest, this field is ignored, and instead composed from CreateWorkerPoolRequest.parent and CreateWorkerPoolRequest.worker_id.

Format: projects/{project}/locations/{location}/workerPools/{worker_id} It takes the form projects/{project}/locations/{location}/workerPools/{workerpool}.

Query parameters

Parameters
updateMask

string (FieldMask format)

Optional. The list of fields to be updated.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

validateOnly

boolean

Optional. Indicates that the request should be validated and default values populated, without persisting the request or updating any resources.

allowMissing

boolean

Optional. If set to true, and if the WorkerPool does not exist, it will create a new one. The caller must have 'run.workerpools.create' permissions if this is set to true and the WorkerPool does not exist.

forceNewRevision

boolean

Optional. If set to true, a new revision will be created from the template even if the system doesn't detect any changes from the previously deployed revision.

This may be useful for cases where the underlying resources need to be recreated or reinitialized. For example if the image is specified by label, but the underlying image digest has changed) or if the container performs deployment initialization work that needs to be performed again.

Request body

The request body contains an instance of WorkerPool.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.