Skip to content

Commit

Permalink
Add share permission body to storage files (#7081)
Browse files Browse the repository at this point in the history
* Add share permission body to storage files

* Add produces to getPermission

* Move response body from create to get
  • Loading branch information
jianghaolu authored Sep 3, 2019
1 parent 325e210 commit 4ecb28a
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,17 @@
],
"operationId": "Share_CreatePermission",
"description": "Create a permission (a security descriptor).",
"consumes": [
"application/json"
],
"parameters": [{
"$ref": "#/parameters/Timeout"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SharePermission"
}
],
"responses": {
Expand Down Expand Up @@ -569,6 +575,9 @@
],
"operationId": "Share_GetPermission",
"description": "Returns the permission (security descriptor) for a given key",
"produces": [
"application/json"
],
"parameters": [{
"$ref": "#/parameters/FilePermissionKey"
},
Expand Down Expand Up @@ -598,6 +607,9 @@
"format": "date-time-rfc1123",
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
}
},
"schema": {
"$ref": "#/definitions/SharePermission"
}
},
"default": {
Expand Down Expand Up @@ -3971,6 +3983,19 @@
}
}
}
},
"SharePermission": {
"description": "A permission (a security descriptor) at the share level.",
"type": "object",
"required": [
"permission"
],
"properties": {
"permission": {
"type": "string",
"description": "The permission in the Security Descriptor Definition Language (SDDL)."
}
}
}
},
"parameters": {
Expand Down Expand Up @@ -4404,6 +4429,16 @@
"type": "integer",
"minimum": 0,
"x-ms-parameter-location": "method"
},
"SharePermission": {
"name": "sharePermission",
"in": "body",
"description": "A permission (a security descriptor) at the share level.",
"required": true,
"schema": {
"$ref": "#/definitions/SharePermission"
},
"x-ms-parameter-location": "method"
}
}
}

0 comments on commit 4ecb28a

Please sign in to comment.