Class ProjectsResource.ModelsResource.VersionsResource.CreateRequest
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.
Inheritance
ProjectsResource.ModelsResource.VersionsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudMachineLearningEngine.v1
Assembly: Google.Apis.CloudMachineLearningEngine.v1.dll
Syntax
public class ProjectsResource.ModelsResource.VersionsResource.CreateRequest : CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudMlV1Version, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudMlV1Version body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudMlV1Version | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleLongrunningOperation>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleLongrunningOperation>.MethodName
Parent
Required. The name of the model.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleLongrunningOperation>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudMachineLearningEngine.v1.Data.GoogleLongrunningOperation>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()