@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
|
@@ -0,0 +1,278 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing PrivateEndpointConnectionOperations operations. */
|
|
16
|
+
export class PrivateEndpointConnectionOperationsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class PrivateEndpointConnectionOperations class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Lists all of the private endpoint connections in the specified account.
|
|
26
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
27
|
+
* @param accountName The name of the Batch account.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByBatchAccount(resourceGroupName, accountName, options) {
|
|
31
|
+
const iter = this.listByBatchAccountPagingAll(resourceGroupName, accountName, options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.listByBatchAccountPagingPage(resourceGroupName, accountName, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listByBatchAccountPagingPage(resourceGroupName, accountName, options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listByBatchAccountPagingPage_1() {
|
|
46
|
+
let result = yield __await(this._listByBatchAccount(resourceGroupName, accountName, options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._listByBatchAccountNext(resourceGroupName, accountName, continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
listByBatchAccountPagingAll(resourceGroupName, accountName, options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* listByBatchAccountPagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.listByBatchAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Lists all of the private endpoint connections in the specified account.
|
|
76
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
77
|
+
* @param accountName The name of the Batch account.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
_listByBatchAccount(resourceGroupName, accountName, options) {
|
|
81
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByBatchAccountOperationSpec);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Gets information about the specified private endpoint connection.
|
|
85
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
86
|
+
* @param accountName The name of the Batch account.
|
|
87
|
+
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
88
|
+
* within the account.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
get(resourceGroupName, accountName, privateEndpointConnectionName, options) {
|
|
92
|
+
return this.client.sendOperationRequest({
|
|
93
|
+
resourceGroupName,
|
|
94
|
+
accountName,
|
|
95
|
+
privateEndpointConnectionName,
|
|
96
|
+
options
|
|
97
|
+
}, getOperationSpec);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Updates the properties of an existing private endpoint connection.
|
|
101
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
102
|
+
* @param accountName The name of the Batch account.
|
|
103
|
+
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
104
|
+
* within the account.
|
|
105
|
+
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are
|
|
106
|
+
* supplied will be updated, any property not supplied will be unchanged.
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
beginUpdate(resourceGroupName, accountName, privateEndpointConnectionName, parameters, options) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
return this.client.sendOperationRequest(args, spec);
|
|
113
|
+
});
|
|
114
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
var _a;
|
|
116
|
+
let currentRawResponse = undefined;
|
|
117
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
118
|
+
const callback = (rawResponse, flatResponse) => {
|
|
119
|
+
currentRawResponse = rawResponse;
|
|
120
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
121
|
+
};
|
|
122
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
123
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
124
|
+
return {
|
|
125
|
+
flatResponse,
|
|
126
|
+
rawResponse: {
|
|
127
|
+
statusCode: currentRawResponse.status,
|
|
128
|
+
body: currentRawResponse.parsedBody,
|
|
129
|
+
headers: currentRawResponse.headers.toJSON()
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
const lro = new LroImpl(sendOperation, {
|
|
134
|
+
resourceGroupName,
|
|
135
|
+
accountName,
|
|
136
|
+
privateEndpointConnectionName,
|
|
137
|
+
parameters,
|
|
138
|
+
options
|
|
139
|
+
}, updateOperationSpec);
|
|
140
|
+
return new LroEngine(lro, {
|
|
141
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
142
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
143
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Updates the properties of an existing private endpoint connection.
|
|
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 privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
152
|
+
* within the account.
|
|
153
|
+
* @param parameters PrivateEndpointConnection properties that should be updated. Properties that are
|
|
154
|
+
* supplied will be updated, any property not supplied will be unchanged.
|
|
155
|
+
* @param options The options parameters.
|
|
156
|
+
*/
|
|
157
|
+
beginUpdateAndWait(resourceGroupName, accountName, privateEndpointConnectionName, parameters, options) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const poller = yield this.beginUpdate(resourceGroupName, accountName, privateEndpointConnectionName, parameters, options);
|
|
160
|
+
return poller.pollUntilDone();
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* ListByBatchAccountNext
|
|
165
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
166
|
+
* @param accountName The name of the Batch account.
|
|
167
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
|
|
168
|
+
* @param options The options parameters.
|
|
169
|
+
*/
|
|
170
|
+
_listByBatchAccountNext(resourceGroupName, accountName, nextLink, options) {
|
|
171
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByBatchAccountNextOperationSpec);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
// Operation Specifications
|
|
175
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
176
|
+
const listByBatchAccountOperationSpec = {
|
|
177
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections",
|
|
178
|
+
httpMethod: "GET",
|
|
179
|
+
responses: {
|
|
180
|
+
200: {
|
|
181
|
+
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult
|
|
182
|
+
},
|
|
183
|
+
default: {
|
|
184
|
+
bodyMapper: Mappers.CloudError
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
188
|
+
urlParameters: [
|
|
189
|
+
Parameters.$host,
|
|
190
|
+
Parameters.resourceGroupName,
|
|
191
|
+
Parameters.subscriptionId,
|
|
192
|
+
Parameters.accountName1
|
|
193
|
+
],
|
|
194
|
+
headerParameters: [Parameters.accept],
|
|
195
|
+
serializer
|
|
196
|
+
};
|
|
197
|
+
const getOperationSpec = {
|
|
198
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
199
|
+
httpMethod: "GET",
|
|
200
|
+
responses: {
|
|
201
|
+
200: {
|
|
202
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
203
|
+
},
|
|
204
|
+
default: {
|
|
205
|
+
bodyMapper: Mappers.CloudError
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
queryParameters: [Parameters.apiVersion],
|
|
209
|
+
urlParameters: [
|
|
210
|
+
Parameters.$host,
|
|
211
|
+
Parameters.resourceGroupName,
|
|
212
|
+
Parameters.subscriptionId,
|
|
213
|
+
Parameters.accountName1,
|
|
214
|
+
Parameters.privateEndpointConnectionName
|
|
215
|
+
],
|
|
216
|
+
headerParameters: [Parameters.accept],
|
|
217
|
+
serializer
|
|
218
|
+
};
|
|
219
|
+
const updateOperationSpec = {
|
|
220
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
221
|
+
httpMethod: "PATCH",
|
|
222
|
+
responses: {
|
|
223
|
+
200: {
|
|
224
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
225
|
+
},
|
|
226
|
+
201: {
|
|
227
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
228
|
+
},
|
|
229
|
+
202: {
|
|
230
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
231
|
+
},
|
|
232
|
+
204: {
|
|
233
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
234
|
+
},
|
|
235
|
+
default: {
|
|
236
|
+
bodyMapper: Mappers.CloudError
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
requestBody: Parameters.parameters9,
|
|
240
|
+
queryParameters: [Parameters.apiVersion],
|
|
241
|
+
urlParameters: [
|
|
242
|
+
Parameters.$host,
|
|
243
|
+
Parameters.resourceGroupName,
|
|
244
|
+
Parameters.subscriptionId,
|
|
245
|
+
Parameters.accountName1,
|
|
246
|
+
Parameters.privateEndpointConnectionName
|
|
247
|
+
],
|
|
248
|
+
headerParameters: [
|
|
249
|
+
Parameters.contentType,
|
|
250
|
+
Parameters.accept,
|
|
251
|
+
Parameters.ifMatch
|
|
252
|
+
],
|
|
253
|
+
mediaType: "json",
|
|
254
|
+
serializer
|
|
255
|
+
};
|
|
256
|
+
const listByBatchAccountNextOperationSpec = {
|
|
257
|
+
path: "{nextLink}",
|
|
258
|
+
httpMethod: "GET",
|
|
259
|
+
responses: {
|
|
260
|
+
200: {
|
|
261
|
+
bodyMapper: Mappers.ListPrivateEndpointConnectionsResult
|
|
262
|
+
},
|
|
263
|
+
default: {
|
|
264
|
+
bodyMapper: Mappers.CloudError
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
268
|
+
urlParameters: [
|
|
269
|
+
Parameters.$host,
|
|
270
|
+
Parameters.resourceGroupName,
|
|
271
|
+
Parameters.subscriptionId,
|
|
272
|
+
Parameters.accountName1,
|
|
273
|
+
Parameters.nextLink
|
|
274
|
+
],
|
|
275
|
+
headerParameters: [Parameters.accept],
|
|
276
|
+
serializer
|
|
277
|
+
};
|
|
278
|
+
//# sourceMappingURL=privateEndpointConnectionOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnectionOperations.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnectionOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC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QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { PrivateLinkResourceOperations } from "../operationsInterfaces";
|
|
3
|
+
import { BatchManagementClientContext } from "../batchManagementClientContext";
|
|
4
|
+
import { PrivateLinkResource, PrivateLinkResourceListByBatchAccountOptionalParams, PrivateLinkResourceGetOptionalParams, PrivateLinkResourceGetResponse } from "../models";
|
|
5
|
+
/** Class containing PrivateLinkResourceOperations operations. */
|
|
6
|
+
export declare class PrivateLinkResourceOperationsImpl implements PrivateLinkResourceOperations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class PrivateLinkResourceOperations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: BatchManagementClientContext);
|
|
13
|
+
/**
|
|
14
|
+
* Lists all of the private link resources in the specified account.
|
|
15
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
16
|
+
* @param accountName The name of the Batch account.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
listByBatchAccount(resourceGroupName: string, accountName: string, options?: PrivateLinkResourceListByBatchAccountOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
|
|
20
|
+
private listByBatchAccountPagingPage;
|
|
21
|
+
private listByBatchAccountPagingAll;
|
|
22
|
+
/**
|
|
23
|
+
* Lists all of the private link resources in the specified account.
|
|
24
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
25
|
+
* @param accountName The name of the Batch account.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
private _listByBatchAccount;
|
|
29
|
+
/**
|
|
30
|
+
* Gets information about the specified private link resource.
|
|
31
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
32
|
+
* @param accountName The name of the Batch account.
|
|
33
|
+
* @param privateLinkResourceName The private link resource name. This must be unique within the
|
|
34
|
+
* account.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
get(resourceGroupName: string, accountName: string, privateLinkResourceName: string, options?: PrivateLinkResourceGetOptionalParams): Promise<PrivateLinkResourceGetResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* ListByBatchAccountNext
|
|
40
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
41
|
+
* @param accountName The name of the Batch account.
|
|
42
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
private _listByBatchAccountNext;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=privateLinkResourceOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResourceOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResourceOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAIxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EACL,mBAAmB,EAEnB,mDAAmD,EAEnD,oCAAoC,EACpC,8BAA8B,EAE/B,MAAM,WAAW,CAAC;AAGnB,iEAAiE;AACjE,qBAAa,iCACX,YAAW,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;IAEtD;;;OAGG;gBACS,MAAM,EAAE,4BAA4B;IAIhD;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,mDAAmD,GAC5D,0BAA0B,CAAC,mBAAmB,CAAC;YAuBnC,4BAA4B;YAwB5B,2BAA2B;IAc1C;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAW3B;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC;IAO1C;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;CAWhC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing PrivateLinkResourceOperations operations. */
|
|
14
|
+
export class PrivateLinkResourceOperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class PrivateLinkResourceOperations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Lists all of the private link resources in the specified account.
|
|
24
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
25
|
+
* @param accountName The name of the Batch account.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listByBatchAccount(resourceGroupName, accountName, options) {
|
|
29
|
+
const iter = this.listByBatchAccountPagingAll(resourceGroupName, accountName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listByBatchAccountPagingPage(resourceGroupName, accountName, options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listByBatchAccountPagingPage(resourceGroupName, accountName, options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listByBatchAccountPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._listByBatchAccount(resourceGroupName, accountName, options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listByBatchAccountNext(resourceGroupName, accountName, continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listByBatchAccountPagingAll(resourceGroupName, accountName, options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listByBatchAccountPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listByBatchAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Lists all of the private link resources in the specified account.
|
|
74
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
75
|
+
* @param accountName The name of the Batch account.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
_listByBatchAccount(resourceGroupName, accountName, options) {
|
|
79
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByBatchAccountOperationSpec);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Gets information about the specified private link resource.
|
|
83
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
84
|
+
* @param accountName The name of the Batch account.
|
|
85
|
+
* @param privateLinkResourceName The private link resource name. This must be unique within the
|
|
86
|
+
* account.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
get(resourceGroupName, accountName, privateLinkResourceName, options) {
|
|
90
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, privateLinkResourceName, options }, getOperationSpec);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* ListByBatchAccountNext
|
|
94
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
95
|
+
* @param accountName The name of the Batch account.
|
|
96
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
_listByBatchAccountNext(resourceGroupName, accountName, nextLink, options) {
|
|
100
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByBatchAccountNextOperationSpec);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Operation Specifications
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
const listByBatchAccountOperationSpec = {
|
|
106
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources",
|
|
107
|
+
httpMethod: "GET",
|
|
108
|
+
responses: {
|
|
109
|
+
200: {
|
|
110
|
+
bodyMapper: Mappers.ListPrivateLinkResourcesResult
|
|
111
|
+
},
|
|
112
|
+
default: {
|
|
113
|
+
bodyMapper: Mappers.CloudError
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
117
|
+
urlParameters: [
|
|
118
|
+
Parameters.$host,
|
|
119
|
+
Parameters.resourceGroupName,
|
|
120
|
+
Parameters.subscriptionId,
|
|
121
|
+
Parameters.accountName1
|
|
122
|
+
],
|
|
123
|
+
headerParameters: [Parameters.accept],
|
|
124
|
+
serializer
|
|
125
|
+
};
|
|
126
|
+
const getOperationSpec = {
|
|
127
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}",
|
|
128
|
+
httpMethod: "GET",
|
|
129
|
+
responses: {
|
|
130
|
+
200: {
|
|
131
|
+
bodyMapper: Mappers.PrivateLinkResource
|
|
132
|
+
},
|
|
133
|
+
default: {
|
|
134
|
+
bodyMapper: Mappers.CloudError
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
queryParameters: [Parameters.apiVersion],
|
|
138
|
+
urlParameters: [
|
|
139
|
+
Parameters.$host,
|
|
140
|
+
Parameters.resourceGroupName,
|
|
141
|
+
Parameters.subscriptionId,
|
|
142
|
+
Parameters.accountName1,
|
|
143
|
+
Parameters.privateLinkResourceName
|
|
144
|
+
],
|
|
145
|
+
headerParameters: [Parameters.accept],
|
|
146
|
+
serializer
|
|
147
|
+
};
|
|
148
|
+
const listByBatchAccountNextOperationSpec = {
|
|
149
|
+
path: "{nextLink}",
|
|
150
|
+
httpMethod: "GET",
|
|
151
|
+
responses: {
|
|
152
|
+
200: {
|
|
153
|
+
bodyMapper: Mappers.ListPrivateLinkResourcesResult
|
|
154
|
+
},
|
|
155
|
+
default: {
|
|
156
|
+
bodyMapper: Mappers.CloudError
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
160
|
+
urlParameters: [
|
|
161
|
+
Parameters.$host,
|
|
162
|
+
Parameters.resourceGroupName,
|
|
163
|
+
Parameters.subscriptionId,
|
|
164
|
+
Parameters.accountName1,
|
|
165
|
+
Parameters.nextLink
|
|
166
|
+
],
|
|
167
|
+
headerParameters: [Parameters.accept],
|
|
168
|
+
serializer
|
|
169
|
+
};
|
|
170
|
+
//# sourceMappingURL=privateLinkResourceOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResourceOperations.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResourceOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAYnD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAM,OAAO,iCAAiC;IAI5C;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,WAAmB,EACnB,OAA6D;QAE7D,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,4BAA4B,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IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAC/D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Application, ApplicationListOptionalParams, ApplicationCreateOptionalParams, ApplicationCreateResponse, ApplicationDeleteOptionalParams, ApplicationGetOptionalParams, ApplicationGetResponse, ApplicationUpdateOptionalParams, ApplicationUpdateResponse } from "../models";
|
|
3
|
+
/** Interface representing a ApplicationOperations. */
|
|
4
|
+
export interface ApplicationOperations {
|
|
5
|
+
/**
|
|
6
|
+
* Lists all of the applications in the specified account.
|
|
7
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
8
|
+
* @param accountName The name of the Batch account.
|
|
9
|
+
* @param options The options parameters.
|
|
10
|
+
*/
|
|
11
|
+
list(resourceGroupName: string, accountName: string, options?: ApplicationListOptionalParams): PagedAsyncIterableIterator<Application>;
|
|
12
|
+
/**
|
|
13
|
+
* Adds an application to the specified Batch account.
|
|
14
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
15
|
+
* @param accountName The name of the Batch account.
|
|
16
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
create(resourceGroupName: string, accountName: string, applicationName: string, options?: ApplicationCreateOptionalParams): Promise<ApplicationCreateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Deletes an application.
|
|
22
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
23
|
+
* @param accountName The name of the Batch account.
|
|
24
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
delete(resourceGroupName: string, accountName: string, applicationName: string, options?: ApplicationDeleteOptionalParams): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Gets information about the specified application.
|
|
30
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
31
|
+
* @param accountName The name of the Batch account.
|
|
32
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
get(resourceGroupName: string, accountName: string, applicationName: string, options?: ApplicationGetOptionalParams): Promise<ApplicationGetResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Updates settings for the specified application.
|
|
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 parameters The parameters for the request.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
update(resourceGroupName: string, accountName: string, applicationName: string, parameters: Application, options?: ApplicationUpdateOptionalParams): Promise<ApplicationUpdateResponse>;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=applicationOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicationOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/applicationOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,WAAW,EACX,6BAA6B,EAC7B,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,4BAA4B,EAC5B,sBAAsB,EACtB,+BAA+B,EAC/B,yBAAyB,EAC1B,MAAM,WAAW,CAAC;AAGnB,sDAAsD;AACtD,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,6BAA6B,GACtC,0BAA0B,CAAC,WAAW,CAAC,CAAC;IAC3C;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,WAAW,EACvB,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACvC"}
|
|
@@ -5,10 +5,5 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
CloudError,
|
|
11
|
-
Operation,
|
|
12
|
-
OperationDisplay,
|
|
13
|
-
OperationListResult
|
|
14
|
-
} from "../models/mappers";
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=applicationOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicationOperations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/applicationOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { ApplicationPackage, ApplicationPackageListOptionalParams, ActivateApplicationPackageParameters, ApplicationPackageActivateOptionalParams, ApplicationPackageActivateResponse, ApplicationPackageCreateOptionalParams, ApplicationPackageCreateResponse, ApplicationPackageDeleteOptionalParams, ApplicationPackageGetOptionalParams, ApplicationPackageGetResponse } from "../models";
|
|
3
|
+
/** Interface representing a ApplicationPackageOperations. */
|
|
4
|
+
export interface ApplicationPackageOperations {
|
|
5
|
+
/**
|
|
6
|
+
* Lists all of the application packages in the specified application.
|
|
7
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
8
|
+
* @param accountName The name of the Batch account.
|
|
9
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
list(resourceGroupName: string, accountName: string, applicationName: string, options?: ApplicationPackageListOptionalParams): PagedAsyncIterableIterator<ApplicationPackage>;
|
|
13
|
+
/**
|
|
14
|
+
* Activates the specified application package. This should be done after the `ApplicationPackage` was
|
|
15
|
+
* created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or
|
|
16
|
+
* Tasks.
|
|
17
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
18
|
+
* @param accountName The name of the Batch account.
|
|
19
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
20
|
+
* @param versionName The version of the application.
|
|
21
|
+
* @param parameters The parameters for the request.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
activate(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, parameters: ActivateApplicationPackageParameters, options?: ApplicationPackageActivateOptionalParams): Promise<ApplicationPackageActivateResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Creates an application package record. The record contains a storageUrl where the package should be
|
|
27
|
+
* uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using
|
|
28
|
+
* `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use
|
|
29
|
+
* storage keys, the URL returned will contain a SAS.
|
|
30
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
31
|
+
* @param accountName The name of the Batch account.
|
|
32
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
33
|
+
* @param versionName The version of the application.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
create(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: ApplicationPackageCreateOptionalParams): Promise<ApplicationPackageCreateResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* Deletes an application package record and its associated binary file.
|
|
39
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
40
|
+
* @param accountName The name of the Batch account.
|
|
41
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
42
|
+
* @param versionName The version of the application.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
delete(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: ApplicationPackageDeleteOptionalParams): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Gets information about the specified application package.
|
|
48
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
49
|
+
* @param accountName The name of the Batch account.
|
|
50
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
51
|
+
* @param versionName The version of the application.
|
|
52
|
+
* @param options The options parameters.
|
|
53
|
+
*/
|
|
54
|
+
get(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: ApplicationPackageGetOptionalParams): Promise<ApplicationPackageGetResponse>;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=applicationPackageOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicationPackageOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/applicationPackageOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,kBAAkB,EAClB,oCAAoC,EACpC,oCAAoC,EACpC,wCAAwC,EACxC,kCAAkC,EAClC,sCAAsC,EACtC,gCAAgC,EAChC,sCAAsC,EACtC,mCAAmC,EACnC,6BAA6B,EAC9B,MAAM,WAAW,CAAC;AAGnB,6DAA6D;AAC7D,MAAM,WAAW,4BAA4B;IAC3C;;;;;;OAMG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,0BAA0B,CAAC,kBAAkB,CAAC,CAAC;IAClD;;;;;;;;;;OAUG;IACH,QAAQ,CACN,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,oCAAoC,EAChD,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,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