Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File swagger updates #6926

Merged
merged 3 commits into from
Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ async def set_properties(self, file_attributes="none", file_creation_time="now",
query_parameters = {}
if timeout is not None:
query_parameters['timeout'] = self._serialize.query("timeout", timeout, 'int', minimum=0)
query_parameters['restype'] = self._serialize.query("self.restype", self.restype, 'str')
query_parameters['comp'] = self._serialize.query("comp", comp, 'str')

# Construct headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def set_properties(self, file_attributes="none", file_creation_time="now", file_
query_parameters = {}
if timeout is not None:
query_parameters['timeout'] = self._serialize.query("timeout", timeout, 'int', minimum=0)
query_parameters['restype'] = self._serialize.query("self.restype", self.restype, 'str')
query_parameters['comp'] = self._serialize.query("comp", comp, 'str')

# Construct headers
Expand Down
1 change: 1 addition & 0 deletions sdk/storage/azure-storage-file/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ directive:
```

### FileRangeWriteFromUrl Constant
This value is supposed to be the constant value update and these changes turn it from a parameter into a constant.
``` yaml
directive:
- from: swagger-document
Expand Down
74 changes: 62 additions & 12 deletions sdk/storage/azure-storage-file/swagger/file-2019-02-02.json
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@
"description": "A UTC date/time value generated by the service that indicates the time at which the response was initiated."
},
"x-ms-file-permission-key": {
"x-ms-client-name": "FilePermissonKey",
"x-ms-client-name": "FilePermissionKey",
"type": "string",
"description": "Key of the permission set for the directory/file."
}
Expand Down Expand Up @@ -1090,7 +1090,7 @@
"description": "The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise."
},
"x-ms-file-permission-key": {
"x-ms-client-name": "FilePermissonKey",
"x-ms-client-name": "FilePermissionKey",
"type": "string",
"description": "Key of the permission set for the directory."
},
Expand Down Expand Up @@ -1428,15 +1428,26 @@
}
}
},
"parameters": [{
"name": "comp",
"in": "query",
"required": true,
"type": "string",
"enum": [
"properties"
]
}]
"parameters": [
{
"name": "restype",
"in": "query",
"required": true,
"type": "string",
"enum": [
"directory"
]
},
{
"name": "comp",
"in": "query",
"required": true,
"type": "string",
"enum": [
"properties"
]
}
]
},
"/{shareName}/{directory}?restype=directory&comp=metadata": {
"put": {
Expand Down Expand Up @@ -1500,7 +1511,8 @@
}
}
},
"parameters": [{
"parameters": [
{
"name": "restype",
"in": "query",
"required": true,
Expand Down Expand Up @@ -2236,6 +2248,44 @@
"x-ms-client-name": "IsServerEncrypted",
"type": "boolean",
"description": "The value of this header is set to true if the file data and application metadata are completely encrypted using the specified algorithm. Otherwise, the value is set to false (when the file is unencrypted, or if only parts of the file/application metadata are encrypted)."
},
"x-ms-file-attributes": {
"x-ms-client-name": "FileAttributes",
"type": "string",
"description": "Attributes set for the file."
},
"x-ms-file-creation-time": {
"x-ms-client-name": "FileCreationTime",
"type": "string",
"format": "date-time-rfc1123",
"description": "Creation time for the file."
},
"x-ms-file-last-write-time": {
"x-ms-client-name": "FileLastWriteTime",
"type": "string",
"format": "date-time-rfc1123",
"description": "Last write time for the file."
},
"x-ms-file-change-time": {
"x-ms-client-name": "FileChangeTime",
"type": "string",
"format": "date-time-rfc1123",
"description": "Change time for the file."
},
"x-ms-file-permission-key": {
"x-ms-client-name": "FilePermissionKey",
"type": "string",
"description": "Key of the permission set for the file."
},
"x-ms-file-id": {
"x-ms-client-name": "FileId",
"type": "string",
"description": "The fileId of the file."
},
"x-ms-file-parent-id": {
"x-ms-client-name": "FileParentId",
"type": "string",
"description": "The parent fileId of the file."
}
},
"schema": {
Expand Down