@azure/storage-file-share 12.24.1-alpha.20240807.2 → 12.25.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. package/dist/index.js +298 -73
  2. package/dist/index.js.map +1 -1
  3. package/dist-esm/storage-blob/src/BlobServiceClient.js +27 -1
  4. package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
  5. package/dist-esm/storage-blob/src/Clients.js +19 -1
  6. package/dist-esm/storage-blob/src/Clients.js.map +1 -1
  7. package/dist-esm/storage-blob/src/ContainerClient.js +19 -1
  8. package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
  9. package/dist-esm/storage-blob/src/generated/src/models/parameters.js +1 -1
  10. package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
  11. package/dist-esm/storage-blob/src/generated/src/storageClient.js +2 -2
  12. package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
  13. package/dist-esm/storage-blob/src/index.js +2 -2
  14. package/dist-esm/storage-blob/src/index.js.map +1 -1
  15. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js +8 -1
  16. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +1 -1
  17. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +27 -6
  18. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
  19. package/dist-esm/storage-blob/src/utils/constants.js +2 -2
  20. package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
  21. package/dist-esm/storage-file-share/src/AccountSASSignatureValues.js +8 -1
  22. package/dist-esm/storage-file-share/src/AccountSASSignatureValues.js.map +1 -1
  23. package/dist-esm/storage-file-share/src/Clients.js +65 -20
  24. package/dist-esm/storage-file-share/src/Clients.js.map +1 -1
  25. package/dist-esm/storage-file-share/src/FileSASSignatureValues.js +8 -1
  26. package/dist-esm/storage-file-share/src/FileSASSignatureValues.js.map +1 -1
  27. package/dist-esm/storage-file-share/src/ShareServiceClient.js +31 -5
  28. package/dist-esm/storage-file-share/src/ShareServiceClient.js.map +1 -1
  29. package/dist-esm/storage-file-share/src/generated/src/models/index.js.map +1 -1
  30. package/dist-esm/storage-file-share/src/generated/src/models/mappers.js +50 -0
  31. package/dist-esm/storage-file-share/src/generated/src/models/mappers.js.map +1 -1
  32. package/dist-esm/storage-file-share/src/generated/src/models/parameters.js +52 -11
  33. package/dist-esm/storage-file-share/src/generated/src/models/parameters.js.map +1 -1
  34. package/dist-esm/storage-file-share/src/generated/src/operations/directory.js +12 -9
  35. package/dist-esm/storage-file-share/src/generated/src/operations/directory.js.map +1 -1
  36. package/dist-esm/storage-file-share/src/generated/src/operations/file.js +21 -18
  37. package/dist-esm/storage-file-share/src/generated/src/operations/file.js.map +1 -1
  38. package/dist-esm/storage-file-share/src/generated/src/operations/service.js +12 -3
  39. package/dist-esm/storage-file-share/src/generated/src/operations/service.js.map +1 -1
  40. package/dist-esm/storage-file-share/src/generated/src/operations/share.js +26 -4
  41. package/dist-esm/storage-file-share/src/generated/src/operations/share.js.map +1 -1
  42. package/dist-esm/storage-file-share/src/generated/src/storageClient.js +2 -2
  43. package/dist-esm/storage-file-share/src/generated/src/storageClient.js.map +1 -1
  44. package/dist-esm/storage-file-share/src/generatedModels.js.map +1 -1
  45. package/dist-esm/storage-file-share/src/index.js +2 -2
  46. package/dist-esm/storage-file-share/src/index.js.map +1 -1
  47. package/dist-esm/storage-file-share/src/models.js.map +1 -1
  48. package/dist-esm/storage-file-share/src/utils/constants.js +2 -2
  49. package/dist-esm/storage-file-share/src/utils/constants.js.map +1 -1
  50. package/dist-esm/storage-file-share/src/utils/utils.common.js +12 -0
  51. package/dist-esm/storage-file-share/src/utils/utils.common.js.map +1 -1
  52. package/package.json +3 -3
  53. package/types/latest/storage-file-share.d.ts +225 -41
@@ -207,10 +207,11 @@ const createOperationSpec = {
207
207
  urlParameters: [Parameters.url],
208
208
  headerParameters: [
209
209
  Parameters.version,
210
+ Parameters.fileRequestIntent,
210
211
  Parameters.accept1,
211
212
  Parameters.metadata,
212
213
  Parameters.leaseId,
213
- Parameters.fileRequestIntent,
214
+ Parameters.filePermissionFormat,
214
215
  Parameters.allowTrailingDot,
215
216
  Parameters.filePermission,
216
217
  Parameters.filePermissionKey1,
@@ -257,9 +258,9 @@ const downloadOperationSpec = {
257
258
  urlParameters: [Parameters.url],
258
259
  headerParameters: [
259
260
  Parameters.version,
261
+ Parameters.fileRequestIntent,
260
262
  Parameters.accept1,
261
263
  Parameters.leaseId,
262
- Parameters.fileRequestIntent,
263
264
  Parameters.allowTrailingDot,
264
265
  Parameters.range,
265
266
  Parameters.rangeGetContentMD5
@@ -283,9 +284,9 @@ const getPropertiesOperationSpec = {
283
284
  urlParameters: [Parameters.url],
284
285
  headerParameters: [
285
286
  Parameters.version,
287
+ Parameters.fileRequestIntent,
286
288
  Parameters.accept1,
287
289
  Parameters.leaseId,
288
- Parameters.fileRequestIntent,
289
290
  Parameters.allowTrailingDot
290
291
  ],
291
292
  isXML: true,
@@ -307,9 +308,9 @@ const deleteOperationSpec = {
307
308
  urlParameters: [Parameters.url],
308
309
  headerParameters: [
309
310
  Parameters.version,
311
+ Parameters.fileRequestIntent,
310
312
  Parameters.accept1,
311
313
  Parameters.leaseId,
312
- Parameters.fileRequestIntent,
313
314
  Parameters.allowTrailingDot
314
315
  ],
315
316
  isXML: true,
@@ -331,9 +332,10 @@ const setHttpHeadersOperationSpec = {
331
332
  urlParameters: [Parameters.url],
332
333
  headerParameters: [
333
334
  Parameters.version,
335
+ Parameters.fileRequestIntent,
334
336
  Parameters.accept1,
335
337
  Parameters.leaseId,
336
- Parameters.fileRequestIntent,
338
+ Parameters.filePermissionFormat,
337
339
  Parameters.allowTrailingDot,
338
340
  Parameters.filePermission,
339
341
  Parameters.filePermissionKey1,
@@ -368,10 +370,10 @@ const setMetadataOperationSpec = {
368
370
  urlParameters: [Parameters.url],
369
371
  headerParameters: [
370
372
  Parameters.version,
373
+ Parameters.fileRequestIntent,
371
374
  Parameters.accept1,
372
375
  Parameters.metadata,
373
376
  Parameters.leaseId,
374
- Parameters.fileRequestIntent,
375
377
  Parameters.allowTrailingDot
376
378
  ],
377
379
  isXML: true,
@@ -393,12 +395,12 @@ const acquireLeaseOperationSpec = {
393
395
  urlParameters: [Parameters.url],
394
396
  headerParameters: [
395
397
  Parameters.version,
398
+ Parameters.fileRequestIntent,
396
399
  Parameters.accept1,
397
400
  Parameters.action,
398
401
  Parameters.duration,
399
402
  Parameters.proposedLeaseId,
400
403
  Parameters.requestId,
401
- Parameters.fileRequestIntent,
402
404
  Parameters.allowTrailingDot
403
405
  ],
404
406
  isXML: true,
@@ -420,11 +422,11 @@ const releaseLeaseOperationSpec = {
420
422
  urlParameters: [Parameters.url],
421
423
  headerParameters: [
422
424
  Parameters.version,
425
+ Parameters.fileRequestIntent,
423
426
  Parameters.accept1,
424
427
  Parameters.requestId,
425
428
  Parameters.action1,
426
429
  Parameters.leaseId1,
427
- Parameters.fileRequestIntent,
428
430
  Parameters.allowTrailingDot
429
431
  ],
430
432
  isXML: true,
@@ -446,12 +448,12 @@ const changeLeaseOperationSpec = {
446
448
  urlParameters: [Parameters.url],
447
449
  headerParameters: [
448
450
  Parameters.version,
451
+ Parameters.fileRequestIntent,
449
452
  Parameters.accept1,
450
453
  Parameters.proposedLeaseId,
451
454
  Parameters.requestId,
452
455
  Parameters.leaseId1,
453
456
  Parameters.action2,
454
- Parameters.fileRequestIntent,
455
457
  Parameters.allowTrailingDot
456
458
  ],
457
459
  isXML: true,
@@ -473,11 +475,11 @@ const breakLeaseOperationSpec = {
473
475
  urlParameters: [Parameters.url],
474
476
  headerParameters: [
475
477
  Parameters.version,
478
+ Parameters.fileRequestIntent,
476
479
  Parameters.accept1,
477
480
  Parameters.leaseId,
478
481
  Parameters.requestId,
479
482
  Parameters.action4,
480
- Parameters.fileRequestIntent,
481
483
  Parameters.allowTrailingDot
482
484
  ],
483
485
  isXML: true,
@@ -500,8 +502,8 @@ const uploadRangeOperationSpec = {
500
502
  urlParameters: [Parameters.url],
501
503
  headerParameters: [
502
504
  Parameters.version,
503
- Parameters.leaseId,
504
505
  Parameters.fileRequestIntent,
506
+ Parameters.leaseId,
505
507
  Parameters.allowTrailingDot,
506
508
  Parameters.contentType2,
507
509
  Parameters.accept3,
@@ -532,9 +534,9 @@ const uploadRangeFromURLOperationSpec = {
532
534
  urlParameters: [Parameters.url],
533
535
  headerParameters: [
534
536
  Parameters.version,
537
+ Parameters.fileRequestIntent,
535
538
  Parameters.accept1,
536
539
  Parameters.leaseId,
537
- Parameters.fileRequestIntent,
538
540
  Parameters.allowTrailingDot,
539
541
  Parameters.allowSourceTrailingDot,
540
542
  Parameters.range1,
@@ -573,9 +575,9 @@ const getRangeListOperationSpec = {
573
575
  urlParameters: [Parameters.url],
574
576
  headerParameters: [
575
577
  Parameters.version,
578
+ Parameters.fileRequestIntent,
576
579
  Parameters.accept1,
577
580
  Parameters.leaseId,
578
- Parameters.fileRequestIntent,
579
581
  Parameters.allowTrailingDot,
580
582
  Parameters.range,
581
583
  Parameters.supportRename
@@ -599,10 +601,10 @@ const startCopyOperationSpec = {
599
601
  urlParameters: [Parameters.url],
600
602
  headerParameters: [
601
603
  Parameters.version,
604
+ Parameters.fileRequestIntent,
602
605
  Parameters.accept1,
603
606
  Parameters.metadata,
604
607
  Parameters.leaseId,
605
- Parameters.fileRequestIntent,
606
608
  Parameters.allowTrailingDot,
607
609
  Parameters.filePermission,
608
610
  Parameters.filePermissionKey1,
@@ -639,9 +641,9 @@ const abortCopyOperationSpec = {
639
641
  urlParameters: [Parameters.url],
640
642
  headerParameters: [
641
643
  Parameters.version,
644
+ Parameters.fileRequestIntent,
642
645
  Parameters.accept1,
643
646
  Parameters.leaseId,
644
- Parameters.fileRequestIntent,
645
647
  Parameters.allowTrailingDot,
646
648
  Parameters.copyActionAbortConstant
647
649
  ],
@@ -671,8 +673,8 @@ const listHandlesOperationSpec = {
671
673
  urlParameters: [Parameters.url],
672
674
  headerParameters: [
673
675
  Parameters.version,
674
- Parameters.accept1,
675
676
  Parameters.fileRequestIntent,
677
+ Parameters.accept1,
676
678
  Parameters.allowTrailingDot
677
679
  ],
678
680
  isXML: true,
@@ -699,8 +701,8 @@ const forceCloseHandlesOperationSpec = {
699
701
  urlParameters: [Parameters.url],
700
702
  headerParameters: [
701
703
  Parameters.version,
702
- Parameters.accept1,
703
704
  Parameters.fileRequestIntent,
705
+ Parameters.accept1,
704
706
  Parameters.allowTrailingDot,
705
707
  Parameters.handleId
706
708
  ],
@@ -723,9 +725,10 @@ const renameOperationSpec = {
723
725
  urlParameters: [Parameters.url],
724
726
  headerParameters: [
725
727
  Parameters.version,
728
+ Parameters.fileRequestIntent,
726
729
  Parameters.accept1,
727
730
  Parameters.metadata,
728
- Parameters.fileRequestIntent,
731
+ Parameters.filePermissionFormat,
729
732
  Parameters.allowTrailingDot,
730
733
  Parameters.filePermission,
731
734
  Parameters.filePermissionKey1,
@@ -1 +1 @@
1
- {"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../../src/generated/src/operations/file.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AA0CnD,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,cAAsB,EACtB,OAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,cAAc,EAAE,OAAO,EAAE,EAC9C,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,OAAoC;QAEpC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OA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U,CAAC,kBAAkB;QAC7B,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,eAAe;KAC3B;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { File } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { StorageClient } from \"../storageClient\";\nimport {\n FileCreateOptionalParams,\n FileCreateResponse,\n FileDownloadOptionalParams,\n FileDownloadResponse,\n FileGetPropertiesOptionalParams,\n FileGetPropertiesResponse,\n FileDeleteOptionalParams,\n FileDeleteResponse,\n FileSetHttpHeadersOptionalParams,\n FileSetHttpHeadersResponse,\n FileSetMetadataOptionalParams,\n FileSetMetadataResponse,\n FileAcquireLeaseOptionalParams,\n FileAcquireLeaseResponse,\n FileReleaseLeaseOptionalParams,\n FileReleaseLeaseResponse,\n FileChangeLeaseOptionalParams,\n FileChangeLeaseResponse,\n FileBreakLeaseOptionalParams,\n FileBreakLeaseResponse,\n FileRangeWriteType,\n FileUploadRangeOptionalParams,\n FileUploadRangeResponse,\n FileUploadRangeFromURLOptionalParams,\n FileUploadRangeFromURLResponse,\n FileGetRangeListOptionalParams,\n FileGetRangeListResponse,\n FileStartCopyOptionalParams,\n FileStartCopyResponse,\n FileAbortCopyOptionalParams,\n FileAbortCopyResponse,\n FileListHandlesOptionalParams,\n FileListHandlesResponse,\n FileForceCloseHandlesOptionalParams,\n FileForceCloseHandlesResponse,\n FileRenameOptionalParams,\n FileRenameResponse\n} from \"../models\";\n\n/** Class containing File operations. */\nexport class FileImpl implements File {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class File class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * Creates a new file or replaces a file. Note it only initializes the file with no content.\n * @param fileContentLength Specifies the maximum size for the file, up to 4 TB.\n * @param fileAttributes If specified, the provided file attributes shall be set. Default value:\n * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default.\n * @param options The options parameters.\n */\n create(\n fileContentLength: number,\n fileAttributes: string,\n options?: FileCreateOptionalParams\n ): Promise<FileCreateResponse> {\n return this.client.sendOperationRequest(\n { fileContentLength, fileAttributes, options },\n createOperationSpec\n );\n }\n\n /**\n * Reads or downloads a file from the system, including its metadata and properties.\n * @param options The options parameters.\n */\n download(\n options?: FileDownloadOptionalParams\n ): Promise<FileDownloadResponse> {\n return this.client.sendOperationRequest({ options }, downloadOperationSpec);\n }\n\n /**\n * Returns all user-defined metadata, standard HTTP properties, and system properties for the file. It\n * does not return the content of the file.\n * @param options The options parameters.\n */\n getProperties(\n options?: FileGetPropertiesOptionalParams\n ): Promise<FileGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * removes the file from the storage account.\n * @param options The options parameters.\n */\n delete(options?: FileDeleteOptionalParams): Promise<FileDeleteResponse> {\n return this.client.sendOperationRequest({ options }, deleteOperationSpec);\n }\n\n /**\n * Sets HTTP headers on the file.\n * @param fileAttributes If specified, the provided file attributes shall be set. Default value:\n * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default.\n * @param options The options parameters.\n */\n setHttpHeaders(\n fileAttributes: string,\n options?: FileSetHttpHeadersOptionalParams\n ): Promise<FileSetHttpHeadersResponse> {\n return this.client.sendOperationRequest(\n { fileAttributes, options },\n setHttpHeadersOperationSpec\n );\n }\n\n /**\n * Updates user-defined metadata for the specified file.\n * @param options The options parameters.\n */\n setMetadata(\n options?: FileSetMetadataOptionalParams\n ): Promise<FileSetMetadataResponse> {\n return this.client.sendOperationRequest(\n { options },\n setMetadataOperationSpec\n );\n }\n\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param options The options parameters.\n */\n acquireLease(\n options?: FileAcquireLeaseOptionalParams\n ): Promise<FileAcquireLeaseResponse> {\n return this.client.sendOperationRequest(\n { options },\n acquireLeaseOperationSpec\n );\n }\n\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n releaseLease(\n leaseId: string,\n options?: FileReleaseLeaseOptionalParams\n ): Promise<FileReleaseLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n releaseLeaseOperationSpec\n );\n }\n\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n changeLease(\n leaseId: string,\n options?: FileChangeLeaseOptionalParams\n ): Promise<FileChangeLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n changeLeaseOperationSpec\n );\n }\n\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param options The options parameters.\n */\n breakLease(\n options?: FileBreakLeaseOptionalParams\n ): Promise<FileBreakLeaseResponse> {\n return this.client.sendOperationRequest(\n { options },\n breakLeaseOperationSpec\n );\n }\n\n /**\n * Upload a range of bytes to a file.\n * @param range Specifies the range of bytes to be written. Both the start and end of the range must be\n * specified. For an update operation, the range can be up to 4 MB in size. For a clear operation, the\n * range can be up to the value of the file's full size. The File service accepts only a single byte\n * range for the Range and 'x-ms-range' headers, and the byte range must be specified in the following\n * format: bytes=startByte-endByte.\n * @param fileRangeWrite Specify one of the following options: - Update: Writes the bytes specified by\n * the request body into the specified range. The Range and Content-Length headers must match to\n * perform the update. - Clear: Clears the specified range and releases the space used in storage for\n * that range. To clear a range, set the Content-Length header to zero, and set the Range header to a\n * value that indicates the range to clear, up to maximum file size.\n * @param contentLength Specifies the number of bytes being transmitted in the request body. When the\n * x-ms-write header is set to clear, the value of this header must be set to zero.\n * @param options The options parameters.\n */\n uploadRange(\n range: string,\n fileRangeWrite: FileRangeWriteType,\n contentLength: number,\n options?: FileUploadRangeOptionalParams\n ): Promise<FileUploadRangeResponse> {\n return this.client.sendOperationRequest(\n { range, fileRangeWrite, contentLength, options },\n uploadRangeOperationSpec\n );\n }\n\n /**\n * Upload a range of bytes to a file where the contents are read from a URL.\n * @param range Writes data to the specified byte range in the file.\n * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a file\n * to another file within the same storage account, you may use Shared Key to authenticate the source\n * file. If you are copying a file from another storage account, or if you are copying a blob from the\n * same storage account or another storage account, then you must authenticate the source file or blob\n * using a shared access signature. If the source is a public blob, no authentication is required to\n * perform the copy operation. A file in a share snapshot can also be specified as a copy source.\n * @param contentLength Specifies the number of bytes being transmitted in the request body. When the\n * x-ms-write header is set to clear, the value of this header must be set to zero.\n * @param options The options parameters.\n */\n uploadRangeFromURL(\n range: string,\n copySource: string,\n contentLength: number,\n options?: FileUploadRangeFromURLOptionalParams\n ): Promise<FileUploadRangeFromURLResponse> {\n return this.client.sendOperationRequest(\n { range, copySource, contentLength, options },\n uploadRangeFromURLOperationSpec\n );\n }\n\n /**\n * Returns the list of valid ranges for a file.\n * @param options The options parameters.\n */\n getRangeList(\n options?: FileGetRangeListOptionalParams\n ): Promise<FileGetRangeListResponse> {\n return this.client.sendOperationRequest(\n { options },\n getRangeListOperationSpec\n );\n }\n\n /**\n * Copies a blob or file to a destination file within the storage account.\n * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a file\n * to another file within the same storage account, you may use Shared Key to authenticate the source\n * file. If you are copying a file from another storage account, or if you are copying a blob from the\n * same storage account or another storage account, then you must authenticate the source file or blob\n * using a shared access signature. If the source is a public blob, no authentication is required to\n * perform the copy operation. A file in a share snapshot can also be specified as a copy source.\n * @param options The options parameters.\n */\n startCopy(\n copySource: string,\n options?: FileStartCopyOptionalParams\n ): Promise<FileStartCopyResponse> {\n return this.client.sendOperationRequest(\n { copySource, options },\n startCopyOperationSpec\n );\n }\n\n /**\n * Aborts a pending Copy File operation, and leaves a destination file with zero length and full\n * metadata.\n * @param copyId The copy identifier provided in the x-ms-copy-id header of the original Copy File\n * operation.\n * @param options The options parameters.\n */\n abortCopy(\n copyId: string,\n options?: FileAbortCopyOptionalParams\n ): Promise<FileAbortCopyResponse> {\n return this.client.sendOperationRequest(\n { copyId, options },\n abortCopyOperationSpec\n );\n }\n\n /**\n * Lists handles for file\n * @param options The options parameters.\n */\n listHandles(\n options?: FileListHandlesOptionalParams\n ): Promise<FileListHandlesResponse> {\n return this.client.sendOperationRequest(\n { options },\n listHandlesOperationSpec\n );\n }\n\n /**\n * Closes all handles open for given file\n * @param handleId Specifies handle ID opened on the file or directory to be closed. Asterisk (‘*’) is\n * a wildcard that specifies all handles.\n * @param options The options parameters.\n */\n forceCloseHandles(\n handleId: string,\n options?: FileForceCloseHandlesOptionalParams\n ): Promise<FileForceCloseHandlesResponse> {\n return this.client.sendOperationRequest(\n { handleId, options },\n forceCloseHandlesOperationSpec\n );\n }\n\n /**\n * Renames a file\n * @param renameSource Required. Specifies the URI-style path of the source file, up to 2 KB in length.\n * @param options The options parameters.\n */\n rename(\n renameSource: string,\n options?: FileRenameOptionalParams\n ): Promise<FileRenameResponse> {\n return this.client.sendOperationRequest(\n { renameSource, options },\n renameOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.FileCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileCreateExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.filePermission,\n Parameters.filePermissionKey1,\n Parameters.fileAttributes,\n Parameters.fileCreatedOn,\n Parameters.fileLastWriteOn,\n Parameters.fileChangeOn,\n Parameters.fileContentLength,\n Parameters.fileTypeConstant,\n Parameters.fileContentType,\n Parameters.fileContentEncoding,\n Parameters.fileContentLanguage,\n Parameters.fileCacheControl,\n Parameters.fileContentMD5,\n Parameters.fileContentDisposition\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst downloadOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.FileDownloadHeaders\n },\n 206: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.FileDownloadHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileDownloadExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.range,\n Parameters.rangeGetContentMD5\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.FileGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.shareSnapshot],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {\n headersMapper: Mappers.FileDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileDeleteExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setHttpHeadersOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileSetHttpHeadersHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileSetHttpHeadersExceptionHeaders\n }\n },\n queryParameters: [Parameters.comp, Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.filePermission,\n Parameters.filePermissionKey1,\n Parameters.fileAttributes,\n Parameters.fileCreatedOn,\n Parameters.fileLastWriteOn,\n Parameters.fileChangeOn,\n Parameters.fileContentType,\n Parameters.fileContentEncoding,\n Parameters.fileContentLanguage,\n Parameters.fileCacheControl,\n Parameters.fileContentMD5,\n Parameters.fileContentDisposition,\n Parameters.fileContentLength1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setMetadataOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileSetMetadataHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileSetMetadataExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp5],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst acquireLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.FileAcquireLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileAcquireLeaseExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp2],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.action,\n Parameters.duration,\n Parameters.proposedLeaseId,\n Parameters.requestId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst releaseLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileReleaseLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileReleaseLeaseExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp2],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.requestId,\n Parameters.action1,\n Parameters.leaseId1,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst changeLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileChangeLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileChangeLeaseExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp2],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.proposedLeaseId,\n Parameters.requestId,\n Parameters.leaseId1,\n Parameters.action2,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst breakLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.FileBreakLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileBreakLeaseExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp2],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.requestId,\n Parameters.action4,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst uploadRangeOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.FileUploadRangeHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileUploadRangeExceptionHeaders\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp12],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.contentType2,\n Parameters.accept3,\n Parameters.range1,\n Parameters.fileRangeWrite,\n Parameters.contentLength,\n Parameters.contentMD5,\n Parameters.fileLastWrittenMode\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"binary\",\n serializer: xmlSerializer\n};\nconst uploadRangeFromURLOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.FileUploadRangeFromURLHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileUploadRangeFromURLExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp12],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.allowSourceTrailingDot,\n Parameters.range1,\n Parameters.contentLength,\n Parameters.fileLastWrittenMode,\n Parameters.copySource,\n Parameters.sourceRange,\n Parameters.fileRangeWriteFromUrl,\n Parameters.sourceContentCrc64,\n Parameters.sourceIfMatchCrc64,\n Parameters.sourceIfNoneMatchCrc64,\n Parameters.copySourceAuthorization\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getRangeListOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShareFileRangeList,\n headersMapper: Mappers.FileGetRangeListHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileGetRangeListExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.shareSnapshot,\n Parameters.comp13,\n Parameters.prevsharesnapshot\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.range,\n Parameters.supportRename\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst startCopyOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.FileStartCopyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileStartCopyExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.filePermission,\n Parameters.filePermissionKey1,\n Parameters.fileAttributes1,\n Parameters.fileCreationTime,\n Parameters.fileLastWriteTime,\n Parameters.fileChangeTime,\n Parameters.allowSourceTrailingDot,\n Parameters.copySource,\n Parameters.filePermissionCopyMode,\n Parameters.ignoreReadOnly1,\n Parameters.setArchiveAttribute\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst abortCopyOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.FileAbortCopyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileAbortCopyExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.comp14,\n Parameters.copyId\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.copyActionAbortConstant\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst listHandlesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListHandlesResponse,\n headersMapper: Mappers.FileListHandlesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileListHandlesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.marker,\n Parameters.maxResults,\n Parameters.shareSnapshot,\n Parameters.comp9\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst forceCloseHandlesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileForceCloseHandlesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileForceCloseHandlesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.marker,\n Parameters.shareSnapshot,\n Parameters.comp10\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.handleId\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst renameOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileRenameHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileRenameExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp11],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.fileRequestIntent,\n Parameters.allowTrailingDot,\n Parameters.filePermission,\n Parameters.filePermissionKey1,\n Parameters.renameSource,\n Parameters.replaceIfExists,\n Parameters.ignoreReadOnly,\n Parameters.sourceLeaseId,\n Parameters.destinationLeaseId,\n Parameters.fileAttributes1,\n Parameters.fileCreationTime,\n Parameters.fileLastWriteTime,\n Parameters.fileChangeTime,\n Parameters.allowSourceTrailingDot,\n Parameters.fileContentType\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
1
+ {"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../../src/generated/src/operations/file.ts"],"names":[],"mappings":"AAAA;;;;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C,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,iBAAiB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,0BAA0B;SAClD;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,gBAAgB,EAAE,UAAU,CAAC,MAAM,CAAC;IACjE,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,oBAAoB;QAC/B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,sBAAsB;QACjC,UAAU,CAAC,eAAe;KAC3B;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { File } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { StorageClient } from \"../storageClient\";\nimport {\n FileCreateOptionalParams,\n FileCreateResponse,\n FileDownloadOptionalParams,\n FileDownloadResponse,\n FileGetPropertiesOptionalParams,\n FileGetPropertiesResponse,\n FileDeleteOptionalParams,\n FileDeleteResponse,\n FileSetHttpHeadersOptionalParams,\n FileSetHttpHeadersResponse,\n FileSetMetadataOptionalParams,\n FileSetMetadataResponse,\n FileAcquireLeaseOptionalParams,\n FileAcquireLeaseResponse,\n FileReleaseLeaseOptionalParams,\n FileReleaseLeaseResponse,\n FileChangeLeaseOptionalParams,\n FileChangeLeaseResponse,\n FileBreakLeaseOptionalParams,\n FileBreakLeaseResponse,\n FileRangeWriteType,\n FileUploadRangeOptionalParams,\n FileUploadRangeResponse,\n FileUploadRangeFromURLOptionalParams,\n FileUploadRangeFromURLResponse,\n FileGetRangeListOptionalParams,\n FileGetRangeListResponse,\n FileStartCopyOptionalParams,\n FileStartCopyResponse,\n FileAbortCopyOptionalParams,\n FileAbortCopyResponse,\n FileListHandlesOptionalParams,\n FileListHandlesResponse,\n FileForceCloseHandlesOptionalParams,\n FileForceCloseHandlesResponse,\n FileRenameOptionalParams,\n FileRenameResponse\n} from \"../models\";\n\n/** Class containing File operations. */\nexport class FileImpl implements File {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class File class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * Creates a new file or replaces a file. Note it only initializes the file with no content.\n * @param fileContentLength Specifies the maximum size for the file, up to 4 TB.\n * @param fileAttributes If specified, the provided file attributes shall be set. Default value:\n * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default.\n * @param options The options parameters.\n */\n create(\n fileContentLength: number,\n fileAttributes: string,\n options?: FileCreateOptionalParams\n ): Promise<FileCreateResponse> {\n return this.client.sendOperationRequest(\n { fileContentLength, fileAttributes, options },\n createOperationSpec\n );\n }\n\n /**\n * Reads or downloads a file from the system, including its metadata and properties.\n * @param options The options parameters.\n */\n download(\n options?: FileDownloadOptionalParams\n ): Promise<FileDownloadResponse> {\n return this.client.sendOperationRequest({ options }, downloadOperationSpec);\n }\n\n /**\n * Returns all user-defined metadata, standard HTTP properties, and system properties for the file. It\n * does not return the content of the file.\n * @param options The options parameters.\n */\n getProperties(\n options?: FileGetPropertiesOptionalParams\n ): Promise<FileGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * removes the file from the storage account.\n * @param options The options parameters.\n */\n delete(options?: FileDeleteOptionalParams): Promise<FileDeleteResponse> {\n return this.client.sendOperationRequest({ options }, deleteOperationSpec);\n }\n\n /**\n * Sets HTTP headers on the file.\n * @param fileAttributes If specified, the provided file attributes shall be set. Default value:\n * ‘Archive’ for file and ‘Directory’ for directory. ‘None’ can also be specified as default.\n * @param options The options parameters.\n */\n setHttpHeaders(\n fileAttributes: string,\n options?: FileSetHttpHeadersOptionalParams\n ): Promise<FileSetHttpHeadersResponse> {\n return this.client.sendOperationRequest(\n { fileAttributes, options },\n setHttpHeadersOperationSpec\n );\n }\n\n /**\n * Updates user-defined metadata for the specified file.\n * @param options The options parameters.\n */\n setMetadata(\n options?: FileSetMetadataOptionalParams\n ): Promise<FileSetMetadataResponse> {\n return this.client.sendOperationRequest(\n { options },\n setMetadataOperationSpec\n );\n }\n\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param options The options parameters.\n */\n acquireLease(\n options?: FileAcquireLeaseOptionalParams\n ): Promise<FileAcquireLeaseResponse> {\n return this.client.sendOperationRequest(\n { options },\n acquireLeaseOperationSpec\n );\n }\n\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n releaseLease(\n leaseId: string,\n options?: FileReleaseLeaseOptionalParams\n ): Promise<FileReleaseLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n releaseLeaseOperationSpec\n );\n }\n\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param leaseId Specifies the current lease ID on the resource.\n * @param options The options parameters.\n */\n changeLease(\n leaseId: string,\n options?: FileChangeLeaseOptionalParams\n ): Promise<FileChangeLeaseResponse> {\n return this.client.sendOperationRequest(\n { leaseId, options },\n changeLeaseOperationSpec\n );\n }\n\n /**\n * [Update] The Lease File operation establishes and manages a lock on a file for write and delete\n * operations\n * @param options The options parameters.\n */\n breakLease(\n options?: FileBreakLeaseOptionalParams\n ): Promise<FileBreakLeaseResponse> {\n return this.client.sendOperationRequest(\n { options },\n breakLeaseOperationSpec\n );\n }\n\n /**\n * Upload a range of bytes to a file.\n * @param range Specifies the range of bytes to be written. Both the start and end of the range must be\n * specified. For an update operation, the range can be up to 4 MB in size. For a clear operation, the\n * range can be up to the value of the file's full size. The File service accepts only a single byte\n * range for the Range and 'x-ms-range' headers, and the byte range must be specified in the following\n * format: bytes=startByte-endByte.\n * @param fileRangeWrite Specify one of the following options: - Update: Writes the bytes specified by\n * the request body into the specified range. The Range and Content-Length headers must match to\n * perform the update. - Clear: Clears the specified range and releases the space used in storage for\n * that range. To clear a range, set the Content-Length header to zero, and set the Range header to a\n * value that indicates the range to clear, up to maximum file size.\n * @param contentLength Specifies the number of bytes being transmitted in the request body. When the\n * x-ms-write header is set to clear, the value of this header must be set to zero.\n * @param options The options parameters.\n */\n uploadRange(\n range: string,\n fileRangeWrite: FileRangeWriteType,\n contentLength: number,\n options?: FileUploadRangeOptionalParams\n ): Promise<FileUploadRangeResponse> {\n return this.client.sendOperationRequest(\n { range, fileRangeWrite, contentLength, options },\n uploadRangeOperationSpec\n );\n }\n\n /**\n * Upload a range of bytes to a file where the contents are read from a URL.\n * @param range Writes data to the specified byte range in the file.\n * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a file\n * to another file within the same storage account, you may use Shared Key to authenticate the source\n * file. If you are copying a file from another storage account, or if you are copying a blob from the\n * same storage account or another storage account, then you must authenticate the source file or blob\n * using a shared access signature. If the source is a public blob, no authentication is required to\n * perform the copy operation. A file in a share snapshot can also be specified as a copy source.\n * @param contentLength Specifies the number of bytes being transmitted in the request body. When the\n * x-ms-write header is set to clear, the value of this header must be set to zero.\n * @param options The options parameters.\n */\n uploadRangeFromURL(\n range: string,\n copySource: string,\n contentLength: number,\n options?: FileUploadRangeFromURLOptionalParams\n ): Promise<FileUploadRangeFromURLResponse> {\n return this.client.sendOperationRequest(\n { range, copySource, contentLength, options },\n uploadRangeFromURLOperationSpec\n );\n }\n\n /**\n * Returns the list of valid ranges for a file.\n * @param options The options parameters.\n */\n getRangeList(\n options?: FileGetRangeListOptionalParams\n ): Promise<FileGetRangeListResponse> {\n return this.client.sendOperationRequest(\n { options },\n getRangeListOperationSpec\n );\n }\n\n /**\n * Copies a blob or file to a destination file within the storage account.\n * @param copySource Specifies the URL of the source file or blob, up to 2 KB in length. To copy a file\n * to another file within the same storage account, you may use Shared Key to authenticate the source\n * file. If you are copying a file from another storage account, or if you are copying a blob from the\n * same storage account or another storage account, then you must authenticate the source file or blob\n * using a shared access signature. If the source is a public blob, no authentication is required to\n * perform the copy operation. A file in a share snapshot can also be specified as a copy source.\n * @param options The options parameters.\n */\n startCopy(\n copySource: string,\n options?: FileStartCopyOptionalParams\n ): Promise<FileStartCopyResponse> {\n return this.client.sendOperationRequest(\n { copySource, options },\n startCopyOperationSpec\n );\n }\n\n /**\n * Aborts a pending Copy File operation, and leaves a destination file with zero length and full\n * metadata.\n * @param copyId The copy identifier provided in the x-ms-copy-id header of the original Copy File\n * operation.\n * @param options The options parameters.\n */\n abortCopy(\n copyId: string,\n options?: FileAbortCopyOptionalParams\n ): Promise<FileAbortCopyResponse> {\n return this.client.sendOperationRequest(\n { copyId, options },\n abortCopyOperationSpec\n );\n }\n\n /**\n * Lists handles for file\n * @param options The options parameters.\n */\n listHandles(\n options?: FileListHandlesOptionalParams\n ): Promise<FileListHandlesResponse> {\n return this.client.sendOperationRequest(\n { options },\n listHandlesOperationSpec\n );\n }\n\n /**\n * Closes all handles open for given file\n * @param handleId Specifies handle ID opened on the file or directory to be closed. Asterisk (‘*’) is\n * a wildcard that specifies all handles.\n * @param options The options parameters.\n */\n forceCloseHandles(\n handleId: string,\n options?: FileForceCloseHandlesOptionalParams\n ): Promise<FileForceCloseHandlesResponse> {\n return this.client.sendOperationRequest(\n { handleId, options },\n forceCloseHandlesOperationSpec\n );\n }\n\n /**\n * Renames a file\n * @param renameSource Required. Specifies the URI-style path of the source file, up to 2 KB in length.\n * @param options The options parameters.\n */\n rename(\n renameSource: string,\n options?: FileRenameOptionalParams\n ): Promise<FileRenameResponse> {\n return this.client.sendOperationRequest(\n { renameSource, options },\n renameOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.FileCreateHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileCreateExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.leaseId,\n Parameters.filePermissionFormat,\n Parameters.allowTrailingDot,\n Parameters.filePermission,\n Parameters.filePermissionKey1,\n Parameters.fileAttributes,\n Parameters.fileCreatedOn,\n Parameters.fileLastWriteOn,\n Parameters.fileChangeOn,\n Parameters.fileContentLength,\n Parameters.fileTypeConstant,\n Parameters.fileContentType,\n Parameters.fileContentEncoding,\n Parameters.fileContentLanguage,\n Parameters.fileCacheControl,\n Parameters.fileContentMD5,\n Parameters.fileContentDisposition\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst downloadOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.FileDownloadHeaders\n },\n 206: {\n bodyMapper: {\n type: { name: \"Stream\" },\n serializedName: \"parsedResponse\"\n },\n headersMapper: Mappers.FileDownloadHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileDownloadExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.allowTrailingDot,\n Parameters.range,\n Parameters.rangeGetContentMD5\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"HEAD\",\n responses: {\n 200: {\n headersMapper: Mappers.FileGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.shareSnapshot],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"DELETE\",\n responses: {\n 202: {\n headersMapper: Mappers.FileDeleteHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileDeleteExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setHttpHeadersOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileSetHttpHeadersHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileSetHttpHeadersExceptionHeaders\n }\n },\n queryParameters: [Parameters.comp, Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.filePermissionFormat,\n Parameters.allowTrailingDot,\n Parameters.filePermission,\n Parameters.filePermissionKey1,\n Parameters.fileAttributes,\n Parameters.fileCreatedOn,\n Parameters.fileLastWriteOn,\n Parameters.fileChangeOn,\n Parameters.fileContentType,\n Parameters.fileContentEncoding,\n Parameters.fileContentLanguage,\n Parameters.fileCacheControl,\n Parameters.fileContentMD5,\n Parameters.fileContentDisposition,\n Parameters.fileContentLength1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst setMetadataOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileSetMetadataHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileSetMetadataExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp5],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.leaseId,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst acquireLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.FileAcquireLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileAcquireLeaseExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp2],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.action,\n Parameters.duration,\n Parameters.proposedLeaseId,\n Parameters.requestId,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst releaseLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileReleaseLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileReleaseLeaseExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp2],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.requestId,\n Parameters.action1,\n Parameters.leaseId1,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst changeLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileChangeLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileChangeLeaseExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp2],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.proposedLeaseId,\n Parameters.requestId,\n Parameters.leaseId1,\n Parameters.action2,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst breakLeaseOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.FileBreakLeaseHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileBreakLeaseExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp2],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.requestId,\n Parameters.action4,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst uploadRangeOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.FileUploadRangeHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileUploadRangeExceptionHeaders\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp12],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.leaseId,\n Parameters.allowTrailingDot,\n Parameters.contentType2,\n Parameters.accept3,\n Parameters.range1,\n Parameters.fileRangeWrite,\n Parameters.contentLength,\n Parameters.contentMD5,\n Parameters.fileLastWrittenMode\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"binary\",\n serializer: xmlSerializer\n};\nconst uploadRangeFromURLOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n headersMapper: Mappers.FileUploadRangeFromURLHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileUploadRangeFromURLExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp12],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.allowTrailingDot,\n Parameters.allowSourceTrailingDot,\n Parameters.range1,\n Parameters.contentLength,\n Parameters.fileLastWrittenMode,\n Parameters.copySource,\n Parameters.sourceRange,\n Parameters.fileRangeWriteFromUrl,\n Parameters.sourceContentCrc64,\n Parameters.sourceIfMatchCrc64,\n Parameters.sourceIfNoneMatchCrc64,\n Parameters.copySourceAuthorization\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst getRangeListOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ShareFileRangeList,\n headersMapper: Mappers.FileGetRangeListHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileGetRangeListExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.shareSnapshot,\n Parameters.comp13,\n Parameters.prevsharesnapshot\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.allowTrailingDot,\n Parameters.range,\n Parameters.supportRename\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst startCopyOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.FileStartCopyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileStartCopyExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.leaseId,\n Parameters.allowTrailingDot,\n Parameters.filePermission,\n Parameters.filePermissionKey1,\n Parameters.fileAttributes1,\n Parameters.fileCreationTime,\n Parameters.fileLastWriteTime,\n Parameters.fileChangeTime,\n Parameters.allowSourceTrailingDot,\n Parameters.copySource,\n Parameters.filePermissionCopyMode,\n Parameters.ignoreReadOnly1,\n Parameters.setArchiveAttribute\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst abortCopyOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 204: {\n headersMapper: Mappers.FileAbortCopyHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileAbortCopyExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.comp14,\n Parameters.copyId\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.leaseId,\n Parameters.allowTrailingDot,\n Parameters.copyActionAbortConstant\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst listHandlesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListHandlesResponse,\n headersMapper: Mappers.FileListHandlesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileListHandlesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.marker,\n Parameters.maxResults,\n Parameters.shareSnapshot,\n Parameters.comp9\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.allowTrailingDot\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst forceCloseHandlesOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileForceCloseHandlesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileForceCloseHandlesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.marker,\n Parameters.shareSnapshot,\n Parameters.comp10\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.allowTrailingDot,\n Parameters.handleId\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst renameOperationSpec: coreClient.OperationSpec = {\n path: \"/{shareName}/{directory}/{fileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n headersMapper: Mappers.FileRenameHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.FileRenameExceptionHeaders\n }\n },\n queryParameters: [Parameters.timeoutInSeconds, Parameters.comp11],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1,\n Parameters.metadata,\n Parameters.filePermissionFormat,\n Parameters.allowTrailingDot,\n Parameters.filePermission,\n Parameters.filePermissionKey1,\n Parameters.renameSource,\n Parameters.replaceIfExists,\n Parameters.ignoreReadOnly,\n Parameters.sourceLeaseId,\n Parameters.destinationLeaseId,\n Parameters.fileAttributes1,\n Parameters.fileCreationTime,\n Parameters.fileLastWriteTime,\n Parameters.fileChangeTime,\n Parameters.allowSourceTrailingDot,\n Parameters.fileContentType\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
@@ -67,7 +67,8 @@ const setPropertiesOperationSpec = {
67
67
  headerParameters: [
68
68
  Parameters.contentType,
69
69
  Parameters.accept,
70
- Parameters.version
70
+ Parameters.version,
71
+ Parameters.fileRequestIntent
71
72
  ],
72
73
  isXML: true,
73
74
  contentType: "application/xml; charset=utf-8",
@@ -93,7 +94,11 @@ const getPropertiesOperationSpec = {
93
94
  Parameters.timeoutInSeconds
94
95
  ],
95
96
  urlParameters: [Parameters.url],
96
- headerParameters: [Parameters.version, Parameters.accept1],
97
+ headerParameters: [
98
+ Parameters.version,
99
+ Parameters.fileRequestIntent,
100
+ Parameters.accept1
101
+ ],
97
102
  isXML: true,
98
103
  serializer: xmlSerializer
99
104
  };
@@ -119,7 +124,11 @@ const listSharesSegmentOperationSpec = {
119
124
  Parameters.include
120
125
  ],
121
126
  urlParameters: [Parameters.url],
122
- headerParameters: [Parameters.version, Parameters.accept1],
127
+ headerParameters: [
128
+ Parameters.version,
129
+ Parameters.fileRequestIntent,
130
+ Parameters.accept1
131
+ ],
123
132
  isXML: true,
124
133
  serializer: xmlSerializer
125
134
  };
@@ -1 +1 @@
1
- {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/generated/src/operations/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,UAAiC,EACjC,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,UAAU,EAAE,OAAO,EAAE,EACvB,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CACf,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,8BAA8B,CAC/B,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,aAAa,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;AAE7E,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAA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AU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,wCAAwC;SAChE;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,OAAO;KACnB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;IAC1D,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Service } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { StorageClient } from \"../storageClient\";\nimport {\n FileServiceProperties,\n ServiceSetPropertiesOptionalParams,\n ServiceSetPropertiesResponse,\n ServiceGetPropertiesOptionalParams,\n ServiceGetPropertiesResponse,\n ServiceListSharesSegmentOptionalParams,\n ServiceListSharesSegmentResponse\n} from \"../models\";\n\n/** Class containing Service operations. */\nexport class ServiceImpl implements Service {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Service class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * Sets properties for a storage account's File service endpoint, including properties for Storage\n * Analytics metrics and CORS (Cross-Origin Resource Sharing) rules.\n * @param properties The StorageService properties.\n * @param options The options parameters.\n */\n setProperties(\n properties: FileServiceProperties,\n options?: ServiceSetPropertiesOptionalParams\n ): Promise<ServiceSetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { properties, options },\n setPropertiesOperationSpec\n );\n }\n\n /**\n * Gets the properties of a storage account's File service, including properties for Storage Analytics\n * metrics and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n getProperties(\n options?: ServiceGetPropertiesOptionalParams\n ): Promise<ServiceGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * The List Shares Segment operation returns a list of the shares and share snapshots under the\n * specified account.\n * @param options The options parameters.\n */\n listSharesSegment(\n options?: ServiceListSharesSegmentOptionalParams\n ): Promise<ServiceListSharesSegmentResponse> {\n return this.client.sendOperationRequest(\n { options },\n listSharesSegmentOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst setPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.ServiceSetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceSetPropertiesExceptionHeaders\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\n headersMapper: Mappers.ServiceGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds\n ],\n urlParameters: [Parameters.url],\n headerParameters: [Parameters.version, Parameters.accept1],\n isXML: true,\n serializer: xmlSerializer\n};\nconst listSharesSegmentOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListSharesResponse,\n headersMapper: Mappers.ServiceListSharesSegmentHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceListSharesSegmentExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.comp1,\n Parameters.prefix,\n Parameters.marker,\n Parameters.maxResults,\n Parameters.include\n ],\n urlParameters: [Parameters.url],\n headerParameters: [Parameters.version, Parameters.accept1],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/generated/src/operations/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,UAAiC,EACjC,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,UAAU,EAAE,OAAO,EAAE,EACvB,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,aAAa,CACX,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CACf,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,8BAA8B,CAC/B,CAAC;IACJ,C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/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;KACnB;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;YACtC,aAAa,EAAE,OAAO,CAAC,+BAA+B;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,wCAAwC;SAChE;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,OAAO;KACnB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;KACnB;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Service } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { StorageClient } from \"../storageClient\";\nimport {\n FileServiceProperties,\n ServiceSetPropertiesOptionalParams,\n ServiceSetPropertiesResponse,\n ServiceGetPropertiesOptionalParams,\n ServiceGetPropertiesResponse,\n ServiceListSharesSegmentOptionalParams,\n ServiceListSharesSegmentResponse\n} from \"../models\";\n\n/** Class containing Service operations. */\nexport class ServiceImpl implements Service {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Service class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * Sets properties for a storage account's File service endpoint, including properties for Storage\n * Analytics metrics and CORS (Cross-Origin Resource Sharing) rules.\n * @param properties The StorageService properties.\n * @param options The options parameters.\n */\n setProperties(\n properties: FileServiceProperties,\n options?: ServiceSetPropertiesOptionalParams\n ): Promise<ServiceSetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { properties, options },\n setPropertiesOperationSpec\n );\n }\n\n /**\n * Gets the properties of a storage account's File service, including properties for Storage Analytics\n * metrics and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n getProperties(\n options?: ServiceGetPropertiesOptionalParams\n ): Promise<ServiceGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec\n );\n }\n\n /**\n * The List Shares Segment operation returns a list of the shares and share snapshots under the\n * specified account.\n * @param options The options parameters.\n */\n listSharesSegment(\n options?: ServiceListSharesSegmentOptionalParams\n ): Promise<ServiceListSharesSegmentResponse> {\n return this.client.sendOperationRequest(\n { options },\n listSharesSegmentOperationSpec\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst setPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.ServiceSetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceSetPropertiesExceptionHeaders\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.fileRequestIntent\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FileServiceProperties,\n headersMapper: Mappers.ServiceGetPropertiesHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetPropertiesExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\nconst listSharesSegmentOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListSharesResponse,\n headersMapper: Mappers.ServiceListSharesSegmentHeaders\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceListSharesSegmentExceptionHeaders\n }\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.comp1,\n Parameters.prefix,\n Parameters.marker,\n Parameters.maxResults,\n Parameters.include\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.fileRequestIntent,\n Parameters.accept1\n ],\n isXML: true,\n serializer: xmlSerializer\n};\n"]}
@@ -169,13 +169,17 @@ const createOperationSpec = {
169
169
  urlParameters: [Parameters.url],
170
170
  headerParameters: [
171
171
  Parameters.version,
172
+ Parameters.fileRequestIntent,
172
173
  Parameters.accept1,
173
174
  Parameters.metadata,
174
175
  Parameters.quota,
175
176
  Parameters.accessTier,
176
177
  Parameters.enabledProtocols,
177
178
  Parameters.rootSquash,
178
- Parameters.enableSnapshotVirtualDirectoryAccess
179
+ Parameters.enableSnapshotVirtualDirectoryAccess,
180
+ Parameters.paidBurstingEnabled,
181
+ Parameters.paidBurstingMaxBandwidthMibps,
182
+ Parameters.paidBurstingMaxIops
179
183
  ],
180
184
  isXML: true,
181
185
  serializer: xmlSerializer
@@ -200,6 +204,7 @@ const getPropertiesOperationSpec = {
200
204
  urlParameters: [Parameters.url],
201
205
  headerParameters: [
202
206
  Parameters.version,
207
+ Parameters.fileRequestIntent,
203
208
  Parameters.accept1,
204
209
  Parameters.leaseId
205
210
  ],
@@ -226,6 +231,7 @@ const deleteOperationSpec = {
226
231
  urlParameters: [Parameters.url],
227
232
  headerParameters: [
228
233
  Parameters.version,
234
+ Parameters.fileRequestIntent,
229
235
  Parameters.accept1,
230
236
  Parameters.leaseId,
231
237
  Parameters.deleteSnapshots
@@ -254,6 +260,7 @@ const acquireLeaseOperationSpec = {
254
260
  urlParameters: [Parameters.url],
255
261
  headerParameters: [
256
262
  Parameters.version,
263
+ Parameters.fileRequestIntent,
257
264
  Parameters.accept1,
258
265
  Parameters.action,
259
266
  Parameters.duration,
@@ -284,6 +291,7 @@ const releaseLeaseOperationSpec = {
284
291
  urlParameters: [Parameters.url],
285
292
  headerParameters: [
286
293
  Parameters.version,
294
+ Parameters.fileRequestIntent,
287
295
  Parameters.accept1,
288
296
  Parameters.requestId,
289
297
  Parameters.action1,
@@ -313,6 +321,7 @@ const changeLeaseOperationSpec = {
313
321
  urlParameters: [Parameters.url],
314
322
  headerParameters: [
315
323
  Parameters.version,
324
+ Parameters.fileRequestIntent,
316
325
  Parameters.accept1,
317
326
  Parameters.proposedLeaseId,
318
327
  Parameters.requestId,
@@ -343,6 +352,7 @@ const renewLeaseOperationSpec = {
343
352
  urlParameters: [Parameters.url],
344
353
  headerParameters: [
345
354
  Parameters.version,
355
+ Parameters.fileRequestIntent,
346
356
  Parameters.accept1,
347
357
  Parameters.requestId,
348
358
  Parameters.leaseId1,
@@ -372,6 +382,7 @@ const breakLeaseOperationSpec = {
372
382
  urlParameters: [Parameters.url],
373
383
  headerParameters: [
374
384
  Parameters.version,
385
+ Parameters.fileRequestIntent,
375
386
  Parameters.accept1,
376
387
  Parameters.leaseId,
377
388
  Parameters.requestId,
@@ -401,6 +412,7 @@ const createSnapshotOperationSpec = {
401
412
  urlParameters: [Parameters.url],
402
413
  headerParameters: [
403
414
  Parameters.version,
415
+ Parameters.fileRequestIntent,
404
416
  Parameters.accept1,
405
417
  Parameters.metadata
406
418
  ],
@@ -428,9 +440,9 @@ const createPermissionOperationSpec = {
428
440
  urlParameters: [Parameters.url],
429
441
  headerParameters: [
430
442
  Parameters.version,
443
+ Parameters.fileRequestIntent,
431
444
  Parameters.accept1,
432
- Parameters.contentType1,
433
- Parameters.fileRequestIntent
445
+ Parameters.contentType1
434
446
  ],
435
447
  mediaType: "json",
436
448
  serializer
@@ -458,7 +470,8 @@ const getPermissionOperationSpec = {
458
470
  Parameters.version,
459
471
  Parameters.fileRequestIntent,
460
472
  Parameters.accept2,
461
- Parameters.filePermissionKey
473
+ Parameters.filePermissionKey,
474
+ Parameters.filePermissionFormat
462
475
  ],
463
476
  serializer
464
477
  };
@@ -482,11 +495,15 @@ const setPropertiesOperationSpec = {
482
495
  urlParameters: [Parameters.url],
483
496
  headerParameters: [
484
497
  Parameters.version,
498
+ Parameters.fileRequestIntent,
485
499
  Parameters.accept1,
486
500
  Parameters.quota,
487
501
  Parameters.accessTier,
488
502
  Parameters.rootSquash,
489
503
  Parameters.enableSnapshotVirtualDirectoryAccess,
504
+ Parameters.paidBurstingEnabled,
505
+ Parameters.paidBurstingMaxBandwidthMibps,
506
+ Parameters.paidBurstingMaxIops,
490
507
  Parameters.leaseId
491
508
  ],
492
509
  isXML: true,
@@ -512,6 +529,7 @@ const setMetadataOperationSpec = {
512
529
  urlParameters: [Parameters.url],
513
530
  headerParameters: [
514
531
  Parameters.version,
532
+ Parameters.fileRequestIntent,
515
533
  Parameters.accept1,
516
534
  Parameters.metadata,
517
535
  Parameters.leaseId
@@ -551,6 +569,7 @@ const getAccessPolicyOperationSpec = {
551
569
  urlParameters: [Parameters.url],
552
570
  headerParameters: [
553
571
  Parameters.version,
572
+ Parameters.fileRequestIntent,
554
573
  Parameters.accept1,
555
574
  Parameters.leaseId
556
575
  ],
@@ -580,6 +599,7 @@ const setAccessPolicyOperationSpec = {
580
599
  Parameters.contentType,
581
600
  Parameters.accept,
582
601
  Parameters.version,
602
+ Parameters.fileRequestIntent,
583
603
  Parameters.leaseId
584
604
  ],
585
605
  isXML: true,
@@ -608,6 +628,7 @@ const getStatisticsOperationSpec = {
608
628
  urlParameters: [Parameters.url],
609
629
  headerParameters: [
610
630
  Parameters.version,
631
+ Parameters.fileRequestIntent,
611
632
  Parameters.accept1,
612
633
  Parameters.leaseId
613
634
  ],
@@ -634,6 +655,7 @@ const restoreOperationSpec = {
634
655
  urlParameters: [Parameters.url],
635
656
  headerParameters: [
636
657
  Parameters.version,
658
+ Parameters.fileRequestIntent,
637
659
  Parameters.accept1,
638
660
  Parameters.requestId,
639
661
  Parameters.deletedShareName,