diff --git a/sdk/storage/azure-storage-file/azure/storage/file/_generated/aio/operations_async/_directory_operations_async.py b/sdk/storage/azure-storage-file/azure/storage/file/_generated/aio/operations_async/_directory_operations_async.py index 13a8c729c76a..ba9dad7c9405 100644 --- a/sdk/storage/azure-storage-file/azure/storage/file/_generated/aio/operations_async/_directory_operations_async.py +++ b/sdk/storage/azure-storage-file/azure/storage/file/_generated/aio/operations_async/_directory_operations_async.py @@ -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 diff --git a/sdk/storage/azure-storage-file/azure/storage/file/_generated/operations/_directory_operations.py b/sdk/storage/azure-storage-file/azure/storage/file/_generated/operations/_directory_operations.py index 4cd6176e5959..aa3610436576 100644 --- a/sdk/storage/azure-storage-file/azure/storage/file/_generated/operations/_directory_operations.py +++ b/sdk/storage/azure-storage-file/azure/storage/file/_generated/operations/_directory_operations.py @@ -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 diff --git a/sdk/storage/azure-storage-file/swagger/README.md b/sdk/storage/azure-storage-file/swagger/README.md index 4ef2c814084b..b68783a68c80 100644 --- a/sdk/storage/azure-storage-file/swagger/README.md +++ b/sdk/storage/azure-storage-file/swagger/README.md @@ -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 diff --git a/sdk/storage/azure-storage-file/swagger/file-2019-02-02.json b/sdk/storage/azure-storage-file/swagger/file-2019-02-02.json index 571617fff6d0..94f08be899cd 100644 --- a/sdk/storage/azure-storage-file/swagger/file-2019-02-02.json +++ b/sdk/storage/azure-storage-file/swagger/file-2019-02-02.json @@ -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." } @@ -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." }, @@ -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": { @@ -1500,7 +1511,8 @@ } } }, - "parameters": [{ + "parameters": [ + { "name": "restype", "in": "query", "required": true, @@ -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": {