@azure/arm-batch 6.0.0 → 7.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -82
- package/dist/index.js +6873 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/batchManagementClient.d.ts +24 -0
- package/dist-esm/src/batchManagementClient.d.ts.map +1 -0
- package/dist-esm/src/batchManagementClient.js +31 -0
- package/dist-esm/src/batchManagementClient.js.map +1 -0
- package/dist-esm/src/batchManagementClientContext.d.ts +17 -0
- package/dist-esm/src/batchManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/batchManagementClientContext.js +50 -0
- package/dist-esm/src/batchManagementClientContext.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1780 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/index.js +1 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +112 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1723 -1885
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +34 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +303 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/applicationOperations.d.ts +71 -0
- package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/applicationOperations.js +269 -0
- package/dist-esm/src/operations/applicationOperations.js.map +1 -0
- package/dist-esm/src/operations/applicationPackageOperations.d.ts +83 -0
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/applicationPackageOperations.js +294 -0
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -0
- package/dist-esm/src/operations/batchAccountOperations.d.ts +171 -0
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/batchAccountOperations.js +681 -0
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -0
- package/dist-esm/src/operations/certificateOperations.d.ts +106 -0
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/certificateOperations.js +388 -0
- package/dist-esm/src/operations/certificateOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/location.d.ts +71 -0
- package/dist-esm/src/operations/location.d.ts.map +1 -0
- package/dist-esm/src/operations/location.js +316 -0
- package/dist-esm/src/operations/location.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/poolOperations.d.ts +103 -0
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/poolOperations.js +410 -0
- package/dist-esm/src/operations/poolOperations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +70 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +278 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +47 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.js +170 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/applicationOperations.js} +2 -7
- package/dist-esm/src/operationsInterfaces/applicationOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/applicationPackageOperations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +112 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -0
- package/{src/models/locationMappers.ts → dist-esm/src/operationsInterfaces/batchAccountOperations.js} +2 -10
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +17 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts +31 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.js +9 -0
- package/dist-esm/src/operationsInterfaces/location.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +4 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +479 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +66 -32
- package/review/arm-batch.api.md +1459 -0
- package/rollup.config.js +181 -30
- package/src/batchManagementClient.ts +59 -48
- package/src/batchManagementClientContext.ts +46 -43
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1460 -3635
- package/src/models/mappers.ts +1705 -1851
- package/src/models/parameters.ts +216 -117
- package/src/operations/applicationOperations.ts +215 -263
- package/src/operations/applicationPackageOperations.ts +252 -279
- package/src/operations/batchAccountOperations.ts +660 -572
- package/src/operations/certificateOperations.ts +360 -359
- package/src/operations/index.ts +1 -2
- package/src/operations/location.ts +285 -234
- package/src/operations/operations.ts +82 -70
- package/src/operations/poolOperations.ts +373 -378
- package/src/operations/privateEndpointConnectionOperations.ts +269 -169
- package/src/operations/privateLinkResourceOperations.ts +156 -126
- package/src/operationsInterfaces/applicationOperations.ts +90 -0
- package/src/operationsInterfaces/applicationPackageOperations.ts +106 -0
- package/src/operationsInterfaces/batchAccountOperations.ts +196 -0
- package/src/operationsInterfaces/certificateOperations.ts +139 -0
- package/src/operationsInterfaces/index.ts +17 -0
- package/src/operationsInterfaces/location.ts +62 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/poolOperations.ts +142 -0
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +87 -0
- package/src/operationsInterfaces/privateLinkResourceOperations.ts +45 -0
- package/tsconfig.json +3 -3
- package/types/arm-batch.d.ts +2528 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-batch.js +0 -6972
- package/dist/arm-batch.js.map +0 -1
- package/dist/arm-batch.min.js +0 -1
- package/dist/arm-batch.min.js.map +0 -1
- package/esm/batchManagementClient.d.ts +0 -33
- package/esm/batchManagementClient.d.ts.map +0 -1
- package/esm/batchManagementClient.js +0 -46
- package/esm/batchManagementClient.js.map +0 -1
- package/esm/batchManagementClientContext.d.ts +0 -23
- package/esm/batchManagementClientContext.d.ts.map +0 -1
- package/esm/batchManagementClientContext.js +0 -61
- package/esm/batchManagementClientContext.js.map +0 -1
- package/esm/models/applicationOperationsMappers.d.ts +0 -2
- package/esm/models/applicationOperationsMappers.d.ts.map +0 -1
- package/esm/models/applicationOperationsMappers.js +0 -9
- package/esm/models/applicationOperationsMappers.js.map +0 -1
- package/esm/models/applicationPackageOperationsMappers.d.ts +0 -2
- package/esm/models/applicationPackageOperationsMappers.d.ts.map +0 -1
- package/esm/models/applicationPackageOperationsMappers.js +0 -9
- package/esm/models/applicationPackageOperationsMappers.js.map +0 -1
- package/esm/models/batchAccountOperationsMappers.d.ts +0 -2
- package/esm/models/batchAccountOperationsMappers.d.ts.map +0 -1
- package/esm/models/batchAccountOperationsMappers.js +0 -9
- package/esm/models/batchAccountOperationsMappers.js.map +0 -1
- package/esm/models/certificateOperationsMappers.d.ts +0 -2
- package/esm/models/certificateOperationsMappers.d.ts.map +0 -1
- package/esm/models/certificateOperationsMappers.js +0 -9
- package/esm/models/certificateOperationsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3946
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationMappers.d.ts +0 -2
- package/esm/models/locationMappers.d.ts.map +0 -1
- package/esm/models/locationMappers.js +0 -9
- package/esm/models/locationMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -110
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -21
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -250
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/poolOperationsMappers.d.ts +0 -2
- package/esm/models/poolOperationsMappers.d.ts.map +0 -1
- package/esm/models/poolOperationsMappers.js +0 -9
- package/esm/models/poolOperationsMappers.js.map +0 -1
- package/esm/models/privateEndpointConnectionOperationsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionOperationsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionOperationsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionOperationsMappers.js.map +0 -1
- package/esm/models/privateLinkResourceOperationsMappers.d.ts +0 -2
- package/esm/models/privateLinkResourceOperationsMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourceOperationsMappers.js +0 -9
- package/esm/models/privateLinkResourceOperationsMappers.js.map +0 -1
- package/esm/operations/applicationOperations.d.ts +0 -151
- package/esm/operations/applicationOperations.d.ts.map +0 -1
- package/esm/operations/applicationOperations.js +0 -232
- package/esm/operations/applicationOperations.js.map +0 -1
- package/esm/operations/applicationPackageOperations.d.ts +0 -171
- package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
- package/esm/operations/applicationPackageOperations.js +0 -244
- package/esm/operations/applicationPackageOperations.js.map +0 -1
- package/esm/operations/batchAccountOperations.d.ts +0 -299
- package/esm/operations/batchAccountOperations.d.ts.map +0 -1
- package/esm/operations/batchAccountOperations.js +0 -493
- package/esm/operations/batchAccountOperations.js.map +0 -1
- package/esm/operations/certificateOperations.d.ts +0 -207
- package/esm/operations/certificateOperations.d.ts.map +0 -1
- package/esm/operations/certificateOperations.js +0 -310
- package/esm/operations/certificateOperations.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/location.d.ts +0 -124
- package/esm/operations/location.d.ts.map +0 -1
- package/esm/operations/location.js +0 -216
- package/esm/operations/location.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/poolOperations.d.ts +0 -206
- package/esm/operations/poolOperations.d.ts.map +0 -1
- package/esm/operations/poolOperations.js +0 -341
- package/esm/operations/poolOperations.js.map +0 -1
- package/esm/operations/privateEndpointConnectionOperations.d.ts +0 -104
- package/esm/operations/privateEndpointConnectionOperations.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnectionOperations.js +0 -195
- package/esm/operations/privateEndpointConnectionOperations.js.map +0 -1
- package/esm/operations/privateLinkResourceOperations.d.ts +0 -79
- package/esm/operations/privateLinkResourceOperations.d.ts.map +0 -1
- package/esm/operations/privateLinkResourceOperations.js +0 -121
- package/esm/operations/privateLinkResourceOperations.js.map +0 -1
- package/src/models/applicationOperationsMappers.ts +0 -79
- package/src/models/applicationPackageOperationsMappers.ts +0 -80
- package/src/models/batchAccountOperationsMappers.ts +0 -89
- package/src/models/certificateOperationsMappers.ts +0 -84
- package/src/models/poolOperationsMappers.ts +0 -85
- package/src/models/privateEndpointConnectionOperationsMappers.ts +0 -80
- package/src/models/privateLinkResourceOperationsMappers.ts +0 -79
|
@@ -3,155 +3,200 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ApplicationPackageOperations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
14
|
import { BatchManagementClientContext } from "../batchManagementClientContext";
|
|
15
|
+
import {
|
|
16
|
+
ApplicationPackage,
|
|
17
|
+
ApplicationPackageListNextOptionalParams,
|
|
18
|
+
ApplicationPackageListOptionalParams,
|
|
19
|
+
ActivateApplicationPackageParameters,
|
|
20
|
+
ApplicationPackageActivateOptionalParams,
|
|
21
|
+
ApplicationPackageActivateResponse,
|
|
22
|
+
ApplicationPackageCreateOptionalParams,
|
|
23
|
+
ApplicationPackageCreateResponse,
|
|
24
|
+
ApplicationPackageDeleteOptionalParams,
|
|
25
|
+
ApplicationPackageGetOptionalParams,
|
|
26
|
+
ApplicationPackageGetResponse,
|
|
27
|
+
ApplicationPackageListResponse,
|
|
28
|
+
ApplicationPackageListNextResponse
|
|
29
|
+
} from "../models";
|
|
15
30
|
|
|
16
|
-
|
|
17
|
-
|
|
31
|
+
/// <reference lib="esnext.asynciterable" />
|
|
32
|
+
/** Class containing ApplicationPackageOperations operations. */
|
|
33
|
+
export class ApplicationPackageOperationsImpl
|
|
34
|
+
implements ApplicationPackageOperations {
|
|
18
35
|
private readonly client: BatchManagementClientContext;
|
|
19
36
|
|
|
20
37
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
38
|
+
* Initialize a new instance of the class ApplicationPackageOperations class.
|
|
39
|
+
* @param client Reference to the service client
|
|
23
40
|
*/
|
|
24
41
|
constructor(client: BatchManagementClientContext) {
|
|
25
42
|
this.client = client;
|
|
26
43
|
}
|
|
27
44
|
|
|
28
45
|
/**
|
|
29
|
-
*
|
|
30
|
-
* was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on
|
|
31
|
-
* Pools or Tasks.
|
|
32
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
33
|
-
* @param accountName The name of the Batch account.
|
|
34
|
-
* @param applicationName The name of the application. This must be unique within the account.
|
|
35
|
-
* @param versionName The version of the application.
|
|
36
|
-
* @param format The format of the application package binary file.
|
|
37
|
-
* @param [options] The optional parameters
|
|
38
|
-
* @returns Promise<Models.ApplicationPackageActivateResponse>
|
|
39
|
-
*/
|
|
40
|
-
activate(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, format: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplicationPackageActivateResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
43
|
-
* @param accountName The name of the Batch account.
|
|
44
|
-
* @param applicationName The name of the application. This must be unique within the account.
|
|
45
|
-
* @param versionName The version of the application.
|
|
46
|
-
* @param format The format of the application package binary file.
|
|
47
|
-
* @param callback The callback
|
|
48
|
-
*/
|
|
49
|
-
activate(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, format: string, callback: msRest.ServiceCallback<Models.ApplicationPackage>): void;
|
|
50
|
-
/**
|
|
46
|
+
* Lists all of the application packages in the specified application.
|
|
51
47
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
52
48
|
* @param accountName The name of the Batch account.
|
|
53
49
|
* @param applicationName The name of the application. This must be unique within the account.
|
|
54
|
-
* @param
|
|
55
|
-
* @param format The format of the application package binary file.
|
|
56
|
-
* @param options The optional parameters
|
|
57
|
-
* @param callback The callback
|
|
50
|
+
* @param options The options parameters.
|
|
58
51
|
*/
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
public list(
|
|
53
|
+
resourceGroupName: string,
|
|
54
|
+
accountName: string,
|
|
55
|
+
applicationName: string,
|
|
56
|
+
options?: ApplicationPackageListOptionalParams
|
|
57
|
+
): PagedAsyncIterableIterator<ApplicationPackage> {
|
|
58
|
+
const iter = this.listPagingAll(
|
|
59
|
+
resourceGroupName,
|
|
60
|
+
accountName,
|
|
61
|
+
applicationName,
|
|
62
|
+
options
|
|
63
|
+
);
|
|
64
|
+
return {
|
|
65
|
+
next() {
|
|
66
|
+
return iter.next();
|
|
67
|
+
},
|
|
68
|
+
[Symbol.asyncIterator]() {
|
|
69
|
+
return this;
|
|
70
|
+
},
|
|
71
|
+
byPage: () => {
|
|
72
|
+
return this.listPagingPage(
|
|
73
|
+
resourceGroupName,
|
|
74
|
+
accountName,
|
|
75
|
+
applicationName,
|
|
76
|
+
options
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listPagingPage(
|
|
83
|
+
resourceGroupName: string,
|
|
84
|
+
accountName: string,
|
|
85
|
+
applicationName: string,
|
|
86
|
+
options?: ApplicationPackageListOptionalParams
|
|
87
|
+
): AsyncIterableIterator<ApplicationPackage[]> {
|
|
88
|
+
let result = await this._list(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
accountName,
|
|
91
|
+
applicationName,
|
|
92
|
+
options
|
|
93
|
+
);
|
|
94
|
+
yield result.value || [];
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = await this._listNext(
|
|
63
98
|
resourceGroupName,
|
|
64
99
|
accountName,
|
|
65
100
|
applicationName,
|
|
66
|
-
|
|
67
|
-
format,
|
|
101
|
+
continuationToken,
|
|
68
102
|
options
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
103
|
+
);
|
|
104
|
+
continuationToken = result.nextLink;
|
|
105
|
+
yield result.value || [];
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
private async *listPagingAll(
|
|
110
|
+
resourceGroupName: string,
|
|
111
|
+
accountName: string,
|
|
112
|
+
applicationName: string,
|
|
113
|
+
options?: ApplicationPackageListOptionalParams
|
|
114
|
+
): AsyncIterableIterator<ApplicationPackage> {
|
|
115
|
+
for await (const page of this.listPagingPage(
|
|
116
|
+
resourceGroupName,
|
|
117
|
+
accountName,
|
|
118
|
+
applicationName,
|
|
119
|
+
options
|
|
120
|
+
)) {
|
|
121
|
+
yield* page;
|
|
122
|
+
}
|
|
72
123
|
}
|
|
73
124
|
|
|
74
125
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* use storage keys, the URL returned will contain a SAS.
|
|
79
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
80
|
-
* @param accountName The name of the Batch account.
|
|
81
|
-
* @param applicationName The name of the application. This must be unique within the account.
|
|
82
|
-
* @param versionName The version of the application.
|
|
83
|
-
* @param [options] The optional parameters
|
|
84
|
-
* @returns Promise<Models.ApplicationPackageCreateResponse>
|
|
85
|
-
*/
|
|
86
|
-
create(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplicationPackageCreateResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
89
|
-
* @param accountName The name of the Batch account.
|
|
90
|
-
* @param applicationName The name of the application. This must be unique within the account.
|
|
91
|
-
* @param versionName The version of the application.
|
|
92
|
-
* @param callback The callback
|
|
93
|
-
*/
|
|
94
|
-
create(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, callback: msRest.ServiceCallback<Models.ApplicationPackage>): void;
|
|
95
|
-
/**
|
|
126
|
+
* Activates the specified application package. This should be done after the `ApplicationPackage` was
|
|
127
|
+
* created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or
|
|
128
|
+
* Tasks.
|
|
96
129
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
97
130
|
* @param accountName The name of the Batch account.
|
|
98
131
|
* @param applicationName The name of the application. This must be unique within the account.
|
|
99
132
|
* @param versionName The version of the application.
|
|
100
|
-
* @param
|
|
101
|
-
* @param
|
|
133
|
+
* @param parameters The parameters for the request.
|
|
134
|
+
* @param options The options parameters.
|
|
102
135
|
*/
|
|
103
|
-
|
|
104
|
-
|
|
136
|
+
activate(
|
|
137
|
+
resourceGroupName: string,
|
|
138
|
+
accountName: string,
|
|
139
|
+
applicationName: string,
|
|
140
|
+
versionName: string,
|
|
141
|
+
parameters: ActivateApplicationPackageParameters,
|
|
142
|
+
options?: ApplicationPackageActivateOptionalParams
|
|
143
|
+
): Promise<ApplicationPackageActivateResponse> {
|
|
105
144
|
return this.client.sendOperationRequest(
|
|
106
145
|
{
|
|
107
146
|
resourceGroupName,
|
|
108
147
|
accountName,
|
|
109
148
|
applicationName,
|
|
110
149
|
versionName,
|
|
150
|
+
parameters,
|
|
111
151
|
options
|
|
112
152
|
},
|
|
113
|
-
|
|
114
|
-
|
|
153
|
+
activateOperationSpec
|
|
154
|
+
);
|
|
115
155
|
}
|
|
116
156
|
|
|
117
157
|
/**
|
|
118
|
-
*
|
|
158
|
+
* Creates an application package record. The record contains a storageUrl where the package should be
|
|
159
|
+
* uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using
|
|
160
|
+
* `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use
|
|
161
|
+
* storage keys, the URL returned will contain a SAS.
|
|
119
162
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
120
163
|
* @param accountName The name of the Batch account.
|
|
121
164
|
* @param applicationName The name of the application. This must be unique within the account.
|
|
122
165
|
* @param versionName The version of the application.
|
|
123
|
-
* @param
|
|
124
|
-
* @returns Promise<msRest.RestResponse>
|
|
166
|
+
* @param options The options parameters.
|
|
125
167
|
*/
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
168
|
+
create(
|
|
169
|
+
resourceGroupName: string,
|
|
170
|
+
accountName: string,
|
|
171
|
+
applicationName: string,
|
|
172
|
+
versionName: string,
|
|
173
|
+
options?: ApplicationPackageCreateOptionalParams
|
|
174
|
+
): Promise<ApplicationPackageCreateResponse> {
|
|
175
|
+
return this.client.sendOperationRequest(
|
|
176
|
+
{ resourceGroupName, accountName, applicationName, versionName, options },
|
|
177
|
+
createOperationSpec
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
135
181
|
/**
|
|
182
|
+
* Deletes an application package record and its associated binary file.
|
|
136
183
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
137
184
|
* @param accountName The name of the Batch account.
|
|
138
185
|
* @param applicationName The name of the application. This must be unique within the account.
|
|
139
186
|
* @param versionName The version of the application.
|
|
140
|
-
* @param options The
|
|
141
|
-
* @param callback The callback
|
|
187
|
+
* @param options The options parameters.
|
|
142
188
|
*/
|
|
143
|
-
|
|
144
|
-
|
|
189
|
+
delete(
|
|
190
|
+
resourceGroupName: string,
|
|
191
|
+
accountName: string,
|
|
192
|
+
applicationName: string,
|
|
193
|
+
versionName: string,
|
|
194
|
+
options?: ApplicationPackageDeleteOptionalParams
|
|
195
|
+
): Promise<void> {
|
|
145
196
|
return this.client.sendOperationRequest(
|
|
146
|
-
{
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
applicationName,
|
|
150
|
-
versionName,
|
|
151
|
-
options
|
|
152
|
-
},
|
|
153
|
-
deleteMethodOperationSpec,
|
|
154
|
-
callback);
|
|
197
|
+
{ resourceGroupName, accountName, applicationName, versionName, options },
|
|
198
|
+
deleteOperationSpec
|
|
199
|
+
);
|
|
155
200
|
}
|
|
156
201
|
|
|
157
202
|
/**
|
|
@@ -160,38 +205,19 @@ export class ApplicationPackageOperations {
|
|
|
160
205
|
* @param accountName The name of the Batch account.
|
|
161
206
|
* @param applicationName The name of the application. This must be unique within the account.
|
|
162
207
|
* @param versionName The version of the application.
|
|
163
|
-
* @param
|
|
164
|
-
* @returns Promise<Models.ApplicationPackageGetResponse>
|
|
165
|
-
*/
|
|
166
|
-
get(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: msRest.RequestOptionsBase): Promise<Models.ApplicationPackageGetResponse>;
|
|
167
|
-
/**
|
|
168
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
169
|
-
* @param accountName The name of the Batch account.
|
|
170
|
-
* @param applicationName The name of the application. This must be unique within the account.
|
|
171
|
-
* @param versionName The version of the application.
|
|
172
|
-
* @param callback The callback
|
|
208
|
+
* @param options The options parameters.
|
|
173
209
|
*/
|
|
174
|
-
get(
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
* @param callback The callback
|
|
182
|
-
*/
|
|
183
|
-
get(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationPackage>): void;
|
|
184
|
-
get(resourceGroupName: string, accountName: string, applicationName: string, versionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationPackage>, callback?: msRest.ServiceCallback<Models.ApplicationPackage>): Promise<Models.ApplicationPackageGetResponse> {
|
|
210
|
+
get(
|
|
211
|
+
resourceGroupName: string,
|
|
212
|
+
accountName: string,
|
|
213
|
+
applicationName: string,
|
|
214
|
+
versionName: string,
|
|
215
|
+
options?: ApplicationPackageGetOptionalParams
|
|
216
|
+
): Promise<ApplicationPackageGetResponse> {
|
|
185
217
|
return this.client.sendOperationRequest(
|
|
186
|
-
{
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
applicationName,
|
|
190
|
-
versionName,
|
|
191
|
-
options
|
|
192
|
-
},
|
|
193
|
-
getOperationSpec,
|
|
194
|
-
callback) as Promise<Models.ApplicationPackageGetResponse>;
|
|
218
|
+
{ resourceGroupName, accountName, applicationName, versionName, options },
|
|
219
|
+
getOperationSpec
|
|
220
|
+
);
|
|
195
221
|
}
|
|
196
222
|
|
|
197
223
|
/**
|
|
@@ -199,93 +225,48 @@ export class ApplicationPackageOperations {
|
|
|
199
225
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
200
226
|
* @param accountName The name of the Batch account.
|
|
201
227
|
* @param applicationName The name of the application. This must be unique within the account.
|
|
202
|
-
* @param
|
|
203
|
-
* @returns Promise<Models.ApplicationPackageListResponse>
|
|
204
|
-
*/
|
|
205
|
-
list(resourceGroupName: string, accountName: string, applicationName: string, options?: Models.ApplicationPackageListOptionalParams): Promise<Models.ApplicationPackageListResponse>;
|
|
206
|
-
/**
|
|
207
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
208
|
-
* @param accountName The name of the Batch account.
|
|
209
|
-
* @param applicationName The name of the application. This must be unique within the account.
|
|
210
|
-
* @param callback The callback
|
|
211
|
-
*/
|
|
212
|
-
list(resourceGroupName: string, accountName: string, applicationName: string, callback: msRest.ServiceCallback<Models.ListApplicationPackagesResult>): void;
|
|
213
|
-
/**
|
|
214
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
215
|
-
* @param accountName The name of the Batch account.
|
|
216
|
-
* @param applicationName The name of the application. This must be unique within the account.
|
|
217
|
-
* @param options The optional parameters
|
|
218
|
-
* @param callback The callback
|
|
228
|
+
* @param options The options parameters.
|
|
219
229
|
*/
|
|
220
|
-
|
|
221
|
-
|
|
230
|
+
private _list(
|
|
231
|
+
resourceGroupName: string,
|
|
232
|
+
accountName: string,
|
|
233
|
+
applicationName: string,
|
|
234
|
+
options?: ApplicationPackageListOptionalParams
|
|
235
|
+
): Promise<ApplicationPackageListResponse> {
|
|
222
236
|
return this.client.sendOperationRequest(
|
|
223
|
-
{
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
applicationName,
|
|
227
|
-
options
|
|
228
|
-
},
|
|
229
|
-
listOperationSpec,
|
|
230
|
-
callback) as Promise<Models.ApplicationPackageListResponse>;
|
|
237
|
+
{ resourceGroupName, accountName, applicationName, options },
|
|
238
|
+
listOperationSpec
|
|
239
|
+
);
|
|
231
240
|
}
|
|
232
241
|
|
|
233
242
|
/**
|
|
234
|
-
*
|
|
235
|
-
* @param
|
|
236
|
-
* @param
|
|
237
|
-
* @
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
242
|
-
* @param callback The callback
|
|
243
|
-
*/
|
|
244
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ListApplicationPackagesResult>): void;
|
|
245
|
-
/**
|
|
246
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
247
|
-
* @param options The optional parameters
|
|
248
|
-
* @param callback The callback
|
|
243
|
+
* ListNext
|
|
244
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
245
|
+
* @param accountName The name of the Batch account.
|
|
246
|
+
* @param applicationName The name of the application. This must be unique within the account.
|
|
247
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
248
|
+
* @param options The options parameters.
|
|
249
249
|
*/
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
private _listNext(
|
|
251
|
+
resourceGroupName: string,
|
|
252
|
+
accountName: string,
|
|
253
|
+
applicationName: string,
|
|
254
|
+
nextLink: string,
|
|
255
|
+
options?: ApplicationPackageListNextOptionalParams
|
|
256
|
+
): Promise<ApplicationPackageListNextResponse> {
|
|
252
257
|
return this.client.sendOperationRequest(
|
|
253
|
-
{
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
},
|
|
257
|
-
listNextOperationSpec,
|
|
258
|
-
callback) as Promise<Models.ApplicationPackageListNextResponse>;
|
|
258
|
+
{ resourceGroupName, accountName, applicationName, nextLink, options },
|
|
259
|
+
listNextOperationSpec
|
|
260
|
+
);
|
|
259
261
|
}
|
|
260
262
|
}
|
|
261
|
-
|
|
262
263
|
// Operation Specifications
|
|
263
|
-
const serializer =
|
|
264
|
-
|
|
264
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
265
|
+
|
|
266
|
+
const activateOperationSpec: coreClient.OperationSpec = {
|
|
267
|
+
path:
|
|
268
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate",
|
|
265
269
|
httpMethod: "POST",
|
|
266
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate",
|
|
267
|
-
urlParameters: [
|
|
268
|
-
Parameters.resourceGroupName,
|
|
269
|
-
Parameters.accountName1,
|
|
270
|
-
Parameters.applicationName,
|
|
271
|
-
Parameters.versionName,
|
|
272
|
-
Parameters.subscriptionId
|
|
273
|
-
],
|
|
274
|
-
queryParameters: [
|
|
275
|
-
Parameters.apiVersion
|
|
276
|
-
],
|
|
277
|
-
headerParameters: [
|
|
278
|
-
Parameters.acceptLanguage
|
|
279
|
-
],
|
|
280
|
-
requestBody: {
|
|
281
|
-
parameterPath: {
|
|
282
|
-
format: "format"
|
|
283
|
-
},
|
|
284
|
-
mapper: {
|
|
285
|
-
...Mappers.ActivateApplicationPackageParameters,
|
|
286
|
-
required: true
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
270
|
responses: {
|
|
290
271
|
200: {
|
|
291
272
|
bodyMapper: Mappers.ApplicationPackage
|
|
@@ -294,32 +275,24 @@ const activateOperationSpec: msRest.OperationSpec = {
|
|
|
294
275
|
bodyMapper: Mappers.CloudError
|
|
295
276
|
}
|
|
296
277
|
},
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
const createOperationSpec: msRest.OperationSpec = {
|
|
301
|
-
httpMethod: "PUT",
|
|
302
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}",
|
|
278
|
+
requestBody: Parameters.parameters3,
|
|
279
|
+
queryParameters: [Parameters.apiVersion],
|
|
303
280
|
urlParameters: [
|
|
281
|
+
Parameters.$host,
|
|
304
282
|
Parameters.resourceGroupName,
|
|
283
|
+
Parameters.subscriptionId,
|
|
305
284
|
Parameters.accountName1,
|
|
306
285
|
Parameters.applicationName,
|
|
307
|
-
Parameters.versionName
|
|
308
|
-
Parameters.subscriptionId
|
|
309
|
-
],
|
|
310
|
-
queryParameters: [
|
|
311
|
-
Parameters.apiVersion
|
|
312
|
-
],
|
|
313
|
-
headerParameters: [
|
|
314
|
-
Parameters.acceptLanguage
|
|
286
|
+
Parameters.versionName
|
|
315
287
|
],
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
288
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
289
|
+
mediaType: "json",
|
|
290
|
+
serializer
|
|
291
|
+
};
|
|
292
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
293
|
+
path:
|
|
294
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}",
|
|
295
|
+
httpMethod: "PUT",
|
|
323
296
|
responses: {
|
|
324
297
|
200: {
|
|
325
298
|
bodyMapper: Mappers.ApplicationPackage
|
|
@@ -328,25 +301,24 @@ const createOperationSpec: msRest.OperationSpec = {
|
|
|
328
301
|
bodyMapper: Mappers.CloudError
|
|
329
302
|
}
|
|
330
303
|
},
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
335
|
-
httpMethod: "DELETE",
|
|
336
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}",
|
|
304
|
+
requestBody: Parameters.parameters4,
|
|
305
|
+
queryParameters: [Parameters.apiVersion],
|
|
337
306
|
urlParameters: [
|
|
307
|
+
Parameters.$host,
|
|
338
308
|
Parameters.resourceGroupName,
|
|
309
|
+
Parameters.subscriptionId,
|
|
339
310
|
Parameters.accountName1,
|
|
340
311
|
Parameters.applicationName,
|
|
341
|
-
Parameters.versionName
|
|
342
|
-
Parameters.subscriptionId
|
|
343
|
-
],
|
|
344
|
-
queryParameters: [
|
|
345
|
-
Parameters.apiVersion
|
|
346
|
-
],
|
|
347
|
-
headerParameters: [
|
|
348
|
-
Parameters.acceptLanguage
|
|
312
|
+
Parameters.versionName
|
|
349
313
|
],
|
|
314
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
315
|
+
mediaType: "json",
|
|
316
|
+
serializer
|
|
317
|
+
};
|
|
318
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
319
|
+
path:
|
|
320
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}",
|
|
321
|
+
httpMethod: "DELETE",
|
|
350
322
|
responses: {
|
|
351
323
|
200: {},
|
|
352
324
|
204: {},
|
|
@@ -354,25 +326,22 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
354
326
|
bodyMapper: Mappers.CloudError
|
|
355
327
|
}
|
|
356
328
|
},
|
|
357
|
-
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
361
|
-
httpMethod: "GET",
|
|
362
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}",
|
|
329
|
+
queryParameters: [Parameters.apiVersion],
|
|
363
330
|
urlParameters: [
|
|
331
|
+
Parameters.$host,
|
|
364
332
|
Parameters.resourceGroupName,
|
|
333
|
+
Parameters.subscriptionId,
|
|
365
334
|
Parameters.accountName1,
|
|
366
335
|
Parameters.applicationName,
|
|
367
|
-
Parameters.versionName
|
|
368
|
-
Parameters.subscriptionId
|
|
369
|
-
],
|
|
370
|
-
queryParameters: [
|
|
371
|
-
Parameters.apiVersion
|
|
372
|
-
],
|
|
373
|
-
headerParameters: [
|
|
374
|
-
Parameters.acceptLanguage
|
|
336
|
+
Parameters.versionName
|
|
375
337
|
],
|
|
338
|
+
headerParameters: [Parameters.accept],
|
|
339
|
+
serializer
|
|
340
|
+
};
|
|
341
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
342
|
+
path:
|
|
343
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}",
|
|
344
|
+
httpMethod: "GET",
|
|
376
345
|
responses: {
|
|
377
346
|
200: {
|
|
378
347
|
bodyMapper: Mappers.ApplicationPackage
|
|
@@ -381,25 +350,22 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
381
350
|
bodyMapper: Mappers.CloudError
|
|
382
351
|
}
|
|
383
352
|
},
|
|
384
|
-
|
|
385
|
-
};
|
|
386
|
-
|
|
387
|
-
const listOperationSpec: msRest.OperationSpec = {
|
|
388
|
-
httpMethod: "GET",
|
|
389
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions",
|
|
353
|
+
queryParameters: [Parameters.apiVersion],
|
|
390
354
|
urlParameters: [
|
|
355
|
+
Parameters.$host,
|
|
391
356
|
Parameters.resourceGroupName,
|
|
357
|
+
Parameters.subscriptionId,
|
|
392
358
|
Parameters.accountName1,
|
|
393
359
|
Parameters.applicationName,
|
|
394
|
-
Parameters.
|
|
395
|
-
],
|
|
396
|
-
queryParameters: [
|
|
397
|
-
Parameters.maxresults,
|
|
398
|
-
Parameters.apiVersion
|
|
399
|
-
],
|
|
400
|
-
headerParameters: [
|
|
401
|
-
Parameters.acceptLanguage
|
|
360
|
+
Parameters.versionName
|
|
402
361
|
],
|
|
362
|
+
headerParameters: [Parameters.accept],
|
|
363
|
+
serializer
|
|
364
|
+
};
|
|
365
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
366
|
+
path:
|
|
367
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions",
|
|
368
|
+
httpMethod: "GET",
|
|
403
369
|
responses: {
|
|
404
370
|
200: {
|
|
405
371
|
bodyMapper: Mappers.ListApplicationPackagesResult
|
|
@@ -408,23 +374,20 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
408
374
|
bodyMapper: Mappers.CloudError
|
|
409
375
|
}
|
|
410
376
|
},
|
|
377
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
378
|
+
urlParameters: [
|
|
379
|
+
Parameters.$host,
|
|
380
|
+
Parameters.resourceGroupName,
|
|
381
|
+
Parameters.subscriptionId,
|
|
382
|
+
Parameters.accountName1,
|
|
383
|
+
Parameters.applicationName
|
|
384
|
+
],
|
|
385
|
+
headerParameters: [Parameters.accept],
|
|
411
386
|
serializer
|
|
412
387
|
};
|
|
413
|
-
|
|
414
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
415
|
-
httpMethod: "GET",
|
|
416
|
-
baseUrl: "https://management.azure.com",
|
|
388
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
417
389
|
path: "{nextLink}",
|
|
418
|
-
|
|
419
|
-
Parameters.nextPageLink
|
|
420
|
-
],
|
|
421
|
-
queryParameters: [
|
|
422
|
-
Parameters.maxresults,
|
|
423
|
-
Parameters.apiVersion
|
|
424
|
-
],
|
|
425
|
-
headerParameters: [
|
|
426
|
-
Parameters.acceptLanguage
|
|
427
|
-
],
|
|
390
|
+
httpMethod: "GET",
|
|
428
391
|
responses: {
|
|
429
392
|
200: {
|
|
430
393
|
bodyMapper: Mappers.ListApplicationPackagesResult
|
|
@@ -433,5 +396,15 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
433
396
|
bodyMapper: Mappers.CloudError
|
|
434
397
|
}
|
|
435
398
|
},
|
|
399
|
+
queryParameters: [Parameters.apiVersion, Parameters.maxresults],
|
|
400
|
+
urlParameters: [
|
|
401
|
+
Parameters.$host,
|
|
402
|
+
Parameters.resourceGroupName,
|
|
403
|
+
Parameters.subscriptionId,
|
|
404
|
+
Parameters.accountName1,
|
|
405
|
+
Parameters.nextLink,
|
|
406
|
+
Parameters.applicationName
|
|
407
|
+
],
|
|
408
|
+
headerParameters: [Parameters.accept],
|
|
436
409
|
serializer
|
|
437
410
|
};
|