{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-file-storage/json-schema/azure-file-storage-list-files-and-directories-segment-response-schema.json",
  "title": "ListFilesAndDirectoriesSegmentResponse",
  "description": "An enumeration of directories and files.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-file-storage-openapi.yml#/components/schemas/ListFilesAndDirectoriesSegmentResponse",
  "type": "object",
  "required": [
    "ServiceEndpoint",
    "ShareName",
    "DirectoryPath",
    "Prefix",
    "NextMarker",
    "Segment"
  ],
  "properties": {
    "ServiceEndpoint": {
      "type": "string"
    },
    "ShareName": {
      "type": "string"
    },
    "ShareSnapshot": {
      "type": "string"
    },
    "Encoded": {
      "type": "boolean"
    },
    "DirectoryPath": {
      "type": "string"
    },
    "Prefix": {
      "$ref": "#/$defs/StringEncoded"
    },
    "Marker": {
      "type": "string"
    },
    "MaxResults": {
      "type": "integer"
    },
    "Segment": {
      "$ref": "#/$defs/FilesAndDirectoriesListSegment"
    },
    "NextMarker": {
      "type": "string"
    },
    "DirectoryId": {
      "type": "string"
    }
  },
  "$defs": {
    "DirectoryItem": {
      "description": "A listed directory item.",
      "type": "object",
      "required": [
        "Name"
      ],
      "properties": {
        "Name": {
          "$ref": "#/$defs/StringEncoded"
        },
        "FileId": {
          "type": "string"
        },
        "Properties": {
          "$ref": "#/$defs/FileProperty"
        },
        "Attributes": {
          "type": "string"
        },
        "PermissionKey": {
          "type": "string"
        }
      }
    },
    "FileItem": {
      "description": "A listed file item.",
      "type": "object",
      "required": [
        "Name",
        "Properties"
      ],
      "properties": {
        "Name": {
          "$ref": "#/$defs/StringEncoded"
        },
        "FileId": {
          "type": "string"
        },
        "Properties": {
          "$ref": "#/$defs/FileProperty"
        },
        "Attributes": {
          "type": "string"
        },
        "PermissionKey": {
          "type": "string"
        }
      }
    },
    "FileProperty": {
      "description": "File properties.",
      "type": "object",
      "required": [
        "Content-Length"
      ],
      "properties": {
        "Content-Length": {
          "description": "Content length of the file. This value may not be up-to-date since an SMB client may have modified the file locally. The value of Content-Length may not reflect that fact until the handle is closed or the op-lock is broken. To retrieve current property values, call Get File Properties.",
          "type": "integer",
          "format": "int64"
        },
        "CreationTime": {
          "type": "string",
          "format": "date-time"
        },
        "LastAccessTime": {
          "type": "string",
          "format": "date-time"
        },
        "LastWriteTime": {
          "type": "string",
          "format": "date-time"
        },
        "ChangeTime": {
          "type": "string",
          "format": "date-time"
        },
        "Last-Modified": {
          "type": "string",
          "format": "date-time-rfc1123"
        },
        "Etag": {
          "type": "string"
        }
      }
    },
    "FilesAndDirectoriesListSegment": {
      "description": "Abstract for entries that can be listed from Directory.",
      "type": "object",
      "required": [
        "DirectoryItems",
        "FileItems"
      ],
      "properties": {
        "DirectoryItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DirectoryItem"
          }
        },
        "FileItems": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FileItem"
          }
        }
      }
    },
    "StringEncoded": {
      "type": "object",
      "properties": {
        "Encoded": {
          "type": "boolean"
        },
        "content": {
          "type": "string"
        }
      }
    }
  }
}