Skip to content

Commit 9adc7d2

Browse files
authored
Added support for List File V2 (#14385)
1 parent cfa0f14 commit 9adc7d2

File tree

3 files changed

+238
-0
lines changed

3 files changed

+238
-0
lines changed

specification/storage/data-plane/Microsoft.FileStorage/preview/2020-04-08/file.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,6 +2386,12 @@
23862386
},
23872387
{
23882388
"$ref": "#/parameters/ApiVersionParameter"
2389+
},
2390+
{
2391+
"$ref": "#/parameters/ListFilesInclude"
2392+
},
2393+
{
2394+
"$ref": "#/parameters/ListFilesExtendedInfo"
23892395
}
23902396
],
23912397
"responses": {
@@ -5012,6 +5018,18 @@
50125018
"properties": {
50135019
"Name": {
50145020
"type": "string"
5021+
},
5022+
"FileId": {
5023+
"type": "string"
5024+
},
5025+
"Properties": {
5026+
"$ref": "#/definitions/FileProperty"
5027+
},
5028+
"Attributes": {
5029+
"type": "string"
5030+
},
5031+
"PermissionKey": {
5032+
"type": "string"
50155033
}
50165034
}
50175035
},
@@ -5029,8 +5047,17 @@
50295047
"Name": {
50305048
"type": "string"
50315049
},
5050+
"FileId": {
5051+
"type": "string"
5052+
},
50325053
"Properties": {
50335054
"$ref": "#/definitions/FileProperty"
5055+
},
5056+
"Attributes": {
5057+
"type": "string"
5058+
},
5059+
"PermissionKey": {
5060+
"type": "string"
50345061
}
50355062
}
50365063
},
@@ -5045,6 +5072,22 @@
50455072
"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.",
50465073
"type": "integer",
50475074
"format": "int64"
5075+
},
5076+
"CreationTime": {
5077+
"type": "string",
5078+
"format": "date-time"
5079+
},
5080+
"LastAccessTime": {
5081+
"type": "string",
5082+
"format": "date-time"
5083+
},
5084+
"LastWriteTime": {
5085+
"type": "string",
5086+
"format": "date-time"
5087+
},
5088+
"Etag": {
5089+
"type": "string",
5090+
"format": "etag"
50485091
}
50495092
}
50505093
},
@@ -6048,6 +6091,36 @@
60486091
"x-ms-parameter-location": "method",
60496092
"description": "Specifies the current lease ID on the resource."
60506093
},
6094+
"ListFilesInclude": {
6095+
"name": "include",
6096+
"in": "query",
6097+
"description": "Include this parameter to specify one or more datasets to include in the response.",
6098+
"required": false,
6099+
"type": "array",
6100+
"collectionFormat": "csv",
6101+
"items": {
6102+
"type": "string",
6103+
"enum": [
6104+
"Timestamps",
6105+
"Etag",
6106+
"Attributes",
6107+
"PermissionKey"
6108+
],
6109+
"x-ms-enum": {
6110+
"name": "ListFilesIncludeType",
6111+
"modelAsString": false
6112+
}
6113+
},
6114+
"x-ms-parameter-location": "method"
6115+
},
6116+
"ListFilesExtendedInfo": {
6117+
"name": "x-ms-file-extended-info",
6118+
"x-ms-client-name": "includeExtendedInfo",
6119+
"x-ms-parameter-location": "method",
6120+
"in": "header",
6121+
"type": "boolean",
6122+
"required": false
6123+
},
60516124
"ListSharesInclude": {
60526125
"name": "include",
60536126
"in": "query",

specification/storage/data-plane/Microsoft.FileStorage/preview/2020-06-12/file.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,6 +2386,12 @@
23862386
},
23872387
{
23882388
"$ref": "#/parameters/ApiVersionParameter"
2389+
},
2390+
{
2391+
"$ref": "#/parameters/ListFilesInclude"
2392+
},
2393+
{
2394+
"$ref": "#/parameters/ListFilesExtendedInfo"
23892395
}
23902396
],
23912397
"responses": {
@@ -5012,6 +5018,18 @@
50125018
"properties": {
50135019
"Name": {
50145020
"type": "string"
5021+
},
5022+
"FileId": {
5023+
"type": "string"
5024+
},
5025+
"Properties": {
5026+
"$ref": "#/definitions/FileProperty"
5027+
},
5028+
"Attributes": {
5029+
"type": "string"
5030+
},
5031+
"PermissionKey": {
5032+
"type": "string"
50155033
}
50165034
}
50175035
},
@@ -5029,8 +5047,17 @@
50295047
"Name": {
50305048
"type": "string"
50315049
},
5050+
"FileId": {
5051+
"type": "string"
5052+
},
50325053
"Properties": {
50335054
"$ref": "#/definitions/FileProperty"
5055+
},
5056+
"Attributes": {
5057+
"type": "string"
5058+
},
5059+
"PermissionKey": {
5060+
"type": "string"
50345061
}
50355062
}
50365063
},
@@ -5045,6 +5072,30 @@
50455072
"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.",
50465073
"type": "integer",
50475074
"format": "int64"
5075+
},
5076+
"CreationTime": {
5077+
"type": "string",
5078+
"format": "date-time"
5079+
},
5080+
"LastAccessTime": {
5081+
"type": "string",
5082+
"format": "date-time"
5083+
},
5084+
"LastWriteTime": {
5085+
"type": "string",
5086+
"format": "date-time"
5087+
},
5088+
"ChangeTime": {
5089+
"type": "string",
5090+
"format": "date-time"
5091+
},
5092+
"Last-Modified": {
5093+
"type": "string",
5094+
"format": "date-time-rfc1123"
5095+
},
5096+
"Etag": {
5097+
"type": "string",
5098+
"format": "etag"
50485099
}
50495100
}
50505101
},
@@ -6048,6 +6099,36 @@
60486099
"x-ms-parameter-location": "method",
60496100
"description": "Specifies the current lease ID on the resource."
60506101
},
6102+
"ListFilesInclude": {
6103+
"name": "include",
6104+
"in": "query",
6105+
"description": "Include this parameter to specify one or more datasets to include in the response.",
6106+
"required": false,
6107+
"type": "array",
6108+
"collectionFormat": "csv",
6109+
"items": {
6110+
"type": "string",
6111+
"enum": [
6112+
"Timestamps",
6113+
"Etag",
6114+
"Attributes",
6115+
"PermissionKey"
6116+
],
6117+
"x-ms-enum": {
6118+
"name": "ListFilesIncludeType",
6119+
"modelAsString": false
6120+
}
6121+
},
6122+
"x-ms-parameter-location": "method"
6123+
},
6124+
"ListFilesExtendedInfo": {
6125+
"name": "x-ms-file-extended-info",
6126+
"x-ms-client-name": "includeExtendedInfo",
6127+
"x-ms-parameter-location": "method",
6128+
"in": "header",
6129+
"type": "boolean",
6130+
"required": false
6131+
},
60516132
"ListSharesInclude": {
60526133
"name": "include",
60536134
"in": "query",

specification/storage/data-plane/Microsoft.FileStorage/preview/2020-10-02/file.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,6 +2386,12 @@
23862386
},
23872387
{
23882388
"$ref": "#/parameters/ApiVersionParameter"
2389+
},
2390+
{
2391+
"$ref": "#/parameters/ListFilesInclude"
2392+
},
2393+
{
2394+
"$ref": "#/parameters/ListFilesExtendedInfo"
23892395
}
23902396
],
23912397
"responses": {
@@ -5015,6 +5021,18 @@
50155021
"properties": {
50165022
"Name": {
50175023
"type": "string"
5024+
},
5025+
"FileId": {
5026+
"type": "string"
5027+
},
5028+
"Properties": {
5029+
"$ref": "#/definitions/FileProperty"
5030+
},
5031+
"Attributes": {
5032+
"type": "string"
5033+
},
5034+
"PermissionKey": {
5035+
"type": "string"
50185036
}
50195037
}
50205038
},
@@ -5032,8 +5050,17 @@
50325050
"Name": {
50335051
"type": "string"
50345052
},
5053+
"FileId": {
5054+
"type": "string"
5055+
},
50355056
"Properties": {
50365057
"$ref": "#/definitions/FileProperty"
5058+
},
5059+
"Attributes": {
5060+
"type": "string"
5061+
},
5062+
"PermissionKey": {
5063+
"type": "string"
50375064
}
50385065
}
50395066
},
@@ -5048,6 +5075,30 @@
50485075
"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.",
50495076
"type": "integer",
50505077
"format": "int64"
5078+
},
5079+
"CreationTime": {
5080+
"type": "string",
5081+
"format": "date-time"
5082+
},
5083+
"LastAccessTime": {
5084+
"type": "string",
5085+
"format": "date-time"
5086+
},
5087+
"LastWriteTime": {
5088+
"type": "string",
5089+
"format": "date-time"
5090+
},
5091+
"ChangeTime": {
5092+
"type": "string",
5093+
"format": "date-time"
5094+
},
5095+
"Last-Modified": {
5096+
"type": "string",
5097+
"format": "date-time-rfc1123"
5098+
},
5099+
"Etag": {
5100+
"type": "string",
5101+
"format": "etag"
50515102
}
50525103
}
50535104
},
@@ -5203,6 +5254,9 @@
52035254
},
52045255
"NextMarker": {
52055256
"type": "string"
5257+
},
5258+
"DirectoryId": {
5259+
"type": "string"
52065260
}
52075261
}
52085262
},
@@ -6060,6 +6114,36 @@
60606114
"x-ms-parameter-location": "method",
60616115
"description": "Specifies the current lease ID on the resource."
60626116
},
6117+
"ListFilesInclude": {
6118+
"name": "include",
6119+
"in": "query",
6120+
"description": "Include this parameter to specify one or more datasets to include in the response.",
6121+
"required": false,
6122+
"type": "array",
6123+
"collectionFormat": "csv",
6124+
"items": {
6125+
"type": "string",
6126+
"enum": [
6127+
"Timestamps",
6128+
"Etag",
6129+
"Attributes",
6130+
"PermissionKey"
6131+
],
6132+
"x-ms-enum": {
6133+
"name": "ListFilesIncludeType",
6134+
"modelAsString": false
6135+
}
6136+
},
6137+
"x-ms-parameter-location": "method"
6138+
},
6139+
"ListFilesExtendedInfo": {
6140+
"name": "x-ms-file-extended-info",
6141+
"x-ms-client-name": "includeExtendedInfo",
6142+
"x-ms-parameter-location": "method",
6143+
"in": "header",
6144+
"type": "boolean",
6145+
"required": false
6146+
},
60636147
"ListSharesInclude": {
60646148
"name": "include",
60656149
"in": "query",

0 commit comments

Comments
 (0)