@azure/storage-file-share 12.9.1-alpha.20220330.1 → 12.10.0-beta.1
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.
- package/CHANGELOG.md +6 -3
- package/dist/index.js +99 -49
- package/dist/index.js.map +1 -1
- package/dist-esm/src/Clients.js +25 -17
- package/dist-esm/src/Clients.js.map +1 -1
- package/dist-esm/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/mappers.js +14 -0
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +34 -5
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/operations/directory.js +8 -13
- package/dist-esm/src/generated/src/operations/directory.js.map +1 -1
- package/dist-esm/src/generated/src/operations/file.js +11 -12
- package/dist-esm/src/generated/src/operations/file.js.map +1 -1
- package/dist-esm/src/generated/src/storageClientContext.js +2 -2
- package/dist-esm/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/src/generatedModels.js.map +1 -1
- package/dist-esm/src/models.js +3 -0
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/utils/constants.js +4 -2
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/package.json +8 -5
- package/types/3.1/storage-file-share.d.ts +48 -0
- package/types/latest/storage-file-share.d.ts +49 -0
@@ -341,6 +341,8 @@ export declare interface CopyFileSmbInfo {
|
|
341
341
|
fileCreationTime?: string;
|
342
342
|
/** Specifies either the option to copy file last write time from a source file(source) to a target file or a time value in ISO 8601 format to set as last write time on a target file. */
|
343
343
|
fileLastWriteTime?: string;
|
344
|
+
/** Specifies either the option to copy file last write time from a source file(source) to a target file or a time value in ISO 8601 format to set as last write time on a target file. */
|
345
|
+
fileChangeTime?: string;
|
344
346
|
/** Specifies the option to copy file security descriptor from source file or to set it using the value which is defined by the header value of x-ms-file-permission or x-ms-file-permission-key. */
|
345
347
|
filePermissionCopyMode?: PermissionCopyModeType;
|
346
348
|
/** Specifies the option to overwrite the target file if it already exists and has read-only attribute set. */
|
@@ -1053,6 +1055,12 @@ export declare interface FileAndDirectoryCreateCommonOptions {
|
|
1053
1055
|
* By default, the value will be set as now.
|
1054
1056
|
*/
|
1055
1057
|
lastWriteTime?: Date | TimeNowType;
|
1058
|
+
/**
|
1059
|
+
* The Coordinated Universal Time (UTC) change time property for the directory.
|
1060
|
+
* A value of now may be used to indicate the time of the request.
|
1061
|
+
* By default, the value will be set to the time of the request.
|
1062
|
+
*/
|
1063
|
+
changeTime?: Date | TimeNowType;
|
1056
1064
|
}
|
1057
1065
|
|
1058
1066
|
export declare interface FileAndDirectorySetPropertiesCommonOptions {
|
@@ -1090,6 +1098,12 @@ export declare interface FileAndDirectorySetPropertiesCommonOptions {
|
|
1090
1098
|
* By default, the value will be set as preserve.
|
1091
1099
|
*/
|
1092
1100
|
lastWriteTime?: Date | TimeNowType | TimePreserveType;
|
1101
|
+
/**
|
1102
|
+
* The Coordinated Universal Time (UTC) change time property for the directory.
|
1103
|
+
* A value of now may be used to indicate the time of the request.
|
1104
|
+
* By default, the value will be set to the time of the request.
|
1105
|
+
*/
|
1106
|
+
changeTime?: Date | TimeNowType;
|
1093
1107
|
}
|
1094
1108
|
|
1095
1109
|
/**
|
@@ -1110,6 +1124,13 @@ export declare interface FileClearRangeOptions extends CommonOptions {
|
|
1110
1124
|
* Lease access conditions.
|
1111
1125
|
*/
|
1112
1126
|
leaseAccessConditions?: LeaseAccessConditions;
|
1127
|
+
/**
|
1128
|
+
* The last write time for the file.
|
1129
|
+
* A value of preserve may be passed to keep an existing value unchanged.
|
1130
|
+
* A value of now may be used to indicate the time of the request.
|
1131
|
+
* By default, the value will be set as now.
|
1132
|
+
*/
|
1133
|
+
fileLastWrittenMode?: FileLastWrittenMode;
|
1113
1134
|
}
|
1114
1135
|
|
1115
1136
|
/**
|
@@ -1737,6 +1758,9 @@ export declare interface FileItem {
|
|
1737
1758
|
permissionKey?: string;
|
1738
1759
|
}
|
1739
1760
|
|
1761
|
+
/** Defines values for FileLastWrittenMode. */
|
1762
|
+
export declare type FileLastWrittenMode = "Now" | "Preserve";
|
1763
|
+
|
1740
1764
|
/** Defines headers for File_listHandles operation. */
|
1741
1765
|
export declare interface FileListHandlesHeaders {
|
1742
1766
|
/** Specifies the format in which the results are returned. Currently this value is 'application/xml'. */
|
@@ -1953,6 +1977,11 @@ export declare interface FileRenameOptions extends CommonOptions {
|
|
1953
1977
|
* A boolean value that specifies whether the ReadOnly attribute on a preexisting destination file should be respected. If true, the rename will succeed, otherwise, a previous file at the destination with the ReadOnly attribute set will cause the rename to fail.
|
1954
1978
|
*/
|
1955
1979
|
ignoreReadOnly?: boolean;
|
1980
|
+
/**
|
1981
|
+
* Optional.
|
1982
|
+
* Content type to set on the File.
|
1983
|
+
*/
|
1984
|
+
contentType?: string;
|
1956
1985
|
}
|
1957
1986
|
|
1958
1987
|
/** Contains response data for the rename operation. */
|
@@ -2348,6 +2377,8 @@ export declare interface FileUploadRangeFromURLHeaders {
|
|
2348
2377
|
date?: Date;
|
2349
2378
|
/** The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise. */
|
2350
2379
|
isServerEncrypted?: boolean;
|
2380
|
+
/** Last write time for the file. */
|
2381
|
+
fileLastWriteTime?: Date;
|
2351
2382
|
/** Error Code */
|
2352
2383
|
errorCode?: string;
|
2353
2384
|
}
|
@@ -2360,6 +2391,8 @@ export declare interface FileUploadRangeFromURLOptionalParams extends coreHttp.O
|
|
2360
2391
|
sourceModifiedAccessConditions?: SourceModifiedAccessConditions;
|
2361
2392
|
/** The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a> */
|
2362
2393
|
timeoutInSeconds?: number;
|
2394
|
+
/** If the file last write time should be preserved or overwritten */
|
2395
|
+
fileLastWrittenMode?: FileLastWrittenMode;
|
2363
2396
|
/** Bytes of source data in the specified range. */
|
2364
2397
|
sourceRange?: string;
|
2365
2398
|
/** Specify the crc64 calculated for the range of bytes that must be read from the copy source. */
|
@@ -2399,6 +2432,13 @@ export declare interface FileUploadRangeFromURLOptions extends CommonOptions {
|
|
2399
2432
|
* Only Bearer type is supported. Credentials should be a valid OAuth access token to copy source.
|
2400
2433
|
*/
|
2401
2434
|
sourceAuthorization?: HttpAuthorization;
|
2435
|
+
/**
|
2436
|
+
* The last write time for the file.
|
2437
|
+
* A value of preserve may be passed to keep an existing value unchanged.
|
2438
|
+
* A value of now may be used to indicate the time of the request.
|
2439
|
+
* By default, the value will be set as now.
|
2440
|
+
*/
|
2441
|
+
fileLastWrittenMode?: FileLastWrittenMode;
|
2402
2442
|
}
|
2403
2443
|
|
2404
2444
|
/** Contains response data for the uploadRangeFromURL operation. */
|
@@ -2426,6 +2466,8 @@ export declare interface FileUploadRangeHeaders {
|
|
2426
2466
|
date?: Date;
|
2427
2467
|
/** The value of this header is set to true if the contents of the request are successfully encrypted using the specified algorithm, and false otherwise. */
|
2428
2468
|
isServerEncrypted?: boolean;
|
2469
|
+
/** Last write time for the file. */
|
2470
|
+
fileLastWriteTime?: Date;
|
2429
2471
|
/** Error Code */
|
2430
2472
|
errorCode?: string;
|
2431
2473
|
}
|
@@ -2456,6 +2498,13 @@ export declare interface FileUploadRangeOptions extends CommonOptions {
|
|
2456
2498
|
* Lease access conditions.
|
2457
2499
|
*/
|
2458
2500
|
leaseAccessConditions?: LeaseAccessConditions;
|
2501
|
+
/**
|
2502
|
+
* The last write time for the file.
|
2503
|
+
* A value of Preserve may be passed to keep an existing value unchanged.
|
2504
|
+
* A value of Now may be used to indicate the time of the request.
|
2505
|
+
* By default, the value will be set as Now.
|
2506
|
+
*/
|
2507
|
+
fileLastWrittenMode?: FileLastWrittenMode;
|
2459
2508
|
}
|
2460
2509
|
|
2461
2510
|
/** Contains response data for the uploadRange operation. */
|