Class RuntimesResource.CreateRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.Colab.v1beta
Assembly: Google.Apis.Colab.v1beta.dll
Syntax
public class RuntimesResource.CreateRequest : ColabBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Runtime)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Runtime body)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Runtime | body |
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
RequestId
Optional. A unique identifier for this request. This request is only idempotent if a request_id is
provided. See AIP-155 for more details. If provided, the request ID must
be in UUID4 format per https://linter.aip.dev/155/request-id-format.
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
RuntimeId
Optional. A unique identifier for the runtime. If not supplied, a random ID will be generated. If a
runtime with the given ID owned by the requesting user already exists, a completed Operation with an
ALREADY_EXISTS (code:
6)
error will be returned. See AIP-133 for more details.
The ID must conform to RFC-1034, specifically: - 1 to
63 characters - Lower-case letters, digits, and hyphens - Start with a letter - End with a letter or
digit
Declaration
[RequestParameter("runtimeId", RequestParameterType.Query)]
public virtual string RuntimeId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()