@azure/arm-storage 18.0.1-alpha.20221128.1 → 18.1.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.
- package/CHANGELOG.md +20 -10
- package/dist/index.js +388 -129
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/blobContainersClearLegalHoldSample.js +1 -1
- package/dist-esm/samples-dev/blobContainersCreateOrUpdateImmutabilityPolicySample.js +2 -2
- package/dist-esm/samples-dev/blobContainersCreateSample.js +3 -3
- package/dist-esm/samples-dev/blobContainersDeleteImmutabilityPolicySample.js +1 -1
- package/dist-esm/samples-dev/blobContainersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/blobContainersExtendImmutabilityPolicySample.js +1 -1
- package/dist-esm/samples-dev/blobContainersGetImmutabilityPolicySample.js +1 -1
- package/dist-esm/samples-dev/blobContainersGetSample.js +2 -2
- package/dist-esm/samples-dev/blobContainersLeaseSample.js +2 -2
- package/dist-esm/samples-dev/blobContainersListSample.js +2 -2
- package/dist-esm/samples-dev/blobContainersLockImmutabilityPolicySample.js +1 -1
- package/dist-esm/samples-dev/blobContainersObjectLevelWormSample.js +1 -1
- package/dist-esm/samples-dev/blobContainersSetLegalHoldSample.js +2 -2
- package/dist-esm/samples-dev/blobContainersUpdateSample.js +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +3 -3
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/blobServicesGetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/blobServicesListSample.js +1 -1
- package/dist-esm/samples-dev/blobServicesSetServicePropertiesSample.js +3 -3
- package/dist-esm/samples-dev/deletedAccountsGetSample.js +1 -1
- package/dist-esm/samples-dev/deletedAccountsListSample.js +1 -1
- package/dist-esm/samples-dev/encryptionScopesGetSample.js +1 -1
- package/dist-esm/samples-dev/encryptionScopesListSample.js +1 -1
- package/dist-esm/samples-dev/encryptionScopesPatchSample.js +1 -1
- package/dist-esm/samples-dev/encryptionScopesPutSample.js +2 -2
- package/dist-esm/samples-dev/fileServicesGetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/fileServicesListSample.js +1 -1
- package/dist-esm/samples-dev/fileServicesSetServicePropertiesSample.js +3 -3
- package/dist-esm/samples-dev/fileSharesCreateSample.js +3 -3
- package/dist-esm/samples-dev/fileSharesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/fileSharesGetSample.js +2 -2
- package/dist-esm/samples-dev/fileSharesLeaseSample.js +2 -2
- package/dist-esm/samples-dev/fileSharesListSample.js +3 -3
- package/dist-esm/samples-dev/fileSharesRestoreSample.js +1 -1
- package/dist-esm/samples-dev/fileSharesUpdateSample.js +2 -2
- package/dist-esm/samples-dev/localUsersCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/localUsersDeleteSample.js +1 -1
- package/dist-esm/samples-dev/localUsersGetSample.js +1 -1
- package/dist-esm/samples-dev/localUsersListKeysSample.js +1 -1
- package/dist-esm/samples-dev/localUsersListSample.js +1 -1
- package/dist-esm/samples-dev/localUsersRegeneratePasswordSample.js +1 -1
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +99 -6
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/managementPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +4 -4
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +1 -1
- package/dist-esm/samples-dev/queueCreateSample.js +2 -2
- package/dist-esm/samples-dev/queueDeleteSample.js +1 -1
- package/dist-esm/samples-dev/queueGetSample.js +1 -1
- package/dist-esm/samples-dev/queueListSample.js +1 -1
- package/dist-esm/samples-dev/queueServicesGetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/queueServicesListSample.js +1 -1
- package/dist-esm/samples-dev/queueServicesSetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/queueUpdateSample.js +1 -1
- package/dist-esm/samples-dev/skusListSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsAbortHierarchicalNamespaceMigrationSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsCreateSample.js +12 -12
- package/dist-esm/samples-dev/storageAccountsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsFailoverSample.js +21 -3
- package/dist-esm/samples-dev/storageAccountsFailoverSample.js.map +1 -1
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +4 -4
- package/dist-esm/samples-dev/storageAccountsHierarchicalNamespaceMigrationSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsListKeysSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsListSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +2 -2
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +1 -1
- package/dist-esm/samples-dev/storageAccountsUpdateSample.js +8 -8
- package/dist-esm/samples-dev/tableCreateSample.js +2 -2
- package/dist-esm/samples-dev/tableDeleteSample.js +1 -1
- package/dist-esm/samples-dev/tableGetSample.js +1 -1
- package/dist-esm/samples-dev/tableListSample.js +1 -1
- package/dist-esm/samples-dev/tableServicesGetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/tableServicesListSample.js +1 -1
- package/dist-esm/samples-dev/tableServicesSetServicePropertiesSample.js +1 -1
- package/dist-esm/samples-dev/tableUpdateSample.js +2 -2
- package/dist-esm/samples-dev/usagesListByLocationSample.js +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +61 -18
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +42 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -3
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +46 -13
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/blobContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/blobContainers.js +23 -11
- package/dist-esm/src/operations/blobContainers.js.map +1 -1
- package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/blobInventoryPolicies.js +8 -4
- package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -1
- package/dist-esm/src/operations/blobServices.d.ts.map +1 -1
- package/dist-esm/src/operations/blobServices.js +8 -4
- package/dist-esm/src/operations/blobServices.js.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/deletedAccounts.js +19 -7
- package/dist-esm/src/operations/deletedAccounts.js.map +1 -1
- package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -1
- package/dist-esm/src/operations/encryptionScopes.js +31 -9
- package/dist-esm/src/operations/encryptionScopes.js.map +1 -1
- package/dist-esm/src/operations/fileShares.d.ts.map +1 -1
- package/dist-esm/src/operations/fileShares.js +22 -10
- package/dist-esm/src/operations/fileShares.js.map +1 -1
- package/dist-esm/src/operations/localUsersOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/localUsersOperations.js +8 -4
- package/dist-esm/src/operations/localUsersOperations.js.map +1 -1
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +8 -4
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +8 -4
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/queue.d.ts.map +1 -1
- package/dist-esm/src/operations/queue.js +23 -11
- package/dist-esm/src/operations/queue.js.map +1 -1
- package/dist-esm/src/operations/skus.d.ts.map +1 -1
- package/dist-esm/src/operations/skus.js +8 -4
- package/dist-esm/src/operations/skus.js.map +1 -1
- package/dist-esm/src/operations/storageAccounts.d.ts +20 -6
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
- package/dist-esm/src/operations/storageAccounts.js +58 -21
- package/dist-esm/src/operations/storageAccounts.js.map +1 -1
- package/dist-esm/src/operations/tableOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/tableOperations.js +19 -7
- package/dist-esm/src/operations/tableOperations.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts.map +1 -1
- package/dist-esm/src/operations/usages.js +8 -4
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +20 -6
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/storageManagementClient.d.ts.map +1 -1
- package/dist-esm/src/storageManagementClient.js +5 -8
- package/dist-esm/src/storageManagementClient.js.map +1 -1
- package/package.json +7 -6
- package/review/arm-storage.api.md +25 -0
- package/src/index.ts +1 -0
- package/src/models/index.ts +67 -20
- package/src/models/mappers.ts +42 -0
- package/src/models/parameters.ts +50 -14
- package/src/operations/blobContainers.ts +30 -12
- package/src/operations/blobInventoryPolicies.ts +17 -7
- package/src/operations/blobServices.ts +15 -5
- package/src/operations/deletedAccounts.ts +21 -8
- package/src/operations/encryptionScopes.ts +39 -11
- package/src/operations/fileShares.ts +29 -11
- package/src/operations/localUsersOperations.ts +15 -5
- package/src/operations/objectReplicationPoliciesOperations.ts +15 -5
- package/src/operations/operations.ts +10 -5
- package/src/operations/privateEndpointConnections.ts +15 -5
- package/src/operations/queue.ts +31 -13
- package/src/operations/skus.ts +10 -5
- package/src/operations/storageAccounts.ts +67 -24
- package/src/operations/tableOperations.ts +27 -9
- package/src/operations/usages.ts +10 -5
- package/src/operationsInterfaces/storageAccounts.ts +20 -6
- package/src/pagingHelper.ts +39 -0
- package/src/storageManagementClient.ts +6 -7
- package/types/arm-storage.d.ts +92 -24
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { EncryptionScopes } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,13 +17,13 @@ import {
|
|
|
16
17
|
EncryptionScope,
|
|
17
18
|
EncryptionScopesListNextOptionalParams,
|
|
18
19
|
EncryptionScopesListOptionalParams,
|
|
20
|
+
EncryptionScopesListResponse,
|
|
19
21
|
EncryptionScopesPutOptionalParams,
|
|
20
22
|
EncryptionScopesPutResponse,
|
|
21
23
|
EncryptionScopesPatchOptionalParams,
|
|
22
24
|
EncryptionScopesPatchResponse,
|
|
23
25
|
EncryptionScopesGetOptionalParams,
|
|
24
26
|
EncryptionScopesGetResponse,
|
|
25
|
-
EncryptionScopesListResponse,
|
|
26
27
|
EncryptionScopesListNextResponse
|
|
27
28
|
} from "../models";
|
|
28
29
|
|
|
@@ -61,8 +62,16 @@ export class EncryptionScopesImpl implements EncryptionScopes {
|
|
|
61
62
|
[Symbol.asyncIterator]() {
|
|
62
63
|
return this;
|
|
63
64
|
},
|
|
64
|
-
byPage: () => {
|
|
65
|
-
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
69
|
+
return this.listPagingPage(
|
|
70
|
+
resourceGroupName,
|
|
71
|
+
accountName,
|
|
72
|
+
options,
|
|
73
|
+
settings
|
|
74
|
+
);
|
|
66
75
|
}
|
|
67
76
|
};
|
|
68
77
|
}
|
|
@@ -70,11 +79,18 @@ export class EncryptionScopesImpl implements EncryptionScopes {
|
|
|
70
79
|
private async *listPagingPage(
|
|
71
80
|
resourceGroupName: string,
|
|
72
81
|
accountName: string,
|
|
73
|
-
options?: EncryptionScopesListOptionalParams
|
|
82
|
+
options?: EncryptionScopesListOptionalParams,
|
|
83
|
+
settings?: PageSettings
|
|
74
84
|
): AsyncIterableIterator<EncryptionScope[]> {
|
|
75
|
-
let result
|
|
76
|
-
|
|
77
|
-
|
|
85
|
+
let result: EncryptionScopesListResponse;
|
|
86
|
+
let continuationToken = settings?.continuationToken;
|
|
87
|
+
if (!continuationToken) {
|
|
88
|
+
result = await this._list(resourceGroupName, accountName, options);
|
|
89
|
+
let page = result.value || [];
|
|
90
|
+
continuationToken = result.nextLink;
|
|
91
|
+
setContinuationToken(page, continuationToken);
|
|
92
|
+
yield page;
|
|
93
|
+
}
|
|
78
94
|
while (continuationToken) {
|
|
79
95
|
result = await this._listNext(
|
|
80
96
|
resourceGroupName,
|
|
@@ -83,7 +99,9 @@ export class EncryptionScopesImpl implements EncryptionScopes {
|
|
|
83
99
|
options
|
|
84
100
|
);
|
|
85
101
|
continuationToken = result.nextLink;
|
|
86
|
-
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
87
105
|
}
|
|
88
106
|
}
|
|
89
107
|
|
|
@@ -325,7 +343,12 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
325
343
|
bodyMapper: Mappers.EncryptionScopeListResult
|
|
326
344
|
}
|
|
327
345
|
},
|
|
328
|
-
queryParameters: [
|
|
346
|
+
queryParameters: [
|
|
347
|
+
Parameters.apiVersion,
|
|
348
|
+
Parameters.maxpagesize,
|
|
349
|
+
Parameters.filter,
|
|
350
|
+
Parameters.include
|
|
351
|
+
],
|
|
329
352
|
urlParameters: [
|
|
330
353
|
Parameters.$host,
|
|
331
354
|
Parameters.subscriptionId,
|
|
@@ -343,7 +366,12 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
343
366
|
bodyMapper: Mappers.EncryptionScopeListResult
|
|
344
367
|
}
|
|
345
368
|
},
|
|
346
|
-
queryParameters: [
|
|
369
|
+
queryParameters: [
|
|
370
|
+
Parameters.apiVersion,
|
|
371
|
+
Parameters.maxpagesize,
|
|
372
|
+
Parameters.filter,
|
|
373
|
+
Parameters.include
|
|
374
|
+
],
|
|
347
375
|
urlParameters: [
|
|
348
376
|
Parameters.$host,
|
|
349
377
|
Parameters.subscriptionId,
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { FileShares } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -67,8 +68,16 @@ export class FileSharesImpl implements FileShares {
|
|
|
67
68
|
[Symbol.asyncIterator]() {
|
|
68
69
|
return this;
|
|
69
70
|
},
|
|
70
|
-
byPage: () => {
|
|
71
|
-
|
|
71
|
+
byPage: (settings?: PageSettings) => {
|
|
72
|
+
if (settings?.maxPageSize) {
|
|
73
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
74
|
+
}
|
|
75
|
+
return this.listPagingPage(
|
|
76
|
+
resourceGroupName,
|
|
77
|
+
accountName,
|
|
78
|
+
options,
|
|
79
|
+
settings
|
|
80
|
+
);
|
|
72
81
|
}
|
|
73
82
|
};
|
|
74
83
|
}
|
|
@@ -76,11 +85,18 @@ export class FileSharesImpl implements FileShares {
|
|
|
76
85
|
private async *listPagingPage(
|
|
77
86
|
resourceGroupName: string,
|
|
78
87
|
accountName: string,
|
|
79
|
-
options?: FileSharesListOptionalParams
|
|
88
|
+
options?: FileSharesListOptionalParams,
|
|
89
|
+
settings?: PageSettings
|
|
80
90
|
): AsyncIterableIterator<FileShareItem[]> {
|
|
81
|
-
let result
|
|
82
|
-
|
|
83
|
-
|
|
91
|
+
let result: FileSharesListResponse;
|
|
92
|
+
let continuationToken = settings?.continuationToken;
|
|
93
|
+
if (!continuationToken) {
|
|
94
|
+
result = await this._list(resourceGroupName, accountName, options);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
84
100
|
while (continuationToken) {
|
|
85
101
|
result = await this._listNext(
|
|
86
102
|
resourceGroupName,
|
|
@@ -89,7 +105,9 @@ export class FileSharesImpl implements FileShares {
|
|
|
89
105
|
options
|
|
90
106
|
);
|
|
91
107
|
continuationToken = result.nextLink;
|
|
92
|
-
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
93
111
|
}
|
|
94
112
|
}
|
|
95
113
|
|
|
@@ -320,8 +338,8 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
320
338
|
},
|
|
321
339
|
queryParameters: [
|
|
322
340
|
Parameters.apiVersion,
|
|
323
|
-
Parameters.maxpagesize,
|
|
324
341
|
Parameters.filter,
|
|
342
|
+
Parameters.maxpagesize1,
|
|
325
343
|
Parameters.expand2
|
|
326
344
|
],
|
|
327
345
|
urlParameters: [
|
|
@@ -420,7 +438,7 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
420
438
|
bodyMapper: Mappers.CloudError
|
|
421
439
|
}
|
|
422
440
|
},
|
|
423
|
-
queryParameters: [Parameters.apiVersion, Parameters.
|
|
441
|
+
queryParameters: [Parameters.apiVersion, Parameters.include2],
|
|
424
442
|
urlParameters: [
|
|
425
443
|
Parameters.$host,
|
|
426
444
|
Parameters.subscriptionId,
|
|
@@ -497,8 +515,8 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
497
515
|
},
|
|
498
516
|
queryParameters: [
|
|
499
517
|
Parameters.apiVersion,
|
|
500
|
-
Parameters.maxpagesize,
|
|
501
518
|
Parameters.filter,
|
|
519
|
+
Parameters.maxpagesize1,
|
|
502
520
|
Parameters.expand2
|
|
503
521
|
],
|
|
504
522
|
urlParameters: [
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { LocalUsersOperations } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -62,8 +62,16 @@ export class LocalUsersOperationsImpl implements LocalUsersOperations {
|
|
|
62
62
|
[Symbol.asyncIterator]() {
|
|
63
63
|
return this;
|
|
64
64
|
},
|
|
65
|
-
byPage: () => {
|
|
66
|
-
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
69
|
+
return this.listPagingPage(
|
|
70
|
+
resourceGroupName,
|
|
71
|
+
accountName,
|
|
72
|
+
options,
|
|
73
|
+
settings
|
|
74
|
+
);
|
|
67
75
|
}
|
|
68
76
|
};
|
|
69
77
|
}
|
|
@@ -71,9 +79,11 @@ export class LocalUsersOperationsImpl implements LocalUsersOperations {
|
|
|
71
79
|
private async *listPagingPage(
|
|
72
80
|
resourceGroupName: string,
|
|
73
81
|
accountName: string,
|
|
74
|
-
options?: LocalUsersListOptionalParams
|
|
82
|
+
options?: LocalUsersListOptionalParams,
|
|
83
|
+
_settings?: PageSettings
|
|
75
84
|
): AsyncIterableIterator<LocalUser[]> {
|
|
76
|
-
let result
|
|
85
|
+
let result: LocalUsersListResponse;
|
|
86
|
+
result = await this._list(resourceGroupName, accountName, options);
|
|
77
87
|
yield result.value || [];
|
|
78
88
|
}
|
|
79
89
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { ObjectReplicationPoliciesOperations } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -59,8 +59,16 @@ export class ObjectReplicationPoliciesOperationsImpl
|
|
|
59
59
|
[Symbol.asyncIterator]() {
|
|
60
60
|
return this;
|
|
61
61
|
},
|
|
62
|
-
byPage: () => {
|
|
63
|
-
|
|
62
|
+
byPage: (settings?: PageSettings) => {
|
|
63
|
+
if (settings?.maxPageSize) {
|
|
64
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
65
|
+
}
|
|
66
|
+
return this.listPagingPage(
|
|
67
|
+
resourceGroupName,
|
|
68
|
+
accountName,
|
|
69
|
+
options,
|
|
70
|
+
settings
|
|
71
|
+
);
|
|
64
72
|
}
|
|
65
73
|
};
|
|
66
74
|
}
|
|
@@ -68,9 +76,11 @@ export class ObjectReplicationPoliciesOperationsImpl
|
|
|
68
76
|
private async *listPagingPage(
|
|
69
77
|
resourceGroupName: string,
|
|
70
78
|
accountName: string,
|
|
71
|
-
options?: ObjectReplicationPoliciesListOptionalParams
|
|
79
|
+
options?: ObjectReplicationPoliciesListOptionalParams,
|
|
80
|
+
_settings?: PageSettings
|
|
72
81
|
): AsyncIterableIterator<ObjectReplicationPolicy[]> {
|
|
73
|
-
let result
|
|
82
|
+
let result: ObjectReplicationPoliciesListResponse;
|
|
83
|
+
result = await this._list(resourceGroupName, accountName, options);
|
|
74
84
|
yield result.value || [];
|
|
75
85
|
}
|
|
76
86
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { Operations } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -46,16 +46,21 @@ export class OperationsImpl implements Operations {
|
|
|
46
46
|
[Symbol.asyncIterator]() {
|
|
47
47
|
return this;
|
|
48
48
|
},
|
|
49
|
-
byPage: () => {
|
|
50
|
-
|
|
49
|
+
byPage: (settings?: PageSettings) => {
|
|
50
|
+
if (settings?.maxPageSize) {
|
|
51
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
52
|
+
}
|
|
53
|
+
return this.listPagingPage(options, settings);
|
|
51
54
|
}
|
|
52
55
|
};
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
private async *listPagingPage(
|
|
56
|
-
options?: OperationsListOptionalParams
|
|
59
|
+
options?: OperationsListOptionalParams,
|
|
60
|
+
_settings?: PageSettings
|
|
57
61
|
): AsyncIterableIterator<Operation[]> {
|
|
58
|
-
let result
|
|
62
|
+
let result: OperationsListResponse;
|
|
63
|
+
result = await this._list(options);
|
|
59
64
|
yield result.value || [];
|
|
60
65
|
}
|
|
61
66
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -59,8 +59,16 @@ export class PrivateEndpointConnectionsImpl
|
|
|
59
59
|
[Symbol.asyncIterator]() {
|
|
60
60
|
return this;
|
|
61
61
|
},
|
|
62
|
-
byPage: () => {
|
|
63
|
-
|
|
62
|
+
byPage: (settings?: PageSettings) => {
|
|
63
|
+
if (settings?.maxPageSize) {
|
|
64
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
65
|
+
}
|
|
66
|
+
return this.listPagingPage(
|
|
67
|
+
resourceGroupName,
|
|
68
|
+
accountName,
|
|
69
|
+
options,
|
|
70
|
+
settings
|
|
71
|
+
);
|
|
64
72
|
}
|
|
65
73
|
};
|
|
66
74
|
}
|
|
@@ -68,9 +76,11 @@ export class PrivateEndpointConnectionsImpl
|
|
|
68
76
|
private async *listPagingPage(
|
|
69
77
|
resourceGroupName: string,
|
|
70
78
|
accountName: string,
|
|
71
|
-
options?: PrivateEndpointConnectionsListOptionalParams
|
|
79
|
+
options?: PrivateEndpointConnectionsListOptionalParams,
|
|
80
|
+
_settings?: PageSettings
|
|
72
81
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
73
|
-
let result
|
|
82
|
+
let result: PrivateEndpointConnectionsListResponse;
|
|
83
|
+
result = await this._list(resourceGroupName, accountName, options);
|
|
74
84
|
yield result.value || [];
|
|
75
85
|
}
|
|
76
86
|
|
package/src/operations/queue.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Queue } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -16,6 +17,7 @@ import {
|
|
|
16
17
|
ListQueue,
|
|
17
18
|
QueueListNextOptionalParams,
|
|
18
19
|
QueueListOptionalParams,
|
|
20
|
+
QueueListResponse,
|
|
19
21
|
StorageQueue,
|
|
20
22
|
QueueCreateOptionalParams,
|
|
21
23
|
QueueCreateResponse,
|
|
@@ -24,7 +26,6 @@ import {
|
|
|
24
26
|
QueueGetOptionalParams,
|
|
25
27
|
QueueGetResponse,
|
|
26
28
|
QueueDeleteOptionalParams,
|
|
27
|
-
QueueListResponse,
|
|
28
29
|
QueueListNextResponse
|
|
29
30
|
} from "../models";
|
|
30
31
|
|
|
@@ -63,8 +64,16 @@ export class QueueImpl implements Queue {
|
|
|
63
64
|
[Symbol.asyncIterator]() {
|
|
64
65
|
return this;
|
|
65
66
|
},
|
|
66
|
-
byPage: () => {
|
|
67
|
-
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
71
|
+
return this.listPagingPage(
|
|
72
|
+
resourceGroupName,
|
|
73
|
+
accountName,
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
76
|
+
);
|
|
68
77
|
}
|
|
69
78
|
};
|
|
70
79
|
}
|
|
@@ -72,11 +81,18 @@ export class QueueImpl implements Queue {
|
|
|
72
81
|
private async *listPagingPage(
|
|
73
82
|
resourceGroupName: string,
|
|
74
83
|
accountName: string,
|
|
75
|
-
options?: QueueListOptionalParams
|
|
84
|
+
options?: QueueListOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
76
86
|
): AsyncIterableIterator<ListQueue[]> {
|
|
77
|
-
let result
|
|
78
|
-
|
|
79
|
-
|
|
87
|
+
let result: QueueListResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._list(resourceGroupName, accountName, options);
|
|
91
|
+
let page = result.value || [];
|
|
92
|
+
continuationToken = result.nextLink;
|
|
93
|
+
setContinuationToken(page, continuationToken);
|
|
94
|
+
yield page;
|
|
95
|
+
}
|
|
80
96
|
while (continuationToken) {
|
|
81
97
|
result = await this._listNext(
|
|
82
98
|
resourceGroupName,
|
|
@@ -85,7 +101,9 @@ export class QueueImpl implements Queue {
|
|
|
85
101
|
options
|
|
86
102
|
);
|
|
87
103
|
continuationToken = result.nextLink;
|
|
88
|
-
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
89
107
|
}
|
|
90
108
|
}
|
|
91
109
|
|
|
@@ -356,8 +374,8 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
356
374
|
},
|
|
357
375
|
queryParameters: [
|
|
358
376
|
Parameters.apiVersion,
|
|
359
|
-
Parameters.
|
|
360
|
-
Parameters.
|
|
377
|
+
Parameters.filter,
|
|
378
|
+
Parameters.maxpagesize1
|
|
361
379
|
],
|
|
362
380
|
urlParameters: [
|
|
363
381
|
Parameters.$host,
|
|
@@ -381,8 +399,8 @@ const listNextOperationSpec: coreClient.OperationSpec = {
|
|
|
381
399
|
},
|
|
382
400
|
queryParameters: [
|
|
383
401
|
Parameters.apiVersion,
|
|
384
|
-
Parameters.
|
|
385
|
-
Parameters.
|
|
402
|
+
Parameters.filter,
|
|
403
|
+
Parameters.maxpagesize1
|
|
386
404
|
],
|
|
387
405
|
urlParameters: [
|
|
388
406
|
Parameters.$host,
|
package/src/operations/skus.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { Skus } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -46,16 +46,21 @@ export class SkusImpl implements Skus {
|
|
|
46
46
|
[Symbol.asyncIterator]() {
|
|
47
47
|
return this;
|
|
48
48
|
},
|
|
49
|
-
byPage: () => {
|
|
50
|
-
|
|
49
|
+
byPage: (settings?: PageSettings) => {
|
|
50
|
+
if (settings?.maxPageSize) {
|
|
51
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
52
|
+
}
|
|
53
|
+
return this.listPagingPage(options, settings);
|
|
51
54
|
}
|
|
52
55
|
};
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
private async *listPagingPage(
|
|
56
|
-
options?: SkusListOptionalParams
|
|
59
|
+
options?: SkusListOptionalParams,
|
|
60
|
+
_settings?: PageSettings
|
|
57
61
|
): AsyncIterableIterator<SkuInformation[]> {
|
|
58
|
-
let result
|
|
62
|
+
let result: SkusListResponse;
|
|
63
|
+
result = await this._list(options);
|
|
59
64
|
yield result.value || [];
|
|
60
65
|
}
|
|
61
66
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { StorageAccounts } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,8 +19,10 @@ import {
|
|
|
18
19
|
StorageAccount,
|
|
19
20
|
StorageAccountsListNextOptionalParams,
|
|
20
21
|
StorageAccountsListOptionalParams,
|
|
22
|
+
StorageAccountsListResponse,
|
|
21
23
|
StorageAccountsListByResourceGroupNextOptionalParams,
|
|
22
24
|
StorageAccountsListByResourceGroupOptionalParams,
|
|
25
|
+
StorageAccountsListByResourceGroupResponse,
|
|
23
26
|
StorageAccountCheckNameAvailabilityParameters,
|
|
24
27
|
StorageAccountsCheckNameAvailabilityOptionalParams,
|
|
25
28
|
StorageAccountsCheckNameAvailabilityResponse,
|
|
@@ -32,8 +35,6 @@ import {
|
|
|
32
35
|
StorageAccountUpdateParameters,
|
|
33
36
|
StorageAccountsUpdateOptionalParams,
|
|
34
37
|
StorageAccountsUpdateResponse,
|
|
35
|
-
StorageAccountsListResponse,
|
|
36
|
-
StorageAccountsListByResourceGroupResponse,
|
|
37
38
|
StorageAccountsListKeysOptionalParams,
|
|
38
39
|
StorageAccountsListKeysResponse,
|
|
39
40
|
StorageAccountRegenerateKeyParameters,
|
|
@@ -85,22 +86,34 @@ export class StorageAccountsImpl implements StorageAccounts {
|
|
|
85
86
|
[Symbol.asyncIterator]() {
|
|
86
87
|
return this;
|
|
87
88
|
},
|
|
88
|
-
byPage: () => {
|
|
89
|
-
|
|
89
|
+
byPage: (settings?: PageSettings) => {
|
|
90
|
+
if (settings?.maxPageSize) {
|
|
91
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
92
|
+
}
|
|
93
|
+
return this.listPagingPage(options, settings);
|
|
90
94
|
}
|
|
91
95
|
};
|
|
92
96
|
}
|
|
93
97
|
|
|
94
98
|
private async *listPagingPage(
|
|
95
|
-
options?: StorageAccountsListOptionalParams
|
|
99
|
+
options?: StorageAccountsListOptionalParams,
|
|
100
|
+
settings?: PageSettings
|
|
96
101
|
): AsyncIterableIterator<StorageAccount[]> {
|
|
97
|
-
let result
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
let result: StorageAccountsListResponse;
|
|
103
|
+
let continuationToken = settings?.continuationToken;
|
|
104
|
+
if (!continuationToken) {
|
|
105
|
+
result = await this._list(options);
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
setContinuationToken(page, continuationToken);
|
|
109
|
+
yield page;
|
|
110
|
+
}
|
|
100
111
|
while (continuationToken) {
|
|
101
112
|
result = await this._listNext(continuationToken, options);
|
|
102
113
|
continuationToken = result.nextLink;
|
|
103
|
-
|
|
114
|
+
let page = result.value || [];
|
|
115
|
+
setContinuationToken(page, continuationToken);
|
|
116
|
+
yield page;
|
|
104
117
|
}
|
|
105
118
|
}
|
|
106
119
|
|
|
@@ -131,19 +144,33 @@ export class StorageAccountsImpl implements StorageAccounts {
|
|
|
131
144
|
[Symbol.asyncIterator]() {
|
|
132
145
|
return this;
|
|
133
146
|
},
|
|
134
|
-
byPage: () => {
|
|
135
|
-
|
|
147
|
+
byPage: (settings?: PageSettings) => {
|
|
148
|
+
if (settings?.maxPageSize) {
|
|
149
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
150
|
+
}
|
|
151
|
+
return this.listByResourceGroupPagingPage(
|
|
152
|
+
resourceGroupName,
|
|
153
|
+
options,
|
|
154
|
+
settings
|
|
155
|
+
);
|
|
136
156
|
}
|
|
137
157
|
};
|
|
138
158
|
}
|
|
139
159
|
|
|
140
160
|
private async *listByResourceGroupPagingPage(
|
|
141
161
|
resourceGroupName: string,
|
|
142
|
-
options?: StorageAccountsListByResourceGroupOptionalParams
|
|
162
|
+
options?: StorageAccountsListByResourceGroupOptionalParams,
|
|
163
|
+
settings?: PageSettings
|
|
143
164
|
): AsyncIterableIterator<StorageAccount[]> {
|
|
144
|
-
let result
|
|
145
|
-
|
|
146
|
-
|
|
165
|
+
let result: StorageAccountsListByResourceGroupResponse;
|
|
166
|
+
let continuationToken = settings?.continuationToken;
|
|
167
|
+
if (!continuationToken) {
|
|
168
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
169
|
+
let page = result.value || [];
|
|
170
|
+
continuationToken = result.nextLink;
|
|
171
|
+
setContinuationToken(page, continuationToken);
|
|
172
|
+
yield page;
|
|
173
|
+
}
|
|
147
174
|
while (continuationToken) {
|
|
148
175
|
result = await this._listByResourceGroupNext(
|
|
149
176
|
resourceGroupName,
|
|
@@ -151,7 +178,9 @@ export class StorageAccountsImpl implements StorageAccounts {
|
|
|
151
178
|
options
|
|
152
179
|
);
|
|
153
180
|
continuationToken = result.nextLink;
|
|
154
|
-
|
|
181
|
+
let page = result.value || [];
|
|
182
|
+
setContinuationToken(page, continuationToken);
|
|
183
|
+
yield page;
|
|
155
184
|
}
|
|
156
185
|
}
|
|
157
186
|
|
|
@@ -474,9 +503,16 @@ export class StorageAccountsImpl implements StorageAccounts {
|
|
|
474
503
|
}
|
|
475
504
|
|
|
476
505
|
/**
|
|
477
|
-
*
|
|
478
|
-
* occurs from the storage account's primary cluster to
|
|
479
|
-
* secondary cluster will become primary after failover
|
|
506
|
+
* A failover request can be triggered for a storage account in the event a primary endpoint becomes
|
|
507
|
+
* unavailable for any reason. The failover occurs from the storage account's primary cluster to the
|
|
508
|
+
* secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and
|
|
509
|
+
* the account is converted to LRS. In the case of a Planned Failover, the primary and secondary
|
|
510
|
+
* clusters are swapped after failover and the account remains geo-replicated. Failover should continue
|
|
511
|
+
* to be used in the event of availability issues as Planned failover is only available while the
|
|
512
|
+
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
|
|
513
|
+
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
|
|
514
|
+
* to 'Planned'. Learn more about the failover options here-
|
|
515
|
+
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
|
|
480
516
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
481
517
|
* case insensitive.
|
|
482
518
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
@@ -543,9 +579,16 @@ export class StorageAccountsImpl implements StorageAccounts {
|
|
|
543
579
|
}
|
|
544
580
|
|
|
545
581
|
/**
|
|
546
|
-
*
|
|
547
|
-
* occurs from the storage account's primary cluster to
|
|
548
|
-
* secondary cluster will become primary after failover
|
|
582
|
+
* A failover request can be triggered for a storage account in the event a primary endpoint becomes
|
|
583
|
+
* unavailable for any reason. The failover occurs from the storage account's primary cluster to the
|
|
584
|
+
* secondary cluster for RA-GRS accounts. The secondary cluster will become primary after failover and
|
|
585
|
+
* the account is converted to LRS. In the case of a Planned Failover, the primary and secondary
|
|
586
|
+
* clusters are swapped after failover and the account remains geo-replicated. Failover should continue
|
|
587
|
+
* to be used in the event of availability issues as Planned failover is only available while the
|
|
588
|
+
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
|
|
589
|
+
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
|
|
590
|
+
* to 'Planned'. Learn more about the failover options here-
|
|
591
|
+
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
|
|
549
592
|
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
550
593
|
* case insensitive.
|
|
551
594
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
@@ -1129,7 +1172,7 @@ const failoverOperationSpec: coreClient.OperationSpec = {
|
|
|
1129
1172
|
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/failover",
|
|
1130
1173
|
httpMethod: "POST",
|
|
1131
1174
|
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
1132
|
-
queryParameters: [Parameters.apiVersion],
|
|
1175
|
+
queryParameters: [Parameters.apiVersion, Parameters.failoverType],
|
|
1133
1176
|
urlParameters: [
|
|
1134
1177
|
Parameters.$host,
|
|
1135
1178
|
Parameters.subscriptionId,
|