Class ProjectsResource.ModelsResource.VersionsResource
The "versions" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudMachineLearningEngine.v1
Assembly: Google.Apis.CloudMachineLearningEngine.v1.dll
Syntax
public class ProjectsResource.ModelsResource.VersionsResource
Constructors
VersionsResource(IClientService)
Constructs a new resource.
Declaration
public VersionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(GoogleCloudMlV1Version, string)
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.
Declaration
public virtual ProjectsResource.ModelsResource.VersionsResource.CreateRequest Create(GoogleCloudMlV1Version body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudMlV1Version | body | The body of the request. |
string | parent | Required. The name of the model. |
Returns
Type | Description |
---|---|
ProjectsResource.ModelsResource.VersionsResource.CreateRequest |
Delete(string)
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.
Declaration
public virtual ProjectsResource.ModelsResource.VersionsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the version. You can get the names of all the versions of a model by calling projects.models.versions.list. |
Returns
Type | Description |
---|---|
ProjectsResource.ModelsResource.VersionsResource.DeleteRequest |
Get(string)
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.
Declaration
public virtual ProjectsResource.ModelsResource.VersionsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the version. |
Returns
Type | Description |
---|---|
ProjectsResource.ModelsResource.VersionsResource.GetRequest |
List(string)
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: {}.
Declaration
public virtual ProjectsResource.ModelsResource.VersionsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the model for which to list the version. |
Returns
Type | Description |
---|---|
ProjectsResource.ModelsResource.VersionsResource.ListRequest |
Patch(GoogleCloudMlV1Version, string)
Updates the specified Version resource. Currently the only update-able fields are description
,
requestLoggingConfig
, autoScaling.minNodes
, and manualScaling.nodes
.
Declaration
public virtual ProjectsResource.ModelsResource.VersionsResource.PatchRequest Patch(GoogleCloudMlV1Version body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudMlV1Version | body | The body of the request. |
string | name | Required. The name of the model. |
Returns
Type | Description |
---|---|
ProjectsResource.ModelsResource.VersionsResource.PatchRequest |
SetDefault(GoogleCloudMlV1SetDefaultVersionRequest, string)
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.
Declaration
public virtual ProjectsResource.ModelsResource.VersionsResource.SetDefaultRequest SetDefault(GoogleCloudMlV1SetDefaultVersionRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudMlV1SetDefaultVersionRequest | body | The body of the request. |
string | name | Required. 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. |
Returns
Type | Description |
---|---|
ProjectsResource.ModelsResource.VersionsResource.SetDefaultRequest |