{
  "components": {
    "schemas": {
      "ActiveWorkloadRunPage": {
        "properties": {
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nextcursor"
          },
          "runs": {
            "items": {
              "$ref": "#/components/schemas/WorkloadRunSummary"
            },
            "title": "Runs",
            "type": "array"
          }
        },
        "required": [
          "runs"
        ],
        "title": "ActiveWorkloadRunPage",
        "type": "object"
      },
      "AdHocWorkloadRunCreate": {
        "additionalProperties": false,
        "properties": {
          "spec": {
            "$ref": "#/components/schemas/WorkloadSpec"
          }
        },
        "required": [
          "spec"
        ],
        "title": "AdHocWorkloadRunCreate",
        "type": "object"
      },
      "EnvironmentVariable": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "minLength": 1,
            "pattern": "^[A-Za-z_][A-Za-z0-9_]*$",
            "title": "Name",
            "type": "string"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "name",
          "value"
        ],
        "title": "EnvironmentVariable",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "ImageBuildCondition": {
        "properties": {
          "limitingResources": {
            "anyOf": [
              {
                "items": {
                  "enum": [
                    "cpu",
                    "memory",
                    "gpu"
                  ],
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limitingresources"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "status": {
            "enum": [
              "True",
              "False",
              "Unknown"
            ],
            "title": "Status",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "status"
        ],
        "title": "ImageBuildCondition",
        "type": "object"
      },
      "ImageBuildPage": {
        "properties": {
          "builds": {
            "items": {
              "$ref": "#/components/schemas/ImageBuildSummary"
            },
            "title": "Builds",
            "type": "array"
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nextcursor"
          }
        },
        "required": [
          "builds"
        ],
        "title": "ImageBuildPage",
        "type": "object"
      },
      "ImageBuildRequest": {
        "additionalProperties": false,
        "properties": {
          "buildArgs": {
            "additionalProperties": {
              "type": "string"
            },
            "title": "Buildargs",
            "type": "object"
          },
          "contextPath": {
            "maxLength": 512,
            "minLength": 1,
            "title": "Contextpath",
            "type": "string"
          },
          "cpu": {
            "title": "Cpu",
            "type": "string"
          },
          "dockerfilePath": {
            "maxLength": 512,
            "minLength": 1,
            "title": "Dockerfilepath",
            "type": "string"
          },
          "image": {
            "$ref": "#/components/schemas/ImageDestination"
          },
          "memory": {
            "title": "Memory",
            "type": "string"
          },
          "volume": {
            "default": "default",
            "maxLength": 63,
            "minLength": 1,
            "title": "Volume",
            "type": "string"
          }
        },
        "required": [
          "dockerfilePath",
          "contextPath",
          "image"
        ],
        "title": "ImageBuildRequest",
        "type": "object"
      },
      "ImageBuildResponse": {
        "properties": {
          "acceptedAt": {
            "format": "date-time",
            "title": "Acceptedat",
            "type": "string"
          },
          "buildId": {
            "title": "Buildid",
            "type": "string"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/ImageBuildCondition"
            },
            "title": "Conditions",
            "type": "array"
          },
          "digest": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Digest"
          },
          "finishedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finishedat"
          },
          "image": {
            "title": "Image",
            "type": "string"
          },
          "phase": {
            "enum": [
              "Pending",
              "Running",
              "Failing",
              "Canceling",
              "Succeeded",
              "Failed",
              "Canceled",
              "Unknown"
            ],
            "title": "Phase",
            "type": "string"
          },
          "request": {
            "$ref": "#/components/schemas/ImageBuildRequest"
          },
          "scheduledAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduledat"
          }
        },
        "required": [
          "buildId",
          "acceptedAt",
          "request",
          "image",
          "phase",
          "conditions"
        ],
        "title": "ImageBuildResponse",
        "type": "object"
      },
      "ImageBuildSummary": {
        "properties": {
          "acceptedAt": {
            "format": "date-time",
            "title": "Acceptedat",
            "type": "string"
          },
          "buildId": {
            "title": "Buildid",
            "type": "string"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/ImageBuildCondition"
            },
            "title": "Conditions",
            "type": "array"
          },
          "digest": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Digest"
          },
          "finishedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finishedat"
          },
          "image": {
            "title": "Image",
            "type": "string"
          },
          "phase": {
            "enum": [
              "Pending",
              "Running",
              "Failing",
              "Canceling",
              "Succeeded",
              "Failed",
              "Canceled",
              "Unknown"
            ],
            "title": "Phase",
            "type": "string"
          },
          "scheduledAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduledat"
          }
        },
        "required": [
          "buildId",
          "acceptedAt",
          "image",
          "phase",
          "conditions"
        ],
        "title": "ImageBuildSummary",
        "type": "object"
      },
      "ImageDestination": {
        "additionalProperties": false,
        "properties": {
          "repository": {
            "maxLength": 255,
            "minLength": 1,
            "title": "Repository",
            "type": "string"
          },
          "tag": {
            "maxLength": 128,
            "minLength": 1,
            "title": "Tag",
            "type": "string"
          }
        },
        "required": [
          "repository",
          "tag"
        ],
        "title": "ImageDestination",
        "type": "object"
      },
      "RegistryArtifact": {
        "properties": {
          "digest": {
            "title": "Digest",
            "type": "string"
          },
          "pushedAt": {
            "format": "date-time",
            "title": "Pushedat",
            "type": "string"
          },
          "repository": {
            "title": "Repository",
            "type": "string"
          },
          "size": {
            "title": "Size",
            "type": "integer"
          },
          "tag": {
            "title": "Tag",
            "type": "string"
          }
        },
        "required": [
          "repository",
          "tag",
          "digest",
          "size",
          "pushedAt"
        ],
        "title": "RegistryArtifact",
        "type": "object"
      },
      "RegistryArtifactPage": {
        "properties": {
          "artifacts": {
            "items": {
              "$ref": "#/components/schemas/RegistryArtifact"
            },
            "title": "Artifacts",
            "type": "array"
          },
          "truncated": {
            "title": "Truncated",
            "type": "boolean"
          }
        },
        "required": [
          "artifacts",
          "truncated"
        ],
        "title": "RegistryArtifactPage",
        "type": "object"
      },
      "StorageCapacity": {
        "properties": {
          "bytes": {
            "title": "Bytes",
            "type": "integer"
          },
          "quantity": {
            "title": "Quantity",
            "type": "string"
          }
        },
        "required": [
          "bytes",
          "quantity"
        ],
        "title": "StorageCapacity",
        "type": "object"
      },
      "StoragePvc": {
        "properties": {
          "directory_name": {
            "title": "Directory Name",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "directory_name"
        ],
        "title": "StoragePvc",
        "type": "object"
      },
      "StoragePvcPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/StoragePvc"
            },
            "title": "Items",
            "type": "array"
          }
        },
        "required": [
          "items"
        ],
        "title": "StoragePvcPage",
        "type": "object"
      },
      "StorageSummary": {
        "properties": {
          "activeRequested": {
            "$ref": "#/components/schemas/StorageCapacity"
          },
          "activeVolumeCount": {
            "title": "Activevolumecount",
            "type": "integer"
          },
          "customerMaximumTotalSize": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Customermaximumtotalsize"
          },
          "maximumVolumeSize": {
            "title": "Maximumvolumesize",
            "type": "string"
          },
          "minimumVolumeSize": {
            "title": "Minimumvolumesize",
            "type": "string"
          },
          "namespaceMaximumSize": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Namespacemaximumsize"
          },
          "quotaUsed": {
            "$ref": "#/components/schemas/StorageCapacity"
          },
          "terminatingVolumeCount": {
            "title": "Terminatingvolumecount",
            "type": "integer"
          }
        },
        "required": [
          "activeRequested",
          "quotaUsed",
          "activeVolumeCount",
          "terminatingVolumeCount",
          "minimumVolumeSize",
          "maximumVolumeSize",
          "customerMaximumTotalSize",
          "namespaceMaximumSize"
        ],
        "title": "StorageSummary",
        "type": "object"
      },
      "StorageVolume": {
        "properties": {
          "accessPhase": {
            "anyOf": [
              {
                "enum": [
                  "Pending",
                  "Ready",
                  "Failed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accessphase"
          },
          "capacity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Capacity"
          },
          "createdAt": {
            "format": "date-time",
            "title": "Createdat",
            "type": "string"
          },
          "deleting": {
            "title": "Deleting",
            "type": "boolean"
          },
          "directoryName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Directoryname"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "ownership": {
            "enum": [
              "default",
              "customer",
              "external"
            ],
            "title": "Ownership",
            "type": "string"
          },
          "phase": {
            "title": "Phase",
            "type": "string"
          },
          "requestedSize": {
            "title": "Requestedsize",
            "type": "string"
          },
          "storageClass": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Storageclass"
          }
        },
        "required": [
          "name",
          "requestedSize",
          "phase",
          "storageClass",
          "ownership",
          "deleting",
          "createdAt"
        ],
        "title": "StorageVolume",
        "type": "object"
      },
      "StorageVolumeCreate": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "maxLength": 63,
            "minLength": 1,
            "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
            "title": "Name",
            "type": "string"
          },
          "size": {
            "minLength": 1,
            "title": "Size",
            "type": "string"
          }
        },
        "required": [
          "name",
          "size"
        ],
        "title": "StorageVolumeCreate",
        "type": "object"
      },
      "StorageVolumeDeletion": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "phase": {
            "const": "Deleting",
            "default": "Deleting",
            "title": "Phase",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "title": "StorageVolumeDeletion",
        "type": "object"
      },
      "StorageVolumePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/StorageVolume"
            },
            "title": "Items",
            "type": "array"
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nextcursor"
          }
        },
        "required": [
          "items"
        ],
        "title": "StorageVolumePage",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      },
      "WorkloadComponent": {
        "additionalProperties": false,
        "properties": {
          "args": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Args"
          },
          "command": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Command"
          },
          "cpu": {
            "title": "Cpu",
            "type": "string"
          },
          "env": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/EnvironmentVariable"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Env"
          },
          "gpuRequest": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gpurequest"
          },
          "image": {
            "minLength": 1,
            "title": "Image",
            "type": "string"
          },
          "memory": {
            "title": "Memory",
            "type": "string"
          },
          "mode": {
            "enum": [
              "job",
              "service"
            ],
            "title": "Mode",
            "type": "string"
          },
          "mounts": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/WorkloadMount"
                },
                "maxItems": 4,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mounts"
          },
          "name": {
            "maxLength": 63,
            "minLength": 1,
            "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
            "title": "Name",
            "type": "string"
          },
          "ports": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/WorkloadPort"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ports"
          }
        },
        "required": [
          "name",
          "mode",
          "image"
        ],
        "title": "WorkloadComponent",
        "type": "object"
      },
      "WorkloadComponentStatus": {
        "properties": {
          "exitCode": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Exitcode"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "phase": {
            "enum": [
              "Pending",
              "Running",
              "Failing",
              "Succeeded",
              "Failed",
              "Canceling",
              "Canceled",
              "Unknown"
            ],
            "title": "Phase",
            "type": "string"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "remediation": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Remediation"
          },
          "scheduledAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scheduledat"
          }
        },
        "required": [
          "name",
          "phase"
        ],
        "title": "WorkloadComponentStatus",
        "type": "object"
      },
      "WorkloadCondition": {
        "properties": {
          "limitingResources": {
            "anyOf": [
              {
                "items": {
                  "enum": [
                    "cpu",
                    "memory",
                    "gpu"
                  ],
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Limitingresources"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "status": {
            "enum": [
              "True",
              "False",
              "Unknown"
            ],
            "title": "Status",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "status"
        ],
        "title": "WorkloadCondition",
        "type": "object"
      },
      "WorkloadCreate": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "maxLength": 63,
            "minLength": 1,
            "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
            "title": "Name",
            "type": "string"
          },
          "spec": {
            "$ref": "#/components/schemas/WorkloadSpec"
          }
        },
        "required": [
          "name",
          "spec"
        ],
        "title": "WorkloadCreate",
        "type": "object"
      },
      "WorkloadDefinitionReference": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          }
        },
        "required": [
          "name",
          "revision"
        ],
        "title": "WorkloadDefinitionReference",
        "type": "object"
      },
      "WorkloadDefinitionReplace": {
        "additionalProperties": false,
        "properties": {
          "spec": {
            "$ref": "#/components/schemas/WorkloadSpec"
          }
        },
        "required": [
          "spec"
        ],
        "title": "WorkloadDefinitionReplace",
        "type": "object"
      },
      "WorkloadDefinitionResponse": {
        "properties": {
          "name": {
            "title": "Name",
            "type": "string"
          },
          "revision": {
            "title": "Revision",
            "type": "integer"
          },
          "spec": {
            "$ref": "#/components/schemas/WorkloadSpec"
          }
        },
        "required": [
          "name",
          "revision",
          "spec"
        ],
        "title": "WorkloadDefinitionResponse",
        "type": "object"
      },
      "WorkloadMount": {
        "additionalProperties": false,
        "properties": {
          "path": {
            "maxLength": 4096,
            "minLength": 2,
            "pattern": "^/[^\\x00-\\x1f\\x7f]+$",
            "title": "Path",
            "type": "string"
          },
          "volume": {
            "maxLength": 63,
            "minLength": 1,
            "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
            "title": "Volume",
            "type": "string"
          }
        },
        "required": [
          "volume",
          "path"
        ],
        "title": "WorkloadMount",
        "type": "object"
      },
      "WorkloadPort": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "maxLength": 63,
            "minLength": 1,
            "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
            "title": "Name",
            "type": "string"
          },
          "port": {
            "maximum": 65535.0,
            "minimum": 1.0,
            "title": "Port",
            "type": "integer"
          }
        },
        "required": [
          "name",
          "port"
        ],
        "title": "WorkloadPort",
        "type": "object"
      },
      "WorkloadRunResponse": {
        "properties": {
          "acceptedAt": {
            "format": "date-time",
            "title": "Acceptedat",
            "type": "string"
          },
          "components": {
            "items": {
              "$ref": "#/components/schemas/WorkloadComponentStatus"
            },
            "title": "Components",
            "type": "array"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/WorkloadCondition"
            },
            "title": "Conditions",
            "type": "array"
          },
          "definition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkloadDefinitionReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "finishedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finishedat"
          },
          "phase": {
            "enum": [
              "Pending",
              "Running",
              "Failing",
              "Completing",
              "Succeeded",
              "Failed",
              "Canceling",
              "Canceled",
              "Unknown"
            ],
            "title": "Phase",
            "type": "string"
          },
          "runId": {
            "title": "Runid",
            "type": "string"
          },
          "spec": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkloadSpec"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "phase",
          "components",
          "runId",
          "acceptedAt"
        ],
        "title": "WorkloadRunResponse",
        "type": "object"
      },
      "WorkloadRunSummary": {
        "properties": {
          "acceptedAt": {
            "format": "date-time",
            "title": "Acceptedat",
            "type": "string"
          },
          "components": {
            "items": {
              "$ref": "#/components/schemas/WorkloadComponentStatus"
            },
            "title": "Components",
            "type": "array"
          },
          "conditions": {
            "items": {
              "$ref": "#/components/schemas/WorkloadCondition"
            },
            "title": "Conditions",
            "type": "array"
          },
          "definition": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/WorkloadDefinitionReference"
              },
              {
                "type": "null"
              }
            ]
          },
          "finishedAt": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finishedat"
          },
          "phase": {
            "enum": [
              "Pending",
              "Running",
              "Failing",
              "Completing",
              "Succeeded",
              "Failed",
              "Canceling",
              "Canceled",
              "Unknown"
            ],
            "title": "Phase",
            "type": "string"
          },
          "runId": {
            "title": "Runid",
            "type": "string"
          }
        },
        "required": [
          "phase",
          "components",
          "runId",
          "acceptedAt"
        ],
        "title": "WorkloadRunSummary",
        "type": "object"
      },
      "WorkloadSpec": {
        "additionalProperties": false,
        "properties": {
          "components": {
            "items": {
              "$ref": "#/components/schemas/WorkloadComponent"
            },
            "maxItems": 10,
            "minItems": 1,
            "title": "Components",
            "type": "array"
          }
        },
        "required": [
          "components"
        ],
        "title": "WorkloadSpec",
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Generated customer-facing subset for the controlled pilot.",
    "title": "OmniCloud customer-controller customer API",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/builds": {
      "get": {
        "operationId": "list_image_builds_api_v1_builds_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Limit"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "phase",
            "required": false,
            "schema": {
              "default": [],
              "items": {
                "type": "string"
              },
              "title": "Phase",
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageBuildPage"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List Image Builds",
        "tags": [
          "workloads"
        ]
      },
      "post": {
        "operationId": "create_image_build_api_v1_builds_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[\\x21-\\x7e]+$",
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageBuildRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageBuildResponse"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create Image Build",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/builds/{build_id}": {
      "get": {
        "operationId": "get_image_build_api_v1_builds__build_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "build_id",
            "required": true,
            "schema": {
              "title": "Build Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageBuildResponse"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get Image Build",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/builds/{build_id}/cancel": {
      "post": {
        "operationId": "cancel_image_build_api_v1_builds__build_id__cancel_post",
        "parameters": [
          {
            "in": "path",
            "name": "build_id",
            "required": true,
            "schema": {
              "title": "Build Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImageBuildResponse"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Cancel Image Build",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/builds/{build_id}/logs": {
      "get": {
        "operationId": "get_image_build_logs_api_v1_builds__build_id__logs_get",
        "parameters": [
          {
            "in": "path",
            "name": "build_id",
            "required": true,
            "schema": {
              "title": "Build Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "logql",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Logql"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Limit"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Get Image Build Logs Api V1 Builds  Build Id  Logs Get",
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get Image Build Logs",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/images": {
      "get": {
        "operationId": "list_registry_artifacts_api_v1_images_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Limit"
            }
          },
          {
            "in": "query",
            "name": "repository",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Repository"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistryArtifactPage"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List Registry Artifacts",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/storage/pvcs": {
      "get": {
        "operationId": "list_storage_pvcs_api_v1_storage_pvcs_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoragePvcPage"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List Storage Pvcs",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/storage/summary": {
      "get": {
        "operationId": "get_storage_summary_api_v1_storage_summary_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageSummary"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get Storage Summary",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/storage/volumes": {
      "get": {
        "operationId": "list_storage_volumes_api_v1_storage_volumes_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Limit"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageVolumePage"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List Storage Volumes",
        "tags": [
          "workloads"
        ]
      },
      "post": {
        "operationId": "create_storage_volume_api_v1_storage_volumes_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorageVolumeCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageVolume"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create Storage Volume",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/storage/volumes/{name}": {
      "delete": {
        "operationId": "delete_storage_volume_api_v1_storage_volumes__name__delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageVolumeDeletion"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete Storage Volume",
        "tags": [
          "workloads"
        ]
      },
      "get": {
        "operationId": "get_storage_volume_api_v1_storage_volumes__name__get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageVolume"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get Storage Volume",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/workloads": {
      "get": {
        "operationId": "list_workload_definitions_api_v1_workloads_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WorkloadDefinitionResponse"
                  },
                  "title": "Response List Workload Definitions Api V1 Workloads Get",
                  "type": "array"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List Workload Definitions",
        "tags": [
          "workloads"
        ]
      },
      "post": {
        "operationId": "create_workload_api_v1_workloads_post",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[\\x21-\\x7e]+$",
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/WorkloadCreate"
                  },
                  {
                    "$ref": "#/components/schemas/AdHocWorkloadRunCreate"
                  }
                ],
                "title": "Body"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkloadRunResponse"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create Workload",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/workloads/runs": {
      "get": {
        "operationId": "list_active_workload_runs_api_v1_workloads_runs_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Limit"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          },
          {
            "in": "query",
            "name": "phase",
            "required": false,
            "schema": {
              "default": [],
              "items": {
                "type": "string"
              },
              "title": "Phase",
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveWorkloadRunPage"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List Active Workload Runs",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/workloads/runs/{run_id}": {
      "get": {
        "operationId": "get_workload_run_api_v1_workloads_runs__run_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "title": "Run Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkloadRunResponse"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get Workload Run",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/workloads/runs/{run_id}/cancel": {
      "post": {
        "operationId": "cancel_workload_run_api_v1_workloads_runs__run_id__cancel_post",
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "title": "Run Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkloadRunResponse"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Cancel Workload Run",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/workloads/runs/{run_id}/logs": {
      "get": {
        "operationId": "get_workload_run_logs_api_v1_workloads_runs__run_id__logs_get",
        "parameters": [
          {
            "in": "path",
            "name": "run_id",
            "required": true,
            "schema": {
              "title": "Run Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "componentName",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Componentname"
            }
          },
          {
            "in": "query",
            "name": "logql",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Logql"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Limit"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Cursor"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "title": "Response Get Workload Run Logs Api V1 Workloads Runs  Run Id  Logs Get",
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get Workload Run Logs",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/workloads/{name}": {
      "get": {
        "operationId": "get_workload_definition_api_v1_workloads__name__get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkloadDefinitionResponse"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get Workload Definition",
        "tags": [
          "workloads"
        ]
      },
      "put": {
        "operationId": "replace_workload_definition_api_v1_workloads__name__put",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkloadDefinitionReplace"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkloadDefinitionResponse"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Replace Workload Definition",
        "tags": [
          "workloads"
        ]
      }
    },
    "/api/v1/workloads/{name}/run": {
      "post": {
        "operationId": "start_workload_run_api_v1_workloads__name__run_post",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "pattern": "^[\\x21-\\x7e]+$",
              "title": "Idempotency-Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkloadRunResponse"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Start Workload Run",
        "tags": [
          "workloads"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.dphi.space/customer-controller"
    }
  ]
}
