Class ProjectsResource.JobsResource.PatchRequest
Updates a specific job resource. Currently the only supported fields to update are labels
.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudMachineLearningEngine.v1
Assembly: Google.Apis.CloudMachineLearningEngine.v1.dll
Syntax
public class ProjectsResource.JobsResource.PatchRequest : CloudMachineLearningEngineBaseServiceRequest<GoogleCloudMlV1Job>, IClientServiceRequest<GoogleCloudMlV1Job>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GoogleCloudMlV1Job, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GoogleCloudMlV1Job body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudMlV1Job | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The job 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
UpdateMask
Required. Specifies the path, relative to Job
, of the field to update. To adopt etag mechanism,
include etag
field in the mask, and include the etag
value in your job resource. For example, to
change the labels of a job, the update_mask
parameter would be specified as labels
, etag
, and
the PATCH
request body would specify the new value, as follows: { "labels": { "owner": "Google",
"color": "Blue" } "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4" } If etag
matches the one on
the server, the labels of the job will be replaced with the given ones, and the server end etag
will be recalculated. Currently the only supported update masks are labels
and etag
.
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
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()