@azure/arm-storage-profile-2020-09-01-hybrid 2.0.1-alpha.20221128.1 → 2.1.1-alpha.20221223.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 +16 -1
- package/dist/index.js +266 -53
- 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/blobInventoryPoliciesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js +60 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js +39 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js +52 -0
- package/dist-esm/samples-dev/blobInventoryPoliciesListSample.js.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/encryptionScopesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesGetSample.js +39 -0
- package/dist-esm/samples-dev/encryptionScopesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/encryptionScopesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesListSample.js +52 -0
- package/dist-esm/samples-dev/encryptionScopesListSample.js.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesPatchSample.d.ts +2 -0
- package/dist-esm/samples-dev/encryptionScopesPatchSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesPatchSample.js +45 -0
- package/dist-esm/samples-dev/encryptionScopesPatchSample.js.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesPutSample.d.ts +2 -0
- package/dist-esm/samples-dev/encryptionScopesPutSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/encryptionScopesPutSample.js +40 -0
- package/dist-esm/samples-dev/encryptionScopesPutSample.js.map +1 -0
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js +225 -0
- package/dist-esm/samples-dev/managementPoliciesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/managementPoliciesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/managementPoliciesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/managementPoliciesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managementPoliciesGetSample.js +39 -0
- package/dist-esm/samples-dev/managementPoliciesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js +152 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js +39 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js +52 -0
- package/dist-esm/samples-dev/objectReplicationPoliciesListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +51 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +39 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +52 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +45 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js +38 -0
- package/dist-esm/samples-dev/privateLinkResourcesListByStorageAccountSample.js.map +1 -0
- package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
- package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/skusListSample.js +50 -0
- package/dist-esm/samples-dev/skusListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js +40 -0
- package/dist-esm/samples-dev/storageAccountsCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsCreateSample.js +61 -0
- package/dist-esm/samples-dev/storageAccountsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsDeleteSample.js +38 -0
- package/dist-esm/samples-dev/storageAccountsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsFailoverSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsFailoverSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsFailoverSample.js +38 -0
- package/dist-esm/samples-dev/storageAccountsFailoverSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js +56 -0
- package/dist-esm/samples-dev/storageAccountsGetPropertiesSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js +47 -0
- package/dist-esm/samples-dev/storageAccountsListAccountSasSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js +51 -0
- package/dist-esm/samples-dev/storageAccountsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListKeysSample.js +38 -0
- package/dist-esm/samples-dev/storageAccountsListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListSample.js +50 -0
- package/dist-esm/samples-dev/storageAccountsListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js +44 -0
- package/dist-esm/samples-dev/storageAccountsListServiceSasSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js +62 -0
- package/dist-esm/samples-dev/storageAccountsRegenerateKeySample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js +45 -0
- package/dist-esm/samples-dev/storageAccountsRestoreBlobRangesSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js +38 -0
- package/dist-esm/samples-dev/storageAccountsRevokeUserDelegationKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/storageAccountsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageAccountsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageAccountsUpdateSample.js +119 -0
- package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/usagesListByLocationSample.d.ts +2 -0
- package/dist-esm/samples-dev/usagesListByLocationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usagesListByLocationSample.js +51 -0
- package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -0
- 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 +93 -16
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +77 -0
- package/dist-esm/src/models/index.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/encryptionScopes.d.ts.map +1 -1
- package/dist-esm/src/operations/encryptionScopes.js +19 -8
- package/dist-esm/src/operations/encryptionScopes.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/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.map +1 -1
- package/dist-esm/src/operations/storageAccounts.js +36 -15
- package/dist-esm/src/operations/storageAccounts.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/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 +2 -0
- package/dist-esm/src/storageManagementClient.d.ts.map +1 -1
- package/dist-esm/src/storageManagementClient.js +54 -5
- package/dist-esm/src/storageManagementClient.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +24 -11
- package/review/arm-storage-profile-2020-09-01-hybrid.api.md +48 -103
- package/src/index.ts +1 -0
- package/src/models/index.ts +93 -16
- package/src/operations/blobInventoryPolicies.ts +17 -7
- package/src/operations/encryptionScopes.ts +27 -10
- package/src/operations/objectReplicationPoliciesOperations.ts +15 -5
- package/src/operations/operations.ts +10 -5
- package/src/operations/privateEndpointConnections.ts +15 -5
- package/src/operations/skus.ts +10 -5
- package/src/operations/storageAccounts.ts +45 -18
- package/src/operations/usages.ts +10 -5
- package/src/pagingHelper.ts +39 -0
- package/src/storageManagementClient.ts +70 -5
- package/tsconfig.json +8 -2
- package/types/arm-storage-profile-2020-09-01-hybrid.d.ts +104 -16
package/dist/index.js
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var coreClient = require('@azure/core-client');
|
|
6
5
|
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
8
|
var coreLro = require('@azure/core-lro');
|
|
8
9
|
|
|
9
10
|
function _interopNamespace(e) {
|
|
@@ -25,6 +26,39 @@ function _interopNamespace(e) {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
28
62
|
|
|
29
63
|
/*
|
|
30
64
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -36,178 +70,255 @@ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
|
36
70
|
/** Known values of {@link SkuName} that the service accepts. */
|
|
37
71
|
exports.KnownSkuName = void 0;
|
|
38
72
|
(function (KnownSkuName) {
|
|
73
|
+
/** StandardLRS */
|
|
39
74
|
KnownSkuName["StandardLRS"] = "Standard_LRS";
|
|
75
|
+
/** StandardGRS */
|
|
40
76
|
KnownSkuName["StandardGRS"] = "Standard_GRS";
|
|
77
|
+
/** StandardRagrs */
|
|
41
78
|
KnownSkuName["StandardRagrs"] = "Standard_RAGRS";
|
|
79
|
+
/** StandardZRS */
|
|
42
80
|
KnownSkuName["StandardZRS"] = "Standard_ZRS";
|
|
81
|
+
/** PremiumLRS */
|
|
43
82
|
KnownSkuName["PremiumLRS"] = "Premium_LRS";
|
|
83
|
+
/** PremiumZRS */
|
|
44
84
|
KnownSkuName["PremiumZRS"] = "Premium_ZRS";
|
|
85
|
+
/** StandardGzrs */
|
|
45
86
|
KnownSkuName["StandardGzrs"] = "Standard_GZRS";
|
|
87
|
+
/** StandardRagzrs */
|
|
46
88
|
KnownSkuName["StandardRagzrs"] = "Standard_RAGZRS";
|
|
47
89
|
})(exports.KnownSkuName || (exports.KnownSkuName = {}));
|
|
48
90
|
/** Known values of {@link Kind} that the service accepts. */
|
|
49
91
|
exports.KnownKind = void 0;
|
|
50
92
|
(function (KnownKind) {
|
|
93
|
+
/** Storage */
|
|
51
94
|
KnownKind["Storage"] = "Storage";
|
|
95
|
+
/** StorageV2 */
|
|
52
96
|
KnownKind["StorageV2"] = "StorageV2";
|
|
97
|
+
/** BlobStorage */
|
|
53
98
|
KnownKind["BlobStorage"] = "BlobStorage";
|
|
99
|
+
/** FileStorage */
|
|
54
100
|
KnownKind["FileStorage"] = "FileStorage";
|
|
101
|
+
/** BlockBlobStorage */
|
|
55
102
|
KnownKind["BlockBlobStorage"] = "BlockBlobStorage";
|
|
56
103
|
})(exports.KnownKind || (exports.KnownKind = {}));
|
|
57
104
|
/** Known values of {@link ReasonCode} that the service accepts. */
|
|
58
105
|
exports.KnownReasonCode = void 0;
|
|
59
106
|
(function (KnownReasonCode) {
|
|
107
|
+
/** QuotaId */
|
|
60
108
|
KnownReasonCode["QuotaId"] = "QuotaId";
|
|
109
|
+
/** NotAvailableForSubscription */
|
|
61
110
|
KnownReasonCode["NotAvailableForSubscription"] = "NotAvailableForSubscription";
|
|
62
111
|
})(exports.KnownReasonCode || (exports.KnownReasonCode = {}));
|
|
63
112
|
/** Known values of {@link KeyType} that the service accepts. */
|
|
64
113
|
exports.KnownKeyType = void 0;
|
|
65
114
|
(function (KnownKeyType) {
|
|
115
|
+
/** Service */
|
|
66
116
|
KnownKeyType["Service"] = "Service";
|
|
117
|
+
/** Account */
|
|
67
118
|
KnownKeyType["Account"] = "Account";
|
|
68
119
|
})(exports.KnownKeyType || (exports.KnownKeyType = {}));
|
|
69
120
|
/** Known values of {@link KeySource} that the service accepts. */
|
|
70
121
|
exports.KnownKeySource = void 0;
|
|
71
122
|
(function (KnownKeySource) {
|
|
123
|
+
/** MicrosoftStorage */
|
|
72
124
|
KnownKeySource["MicrosoftStorage"] = "Microsoft.Storage";
|
|
125
|
+
/** MicrosoftKeyvault */
|
|
73
126
|
KnownKeySource["MicrosoftKeyvault"] = "Microsoft.Keyvault";
|
|
74
127
|
})(exports.KnownKeySource || (exports.KnownKeySource = {}));
|
|
75
128
|
/** Known values of {@link Bypass} that the service accepts. */
|
|
76
129
|
exports.KnownBypass = void 0;
|
|
77
130
|
(function (KnownBypass) {
|
|
131
|
+
/** None */
|
|
78
132
|
KnownBypass["None"] = "None";
|
|
133
|
+
/** Logging */
|
|
79
134
|
KnownBypass["Logging"] = "Logging";
|
|
135
|
+
/** Metrics */
|
|
80
136
|
KnownBypass["Metrics"] = "Metrics";
|
|
137
|
+
/** AzureServices */
|
|
81
138
|
KnownBypass["AzureServices"] = "AzureServices";
|
|
82
139
|
})(exports.KnownBypass || (exports.KnownBypass = {}));
|
|
83
140
|
/** Known values of {@link DirectoryServiceOptions} that the service accepts. */
|
|
84
141
|
exports.KnownDirectoryServiceOptions = void 0;
|
|
85
142
|
(function (KnownDirectoryServiceOptions) {
|
|
143
|
+
/** None */
|
|
86
144
|
KnownDirectoryServiceOptions["None"] = "None";
|
|
145
|
+
/** Aadds */
|
|
87
146
|
KnownDirectoryServiceOptions["Aadds"] = "AADDS";
|
|
147
|
+
/** AD */
|
|
88
148
|
KnownDirectoryServiceOptions["AD"] = "AD";
|
|
89
149
|
})(exports.KnownDirectoryServiceOptions || (exports.KnownDirectoryServiceOptions = {}));
|
|
90
150
|
/** Known values of {@link LargeFileSharesState} that the service accepts. */
|
|
91
151
|
exports.KnownLargeFileSharesState = void 0;
|
|
92
152
|
(function (KnownLargeFileSharesState) {
|
|
153
|
+
/** Disabled */
|
|
93
154
|
KnownLargeFileSharesState["Disabled"] = "Disabled";
|
|
155
|
+
/** Enabled */
|
|
94
156
|
KnownLargeFileSharesState["Enabled"] = "Enabled";
|
|
95
157
|
})(exports.KnownLargeFileSharesState || (exports.KnownLargeFileSharesState = {}));
|
|
96
158
|
/** Known values of {@link RoutingChoice} that the service accepts. */
|
|
97
159
|
exports.KnownRoutingChoice = void 0;
|
|
98
160
|
(function (KnownRoutingChoice) {
|
|
161
|
+
/** MicrosoftRouting */
|
|
99
162
|
KnownRoutingChoice["MicrosoftRouting"] = "MicrosoftRouting";
|
|
163
|
+
/** InternetRouting */
|
|
100
164
|
KnownRoutingChoice["InternetRouting"] = "InternetRouting";
|
|
101
165
|
})(exports.KnownRoutingChoice || (exports.KnownRoutingChoice = {}));
|
|
102
166
|
/** Known values of {@link MinimumTlsVersion} that the service accepts. */
|
|
103
167
|
exports.KnownMinimumTlsVersion = void 0;
|
|
104
168
|
(function (KnownMinimumTlsVersion) {
|
|
169
|
+
/** TLS10 */
|
|
105
170
|
KnownMinimumTlsVersion["TLS10"] = "TLS1_0";
|
|
171
|
+
/** TLS11 */
|
|
106
172
|
KnownMinimumTlsVersion["TLS11"] = "TLS1_1";
|
|
173
|
+
/** TLS12 */
|
|
107
174
|
KnownMinimumTlsVersion["TLS12"] = "TLS1_2";
|
|
108
175
|
})(exports.KnownMinimumTlsVersion || (exports.KnownMinimumTlsVersion = {}));
|
|
109
176
|
/** Known values of {@link GeoReplicationStatus} that the service accepts. */
|
|
110
177
|
exports.KnownGeoReplicationStatus = void 0;
|
|
111
178
|
(function (KnownGeoReplicationStatus) {
|
|
179
|
+
/** Live */
|
|
112
180
|
KnownGeoReplicationStatus["Live"] = "Live";
|
|
181
|
+
/** Bootstrap */
|
|
113
182
|
KnownGeoReplicationStatus["Bootstrap"] = "Bootstrap";
|
|
183
|
+
/** Unavailable */
|
|
114
184
|
KnownGeoReplicationStatus["Unavailable"] = "Unavailable";
|
|
115
185
|
})(exports.KnownGeoReplicationStatus || (exports.KnownGeoReplicationStatus = {}));
|
|
116
186
|
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
117
187
|
exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
|
|
118
188
|
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
189
|
+
/** Pending */
|
|
119
190
|
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
191
|
+
/** Approved */
|
|
120
192
|
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
193
|
+
/** Rejected */
|
|
121
194
|
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
122
195
|
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
123
196
|
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
124
197
|
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
125
198
|
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
199
|
+
/** Succeeded */
|
|
126
200
|
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
201
|
+
/** Creating */
|
|
127
202
|
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
203
|
+
/** Deleting */
|
|
128
204
|
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
205
|
+
/** Failed */
|
|
129
206
|
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
130
207
|
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
131
208
|
/** Known values of {@link BlobRestoreProgressStatus} that the service accepts. */
|
|
132
209
|
exports.KnownBlobRestoreProgressStatus = void 0;
|
|
133
210
|
(function (KnownBlobRestoreProgressStatus) {
|
|
211
|
+
/** InProgress */
|
|
134
212
|
KnownBlobRestoreProgressStatus["InProgress"] = "InProgress";
|
|
213
|
+
/** Complete */
|
|
135
214
|
KnownBlobRestoreProgressStatus["Complete"] = "Complete";
|
|
215
|
+
/** Failed */
|
|
136
216
|
KnownBlobRestoreProgressStatus["Failed"] = "Failed";
|
|
137
217
|
})(exports.KnownBlobRestoreProgressStatus || (exports.KnownBlobRestoreProgressStatus = {}));
|
|
138
218
|
/** Known values of {@link Services} that the service accepts. */
|
|
139
219
|
exports.KnownServices = void 0;
|
|
140
220
|
(function (KnownServices) {
|
|
221
|
+
/** B */
|
|
141
222
|
KnownServices["B"] = "b";
|
|
223
|
+
/** Q */
|
|
142
224
|
KnownServices["Q"] = "q";
|
|
225
|
+
/** T */
|
|
143
226
|
KnownServices["T"] = "t";
|
|
227
|
+
/** F */
|
|
144
228
|
KnownServices["F"] = "f";
|
|
145
229
|
})(exports.KnownServices || (exports.KnownServices = {}));
|
|
146
230
|
/** Known values of {@link SignedResourceTypes} that the service accepts. */
|
|
147
231
|
exports.KnownSignedResourceTypes = void 0;
|
|
148
232
|
(function (KnownSignedResourceTypes) {
|
|
233
|
+
/** S */
|
|
149
234
|
KnownSignedResourceTypes["S"] = "s";
|
|
235
|
+
/** C */
|
|
150
236
|
KnownSignedResourceTypes["C"] = "c";
|
|
237
|
+
/** O */
|
|
151
238
|
KnownSignedResourceTypes["O"] = "o";
|
|
152
239
|
})(exports.KnownSignedResourceTypes || (exports.KnownSignedResourceTypes = {}));
|
|
153
240
|
/** Known values of {@link Permissions} that the service accepts. */
|
|
154
241
|
exports.KnownPermissions = void 0;
|
|
155
242
|
(function (KnownPermissions) {
|
|
243
|
+
/** R */
|
|
156
244
|
KnownPermissions["R"] = "r";
|
|
245
|
+
/** D */
|
|
157
246
|
KnownPermissions["D"] = "d";
|
|
247
|
+
/** W */
|
|
158
248
|
KnownPermissions["W"] = "w";
|
|
249
|
+
/** L */
|
|
159
250
|
KnownPermissions["L"] = "l";
|
|
251
|
+
/** A */
|
|
160
252
|
KnownPermissions["A"] = "a";
|
|
253
|
+
/** C */
|
|
161
254
|
KnownPermissions["C"] = "c";
|
|
255
|
+
/** U */
|
|
162
256
|
KnownPermissions["U"] = "u";
|
|
257
|
+
/** P */
|
|
163
258
|
KnownPermissions["P"] = "p";
|
|
164
259
|
})(exports.KnownPermissions || (exports.KnownPermissions = {}));
|
|
165
260
|
/** Known values of {@link SignedResource} that the service accepts. */
|
|
166
261
|
exports.KnownSignedResource = void 0;
|
|
167
262
|
(function (KnownSignedResource) {
|
|
263
|
+
/** B */
|
|
168
264
|
KnownSignedResource["B"] = "b";
|
|
265
|
+
/** C */
|
|
169
266
|
KnownSignedResource["C"] = "c";
|
|
267
|
+
/** F */
|
|
170
268
|
KnownSignedResource["F"] = "f";
|
|
269
|
+
/** S */
|
|
171
270
|
KnownSignedResource["S"] = "s";
|
|
172
271
|
})(exports.KnownSignedResource || (exports.KnownSignedResource = {}));
|
|
173
272
|
/** Known values of {@link ManagementPolicyName} that the service accepts. */
|
|
174
273
|
exports.KnownManagementPolicyName = void 0;
|
|
175
274
|
(function (KnownManagementPolicyName) {
|
|
275
|
+
/** Default */
|
|
176
276
|
KnownManagementPolicyName["Default"] = "default";
|
|
177
277
|
})(exports.KnownManagementPolicyName || (exports.KnownManagementPolicyName = {}));
|
|
178
278
|
/** Known values of {@link RuleType} that the service accepts. */
|
|
179
279
|
exports.KnownRuleType = void 0;
|
|
180
280
|
(function (KnownRuleType) {
|
|
281
|
+
/** Lifecycle */
|
|
181
282
|
KnownRuleType["Lifecycle"] = "Lifecycle";
|
|
182
283
|
})(exports.KnownRuleType || (exports.KnownRuleType = {}));
|
|
183
284
|
/** Known values of {@link BlobInventoryPolicyName} that the service accepts. */
|
|
184
285
|
exports.KnownBlobInventoryPolicyName = void 0;
|
|
185
286
|
(function (KnownBlobInventoryPolicyName) {
|
|
287
|
+
/** Default */
|
|
186
288
|
KnownBlobInventoryPolicyName["Default"] = "default";
|
|
187
289
|
})(exports.KnownBlobInventoryPolicyName || (exports.KnownBlobInventoryPolicyName = {}));
|
|
188
290
|
/** Known values of {@link InventoryRuleType} that the service accepts. */
|
|
189
291
|
exports.KnownInventoryRuleType = void 0;
|
|
190
292
|
(function (KnownInventoryRuleType) {
|
|
293
|
+
/** Inventory */
|
|
191
294
|
KnownInventoryRuleType["Inventory"] = "Inventory";
|
|
192
295
|
})(exports.KnownInventoryRuleType || (exports.KnownInventoryRuleType = {}));
|
|
193
296
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
194
297
|
exports.KnownCreatedByType = void 0;
|
|
195
298
|
(function (KnownCreatedByType) {
|
|
299
|
+
/** User */
|
|
196
300
|
KnownCreatedByType["User"] = "User";
|
|
301
|
+
/** Application */
|
|
197
302
|
KnownCreatedByType["Application"] = "Application";
|
|
303
|
+
/** ManagedIdentity */
|
|
198
304
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
305
|
+
/** Key */
|
|
199
306
|
KnownCreatedByType["Key"] = "Key";
|
|
200
307
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
201
308
|
/** Known values of {@link EncryptionScopeSource} that the service accepts. */
|
|
202
309
|
exports.KnownEncryptionScopeSource = void 0;
|
|
203
310
|
(function (KnownEncryptionScopeSource) {
|
|
311
|
+
/** MicrosoftStorage */
|
|
204
312
|
KnownEncryptionScopeSource["MicrosoftStorage"] = "Microsoft.Storage";
|
|
313
|
+
/** MicrosoftKeyVault */
|
|
205
314
|
KnownEncryptionScopeSource["MicrosoftKeyVault"] = "Microsoft.KeyVault";
|
|
206
315
|
})(exports.KnownEncryptionScopeSource || (exports.KnownEncryptionScopeSource = {}));
|
|
207
316
|
/** Known values of {@link EncryptionScopeState} that the service accepts. */
|
|
208
317
|
exports.KnownEncryptionScopeState = void 0;
|
|
209
318
|
(function (KnownEncryptionScopeState) {
|
|
319
|
+
/** Enabled */
|
|
210
320
|
KnownEncryptionScopeState["Enabled"] = "Enabled";
|
|
321
|
+
/** Disabled */
|
|
211
322
|
KnownEncryptionScopeState["Disabled"] = "Disabled";
|
|
212
323
|
})(exports.KnownEncryptionScopeState || (exports.KnownEncryptionScopeState = {}));
|
|
213
324
|
|
|
@@ -3439,14 +3550,18 @@ class OperationsImpl {
|
|
|
3439
3550
|
[Symbol.asyncIterator]() {
|
|
3440
3551
|
return this;
|
|
3441
3552
|
},
|
|
3442
|
-
byPage: () => {
|
|
3443
|
-
|
|
3553
|
+
byPage: (settings) => {
|
|
3554
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3555
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3556
|
+
}
|
|
3557
|
+
return this.listPagingPage(options, settings);
|
|
3444
3558
|
}
|
|
3445
3559
|
};
|
|
3446
3560
|
}
|
|
3447
|
-
listPagingPage(options) {
|
|
3561
|
+
listPagingPage(options, _settings) {
|
|
3448
3562
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3449
|
-
let result
|
|
3563
|
+
let result;
|
|
3564
|
+
result = yield tslib.__await(this._list(options));
|
|
3450
3565
|
yield yield tslib.__await(result.value || []);
|
|
3451
3566
|
});
|
|
3452
3567
|
}
|
|
@@ -3522,14 +3637,18 @@ class SkusImpl {
|
|
|
3522
3637
|
[Symbol.asyncIterator]() {
|
|
3523
3638
|
return this;
|
|
3524
3639
|
},
|
|
3525
|
-
byPage: () => {
|
|
3526
|
-
|
|
3640
|
+
byPage: (settings) => {
|
|
3641
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3642
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3643
|
+
}
|
|
3644
|
+
return this.listPagingPage(options, settings);
|
|
3527
3645
|
}
|
|
3528
3646
|
};
|
|
3529
3647
|
}
|
|
3530
|
-
listPagingPage(options) {
|
|
3648
|
+
listPagingPage(options, _settings) {
|
|
3531
3649
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3532
|
-
let result
|
|
3650
|
+
let result;
|
|
3651
|
+
result = yield tslib.__await(this._list(options));
|
|
3533
3652
|
yield yield tslib.__await(result.value || []);
|
|
3534
3653
|
});
|
|
3535
3654
|
}
|
|
@@ -3634,20 +3753,31 @@ class StorageAccountsImpl {
|
|
|
3634
3753
|
[Symbol.asyncIterator]() {
|
|
3635
3754
|
return this;
|
|
3636
3755
|
},
|
|
3637
|
-
byPage: () => {
|
|
3638
|
-
|
|
3756
|
+
byPage: (settings) => {
|
|
3757
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3758
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3759
|
+
}
|
|
3760
|
+
return this.listPagingPage(options, settings);
|
|
3639
3761
|
}
|
|
3640
3762
|
};
|
|
3641
3763
|
}
|
|
3642
|
-
listPagingPage(options) {
|
|
3764
|
+
listPagingPage(options, settings) {
|
|
3643
3765
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3644
|
-
let result
|
|
3645
|
-
|
|
3646
|
-
|
|
3766
|
+
let result;
|
|
3767
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3768
|
+
if (!continuationToken) {
|
|
3769
|
+
result = yield tslib.__await(this._list(options));
|
|
3770
|
+
let page = result.value || [];
|
|
3771
|
+
continuationToken = result.nextLink;
|
|
3772
|
+
setContinuationToken(page, continuationToken);
|
|
3773
|
+
yield yield tslib.__await(page);
|
|
3774
|
+
}
|
|
3647
3775
|
while (continuationToken) {
|
|
3648
3776
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
3649
3777
|
continuationToken = result.nextLink;
|
|
3650
|
-
|
|
3778
|
+
let page = result.value || [];
|
|
3779
|
+
setContinuationToken(page, continuationToken);
|
|
3780
|
+
yield yield tslib.__await(page);
|
|
3651
3781
|
}
|
|
3652
3782
|
});
|
|
3653
3783
|
}
|
|
@@ -3685,14 +3815,18 @@ class StorageAccountsImpl {
|
|
|
3685
3815
|
[Symbol.asyncIterator]() {
|
|
3686
3816
|
return this;
|
|
3687
3817
|
},
|
|
3688
|
-
byPage: () => {
|
|
3689
|
-
|
|
3818
|
+
byPage: (settings) => {
|
|
3819
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3820
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3821
|
+
}
|
|
3822
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3690
3823
|
}
|
|
3691
3824
|
};
|
|
3692
3825
|
}
|
|
3693
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3826
|
+
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
3694
3827
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3695
|
-
let result
|
|
3828
|
+
let result;
|
|
3829
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3696
3830
|
yield yield tslib.__await(result.value || []);
|
|
3697
3831
|
});
|
|
3698
3832
|
}
|
|
@@ -3762,10 +3896,12 @@ class StorageAccountsImpl {
|
|
|
3762
3896
|
};
|
|
3763
3897
|
});
|
|
3764
3898
|
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, createOperationSpec);
|
|
3765
|
-
|
|
3899
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3766
3900
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3767
3901
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
3768
3902
|
});
|
|
3903
|
+
yield poller.poll();
|
|
3904
|
+
return poller;
|
|
3769
3905
|
});
|
|
3770
3906
|
}
|
|
3771
3907
|
/**
|
|
@@ -3938,11 +4074,13 @@ class StorageAccountsImpl {
|
|
|
3938
4074
|
};
|
|
3939
4075
|
});
|
|
3940
4076
|
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, options }, failoverOperationSpec);
|
|
3941
|
-
|
|
4077
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
3942
4078
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3943
4079
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3944
4080
|
lroResourceLocationConfig: "location"
|
|
3945
4081
|
});
|
|
4082
|
+
yield poller.poll();
|
|
4083
|
+
return poller;
|
|
3946
4084
|
});
|
|
3947
4085
|
}
|
|
3948
4086
|
/**
|
|
@@ -3997,11 +4135,13 @@ class StorageAccountsImpl {
|
|
|
3997
4135
|
};
|
|
3998
4136
|
});
|
|
3999
4137
|
const lro = new LroImpl(sendOperation, { resourceGroupName, accountName, parameters, options }, restoreBlobRangesOperationSpec);
|
|
4000
|
-
|
|
4138
|
+
const poller = new coreLro.LroEngine(lro, {
|
|
4001
4139
|
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4002
4140
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4003
4141
|
lroResourceLocationConfig: "location"
|
|
4004
4142
|
});
|
|
4143
|
+
yield poller.poll();
|
|
4144
|
+
return poller;
|
|
4005
4145
|
});
|
|
4006
4146
|
}
|
|
4007
4147
|
/**
|
|
@@ -4309,7 +4449,6 @@ const listNextOperationSpec$1 = {
|
|
|
4309
4449
|
bodyMapper: StorageAccountListResult
|
|
4310
4450
|
}
|
|
4311
4451
|
},
|
|
4312
|
-
queryParameters: [apiVersion],
|
|
4313
4452
|
urlParameters: [
|
|
4314
4453
|
$host,
|
|
4315
4454
|
subscriptionId,
|
|
@@ -4350,14 +4489,18 @@ class UsagesImpl {
|
|
|
4350
4489
|
[Symbol.asyncIterator]() {
|
|
4351
4490
|
return this;
|
|
4352
4491
|
},
|
|
4353
|
-
byPage: () => {
|
|
4354
|
-
|
|
4492
|
+
byPage: (settings) => {
|
|
4493
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4494
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4495
|
+
}
|
|
4496
|
+
return this.listByLocationPagingPage(location, options, settings);
|
|
4355
4497
|
}
|
|
4356
4498
|
};
|
|
4357
4499
|
}
|
|
4358
|
-
listByLocationPagingPage(location, options) {
|
|
4500
|
+
listByLocationPagingPage(location, options, _settings) {
|
|
4359
4501
|
return tslib.__asyncGenerator(this, arguments, function* listByLocationPagingPage_1() {
|
|
4360
|
-
let result
|
|
4502
|
+
let result;
|
|
4503
|
+
result = yield tslib.__await(this._listByLocation(location, options));
|
|
4361
4504
|
yield yield tslib.__await(result.value || []);
|
|
4362
4505
|
});
|
|
4363
4506
|
}
|
|
@@ -4566,14 +4709,18 @@ class BlobInventoryPoliciesImpl {
|
|
|
4566
4709
|
[Symbol.asyncIterator]() {
|
|
4567
4710
|
return this;
|
|
4568
4711
|
},
|
|
4569
|
-
byPage: () => {
|
|
4570
|
-
|
|
4712
|
+
byPage: (settings) => {
|
|
4713
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4714
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4715
|
+
}
|
|
4716
|
+
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
4571
4717
|
}
|
|
4572
4718
|
};
|
|
4573
4719
|
}
|
|
4574
|
-
listPagingPage(resourceGroupName, accountName, options) {
|
|
4720
|
+
listPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
4575
4721
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4576
|
-
let result
|
|
4722
|
+
let result;
|
|
4723
|
+
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
4577
4724
|
yield yield tslib.__await(result.value || []);
|
|
4578
4725
|
});
|
|
4579
4726
|
}
|
|
@@ -4783,14 +4930,18 @@ class PrivateEndpointConnectionsImpl {
|
|
|
4783
4930
|
[Symbol.asyncIterator]() {
|
|
4784
4931
|
return this;
|
|
4785
4932
|
},
|
|
4786
|
-
byPage: () => {
|
|
4787
|
-
|
|
4933
|
+
byPage: (settings) => {
|
|
4934
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4935
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4936
|
+
}
|
|
4937
|
+
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
4788
4938
|
}
|
|
4789
4939
|
};
|
|
4790
4940
|
}
|
|
4791
|
-
listPagingPage(resourceGroupName, accountName, options) {
|
|
4941
|
+
listPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
4792
4942
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4793
|
-
let result
|
|
4943
|
+
let result;
|
|
4944
|
+
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
4794
4945
|
yield yield tslib.__await(result.value || []);
|
|
4795
4946
|
});
|
|
4796
4947
|
}
|
|
@@ -5057,14 +5208,18 @@ class ObjectReplicationPoliciesOperationsImpl {
|
|
|
5057
5208
|
[Symbol.asyncIterator]() {
|
|
5058
5209
|
return this;
|
|
5059
5210
|
},
|
|
5060
|
-
byPage: () => {
|
|
5061
|
-
|
|
5211
|
+
byPage: (settings) => {
|
|
5212
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5213
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5214
|
+
}
|
|
5215
|
+
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
5062
5216
|
}
|
|
5063
5217
|
};
|
|
5064
5218
|
}
|
|
5065
|
-
listPagingPage(resourceGroupName, accountName, options) {
|
|
5219
|
+
listPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
5066
5220
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5067
|
-
let result
|
|
5221
|
+
let result;
|
|
5222
|
+
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
5068
5223
|
yield yield tslib.__await(result.value || []);
|
|
5069
5224
|
});
|
|
5070
5225
|
}
|
|
@@ -5275,20 +5430,31 @@ class EncryptionScopesImpl {
|
|
|
5275
5430
|
[Symbol.asyncIterator]() {
|
|
5276
5431
|
return this;
|
|
5277
5432
|
},
|
|
5278
|
-
byPage: () => {
|
|
5279
|
-
|
|
5433
|
+
byPage: (settings) => {
|
|
5434
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5435
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5436
|
+
}
|
|
5437
|
+
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
5280
5438
|
}
|
|
5281
5439
|
};
|
|
5282
5440
|
}
|
|
5283
|
-
listPagingPage(resourceGroupName, accountName, options) {
|
|
5441
|
+
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
5284
5442
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
5285
|
-
let result
|
|
5286
|
-
|
|
5287
|
-
|
|
5443
|
+
let result;
|
|
5444
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5445
|
+
if (!continuationToken) {
|
|
5446
|
+
result = yield tslib.__await(this._list(resourceGroupName, accountName, options));
|
|
5447
|
+
let page = result.value || [];
|
|
5448
|
+
continuationToken = result.nextLink;
|
|
5449
|
+
setContinuationToken(page, continuationToken);
|
|
5450
|
+
yield yield tslib.__await(page);
|
|
5451
|
+
}
|
|
5288
5452
|
while (continuationToken) {
|
|
5289
5453
|
result = yield tslib.__await(this._listNext(resourceGroupName, accountName, continuationToken, options));
|
|
5290
5454
|
continuationToken = result.nextLink;
|
|
5291
|
-
|
|
5455
|
+
let page = result.value || [];
|
|
5456
|
+
setContinuationToken(page, continuationToken);
|
|
5457
|
+
yield yield tslib.__await(page);
|
|
5292
5458
|
}
|
|
5293
5459
|
});
|
|
5294
5460
|
}
|
|
@@ -5502,7 +5668,6 @@ const listNextOperationSpec = {
|
|
|
5502
5668
|
bodyMapper: EncryptionScopeListResult
|
|
5503
5669
|
}
|
|
5504
5670
|
},
|
|
5505
|
-
queryParameters: [apiVersion],
|
|
5506
5671
|
urlParameters: [
|
|
5507
5672
|
$host,
|
|
5508
5673
|
subscriptionId,
|
|
@@ -5529,6 +5694,7 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5529
5694
|
* @param options The parameter options
|
|
5530
5695
|
*/
|
|
5531
5696
|
constructor(credentials, subscriptionId, options) {
|
|
5697
|
+
var _a, _b, _c;
|
|
5532
5698
|
if (credentials === undefined) {
|
|
5533
5699
|
throw new Error("'credentials' cannot be null");
|
|
5534
5700
|
}
|
|
@@ -5543,17 +5709,35 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5543
5709
|
requestContentType: "application/json; charset=utf-8",
|
|
5544
5710
|
credential: credentials
|
|
5545
5711
|
};
|
|
5546
|
-
const packageDetails = `azsdk-js-arm-storage-profile-2020-09-01-hybrid/2.
|
|
5712
|
+
const packageDetails = `azsdk-js-arm-storage-profile-2020-09-01-hybrid/2.1.1`;
|
|
5547
5713
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
5548
5714
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
5549
5715
|
: `${packageDetails}`;
|
|
5550
|
-
if (!options.credentialScopes) {
|
|
5551
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
5552
|
-
}
|
|
5553
5716
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5554
5717
|
userAgentPrefix
|
|
5555
|
-
},
|
|
5718
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5556
5719
|
super(optionsWithDefaults);
|
|
5720
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
5721
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5722
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5723
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5724
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
5725
|
+
}
|
|
5726
|
+
if (!options ||
|
|
5727
|
+
!options.pipeline ||
|
|
5728
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
5729
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
5730
|
+
this.pipeline.removePolicy({
|
|
5731
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
5732
|
+
});
|
|
5733
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5734
|
+
credential: credentials,
|
|
5735
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5736
|
+
challengeCallbacks: {
|
|
5737
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5738
|
+
}
|
|
5739
|
+
}));
|
|
5740
|
+
}
|
|
5557
5741
|
// Parameter assignments
|
|
5558
5742
|
this.subscriptionId = subscriptionId;
|
|
5559
5743
|
// Assigning values to Constant parameters
|
|
@@ -5569,8 +5753,37 @@ class StorageManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5569
5753
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
5570
5754
|
this.objectReplicationPoliciesOperations = new ObjectReplicationPoliciesOperationsImpl(this);
|
|
5571
5755
|
this.encryptionScopes = new EncryptionScopesImpl(this);
|
|
5756
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
5757
|
+
}
|
|
5758
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
5759
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
5760
|
+
if (!apiVersion) {
|
|
5761
|
+
return;
|
|
5762
|
+
}
|
|
5763
|
+
const apiVersionPolicy = {
|
|
5764
|
+
name: "CustomApiVersionPolicy",
|
|
5765
|
+
sendRequest(request, next) {
|
|
5766
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5767
|
+
const param = request.url.split("?");
|
|
5768
|
+
if (param.length > 1) {
|
|
5769
|
+
const newParams = param[1].split("&").map((item) => {
|
|
5770
|
+
if (item.indexOf("api-version") > -1) {
|
|
5771
|
+
return "api-version=" + apiVersion;
|
|
5772
|
+
}
|
|
5773
|
+
else {
|
|
5774
|
+
return item;
|
|
5775
|
+
}
|
|
5776
|
+
});
|
|
5777
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
5778
|
+
}
|
|
5779
|
+
return next(request);
|
|
5780
|
+
});
|
|
5781
|
+
}
|
|
5782
|
+
};
|
|
5783
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
5572
5784
|
}
|
|
5573
5785
|
}
|
|
5574
5786
|
|
|
5575
5787
|
exports.StorageManagementClient = StorageManagementClient;
|
|
5788
|
+
exports.getContinuationToken = getContinuationToken;
|
|
5576
5789
|
//# sourceMappingURL=index.js.map
|