@azure/storage-file-share 12.23.0-alpha.20240528.1 → 12.23.0-alpha.20240530.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +154 -190
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-file-share/src/Pipeline.js +1 -1
- package/dist-esm/storage-file-share/src/Pipeline.js.map +1 -1
- package/dist-esm/storage-file-share/src/StorageRetryPolicyFactory.js +1 -1
- package/dist-esm/storage-file-share/src/StorageRetryPolicyFactory.js.map +1 -1
- package/dist-esm/storage-file-share/src/policies/StorageRetryPolicy.js +204 -0
- package/dist-esm/storage-file-share/src/policies/StorageRetryPolicy.js.map +1 -0
- package/dist-esm/storage-file-share/src/policies/StorageRetryPolicyV2.js +160 -0
- package/dist-esm/storage-file-share/src/policies/StorageRetryPolicyV2.js.map +1 -0
- package/package.json +1 -1
- package/types/latest/storage-file-share.d.ts +1 -45
@@ -7155,50 +7155,6 @@ export declare interface StorageRetryOptions {
|
|
7155
7155
|
readonly maxRetryDelayInMs?: number;
|
7156
7156
|
}
|
7157
7157
|
|
7158
|
-
/**
|
7159
|
-
* Storage Blob retry options interface.
|
7160
|
-
*/
|
7161
|
-
declare interface StorageRetryOptions_2 {
|
7162
|
-
/**
|
7163
|
-
* Optional. StorageRetryPolicyType, default is exponential retry policy.
|
7164
|
-
*/
|
7165
|
-
readonly retryPolicyType?: StorageRetryPolicyType;
|
7166
|
-
/**
|
7167
|
-
* Optional. Max try number of attempts, default is 4.
|
7168
|
-
* A value of 1 means 1 try and no retries.
|
7169
|
-
* A value smaller than 1 means default retry number of attempts.
|
7170
|
-
*/
|
7171
|
-
readonly maxTries?: number;
|
7172
|
-
/**
|
7173
|
-
* Optional. Indicates the maximum time in ms allowed for any single try of an HTTP request.
|
7174
|
-
* A value of zero or undefined means no default timeout on SDK client, Azure
|
7175
|
-
* Storage server's default timeout policy will be used.
|
7176
|
-
*
|
7177
|
-
* @see https://docs.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-blob-service-operations
|
7178
|
-
*/
|
7179
|
-
readonly tryTimeoutInMs?: number;
|
7180
|
-
/**
|
7181
|
-
* Optional. Specifies the amount of delay to use before retrying an operation (default is 4s or 4 * 1000ms).
|
7182
|
-
* The delay increases (exponentially or linearly) with each retry up to a maximum specified by
|
7183
|
-
* maxRetryDelayInMs. If you specify 0, then you must also specify 0 for maxRetryDelayInMs.
|
7184
|
-
*/
|
7185
|
-
readonly retryDelayInMs?: number;
|
7186
|
-
/**
|
7187
|
-
* Optional. Specifies the maximum delay allowed before retrying an operation (default is 120s or 120 * 1000ms).
|
7188
|
-
* If you specify 0, then you must also specify 0 for retryDelayInMs.
|
7189
|
-
*/
|
7190
|
-
readonly maxRetryDelayInMs?: number;
|
7191
|
-
/**
|
7192
|
-
* If a secondaryHost is specified, retries will be tried against this host. If secondaryHost is undefined
|
7193
|
-
* (the default) then operations are not retried against another host.
|
7194
|
-
*
|
7195
|
-
* NOTE: Before setting this field, make sure you understand the issues around
|
7196
|
-
* reading stale and potentially-inconsistent data at
|
7197
|
-
* {@link https://docs.microsoft.com/en-us/azure/storage/common/storage-designing-ha-apps-with-ragrs}
|
7198
|
-
*/
|
7199
|
-
readonly secondaryHost?: string;
|
7200
|
-
}
|
7201
|
-
|
7202
7158
|
/**
|
7203
7159
|
* Retry policy with exponential retry and linear retry implemented.
|
7204
7160
|
*/
|
@@ -7214,7 +7170,7 @@ export declare class StorageRetryPolicy extends BaseRequestPolicy {
|
|
7214
7170
|
* @param options -
|
7215
7171
|
* @param retryOptions -
|
7216
7172
|
*/
|
7217
|
-
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, retryOptions?:
|
7173
|
+
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, retryOptions?: StorageRetryOptions);
|
7218
7174
|
/**
|
7219
7175
|
* Sends request.
|
7220
7176
|
*
|