Skip to content

Commit 4e0e472

Browse files
authored
[Storage] Oauth support for copy source (#14404)
1 parent 5eafbbf commit 4e0e472

File tree

2 files changed

+36
-0
lines changed
  • specification/storage/data-plane
    • Microsoft.BlobStorage/preview/2020-10-02
    • Microsoft.FileStorage/preview/2020-10-02

2 files changed

+36
-0
lines changed

specification/storage/data-plane/Microsoft.BlobStorage/preview/2020-10-02/blob.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5202,6 +5202,9 @@
52025202
},
52035203
{
52045204
"$ref": "#/parameters/CopySourceBlobProperties"
5205+
},
5206+
{
5207+
"$ref": "#/parameters/CopySourceAuthorization"
52055208
}
52065209
],
52075210
"responses": {
@@ -6892,6 +6895,9 @@
68926895
},
68936896
{
68946897
"$ref": "#/parameters/LegalHoldOptional"
6898+
},
6899+
{
6900+
"$ref": "#/parameters/CopySourceAuthorization"
68956901
}
68966902
],
68976903
"responses": {
@@ -7472,6 +7478,9 @@
74727478
},
74737479
{
74747480
"$ref": "#/parameters/ClientRequestId"
7481+
},
7482+
{
7483+
"$ref": "#/parameters/CopySourceAuthorization"
74757484
}
74767485
],
74777486
"responses": {
@@ -8265,6 +8274,9 @@
82658274
},
82668275
{
82678276
"$ref": "#/parameters/ClientRequestId"
8277+
},
8278+
{
8279+
"$ref": "#/parameters/CopySourceAuthorization"
82688280
}
82698281
],
82708282
"responses": {
@@ -9198,6 +9210,9 @@
91989210
},
91999211
{
92009212
"$ref": "#/parameters/ClientRequestId"
9213+
},
9214+
{
9215+
"$ref": "#/parameters/CopySourceAuthorization"
92019216
}
92029217
],
92039218
"responses": {
@@ -12097,6 +12112,15 @@
1209712112
"x-ms-parameter-location": "method",
1209812113
"description": "Specifies the name of the source page blob snapshot. This value is a URL of up to 2 KB in length that specifies a page blob snapshot. The value should be URL-encoded as it would appear in a request URI. The source blob must either be public or must be authenticated via a shared access signature."
1209912114
},
12115+
"CopySourceAuthorization": {
12116+
"name": "x-ms-copy-source-authorization",
12117+
"x-ms-client-name": "copySourceAuthorization",
12118+
"in": "header",
12119+
"required": false,
12120+
"type": "string",
12121+
"x-ms-parameter-location": "method",
12122+
"description": "Only Bearer type is supported. Credentials should be a valid OAuth access token to copy source."
12123+
},
1210012124
"CopySourceBlobProperties": {
1210112125
"name": "x-ms-copy-source-blob-properties",
1210212126
"x-ms-client-name": "copySourceBlobProperties",

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4333,6 +4333,9 @@
43334333
},
43344334
{
43354335
"$ref": "#/parameters/LeaseIdOptional"
4336+
},
4337+
{
4338+
"$ref": "#/parameters/CopySourceAuthorization"
43364339
}
43374340
],
43384341
"responses": {
@@ -5719,6 +5722,15 @@
57195722
"x-ms-parameter-location": "method",
57205723
"description": "Specifies the URL of the source file or blob, up to 2 KB in length. To copy a file to another file within the same storage account, you may use Shared Key to authenticate the source file. If you are copying a file from another storage account, or if you are copying a blob from the same storage account or another storage account, then you must authenticate the source file or blob using a shared access signature. If the source is a public blob, no authentication is required to perform the copy operation. A file in a share snapshot can also be specified as a copy source."
57215724
},
5725+
"CopySourceAuthorization": {
5726+
"name": "x-ms-copy-source-authorization",
5727+
"x-ms-client-name": "copySourceAuthorization",
5728+
"in": "header",
5729+
"required": false,
5730+
"type": "string",
5731+
"x-ms-parameter-location": "method",
5732+
"description": "Only Bearer type is supported. Credentials should be a valid OAuth access token to copy source."
5733+
},
57225734
"FileCopyPermissionCopyMode": {
57235735
"name": "x-ms-file-permission-copy-mode",
57245736
"x-ms-client-name": "filePermissionCopyMode",

0 commit comments

Comments
 (0)