OperationMetadata

Represents the metadata of the long-running operation.

JSON representation
{
  "createTime": string,
  "startTime": string,
  "endTime": string,
  "isCancellationRequested": boolean,
  "operationType": enum(OperationType),
  "modelName": string,
  "version": {
    object(Version)
  },
}
Fields
createTime

string (Timestamp format)

The time the operation was submitted.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

startTime

string (Timestamp format)

The time operation processing started.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

endTime

string (Timestamp format)

The time operation processing completed.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

isCancellationRequested

boolean

Indicates whether a request to cancel this operation has been made.

operationType

enum(OperationType)

The operation type.

modelName

string

Contains the name of the model associated with the operation.

version

object(Version)

Contains the version associated with the operation.

Version

Represents a version of the model.

Each version is a trained model deployed in the cloud, ready to handle prediction requests. A model can have multiple versions. You can get information about all of the versions of a given model by calling projects.models.versions.list.

JSON representation
{
  "name": string,
  "description": string,
  "isDefault": boolean,
  "deploymentUri": string,
  "createTime": string,
  "lastUseTime": string,
  "runtimeVersion": string,
  "manualScaling": {
    object(ManualScaling)
  },
}
Fields
name

string

Required.The name specified for the version when it was created.

The version name must be unique within the model it is created in.

description

string

Optional. The description specified for the version when it was created.

isDefault

boolean

Output only. If true, this version will be used to handle prediction requests that do not specify a version.

You can change the default version by calling projects.methods.versions.setDefault.

deploymentUri

string

Required. The Google Cloud Storage location of the trained model used to create the version. See the overview of model deployment for more informaiton.

When passing Version to projects.models.versions.create the model service uses the specified location as the source of the model. Once deployed, the model version is hosted by the prediction service, so this location is useful only as a historical record.

createTime

string (Timestamp format)

Output only. The time the version was created.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

lastUseTime

string (Timestamp format)

Output only. The time the version was last used for prediction.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

runtimeVersion

string

Optional. The Google Cloud ML runtime version to use for this deployment. If not set, Google Cloud ML will choose a version.

manualScaling

object(ManualScaling)

Optional. Manually select the number of nodes to use for serving the model. If unset (i.e., by default), the number of nodes used to serve the model automatically scales with traffic. However, care should be taken to ramp up traffic according to the model's ability to scale. If your model needs to handle bursts of traffic beyond it's ability to scale, it is recommended you set this field appropriately.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Machine Learning Engine (Cloud ML Engine)