@azure/arm-batch 9.1.1-alpha.20240313.1 → 9.2.0-alpha.20240315.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 +12 -10
- package/LICENSE +1 -1
- package/dist/index.js +1815 -1675
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationCreateSample.js +3 -3
- package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationListSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageActivateSample.js +2 -2
- package/dist-esm/samples-dev/applicationPackageActivateSample.js.map +1 -1
- package/dist-esm/samples-dev/applicationPackageCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageListSample.js +1 -1
- package/dist-esm/samples-dev/applicationUpdateSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountCreateSample.js +20 -20
- package/dist-esm/samples-dev/batchAccountCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountDeleteSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +3 -3
- package/dist-esm/samples-dev/batchAccountListSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +3 -3
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js.map +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +4 -4
- package/dist-esm/samples-dev/batchAccountUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +7 -7
- package/dist-esm/samples-dev/certificateCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateDeleteSample.js +1 -1
- package/dist-esm/samples-dev/certificateGetSample.js +2 -2
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +4 -4
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/certificateUpdateSample.js +3 -3
- package/dist-esm/samples-dev/certificateUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +5 -5
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolCreateSample.js +178 -118
- package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
- package/dist-esm/samples-dev/poolGetSample.js +25 -6
- package/dist-esm/samples-dev/poolGetSample.js.map +1 -1
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +3 -3
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +14 -14
- package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
- package/dist-esm/src/batchManagementClient.js +11 -10
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +46 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1367 -1231
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +87 -87
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/applicationOperations.js +30 -30
- package/dist-esm/src/operations/applicationOperations.js.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.js +31 -31
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.js +95 -95
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOperations.js +43 -43
- package/dist-esm/src/operations/certificateOperations.js.map +1 -1
- package/dist-esm/src/operations/location.js +34 -34
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/poolOperations.js +48 -48
- package/dist-esm/src/operations/poolOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +45 -45
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js +16 -16
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
- package/dist-esm/test/batch_examples.js +1 -1
- package/dist-esm/test/batch_examples.js.map +1 -1
- package/package.json +3 -4
- package/review/arm-batch.api.md +31 -0
- package/src/batchManagementClient.ts +22 -22
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +74 -14
- package/src/models/mappers.ts +1459 -1314
- package/src/models/parameters.ts +88 -88
- package/src/operations/applicationOperations.ts +54 -59
- package/src/operations/applicationPackageOperations.ts +59 -63
- package/src/operations/batchAccountOperations.ts +211 -223
- package/src/operations/certificateOperations.ts +80 -87
- package/src/operations/location.ts +96 -98
- package/src/operations/operations.ts +16 -16
- package/src/operations/poolOperations.ts +88 -96
- package/src/operations/privateEndpointConnectionOperations.ts +86 -91
- package/src/operations/privateLinkResourceOperations.ts +35 -36
- package/src/operationsInterfaces/applicationOperations.ts +6 -6
- package/src/operationsInterfaces/applicationPackageOperations.ts +6 -6
- package/src/operationsInterfaces/batchAccountOperations.ts +16 -16
- package/src/operationsInterfaces/certificateOperations.ts +8 -8
- package/src/operationsInterfaces/location.ts +5 -5
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/poolOperations.ts +9 -9
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +7 -7
- package/src/operationsInterfaces/privateLinkResourceOperations.ts +3 -3
- package/src/pagingHelper.ts +1 -1
- package/types/arm-batch.d.ts +51 -1
|
@@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -30,13 +30,14 @@ import {
|
|
|
30
30
|
PrivateEndpointConnectionUpdateResponse,
|
|
31
31
|
PrivateEndpointConnectionDeleteOptionalParams,
|
|
32
32
|
PrivateEndpointConnectionDeleteResponse,
|
|
33
|
-
PrivateEndpointConnectionListByBatchAccountNextResponse
|
|
33
|
+
PrivateEndpointConnectionListByBatchAccountNextResponse,
|
|
34
34
|
} from "../models";
|
|
35
35
|
|
|
36
36
|
/// <reference lib="esnext.asynciterable" />
|
|
37
37
|
/** Class containing PrivateEndpointConnectionOperations operations. */
|
|
38
38
|
export class PrivateEndpointConnectionOperationsImpl
|
|
39
|
-
implements PrivateEndpointConnectionOperations
|
|
39
|
+
implements PrivateEndpointConnectionOperations
|
|
40
|
+
{
|
|
40
41
|
private readonly client: BatchManagementClient;
|
|
41
42
|
|
|
42
43
|
/**
|
|
@@ -56,12 +57,12 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
56
57
|
public listByBatchAccount(
|
|
57
58
|
resourceGroupName: string,
|
|
58
59
|
accountName: string,
|
|
59
|
-
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
|
|
60
|
+
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,
|
|
60
61
|
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
61
62
|
const iter = this.listByBatchAccountPagingAll(
|
|
62
63
|
resourceGroupName,
|
|
63
64
|
accountName,
|
|
64
|
-
options
|
|
65
|
+
options,
|
|
65
66
|
);
|
|
66
67
|
return {
|
|
67
68
|
next() {
|
|
@@ -78,9 +79,9 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
78
79
|
resourceGroupName,
|
|
79
80
|
accountName,
|
|
80
81
|
options,
|
|
81
|
-
settings
|
|
82
|
+
settings,
|
|
82
83
|
);
|
|
83
|
-
}
|
|
84
|
+
},
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
87
|
|
|
@@ -88,7 +89,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
88
89
|
resourceGroupName: string,
|
|
89
90
|
accountName: string,
|
|
90
91
|
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,
|
|
91
|
-
settings?: PageSettings
|
|
92
|
+
settings?: PageSettings,
|
|
92
93
|
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
93
94
|
let result: PrivateEndpointConnectionListByBatchAccountResponse;
|
|
94
95
|
let continuationToken = settings?.continuationToken;
|
|
@@ -96,7 +97,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
96
97
|
result = await this._listByBatchAccount(
|
|
97
98
|
resourceGroupName,
|
|
98
99
|
accountName,
|
|
99
|
-
options
|
|
100
|
+
options,
|
|
100
101
|
);
|
|
101
102
|
let page = result.value || [];
|
|
102
103
|
continuationToken = result.nextLink;
|
|
@@ -108,7 +109,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
108
109
|
resourceGroupName,
|
|
109
110
|
accountName,
|
|
110
111
|
continuationToken,
|
|
111
|
-
options
|
|
112
|
+
options,
|
|
112
113
|
);
|
|
113
114
|
continuationToken = result.nextLink;
|
|
114
115
|
let page = result.value || [];
|
|
@@ -120,12 +121,12 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
120
121
|
private async *listByBatchAccountPagingAll(
|
|
121
122
|
resourceGroupName: string,
|
|
122
123
|
accountName: string,
|
|
123
|
-
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
|
|
124
|
+
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,
|
|
124
125
|
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
125
126
|
for await (const page of this.listByBatchAccountPagingPage(
|
|
126
127
|
resourceGroupName,
|
|
127
128
|
accountName,
|
|
128
|
-
options
|
|
129
|
+
options,
|
|
129
130
|
)) {
|
|
130
131
|
yield* page;
|
|
131
132
|
}
|
|
@@ -140,11 +141,11 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
140
141
|
private _listByBatchAccount(
|
|
141
142
|
resourceGroupName: string,
|
|
142
143
|
accountName: string,
|
|
143
|
-
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
|
|
144
|
+
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,
|
|
144
145
|
): Promise<PrivateEndpointConnectionListByBatchAccountResponse> {
|
|
145
146
|
return this.client.sendOperationRequest(
|
|
146
147
|
{ resourceGroupName, accountName, options },
|
|
147
|
-
listByBatchAccountOperationSpec
|
|
148
|
+
listByBatchAccountOperationSpec,
|
|
148
149
|
);
|
|
149
150
|
}
|
|
150
151
|
|
|
@@ -160,16 +161,16 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
160
161
|
resourceGroupName: string,
|
|
161
162
|
accountName: string,
|
|
162
163
|
privateEndpointConnectionName: string,
|
|
163
|
-
options?: PrivateEndpointConnectionGetOptionalParams
|
|
164
|
+
options?: PrivateEndpointConnectionGetOptionalParams,
|
|
164
165
|
): Promise<PrivateEndpointConnectionGetResponse> {
|
|
165
166
|
return this.client.sendOperationRequest(
|
|
166
167
|
{
|
|
167
168
|
resourceGroupName,
|
|
168
169
|
accountName,
|
|
169
170
|
privateEndpointConnectionName,
|
|
170
|
-
options
|
|
171
|
+
options,
|
|
171
172
|
},
|
|
172
|
-
getOperationSpec
|
|
173
|
+
getOperationSpec,
|
|
173
174
|
);
|
|
174
175
|
}
|
|
175
176
|
|
|
@@ -188,7 +189,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
188
189
|
accountName: string,
|
|
189
190
|
privateEndpointConnectionName: string,
|
|
190
191
|
parameters: PrivateEndpointConnection,
|
|
191
|
-
options?: PrivateEndpointConnectionUpdateOptionalParams
|
|
192
|
+
options?: PrivateEndpointConnectionUpdateOptionalParams,
|
|
192
193
|
): Promise<
|
|
193
194
|
SimplePollerLike<
|
|
194
195
|
OperationState<PrivateEndpointConnectionUpdateResponse>,
|
|
@@ -197,21 +198,20 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
197
198
|
> {
|
|
198
199
|
const directSendOperation = async (
|
|
199
200
|
args: coreClient.OperationArguments,
|
|
200
|
-
spec: coreClient.OperationSpec
|
|
201
|
+
spec: coreClient.OperationSpec,
|
|
201
202
|
): Promise<PrivateEndpointConnectionUpdateResponse> => {
|
|
202
203
|
return this.client.sendOperationRequest(args, spec);
|
|
203
204
|
};
|
|
204
205
|
const sendOperationFn = async (
|
|
205
206
|
args: coreClient.OperationArguments,
|
|
206
|
-
spec: coreClient.OperationSpec
|
|
207
|
+
spec: coreClient.OperationSpec,
|
|
207
208
|
) => {
|
|
208
|
-
let currentRawResponse:
|
|
209
|
-
|
|
210
|
-
| undefined = undefined;
|
|
209
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
210
|
+
undefined;
|
|
211
211
|
const providedCallback = args.options?.onResponse;
|
|
212
212
|
const callback: coreClient.RawResponseCallback = (
|
|
213
213
|
rawResponse: coreClient.FullOperationResponse,
|
|
214
|
-
flatResponse: unknown
|
|
214
|
+
flatResponse: unknown,
|
|
215
215
|
) => {
|
|
216
216
|
currentRawResponse = rawResponse;
|
|
217
217
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -220,8 +220,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
220
220
|
...args,
|
|
221
221
|
options: {
|
|
222
222
|
...args.options,
|
|
223
|
-
onResponse: callback
|
|
224
|
-
}
|
|
223
|
+
onResponse: callback,
|
|
224
|
+
},
|
|
225
225
|
};
|
|
226
226
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
227
227
|
return {
|
|
@@ -229,8 +229,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
229
229
|
rawResponse: {
|
|
230
230
|
statusCode: currentRawResponse!.status,
|
|
231
231
|
body: currentRawResponse!.parsedBody,
|
|
232
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
233
|
-
}
|
|
232
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
233
|
+
},
|
|
234
234
|
};
|
|
235
235
|
};
|
|
236
236
|
|
|
@@ -241,9 +241,9 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
241
241
|
accountName,
|
|
242
242
|
privateEndpointConnectionName,
|
|
243
243
|
parameters,
|
|
244
|
-
options
|
|
244
|
+
options,
|
|
245
245
|
},
|
|
246
|
-
spec: updateOperationSpec
|
|
246
|
+
spec: updateOperationSpec,
|
|
247
247
|
});
|
|
248
248
|
const poller = await createHttpPoller<
|
|
249
249
|
PrivateEndpointConnectionUpdateResponse,
|
|
@@ -251,7 +251,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
251
251
|
>(lro, {
|
|
252
252
|
restoreFrom: options?.resumeFrom,
|
|
253
253
|
intervalInMs: options?.updateIntervalInMs,
|
|
254
|
-
resourceLocationConfig: "azure-async-operation"
|
|
254
|
+
resourceLocationConfig: "azure-async-operation",
|
|
255
255
|
});
|
|
256
256
|
await poller.poll();
|
|
257
257
|
return poller;
|
|
@@ -272,14 +272,14 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
272
272
|
accountName: string,
|
|
273
273
|
privateEndpointConnectionName: string,
|
|
274
274
|
parameters: PrivateEndpointConnection,
|
|
275
|
-
options?: PrivateEndpointConnectionUpdateOptionalParams
|
|
275
|
+
options?: PrivateEndpointConnectionUpdateOptionalParams,
|
|
276
276
|
): Promise<PrivateEndpointConnectionUpdateResponse> {
|
|
277
277
|
const poller = await this.beginUpdate(
|
|
278
278
|
resourceGroupName,
|
|
279
279
|
accountName,
|
|
280
280
|
privateEndpointConnectionName,
|
|
281
281
|
parameters,
|
|
282
|
-
options
|
|
282
|
+
options,
|
|
283
283
|
);
|
|
284
284
|
return poller.pollUntilDone();
|
|
285
285
|
}
|
|
@@ -296,7 +296,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
296
296
|
resourceGroupName: string,
|
|
297
297
|
accountName: string,
|
|
298
298
|
privateEndpointConnectionName: string,
|
|
299
|
-
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
299
|
+
options?: PrivateEndpointConnectionDeleteOptionalParams,
|
|
300
300
|
): Promise<
|
|
301
301
|
SimplePollerLike<
|
|
302
302
|
OperationState<PrivateEndpointConnectionDeleteResponse>,
|
|
@@ -305,21 +305,20 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
305
305
|
> {
|
|
306
306
|
const directSendOperation = async (
|
|
307
307
|
args: coreClient.OperationArguments,
|
|
308
|
-
spec: coreClient.OperationSpec
|
|
308
|
+
spec: coreClient.OperationSpec,
|
|
309
309
|
): Promise<PrivateEndpointConnectionDeleteResponse> => {
|
|
310
310
|
return this.client.sendOperationRequest(args, spec);
|
|
311
311
|
};
|
|
312
312
|
const sendOperationFn = async (
|
|
313
313
|
args: coreClient.OperationArguments,
|
|
314
|
-
spec: coreClient.OperationSpec
|
|
314
|
+
spec: coreClient.OperationSpec,
|
|
315
315
|
) => {
|
|
316
|
-
let currentRawResponse:
|
|
317
|
-
|
|
318
|
-
| undefined = undefined;
|
|
316
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
317
|
+
undefined;
|
|
319
318
|
const providedCallback = args.options?.onResponse;
|
|
320
319
|
const callback: coreClient.RawResponseCallback = (
|
|
321
320
|
rawResponse: coreClient.FullOperationResponse,
|
|
322
|
-
flatResponse: unknown
|
|
321
|
+
flatResponse: unknown,
|
|
323
322
|
) => {
|
|
324
323
|
currentRawResponse = rawResponse;
|
|
325
324
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -328,8 +327,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
328
327
|
...args,
|
|
329
328
|
options: {
|
|
330
329
|
...args.options,
|
|
331
|
-
onResponse: callback
|
|
332
|
-
}
|
|
330
|
+
onResponse: callback,
|
|
331
|
+
},
|
|
333
332
|
};
|
|
334
333
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
335
334
|
return {
|
|
@@ -337,8 +336,8 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
337
336
|
rawResponse: {
|
|
338
337
|
statusCode: currentRawResponse!.status,
|
|
339
338
|
body: currentRawResponse!.parsedBody,
|
|
340
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
341
|
-
}
|
|
339
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
340
|
+
},
|
|
342
341
|
};
|
|
343
342
|
};
|
|
344
343
|
|
|
@@ -348,9 +347,9 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
348
347
|
resourceGroupName,
|
|
349
348
|
accountName,
|
|
350
349
|
privateEndpointConnectionName,
|
|
351
|
-
options
|
|
350
|
+
options,
|
|
352
351
|
},
|
|
353
|
-
spec: deleteOperationSpec
|
|
352
|
+
spec: deleteOperationSpec,
|
|
354
353
|
});
|
|
355
354
|
const poller = await createHttpPoller<
|
|
356
355
|
PrivateEndpointConnectionDeleteResponse,
|
|
@@ -358,7 +357,7 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
358
357
|
>(lro, {
|
|
359
358
|
restoreFrom: options?.resumeFrom,
|
|
360
359
|
intervalInMs: options?.updateIntervalInMs,
|
|
361
|
-
resourceLocationConfig: "azure-async-operation"
|
|
360
|
+
resourceLocationConfig: "azure-async-operation",
|
|
362
361
|
});
|
|
363
362
|
await poller.poll();
|
|
364
363
|
return poller;
|
|
@@ -376,13 +375,13 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
376
375
|
resourceGroupName: string,
|
|
377
376
|
accountName: string,
|
|
378
377
|
privateEndpointConnectionName: string,
|
|
379
|
-
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
378
|
+
options?: PrivateEndpointConnectionDeleteOptionalParams,
|
|
380
379
|
): Promise<PrivateEndpointConnectionDeleteResponse> {
|
|
381
380
|
const poller = await this.beginDelete(
|
|
382
381
|
resourceGroupName,
|
|
383
382
|
accountName,
|
|
384
383
|
privateEndpointConnectionName,
|
|
385
|
-
options
|
|
384
|
+
options,
|
|
386
385
|
);
|
|
387
386
|
return poller.pollUntilDone();
|
|
388
387
|
}
|
|
@@ -398,11 +397,11 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
398
397
|
resourceGroupName: string,
|
|
399
398
|
accountName: string,
|
|
400
399
|
nextLink: string,
|
|
401
|
-
options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams
|
|
400
|
+
options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams,
|
|
402
401
|
): Promise<PrivateEndpointConnectionListByBatchAccountNextResponse> {
|
|
403
402
|
return this.client.sendOperationRequest(
|
|
404
403
|
{ resourceGroupName, accountName, nextLink, options },
|
|
405
|
-
listByBatchAccountNextOperationSpec
|
|
404
|
+
listByBatchAccountNextOperationSpec,
|
|
406
405
|
);
|
|
407
406
|
}
|
|
408
407
|
}
|
|
@@ -410,38 +409,36 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
410
409
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
411
410
|
|
|
412
411
|
const listByBatchAccountOperationSpec: coreClient.OperationSpec = {
|
|
413
|
-
path:
|
|
414
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections",
|
|
412
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections",
|
|
415
413
|
httpMethod: "GET",
|
|
416
414
|
responses: {
|
|
417
415
|
200: {
|
|
418
|
-
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult
|
|
416
|
+
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult,
|
|
419
417
|
},
|
|
420
418
|
default: {
|
|
421
|
-
bodyMapper: Mappers.CloudError
|
|
422
|
-
}
|
|
419
|
+
bodyMapper: Mappers.CloudError,
|
|
420
|
+
},
|
|
423
421
|
},
|
|
424
422
|
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
425
423
|
urlParameters: [
|
|
426
424
|
Parameters.$host,
|
|
427
425
|
Parameters.resourceGroupName,
|
|
428
426
|
Parameters.subscriptionId,
|
|
429
|
-
Parameters.accountName1
|
|
427
|
+
Parameters.accountName1,
|
|
430
428
|
],
|
|
431
429
|
headerParameters: [Parameters.accept],
|
|
432
|
-
serializer
|
|
430
|
+
serializer,
|
|
433
431
|
};
|
|
434
432
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
435
|
-
path:
|
|
436
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
433
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
437
434
|
httpMethod: "GET",
|
|
438
435
|
responses: {
|
|
439
436
|
200: {
|
|
440
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
437
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
441
438
|
},
|
|
442
439
|
default: {
|
|
443
|
-
bodyMapper: Mappers.CloudError
|
|
444
|
-
}
|
|
440
|
+
bodyMapper: Mappers.CloudError,
|
|
441
|
+
},
|
|
445
442
|
},
|
|
446
443
|
queryParameters: [Parameters.apiVersion],
|
|
447
444
|
urlParameters: [
|
|
@@ -449,31 +446,30 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
449
446
|
Parameters.resourceGroupName,
|
|
450
447
|
Parameters.subscriptionId,
|
|
451
448
|
Parameters.accountName1,
|
|
452
|
-
Parameters.privateEndpointConnectionName
|
|
449
|
+
Parameters.privateEndpointConnectionName,
|
|
453
450
|
],
|
|
454
451
|
headerParameters: [Parameters.accept],
|
|
455
|
-
serializer
|
|
452
|
+
serializer,
|
|
456
453
|
};
|
|
457
454
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
458
|
-
path:
|
|
459
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
455
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
460
456
|
httpMethod: "PATCH",
|
|
461
457
|
responses: {
|
|
462
458
|
200: {
|
|
463
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
459
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
464
460
|
},
|
|
465
461
|
201: {
|
|
466
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
462
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
467
463
|
},
|
|
468
464
|
202: {
|
|
469
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
465
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
470
466
|
},
|
|
471
467
|
204: {
|
|
472
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
468
|
+
bodyMapper: Mappers.PrivateEndpointConnection,
|
|
473
469
|
},
|
|
474
470
|
default: {
|
|
475
|
-
bodyMapper: Mappers.CloudError
|
|
476
|
-
}
|
|
471
|
+
bodyMapper: Mappers.CloudError,
|
|
472
|
+
},
|
|
477
473
|
},
|
|
478
474
|
requestBody: Parameters.parameters9,
|
|
479
475
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -482,36 +478,35 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
482
478
|
Parameters.resourceGroupName,
|
|
483
479
|
Parameters.subscriptionId,
|
|
484
480
|
Parameters.accountName1,
|
|
485
|
-
Parameters.privateEndpointConnectionName
|
|
481
|
+
Parameters.privateEndpointConnectionName,
|
|
486
482
|
],
|
|
487
483
|
headerParameters: [
|
|
488
484
|
Parameters.contentType,
|
|
489
485
|
Parameters.accept,
|
|
490
|
-
Parameters.ifMatch
|
|
486
|
+
Parameters.ifMatch,
|
|
491
487
|
],
|
|
492
488
|
mediaType: "json",
|
|
493
|
-
serializer
|
|
489
|
+
serializer,
|
|
494
490
|
};
|
|
495
491
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
496
|
-
path:
|
|
497
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
492
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
498
493
|
httpMethod: "DELETE",
|
|
499
494
|
responses: {
|
|
500
495
|
200: {
|
|
501
|
-
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
496
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,
|
|
502
497
|
},
|
|
503
498
|
201: {
|
|
504
|
-
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
499
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,
|
|
505
500
|
},
|
|
506
501
|
202: {
|
|
507
|
-
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
502
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,
|
|
508
503
|
},
|
|
509
504
|
204: {
|
|
510
|
-
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
505
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders,
|
|
511
506
|
},
|
|
512
507
|
default: {
|
|
513
|
-
bodyMapper: Mappers.CloudError
|
|
514
|
-
}
|
|
508
|
+
bodyMapper: Mappers.CloudError,
|
|
509
|
+
},
|
|
515
510
|
},
|
|
516
511
|
queryParameters: [Parameters.apiVersion],
|
|
517
512
|
urlParameters: [
|
|
@@ -519,29 +514,29 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
519
514
|
Parameters.resourceGroupName,
|
|
520
515
|
Parameters.subscriptionId,
|
|
521
516
|
Parameters.accountName1,
|
|
522
|
-
Parameters.privateEndpointConnectionName
|
|
517
|
+
Parameters.privateEndpointConnectionName,
|
|
523
518
|
],
|
|
524
519
|
headerParameters: [Parameters.accept],
|
|
525
|
-
serializer
|
|
520
|
+
serializer,
|
|
526
521
|
};
|
|
527
522
|
const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
528
523
|
path: "{nextLink}",
|
|
529
524
|
httpMethod: "GET",
|
|
530
525
|
responses: {
|
|
531
526
|
200: {
|
|
532
|
-
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult
|
|
527
|
+
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult,
|
|
533
528
|
},
|
|
534
529
|
default: {
|
|
535
|
-
bodyMapper: Mappers.CloudError
|
|
536
|
-
}
|
|
530
|
+
bodyMapper: Mappers.CloudError,
|
|
531
|
+
},
|
|
537
532
|
},
|
|
538
533
|
urlParameters: [
|
|
539
534
|
Parameters.$host,
|
|
540
535
|
Parameters.resourceGroupName,
|
|
541
536
|
Parameters.subscriptionId,
|
|
542
537
|
Parameters.accountName1,
|
|
543
|
-
Parameters.nextLink
|
|
538
|
+
Parameters.nextLink,
|
|
544
539
|
],
|
|
545
540
|
headerParameters: [Parameters.accept],
|
|
546
|
-
serializer
|
|
541
|
+
serializer,
|
|
547
542
|
};
|