Skip to content

CreateRuntimeResources

Structured resource configuration used while creating a runtime.

Shared

class CreateRuntimeResources:
CreateRuntimeResources(requests: CreateRuntimeResourceRequests = CreateRuntimeResourceRequests(), limits: RuntimeResourceLimits | None = None)
NameType or valueDescription
requestsCreateRuntimeResourceRequestsResource requests for the new runtime.
limitsRuntimeResourceLimits | NoneResource limits for the new runtime.

Serialize the resource configuration used to create a runtime.

def to_json() -> dict[str, Any]
  • dict[str, Any]

Create a runtime-creation resource configuration from an API payload.

def from_json(data: dict[str, Any]) -> 'CreateRuntimeResources'
NameTypeDefaultDescription
datadict[str, Any]API response payload.
  • 'CreateRuntimeResources'