{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-gemini/json-schema/google-gemini-get-environment-files-response-schema.json",
  "title": "GetEnvironmentFilesResponse",
  "description": "Response for `GetEnvironmentFiles`.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-gemini-environments-api-openapi.yml#/components/schemas/GetEnvironmentFilesResponse",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnvironmentFile"
      },
      "description": "If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`)."
    },
    "next_page_token": {
      "type": "string",
      "description": "Pagination token for directory listing. NOLINT"
    }
  },
  "type": "object",
  "$defs": {
    "EnvironmentFile": {
      "type": "object",
      "description": "Metadata for a file or directory within an environment.",
      "properties": {
        "type": {
          "description": "Output only. The type of the entry.",
          "type": "string",
          "enum": [
            "TYPE_UNSPECIFIED",
            "FILE",
            "DIRECTORY"
          ],
          "readOnly": true
        },
        "name": {
          "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\").",
          "type": "string",
          "readOnly": true
        },
        "mime_type": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\"). Empty for directories. NOLINT"
        },
        "path": {
          "description": "Output only. The full relative path within the environment (e.g., \"workspace/src/main.py\").",
          "type": "string",
          "readOnly": true
        },
        "modified": {
          "type": "string",
          "description": "Output only. The modification time of the file/directory.",
          "readOnly": true,
          "format": "google-datetime"
        },
        "created": {
          "readOnly": true,
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The creation time of the file/directory."
        },
        "size_bytes": {
          "description": "Output only. The size of the file/directory in bytes. NOLINT",
          "format": "int64",
          "type": "string",
          "readOnly": true
        }
      }
    }
  }
}