@azure/arm-appconfiguration 1.2.0 → 3.0.0-beta.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +72 -75
- package/dist/index.js +3105 -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/appConfigurationManagementClient.d.ts +22 -0
- package/dist-esm/src/appConfigurationManagementClient.d.ts.map +1 -0
- package/dist-esm/src/appConfigurationManagementClient.js +55 -0
- package/dist-esm/src/appConfigurationManagementClient.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 +826 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +59 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +38 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +588 -313
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +20 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +162 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/configurationStores.d.ts +139 -0
- package/dist-esm/src/operations/configurationStores.d.ts.map +1 -0
- package/dist-esm/src/operations/configurationStores.js +655 -0
- package/dist-esm/src/operations/configurationStores.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/keyValues.d.ts +76 -0
- package/dist-esm/src/operations/keyValues.d.ts.map +1 -0
- package/dist-esm/src/operations/keyValues.js +284 -0
- package/dist-esm/src/operations/keyValues.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +39 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +147 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +84 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +350 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts +47 -0
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResources.js +170 -0
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurationStores.d.ts +86 -0
- package/dist-esm/src/operationsInterfaces/configurationStores.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/configurationStores.js +9 -0
- package/dist-esm/src/operationsInterfaces/configurationStores.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/keyValues.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/keyValues.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/keyValues.js +9 -0
- package/dist-esm/src/operationsInterfaces/keyValues.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +18 -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 +58 -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 +21 -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/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 +65 -31
- package/review/arm-appconfiguration.api.md +665 -0
- package/rollup.config.js +181 -30
- package/src/appConfigurationManagementClient.ts +82 -35
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +680 -893
- package/src/models/mappers.ts +657 -367
- package/src/models/parameters.ts +126 -44
- package/src/operations/configurationStores.ts +657 -495
- package/src/operations/index.ts +4 -5
- package/src/operations/keyValues.ts +396 -0
- package/src/operations/operations.ts +113 -123
- package/src/operations/privateEndpointConnections.ts +350 -186
- package/src/operations/privateLinkResources.ts +162 -126
- package/src/operationsInterfaces/configurationStores.ts +168 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/keyValues.ts +91 -0
- package/src/operationsInterfaces/operations.ts +38 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +111 -0
- package/src/operationsInterfaces/privateLinkResources.ts +44 -0
- package/tsconfig.json +3 -3
- package/types/arm-appconfiguration.d.ts +1171 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-appconfiguration.js +0 -2213
- package/dist/arm-appconfiguration.js.map +0 -1
- package/dist/arm-appconfiguration.min.js +0 -1
- package/dist/arm-appconfiguration.min.js.map +0 -1
- package/esm/appConfigurationManagementClient.d.ts +0 -21
- package/esm/appConfigurationManagementClient.d.ts.map +0 -1
- package/esm/appConfigurationManagementClient.js +0 -36
- package/esm/appConfigurationManagementClient.js.map +0 -1
- package/esm/appConfigurationManagementClientContext.d.ts +0 -16
- package/esm/appConfigurationManagementClientContext.d.ts.map +0 -1
- package/esm/appConfigurationManagementClientContext.js +0 -56
- package/esm/appConfigurationManagementClientContext.js.map +0 -1
- package/esm/models/configurationStoresMappers.d.ts +0 -2
- package/esm/models/configurationStoresMappers.d.ts.map +0 -1
- package/esm/models/configurationStoresMappers.js +0 -9
- package/esm/models/configurationStoresMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1073
- 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/mappers.d.ts +0 -31
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.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 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -108
- 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/operations/configurationStores.d.ts +0 -243
- package/esm/operations/configurationStores.d.ts.map +0 -1
- package/esm/operations/configurationStores.js +0 -466
- package/esm/operations/configurationStores.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -67
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -111
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/privateEndpointConnections.d.ts +0 -117
- package/esm/operations/privateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnections.js +0 -236
- package/esm/operations/privateEndpointConnections.js.map +0 -1
- package/esm/operations/privateLinkResources.d.ts +0 -76
- package/esm/operations/privateLinkResources.d.ts.map +0 -1
- package/esm/operations/privateLinkResources.js +0 -117
- package/esm/operations/privateLinkResources.js.map +0 -1
- package/src/appConfigurationManagementClientContext.ts +0 -62
- package/src/models/configurationStoresMappers.ts +0 -30
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/privateEndpointConnectionsMappers.ts +0 -24
- package/src/models/privateLinkResourcesMappers.ts +0 -13
|
@@ -1,29 +1,43 @@
|
|
|
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
|
|
14
|
-
import * as Mappers from "../models/
|
|
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";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
PrivateEndpointConnection,
|
|
19
|
+
PrivateEndpointConnectionsListByConfigurationStoreNextOptionalParams,
|
|
20
|
+
PrivateEndpointConnectionsListByConfigurationStoreOptionalParams,
|
|
21
|
+
PrivateEndpointConnectionsListByConfigurationStoreResponse,
|
|
22
|
+
PrivateEndpointConnectionsGetOptionalParams,
|
|
23
|
+
PrivateEndpointConnectionsGetResponse,
|
|
24
|
+
PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
25
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse,
|
|
26
|
+
PrivateEndpointConnectionsDeleteOptionalParams,
|
|
27
|
+
PrivateEndpointConnectionsListByConfigurationStoreNextResponse
|
|
28
|
+
} from "../models";
|
|
17
29
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
/// <reference lib="esnext.asynciterable" />
|
|
31
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
32
|
+
export class PrivateEndpointConnectionsImpl
|
|
33
|
+
implements PrivateEndpointConnections {
|
|
34
|
+
private readonly client: AppConfigurationManagementClient;
|
|
21
35
|
|
|
22
36
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
37
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
38
|
+
* @param client Reference to the service client
|
|
25
39
|
*/
|
|
26
|
-
constructor(client:
|
|
40
|
+
constructor(client: AppConfigurationManagementClient) {
|
|
27
41
|
this.client = client;
|
|
28
42
|
}
|
|
29
43
|
|
|
@@ -31,68 +45,189 @@ export class PrivateEndpointConnections {
|
|
|
31
45
|
* Lists all private endpoint connections for a configuration store.
|
|
32
46
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
33
47
|
* @param configStoreName The name of the configuration store.
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.PrivateEndpointConnectionsListByConfigurationStoreResponse>
|
|
48
|
+
* @param options The options parameters.
|
|
36
49
|
*/
|
|
37
|
-
listByConfigurationStore(
|
|
50
|
+
public listByConfigurationStore(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
configStoreName: string,
|
|
53
|
+
options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams
|
|
54
|
+
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
55
|
+
const iter = this.listByConfigurationStorePagingAll(
|
|
56
|
+
resourceGroupName,
|
|
57
|
+
configStoreName,
|
|
58
|
+
options
|
|
59
|
+
);
|
|
60
|
+
return {
|
|
61
|
+
next() {
|
|
62
|
+
return iter.next();
|
|
63
|
+
},
|
|
64
|
+
[Symbol.asyncIterator]() {
|
|
65
|
+
return this;
|
|
66
|
+
},
|
|
67
|
+
byPage: () => {
|
|
68
|
+
return this.listByConfigurationStorePagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
configStoreName,
|
|
71
|
+
options
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
private async *listByConfigurationStorePagingPage(
|
|
78
|
+
resourceGroupName: string,
|
|
79
|
+
configStoreName: string,
|
|
80
|
+
options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams
|
|
81
|
+
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
82
|
+
let result = await this._listByConfigurationStore(
|
|
83
|
+
resourceGroupName,
|
|
84
|
+
configStoreName,
|
|
85
|
+
options
|
|
86
|
+
);
|
|
87
|
+
yield result.value || [];
|
|
88
|
+
let continuationToken = result.nextLink;
|
|
89
|
+
while (continuationToken) {
|
|
90
|
+
result = await this._listByConfigurationStoreNext(
|
|
91
|
+
resourceGroupName,
|
|
92
|
+
configStoreName,
|
|
93
|
+
continuationToken,
|
|
94
|
+
options
|
|
95
|
+
);
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
yield result.value || [];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
private async *listByConfigurationStorePagingAll(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
configStoreName: string,
|
|
104
|
+
options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams
|
|
105
|
+
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
106
|
+
for await (const page of this.listByConfigurationStorePagingPage(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
configStoreName,
|
|
109
|
+
options
|
|
110
|
+
)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
38
115
|
/**
|
|
116
|
+
* Lists all private endpoint connections for a configuration store.
|
|
39
117
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
40
118
|
* @param configStoreName The name of the configuration store.
|
|
41
|
-
* @param
|
|
119
|
+
* @param options The options parameters.
|
|
42
120
|
*/
|
|
43
|
-
|
|
121
|
+
private _listByConfigurationStore(
|
|
122
|
+
resourceGroupName: string,
|
|
123
|
+
configStoreName: string,
|
|
124
|
+
options?: PrivateEndpointConnectionsListByConfigurationStoreOptionalParams
|
|
125
|
+
): Promise<PrivateEndpointConnectionsListByConfigurationStoreResponse> {
|
|
126
|
+
return this.client.sendOperationRequest(
|
|
127
|
+
{ resourceGroupName, configStoreName, options },
|
|
128
|
+
listByConfigurationStoreOperationSpec
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
|
|
44
132
|
/**
|
|
133
|
+
* Gets the specified private endpoint connection associated with the configuration store.
|
|
45
134
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
46
135
|
* @param configStoreName The name of the configuration store.
|
|
47
|
-
* @param
|
|
48
|
-
* @param
|
|
136
|
+
* @param privateEndpointConnectionName Private endpoint connection name
|
|
137
|
+
* @param options The options parameters.
|
|
49
138
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
139
|
+
get(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
configStoreName: string,
|
|
142
|
+
privateEndpointConnectionName: string,
|
|
143
|
+
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
144
|
+
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
52
145
|
return this.client.sendOperationRequest(
|
|
53
146
|
{
|
|
54
147
|
resourceGroupName,
|
|
55
148
|
configStoreName,
|
|
149
|
+
privateEndpointConnectionName,
|
|
56
150
|
options
|
|
57
151
|
},
|
|
58
|
-
|
|
59
|
-
|
|
152
|
+
getOperationSpec
|
|
153
|
+
);
|
|
60
154
|
}
|
|
61
155
|
|
|
62
156
|
/**
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* @param configStoreName The name of the configuration store.
|
|
66
|
-
* @param privateEndpointConnectionName Private endpoint connection name
|
|
67
|
-
* @param [options] The optional parameters
|
|
68
|
-
* @returns Promise<Models.PrivateEndpointConnectionsGetResponse>
|
|
69
|
-
*/
|
|
70
|
-
get(resourceGroupName: string, configStoreName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionsGetResponse>;
|
|
71
|
-
/**
|
|
72
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
73
|
-
* @param configStoreName The name of the configuration store.
|
|
74
|
-
* @param privateEndpointConnectionName Private endpoint connection name
|
|
75
|
-
* @param callback The callback
|
|
76
|
-
*/
|
|
77
|
-
get(resourceGroupName: string, configStoreName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnection>): void;
|
|
78
|
-
/**
|
|
157
|
+
* Update the state of the specified private endpoint connection associated with the configuration
|
|
158
|
+
* store.
|
|
79
159
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
80
160
|
* @param configStoreName The name of the configuration store.
|
|
81
161
|
* @param privateEndpointConnectionName Private endpoint connection name
|
|
82
|
-
* @param
|
|
83
|
-
* @param
|
|
162
|
+
* @param privateEndpointConnection The private endpoint connection properties.
|
|
163
|
+
* @param options The options parameters.
|
|
84
164
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
165
|
+
async beginCreateOrUpdate(
|
|
166
|
+
resourceGroupName: string,
|
|
167
|
+
configStoreName: string,
|
|
168
|
+
privateEndpointConnectionName: string,
|
|
169
|
+
privateEndpointConnection: PrivateEndpointConnection,
|
|
170
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
171
|
+
): Promise<
|
|
172
|
+
PollerLike<
|
|
173
|
+
PollOperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,
|
|
174
|
+
PrivateEndpointConnectionsCreateOrUpdateResponse
|
|
175
|
+
>
|
|
176
|
+
> {
|
|
177
|
+
const directSendOperation = async (
|
|
178
|
+
args: coreClient.OperationArguments,
|
|
179
|
+
spec: coreClient.OperationSpec
|
|
180
|
+
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {
|
|
181
|
+
return this.client.sendOperationRequest(args, spec);
|
|
182
|
+
};
|
|
183
|
+
const sendOperation = async (
|
|
184
|
+
args: coreClient.OperationArguments,
|
|
185
|
+
spec: coreClient.OperationSpec
|
|
186
|
+
) => {
|
|
187
|
+
let currentRawResponse:
|
|
188
|
+
| coreClient.FullOperationResponse
|
|
189
|
+
| undefined = undefined;
|
|
190
|
+
const providedCallback = args.options?.onResponse;
|
|
191
|
+
const callback: coreClient.RawResponseCallback = (
|
|
192
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
193
|
+
flatResponse: unknown
|
|
194
|
+
) => {
|
|
195
|
+
currentRawResponse = rawResponse;
|
|
196
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
197
|
+
};
|
|
198
|
+
const updatedArgs = {
|
|
199
|
+
...args,
|
|
200
|
+
options: {
|
|
201
|
+
...args.options,
|
|
202
|
+
onResponse: callback
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
206
|
+
return {
|
|
207
|
+
flatResponse,
|
|
208
|
+
rawResponse: {
|
|
209
|
+
statusCode: currentRawResponse!.status,
|
|
210
|
+
body: currentRawResponse!.parsedBody,
|
|
211
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
const lro = new LroImpl(
|
|
217
|
+
sendOperation,
|
|
88
218
|
{
|
|
89
219
|
resourceGroupName,
|
|
90
220
|
configStoreName,
|
|
91
221
|
privateEndpointConnectionName,
|
|
222
|
+
privateEndpointConnection,
|
|
92
223
|
options
|
|
93
224
|
},
|
|
94
|
-
|
|
95
|
-
|
|
225
|
+
createOrUpdateOperationSpec
|
|
226
|
+
);
|
|
227
|
+
return new LroEngine(lro, {
|
|
228
|
+
resumeFrom: options?.resumeFrom,
|
|
229
|
+
intervalInMs: options?.updateIntervalInMs
|
|
230
|
+
});
|
|
96
231
|
}
|
|
97
232
|
|
|
98
233
|
/**
|
|
@@ -102,12 +237,23 @@ export class PrivateEndpointConnections {
|
|
|
102
237
|
* @param configStoreName The name of the configuration store.
|
|
103
238
|
* @param privateEndpointConnectionName Private endpoint connection name
|
|
104
239
|
* @param privateEndpointConnection The private endpoint connection properties.
|
|
105
|
-
* @param
|
|
106
|
-
* @returns Promise<Models.PrivateEndpointConnectionsCreateOrUpdateResponse>
|
|
240
|
+
* @param options The options parameters.
|
|
107
241
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
242
|
+
async beginCreateOrUpdateAndWait(
|
|
243
|
+
resourceGroupName: string,
|
|
244
|
+
configStoreName: string,
|
|
245
|
+
privateEndpointConnectionName: string,
|
|
246
|
+
privateEndpointConnection: PrivateEndpointConnection,
|
|
247
|
+
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
248
|
+
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {
|
|
249
|
+
const poller = await this.beginCreateOrUpdate(
|
|
250
|
+
resourceGroupName,
|
|
251
|
+
configStoreName,
|
|
252
|
+
privateEndpointConnectionName,
|
|
253
|
+
privateEndpointConnection,
|
|
254
|
+
options
|
|
255
|
+
);
|
|
256
|
+
return poller.pollUntilDone();
|
|
111
257
|
}
|
|
112
258
|
|
|
113
259
|
/**
|
|
@@ -115,35 +261,67 @@ export class PrivateEndpointConnections {
|
|
|
115
261
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
116
262
|
* @param configStoreName The name of the configuration store.
|
|
117
263
|
* @param privateEndpointConnectionName Private endpoint connection name
|
|
118
|
-
* @param
|
|
119
|
-
* @returns Promise<msRest.RestResponse>
|
|
264
|
+
* @param options The options parameters.
|
|
120
265
|
*/
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
266
|
+
async beginDelete(
|
|
267
|
+
resourceGroupName: string,
|
|
268
|
+
configStoreName: string,
|
|
269
|
+
privateEndpointConnectionName: string,
|
|
270
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
271
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
272
|
+
const directSendOperation = async (
|
|
273
|
+
args: coreClient.OperationArguments,
|
|
274
|
+
spec: coreClient.OperationSpec
|
|
275
|
+
): Promise<void> => {
|
|
276
|
+
return this.client.sendOperationRequest(args, spec);
|
|
277
|
+
};
|
|
278
|
+
const sendOperation = async (
|
|
279
|
+
args: coreClient.OperationArguments,
|
|
280
|
+
spec: coreClient.OperationSpec
|
|
281
|
+
) => {
|
|
282
|
+
let currentRawResponse:
|
|
283
|
+
| coreClient.FullOperationResponse
|
|
284
|
+
| undefined = undefined;
|
|
285
|
+
const providedCallback = args.options?.onResponse;
|
|
286
|
+
const callback: coreClient.RawResponseCallback = (
|
|
287
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
288
|
+
flatResponse: unknown
|
|
289
|
+
) => {
|
|
290
|
+
currentRawResponse = rawResponse;
|
|
291
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
292
|
+
};
|
|
293
|
+
const updatedArgs = {
|
|
294
|
+
...args,
|
|
295
|
+
options: {
|
|
296
|
+
...args.options,
|
|
297
|
+
onResponse: callback
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
301
|
+
return {
|
|
302
|
+
flatResponse,
|
|
303
|
+
rawResponse: {
|
|
304
|
+
statusCode: currentRawResponse!.status,
|
|
305
|
+
body: currentRawResponse!.parsedBody,
|
|
306
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
};
|
|
125
310
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
* store.
|
|
129
|
-
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
130
|
-
* @param configStoreName The name of the configuration store.
|
|
131
|
-
* @param privateEndpointConnectionName Private endpoint connection name
|
|
132
|
-
* @param privateEndpointConnection The private endpoint connection properties.
|
|
133
|
-
* @param [options] The optional parameters
|
|
134
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
135
|
-
*/
|
|
136
|
-
beginCreateOrUpdate(resourceGroupName: string, configStoreName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
137
|
-
return this.client.sendLRORequest(
|
|
311
|
+
const lro = new LroImpl(
|
|
312
|
+
sendOperation,
|
|
138
313
|
{
|
|
139
314
|
resourceGroupName,
|
|
140
315
|
configStoreName,
|
|
141
316
|
privateEndpointConnectionName,
|
|
142
|
-
privateEndpointConnection,
|
|
143
317
|
options
|
|
144
318
|
},
|
|
145
|
-
|
|
146
|
-
|
|
319
|
+
deleteOperationSpec
|
|
320
|
+
);
|
|
321
|
+
return new LroEngine(lro, {
|
|
322
|
+
resumeFrom: options?.resumeFrom,
|
|
323
|
+
intervalInMs: options?.updateIntervalInMs
|
|
324
|
+
});
|
|
147
325
|
}
|
|
148
326
|
|
|
149
327
|
/**
|
|
@@ -151,125 +329,95 @@ export class PrivateEndpointConnections {
|
|
|
151
329
|
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
152
330
|
* @param configStoreName The name of the configuration store.
|
|
153
331
|
* @param privateEndpointConnectionName Private endpoint connection name
|
|
154
|
-
* @param
|
|
155
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
332
|
+
* @param options The options parameters.
|
|
156
333
|
*/
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
334
|
+
async beginDeleteAndWait(
|
|
335
|
+
resourceGroupName: string,
|
|
336
|
+
configStoreName: string,
|
|
337
|
+
privateEndpointConnectionName: string,
|
|
338
|
+
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
339
|
+
): Promise<void> {
|
|
340
|
+
const poller = await this.beginDelete(
|
|
341
|
+
resourceGroupName,
|
|
342
|
+
configStoreName,
|
|
343
|
+
privateEndpointConnectionName,
|
|
344
|
+
options
|
|
345
|
+
);
|
|
346
|
+
return poller.pollUntilDone();
|
|
167
347
|
}
|
|
168
348
|
|
|
169
349
|
/**
|
|
170
|
-
*
|
|
171
|
-
* @param
|
|
172
|
-
* @param
|
|
173
|
-
* @
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
178
|
-
* @param callback The callback
|
|
179
|
-
*/
|
|
180
|
-
listByConfigurationStoreNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.PrivateEndpointConnectionListResult>): void;
|
|
181
|
-
/**
|
|
182
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
183
|
-
* @param options The optional parameters
|
|
184
|
-
* @param callback The callback
|
|
350
|
+
* ListByConfigurationStoreNext
|
|
351
|
+
* @param resourceGroupName The name of the resource group to which the container registry belongs.
|
|
352
|
+
* @param configStoreName The name of the configuration store.
|
|
353
|
+
* @param nextLink The nextLink from the previous successful call to the ListByConfigurationStore
|
|
354
|
+
* method.
|
|
355
|
+
* @param options The options parameters.
|
|
185
356
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
357
|
+
private _listByConfigurationStoreNext(
|
|
358
|
+
resourceGroupName: string,
|
|
359
|
+
configStoreName: string,
|
|
360
|
+
nextLink: string,
|
|
361
|
+
options?: PrivateEndpointConnectionsListByConfigurationStoreNextOptionalParams
|
|
362
|
+
): Promise<PrivateEndpointConnectionsListByConfigurationStoreNextResponse> {
|
|
188
363
|
return this.client.sendOperationRequest(
|
|
189
|
-
{
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
},
|
|
193
|
-
listByConfigurationStoreNextOperationSpec,
|
|
194
|
-
callback) as Promise<Models.PrivateEndpointConnectionsListByConfigurationStoreNextResponse>;
|
|
364
|
+
{ resourceGroupName, configStoreName, nextLink, options },
|
|
365
|
+
listByConfigurationStoreNextOperationSpec
|
|
366
|
+
);
|
|
195
367
|
}
|
|
196
368
|
}
|
|
197
|
-
|
|
198
369
|
// Operation Specifications
|
|
199
|
-
const serializer =
|
|
200
|
-
|
|
370
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
371
|
+
|
|
372
|
+
const listByConfigurationStoreOperationSpec: coreClient.OperationSpec = {
|
|
373
|
+
path:
|
|
374
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections",
|
|
201
375
|
httpMethod: "GET",
|
|
202
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections",
|
|
203
|
-
urlParameters: [
|
|
204
|
-
Parameters.subscriptionId,
|
|
205
|
-
Parameters.resourceGroupName,
|
|
206
|
-
Parameters.configStoreName
|
|
207
|
-
],
|
|
208
|
-
queryParameters: [
|
|
209
|
-
Parameters.apiVersion
|
|
210
|
-
],
|
|
211
|
-
headerParameters: [
|
|
212
|
-
Parameters.acceptLanguage
|
|
213
|
-
],
|
|
214
376
|
responses: {
|
|
215
377
|
200: {
|
|
216
378
|
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
217
379
|
},
|
|
218
380
|
default: {
|
|
219
|
-
bodyMapper: Mappers.
|
|
381
|
+
bodyMapper: Mappers.ErrorResponse
|
|
220
382
|
}
|
|
221
383
|
},
|
|
222
|
-
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
226
|
-
httpMethod: "GET",
|
|
227
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
384
|
+
queryParameters: [Parameters.apiVersion],
|
|
228
385
|
urlParameters: [
|
|
386
|
+
Parameters.$host,
|
|
229
387
|
Parameters.subscriptionId,
|
|
230
388
|
Parameters.resourceGroupName,
|
|
231
|
-
Parameters.configStoreName
|
|
232
|
-
Parameters.privateEndpointConnectionName
|
|
233
|
-
],
|
|
234
|
-
queryParameters: [
|
|
235
|
-
Parameters.apiVersion
|
|
236
|
-
],
|
|
237
|
-
headerParameters: [
|
|
238
|
-
Parameters.acceptLanguage
|
|
389
|
+
Parameters.configStoreName
|
|
239
390
|
],
|
|
391
|
+
headerParameters: [Parameters.accept],
|
|
392
|
+
serializer
|
|
393
|
+
};
|
|
394
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
395
|
+
path:
|
|
396
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
397
|
+
httpMethod: "GET",
|
|
240
398
|
responses: {
|
|
241
399
|
200: {
|
|
242
400
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
243
401
|
},
|
|
244
402
|
default: {
|
|
245
|
-
bodyMapper: Mappers.
|
|
403
|
+
bodyMapper: Mappers.ErrorResponse
|
|
246
404
|
}
|
|
247
405
|
},
|
|
248
|
-
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
252
|
-
httpMethod: "PUT",
|
|
253
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
406
|
+
queryParameters: [Parameters.apiVersion],
|
|
254
407
|
urlParameters: [
|
|
408
|
+
Parameters.$host,
|
|
255
409
|
Parameters.subscriptionId,
|
|
256
410
|
Parameters.resourceGroupName,
|
|
257
411
|
Parameters.configStoreName,
|
|
258
412
|
Parameters.privateEndpointConnectionName
|
|
259
413
|
],
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
parameterPath: "privateEndpointConnection",
|
|
268
|
-
mapper: {
|
|
269
|
-
...Mappers.PrivateEndpointConnection,
|
|
270
|
-
required: true
|
|
271
|
-
}
|
|
272
|
-
},
|
|
414
|
+
headerParameters: [Parameters.accept],
|
|
415
|
+
serializer
|
|
416
|
+
};
|
|
417
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
418
|
+
path:
|
|
419
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
420
|
+
httpMethod: "PUT",
|
|
273
421
|
responses: {
|
|
274
422
|
200: {
|
|
275
423
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
@@ -277,56 +425,72 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
277
425
|
201: {
|
|
278
426
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
279
427
|
},
|
|
428
|
+
202: {
|
|
429
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
430
|
+
},
|
|
431
|
+
204: {
|
|
432
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
433
|
+
},
|
|
280
434
|
default: {
|
|
281
|
-
bodyMapper: Mappers.
|
|
435
|
+
bodyMapper: Mappers.ErrorResponse
|
|
282
436
|
}
|
|
283
437
|
},
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
288
|
-
httpMethod: "DELETE",
|
|
289
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
438
|
+
requestBody: Parameters.privateEndpointConnection,
|
|
439
|
+
queryParameters: [Parameters.apiVersion],
|
|
290
440
|
urlParameters: [
|
|
441
|
+
Parameters.$host,
|
|
291
442
|
Parameters.subscriptionId,
|
|
292
443
|
Parameters.resourceGroupName,
|
|
293
444
|
Parameters.configStoreName,
|
|
294
445
|
Parameters.privateEndpointConnectionName
|
|
295
446
|
],
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
447
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
448
|
+
mediaType: "json",
|
|
449
|
+
serializer
|
|
450
|
+
};
|
|
451
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
452
|
+
path:
|
|
453
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
454
|
+
httpMethod: "DELETE",
|
|
302
455
|
responses: {
|
|
303
456
|
200: {},
|
|
457
|
+
201: {},
|
|
304
458
|
202: {},
|
|
305
459
|
204: {},
|
|
306
460
|
default: {
|
|
307
|
-
bodyMapper: Mappers.
|
|
461
|
+
bodyMapper: Mappers.ErrorResponse
|
|
308
462
|
}
|
|
309
463
|
},
|
|
464
|
+
queryParameters: [Parameters.apiVersion],
|
|
465
|
+
urlParameters: [
|
|
466
|
+
Parameters.$host,
|
|
467
|
+
Parameters.subscriptionId,
|
|
468
|
+
Parameters.resourceGroupName,
|
|
469
|
+
Parameters.configStoreName,
|
|
470
|
+
Parameters.privateEndpointConnectionName
|
|
471
|
+
],
|
|
472
|
+
headerParameters: [Parameters.accept],
|
|
310
473
|
serializer
|
|
311
474
|
};
|
|
312
|
-
|
|
313
|
-
const listByConfigurationStoreNextOperationSpec: msRest.OperationSpec = {
|
|
314
|
-
httpMethod: "GET",
|
|
315
|
-
baseUrl: "https://management.azure.com",
|
|
475
|
+
const listByConfigurationStoreNextOperationSpec: coreClient.OperationSpec = {
|
|
316
476
|
path: "{nextLink}",
|
|
317
|
-
|
|
318
|
-
Parameters.nextPageLink
|
|
319
|
-
],
|
|
320
|
-
headerParameters: [
|
|
321
|
-
Parameters.acceptLanguage
|
|
322
|
-
],
|
|
477
|
+
httpMethod: "GET",
|
|
323
478
|
responses: {
|
|
324
479
|
200: {
|
|
325
480
|
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
326
481
|
},
|
|
327
482
|
default: {
|
|
328
|
-
bodyMapper: Mappers.
|
|
483
|
+
bodyMapper: Mappers.ErrorResponse
|
|
329
484
|
}
|
|
330
485
|
},
|
|
486
|
+
queryParameters: [Parameters.apiVersion],
|
|
487
|
+
urlParameters: [
|
|
488
|
+
Parameters.$host,
|
|
489
|
+
Parameters.subscriptionId,
|
|
490
|
+
Parameters.resourceGroupName,
|
|
491
|
+
Parameters.configStoreName,
|
|
492
|
+
Parameters.nextLink
|
|
493
|
+
],
|
|
494
|
+
headerParameters: [Parameters.accept],
|
|
331
495
|
serializer
|
|
332
496
|
};
|