@azure/storage-file-share 12.27.0-beta.1 → 12.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -568,14 +568,8 @@ export declare interface DirectoryCreateHeaders {
568
568
  fileId?: string;
569
569
  /** The parent fileId of the directory. */
570
570
  fileParentId?: string;
571
- /** NFS only. The mode of the file or directory. */
572
- fileMode?: NfsFileMode;
573
- /** NFS only. The owner of the file or directory. */
574
- owner?: string;
575
- /** NFS only. The owning group of the file or directory. */
576
- group?: string;
577
- /** NFS only. Type of the file or directory. */
578
- nfsFileType?: NfsFileType;
571
+ /** Properties of NFS files. */
572
+ posixProperties?: FilePosixProperties;
579
573
  /** Error Code */
580
574
  errorCode?: string;
581
575
  }
@@ -850,14 +844,8 @@ export declare interface DirectoryGetPropertiesHeaders {
850
844
  fileId?: string;
851
845
  /** The parent fileId of the directory. */
852
846
  fileParentId?: string;
853
- /** NFS only. The mode of the file or directory. */
854
- fileMode?: NfsFileMode;
855
- /** NFS only. The owner of the file or directory. */
856
- owner?: string;
857
- /** NFS only. The owning group of the file or directory. */
858
- group?: string;
859
- /** NFS only. Type of the file or directory. */
860
- nfsFileType?: NfsFileType;
847
+ /** Properties of NFS files. */
848
+ posixProperties?: FilePosixProperties;
861
849
  /** Error Code */
862
850
  errorCode?: string;
863
851
  }
@@ -1314,12 +1302,8 @@ export declare interface DirectorySetPropertiesHeaders {
1314
1302
  fileId?: string;
1315
1303
  /** The parent fileId of the directory. */
1316
1304
  fileParentId?: string;
1317
- /** NFS only. The mode of the file or directory. */
1318
- fileMode?: NfsFileMode;
1319
- /** NFS only. The owner of the file or directory. */
1320
- owner?: string;
1321
- /** NFS only. The owning group of the file or directory. */
1322
- group?: string;
1305
+ /** Properties of NFS files. */
1306
+ posixProperties?: FilePosixProperties;
1323
1307
  /** Error Code */
1324
1308
  errorCode?: string;
1325
1309
  }
@@ -1887,16 +1871,8 @@ export declare interface FileCreateHardLinkHeaders {
1887
1871
  fileParentId?: string;
1888
1872
  /** If a client request id header is sent in the request, this header will be present in the response with the same value. */
1889
1873
  clientRequestId?: string;
1890
- /** NFS only. The link count of the file or directory. */
1891
- linkCount?: number;
1892
- /** NFS only. The mode of the file or directory. */
1893
- fileMode?: NfsFileMode;
1894
- /** NFS only. The owner of the file or directory. */
1895
- owner?: string;
1896
- /** NFS only. The owning group of the file or directory. */
1897
- group?: string;
1898
- /** NFS only. Type of the file or directory. */
1899
- nfsFileType?: NfsFileType;
1874
+ /** Properties of NFS files. */
1875
+ posixProperties?: FilePosixProperties;
1900
1876
  }
1901
1877
 
1902
1878
  /** Defines headers for File_createHardLink operation. */
@@ -1999,14 +1975,8 @@ export declare interface FileCreateHeaders {
1999
1975
  fileId?: string;
2000
1976
  /** The parent fileId of the file. */
2001
1977
  fileParentId?: string;
2002
- /** NFS only. The mode of the file or directory. */
2003
- fileMode?: NfsFileMode;
2004
- /** NFS only. The owner of the file or directory. */
2005
- owner?: string;
2006
- /** NFS only. The owning group of the file or directory. */
2007
- group?: string;
2008
- /** NFS only. Type of the file or directory. */
2009
- nfsFileType?: NfsFileType;
1978
+ /** Properties of NFS files. */
1979
+ posixProperties?: FilePosixProperties;
2010
1980
  /** Error Code */
2011
1981
  errorCode?: string;
2012
1982
  }
@@ -2308,14 +2278,8 @@ export declare interface FileDownloadHeaders {
2308
2278
  leaseState?: LeaseStateType;
2309
2279
  /** The current lease status of the file. */
2310
2280
  leaseStatus?: LeaseStatusType;
2311
- /** NFS only. The mode of the file or directory. */
2312
- fileMode?: NfsFileMode;
2313
- /** NFS only. The owner of the file or directory. */
2314
- owner?: string;
2315
- /** NFS only. The owning group of the file or directory. */
2316
- group?: string;
2317
- /** NFS only. The link count of the file or directory. */
2318
- linkCount?: number;
2281
+ /** Properties of NFS files. */
2282
+ posixProperties?: FilePosixProperties;
2319
2283
  /** Error Code */
2320
2284
  errorCode?: string;
2321
2285
  }
@@ -2669,16 +2633,8 @@ export declare interface FileGetPropertiesHeaders {
2669
2633
  leaseState?: LeaseStateType;
2670
2634
  /** The current lease status of the file. */
2671
2635
  leaseStatus?: LeaseStatusType;
2672
- /** NFS only. The mode of the file or directory. */
2673
- fileMode?: NfsFileMode;
2674
- /** NFS only. The owner of the file or directory. */
2675
- owner?: string;
2676
- /** NFS only. The owning group of the file or directory. */
2677
- group?: string;
2678
- /** NFS only. The link count of the file or directory. */
2679
- linkCount?: number;
2680
- /** NFS only. Type of the file or directory. */
2681
- nfsFileType?: NfsFileType;
2636
+ /** Properties of NFS files. */
2637
+ posixProperties?: FilePosixProperties;
2682
2638
  /** Error Code */
2683
2639
  errorCode?: string;
2684
2640
  }
@@ -3119,14 +3075,16 @@ export declare type FilePermissionPreserveType = "preserve";
3119
3075
  premium NFS file accounts.
3120
3076
  */
3121
3077
  export declare interface FilePosixProperties {
3122
- /** Optional, NFS only. The owner of the file or directory. */
3078
+ /** NFS only. The owner of the file or directory. */
3123
3079
  owner?: string;
3124
- /** Optional, NFS only. The owning group of the file or directory. */
3080
+ /** NFS only. The owning group of the file or directory. */
3125
3081
  group?: string;
3126
- /** Optional, NFS only. The file mode of the file or directory */
3082
+ /** NFS only. The file mode of the file or directory */
3127
3083
  fileMode?: NfsFileMode;
3128
- /** Optional, NFS only. Type of the file or directory. */
3084
+ /** NFS only. Type of the file or directory. */
3129
3085
  fileType?: NfsFileType;
3086
+ /** NFS only. The link count of the file or directory. */
3087
+ linkCount?: number;
3130
3088
  }
3131
3089
 
3132
3090
  export declare interface FileProperties extends FileAndDirectorySetPropertiesCommonOptions, CommonOptions {
@@ -3503,14 +3461,8 @@ export declare interface FileSetHTTPHeadersHeaders {
3503
3461
  fileId?: string;
3504
3462
  /** The parent fileId of the directory. */
3505
3463
  fileParentId?: string;
3506
- /** NFS only. The mode of the file or directory. */
3507
- fileMode?: NfsFileMode;
3508
- /** NFS only. The owner of the file or directory. */
3509
- owner?: string;
3510
- /** NFS only. The owning group of the file or directory. */
3511
- group?: string;
3512
- /** NFS only. The link count of the file or directory. */
3513
- linkCount?: number;
3464
+ /** Properties of NFS files. */
3465
+ posixProperties?: FilePosixProperties;
3514
3466
  /** Error Code */
3515
3467
  errorCode?: string;
3516
3468
  }
@@ -6441,7 +6393,7 @@ export declare class ShareFileClient extends StorageClient {
6441
6393
  * return new Promise((resolve, reject) => {
6442
6394
  * const chunks = [];
6443
6395
  * readableStream.on("data", (data) => {
6444
- * chunks.push(data instanceof Buffer ? data : Buffer.from(data));
6396
+ * chunks.push(typeof data === "string" ? Buffer.from(data) : data);
6445
6397
  * });
6446
6398
  * readableStream.on("end", () => {
6447
6399
  * resolve(Buffer.concat(chunks));