Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<Operation>
ColabBaseServiceRequest<Operation>
RuntimesResource.CreateRequest
Implements
IClientServiceRequest<Operation>
IClientServiceRequest
Inherited Members
ColabBaseServiceRequest<Operation>.Xgafv
ColabBaseServiceRequest<Operation>.AccessToken
ColabBaseServiceRequest<Operation>.Alt
ColabBaseServiceRequest<Operation>.Callback
ColabBaseServiceRequest<Operation>.Fields
ColabBaseServiceRequest<Operation>.Key
ColabBaseServiceRequest<Operation>.OauthToken
ColabBaseServiceRequest<Operation>.PrettyPrint
ColabBaseServiceRequest<Operation>.QuotaUser
ColabBaseServiceRequest<Operation>.UploadType
ColabBaseServiceRequest<Operation>.UploadProtocol
ClientServiceRequest<Operation>.Execute()
ClientServiceRequest<Operation>.ExecuteAsStream()
ClientServiceRequest<Operation>.ExecuteAsync()
ClientServiceRequest<Operation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Operation>.ExecuteAsStreamAsync()
ClientServiceRequest<Operation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Operation>.CreateRequest(bool?)
ClientServiceRequest<Operation>.GenerateRequestUri()
ClientServiceRequest<Operation>.GetDefaultETagAction(string)
ClientServiceRequest<Operation>.ETagAction
ClientServiceRequest<Operation>.ModifyRequest
ClientServiceRequest<Operation>.ValidateParameters
ClientServiceRequest<Operation>.ApiVersion
ClientServiceRequest<Operation>.RequestParameters
ClientServiceRequest<Operation>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<Operation>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Operation>.MethodName

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
ClientServiceRequest<Operation>.RestPath

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
ClientServiceRequest<Operation>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
ColabBaseServiceRequest<Operation>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX