@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,109 +1,130 @@
|
|
|
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 { PrivateEndpointConnections } 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
|
+
PrivateEndpointConnection,
|
|
17
|
+
PrivateEndpointConnectionsListOptionalParams,
|
|
18
|
+
PrivateEndpointConnectionsListResponse,
|
|
19
|
+
PrivateEndpointConnectionsGetOptionalParams,
|
|
20
|
+
PrivateEndpointConnectionsGetResponse,
|
|
21
|
+
PrivateEndpointConnectionsPutOptionalParams,
|
|
22
|
+
PrivateEndpointConnectionsPutResponse,
|
|
23
|
+
PrivateEndpointConnectionsDeleteOptionalParams
|
|
24
|
+
} from "../models";
|
|
16
25
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
/// <reference lib="esnext.asynciterable" />
|
|
27
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
28
|
+
export class PrivateEndpointConnectionsImpl
|
|
29
|
+
implements PrivateEndpointConnections {
|
|
30
|
+
private readonly client: StorageManagementClient;
|
|
20
31
|
|
|
21
32
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
33
|
+
* Initialize a new instance of the class PrivateEndpointConnections 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 all the private endpoint connections 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.PrivateEndpointConnectionsListResponse>
|
|
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?: PrivateEndpointConnectionsListOptionalParams
|
|
53
|
+
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
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?: PrivateEndpointConnectionsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
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?: PrivateEndpointConnectionsListOptionalParams
|
|
81
|
+
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
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 all the private endpoint connections 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?: PrivateEndpointConnectionsListOptionalParams
|
|
104
|
+
): Promise<PrivateEndpointConnectionsListResponse> {
|
|
60
105
|
return this.client.sendOperationRequest(
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
options
|
|
65
|
-
},
|
|
66
|
-
listOperationSpec,
|
|
67
|
-
callback) as Promise<Models.PrivateEndpointConnectionsListResponse>;
|
|
106
|
+
{ resourceGroupName, accountName, options },
|
|
107
|
+
listOperationSpec
|
|
108
|
+
);
|
|
68
109
|
}
|
|
69
110
|
|
|
70
111
|
/**
|
|
71
112
|
* Gets the specified private endpoint connection associated with the storage account.
|
|
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 privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
78
|
-
* the Azure resource
|
|
79
|
-
* @param [options] The optional parameters
|
|
80
|
-
* @returns Promise<Models.PrivateEndpointConnectionsGetResponse>
|
|
81
|
-
*/
|
|
82
|
-
get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsGetResponse>;
|
|
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 privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
90
|
-
* the Azure resource
|
|
91
|
-
* @param callback The callback
|
|
92
|
-
*/
|
|
93
|
-
get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): 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 privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
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 privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
119
|
+
* Azure resource
|
|
120
|
+
* @param options The options parameters.
|
|
104
121
|
*/
|
|
105
|
-
get(
|
|
106
|
-
|
|
122
|
+
get(
|
|
123
|
+
resourceGroupName: string,
|
|
124
|
+
accountName: string,
|
|
125
|
+
privateEndpointConnectionName: string,
|
|
126
|
+
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
127
|
+
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
107
128
|
return this.client.sendOperationRequest(
|
|
108
129
|
{
|
|
109
130
|
resourceGroupName,
|
|
@@ -111,50 +132,29 @@ export class PrivateEndpointConnections {
|
|
|
111
132
|
privateEndpointConnectionName,
|
|
112
133
|
options
|
|
113
134
|
},
|
|
114
|
-
getOperationSpec
|
|
115
|
-
|
|
135
|
+
getOperationSpec
|
|
136
|
+
);
|
|
116
137
|
}
|
|
117
138
|
|
|
118
139
|
/**
|
|
119
140
|
* Update the state of specified private endpoint connection associated with 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 privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
126
|
-
* the Azure resource
|
|
127
|
-
* @param properties The private endpoint connection properties.
|
|
128
|
-
* @param [options] The optional parameters
|
|
129
|
-
* @returns Promise<Models.PrivateEndpointConnectionsPutResponse>
|
|
130
|
-
*/
|
|
131
|
-
put(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsPutResponse>;
|
|
132
|
-
/**
|
|
133
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
134
|
-
* is case insensitive.
|
|
141
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
142
|
+
* case insensitive.
|
|
135
143
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
139
|
-
*
|
|
144
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
145
|
+
* only.
|
|
146
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
147
|
+
* Azure resource
|
|
140
148
|
* @param properties The private endpoint connection properties.
|
|
141
|
-
* @param
|
|
149
|
+
* @param options The options parameters.
|
|
142
150
|
*/
|
|
143
|
-
put(
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
151
|
-
* the Azure resource
|
|
152
|
-
* @param properties The private endpoint connection properties.
|
|
153
|
-
* @param options The optional parameters
|
|
154
|
-
* @param callback The callback
|
|
155
|
-
*/
|
|
156
|
-
put(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
|
|
157
|
-
put(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, properties: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateEndpointConnection>, callback?: msRest.ServiceCallback<Models.PrivateEndpointConnection>): Promise<Models.PrivateEndpointConnectionsPutResponse> {
|
|
151
|
+
put(
|
|
152
|
+
resourceGroupName: string,
|
|
153
|
+
accountName: string,
|
|
154
|
+
privateEndpointConnectionName: string,
|
|
155
|
+
properties: PrivateEndpointConnection,
|
|
156
|
+
options?: PrivateEndpointConnectionsPutOptionalParams
|
|
157
|
+
): Promise<PrivateEndpointConnectionsPutResponse> {
|
|
158
158
|
return this.client.sendOperationRequest(
|
|
159
159
|
{
|
|
160
160
|
resourceGroupName,
|
|
@@ -163,47 +163,27 @@ export class PrivateEndpointConnections {
|
|
|
163
163
|
properties,
|
|
164
164
|
options
|
|
165
165
|
},
|
|
166
|
-
putOperationSpec
|
|
167
|
-
|
|
166
|
+
putOperationSpec
|
|
167
|
+
);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* Deletes the specified private endpoint connection associated with the storage account.
|
|
172
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
173
|
-
*
|
|
174
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
175
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
176
|
-
* letters only.
|
|
177
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
178
|
-
* the Azure resource
|
|
179
|
-
* @param [options] The optional parameters
|
|
180
|
-
* @returns Promise<msRest.RestResponse>
|
|
181
|
-
*/
|
|
182
|
-
deleteMethod(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
183
|
-
/**
|
|
184
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
185
|
-
* is case insensitive.
|
|
186
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
187
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
188
|
-
* letters only.
|
|
189
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
190
|
-
* the Azure resource
|
|
191
|
-
* @param callback The callback
|
|
192
|
-
*/
|
|
193
|
-
deleteMethod(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback<void>): void;
|
|
194
|
-
/**
|
|
195
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
196
|
-
* is case insensitive.
|
|
172
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
173
|
+
* case insensitive.
|
|
197
174
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection associated with
|
|
201
|
-
*
|
|
202
|
-
* @param options The
|
|
203
|
-
* @param callback The callback
|
|
175
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
176
|
+
* only.
|
|
177
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection associated with the
|
|
178
|
+
* Azure resource
|
|
179
|
+
* @param options The options parameters.
|
|
204
180
|
*/
|
|
205
|
-
|
|
206
|
-
|
|
181
|
+
delete(
|
|
182
|
+
resourceGroupName: string,
|
|
183
|
+
accountName: string,
|
|
184
|
+
privateEndpointConnectionName: string,
|
|
185
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
186
|
+
): Promise<void> {
|
|
207
187
|
return this.client.sendOperationRequest(
|
|
208
188
|
{
|
|
209
189
|
resourceGroupName,
|
|
@@ -211,53 +191,36 @@ export class PrivateEndpointConnections {
|
|
|
211
191
|
privateEndpointConnectionName,
|
|
212
192
|
options
|
|
213
193
|
},
|
|
214
|
-
|
|
215
|
-
|
|
194
|
+
deleteOperationSpec
|
|
195
|
+
);
|
|
216
196
|
}
|
|
217
197
|
}
|
|
218
|
-
|
|
219
198
|
// Operation Specifications
|
|
220
|
-
const serializer =
|
|
221
|
-
|
|
199
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
200
|
+
|
|
201
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
202
|
+
path:
|
|
203
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections",
|
|
222
204
|
httpMethod: "GET",
|
|
223
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections",
|
|
224
|
-
urlParameters: [
|
|
225
|
-
Parameters.resourceGroupName,
|
|
226
|
-
Parameters.accountName,
|
|
227
|
-
Parameters.subscriptionId
|
|
228
|
-
],
|
|
229
|
-
queryParameters: [
|
|
230
|
-
Parameters.apiVersion
|
|
231
|
-
],
|
|
232
|
-
headerParameters: [
|
|
233
|
-
Parameters.acceptLanguage
|
|
234
|
-
],
|
|
235
205
|
responses: {
|
|
236
206
|
200: {
|
|
237
207
|
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
238
|
-
},
|
|
239
|
-
default: {
|
|
240
|
-
bodyMapper: Mappers.CloudError
|
|
241
208
|
}
|
|
242
209
|
},
|
|
243
|
-
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
247
|
-
httpMethod: "GET",
|
|
248
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
210
|
+
queryParameters: [Parameters.apiVersion],
|
|
249
211
|
urlParameters: [
|
|
250
|
-
Parameters
|
|
251
|
-
Parameters.accountName,
|
|
212
|
+
Parameters.$host,
|
|
252
213
|
Parameters.subscriptionId,
|
|
253
|
-
Parameters.
|
|
254
|
-
|
|
255
|
-
queryParameters: [
|
|
256
|
-
Parameters.apiVersion
|
|
257
|
-
],
|
|
258
|
-
headerParameters: [
|
|
259
|
-
Parameters.acceptLanguage
|
|
214
|
+
Parameters.resourceGroupName,
|
|
215
|
+
Parameters.accountName1
|
|
260
216
|
],
|
|
217
|
+
headerParameters: [Parameters.accept],
|
|
218
|
+
serializer
|
|
219
|
+
};
|
|
220
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
221
|
+
path:
|
|
222
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
223
|
+
httpMethod: "GET",
|
|
261
224
|
responses: {
|
|
262
225
|
200: {
|
|
263
226
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
@@ -266,31 +229,21 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
266
229
|
bodyMapper: Mappers.ErrorResponse
|
|
267
230
|
}
|
|
268
231
|
},
|
|
269
|
-
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
const putOperationSpec: msRest.OperationSpec = {
|
|
273
|
-
httpMethod: "PUT",
|
|
274
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
232
|
+
queryParameters: [Parameters.apiVersion],
|
|
275
233
|
urlParameters: [
|
|
276
|
-
Parameters
|
|
277
|
-
Parameters.accountName,
|
|
234
|
+
Parameters.$host,
|
|
278
235
|
Parameters.subscriptionId,
|
|
236
|
+
Parameters.resourceGroupName,
|
|
237
|
+
Parameters.accountName1,
|
|
279
238
|
Parameters.privateEndpointConnectionName
|
|
280
239
|
],
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
parameterPath: "properties",
|
|
289
|
-
mapper: {
|
|
290
|
-
...Mappers.PrivateEndpointConnection,
|
|
291
|
-
required: true
|
|
292
|
-
}
|
|
293
|
-
},
|
|
240
|
+
headerParameters: [Parameters.accept],
|
|
241
|
+
serializer
|
|
242
|
+
};
|
|
243
|
+
const putOperationSpec: coreClient.OperationSpec = {
|
|
244
|
+
path:
|
|
245
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
246
|
+
httpMethod: "PUT",
|
|
294
247
|
responses: {
|
|
295
248
|
200: {
|
|
296
249
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
@@ -299,24 +252,23 @@ const putOperationSpec: msRest.OperationSpec = {
|
|
|
299
252
|
bodyMapper: Mappers.ErrorResponse
|
|
300
253
|
}
|
|
301
254
|
},
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
306
|
-
httpMethod: "DELETE",
|
|
307
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
255
|
+
requestBody: Parameters.properties2,
|
|
256
|
+
queryParameters: [Parameters.apiVersion],
|
|
308
257
|
urlParameters: [
|
|
309
|
-
Parameters
|
|
310
|
-
Parameters.accountName,
|
|
258
|
+
Parameters.$host,
|
|
311
259
|
Parameters.subscriptionId,
|
|
260
|
+
Parameters.resourceGroupName,
|
|
261
|
+
Parameters.accountName1,
|
|
312
262
|
Parameters.privateEndpointConnectionName
|
|
313
263
|
],
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
264
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
265
|
+
mediaType: "json",
|
|
266
|
+
serializer
|
|
267
|
+
};
|
|
268
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
269
|
+
path:
|
|
270
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
271
|
+
httpMethod: "DELETE",
|
|
320
272
|
responses: {
|
|
321
273
|
200: {},
|
|
322
274
|
204: {},
|
|
@@ -324,5 +276,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
324
276
|
bodyMapper: Mappers.ErrorResponse
|
|
325
277
|
}
|
|
326
278
|
},
|
|
279
|
+
queryParameters: [Parameters.apiVersion],
|
|
280
|
+
urlParameters: [
|
|
281
|
+
Parameters.$host,
|
|
282
|
+
Parameters.subscriptionId,
|
|
283
|
+
Parameters.resourceGroupName,
|
|
284
|
+
Parameters.accountName1,
|
|
285
|
+
Parameters.privateEndpointConnectionName
|
|
286
|
+
],
|
|
287
|
+
headerParameters: [Parameters.accept],
|
|
327
288
|
serializer
|
|
328
289
|
};
|
|
@@ -1,96 +1,72 @@
|
|
|
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 * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
14
12
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
13
|
+
import { StorageManagementClient } from "../storageManagementClient";
|
|
14
|
+
import {
|
|
15
|
+
PrivateLinkResourcesListByStorageAccountOptionalParams,
|
|
16
|
+
PrivateLinkResourcesListByStorageAccountResponse
|
|
17
|
+
} from "../models";
|
|
16
18
|
|
|
17
|
-
/** Class
|
|
18
|
-
export class PrivateLinkResources {
|
|
19
|
-
private readonly client:
|
|
19
|
+
/** Class containing PrivateLinkResources operations. */
|
|
20
|
+
export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
21
|
+
private readonly client: StorageManagementClient;
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
24
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
25
|
+
* @param client Reference to the service client
|
|
24
26
|
*/
|
|
25
|
-
constructor(client:
|
|
27
|
+
constructor(client: StorageManagementClient) {
|
|
26
28
|
this.client = client;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
30
32
|
* Gets the private link resources that need to be created for a storage account.
|
|
31
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
32
|
-
*
|
|
33
|
+
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
|
|
34
|
+
* case insensitive.
|
|
33
35
|
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* @param
|
|
37
|
-
* @returns Promise<Models.PrivateLinkResourcesListByStorageAccountResponse>
|
|
36
|
+
* account names must be between 3 and 24 characters in length and use numbers and lower-case letters
|
|
37
|
+
* only.
|
|
38
|
+
* @param options The options parameters.
|
|
38
39
|
*/
|
|
39
|
-
listByStorageAccount(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
45
|
-
* letters only.
|
|
46
|
-
* @param callback The callback
|
|
47
|
-
*/
|
|
48
|
-
listByStorageAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
|
|
49
|
-
/**
|
|
50
|
-
* @param resourceGroupName The name of the resource group within the user's subscription. The name
|
|
51
|
-
* is case insensitive.
|
|
52
|
-
* @param accountName The name of the storage account within the specified resource group. Storage
|
|
53
|
-
* account names must be between 3 and 24 characters in length and use numbers and lower-case
|
|
54
|
-
* letters only.
|
|
55
|
-
* @param options The optional parameters
|
|
56
|
-
* @param callback The callback
|
|
57
|
-
*/
|
|
58
|
-
listByStorageAccount(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): void;
|
|
59
|
-
listByStorageAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.PrivateLinkResourceListResult>, callback?: msRest.ServiceCallback<Models.PrivateLinkResourceListResult>): Promise<Models.PrivateLinkResourcesListByStorageAccountResponse> {
|
|
40
|
+
listByStorageAccount(
|
|
41
|
+
resourceGroupName: string,
|
|
42
|
+
accountName: string,
|
|
43
|
+
options?: PrivateLinkResourcesListByStorageAccountOptionalParams
|
|
44
|
+
): Promise<PrivateLinkResourcesListByStorageAccountResponse> {
|
|
60
45
|
return this.client.sendOperationRequest(
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
options
|
|
65
|
-
},
|
|
66
|
-
listByStorageAccountOperationSpec,
|
|
67
|
-
callback) as Promise<Models.PrivateLinkResourcesListByStorageAccountResponse>;
|
|
46
|
+
{ resourceGroupName, accountName, options },
|
|
47
|
+
listByStorageAccountOperationSpec
|
|
48
|
+
);
|
|
68
49
|
}
|
|
69
50
|
}
|
|
70
|
-
|
|
71
51
|
// Operation Specifications
|
|
72
|
-
const serializer =
|
|
73
|
-
|
|
52
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
53
|
+
|
|
54
|
+
const listByStorageAccountOperationSpec: coreClient.OperationSpec = {
|
|
55
|
+
path:
|
|
56
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources",
|
|
74
57
|
httpMethod: "GET",
|
|
75
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateLinkResources",
|
|
76
|
-
urlParameters: [
|
|
77
|
-
Parameters.resourceGroupName,
|
|
78
|
-
Parameters.accountName,
|
|
79
|
-
Parameters.subscriptionId
|
|
80
|
-
],
|
|
81
|
-
queryParameters: [
|
|
82
|
-
Parameters.apiVersion
|
|
83
|
-
],
|
|
84
|
-
headerParameters: [
|
|
85
|
-
Parameters.acceptLanguage
|
|
86
|
-
],
|
|
87
58
|
responses: {
|
|
88
59
|
200: {
|
|
89
60
|
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
90
|
-
},
|
|
91
|
-
default: {
|
|
92
|
-
bodyMapper: Mappers.CloudError
|
|
93
61
|
}
|
|
94
62
|
},
|
|
63
|
+
queryParameters: [Parameters.apiVersion],
|
|
64
|
+
urlParameters: [
|
|
65
|
+
Parameters.$host,
|
|
66
|
+
Parameters.subscriptionId,
|
|
67
|
+
Parameters.resourceGroupName,
|
|
68
|
+
Parameters.accountName1
|
|
69
|
+
],
|
|
70
|
+
headerParameters: [Parameters.accept],
|
|
95
71
|
serializer
|
|
96
72
|
};
|