NubladoImage#

pydantic model rubin.nublado.client.NubladoImage#

Base class for different ways of specifying the lab image to spawn.

Parameters:

data (Any)

Show JSON schema
{
   "title": "NubladoImage",
   "description": "Base class for different ways of specifying the lab image to spawn.",
   "type": "object",
   "properties": {
      "class": {
         "$ref": "#/$defs/NubladoImageClass",
         "title": "Image class"
      },
      "size": {
         "$ref": "#/$defs/NubladoImageSize",
         "default": "Large",
         "description": "Keyword selecting one of the Nublado image sizes",
         "title": "Image size"
      },
      "debug": {
         "default": false,
         "title": "Whether to enable lab debugging",
         "type": "boolean"
      }
   },
   "$defs": {
      "NubladoImageClass": {
         "description": "Possible ways of selecting an image.",
         "enum": [
            "recommended",
            "latest-release",
            "latest-weekly",
            "latest-daily",
            "by-reference",
            "by-tag"
         ],
         "title": "NubladoImageClass",
         "type": "string"
      },
      "NubladoImageSize": {
         "description": "Acceptable sizes of images to spawn.",
         "enum": [
            "Fine",
            "Diminutive",
            "Tiny",
            "Small",
            "Medium",
            "Large",
            "Huge",
            "Gargantuan",
            "Colossal"
         ],
         "title": "NubladoImageSize",
         "type": "string"
      }
   },
   "additionalProperties": false,
   "required": [
      "class"
   ]
}

Fields:
field debug: bool = False#
field class: NubladoImageClass [Required] (name 'image_class')#
field size: NubladoImageSize = NubladoImageSize.Large#

Keyword selecting one of the Nublado image sizes

to_logging_context()#

Convert to structured data to include the lab spawn log message.

Returns:

Logging context intended to be passed to structlog.

Return type:

dict of str

abstract to_spawn_form()#

Convert to data suitable for posting to Nublado’s spawn form.

Returns:

Post data to send to the JupyterHub spawn page.

Return type:

dict of str