Class ProjectsResource.LocationsResource.RuntimesResource
The "runtimes" collection of methods.
Inherited Members
Namespace: Google.Apis.AIPlatformNotebooks .v1
Assembly: Google.Apis.AIPlatformNotebooks.v1.dll
Syntax
public class ProjectsResource.LocationsResource.RuntimesResource
Constructors
RuntimesResource(IClientService)
Constructs a new resource.
Declaration
public RuntimesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClient |
service |
Methods
AIPlatformNotebooksSwitch(SwitchRuntimeRequest, string)
Switch a Managed Notebook Runtime.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.AIPlatformNotebooksSwitchRequest AIPlatformNotebooksSwitch(SwitchRuntimeRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Switch |
body | The body of the request. |
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
Create(Runtime, string)
Creates a new Runtime in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.CreateRequest Create(Runtime body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Runtime | body | The body of the request. |
string | parent | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
Delete(string)
Deletes a single Runtime.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
Diagnose(DiagnoseRuntimeRequest, string)
Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.DiagnoseRequest Diagnose(DiagnoseRuntimeRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Diagnose |
body | The body of the request. |
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
Get(string)
Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
GetIamPolicy(string)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type | Name | Description |
---|---|---|
string | resource | REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
Projects |
List(string)
Lists Runtimes in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
Migrate(MigrateRuntimeRequest, string)
Migrate an existing Runtime to a new Workbench Instance.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.MigrateRequest Migrate(MigrateRuntimeRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Migrate |
body | The body of the request. |
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
Patch(Runtime, string)
Update Notebook Runtime configuration.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.PatchRequest Patch(Runtime body, string name)
Parameters
Type | Name | Description |
---|---|---|
Runtime | body | The body of the request. |
string | name | Output only. The resource name of the runtime. Format:
|
Returns
Type | Description |
---|---|
Projects |
RefreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest, string)
Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.RefreshRuntimeTokenInternalRequest RefreshRuntimeTokenInternal(RefreshRuntimeTokenInternalRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Refresh |
body | The body of the request. |
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
ReportEvent(ReportRuntimeEventRequest, string)
Reports and processes a runtime event.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.ReportEventRequest ReportEvent(ReportRuntimeEventRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Report |
body | The body of the request. |
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
Reset(ResetRuntimeRequest, string)
Resets a Managed Notebook Runtime.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.ResetRequest Reset(ResetRuntimeRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Reset |
body | The body of the request. |
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the access control policy on the specified resource. Replaces any existing policy. Can return
NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
Set |
body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
Projects |
Start(StartRuntimeRequest, string)
Starts a Managed Notebook Runtime. Perform "Start" on GPU instances; "Resume" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.StartRequest Start(StartRuntimeRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Start |
body | The body of the request. |
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
Stop(StopRuntimeRequest, string)
Stops a Managed Notebook Runtime. Perform "Stop" on GPU instances; "Suspend" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.StopRequest Stop(StopRuntimeRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Stop |
body | The body of the request. |
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |
TestIamPermissions(TestIamPermissionsRequest, string)
Returns permissions that a caller has on the specified resource. If the resource does not exist,
this will return an empty set of permissions, not a NOT_FOUND
error. Note: This operation is
designed to be used for building permission-aware UIs and command-line tools, not for authorization
checking. This operation may "fail open" without warning.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
Test |
body | The body of the request. |
string | resource | REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Returns
Type | Description |
---|---|
Projects |
Upgrade(UpgradeRuntimeRequest, string)
Upgrades a Managed Notebook Runtime to the latest version.
Declaration
public virtual ProjectsResource.LocationsResource.RuntimesResource.UpgradeRequest Upgrade(UpgradeRuntimeRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
Upgrade |
body | The body of the request. |
string | name | Required. Format: |
Returns
Type | Description |
---|---|
Projects |