ml  v1
Classes | Public Member Functions | List of all members
Google.Apis.CloudMachineLearningEngine.v1.ProjectsResource.ModelsResource.VersionsResource Class Reference

The "versions" collection of methods. More...

Classes

class  CreateRequest
 Creates a new version of a model from a trained TensorFlow model. More...
 
class  DeleteRequest
 Deletes a model version. More...
 
class  GetRequest
 Gets information about a model version. More...
 
class  ListRequest
 Gets basic information about all the versions of a model. More...
 
class  PatchRequest
 Updates the specified Version resource. More...
 
class  SetDefaultRequest
 Designates a version to be the default for the model. More...
 

Public Member Functions

 VersionsResource (Google.Apis.Services.IClientService service)
 Constructs a new resource. More...
 
virtual CreateRequest Create (Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleCloudMlV1Version body, string parent)
 Creates a new version of a model from a trained TensorFlow model. More...
 
virtual DeleteRequest Delete (string name)
 Deletes a model version. More...
 
virtual GetRequest Get (string name)
 Gets information about a model version. More...
 
virtual ListRequest List (string parent)
 Gets basic information about all the versions of a model. More...
 
virtual PatchRequest Patch (Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleCloudMlV1Version body, string name)
 Updates the specified Version resource. More...
 
virtual SetDefaultRequest SetDefault (Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleCloudMlV1SetDefaultVersionRequest body, string name)
 Designates a version to be the default for the model. More...
 

Detailed Description

The "versions" collection of methods.

Constructor & Destructor Documentation

◆ VersionsResource()

Google.Apis.CloudMachineLearningEngine.v1.ProjectsResource.ModelsResource.VersionsResource.VersionsResource ( Google.Apis.Services.IClientService  service)
inline

Constructs a new resource.

Member Function Documentation

◆ Create()

virtual CreateRequest Google.Apis.CloudMachineLearningEngine.v1.ProjectsResource.ModelsResource.VersionsResource.Create ( Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleCloudMlV1Version  body,
string  parent 
)
inlinevirtual

Creates a new version of a model from a trained TensorFlow model.

If the version created in the cloud by this call is the first deployed version of the specified model, it will be made the default version of the model. When you add a version to a model that already has one or more versions, the default version does not automatically change. If you want a new version to be the default, you must call projects.models.versions.setDefault.

Parameters
bodyThe body of the request.
parentRequired. The name of the model.

◆ Delete()

virtual DeleteRequest Google.Apis.CloudMachineLearningEngine.v1.ProjectsResource.ModelsResource.VersionsResource.Delete ( string  name)
inlinevirtual

Deletes a model version.

Each model can have multiple versions deployed and in use at any given time. Use this method to remove a single version.

Note: You cannot delete the version that is set as the default version of the model unless it is the only remaining version.

Parameters
nameRequired. The name of the version. You can get the names of all the versions of a model by calling projects.models.versions.list.

◆ Get()

virtual GetRequest Google.Apis.CloudMachineLearningEngine.v1.ProjectsResource.ModelsResource.VersionsResource.Get ( string  name)
inlinevirtual

Gets information about a model version.

Models can have multiple versions. You can call projects.models.versions.list to get the same information that this method returns for all of the versions of a model.

Parameters
nameRequired. The name of the version.

◆ List()

virtual ListRequest Google.Apis.CloudMachineLearningEngine.v1.ProjectsResource.ModelsResource.VersionsResource.List ( string  parent)
inlinevirtual

Gets basic information about all the versions of a model.

If you expect that a model has many versions, or if you need to handle only a limited number of results at a time, you can request that the list be retrieved in batches (called pages).

If there are no versions that match the request parameters, the list request returns an empty response body: {}.

Parameters
parentRequired. The name of the model for which to list the version.

◆ Patch()

virtual PatchRequest Google.Apis.CloudMachineLearningEngine.v1.ProjectsResource.ModelsResource.VersionsResource.Patch ( Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleCloudMlV1Version  body,
string  name 
)
inlinevirtual

Updates the specified Version resource.

Currently the only update-able fields are description, requestLoggingConfig, autoScaling.minNodes, and manualScaling.nodes.

Parameters
bodyThe body of the request.
nameRequired. The name of the model.

◆ SetDefault()

virtual SetDefaultRequest Google.Apis.CloudMachineLearningEngine.v1.ProjectsResource.ModelsResource.VersionsResource.SetDefault ( Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleCloudMlV1SetDefaultVersionRequest  body,
string  name 
)
inlinevirtual

Designates a version to be the default for the model.

The default version is used for prediction requests made against the model that don't specify a version.

The first version to be created for a model is automatically set as the default. You must make any subsequent changes to the default version setting manually using this method.

Parameters
bodyThe body of the request.
nameRequired. The name of the version to make the default for the model. You can get the names of all the versions of a model by calling projects.models.versions.list.

The documentation for this class was generated from the following file: