Skip to content

Commit 4ecb28a

Browse files
authored
Add share permission body to storage files (#7081)
* Add share permission body to storage files * Add produces to getPermission * Move response body from create to get
1 parent 325e210 commit 4ecb28a

File tree

1 file changed

+35
-0
lines changed
  • specification/storage/data-plane/Microsoft.FileStorage/preview/2019-02-02

1 file changed

+35
-0
lines changed

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,17 @@
516516
],
517517
"operationId": "Share_CreatePermission",
518518
"description": "Create a permission (a security descriptor).",
519+
"consumes": [
520+
"application/json"
521+
],
519522
"parameters": [{
520523
"$ref": "#/parameters/Timeout"
521524
},
522525
{
523526
"$ref": "#/parameters/ApiVersionParameter"
527+
},
528+
{
529+
"$ref": "#/parameters/SharePermission"
524530
}
525531
],
526532
"responses": {
@@ -569,6 +575,9 @@
569575
],
570576
"operationId": "Share_GetPermission",
571577
"description": "Returns the permission (security descriptor) for a given key",
578+
"produces": [
579+
"application/json"
580+
],
572581
"parameters": [{
573582
"$ref": "#/parameters/FilePermissionKey"
574583
},
@@ -598,6 +607,9 @@
598607
"format": "date-time-rfc1123",
599608
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
600609
}
610+
},
611+
"schema": {
612+
"$ref": "#/definitions/SharePermission"
601613
}
602614
},
603615
"default": {
@@ -3971,6 +3983,19 @@
39713983
}
39723984
}
39733985
}
3986+
},
3987+
"SharePermission": {
3988+
"description": "A permission (a security descriptor) at the share level.",
3989+
"type": "object",
3990+
"required": [
3991+
"permission"
3992+
],
3993+
"properties": {
3994+
"permission": {
3995+
"type": "string",
3996+
"description": "The permission in the Security Descriptor Definition Language (SDDL)."
3997+
}
3998+
}
39743999
}
39754000
},
39764001
"parameters": {
@@ -4404,6 +4429,16 @@
44044429
"type": "integer",
44054430
"minimum": 0,
44064431
"x-ms-parameter-location": "method"
4432+
},
4433+
"SharePermission": {
4434+
"name": "sharePermission",
4435+
"in": "body",
4436+
"description": "A permission (a security descriptor) at the share level.",
4437+
"required": true,
4438+
"schema": {
4439+
"$ref": "#/definitions/SharePermission"
4440+
},
4441+
"x-ms-parameter-location": "method"
44074442
}
44084443
}
44094444
}

0 commit comments

Comments
 (0)