Class ProjectsResource.ModelsResource.VersionsResource.PatchRequest
Updates the specified Version resource. Currently the only update-able fields are description
,
requestLoggingConfig
, autoScaling.minNodes
, and manualScaling.nodes
.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudMachineLearningEngine.v1
Assembly: Google.Apis.CloudMachineLearningEngine.v1.dll
Syntax
public class ProjectsResource.ModelsResource.VersionsResource.PatchRequest : CloudMachineLearningEngineBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GoogleCloudMlV1Version, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GoogleCloudMlV1Version body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudMlV1Version | 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 name of the model.
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 Version
, of the field to update. Must be present and
non-empty. For example, to change the description of a version to "foo", the update_mask
parameter would be specified as description
, and the PATCH
request body would specify the
new value, as follows:
{ "description": "foo" }
Currently the only supported update mask
fields are description
, requestLoggingConfig
, autoScaling.minNodes
, and
manualScaling.nodes
. However, you can only update manualScaling.nodes
if the version uses a
Compute Engine (N1) machine type.
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()