Skip to content

Commit

Permalink
Added additional File Lease request and response headers (#7910)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcc-msft authored Dec 5, 2019
1 parent 10fa1f6 commit 7e1b820
Showing 1 changed file with 137 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1996,6 +1996,9 @@
},
{
"$ref": "#/parameters/GetRangeContentMD5"
},
{
"$ref": "#/parameters/LeaseIdOptional"
}
],
"responses": {
Expand Down Expand Up @@ -2160,6 +2163,48 @@
"x-ms-client-name": "FileParentId",
"type": "string",
"description": "The parent fileId of the file."
},
"x-ms-lease-duration": {
"x-ms-client-name": "LeaseDuration",
"description": "When a file is leased, specifies whether the lease is of infinite or fixed duration.",
"type": "string",
"enum": [
"infinite",
"fixed"
],
"x-ms-enum": {
"name": "LeaseDurationType",
"modelAsString": false
}
},
"x-ms-lease-state": {
"x-ms-client-name": "LeaseState",
"description": "Lease state of the file.",
"type": "string",
"enum": [
"available",
"leased",
"expired",
"breaking",
"broken"
],
"x-ms-enum": {
"name": "LeaseStateType",
"modelAsString": false
}
},
"x-ms-lease-status": {
"x-ms-client-name": "LeaseStatus",
"description": "The current lease status of the file.",
"type": "string",
"enum": [
"locked",
"unlocked"
],
"x-ms-enum": {
"name": "LeaseStatusType",
"modelAsString": false
}
}
},
"schema": {
Expand Down Expand Up @@ -2328,6 +2373,48 @@
"x-ms-client-name": "FileParentId",
"type": "string",
"description": "The parent fileId of the file."
},
"x-ms-lease-duration": {
"x-ms-client-name": "LeaseDuration",
"description": "When a file is leased, specifies whether the lease is of infinite or fixed duration.",
"type": "string",
"enum": [
"infinite",
"fixed"
],
"x-ms-enum": {
"name": "LeaseDurationType",
"modelAsString": false
}
},
"x-ms-lease-state": {
"x-ms-client-name": "LeaseState",
"description": "Lease state of the file.",
"type": "string",
"enum": [
"available",
"leased",
"expired",
"breaking",
"broken"
],
"x-ms-enum": {
"name": "LeaseStateType",
"modelAsString": false
}
},
"x-ms-lease-status": {
"x-ms-client-name": "LeaseStatus",
"description": "The current lease status of the file.",
"type": "string",
"enum": [
"locked",
"unlocked"
],
"x-ms-enum": {
"name": "LeaseStatusType",
"modelAsString": false
}
}
},
"schema": {
Expand Down Expand Up @@ -2355,14 +2442,18 @@
],
"operationId": "File_GetProperties",
"description": "Returns all user-defined metadata, standard HTTP properties, and system properties for the file. It does not return the content of the file.",
"parameters": [{
"parameters": [
{
"$ref": "#/parameters/ShareSnapshot"
},
{
"$ref": "#/parameters/Timeout"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/LeaseIdOptional"
}
],
"responses": {
Expand Down Expand Up @@ -2521,6 +2612,48 @@
"x-ms-client-name": "FileParentId",
"type": "string",
"description": "The parent fileId of the file."
},
"x-ms-lease-duration": {
"x-ms-client-name": "LeaseDuration",
"description": "When a file is leased, specifies whether the lease is of infinite or fixed duration.",
"type": "string",
"enum": [
"infinite",
"fixed"
],
"x-ms-enum": {
"name": "LeaseDurationType",
"modelAsString": false
}
},
"x-ms-lease-state": {
"x-ms-client-name": "LeaseState",
"description": "Lease state of the file.",
"type": "string",
"enum": [
"available",
"leased",
"expired",
"breaking",
"broken"
],
"x-ms-enum": {
"name": "LeaseStateType",
"modelAsString": false
}
},
"x-ms-lease-status": {
"x-ms-client-name": "LeaseStatus",
"description": "The current lease status of the file.",
"type": "string",
"enum": [
"locked",
"unlocked"
],
"x-ms-enum": {
"name": "LeaseStatusType",
"modelAsString": false
}
}
}
},
Expand Down Expand Up @@ -3494,6 +3627,9 @@
"description": "Specifies the range of bytes over which to list ranges, inclusively.",
"required": false,
"type": "string"
},
{
"$ref": "#/parameters/LeaseIdOptional"
}
],
"responses": {
Expand Down

0 comments on commit 7e1b820

Please sign in to comment.