@azure/arm-batch 6.0.0 → 7.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 +14 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -82
- package/dist/index.js +6873 -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/batchManagementClient.d.ts +24 -0
- package/dist-esm/src/batchManagementClient.d.ts.map +1 -0
- package/dist-esm/src/batchManagementClient.js +31 -0
- package/dist-esm/src/batchManagementClient.js.map +1 -0
- package/dist-esm/src/batchManagementClientContext.d.ts +17 -0
- package/dist-esm/src/batchManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/batchManagementClientContext.js +50 -0
- package/dist-esm/src/batchManagementClientContext.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -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 +1780 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/index.js +1 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +112 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1723 -1885
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +34 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +303 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/applicationOperations.d.ts +71 -0
- package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/applicationOperations.js +269 -0
- package/dist-esm/src/operations/applicationOperations.js.map +1 -0
- package/dist-esm/src/operations/applicationPackageOperations.d.ts +83 -0
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/applicationPackageOperations.js +294 -0
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -0
- package/dist-esm/src/operations/batchAccountOperations.d.ts +171 -0
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/batchAccountOperations.js +681 -0
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -0
- package/dist-esm/src/operations/certificateOperations.d.ts +106 -0
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/certificateOperations.js +388 -0
- package/dist-esm/src/operations/certificateOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/location.d.ts +71 -0
- package/dist-esm/src/operations/location.d.ts.map +1 -0
- package/dist-esm/src/operations/location.js +316 -0
- package/dist-esm/src/operations/location.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/poolOperations.d.ts +103 -0
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/poolOperations.js +410 -0
- package/dist-esm/src/operations/poolOperations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +70 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +278 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +47 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.js +170 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/applicationOperations.js} +2 -7
- package/dist-esm/src/operationsInterfaces/applicationOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/applicationPackageOperations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +112 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -0
- package/{src/models/locationMappers.ts → dist-esm/src/operationsInterfaces/batchAccountOperations.js} +2 -10
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +17 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts +31 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.js +9 -0
- package/dist-esm/src/operationsInterfaces/location.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/poolOperations.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +4 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +479 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +66 -32
- package/review/arm-batch.api.md +1459 -0
- package/rollup.config.js +181 -30
- package/src/batchManagementClient.ts +59 -48
- package/src/batchManagementClientContext.ts +46 -43
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1460 -3635
- package/src/models/mappers.ts +1705 -1851
- package/src/models/parameters.ts +216 -117
- package/src/operations/applicationOperations.ts +215 -263
- package/src/operations/applicationPackageOperations.ts +252 -279
- package/src/operations/batchAccountOperations.ts +660 -572
- package/src/operations/certificateOperations.ts +360 -359
- package/src/operations/index.ts +1 -2
- package/src/operations/location.ts +285 -234
- package/src/operations/operations.ts +82 -70
- package/src/operations/poolOperations.ts +373 -378
- package/src/operations/privateEndpointConnectionOperations.ts +269 -169
- package/src/operations/privateLinkResourceOperations.ts +156 -126
- package/src/operationsInterfaces/applicationOperations.ts +90 -0
- package/src/operationsInterfaces/applicationPackageOperations.ts +106 -0
- package/src/operationsInterfaces/batchAccountOperations.ts +196 -0
- package/src/operationsInterfaces/certificateOperations.ts +139 -0
- package/src/operationsInterfaces/index.ts +17 -0
- package/src/operationsInterfaces/location.ts +62 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/poolOperations.ts +142 -0
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +87 -0
- package/src/operationsInterfaces/privateLinkResourceOperations.ts +45 -0
- package/tsconfig.json +3 -3
- package/types/arm-batch.d.ts +2528 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-batch.js +0 -6972
- package/dist/arm-batch.js.map +0 -1
- package/dist/arm-batch.min.js +0 -1
- package/dist/arm-batch.min.js.map +0 -1
- package/esm/batchManagementClient.d.ts +0 -33
- package/esm/batchManagementClient.d.ts.map +0 -1
- package/esm/batchManagementClient.js +0 -46
- package/esm/batchManagementClient.js.map +0 -1
- package/esm/batchManagementClientContext.d.ts +0 -23
- package/esm/batchManagementClientContext.d.ts.map +0 -1
- package/esm/batchManagementClientContext.js +0 -61
- package/esm/batchManagementClientContext.js.map +0 -1
- package/esm/models/applicationOperationsMappers.d.ts +0 -2
- package/esm/models/applicationOperationsMappers.d.ts.map +0 -1
- package/esm/models/applicationOperationsMappers.js +0 -9
- package/esm/models/applicationOperationsMappers.js.map +0 -1
- package/esm/models/applicationPackageOperationsMappers.d.ts +0 -2
- package/esm/models/applicationPackageOperationsMappers.d.ts.map +0 -1
- package/esm/models/applicationPackageOperationsMappers.js +0 -9
- package/esm/models/applicationPackageOperationsMappers.js.map +0 -1
- package/esm/models/batchAccountOperationsMappers.d.ts +0 -2
- package/esm/models/batchAccountOperationsMappers.d.ts.map +0 -1
- package/esm/models/batchAccountOperationsMappers.js +0 -9
- package/esm/models/batchAccountOperationsMappers.js.map +0 -1
- package/esm/models/certificateOperationsMappers.d.ts +0 -2
- package/esm/models/certificateOperationsMappers.d.ts.map +0 -1
- package/esm/models/certificateOperationsMappers.js +0 -9
- package/esm/models/certificateOperationsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3946
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationMappers.d.ts +0 -2
- package/esm/models/locationMappers.d.ts.map +0 -1
- package/esm/models/locationMappers.js +0 -9
- package/esm/models/locationMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -110
- 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.map +0 -1
- package/esm/models/parameters.d.ts +0 -21
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -250
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/poolOperationsMappers.d.ts +0 -2
- package/esm/models/poolOperationsMappers.d.ts.map +0 -1
- package/esm/models/poolOperationsMappers.js +0 -9
- package/esm/models/poolOperationsMappers.js.map +0 -1
- package/esm/models/privateEndpointConnectionOperationsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionOperationsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionOperationsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionOperationsMappers.js.map +0 -1
- package/esm/models/privateLinkResourceOperationsMappers.d.ts +0 -2
- package/esm/models/privateLinkResourceOperationsMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourceOperationsMappers.js +0 -9
- package/esm/models/privateLinkResourceOperationsMappers.js.map +0 -1
- package/esm/operations/applicationOperations.d.ts +0 -151
- package/esm/operations/applicationOperations.d.ts.map +0 -1
- package/esm/operations/applicationOperations.js +0 -232
- package/esm/operations/applicationOperations.js.map +0 -1
- package/esm/operations/applicationPackageOperations.d.ts +0 -171
- package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
- package/esm/operations/applicationPackageOperations.js +0 -244
- package/esm/operations/applicationPackageOperations.js.map +0 -1
- package/esm/operations/batchAccountOperations.d.ts +0 -299
- package/esm/operations/batchAccountOperations.d.ts.map +0 -1
- package/esm/operations/batchAccountOperations.js +0 -493
- package/esm/operations/batchAccountOperations.js.map +0 -1
- package/esm/operations/certificateOperations.d.ts +0 -207
- package/esm/operations/certificateOperations.d.ts.map +0 -1
- package/esm/operations/certificateOperations.js +0 -310
- package/esm/operations/certificateOperations.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/location.d.ts +0 -124
- package/esm/operations/location.d.ts.map +0 -1
- package/esm/operations/location.js +0 -216
- package/esm/operations/location.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/poolOperations.d.ts +0 -206
- package/esm/operations/poolOperations.d.ts.map +0 -1
- package/esm/operations/poolOperations.js +0 -341
- package/esm/operations/poolOperations.js.map +0 -1
- package/esm/operations/privateEndpointConnectionOperations.d.ts +0 -104
- package/esm/operations/privateEndpointConnectionOperations.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnectionOperations.js +0 -195
- package/esm/operations/privateEndpointConnectionOperations.js.map +0 -1
- package/esm/operations/privateLinkResourceOperations.d.ts +0 -79
- package/esm/operations/privateLinkResourceOperations.d.ts.map +0 -1
- package/esm/operations/privateLinkResourceOperations.js +0 -121
- package/esm/operations/privateLinkResourceOperations.js.map +0 -1
- package/src/models/applicationOperationsMappers.ts +0 -79
- package/src/models/applicationPackageOperationsMappers.ts +0 -80
- package/src/models/batchAccountOperationsMappers.ts +0 -89
- package/src/models/certificateOperationsMappers.ts +0 -84
- package/src/models/poolOperationsMappers.ts +0 -85
- package/src/models/privateEndpointConnectionOperationsMappers.ts +0 -80
- package/src/models/privateLinkResourceOperationsMappers.ts +0 -79
|
@@ -3,24 +3,38 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PrivateEndpointConnectionOperations } 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
14
|
import { BatchManagementClientContext } from "../batchManagementClientContext";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
PrivateEndpointConnection,
|
|
19
|
+
PrivateEndpointConnectionListByBatchAccountNextOptionalParams,
|
|
20
|
+
PrivateEndpointConnectionListByBatchAccountOptionalParams,
|
|
21
|
+
PrivateEndpointConnectionListByBatchAccountResponse,
|
|
22
|
+
PrivateEndpointConnectionGetOptionalParams,
|
|
23
|
+
PrivateEndpointConnectionGetResponse,
|
|
24
|
+
PrivateEndpointConnectionUpdateOptionalParams,
|
|
25
|
+
PrivateEndpointConnectionUpdateResponse,
|
|
26
|
+
PrivateEndpointConnectionListByBatchAccountNextResponse
|
|
27
|
+
} from "../models";
|
|
16
28
|
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
/// <reference lib="esnext.asynciterable" />
|
|
30
|
+
/** Class containing PrivateEndpointConnectionOperations operations. */
|
|
31
|
+
export class PrivateEndpointConnectionOperationsImpl
|
|
32
|
+
implements PrivateEndpointConnectionOperations {
|
|
19
33
|
private readonly client: BatchManagementClientContext;
|
|
20
34
|
|
|
21
35
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
36
|
+
* Initialize a new instance of the class PrivateEndpointConnectionOperations class.
|
|
37
|
+
* @param client Reference to the service client
|
|
24
38
|
*/
|
|
25
39
|
constructor(client: BatchManagementClientContext) {
|
|
26
40
|
this.client = client;
|
|
@@ -30,62 +44,104 @@ export class PrivateEndpointConnectionOperations {
|
|
|
30
44
|
* Lists all of the private endpoint connections in the specified account.
|
|
31
45
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
32
46
|
* @param accountName The name of the Batch account.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.PrivateEndpointConnectionListByBatchAccountResponse>
|
|
47
|
+
* @param options The options parameters.
|
|
35
48
|
*/
|
|
36
|
-
listByBatchAccount(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
public listByBatchAccount(
|
|
50
|
+
resourceGroupName: string,
|
|
51
|
+
accountName: string,
|
|
52
|
+
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
|
|
53
|
+
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
54
|
+
const iter = this.listByBatchAccountPagingAll(
|
|
55
|
+
resourceGroupName,
|
|
56
|
+
accountName,
|
|
57
|
+
options
|
|
58
|
+
);
|
|
59
|
+
return {
|
|
60
|
+
next() {
|
|
61
|
+
return iter.next();
|
|
62
|
+
},
|
|
63
|
+
[Symbol.asyncIterator]() {
|
|
64
|
+
return this;
|
|
65
|
+
},
|
|
66
|
+
byPage: () => {
|
|
67
|
+
return this.listByBatchAccountPagingPage(
|
|
68
|
+
resourceGroupName,
|
|
69
|
+
accountName,
|
|
70
|
+
options
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private async *listByBatchAccountPagingPage(
|
|
77
|
+
resourceGroupName: string,
|
|
78
|
+
accountName: string,
|
|
79
|
+
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
|
|
80
|
+
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
81
|
+
let result = await this._listByBatchAccount(
|
|
82
|
+
resourceGroupName,
|
|
83
|
+
accountName,
|
|
84
|
+
options
|
|
85
|
+
);
|
|
86
|
+
yield result.value || [];
|
|
87
|
+
let continuationToken = result.nextLink;
|
|
88
|
+
while (continuationToken) {
|
|
89
|
+
result = await this._listByBatchAccountNext(
|
|
53
90
|
resourceGroupName,
|
|
54
91
|
accountName,
|
|
92
|
+
continuationToken,
|
|
55
93
|
options
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
94
|
+
);
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
yield result.value || [];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
private async *listByBatchAccountPagingAll(
|
|
101
|
+
resourceGroupName: string,
|
|
102
|
+
accountName: string,
|
|
103
|
+
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
|
|
104
|
+
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
105
|
+
for await (const page of this.listByBatchAccountPagingPage(
|
|
106
|
+
resourceGroupName,
|
|
107
|
+
accountName,
|
|
108
|
+
options
|
|
109
|
+
)) {
|
|
110
|
+
yield* page;
|
|
111
|
+
}
|
|
59
112
|
}
|
|
60
113
|
|
|
61
114
|
/**
|
|
62
|
-
*
|
|
63
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
64
|
-
* @param accountName The name of the Batch account.
|
|
65
|
-
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
66
|
-
* within the account.
|
|
67
|
-
* @param [options] The optional parameters
|
|
68
|
-
* @returns Promise<Models.PrivateEndpointConnectionGetResponse>
|
|
69
|
-
*/
|
|
70
|
-
get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionGetResponse>;
|
|
71
|
-
/**
|
|
115
|
+
* Lists all of the private endpoint connections in the specified account.
|
|
72
116
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
73
117
|
* @param accountName The name of the Batch account.
|
|
74
|
-
* @param
|
|
75
|
-
* within the account.
|
|
76
|
-
* @param callback The callback
|
|
118
|
+
* @param options The options parameters.
|
|
77
119
|
*/
|
|
78
|
-
|
|
120
|
+
private _listByBatchAccount(
|
|
121
|
+
resourceGroupName: string,
|
|
122
|
+
accountName: string,
|
|
123
|
+
options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
|
|
124
|
+
): Promise<PrivateEndpointConnectionListByBatchAccountResponse> {
|
|
125
|
+
return this.client.sendOperationRequest(
|
|
126
|
+
{ resourceGroupName, accountName, options },
|
|
127
|
+
listByBatchAccountOperationSpec
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
|
|
79
131
|
/**
|
|
132
|
+
* Gets information about the specified private endpoint connection.
|
|
80
133
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
81
134
|
* @param accountName The name of the Batch account.
|
|
82
135
|
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
83
|
-
*
|
|
84
|
-
* @param options The
|
|
85
|
-
* @param callback The callback
|
|
136
|
+
* within the account.
|
|
137
|
+
* @param options The options parameters.
|
|
86
138
|
*/
|
|
87
|
-
get(
|
|
88
|
-
|
|
139
|
+
get(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
accountName: string,
|
|
142
|
+
privateEndpointConnectionName: string,
|
|
143
|
+
options?: PrivateEndpointConnectionGetOptionalParams
|
|
144
|
+
): Promise<PrivateEndpointConnectionGetResponse> {
|
|
89
145
|
return this.client.sendOperationRequest(
|
|
90
146
|
{
|
|
91
147
|
resourceGroupName,
|
|
@@ -93,8 +149,8 @@ export class PrivateEndpointConnectionOperations {
|
|
|
93
149
|
privateEndpointConnectionName,
|
|
94
150
|
options
|
|
95
151
|
},
|
|
96
|
-
getOperationSpec
|
|
97
|
-
|
|
152
|
+
getOperationSpec
|
|
153
|
+
);
|
|
98
154
|
}
|
|
99
155
|
|
|
100
156
|
/**
|
|
@@ -102,30 +158,64 @@ export class PrivateEndpointConnectionOperations {
|
|
|
102
158
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
103
159
|
* @param accountName The name of the Batch account.
|
|
104
160
|
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
105
|
-
*
|
|
106
|
-
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that
|
|
107
|
-
*
|
|
108
|
-
* @param
|
|
109
|
-
* @returns Promise<Models.PrivateEndpointConnectionUpdateResponse>
|
|
161
|
+
* within the account.
|
|
162
|
+
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are
|
|
163
|
+
* supplied will be updated, any property not supplied will be unchanged.
|
|
164
|
+
* @param options The options parameters.
|
|
110
165
|
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
166
|
+
async beginUpdate(
|
|
167
|
+
resourceGroupName: string,
|
|
168
|
+
accountName: string,
|
|
169
|
+
privateEndpointConnectionName: string,
|
|
170
|
+
parameters: PrivateEndpointConnection,
|
|
171
|
+
options?: PrivateEndpointConnectionUpdateOptionalParams
|
|
172
|
+
): Promise<
|
|
173
|
+
PollerLike<
|
|
174
|
+
PollOperationState<PrivateEndpointConnectionUpdateResponse>,
|
|
175
|
+
PrivateEndpointConnectionUpdateResponse
|
|
176
|
+
>
|
|
177
|
+
> {
|
|
178
|
+
const directSendOperation = async (
|
|
179
|
+
args: coreClient.OperationArguments,
|
|
180
|
+
spec: coreClient.OperationSpec
|
|
181
|
+
): Promise<PrivateEndpointConnectionUpdateResponse> => {
|
|
182
|
+
return this.client.sendOperationRequest(args, spec);
|
|
183
|
+
};
|
|
184
|
+
const sendOperation = async (
|
|
185
|
+
args: coreClient.OperationArguments,
|
|
186
|
+
spec: coreClient.OperationSpec
|
|
187
|
+
) => {
|
|
188
|
+
let currentRawResponse:
|
|
189
|
+
| coreClient.FullOperationResponse
|
|
190
|
+
| undefined = undefined;
|
|
191
|
+
const providedCallback = args.options?.onResponse;
|
|
192
|
+
const callback: coreClient.RawResponseCallback = (
|
|
193
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
194
|
+
flatResponse: unknown
|
|
195
|
+
) => {
|
|
196
|
+
currentRawResponse = rawResponse;
|
|
197
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
198
|
+
};
|
|
199
|
+
const updatedArgs = {
|
|
200
|
+
...args,
|
|
201
|
+
options: {
|
|
202
|
+
...args.options,
|
|
203
|
+
onResponse: callback
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
207
|
+
return {
|
|
208
|
+
flatResponse,
|
|
209
|
+
rawResponse: {
|
|
210
|
+
statusCode: currentRawResponse!.status,
|
|
211
|
+
body: currentRawResponse!.parsedBody,
|
|
212
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
};
|
|
115
216
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
119
|
-
* @param accountName The name of the Batch account.
|
|
120
|
-
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
121
|
-
* within the account.
|
|
122
|
-
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that
|
|
123
|
-
* are supplied will be updated, any property not supplied will be unchanged.
|
|
124
|
-
* @param [options] The optional parameters
|
|
125
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
126
|
-
*/
|
|
127
|
-
beginUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: Models.PrivateEndpointConnectionBeginUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
128
|
-
return this.client.sendLRORequest(
|
|
217
|
+
const lro = new LroImpl(
|
|
218
|
+
sendOperation,
|
|
129
219
|
{
|
|
130
220
|
resourceGroupName,
|
|
131
221
|
accountName,
|
|
@@ -133,56 +223,68 @@ export class PrivateEndpointConnectionOperations {
|
|
|
133
223
|
parameters,
|
|
134
224
|
options
|
|
135
225
|
},
|
|
136
|
-
|
|
137
|
-
|
|
226
|
+
updateOperationSpec
|
|
227
|
+
);
|
|
228
|
+
return new LroEngine(lro, {
|
|
229
|
+
resumeFrom: options?.resumeFrom,
|
|
230
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
231
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
232
|
+
});
|
|
138
233
|
}
|
|
139
234
|
|
|
140
235
|
/**
|
|
141
|
-
*
|
|
142
|
-
* @param
|
|
143
|
-
* @param
|
|
144
|
-
* @
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
* @param
|
|
149
|
-
* @param callback The callback
|
|
236
|
+
* Updates the properties of an existing private endpoint connection.
|
|
237
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
238
|
+
* @param accountName The name of the Batch account.
|
|
239
|
+
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
240
|
+
* within the account.
|
|
241
|
+
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are
|
|
242
|
+
* supplied will be updated, any property not supplied will be unchanged.
|
|
243
|
+
* @param options The options parameters.
|
|
150
244
|
*/
|
|
151
|
-
|
|
245
|
+
async beginUpdateAndWait(
|
|
246
|
+
resourceGroupName: string,
|
|
247
|
+
accountName: string,
|
|
248
|
+
privateEndpointConnectionName: string,
|
|
249
|
+
parameters: PrivateEndpointConnection,
|
|
250
|
+
options?: PrivateEndpointConnectionUpdateOptionalParams
|
|
251
|
+
): Promise<PrivateEndpointConnectionUpdateResponse> {
|
|
252
|
+
const poller = await this.beginUpdate(
|
|
253
|
+
resourceGroupName,
|
|
254
|
+
accountName,
|
|
255
|
+
privateEndpointConnectionName,
|
|
256
|
+
parameters,
|
|
257
|
+
options
|
|
258
|
+
);
|
|
259
|
+
return poller.pollUntilDone();
|
|
260
|
+
}
|
|
261
|
+
|
|
152
262
|
/**
|
|
153
|
-
*
|
|
154
|
-
* @param
|
|
155
|
-
* @param
|
|
263
|
+
* ListByBatchAccountNext
|
|
264
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
265
|
+
* @param accountName The name of the Batch account.
|
|
266
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
|
|
267
|
+
* @param options The options parameters.
|
|
156
268
|
*/
|
|
157
|
-
|
|
158
|
-
|
|
269
|
+
private _listByBatchAccountNext(
|
|
270
|
+
resourceGroupName: string,
|
|
271
|
+
accountName: string,
|
|
272
|
+
nextLink: string,
|
|
273
|
+
options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams
|
|
274
|
+
): Promise<PrivateEndpointConnectionListByBatchAccountNextResponse> {
|
|
159
275
|
return this.client.sendOperationRequest(
|
|
160
|
-
{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
},
|
|
164
|
-
listByBatchAccountNextOperationSpec,
|
|
165
|
-
callback) as Promise<Models.PrivateEndpointConnectionListByBatchAccountNextResponse>;
|
|
276
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
277
|
+
listByBatchAccountNextOperationSpec
|
|
278
|
+
);
|
|
166
279
|
}
|
|
167
280
|
}
|
|
168
|
-
|
|
169
281
|
// Operation Specifications
|
|
170
|
-
const serializer =
|
|
171
|
-
|
|
282
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
283
|
+
|
|
284
|
+
const listByBatchAccountOperationSpec: coreClient.OperationSpec = {
|
|
285
|
+
path:
|
|
286
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections",
|
|
172
287
|
httpMethod: "GET",
|
|
173
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections",
|
|
174
|
-
urlParameters: [
|
|
175
|
-
Parameters.subscriptionId,
|
|
176
|
-
Parameters.resourceGroupName,
|
|
177
|
-
Parameters.accountName1
|
|
178
|
-
],
|
|
179
|
-
queryParameters: [
|
|
180
|
-
Parameters.apiVersion,
|
|
181
|
-
Parameters.maxresults
|
|
182
|
-
],
|
|
183
|
-
headerParameters: [
|
|
184
|
-
Parameters.acceptLanguage
|
|
185
|
-
],
|
|
186
288
|
responses: {
|
|
187
289
|
200: {
|
|
188
290
|
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult
|
|
@@ -191,24 +293,20 @@ const listByBatchAccountOperationSpec: msRest.OperationSpec = {
|
|
|
191
293
|
bodyMapper: Mappers.CloudError
|
|
192
294
|
}
|
|
193
295
|
},
|
|
194
|
-
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
198
|
-
httpMethod: "GET",
|
|
199
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
296
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
200
297
|
urlParameters: [
|
|
201
|
-
Parameters
|
|
298
|
+
Parameters.$host,
|
|
202
299
|
Parameters.resourceGroupName,
|
|
203
|
-
Parameters.
|
|
204
|
-
Parameters.
|
|
205
|
-
],
|
|
206
|
-
queryParameters: [
|
|
207
|
-
Parameters.apiVersion
|
|
208
|
-
],
|
|
209
|
-
headerParameters: [
|
|
210
|
-
Parameters.acceptLanguage
|
|
300
|
+
Parameters.subscriptionId,
|
|
301
|
+
Parameters.accountName1
|
|
211
302
|
],
|
|
303
|
+
headerParameters: [Parameters.accept],
|
|
304
|
+
serializer
|
|
305
|
+
};
|
|
306
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
307
|
+
path:
|
|
308
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
309
|
+
httpMethod: "GET",
|
|
212
310
|
responses: {
|
|
213
311
|
200: {
|
|
214
312
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
@@ -217,65 +315,58 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
217
315
|
bodyMapper: Mappers.CloudError
|
|
218
316
|
}
|
|
219
317
|
},
|
|
220
|
-
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
224
|
-
httpMethod: "PATCH",
|
|
225
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
318
|
+
queryParameters: [Parameters.apiVersion],
|
|
226
319
|
urlParameters: [
|
|
227
|
-
Parameters
|
|
320
|
+
Parameters.$host,
|
|
228
321
|
Parameters.resourceGroupName,
|
|
322
|
+
Parameters.subscriptionId,
|
|
229
323
|
Parameters.accountName1,
|
|
230
324
|
Parameters.privateEndpointConnectionName
|
|
231
325
|
],
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
requestBody: {
|
|
240
|
-
parameterPath: "parameters",
|
|
241
|
-
mapper: {
|
|
242
|
-
...Mappers.PrivateEndpointConnection,
|
|
243
|
-
required: true
|
|
244
|
-
}
|
|
245
|
-
},
|
|
326
|
+
headerParameters: [Parameters.accept],
|
|
327
|
+
serializer
|
|
328
|
+
};
|
|
329
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
330
|
+
path:
|
|
331
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
332
|
+
httpMethod: "PATCH",
|
|
246
333
|
responses: {
|
|
247
334
|
200: {
|
|
248
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
249
|
-
|
|
335
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
336
|
+
},
|
|
337
|
+
201: {
|
|
338
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
250
339
|
},
|
|
251
340
|
202: {
|
|
252
|
-
|
|
341
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
253
342
|
},
|
|
254
343
|
204: {
|
|
255
|
-
|
|
344
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
256
345
|
},
|
|
257
346
|
default: {
|
|
258
|
-
bodyMapper: Mappers.CloudError
|
|
259
|
-
headersMapper: Mappers.PrivateEndpointConnectionUpdateHeaders
|
|
347
|
+
bodyMapper: Mappers.CloudError
|
|
260
348
|
}
|
|
261
349
|
},
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
266
|
-
httpMethod: "GET",
|
|
267
|
-
baseUrl: "https://management.azure.com",
|
|
268
|
-
path: "{nextLink}",
|
|
350
|
+
requestBody: Parameters.parameters9,
|
|
351
|
+
queryParameters: [Parameters.apiVersion],
|
|
269
352
|
urlParameters: [
|
|
270
|
-
Parameters
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
Parameters.
|
|
274
|
-
Parameters.
|
|
353
|
+
Parameters.$host,
|
|
354
|
+
Parameters.resourceGroupName,
|
|
355
|
+
Parameters.subscriptionId,
|
|
356
|
+
Parameters.accountName1,
|
|
357
|
+
Parameters.privateEndpointConnectionName
|
|
275
358
|
],
|
|
276
359
|
headerParameters: [
|
|
277
|
-
Parameters.
|
|
360
|
+
Parameters.contentType,
|
|
361
|
+
Parameters.accept,
|
|
362
|
+
Parameters.ifMatch
|
|
278
363
|
],
|
|
364
|
+
mediaType: "json",
|
|
365
|
+
serializer
|
|
366
|
+
};
|
|
367
|
+
const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
368
|
+
path: "{nextLink}",
|
|
369
|
+
httpMethod: "GET",
|
|
279
370
|
responses: {
|
|
280
371
|
200: {
|
|
281
372
|
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult
|
|
@@ -284,5 +375,14 @@ const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
|
284
375
|
bodyMapper: Mappers.CloudError
|
|
285
376
|
}
|
|
286
377
|
},
|
|
378
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
379
|
+
urlParameters: [
|
|
380
|
+
Parameters.$host,
|
|
381
|
+
Parameters.resourceGroupName,
|
|
382
|
+
Parameters.subscriptionId,
|
|
383
|
+
Parameters.accountName1,
|
|
384
|
+
Parameters.nextLink
|
|
385
|
+
],
|
|
386
|
+
headerParameters: [Parameters.accept],
|
|
287
387
|
serializer
|
|
288
388
|
};
|