Class ProjectsResource.ModelsResource.VersionsResource.SetDefaultRequest
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.
Inheritance
ProjectsResource.ModelsResource.VersionsResource.SetDefaultRequest
Inherited Members
Namespace: Google.Apis.CloudMachineLearningEngine.v1
Assembly: Google.Apis.CloudMachineLearningEngine.v1.dll
Syntax
public class ProjectsResource.ModelsResource.VersionsResource.SetDefaultRequest : CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>, IClientServiceRequest<GoogleCloudMlV1Version>, IClientServiceRequest
Constructors
SetDefaultRequest(IClientService, GoogleCloudMlV1SetDefaultVersionRequest, string)
Constructs a new SetDefault request.
Declaration
public SetDefaultRequest(IClientService service, GoogleCloudMlV1SetDefaultVersionRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudMlV1SetDefaultVersionRequest | body | |
string | name |
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.GoogleCloudMlV1Version>.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.GoogleCloudMlV1Version>.MethodName
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.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { 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.GoogleCloudMlV1Version>.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.GoogleCloudMlV1Version>.GetBody()
InitParameters()
Initializes SetDefault parameter list.
Declaration
protected override void InitParameters()