@azure/arm-batch 5.0.0 → 7.0.0-alpha.20211214.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} +2 -2
- package/README.md +72 -77
- 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 -29
- package/review/arm-batch.api.md +1459 -0
- package/rollup.config.js +181 -30
- package/src/batchManagementClient.ts +61 -45
- package/src/batchManagementClientContext.ts +48 -40
- 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 -6207
- 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 -27
- package/esm/batchManagementClient.d.ts.map +0 -1
- package/esm/batchManagementClient.js +0 -42
- package/esm/batchManagementClient.js.map +0 -1
- package/esm/batchManagementClientContext.d.ts +0 -17
- package/esm/batchManagementClientContext.d.ts.map +0 -1
- package/esm/batchManagementClientContext.js +0 -57
- 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,26 +1,36 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PrivateLinkResourceOperations } 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 {
|
|
16
|
+
PrivateLinkResource,
|
|
17
|
+
PrivateLinkResourceListByBatchAccountNextOptionalParams,
|
|
18
|
+
PrivateLinkResourceListByBatchAccountOptionalParams,
|
|
19
|
+
PrivateLinkResourceListByBatchAccountResponse,
|
|
20
|
+
PrivateLinkResourceGetOptionalParams,
|
|
21
|
+
PrivateLinkResourceGetResponse,
|
|
22
|
+
PrivateLinkResourceListByBatchAccountNextResponse
|
|
23
|
+
} from "../models";
|
|
16
24
|
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
/// <reference lib="esnext.asynciterable" />
|
|
26
|
+
/** Class containing PrivateLinkResourceOperations operations. */
|
|
27
|
+
export class PrivateLinkResourceOperationsImpl
|
|
28
|
+
implements PrivateLinkResourceOperations {
|
|
19
29
|
private readonly client: BatchManagementClientContext;
|
|
20
30
|
|
|
21
31
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
32
|
+
* Initialize a new instance of the class PrivateLinkResourceOperations class.
|
|
33
|
+
* @param client Reference to the service client
|
|
24
34
|
*/
|
|
25
35
|
constructor(client: BatchManagementClientContext) {
|
|
26
36
|
this.client = client;
|
|
@@ -30,119 +40,136 @@ export class PrivateLinkResourceOperations {
|
|
|
30
40
|
* Lists all of the private link resources in the specified account.
|
|
31
41
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
32
42
|
* @param accountName The name of the Batch account.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.PrivateLinkResourceListByBatchAccountResponse>
|
|
43
|
+
* @param options The options parameters.
|
|
35
44
|
*/
|
|
36
|
-
listByBatchAccount(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
public listByBatchAccount(
|
|
46
|
+
resourceGroupName: string,
|
|
47
|
+
accountName: string,
|
|
48
|
+
options?: PrivateLinkResourceListByBatchAccountOptionalParams
|
|
49
|
+
): PagedAsyncIterableIterator<PrivateLinkResource> {
|
|
50
|
+
const iter = this.listByBatchAccountPagingAll(
|
|
51
|
+
resourceGroupName,
|
|
52
|
+
accountName,
|
|
53
|
+
options
|
|
54
|
+
);
|
|
55
|
+
return {
|
|
56
|
+
next() {
|
|
57
|
+
return iter.next();
|
|
58
|
+
},
|
|
59
|
+
[Symbol.asyncIterator]() {
|
|
60
|
+
return this;
|
|
61
|
+
},
|
|
62
|
+
byPage: () => {
|
|
63
|
+
return this.listByBatchAccountPagingPage(
|
|
64
|
+
resourceGroupName,
|
|
65
|
+
accountName,
|
|
66
|
+
options
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private async *listByBatchAccountPagingPage(
|
|
73
|
+
resourceGroupName: string,
|
|
74
|
+
accountName: string,
|
|
75
|
+
options?: PrivateLinkResourceListByBatchAccountOptionalParams
|
|
76
|
+
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
77
|
+
let result = await this._listByBatchAccount(
|
|
78
|
+
resourceGroupName,
|
|
79
|
+
accountName,
|
|
80
|
+
options
|
|
81
|
+
);
|
|
82
|
+
yield result.value || [];
|
|
83
|
+
let continuationToken = result.nextLink;
|
|
84
|
+
while (continuationToken) {
|
|
85
|
+
result = await this._listByBatchAccountNext(
|
|
53
86
|
resourceGroupName,
|
|
54
87
|
accountName,
|
|
88
|
+
continuationToken,
|
|
55
89
|
options
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
90
|
+
);
|
|
91
|
+
continuationToken = result.nextLink;
|
|
92
|
+
yield result.value || [];
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
private async *listByBatchAccountPagingAll(
|
|
97
|
+
resourceGroupName: string,
|
|
98
|
+
accountName: string,
|
|
99
|
+
options?: PrivateLinkResourceListByBatchAccountOptionalParams
|
|
100
|
+
): AsyncIterableIterator<PrivateLinkResource> {
|
|
101
|
+
for await (const page of this.listByBatchAccountPagingPage(
|
|
102
|
+
resourceGroupName,
|
|
103
|
+
accountName,
|
|
104
|
+
options
|
|
105
|
+
)) {
|
|
106
|
+
yield* page;
|
|
107
|
+
}
|
|
59
108
|
}
|
|
60
109
|
|
|
61
110
|
/**
|
|
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 privateLinkResourceName The private link resource name. This must be unique within the
|
|
66
|
-
* account.
|
|
67
|
-
* @param [options] The optional parameters
|
|
68
|
-
* @returns Promise<Models.PrivateLinkResourceGetResponse>
|
|
69
|
-
*/
|
|
70
|
-
get(resourceGroupName: string, accountName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourceGetResponse>;
|
|
71
|
-
/**
|
|
111
|
+
* Lists all of the private link resources in the specified account.
|
|
72
112
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
73
113
|
* @param accountName The name of the Batch account.
|
|
74
|
-
* @param
|
|
75
|
-
* account.
|
|
76
|
-
* @param callback The callback
|
|
114
|
+
* @param options The options parameters.
|
|
77
115
|
*/
|
|
78
|
-
|
|
116
|
+
private _listByBatchAccount(
|
|
117
|
+
resourceGroupName: string,
|
|
118
|
+
accountName: string,
|
|
119
|
+
options?: PrivateLinkResourceListByBatchAccountOptionalParams
|
|
120
|
+
): Promise<PrivateLinkResourceListByBatchAccountResponse> {
|
|
121
|
+
return this.client.sendOperationRequest(
|
|
122
|
+
{ resourceGroupName, accountName, options },
|
|
123
|
+
listByBatchAccountOperationSpec
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
79
127
|
/**
|
|
128
|
+
* Gets information about the specified private link resource.
|
|
80
129
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
81
130
|
* @param accountName The name of the Batch account.
|
|
82
131
|
* @param privateLinkResourceName The private link resource name. This must be unique within the
|
|
83
|
-
*
|
|
84
|
-
* @param options The
|
|
85
|
-
* @param callback The callback
|
|
132
|
+
* account.
|
|
133
|
+
* @param options The options parameters.
|
|
86
134
|
*/
|
|
87
|
-
get(
|
|
88
|
-
|
|
135
|
+
get(
|
|
136
|
+
resourceGroupName: string,
|
|
137
|
+
accountName: string,
|
|
138
|
+
privateLinkResourceName: string,
|
|
139
|
+
options?: PrivateLinkResourceGetOptionalParams
|
|
140
|
+
): Promise<PrivateLinkResourceGetResponse> {
|
|
89
141
|
return this.client.sendOperationRequest(
|
|
90
|
-
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
privateLinkResourceName,
|
|
94
|
-
options
|
|
95
|
-
},
|
|
96
|
-
getOperationSpec,
|
|
97
|
-
callback) as Promise<Models.PrivateLinkResourceGetResponse>;
|
|
142
|
+
{ resourceGroupName, accountName, privateLinkResourceName, options },
|
|
143
|
+
getOperationSpec
|
|
144
|
+
);
|
|
98
145
|
}
|
|
99
146
|
|
|
100
147
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @param
|
|
103
|
-
* @param
|
|
104
|
-
* @
|
|
105
|
-
|
|
106
|
-
listByBatchAccountNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PrivateLinkResourceListByBatchAccountNextResponse>;
|
|
107
|
-
/**
|
|
108
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
109
|
-
* @param callback The callback
|
|
110
|
-
*/
|
|
111
|
-
listByBatchAccountNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ListPrivateLinkResourcesResult>): void;
|
|
112
|
-
/**
|
|
113
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
114
|
-
* @param options The optional parameters
|
|
115
|
-
* @param callback The callback
|
|
148
|
+
* ListByBatchAccountNext
|
|
149
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
150
|
+
* @param accountName The name of the Batch account.
|
|
151
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
|
|
152
|
+
* @param options The options parameters.
|
|
116
153
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
154
|
+
private _listByBatchAccountNext(
|
|
155
|
+
resourceGroupName: string,
|
|
156
|
+
accountName: string,
|
|
157
|
+
nextLink: string,
|
|
158
|
+
options?: PrivateLinkResourceListByBatchAccountNextOptionalParams
|
|
159
|
+
): Promise<PrivateLinkResourceListByBatchAccountNextResponse> {
|
|
119
160
|
return this.client.sendOperationRequest(
|
|
120
|
-
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
listByBatchAccountNextOperationSpec,
|
|
125
|
-
callback) as Promise<Models.PrivateLinkResourceListByBatchAccountNextResponse>;
|
|
161
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
162
|
+
listByBatchAccountNextOperationSpec
|
|
163
|
+
);
|
|
126
164
|
}
|
|
127
165
|
}
|
|
128
|
-
|
|
129
166
|
// Operation Specifications
|
|
130
|
-
const serializer =
|
|
131
|
-
|
|
167
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
168
|
+
|
|
169
|
+
const listByBatchAccountOperationSpec: coreClient.OperationSpec = {
|
|
170
|
+
path:
|
|
171
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources",
|
|
132
172
|
httpMethod: "GET",
|
|
133
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources",
|
|
134
|
-
urlParameters: [
|
|
135
|
-
Parameters.subscriptionId,
|
|
136
|
-
Parameters.resourceGroupName,
|
|
137
|
-
Parameters.accountName1
|
|
138
|
-
],
|
|
139
|
-
queryParameters: [
|
|
140
|
-
Parameters.apiVersion,
|
|
141
|
-
Parameters.maxresults
|
|
142
|
-
],
|
|
143
|
-
headerParameters: [
|
|
144
|
-
Parameters.acceptLanguage
|
|
145
|
-
],
|
|
146
173
|
responses: {
|
|
147
174
|
200: {
|
|
148
175
|
bodyMapper: Mappers.ListPrivateLinkResourcesResult
|
|
@@ -151,24 +178,20 @@ const listByBatchAccountOperationSpec: msRest.OperationSpec = {
|
|
|
151
178
|
bodyMapper: Mappers.CloudError
|
|
152
179
|
}
|
|
153
180
|
},
|
|
154
|
-
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
158
|
-
httpMethod: "GET",
|
|
159
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}",
|
|
181
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
160
182
|
urlParameters: [
|
|
161
|
-
Parameters
|
|
183
|
+
Parameters.$host,
|
|
162
184
|
Parameters.resourceGroupName,
|
|
163
|
-
Parameters.
|
|
164
|
-
Parameters.
|
|
165
|
-
],
|
|
166
|
-
queryParameters: [
|
|
167
|
-
Parameters.apiVersion
|
|
168
|
-
],
|
|
169
|
-
headerParameters: [
|
|
170
|
-
Parameters.acceptLanguage
|
|
185
|
+
Parameters.subscriptionId,
|
|
186
|
+
Parameters.accountName1
|
|
171
187
|
],
|
|
188
|
+
headerParameters: [Parameters.accept],
|
|
189
|
+
serializer
|
|
190
|
+
};
|
|
191
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
192
|
+
path:
|
|
193
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}",
|
|
194
|
+
httpMethod: "GET",
|
|
172
195
|
responses: {
|
|
173
196
|
200: {
|
|
174
197
|
bodyMapper: Mappers.PrivateLinkResource
|
|
@@ -177,19 +200,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
177
200
|
bodyMapper: Mappers.CloudError
|
|
178
201
|
}
|
|
179
202
|
},
|
|
203
|
+
queryParameters: [Parameters.apiVersion],
|
|
204
|
+
urlParameters: [
|
|
205
|
+
Parameters.$host,
|
|
206
|
+
Parameters.resourceGroupName,
|
|
207
|
+
Parameters.subscriptionId,
|
|
208
|
+
Parameters.accountName1,
|
|
209
|
+
Parameters.privateLinkResourceName
|
|
210
|
+
],
|
|
211
|
+
headerParameters: [Parameters.accept],
|
|
180
212
|
serializer
|
|
181
213
|
};
|
|
182
|
-
|
|
183
|
-
const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
184
|
-
httpMethod: "GET",
|
|
185
|
-
baseUrl: "https://management.azure.com",
|
|
214
|
+
const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
186
215
|
path: "{nextLink}",
|
|
187
|
-
|
|
188
|
-
Parameters.nextPageLink
|
|
189
|
-
],
|
|
190
|
-
headerParameters: [
|
|
191
|
-
Parameters.acceptLanguage
|
|
192
|
-
],
|
|
216
|
+
httpMethod: "GET",
|
|
193
217
|
responses: {
|
|
194
218
|
200: {
|
|
195
219
|
bodyMapper: Mappers.ListPrivateLinkResourcesResult
|
|
@@ -198,5 +222,14 @@ const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
|
198
222
|
bodyMapper: Mappers.CloudError
|
|
199
223
|
}
|
|
200
224
|
},
|
|
225
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
226
|
+
urlParameters: [
|
|
227
|
+
Parameters.$host,
|
|
228
|
+
Parameters.resourceGroupName,
|
|
229
|
+
Parameters.subscriptionId,
|
|
230
|
+
Parameters.accountName1,
|
|
231
|
+
Parameters.nextLink
|
|
232
|
+
],
|
|
233
|
+
headerParameters: [Parameters.accept],
|
|
201
234
|
serializer
|
|
202
235
|
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
Application,
|
|
12
|
+
ApplicationListOptionalParams,
|
|
13
|
+
ApplicationCreateOptionalParams,
|
|
14
|
+
ApplicationCreateResponse,
|
|
15
|
+
ApplicationDeleteOptionalParams,
|
|
16
|
+
ApplicationGetOptionalParams,
|
|
17
|
+
ApplicationGetResponse,
|
|
18
|
+
ApplicationUpdateOptionalParams,
|
|
19
|
+
ApplicationUpdateResponse
|
|
20
|
+
} from "../models";
|
|
21
|
+
|
|
22
|
+
/// <reference lib="esnext.asynciterable" />
|
|
23
|
+
/** Interface representing a ApplicationOperations. */
|
|
24
|
+
export interface ApplicationOperations {
|
|
25
|
+
/**
|
|
26
|
+
* Lists all of the applications in the specified account.
|
|
27
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
28
|
+
* @param accountName The name of the Batch account.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(
|
|
32
|
+
resourceGroupName: string,
|
|
33
|
+
accountName: string,
|
|
34
|
+
options?: ApplicationListOptionalParams
|
|
35
|
+
): PagedAsyncIterableIterator<Application>;
|
|
36
|
+
/**
|
|
37
|
+
* Adds an application to the specified Batch account.
|
|
38
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
39
|
+
* @param accountName The name of the Batch account.
|
|
40
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
create(
|
|
44
|
+
resourceGroupName: string,
|
|
45
|
+
accountName: string,
|
|
46
|
+
applicationName: string,
|
|
47
|
+
options?: ApplicationCreateOptionalParams
|
|
48
|
+
): Promise<ApplicationCreateResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Deletes an application.
|
|
51
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
52
|
+
* @param accountName The name of the Batch account.
|
|
53
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
54
|
+
* @param options The options parameters.
|
|
55
|
+
*/
|
|
56
|
+
delete(
|
|
57
|
+
resourceGroupName: string,
|
|
58
|
+
accountName: string,
|
|
59
|
+
applicationName: string,
|
|
60
|
+
options?: ApplicationDeleteOptionalParams
|
|
61
|
+
): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Gets information about the specified application.
|
|
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 applicationName The name of the application. This must be unique within the account.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
get(
|
|
70
|
+
resourceGroupName: string,
|
|
71
|
+
accountName: string,
|
|
72
|
+
applicationName: string,
|
|
73
|
+
options?: ApplicationGetOptionalParams
|
|
74
|
+
): Promise<ApplicationGetResponse>;
|
|
75
|
+
/**
|
|
76
|
+
* Updates settings for the specified application.
|
|
77
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
78
|
+
* @param accountName The name of the Batch account.
|
|
79
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
80
|
+
* @param parameters The parameters for the request.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
update(
|
|
84
|
+
resourceGroupName: string,
|
|
85
|
+
accountName: string,
|
|
86
|
+
applicationName: string,
|
|
87
|
+
parameters: Application,
|
|
88
|
+
options?: ApplicationUpdateOptionalParams
|
|
89
|
+
): Promise<ApplicationUpdateResponse>;
|
|
90
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
ApplicationPackage,
|
|
12
|
+
ApplicationPackageListOptionalParams,
|
|
13
|
+
ActivateApplicationPackageParameters,
|
|
14
|
+
ApplicationPackageActivateOptionalParams,
|
|
15
|
+
ApplicationPackageActivateResponse,
|
|
16
|
+
ApplicationPackageCreateOptionalParams,
|
|
17
|
+
ApplicationPackageCreateResponse,
|
|
18
|
+
ApplicationPackageDeleteOptionalParams,
|
|
19
|
+
ApplicationPackageGetOptionalParams,
|
|
20
|
+
ApplicationPackageGetResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Interface representing a ApplicationPackageOperations. */
|
|
25
|
+
export interface ApplicationPackageOperations {
|
|
26
|
+
/**
|
|
27
|
+
* Lists all of the application packages in the specified application.
|
|
28
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
29
|
+
* @param accountName The name of the Batch account.
|
|
30
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
list(
|
|
34
|
+
resourceGroupName: string,
|
|
35
|
+
accountName: string,
|
|
36
|
+
applicationName: string,
|
|
37
|
+
options?: ApplicationPackageListOptionalParams
|
|
38
|
+
): PagedAsyncIterableIterator<ApplicationPackage>;
|
|
39
|
+
/**
|
|
40
|
+
* Activates the specified application package. This should be done after the `ApplicationPackage` was
|
|
41
|
+
* created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or
|
|
42
|
+
* Tasks.
|
|
43
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
44
|
+
* @param accountName The name of the Batch account.
|
|
45
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
46
|
+
* @param versionName The version of the application.
|
|
47
|
+
* @param parameters The parameters for the request.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
activate(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
accountName: string,
|
|
53
|
+
applicationName: string,
|
|
54
|
+
versionName: string,
|
|
55
|
+
parameters: ActivateApplicationPackageParameters,
|
|
56
|
+
options?: ApplicationPackageActivateOptionalParams
|
|
57
|
+
): Promise<ApplicationPackageActivateResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates an application package record. The record contains a storageUrl where the package should be
|
|
60
|
+
* uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using
|
|
61
|
+
* `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use
|
|
62
|
+
* storage keys, the URL returned will contain a SAS.
|
|
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 applicationName The name of the application. This must be unique within the account.
|
|
66
|
+
* @param versionName The version of the application.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
create(
|
|
70
|
+
resourceGroupName: string,
|
|
71
|
+
accountName: string,
|
|
72
|
+
applicationName: string,
|
|
73
|
+
versionName: string,
|
|
74
|
+
options?: ApplicationPackageCreateOptionalParams
|
|
75
|
+
): Promise<ApplicationPackageCreateResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Deletes an application package record and its associated binary file.
|
|
78
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
79
|
+
* @param accountName The name of the Batch account.
|
|
80
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
81
|
+
* @param versionName The version of the application.
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
delete(
|
|
85
|
+
resourceGroupName: string,
|
|
86
|
+
accountName: string,
|
|
87
|
+
applicationName: string,
|
|
88
|
+
versionName: string,
|
|
89
|
+
options?: ApplicationPackageDeleteOptionalParams
|
|
90
|
+
): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* Gets information about the specified application package.
|
|
93
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
94
|
+
* @param accountName The name of the Batch account.
|
|
95
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
96
|
+
* @param versionName The version of the application.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
get(
|
|
100
|
+
resourceGroupName: string,
|
|
101
|
+
accountName: string,
|
|
102
|
+
applicationName: string,
|
|
103
|
+
versionName: string,
|
|
104
|
+
options?: ApplicationPackageGetOptionalParams
|
|
105
|
+
): Promise<ApplicationPackageGetResponse>;
|
|
106
|
+
}
|