Skip to content

Files

albert.resources.files

FileNamespace

Bases: str, Enum

Attributes:

Name Type Description
AGENT
BREAKTHROUGH
PIPELINE
PUBLIC
RESULT
SDS

AGENT

AGENT = 'agent'

BREAKTHROUGH

BREAKTHROUGH = 'breakthrough'

PIPELINE

PIPELINE = 'pipeline'

PUBLIC

PUBLIC = 'public'

RESULT

RESULT = 'result'

SDS

SDS = 'sds'

FileCategory

Bases: str, Enum

Attributes:

Name Type Description
SDS
OTHER

SDS

SDS = 'SDS'

OTHER

OTHER = 'Other'

SignURLPOSTFile

Bases: BaseAlbertModel

Show JSON schema:
{
  "$defs": {
    "FileCategory": {
      "enum": [
        "SDS",
        "Other"
      ],
      "title": "FileCategory",
      "type": "string"
    },
    "FileNamespace": {
      "enum": [
        "agent",
        "breakthrough",
        "pipeline",
        "public",
        "result",
        "sds"
      ],
      "title": "FileNamespace",
      "type": "string"
    }
  },
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    },
    "namespace": {
      "$ref": "#/$defs/FileNamespace"
    },
    "contentType": {
      "title": "Contenttype",
      "type": "string"
    },
    "metadata": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Metadata"
    },
    "category": {
      "anyOf": [
        {
          "$ref": "#/$defs/FileCategory"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Url"
    }
  },
  "required": [
    "name",
    "namespace",
    "contentType"
  ],
  "title": "SignURLPOSTFile",
  "type": "object"
}

Fields:

name

name: str

namespace

namespace: FileNamespace

content_type

content_type: str

metadata

metadata: list[dict[str, str]] | None = None

category

category: FileCategory | None = None

url

url: str | None = None

SignURLPOST

Bases: BaseAlbertModel

Show JSON schema:
{
  "$defs": {
    "FileCategory": {
      "enum": [
        "SDS",
        "Other"
      ],
      "title": "FileCategory",
      "type": "string"
    },
    "FileNamespace": {
      "enum": [
        "agent",
        "breakthrough",
        "pipeline",
        "public",
        "result",
        "sds"
      ],
      "title": "FileNamespace",
      "type": "string"
    },
    "SignURLPOSTFile": {
      "properties": {
        "name": {
          "title": "Name",
          "type": "string"
        },
        "namespace": {
          "$ref": "#/$defs/FileNamespace"
        },
        "contentType": {
          "title": "Contenttype",
          "type": "string"
        },
        "metadata": {
          "anyOf": [
            {
              "items": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Metadata"
        },
        "category": {
          "anyOf": [
            {
              "$ref": "#/$defs/FileCategory"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Url"
        }
      },
      "required": [
        "name",
        "namespace",
        "contentType"
      ],
      "title": "SignURLPOSTFile",
      "type": "object"
    }
  },
  "properties": {
    "files": {
      "items": {
        "$ref": "#/$defs/SignURLPOSTFile"
      },
      "title": "Files",
      "type": "array"
    }
  },
  "required": [
    "files"
  ],
  "title": "SignURLPOST",
  "type": "object"
}

Fields:

files

FileInfo

Bases: BaseAlbertModel

Show JSON schema:
{
  "$defs": {
    "FileNamespace": {
      "enum": [
        "agent",
        "breakthrough",
        "pipeline",
        "public",
        "result",
        "sds"
      ],
      "title": "FileNamespace",
      "type": "string"
    }
  },
  "properties": {
    "name": {
      "title": "Name",
      "type": "string"
    },
    "size": {
      "title": "Size",
      "type": "integer"
    },
    "etag": {
      "title": "Etag",
      "type": "string"
    },
    "namespace": {
      "anyOf": [
        {
          "$ref": "#/$defs/FileNamespace"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "contentType": {
      "title": "Contenttype",
      "type": "string"
    },
    "lastModified": {
      "format": "date-time",
      "title": "Lastmodified",
      "type": "string"
    },
    "metadata": {
      "items": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object"
      },
      "title": "Metadata",
      "type": "array"
    }
  },
  "required": [
    "name",
    "size",
    "etag",
    "contentType",
    "lastModified"
  ],
  "title": "FileInfo",
  "type": "object"
}

Fields:

name

name: str

size

size: int

etag

etag: str

namespace

namespace: FileNamespace | None = None

content_type

content_type: str

last_modified

last_modified: datetime

metadata

metadata: list[dict[str, str]]