Class ProjectsResource.LocationsResource.RuntimesResource.PatchRequest
Update Notebook Runtime configuration.
Inheritance
Inherited Members
Namespace: Google.Apis.AIPlatformNotebooks.v1
Assembly: Google.Apis.AIPlatformNotebooks.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RuntimesResource.PatchRequest : AIPlatformNotebooksBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PatchRequest(IClientService, Runtime, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, Runtime body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Runtime | 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
Output only. The resource name of the runtime. Format:
projects/{project}/locations/{location}/runtimes/{runtimeId}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RequestId
Idempotent request UUID.
Declaration
[RequestParameter("requestId", RequestParameterType.Query)]
public virtual string RequestId { get; set; }
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 Runtime
, of the field to update. For example, to
change the software configuration kernels, the update_mask
parameter would be specified as
software_config.kernels
, and the PATCH
request body would specify the new value, as follows:
{ "software_config":{ "kernels": [{ 'repository':
'gcr.io/deeplearning-platform-release/pytorch-gpu', 'tag': 'latest' }], } } Currently, only the
following fields can be updated: - software_config.kernels
-
software_config.post_startup_script
- software_config.custom_gpu_driver_path
-
software_config.idle_shutdown
- software_config.idle_shutdown_timeout
-
software_config.disable_terminal
- labels
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()