Class RuntimesResource
The "runtimes" collection of methods.
Inherited Members
Namespace: Google.Apis.Colab.v1beta
Assembly: Google.Apis.Colab.v1beta.dll
Syntax
public class RuntimesResource
Constructors
RuntimesResource(IClientService)
Constructs a new resource.
Declaration
public RuntimesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(Runtime)
Creates a Colab runtime assignment. When runtime creation is refused with a FAILED_PRECONDITION (code:
9)
error, a more specific error reason will be returned in the details of the Operation error wrapped in
google.rpc.ErrorInfo. A requests-per-minute-per-project and a requests-per-minute-per-user quota are
enforced on this API. To see the exact limit your project is subject to, after you enable the Colab API,
view it in your project's Quotas & System
Limits page. Note that there
is no usage reporting on the per-user limit and it is not overridable at the individual user level.
Declaration
public virtual RuntimesResource.CreateRequest Create(Runtime body)
Parameters
| Type | Name | Description |
|---|---|---|
| Runtime | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| RuntimesResource.CreateRequest |
Delete(string)
Deletes a Colab runtime assignment. Best Practices: - Avoid deleting runtimes unless necessary. Reuse runtimes for efficiency. - Open a new Jupyter session on an existing runtime for state isolation.
Declaration
public virtual RuntimesResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the runtime to unassign. Format: |
Returns
| Type | Description |
|---|---|
| RuntimesResource.DeleteRequest |
Get(string)
Gets a Colab runtime assigned to the requesting user.
Declaration
public virtual RuntimesResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the runtime to retrieve. Format: |
Returns
| Type | Description |
|---|---|
| RuntimesResource.GetRequest |
List()
Lists Colab runtimes assigned to the requesting user.
Declaration
public virtual RuntimesResource.ListRequest List()
Returns
| Type | Description |
|---|---|
| RuntimesResource.ListRequest |