Skip to content

Commit

Permalink
Added support for List File V2 (#14385)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcc-msft authored Jun 4, 2021
1 parent cfa0f14 commit 9adc7d2
Show file tree
Hide file tree
Showing 3 changed files with 238 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,12 @@
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ListFilesInclude"
},
{
"$ref": "#/parameters/ListFilesExtendedInfo"
}
],
"responses": {
Expand Down Expand Up @@ -5012,6 +5018,18 @@
"properties": {
"Name": {
"type": "string"
},
"FileId": {
"type": "string"
},
"Properties": {
"$ref": "#/definitions/FileProperty"
},
"Attributes": {
"type": "string"
},
"PermissionKey": {
"type": "string"
}
}
},
Expand All @@ -5029,8 +5047,17 @@
"Name": {
"type": "string"
},
"FileId": {
"type": "string"
},
"Properties": {
"$ref": "#/definitions/FileProperty"
},
"Attributes": {
"type": "string"
},
"PermissionKey": {
"type": "string"
}
}
},
Expand All @@ -5045,6 +5072,22 @@
"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"
},
"Etag": {
"type": "string",
"format": "etag"
}
}
},
Expand Down Expand Up @@ -6048,6 +6091,36 @@
"x-ms-parameter-location": "method",
"description": "Specifies the current lease ID on the resource."
},
"ListFilesInclude": {
"name": "include",
"in": "query",
"description": "Include this parameter to specify one or more datasets to include in the response.",
"required": false,
"type": "array",
"collectionFormat": "csv",
"items": {
"type": "string",
"enum": [
"Timestamps",
"Etag",
"Attributes",
"PermissionKey"
],
"x-ms-enum": {
"name": "ListFilesIncludeType",
"modelAsString": false
}
},
"x-ms-parameter-location": "method"
},
"ListFilesExtendedInfo": {
"name": "x-ms-file-extended-info",
"x-ms-client-name": "includeExtendedInfo",
"x-ms-parameter-location": "method",
"in": "header",
"type": "boolean",
"required": false
},
"ListSharesInclude": {
"name": "include",
"in": "query",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,12 @@
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ListFilesInclude"
},
{
"$ref": "#/parameters/ListFilesExtendedInfo"
}
],
"responses": {
Expand Down Expand Up @@ -5012,6 +5018,18 @@
"properties": {
"Name": {
"type": "string"
},
"FileId": {
"type": "string"
},
"Properties": {
"$ref": "#/definitions/FileProperty"
},
"Attributes": {
"type": "string"
},
"PermissionKey": {
"type": "string"
}
}
},
Expand All @@ -5029,8 +5047,17 @@
"Name": {
"type": "string"
},
"FileId": {
"type": "string"
},
"Properties": {
"$ref": "#/definitions/FileProperty"
},
"Attributes": {
"type": "string"
},
"PermissionKey": {
"type": "string"
}
}
},
Expand All @@ -5045,6 +5072,30 @@
"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",
"format": "etag"
}
}
},
Expand Down Expand Up @@ -6048,6 +6099,36 @@
"x-ms-parameter-location": "method",
"description": "Specifies the current lease ID on the resource."
},
"ListFilesInclude": {
"name": "include",
"in": "query",
"description": "Include this parameter to specify one or more datasets to include in the response.",
"required": false,
"type": "array",
"collectionFormat": "csv",
"items": {
"type": "string",
"enum": [
"Timestamps",
"Etag",
"Attributes",
"PermissionKey"
],
"x-ms-enum": {
"name": "ListFilesIncludeType",
"modelAsString": false
}
},
"x-ms-parameter-location": "method"
},
"ListFilesExtendedInfo": {
"name": "x-ms-file-extended-info",
"x-ms-client-name": "includeExtendedInfo",
"x-ms-parameter-location": "method",
"in": "header",
"type": "boolean",
"required": false
},
"ListSharesInclude": {
"name": "include",
"in": "query",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,12 @@
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/ListFilesInclude"
},
{
"$ref": "#/parameters/ListFilesExtendedInfo"
}
],
"responses": {
Expand Down Expand Up @@ -5015,6 +5021,18 @@
"properties": {
"Name": {
"type": "string"
},
"FileId": {
"type": "string"
},
"Properties": {
"$ref": "#/definitions/FileProperty"
},
"Attributes": {
"type": "string"
},
"PermissionKey": {
"type": "string"
}
}
},
Expand All @@ -5032,8 +5050,17 @@
"Name": {
"type": "string"
},
"FileId": {
"type": "string"
},
"Properties": {
"$ref": "#/definitions/FileProperty"
},
"Attributes": {
"type": "string"
},
"PermissionKey": {
"type": "string"
}
}
},
Expand All @@ -5048,6 +5075,30 @@
"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",
"format": "etag"
}
}
},
Expand Down Expand Up @@ -5203,6 +5254,9 @@
},
"NextMarker": {
"type": "string"
},
"DirectoryId": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -6060,6 +6114,36 @@
"x-ms-parameter-location": "method",
"description": "Specifies the current lease ID on the resource."
},
"ListFilesInclude": {
"name": "include",
"in": "query",
"description": "Include this parameter to specify one or more datasets to include in the response.",
"required": false,
"type": "array",
"collectionFormat": "csv",
"items": {
"type": "string",
"enum": [
"Timestamps",
"Etag",
"Attributes",
"PermissionKey"
],
"x-ms-enum": {
"name": "ListFilesIncludeType",
"modelAsString": false
}
},
"x-ms-parameter-location": "method"
},
"ListFilesExtendedInfo": {
"name": "x-ms-file-extended-info",
"x-ms-client-name": "includeExtendedInfo",
"x-ms-parameter-location": "method",
"in": "header",
"type": "boolean",
"required": false
},
"ListSharesInclude": {
"name": "include",
"in": "query",
Expand Down

0 comments on commit 9adc7d2

Please sign in to comment.