DatalabCreateInput¶
- pydantic model openapi_client.models.datalab_create_input.DatalabCreateInput¶
Settings for a new datalab. Compute, resource access and additional settings are optional; anything omitted falls back to a default.
- Fields:
- field datalab_name: Annotated[str, Field(min_length=3, strict=True, max_length=50)] [Required] (alias 'DatalabName')¶
Name for the datalab, unique across the application and fixed once created. 3 to 50 characters, starting with a letter, using letters, numbers and hyphens only.
- Constraints:
strict = True
min_length = 3
max_length = 50
- field datalab_type: StrictStr [Required] (alias 'DatalabType')¶
Kind of workspace to create. Cannot be changed later.
- Constraints:
strict = True
- field description: Optional[StrictStr] = None (alias 'Description')¶
- field enable_custom_r: Optional[StrictBool] = None (alias 'EnableCustomR')¶
Studio datalabs only. Enables the custom R environment.
- field compute_metadata: Optional[DatalabCreateInputComputeMetadata] = None (alias 'ComputeMetadata')¶
- field resource_access_metadata: Optional[DatalabCreateInputResourceAccessMetadata] = None (alias 'ResourceAccessMetadata')¶
- field additional_metadata: Optional[DatalabCreateInputAdditionalMetadata] = None (alias 'AdditionalMetadata')¶
- 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 DatalabCreateInput 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 DatalabCreateInput from a dict
- Return type:
Optional[Self]