DatalabCreateInputComputeMetadata¶
- pydantic model openapi_client.models.datalab_create_input_compute_metadata.DatalabCreateInputComputeMetadata¶
Compute settings. Anything omitted falls back to a default.
- Fields:
- field instance_list: Optional[List[StrictStr]] = None (alias 'InstanceList')¶
Instance type to run on, chosen from those enabled for the application. Notebook datalabs accept exactly one. Defaults to the cheapest available type.
- field volume_size_in_gb: Optional[Annotated[int, Field(le=16000, strict=True, ge=5)]] = 10 (alias 'VolumeSizeInGB')¶
Storage attached to the datalab, in GB.
- field direct_internet_access: Optional[StrictStr] = 'Disabled' (alias 'DirectInternetAccess')¶
Whether the datalab can reach the internet. Can only be set at creation, and must be Enabled when interactive sessions are enabled.
- field root_access: Optional[StrictStr] = 'Disabled' (alias 'RootAccess')¶
Notebook datalabs only. Whether users get root access on the instance.
- field max_volume_size_in_gb: Optional[Annotated[int, Field(le=16000, strict=True, ge=5)]] = 100 (alias 'MaxVolumeSizeInGB')¶
Studio datalabs only. Upper limit users can grow their storage to.
- to_str()¶
Returns the string representation of the model using alias
- Return type:
str
- to_json()¶
Returns the JSON representation of the model using alias
- Return type:
str
- classmethod from_json(json_str)¶
Create an instance of DatalabCreateInputComputeMetadata from a JSON string
- Return type:
Optional[Self]
- to_dict()¶
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic’s self.model_dump(by_alias=True):
None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
- Return type:
Dict[str,Any]
- classmethod from_dict(obj)¶
Create an instance of DatalabCreateInputComputeMetadata from a dict
- Return type:
Optional[Self]