Show / Hide Table of Contents

Class ProjectsResource.ModelsResource.PatchRequest

Updates a specific model resource. Currently the only supported fields to update are description and default_version.name.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleLongrunningOperation>
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>
ProjectsResource.ModelsResource.PatchRequest
Implements
IClientServiceRequest<GoogleLongrunningOperation>
IClientServiceRequest
Inherited Members
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.Xgafv
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.AccessToken
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.Alt
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.Callback
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.Fields
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.Key
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.OauthToken
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.PrettyPrint
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.QuotaUser
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.UploadType
CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>.UploadProtocol
ClientServiceRequest<GoogleLongrunningOperation>.Execute()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsStream()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsync()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleLongrunningOperation>.CreateRequest(bool?)
ClientServiceRequest<GoogleLongrunningOperation>.GenerateRequestUri()
ClientServiceRequest<GoogleLongrunningOperation>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleLongrunningOperation>.ETagAction
ClientServiceRequest<GoogleLongrunningOperation>.ModifyRequest
ClientServiceRequest<GoogleLongrunningOperation>.ValidateParameters
ClientServiceRequest<GoogleLongrunningOperation>.ApiVersion
ClientServiceRequest<GoogleLongrunningOperation>.RequestParameters
ClientServiceRequest<GoogleLongrunningOperation>.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.PatchRequest : CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest

Constructors

PatchRequest(IClientService, GoogleCloudMlV1Model, string)

Constructs a new Patch request.

Declaration
public PatchRequest(IClientService service, GoogleCloudMlV1Model body, string name)
Parameters
Type Name Description
IClientService service
GoogleCloudMlV1Model body
string name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleLongrunningOperation>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleLongrunningOperation>.MethodName

Name

Required. The project name.

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<GoogleLongrunningOperation>.RestPath

UpdateMask

Required. Specifies the path, relative to Model, of the field to update. For example, to change the description of a model to "foo" and set its default version to "version_1", the update_mask parameter would be specified as description, default_version.name, and the PATCH request body would specify the new value, as follows: { "description": "foo", "defaultVersion": { "name":"version_1" } } Currently the supported update masks are description and default_version.name.

Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type Description
object

Methods

GetBody()

Returns the body of the request.

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

InitParameters()

Initializes Patch parameter list.

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

Implements

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