@azure/arm-batch 10.0.1-alpha.20250718.1 → 10.0.1-alpha.20250730.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/dist/browser/batchManagementClient.js +23 -5
- package/dist/browser/batchManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +218 -102
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/applicationOperations.js +23 -40
- package/dist/browser/operations/applicationOperations.js.map +1 -1
- package/dist/browser/operations/applicationPackageOperations.js +23 -40
- package/dist/browser/operations/applicationPackageOperations.js.map +1 -1
- package/dist/browser/operations/batchAccountOperations.js +111 -169
- package/dist/browser/operations/batchAccountOperations.js.map +1 -1
- package/dist/browser/operations/certificateOperations.js +34 -46
- package/dist/browser/operations/certificateOperations.js.map +1 -1
- package/dist/browser/operations/location.js +23 -40
- package/dist/browser/operations/location.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterOperations.js +34 -46
- package/dist/browser/operations/networkSecurityPerimeterOperations.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/poolOperations.js +34 -46
- package/dist/browser/operations/poolOperations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnectionOperations.js +45 -52
- package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/browser/operations/privateLinkResourceOperations.js +23 -40
- package/dist/browser/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/batchManagementClient.js +23 -5
- package/dist/commonjs/batchManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +218 -102
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/applicationOperations.js +23 -39
- package/dist/commonjs/operations/applicationOperations.js.map +1 -1
- package/dist/commonjs/operations/applicationPackageOperations.js +23 -39
- package/dist/commonjs/operations/applicationPackageOperations.js.map +1 -1
- package/dist/commonjs/operations/batchAccountOperations.js +111 -168
- package/dist/commonjs/operations/batchAccountOperations.js.map +1 -1
- package/dist/commonjs/operations/certificateOperations.js +34 -45
- package/dist/commonjs/operations/certificateOperations.js.map +1 -1
- package/dist/commonjs/operations/location.js +23 -39
- package/dist/commonjs/operations/location.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterOperations.js +34 -45
- package/dist/commonjs/operations/networkSecurityPerimeterOperations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/poolOperations.js +34 -45
- package/dist/commonjs/operations/poolOperations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js +45 -51
- package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResourceOperations.js +23 -39
- package/dist/commonjs/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/batchManagementClient.js +23 -5
- package/dist/esm/batchManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +218 -102
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/applicationOperations.js +23 -40
- package/dist/esm/operations/applicationOperations.js.map +1 -1
- package/dist/esm/operations/applicationPackageOperations.js +23 -40
- package/dist/esm/operations/applicationPackageOperations.js.map +1 -1
- package/dist/esm/operations/batchAccountOperations.js +111 -169
- package/dist/esm/operations/batchAccountOperations.js.map +1 -1
- package/dist/esm/operations/certificateOperations.js +34 -46
- package/dist/esm/operations/certificateOperations.js.map +1 -1
- package/dist/esm/operations/location.js +23 -40
- package/dist/esm/operations/location.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterOperations.js +34 -46
- package/dist/esm/operations/networkSecurityPerimeterOperations.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/poolOperations.js +34 -46
- package/dist/esm/operations/poolOperations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnectionOperations.js +45 -52
- package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/esm/operations/privateLinkResourceOperations.js +23 -40
- package/dist/esm/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/batchManagementClient.js +23 -5
- package/dist/react-native/batchManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +218 -102
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/applicationOperations.js +23 -40
- package/dist/react-native/operations/applicationOperations.js.map +1 -1
- package/dist/react-native/operations/applicationPackageOperations.js +23 -40
- package/dist/react-native/operations/applicationPackageOperations.js.map +1 -1
- package/dist/react-native/operations/batchAccountOperations.js +111 -169
- package/dist/react-native/operations/batchAccountOperations.js.map +1 -1
- package/dist/react-native/operations/certificateOperations.js +34 -46
- package/dist/react-native/operations/certificateOperations.js.map +1 -1
- package/dist/react-native/operations/location.js +23 -40
- package/dist/react-native/operations/location.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterOperations.js +34 -46
- package/dist/react-native/operations/networkSecurityPerimeterOperations.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/poolOperations.js +34 -46
- package/dist/react-native/operations/poolOperations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnectionOperations.js +45 -52
- package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist/react-native/operations/privateLinkResourceOperations.js +23 -40
- package/dist/react-native/operations/privateLinkResourceOperations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,6 @@
|
|
|
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
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ApplicationOperations operations. */
|
|
15
14
|
export class ApplicationOperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ApplicationOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class ApplicationOperationsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(resourceGroupName, accountName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listNext(resourceGroupName, accountName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listPagingAll(resourceGroupName, accountName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listPagingAll(resourceGroupName, accountName, options) {
|
|
65
|
+
for await (const page of this.listPagingPage(resourceGroupName, accountName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Adds an application to the specified Batch account.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationOperations.js","sourceRoot":"","sources":["../../../src/operations/applicationOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,OAAuC,EACvC,QAAuB;;YAEv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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;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApplicationOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BatchManagementClient } from \"../batchManagementClient.js\";\nimport {\n Application,\n ApplicationListNextOptionalParams,\n ApplicationListOptionalParams,\n ApplicationListResponse,\n ApplicationCreateOptionalParams,\n ApplicationCreateResponse,\n ApplicationDeleteOptionalParams,\n ApplicationGetOptionalParams,\n ApplicationGetResponse,\n ApplicationUpdateOptionalParams,\n ApplicationUpdateResponse,\n ApplicationListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplicationOperations operations. */\nexport class ApplicationOperationsImpl implements ApplicationOperations {\n private readonly client: BatchManagementClient;\n\n /**\n * Initialize a new instance of the class ApplicationOperations class.\n * @param client Reference to the service client\n */\n constructor(client: BatchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the applications in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: ApplicationListOptionalParams,\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: ApplicationListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Application[]> {\n let result: ApplicationListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: ApplicationListOptionalParams,\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Adds an application to the specified Batch account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationCreateOptionalParams,\n ): Promise<ApplicationCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes an application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets information about the specified application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationGetOptionalParams,\n ): Promise<ApplicationGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Updates settings for the specified application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param parameters The parameters for the request.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n parameters: Application,\n options?: ApplicationUpdateOptionalParams,\n ): Promise<ApplicationUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Lists all of the applications in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: ApplicationListOptionalParams,\n ): Promise<ApplicationListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: ApplicationListNextOptionalParams,\n ): Promise<ApplicationListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplicationsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxresults],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplicationsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"applicationOperations.js","sourceRoot":"","sources":["../../../src/operations/applicationOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IACnB,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAA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Ae,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;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApplicationOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BatchManagementClient } from \"../batchManagementClient.js\";\nimport {\n Application,\n ApplicationListNextOptionalParams,\n ApplicationListOptionalParams,\n ApplicationListResponse,\n ApplicationCreateOptionalParams,\n ApplicationCreateResponse,\n ApplicationDeleteOptionalParams,\n ApplicationGetOptionalParams,\n ApplicationGetResponse,\n ApplicationUpdateOptionalParams,\n ApplicationUpdateResponse,\n ApplicationListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplicationOperations operations. */\nexport class ApplicationOperationsImpl implements ApplicationOperations {\n private readonly client: BatchManagementClient;\n\n /**\n * Initialize a new instance of the class ApplicationOperations class.\n * @param client Reference to the service client\n */\n constructor(client: BatchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the applications in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: ApplicationListOptionalParams,\n ): PagedAsyncIterableIterator<Application> {\n const iter = this.listPagingAll(resourceGroupName, accountName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: ApplicationListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Application[]> {\n let result: ApplicationListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: ApplicationListOptionalParams,\n ): AsyncIterableIterator<Application> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Adds an application to the specified Batch account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationCreateOptionalParams,\n ): Promise<ApplicationCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes an application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets information about the specified application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationGetOptionalParams,\n ): Promise<ApplicationGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Updates settings for the specified application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param parameters The parameters for the request.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n parameters: Application,\n options?: ApplicationUpdateOptionalParams,\n ): Promise<ApplicationUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Lists all of the applications in the specified account.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: ApplicationListOptionalParams,\n ): Promise<ApplicationListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: ApplicationListNextOptionalParams,\n ): Promise<ApplicationListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Application,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplicationsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxresults],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplicationsResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
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
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ApplicationPackageOperations operations. */
|
|
15
14
|
export class ApplicationPackageOperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ApplicationPackageOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class ApplicationPackageOperationsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listPagingPage(resourceGroupName, accountName, applicationName, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listPagingPage(resourceGroupName, accountName, applicationName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listPagingPage(resourceGroupName, accountName, applicationName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._list(resourceGroupName, accountName, applicationName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listNext(resourceGroupName, accountName, applicationName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listPagingAll(resourceGroupName, accountName, applicationName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, applicationName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listPagingAll(resourceGroupName, accountName, applicationName, options) {
|
|
66
|
+
for await (const page of this.listPagingPage(resourceGroupName, accountName, applicationName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Activates the specified application package. This should be done after the `ApplicationPackage` was
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicationPackageOperations.js","sourceRoot":"","sources":["../../../src/operations/applicationPackageOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAkBtD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAK3C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,eAAuB,EACvB,OAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,WAAmB,EACnB,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CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,kKAAkK;IACxK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApplicationPackageOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BatchManagementClient } from \"../batchManagementClient.js\";\nimport {\n ApplicationPackage,\n ApplicationPackageListNextOptionalParams,\n ApplicationPackageListOptionalParams,\n ApplicationPackageListResponse,\n ActivateApplicationPackageParameters,\n ApplicationPackageActivateOptionalParams,\n ApplicationPackageActivateResponse,\n ApplicationPackageCreateOptionalParams,\n ApplicationPackageCreateResponse,\n ApplicationPackageDeleteOptionalParams,\n ApplicationPackageGetOptionalParams,\n ApplicationPackageGetResponse,\n ApplicationPackageListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplicationPackageOperations operations. */\nexport class ApplicationPackageOperationsImpl\n implements ApplicationPackageOperations\n{\n private readonly client: BatchManagementClient;\n\n /**\n * Initialize a new instance of the class ApplicationPackageOperations class.\n * @param client Reference to the service client\n */\n constructor(client: BatchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the application packages in the specified application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationPackageListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationPackage> {\n const iter = this.listPagingAll(\n resourceGroupName,\n accountName,\n applicationName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n applicationName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationPackageListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationPackage[]> {\n let result: ApplicationPackageListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n accountName,\n applicationName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n applicationName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationPackageListOptionalParams,\n ): AsyncIterableIterator<ApplicationPackage> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n applicationName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Activates the specified application package. This should be done after the `ApplicationPackage` was\n * created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or\n * Tasks.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param versionName The version of the application.\n * @param parameters The parameters for the request.\n * @param options The options parameters.\n */\n activate(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n versionName: string,\n parameters: ActivateApplicationPackageParameters,\n options?: ApplicationPackageActivateOptionalParams,\n ): Promise<ApplicationPackageActivateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n applicationName,\n versionName,\n parameters,\n options,\n },\n activateOperationSpec,\n );\n }\n\n /**\n * Creates an application package record. The record contains a storageUrl where the package should be\n * uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using\n * `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use\n * storage keys, the URL returned will contain a SAS.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param versionName The version of the application.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n versionName: string,\n options?: ApplicationPackageCreateOptionalParams,\n ): Promise<ApplicationPackageCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, versionName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes an application package record and its associated binary file.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param versionName The version of the application.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n versionName: string,\n options?: ApplicationPackageDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, versionName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets information about the specified application package.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param versionName The version of the application.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n versionName: string,\n options?: ApplicationPackageGetOptionalParams,\n ): Promise<ApplicationPackageGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, versionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all of the application packages in the specified application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationPackageListOptionalParams,\n ): Promise<ApplicationPackageListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n nextLink: string,\n options?: ApplicationPackageListNextOptionalParams,\n ): Promise<ApplicationPackageListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst activateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationPackage,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationPackage,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationPackage,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplicationPackagesResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxresults],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplicationPackagesResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.nextLink,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"applicationPackageOperations.js","sourceRoot":"","sources":["../../../src/operations/applicationPackageOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAkBtD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAG1B,MAAM,CAAwB;IAE/C;;;OAGG;IACH,YAAY,MAA6B;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,eAAuB,EACvB,OAA8C;QAE9C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,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,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CA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,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,eAAe;QAC1B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,kKAAkK;IACxK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ApplicationPackageOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BatchManagementClient } from \"../batchManagementClient.js\";\nimport {\n ApplicationPackage,\n ApplicationPackageListNextOptionalParams,\n ApplicationPackageListOptionalParams,\n ApplicationPackageListResponse,\n ActivateApplicationPackageParameters,\n ApplicationPackageActivateOptionalParams,\n ApplicationPackageActivateResponse,\n ApplicationPackageCreateOptionalParams,\n ApplicationPackageCreateResponse,\n ApplicationPackageDeleteOptionalParams,\n ApplicationPackageGetOptionalParams,\n ApplicationPackageGetResponse,\n ApplicationPackageListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ApplicationPackageOperations operations. */\nexport class ApplicationPackageOperationsImpl\n implements ApplicationPackageOperations\n{\n private readonly client: BatchManagementClient;\n\n /**\n * Initialize a new instance of the class ApplicationPackageOperations class.\n * @param client Reference to the service client\n */\n constructor(client: BatchManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the application packages in the specified application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationPackageListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationPackage> {\n const iter = this.listPagingAll(\n resourceGroupName,\n accountName,\n applicationName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n resourceGroupName,\n accountName,\n applicationName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationPackageListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationPackage[]> {\n let result: ApplicationPackageListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n resourceGroupName,\n accountName,\n applicationName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n accountName,\n applicationName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationPackageListOptionalParams,\n ): AsyncIterableIterator<ApplicationPackage> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n applicationName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Activates the specified application package. This should be done after the `ApplicationPackage` was\n * created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or\n * Tasks.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param versionName The version of the application.\n * @param parameters The parameters for the request.\n * @param options The options parameters.\n */\n activate(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n versionName: string,\n parameters: ActivateApplicationPackageParameters,\n options?: ApplicationPackageActivateOptionalParams,\n ): Promise<ApplicationPackageActivateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n applicationName,\n versionName,\n parameters,\n options,\n },\n activateOperationSpec,\n );\n }\n\n /**\n * Creates an application package record. The record contains a storageUrl where the package should be\n * uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using\n * `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use\n * storage keys, the URL returned will contain a SAS.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param versionName The version of the application.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n versionName: string,\n options?: ApplicationPackageCreateOptionalParams,\n ): Promise<ApplicationPackageCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, versionName, options },\n createOperationSpec,\n );\n }\n\n /**\n * Deletes an application package record and its associated binary file.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param versionName The version of the application.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n versionName: string,\n options?: ApplicationPackageDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, versionName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets information about the specified application package.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param versionName The version of the application.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n versionName: string,\n options?: ApplicationPackageGetOptionalParams,\n ): Promise<ApplicationPackageGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, versionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all of the application packages in the specified application.\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n options?: ApplicationPackageListOptionalParams,\n ): Promise<ApplicationPackageListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group that contains the Batch account.\n * @param accountName The name of the Batch account.\n * @param applicationName The name of the application. This must be unique within the account.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n accountName: string,\n applicationName: string,\n nextLink: string,\n options?: ApplicationPackageListNextOptionalParams,\n ): Promise<ApplicationPackageListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, applicationName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst activateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationPackage,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationPackage,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationPackage,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n Parameters.versionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplicationPackagesResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxresults],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListApplicationPackagesResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.accountName1,\n Parameters.nextLink,\n Parameters.applicationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|