@azure/arm-storage-profile-2020-09-01-hybrid 1.0.0 → 2.0.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +83 -73
- package/dist/index.js +5576 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1772 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +185 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +84 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1591 -1449
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +30 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +242 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/blobInventoryPolicies.d.ts +73 -0
- package/dist-esm/src/operations/blobInventoryPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/blobInventoryPolicies.js +221 -0
- package/dist-esm/src/operations/blobInventoryPolicies.js.map +1 -0
- package/dist-esm/src/operations/encryptionScopes.d.ts +94 -0
- package/dist-esm/src/operations/encryptionScopes.d.ts.map +1 -0
- package/dist-esm/src/operations/encryptionScopes.js +278 -0
- package/dist-esm/src/operations/encryptionScopes.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/managementPolicies.d.ts +50 -0
- package/dist-esm/src/operations/managementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/managementPolicies.js +126 -0
- package/dist-esm/src/operations/managementPolicies.js.map +1 -0
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts +74 -0
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js +222 -0
- package/dist-esm/src/operations/objectReplicationPoliciesOperations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +87 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +228 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +23 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +53 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/skus.d.ts +26 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +87 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operations/storageAccounts.d.ts +228 -0
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/storageAccounts.js +722 -0
- package/dist-esm/src/operations/storageAccounts.js.map +1 -0
- package/dist-esm/src/operations/usages.d.ts +28 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +93 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts +53 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/blobInventoryPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js +9 -0
- package/dist-esm/src/operationsInterfaces/encryptionScopes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +18 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts +42 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.js +9 -0
- package/dist-esm/src/operationsInterfaces/managementPolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts +54 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/objectReplicationPoliciesOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +53 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.js +9 -0
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +196 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.js +9 -0
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/src/storageManagementClient.d.ts +27 -0
- package/dist-esm/src/storageManagementClient.d.ts.map +1 -0
- package/dist-esm/src/storageManagementClient.js +60 -0
- package/dist-esm/src/storageManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +74 -22
- package/review/arm-storage-profile-2020-09-01-hybrid.api.md +1396 -0
- package/rollup.config.js +115 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1411 -2087
- package/src/models/mappers.ts +1470 -1320
- package/src/models/parameters.ts +186 -76
- package/src/operations/blobInventoryPolicies.ts +282 -0
- package/src/operations/encryptionScopes.ts +238 -295
- package/src/operations/index.ts +4 -5
- package/src/operations/managementPolicies.ts +108 -182
- package/src/operations/objectReplicationPoliciesOperations.ts +186 -234
- package/src/operations/operations.ts +66 -45
- package/src/operations/privateEndpointConnections.ts +182 -221
- package/src/operations/privateLinkResources.ts +43 -67
- package/src/operations/skus.ts +64 -48
- package/src/operations/storageAccounts.ts +759 -838
- package/src/operations/usages.ts +78 -52
- package/src/operationsInterfaces/blobInventoryPolicies.ts +91 -0
- package/src/operationsInterfaces/encryptionScopes.ts +102 -0
- package/src/operationsInterfaces/index.ts +18 -0
- package/src/operationsInterfaces/managementPolicies.ts +74 -0
- package/src/operationsInterfaces/objectReplicationPoliciesOperations.ts +91 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +90 -0
- package/src/operationsInterfaces/privateLinkResources.ts +30 -0
- package/src/operationsInterfaces/skus.ts +22 -0
- package/src/operationsInterfaces/storageAccounts.ts +319 -0
- package/src/operationsInterfaces/usages.ts +24 -0
- package/src/storageManagementClient.ts +105 -46
- package/tsconfig.json +14 -6
- package/types/arm-storage-profile-2020-09-01-hybrid.d.ts +2508 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-storage-profile-2020-09-01-hybrid.js +0 -5017
- package/dist/arm-storage-profile-2020-09-01-hybrid.js.map +0 -1
- package/dist/arm-storage-profile-2020-09-01-hybrid.min.js +0 -1
- package/dist/arm-storage-profile-2020-09-01-hybrid.min.js.map +0 -1
- package/esm/models/encryptionScopesMappers.d.ts +0 -2
- package/esm/models/encryptionScopesMappers.d.ts.map +0 -1
- package/esm/models/encryptionScopesMappers.js +0 -9
- package/esm/models/encryptionScopesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2493
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/managementPoliciesMappers.d.ts +0 -2
- package/esm/models/managementPoliciesMappers.d.ts.map +0 -1
- package/esm/models/managementPoliciesMappers.js +0 -9
- package/esm/models/managementPoliciesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -79
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts +0 -2
- package/esm/models/objectReplicationPoliciesOperationsMappers.d.ts.map +0 -1
- package/esm/models/objectReplicationPoliciesOperationsMappers.js +0 -9
- package/esm/models/objectReplicationPoliciesOperationsMappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -176
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/privateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/privateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourcesMappers.js +0 -9
- package/esm/models/privateLinkResourcesMappers.js.map +0 -1
- package/esm/models/skusMappers.d.ts +0 -2
- package/esm/models/skusMappers.d.ts.map +0 -1
- package/esm/models/skusMappers.js +0 -9
- package/esm/models/skusMappers.js.map +0 -1
- package/esm/models/storageAccountsMappers.d.ts +0 -2
- package/esm/models/storageAccountsMappers.d.ts.map +0 -1
- package/esm/models/storageAccountsMappers.js +0 -9
- package/esm/models/storageAccountsMappers.js.map +0 -1
- package/esm/models/usagesMappers.d.ts +0 -2
- package/esm/models/usagesMappers.d.ts.map +0 -1
- package/esm/models/usagesMappers.js +0 -9
- package/esm/models/usagesMappers.js.map +0 -1
- package/esm/operations/encryptionScopes.d.ts +0 -196
- package/esm/operations/encryptionScopes.d.ts.map +0 -1
- package/esm/operations/encryptionScopes.js +0 -197
- package/esm/operations/encryptionScopes.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/managementPolicies.d.ts +0 -109
- package/esm/operations/managementPolicies.d.ts.map +0 -1
- package/esm/operations/managementPolicies.js +0 -130
- package/esm/operations/managementPolicies.js.map +0 -1
- package/esm/operations/objectReplicationPoliciesOperations.d.ts +0 -157
- package/esm/operations/objectReplicationPoliciesOperations.d.ts.map +0 -1
- package/esm/operations/objectReplicationPoliciesOperations.js +0 -162
- package/esm/operations/objectReplicationPoliciesOperations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -154
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -162
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -43
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -58
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/esm/operations/skus.d.ts +0 -28
- package/esm/operations/skus.d.ts.map +0 -1
- package/esm/operations/skus.js +0 -54
- package/esm/operations/skus.js.map +0 -1
- package/esm/operations/storageAccounts.d.ts +0 -436
- package/esm/operations/storageAccounts.d.ts.map +0 -1
- package/esm/operations/storageAccounts.js +0 -611
- package/esm/operations/storageAccounts.js.map +0 -1
- package/esm/operations/usages.d.ts +0 -32
- package/esm/operations/usages.d.ts.map +0 -1
- package/esm/operations/usages.js +0 -56
- package/esm/operations/usages.js.map +0 -1
- package/esm/storageManagementClient.d.ts +0 -26
- package/esm/storageManagementClient.d.ts.map +0 -1
- package/esm/storageManagementClient.js +0 -41
- package/esm/storageManagementClient.js.map +0 -1
- package/esm/storageManagementClientContext.d.ts +0 -16
- package/esm/storageManagementClientContext.d.ts.map +0 -1
- package/esm/storageManagementClientContext.js +0 -56
- package/esm/storageManagementClientContext.js.map +0 -1
- package/src/models/encryptionScopesMappers.ts +0 -59
- package/src/models/managementPoliciesMappers.ts +0 -57
- package/src/models/objectReplicationPoliciesOperationsMappers.ts +0 -58
- package/src/models/operationsMappers.ts +0 -17
- package/src/models/privateEndpointConnectionsMappers.ts +0 -59
- package/src/models/privateLinkResourcesMappers.ts +0 -58
- package/src/models/skusMappers.ts +0 -15
- package/src/models/storageAccountsMappers.ts +0 -69
- package/src/models/usagesMappers.ts +0 -14
- package/src/storageManagementClientContext.ts +0 -62
|
@@ -1,163 +1,156 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ObjectReplicationPoliciesOperations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { StorageManagementClient } from "../storageManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
ObjectReplicationPolicy,
|
|
17
|
+
ObjectReplicationPoliciesListOptionalParams,
|
|
18
|
+
ObjectReplicationPoliciesListResponse,
|
|
19
|
+
ObjectReplicationPoliciesGetOptionalParams,
|
|
20
|
+
ObjectReplicationPoliciesGetResponse,
|
|
21
|
+
ObjectReplicationPoliciesCreateOrUpdateOptionalParams,
|
|
22
|
+
ObjectReplicationPoliciesCreateOrUpdateResponse,
|
|
23
|
+
ObjectReplicationPoliciesDeleteOptionalParams
|
|
24
|
+
} from "../models";
|
|
16
25
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
/// <reference lib="esnext.asynciterable" />
|
|
27
|
+
/** Class containing ObjectReplicationPoliciesOperations operations. */
|
|
28
|
+
export class ObjectReplicationPoliciesOperationsImpl
|
|
29
|
+
implements ObjectReplicationPoliciesOperations {
|
|
30
|
+
private readonly client: StorageManagementClient;
|
|
20
31
|
|
|
21
32
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
33
|
+
* Initialize a new instance of the class ObjectReplicationPoliciesOperations class.
|
|
34
|
+
* @param client Reference to the service client
|
|
24
35
|
*/
|
|
25
|
-
constructor(client:
|
|
36
|
+
constructor(client: StorageManagementClient) {
|
|
26
37
|
this.client = client;
|
|
27
38
|
}
|
|
28
39
|
|
|
29
40
|
/**
|
|
30
41
|
* List the object replication policies associated with the storage account.
|
|
31
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
32
|
-
*
|
|
42
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
43
|
+
* case insensitive.
|
|
33
44
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* @param
|
|
37
|
-
* @returns Promise<Models.ObjectReplicationPoliciesListResponse>
|
|
45
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
46
|
+
* only.
|
|
47
|
+
* @param options The options parameters.
|
|
38
48
|
*/
|
|
39
|
-
list(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
public list(
|
|
50
|
+
resourceGroupName: string,
|
|
51
|
+
accountName: string,
|
|
52
|
+
options?: ObjectReplicationPoliciesListOptionalParams
|
|
53
|
+
): PagedAsyncIterableIterator<ObjectReplicationPolicy> {
|
|
54
|
+
const iter = this.listPagingAll(resourceGroupName, accountName, options);
|
|
55
|
+
return {
|
|
56
|
+
next() {
|
|
57
|
+
return iter.next();
|
|
58
|
+
},
|
|
59
|
+
[Symbol.asyncIterator]() {
|
|
60
|
+
return this;
|
|
61
|
+
},
|
|
62
|
+
byPage: () => {
|
|
63
|
+
return this.listPagingPage(resourceGroupName, accountName, options);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
private async *listPagingPage(
|
|
69
|
+
resourceGroupName: string,
|
|
70
|
+
accountName: string,
|
|
71
|
+
options?: ObjectReplicationPoliciesListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<ObjectReplicationPolicy[]> {
|
|
73
|
+
let result = await this._list(resourceGroupName, accountName, options);
|
|
74
|
+
yield result.value || [];
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
private async *listPagingAll(
|
|
78
|
+
resourceGroupName: string,
|
|
79
|
+
accountName: string,
|
|
80
|
+
options?: ObjectReplicationPoliciesListOptionalParams
|
|
81
|
+
): AsyncIterableIterator<ObjectReplicationPolicy> {
|
|
82
|
+
for await (const page of this.listPagingPage(
|
|
83
|
+
resourceGroupName,
|
|
84
|
+
accountName,
|
|
85
|
+
options
|
|
86
|
+
)) {
|
|
87
|
+
yield* page;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
49
91
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
92
|
+
* List the object replication policies associated with the storage account.
|
|
93
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
94
|
+
* case insensitive.
|
|
52
95
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* @param options The
|
|
56
|
-
* @param callback The callback
|
|
96
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
97
|
+
* only.
|
|
98
|
+
* @param options The options parameters.
|
|
57
99
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
100
|
+
private _list(
|
|
101
|
+
resourceGroupName: string,
|
|
102
|
+
accountName: string,
|
|
103
|
+
options?: ObjectReplicationPoliciesListOptionalParams
|
|
104
|
+
): Promise<ObjectReplicationPoliciesListResponse> {
|
|
60
105
|
return this.client.sendOperationRequest(
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
options
|
|
65
|
-
},
|
|
66
|
-
listOperationSpec,
|
|
67
|
-
callback) as Promise<Models.ObjectReplicationPoliciesListResponse>;
|
|
106
|
+
{ resourceGroupName, accountName, options },
|
|
107
|
+
listOperationSpec
|
|
108
|
+
);
|
|
68
109
|
}
|
|
69
110
|
|
|
70
111
|
/**
|
|
71
112
|
* Get the object replication policy of the storage account by policy ID.
|
|
72
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
73
|
-
*
|
|
74
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
75
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
76
|
-
* letters only.
|
|
77
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
78
|
-
* ID is unknown.
|
|
79
|
-
* @param [options] The optional parameters
|
|
80
|
-
* @returns Promise<Models.ObjectReplicationPoliciesGetResponse>
|
|
81
|
-
*/
|
|
82
|
-
get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: msRest.RequestOptionsBase): Promise<Models.ObjectReplicationPoliciesGetResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
85
|
-
* is case insensitive.
|
|
86
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
87
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
88
|
-
* letters only.
|
|
89
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
90
|
-
* ID is unknown.
|
|
91
|
-
* @param callback The callback
|
|
92
|
-
*/
|
|
93
|
-
get(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): void;
|
|
94
|
-
/**
|
|
95
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
96
|
-
* is case insensitive.
|
|
113
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
114
|
+
* case insensitive.
|
|
97
115
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
101
|
-
*
|
|
102
|
-
* @param options The
|
|
103
|
-
* @param callback The callback
|
|
116
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
117
|
+
* only.
|
|
118
|
+
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
|
|
119
|
+
* is unknown.
|
|
120
|
+
* @param options The options parameters.
|
|
104
121
|
*/
|
|
105
|
-
get(
|
|
106
|
-
|
|
122
|
+
get(
|
|
123
|
+
resourceGroupName: string,
|
|
124
|
+
accountName: string,
|
|
125
|
+
objectReplicationPolicyId: string,
|
|
126
|
+
options?: ObjectReplicationPoliciesGetOptionalParams
|
|
127
|
+
): Promise<ObjectReplicationPoliciesGetResponse> {
|
|
107
128
|
return this.client.sendOperationRequest(
|
|
108
|
-
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
objectReplicationPolicyId,
|
|
112
|
-
options
|
|
113
|
-
},
|
|
114
|
-
getOperationSpec,
|
|
115
|
-
callback) as Promise<Models.ObjectReplicationPoliciesGetResponse>;
|
|
129
|
+
{ resourceGroupName, accountName, objectReplicationPolicyId, options },
|
|
130
|
+
getOperationSpec
|
|
131
|
+
);
|
|
116
132
|
}
|
|
117
133
|
|
|
118
134
|
/**
|
|
119
135
|
* Create or update the object replication policy of the storage account.
|
|
120
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
121
|
-
*
|
|
122
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
123
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
124
|
-
* letters only.
|
|
125
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
126
|
-
* ID is unknown.
|
|
127
|
-
* @param properties The object replication policy set to a storage account. A unique policy ID
|
|
128
|
-
* will be created if absent.
|
|
129
|
-
* @param [options] The optional parameters
|
|
130
|
-
* @returns Promise<Models.ObjectReplicationPoliciesCreateOrUpdateResponse>
|
|
131
|
-
*/
|
|
132
|
-
createOrUpdate(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, properties: Models.ObjectReplicationPolicy, options?: msRest.RequestOptionsBase): Promise<Models.ObjectReplicationPoliciesCreateOrUpdateResponse>;
|
|
133
|
-
/**
|
|
134
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
135
|
-
* is case insensitive.
|
|
136
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
137
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
138
|
-
* letters only.
|
|
139
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
140
|
-
* ID is unknown.
|
|
141
|
-
* @param properties The object replication policy set to a storage account. A unique policy ID
|
|
142
|
-
* will be created if absent.
|
|
143
|
-
* @param callback The callback
|
|
144
|
-
*/
|
|
145
|
-
createOrUpdate(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, properties: Models.ObjectReplicationPolicy, callback: msRest.ServiceCallback<Models.ObjectReplicationPolicy>): void;
|
|
146
|
-
/**
|
|
147
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
148
|
-
* is case insensitive.
|
|
136
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
137
|
+
* case insensitive.
|
|
149
138
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
153
|
-
*
|
|
154
|
-
* @param properties The object replication policy set to a storage account. A unique policy ID
|
|
155
|
-
*
|
|
156
|
-
* @param options The
|
|
157
|
-
* @param callback The callback
|
|
139
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
140
|
+
* only.
|
|
141
|
+
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
|
|
142
|
+
* is unknown.
|
|
143
|
+
* @param properties The object replication policy set to a storage account. A unique policy ID will be
|
|
144
|
+
* created if absent.
|
|
145
|
+
* @param options The options parameters.
|
|
158
146
|
*/
|
|
159
|
-
createOrUpdate(
|
|
160
|
-
|
|
147
|
+
createOrUpdate(
|
|
148
|
+
resourceGroupName: string,
|
|
149
|
+
accountName: string,
|
|
150
|
+
objectReplicationPolicyId: string,
|
|
151
|
+
properties: ObjectReplicationPolicy,
|
|
152
|
+
options?: ObjectReplicationPoliciesCreateOrUpdateOptionalParams
|
|
153
|
+
): Promise<ObjectReplicationPoliciesCreateOrUpdateResponse> {
|
|
161
154
|
return this.client.sendOperationRequest(
|
|
162
155
|
{
|
|
163
156
|
resourceGroupName,
|
|
@@ -166,75 +159,40 @@ export class ObjectReplicationPoliciesOperations {
|
|
|
166
159
|
properties,
|
|
167
160
|
options
|
|
168
161
|
},
|
|
169
|
-
createOrUpdateOperationSpec
|
|
170
|
-
|
|
162
|
+
createOrUpdateOperationSpec
|
|
163
|
+
);
|
|
171
164
|
}
|
|
172
165
|
|
|
173
166
|
/**
|
|
174
167
|
* Deletes the object replication policy associated with the specified storage account.
|
|
175
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
176
|
-
*
|
|
168
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
169
|
+
* case insensitive.
|
|
177
170
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
181
|
-
*
|
|
182
|
-
* @param
|
|
183
|
-
* @returns Promise<msRest.RestResponse>
|
|
171
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
172
|
+
* only.
|
|
173
|
+
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID
|
|
174
|
+
* is unknown.
|
|
175
|
+
* @param options The options parameters.
|
|
184
176
|
*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
* letters only.
|
|
192
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
193
|
-
* ID is unknown.
|
|
194
|
-
* @param callback The callback
|
|
195
|
-
*/
|
|
196
|
-
deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, callback: msRest.ServiceCallback<void>): void;
|
|
197
|
-
/**
|
|
198
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
199
|
-
* is case insensitive.
|
|
200
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
201
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
202
|
-
* letters only.
|
|
203
|
-
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy
|
|
204
|
-
* ID is unknown.
|
|
205
|
-
* @param options The optional parameters
|
|
206
|
-
* @param callback The callback
|
|
207
|
-
*/
|
|
208
|
-
deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
|
209
|
-
deleteMethod(resourceGroupName: string, accountName: string, objectReplicationPolicyId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
177
|
+
delete(
|
|
178
|
+
resourceGroupName: string,
|
|
179
|
+
accountName: string,
|
|
180
|
+
objectReplicationPolicyId: string,
|
|
181
|
+
options?: ObjectReplicationPoliciesDeleteOptionalParams
|
|
182
|
+
): Promise<void> {
|
|
210
183
|
return this.client.sendOperationRequest(
|
|
211
|
-
{
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
objectReplicationPolicyId,
|
|
215
|
-
options
|
|
216
|
-
},
|
|
217
|
-
deleteMethodOperationSpec,
|
|
218
|
-
callback);
|
|
184
|
+
{ resourceGroupName, accountName, objectReplicationPolicyId, options },
|
|
185
|
+
deleteOperationSpec
|
|
186
|
+
);
|
|
219
187
|
}
|
|
220
188
|
}
|
|
221
|
-
|
|
222
189
|
// Operation Specifications
|
|
223
|
-
const serializer =
|
|
224
|
-
|
|
190
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
191
|
+
|
|
192
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
193
|
+
path:
|
|
194
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies",
|
|
225
195
|
httpMethod: "GET",
|
|
226
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies",
|
|
227
|
-
urlParameters: [
|
|
228
|
-
Parameters.resourceGroupName,
|
|
229
|
-
Parameters.accountName,
|
|
230
|
-
Parameters.subscriptionId
|
|
231
|
-
],
|
|
232
|
-
queryParameters: [
|
|
233
|
-
Parameters.apiVersion
|
|
234
|
-
],
|
|
235
|
-
headerParameters: [
|
|
236
|
-
Parameters.acceptLanguage
|
|
237
|
-
],
|
|
238
196
|
responses: {
|
|
239
197
|
200: {
|
|
240
198
|
bodyMapper: Mappers.ObjectReplicationPolicies
|
|
@@ -243,24 +201,20 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
243
201
|
bodyMapper: Mappers.ErrorResponse
|
|
244
202
|
}
|
|
245
203
|
},
|
|
246
|
-
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
250
|
-
httpMethod: "GET",
|
|
251
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
204
|
+
queryParameters: [Parameters.apiVersion],
|
|
252
205
|
urlParameters: [
|
|
253
|
-
Parameters
|
|
254
|
-
Parameters.accountName,
|
|
206
|
+
Parameters.$host,
|
|
255
207
|
Parameters.subscriptionId,
|
|
256
|
-
Parameters.
|
|
257
|
-
|
|
258
|
-
queryParameters: [
|
|
259
|
-
Parameters.apiVersion
|
|
260
|
-
],
|
|
261
|
-
headerParameters: [
|
|
262
|
-
Parameters.acceptLanguage
|
|
208
|
+
Parameters.resourceGroupName,
|
|
209
|
+
Parameters.accountName1
|
|
263
210
|
],
|
|
211
|
+
headerParameters: [Parameters.accept],
|
|
212
|
+
serializer
|
|
213
|
+
};
|
|
214
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
215
|
+
path:
|
|
216
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
217
|
+
httpMethod: "GET",
|
|
264
218
|
responses: {
|
|
265
219
|
200: {
|
|
266
220
|
bodyMapper: Mappers.ObjectReplicationPolicy
|
|
@@ -269,31 +223,21 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
269
223
|
bodyMapper: Mappers.ErrorResponse
|
|
270
224
|
}
|
|
271
225
|
},
|
|
272
|
-
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
276
|
-
httpMethod: "PUT",
|
|
277
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
226
|
+
queryParameters: [Parameters.apiVersion],
|
|
278
227
|
urlParameters: [
|
|
279
|
-
Parameters
|
|
280
|
-
Parameters.accountName,
|
|
228
|
+
Parameters.$host,
|
|
281
229
|
Parameters.subscriptionId,
|
|
230
|
+
Parameters.resourceGroupName,
|
|
231
|
+
Parameters.accountName1,
|
|
282
232
|
Parameters.objectReplicationPolicyId
|
|
283
233
|
],
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
parameterPath: "properties",
|
|
292
|
-
mapper: {
|
|
293
|
-
...Mappers.ObjectReplicationPolicy,
|
|
294
|
-
required: true
|
|
295
|
-
}
|
|
296
|
-
},
|
|
234
|
+
headerParameters: [Parameters.accept],
|
|
235
|
+
serializer
|
|
236
|
+
};
|
|
237
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
238
|
+
path:
|
|
239
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
240
|
+
httpMethod: "PUT",
|
|
297
241
|
responses: {
|
|
298
242
|
200: {
|
|
299
243
|
bodyMapper: Mappers.ObjectReplicationPolicy
|
|
@@ -302,24 +246,23 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
302
246
|
bodyMapper: Mappers.ErrorResponse
|
|
303
247
|
}
|
|
304
248
|
},
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
309
|
-
httpMethod: "DELETE",
|
|
310
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
249
|
+
requestBody: Parameters.properties3,
|
|
250
|
+
queryParameters: [Parameters.apiVersion],
|
|
311
251
|
urlParameters: [
|
|
312
|
-
Parameters
|
|
313
|
-
Parameters.accountName,
|
|
252
|
+
Parameters.$host,
|
|
314
253
|
Parameters.subscriptionId,
|
|
254
|
+
Parameters.resourceGroupName,
|
|
255
|
+
Parameters.accountName1,
|
|
315
256
|
Parameters.objectReplicationPolicyId
|
|
316
257
|
],
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
258
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
259
|
+
mediaType: "json",
|
|
260
|
+
serializer
|
|
261
|
+
};
|
|
262
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
263
|
+
path:
|
|
264
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}",
|
|
265
|
+
httpMethod: "DELETE",
|
|
323
266
|
responses: {
|
|
324
267
|
200: {},
|
|
325
268
|
204: {},
|
|
@@ -327,5 +270,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
327
270
|
bodyMapper: Mappers.ErrorResponse
|
|
328
271
|
}
|
|
329
272
|
},
|
|
273
|
+
queryParameters: [Parameters.apiVersion],
|
|
274
|
+
urlParameters: [
|
|
275
|
+
Parameters.$host,
|
|
276
|
+
Parameters.subscriptionId,
|
|
277
|
+
Parameters.resourceGroupName,
|
|
278
|
+
Parameters.accountName1,
|
|
279
|
+
Parameters.objectReplicationPolicyId
|
|
280
|
+
],
|
|
281
|
+
headerParameters: [Parameters.accept],
|
|
330
282
|
serializer
|
|
331
283
|
};
|
|
@@ -1,74 +1,95 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { StorageManagementClient } from "../storageManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListOptionalParams,
|
|
18
|
+
OperationsListResponse
|
|
19
|
+
} from "../models";
|
|
16
20
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Class containing Operations operations. */
|
|
23
|
+
export class OperationsImpl implements Operations {
|
|
24
|
+
private readonly client: StorageManagementClient;
|
|
20
25
|
|
|
21
26
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
27
|
+
* Initialize a new instance of the class Operations class.
|
|
28
|
+
* @param client Reference to the service client
|
|
24
29
|
*/
|
|
25
|
-
constructor(client:
|
|
30
|
+
constructor(client: StorageManagementClient) {
|
|
26
31
|
this.client = client;
|
|
27
32
|
}
|
|
28
33
|
|
|
29
34
|
/**
|
|
30
35
|
* Lists all of the available Storage Rest API operations.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
36
|
+
* @param options The options parameters.
|
|
33
37
|
*/
|
|
34
|
-
list(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
public list(
|
|
39
|
+
options?: OperationsListOptionalParams
|
|
40
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
41
|
+
const iter = this.listPagingAll(options);
|
|
42
|
+
return {
|
|
43
|
+
next() {
|
|
44
|
+
return iter.next();
|
|
45
|
+
},
|
|
46
|
+
[Symbol.asyncIterator]() {
|
|
47
|
+
return this;
|
|
48
|
+
},
|
|
49
|
+
byPage: () => {
|
|
50
|
+
return this.listPagingPage(options);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
private async *listPagingPage(
|
|
56
|
+
options?: OperationsListOptionalParams
|
|
57
|
+
): AsyncIterableIterator<Operation[]> {
|
|
58
|
+
let result = await this._list(options);
|
|
59
|
+
yield result.value || [];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
private async *listPagingAll(
|
|
63
|
+
options?: OperationsListOptionalParams
|
|
64
|
+
): AsyncIterableIterator<Operation> {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
39
70
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @param
|
|
71
|
+
* Lists all of the available Storage Rest API operations.
|
|
72
|
+
* @param options The options parameters.
|
|
42
73
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
options
|
|
48
|
-
},
|
|
49
|
-
listOperationSpec,
|
|
50
|
-
callback) as Promise<Models.OperationsListResponse>;
|
|
74
|
+
private _list(
|
|
75
|
+
options?: OperationsListOptionalParams
|
|
76
|
+
): Promise<OperationsListResponse> {
|
|
77
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
51
78
|
}
|
|
52
79
|
}
|
|
53
|
-
|
|
54
80
|
// Operation Specifications
|
|
55
|
-
const serializer =
|
|
56
|
-
|
|
81
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
82
|
+
|
|
83
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
84
|
+
path: "/providers/Microsoft.Storage/operations",
|
|
57
85
|
httpMethod: "GET",
|
|
58
|
-
path: "providers/Microsoft.Storage/operations",
|
|
59
|
-
queryParameters: [
|
|
60
|
-
Parameters.apiVersion
|
|
61
|
-
],
|
|
62
|
-
headerParameters: [
|
|
63
|
-
Parameters.acceptLanguage
|
|
64
|
-
],
|
|
65
86
|
responses: {
|
|
66
87
|
200: {
|
|
67
88
|
bodyMapper: Mappers.OperationListResult
|
|
68
|
-
},
|
|
69
|
-
default: {
|
|
70
|
-
bodyMapper: Mappers.CloudError
|
|
71
89
|
}
|
|
72
90
|
},
|
|
91
|
+
queryParameters: [Parameters.apiVersion],
|
|
92
|
+
urlParameters: [Parameters.$host],
|
|
93
|
+
headerParameters: [Parameters.accept],
|
|
73
94
|
serializer
|
|
74
95
|
};
|