Method: projects.models.versions.patch

Updates the specified Version resource.

Currently the only update-able fields are description and autoScaling.minNodes.

HTTP request

PATCH https://ml.googleapis.com/v1/{name=projects/*/models/*/versions/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the model.

Authorization requires the following Google IAM permission on the specified resource name:

  • ml.versions.update

Query parameters

Parameters
updateMask

string (FieldMask format)

Required. Specifies the path, relative to Version, of the field to update. Must be present and non-empty.

For example, to change the description of a version to "foo", the updateMask parameter would be specified as description, and the PATCH request body would specify the new value, as follows:

{
  "description": "foo"
}

Currently the only supported update mask fields are description, autoScaling.minNodes, and manualScaling.nodes. However, you can only update manualScaling.nodes if the version uses a Compute Engine (N1) machine type.

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

Request body

The request body contains an instance of Version.

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.

本頁內容對您是否有任何幫助?請提供意見:

傳送您對下列選項的寶貴意見...

這個網頁
AI Platform
需要協助嗎?請前往我們的支援網頁