Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<GoogleCloudMlV1Version>
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>
ProjectsResource.ModelsResource.VersionsResource.SetDefaultRequest
Implements
IClientServiceRequest<GoogleCloudMlV1Version>
IClientServiceRequest
Inherited Members
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.Xgafv
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.AccessToken
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.Alt
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.Callback
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.Fields
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.Key
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.OauthToken
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.PrettyPrint
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.QuotaUser
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.UploadType
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.UploadProtocol
ClientServiceRequest<GoogleCloudMlV1Version>.Execute()
ClientServiceRequest<GoogleCloudMlV1Version>.ExecuteAsStream()
ClientServiceRequest<GoogleCloudMlV1Version>.ExecuteAsync()
ClientServiceRequest<GoogleCloudMlV1Version>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleCloudMlV1Version>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleCloudMlV1Version>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleCloudMlV1Version>.CreateRequest(bool?)
ClientServiceRequest<GoogleCloudMlV1Version>.GenerateRequestUri()
ClientServiceRequest<GoogleCloudMlV1Version>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleCloudMlV1Version>.ETagAction
ClientServiceRequest<GoogleCloudMlV1Version>.ModifyRequest
ClientServiceRequest<GoogleCloudMlV1Version>.ValidateParameters
ClientServiceRequest<GoogleCloudMlV1Version>.ApiVersion
ClientServiceRequest<GoogleCloudMlV1Version>.RequestParameters
ClientServiceRequest<GoogleCloudMlV1Version>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<GoogleCloudMlV1Version>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<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
ClientServiceRequest<GoogleCloudMlV1Version>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<GoogleCloudMlV1Version>.GetBody()

InitParameters()

Initializes SetDefault parameter list.

Declaration
protected override void InitParameters()
Overrides
CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Version>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX