@azure/arm-batch 5.1.0 → 7.0.0-alpha.20211215.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 +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +69 -83
- 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/dist-esm/src/models/index.js +9 -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 +1814 -1452
- 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 +3 -5
- 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/dist-esm/src/operationsInterfaces/applicationOperations.js +9 -0
- 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/dist-esm/src/operationsInterfaces/applicationPackageOperations.js +9 -0
- 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/dist-esm/src/operationsInterfaces/batchAccountOperations.js +9 -0
- 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 +65 -30
- package/review/arm-batch.api.md +1459 -0
- package/rollup.config.js +181 -30
- package/src/batchManagementClient.ts +61 -51
- package/src/batchManagementClientContext.ts +48 -46
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1469 -3055
- package/src/models/mappers.ts +1967 -1573
- package/src/models/parameters.ts +218 -120
- package/src/operations/applicationOperations.ts +217 -262
- package/src/operations/applicationPackageOperations.ts +254 -277
- package/src/operations/batchAccountOperations.ts +682 -466
- package/src/operations/certificateOperations.ts +365 -353
- package/src/operations/index.ts +3 -5
- package/src/operations/location.ts +344 -78
- package/src/operations/operations.ts +84 -70
- package/src/operations/poolOperations.ts +379 -375
- package/src/operations/privateEndpointConnectionOperations.ts +271 -168
- package/src/operations/privateLinkResourceOperations.ts +158 -125
- 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 -6219
- 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 -47
- 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 -62
- 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 -3392
- 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/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 -96
- 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 -21
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -251
- 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 -229
- package/esm/operations/applicationOperations.js.map +0 -1
- package/esm/operations/applicationPackageOperations.d.ts +0 -170
- package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
- package/esm/operations/applicationPackageOperations.js +0 -241
- package/esm/operations/applicationPackageOperations.js.map +0 -1
- package/esm/operations/batchAccountOperations.d.ts +0 -246
- package/esm/operations/batchAccountOperations.d.ts.map +0 -1
- package/esm/operations/batchAccountOperations.js +0 -428
- package/esm/operations/batchAccountOperations.js.map +0 -1
- package/esm/operations/certificateOperations.d.ts +0 -198
- package/esm/operations/certificateOperations.d.ts.map +0 -1
- package/esm/operations/certificateOperations.js +0 -331
- 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 -52
- package/esm/operations/location.d.ts.map +0 -1
- package/esm/operations/location.js +0 -93
- 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 -77
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/poolOperations.d.ts +0 -199
- package/esm/operations/poolOperations.d.ts.map +0 -1
- package/esm/operations/poolOperations.js +0 -358
- 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 -192
- 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 -118
- package/esm/operations/privateLinkResourceOperations.js.map +0 -1
- package/src/models/applicationOperationsMappers.ts +0 -72
- package/src/models/applicationPackageOperationsMappers.ts +0 -73
- package/src/models/batchAccountOperationsMappers.ts +0 -78
- package/src/models/certificateOperationsMappers.ts +0 -77
- package/src/models/locationMappers.ts +0 -14
- package/src/models/operationsMappers.ts +0 -14
- package/src/models/poolOperationsMappers.ts +0 -78
- package/src/models/privateEndpointConnectionOperationsMappers.ts +0 -73
- package/src/models/privateLinkResourceOperationsMappers.ts +0 -72
|
@@ -1,27 +1,40 @@
|
|
|
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 { PrivateEndpointConnectionOperations } 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
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";
|
|
17
28
|
|
|
18
|
-
|
|
19
|
-
|
|
29
|
+
/// <reference lib="esnext.asynciterable" />
|
|
30
|
+
/** Class containing PrivateEndpointConnectionOperations operations. */
|
|
31
|
+
export class PrivateEndpointConnectionOperationsImpl
|
|
32
|
+
implements PrivateEndpointConnectionOperations {
|
|
20
33
|
private readonly client: BatchManagementClientContext;
|
|
21
34
|
|
|
22
35
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
36
|
+
* Initialize a new instance of the class PrivateEndpointConnectionOperations class.
|
|
37
|
+
* @param client Reference to the service client
|
|
25
38
|
*/
|
|
26
39
|
constructor(client: BatchManagementClientContext) {
|
|
27
40
|
this.client = client;
|
|
@@ -31,62 +44,104 @@ export class PrivateEndpointConnectionOperations {
|
|
|
31
44
|
* Lists all of the private endpoint connections in the specified account.
|
|
32
45
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
33
46
|
* @param accountName The name of the Batch account.
|
|
34
|
-
* @param
|
|
35
|
-
* @returns Promise<Models.PrivateEndpointConnectionListByBatchAccountResponse>
|
|
47
|
+
* @param options The options parameters.
|
|
36
48
|
*/
|
|
37
|
-
listByBatchAccount(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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(
|
|
54
90
|
resourceGroupName,
|
|
55
91
|
accountName,
|
|
92
|
+
continuationToken,
|
|
56
93
|
options
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
+
}
|
|
60
112
|
}
|
|
61
113
|
|
|
62
114
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
65
|
-
* @param accountName The name of the Batch account.
|
|
66
|
-
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
67
|
-
* within the account.
|
|
68
|
-
* @param [options] The optional parameters
|
|
69
|
-
* @returns Promise<Models.PrivateEndpointConnectionGetResponse>
|
|
70
|
-
*/
|
|
71
|
-
get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateEndpointConnectionGetResponse>;
|
|
72
|
-
/**
|
|
115
|
+
* Lists all of the private endpoint connections in the specified account.
|
|
73
116
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
74
117
|
* @param accountName The name of the Batch account.
|
|
75
|
-
* @param
|
|
76
|
-
* within the account.
|
|
77
|
-
* @param callback The callback
|
|
118
|
+
* @param options The options parameters.
|
|
78
119
|
*/
|
|
79
|
-
|
|
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
|
+
|
|
80
131
|
/**
|
|
132
|
+
* Gets information about the specified private endpoint connection.
|
|
81
133
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
82
134
|
* @param accountName The name of the Batch account.
|
|
83
135
|
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
84
|
-
*
|
|
85
|
-
* @param options The
|
|
86
|
-
* @param callback The callback
|
|
136
|
+
* within the account.
|
|
137
|
+
* @param options The options parameters.
|
|
87
138
|
*/
|
|
88
|
-
get(
|
|
89
|
-
|
|
139
|
+
get(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
accountName: string,
|
|
142
|
+
privateEndpointConnectionName: string,
|
|
143
|
+
options?: PrivateEndpointConnectionGetOptionalParams
|
|
144
|
+
): Promise<PrivateEndpointConnectionGetResponse> {
|
|
90
145
|
return this.client.sendOperationRequest(
|
|
91
146
|
{
|
|
92
147
|
resourceGroupName,
|
|
@@ -94,8 +149,8 @@ export class PrivateEndpointConnectionOperations {
|
|
|
94
149
|
privateEndpointConnectionName,
|
|
95
150
|
options
|
|
96
151
|
},
|
|
97
|
-
getOperationSpec
|
|
98
|
-
|
|
152
|
+
getOperationSpec
|
|
153
|
+
);
|
|
99
154
|
}
|
|
100
155
|
|
|
101
156
|
/**
|
|
@@ -103,30 +158,64 @@ export class PrivateEndpointConnectionOperations {
|
|
|
103
158
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
104
159
|
* @param accountName The name of the Batch account.
|
|
105
160
|
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
106
|
-
*
|
|
107
|
-
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that
|
|
108
|
-
*
|
|
109
|
-
* @param
|
|
110
|
-
* @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.
|
|
111
165
|
*/
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
+
};
|
|
116
216
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
120
|
-
* @param accountName The name of the Batch account.
|
|
121
|
-
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
122
|
-
* within the account.
|
|
123
|
-
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that
|
|
124
|
-
* are supplied will be updated, any property not supplied will be unchanged.
|
|
125
|
-
* @param [options] The optional parameters
|
|
126
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
127
|
-
*/
|
|
128
|
-
beginUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: Models.PrivateEndpointConnectionBeginUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
129
|
-
return this.client.sendLRORequest(
|
|
217
|
+
const lro = new LroImpl(
|
|
218
|
+
sendOperation,
|
|
130
219
|
{
|
|
131
220
|
resourceGroupName,
|
|
132
221
|
accountName,
|
|
@@ -134,56 +223,68 @@ export class PrivateEndpointConnectionOperations {
|
|
|
134
223
|
parameters,
|
|
135
224
|
options
|
|
136
225
|
},
|
|
137
|
-
|
|
138
|
-
|
|
226
|
+
updateOperationSpec
|
|
227
|
+
);
|
|
228
|
+
return new LroEngine(lro, {
|
|
229
|
+
resumeFrom: options?.resumeFrom,
|
|
230
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
231
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
232
|
+
});
|
|
139
233
|
}
|
|
140
234
|
|
|
141
235
|
/**
|
|
142
|
-
*
|
|
143
|
-
* @param
|
|
144
|
-
* @param
|
|
145
|
-
* @
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
* @param
|
|
150
|
-
* @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.
|
|
151
244
|
*/
|
|
152
|
-
|
|
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
|
+
|
|
153
262
|
/**
|
|
154
|
-
*
|
|
155
|
-
* @param
|
|
156
|
-
* @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.
|
|
157
268
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
269
|
+
private _listByBatchAccountNext(
|
|
270
|
+
resourceGroupName: string,
|
|
271
|
+
accountName: string,
|
|
272
|
+
nextLink: string,
|
|
273
|
+
options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams
|
|
274
|
+
): Promise<PrivateEndpointConnectionListByBatchAccountNextResponse> {
|
|
160
275
|
return this.client.sendOperationRequest(
|
|
161
|
-
{
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
listByBatchAccountNextOperationSpec,
|
|
166
|
-
callback) as Promise<Models.PrivateEndpointConnectionListByBatchAccountNextResponse>;
|
|
276
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
277
|
+
listByBatchAccountNextOperationSpec
|
|
278
|
+
);
|
|
167
279
|
}
|
|
168
280
|
}
|
|
169
|
-
|
|
170
281
|
// Operation Specifications
|
|
171
|
-
const serializer =
|
|
172
|
-
|
|
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",
|
|
173
287
|
httpMethod: "GET",
|
|
174
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections",
|
|
175
|
-
urlParameters: [
|
|
176
|
-
Parameters.subscriptionId,
|
|
177
|
-
Parameters.resourceGroupName,
|
|
178
|
-
Parameters.accountName1
|
|
179
|
-
],
|
|
180
|
-
queryParameters: [
|
|
181
|
-
Parameters.apiVersion,
|
|
182
|
-
Parameters.maxresults
|
|
183
|
-
],
|
|
184
|
-
headerParameters: [
|
|
185
|
-
Parameters.acceptLanguage
|
|
186
|
-
],
|
|
187
288
|
responses: {
|
|
188
289
|
200: {
|
|
189
290
|
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult
|
|
@@ -192,24 +293,20 @@ const listByBatchAccountOperationSpec: msRest.OperationSpec = {
|
|
|
192
293
|
bodyMapper: Mappers.CloudError
|
|
193
294
|
}
|
|
194
295
|
},
|
|
195
|
-
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
199
|
-
httpMethod: "GET",
|
|
200
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
296
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
201
297
|
urlParameters: [
|
|
202
|
-
Parameters
|
|
298
|
+
Parameters.$host,
|
|
203
299
|
Parameters.resourceGroupName,
|
|
204
|
-
Parameters.
|
|
205
|
-
Parameters.
|
|
206
|
-
],
|
|
207
|
-
queryParameters: [
|
|
208
|
-
Parameters.apiVersion
|
|
209
|
-
],
|
|
210
|
-
headerParameters: [
|
|
211
|
-
Parameters.acceptLanguage
|
|
300
|
+
Parameters.subscriptionId,
|
|
301
|
+
Parameters.accountName1
|
|
212
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",
|
|
213
310
|
responses: {
|
|
214
311
|
200: {
|
|
215
312
|
bodyMapper: Mappers.PrivateEndpointConnection
|
|
@@ -218,61 +315,58 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
218
315
|
bodyMapper: Mappers.CloudError
|
|
219
316
|
}
|
|
220
317
|
},
|
|
221
|
-
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
225
|
-
httpMethod: "PATCH",
|
|
226
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
318
|
+
queryParameters: [Parameters.apiVersion],
|
|
227
319
|
urlParameters: [
|
|
228
|
-
Parameters
|
|
320
|
+
Parameters.$host,
|
|
229
321
|
Parameters.resourceGroupName,
|
|
322
|
+
Parameters.subscriptionId,
|
|
230
323
|
Parameters.accountName1,
|
|
231
324
|
Parameters.privateEndpointConnectionName
|
|
232
325
|
],
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
requestBody: {
|
|
241
|
-
parameterPath: "parameters",
|
|
242
|
-
mapper: {
|
|
243
|
-
...Mappers.PrivateEndpointConnection,
|
|
244
|
-
required: true
|
|
245
|
-
}
|
|
246
|
-
},
|
|
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",
|
|
247
333
|
responses: {
|
|
248
334
|
200: {
|
|
249
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
250
|
-
|
|
335
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
336
|
+
},
|
|
337
|
+
201: {
|
|
338
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
251
339
|
},
|
|
252
340
|
202: {
|
|
253
|
-
|
|
341
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
254
342
|
},
|
|
255
343
|
204: {
|
|
256
|
-
|
|
344
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
257
345
|
},
|
|
258
346
|
default: {
|
|
259
|
-
bodyMapper: Mappers.CloudError
|
|
260
|
-
headersMapper: Mappers.PrivateEndpointConnectionUpdateHeaders
|
|
347
|
+
bodyMapper: Mappers.CloudError
|
|
261
348
|
}
|
|
262
349
|
},
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
267
|
-
httpMethod: "GET",
|
|
268
|
-
baseUrl: "https://management.azure.com",
|
|
269
|
-
path: "{nextLink}",
|
|
350
|
+
requestBody: Parameters.parameters9,
|
|
351
|
+
queryParameters: [Parameters.apiVersion],
|
|
270
352
|
urlParameters: [
|
|
271
|
-
Parameters
|
|
353
|
+
Parameters.$host,
|
|
354
|
+
Parameters.resourceGroupName,
|
|
355
|
+
Parameters.subscriptionId,
|
|
356
|
+
Parameters.accountName1,
|
|
357
|
+
Parameters.privateEndpointConnectionName
|
|
272
358
|
],
|
|
273
359
|
headerParameters: [
|
|
274
|
-
Parameters.
|
|
360
|
+
Parameters.contentType,
|
|
361
|
+
Parameters.accept,
|
|
362
|
+
Parameters.ifMatch
|
|
275
363
|
],
|
|
364
|
+
mediaType: "json",
|
|
365
|
+
serializer
|
|
366
|
+
};
|
|
367
|
+
const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
368
|
+
path: "{nextLink}",
|
|
369
|
+
httpMethod: "GET",
|
|
276
370
|
responses: {
|
|
277
371
|
200: {
|
|
278
372
|
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult
|
|
@@ -281,5 +375,14 @@ const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
|
281
375
|
bodyMapper: Mappers.CloudError
|
|
282
376
|
}
|
|
283
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],
|
|
284
387
|
serializer
|
|
285
388
|
};
|