@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,24 +3,43 @@
|
|
|
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
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { CertificateOperations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
14
|
import { BatchManagementClientContext } from "../batchManagementClientContext";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Certificate,
|
|
19
|
+
CertificateListByBatchAccountNextOptionalParams,
|
|
20
|
+
CertificateListByBatchAccountOptionalParams,
|
|
21
|
+
CertificateListByBatchAccountResponse,
|
|
22
|
+
CertificateCreateOrUpdateParameters,
|
|
23
|
+
CertificateCreateOptionalParams,
|
|
24
|
+
CertificateCreateResponse,
|
|
25
|
+
CertificateUpdateOptionalParams,
|
|
26
|
+
CertificateUpdateResponse,
|
|
27
|
+
CertificateDeleteOptionalParams,
|
|
28
|
+
CertificateGetOptionalParams,
|
|
29
|
+
CertificateGetResponse,
|
|
30
|
+
CertificateCancelDeletionOptionalParams,
|
|
31
|
+
CertificateCancelDeletionResponse,
|
|
32
|
+
CertificateListByBatchAccountNextResponse
|
|
33
|
+
} from "../models";
|
|
16
34
|
|
|
17
|
-
|
|
18
|
-
|
|
35
|
+
/// <reference lib="esnext.asynciterable" />
|
|
36
|
+
/** Class containing CertificateOperations operations. */
|
|
37
|
+
export class CertificateOperationsImpl implements CertificateOperations {
|
|
19
38
|
private readonly client: BatchManagementClientContext;
|
|
20
39
|
|
|
21
40
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
41
|
+
* Initialize a new instance of the class CertificateOperations class.
|
|
42
|
+
* @param client Reference to the service client
|
|
24
43
|
*/
|
|
25
44
|
constructor(client: BatchManagementClientContext) {
|
|
26
45
|
this.client = client;
|
|
@@ -30,78 +49,111 @@ export class CertificateOperations {
|
|
|
30
49
|
* Lists all of the certificates in the specified account.
|
|
31
50
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
32
51
|
* @param accountName The name of the Batch account.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.CertificateListByBatchAccountResponse>
|
|
52
|
+
* @param options The options parameters.
|
|
35
53
|
*/
|
|
36
|
-
listByBatchAccount(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
public listByBatchAccount(
|
|
55
|
+
resourceGroupName: string,
|
|
56
|
+
accountName: string,
|
|
57
|
+
options?: CertificateListByBatchAccountOptionalParams
|
|
58
|
+
): PagedAsyncIterableIterator<Certificate> {
|
|
59
|
+
const iter = this.listByBatchAccountPagingAll(
|
|
60
|
+
resourceGroupName,
|
|
61
|
+
accountName,
|
|
62
|
+
options
|
|
63
|
+
);
|
|
64
|
+
return {
|
|
65
|
+
next() {
|
|
66
|
+
return iter.next();
|
|
67
|
+
},
|
|
68
|
+
[Symbol.asyncIterator]() {
|
|
69
|
+
return this;
|
|
70
|
+
},
|
|
71
|
+
byPage: () => {
|
|
72
|
+
return this.listByBatchAccountPagingPage(
|
|
73
|
+
resourceGroupName,
|
|
74
|
+
accountName,
|
|
75
|
+
options
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
private async *listByBatchAccountPagingPage(
|
|
82
|
+
resourceGroupName: string,
|
|
83
|
+
accountName: string,
|
|
84
|
+
options?: CertificateListByBatchAccountOptionalParams
|
|
85
|
+
): AsyncIterableIterator<Certificate[]> {
|
|
86
|
+
let result = await this._listByBatchAccount(
|
|
87
|
+
resourceGroupName,
|
|
88
|
+
accountName,
|
|
89
|
+
options
|
|
90
|
+
);
|
|
91
|
+
yield result.value || [];
|
|
92
|
+
let continuationToken = result.nextLink;
|
|
93
|
+
while (continuationToken) {
|
|
94
|
+
result = await this._listByBatchAccountNext(
|
|
53
95
|
resourceGroupName,
|
|
54
96
|
accountName,
|
|
97
|
+
continuationToken,
|
|
55
98
|
options
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
99
|
+
);
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
yield result.value || [];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
private async *listByBatchAccountPagingAll(
|
|
106
|
+
resourceGroupName: string,
|
|
107
|
+
accountName: string,
|
|
108
|
+
options?: CertificateListByBatchAccountOptionalParams
|
|
109
|
+
): AsyncIterableIterator<Certificate> {
|
|
110
|
+
for await (const page of this.listByBatchAccountPagingPage(
|
|
111
|
+
resourceGroupName,
|
|
112
|
+
accountName,
|
|
113
|
+
options
|
|
114
|
+
)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
59
117
|
}
|
|
60
118
|
|
|
61
119
|
/**
|
|
62
|
-
*
|
|
63
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
64
|
-
* @param accountName The name of the Batch account.
|
|
65
|
-
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
66
|
-
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
67
|
-
* SHA1-a3d1c5.
|
|
68
|
-
* @param parameters Additional parameters for certificate creation.
|
|
69
|
-
* @param [options] The optional parameters
|
|
70
|
-
* @returns Promise<Models.CertificateCreateResponse>
|
|
71
|
-
*/
|
|
72
|
-
create(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateCreateOptionalParams): Promise<Models.CertificateCreateResponse>;
|
|
73
|
-
/**
|
|
120
|
+
* Lists all of the certificates in the specified account.
|
|
74
121
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
75
122
|
* @param accountName The name of the Batch account.
|
|
76
|
-
* @param
|
|
77
|
-
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
78
|
-
* SHA1-a3d1c5.
|
|
79
|
-
* @param parameters Additional parameters for certificate creation.
|
|
80
|
-
* @param callback The callback
|
|
123
|
+
* @param options The options parameters.
|
|
81
124
|
*/
|
|
82
|
-
|
|
125
|
+
private _listByBatchAccount(
|
|
126
|
+
resourceGroupName: string,
|
|
127
|
+
accountName: string,
|
|
128
|
+
options?: CertificateListByBatchAccountOptionalParams
|
|
129
|
+
): Promise<CertificateListByBatchAccountResponse> {
|
|
130
|
+
return this.client.sendOperationRequest(
|
|
131
|
+
{ resourceGroupName, accountName, options },
|
|
132
|
+
listByBatchAccountOperationSpec
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
83
136
|
/**
|
|
137
|
+
* Creates a new certificate inside the specified account.
|
|
84
138
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
85
139
|
* @param accountName The name of the Batch account.
|
|
86
140
|
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
87
|
-
*
|
|
88
|
-
*
|
|
141
|
+
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
142
|
+
* SHA1-a3d1c5.
|
|
89
143
|
* @param parameters Additional parameters for certificate creation.
|
|
90
|
-
* @param options The
|
|
91
|
-
* @param callback The callback
|
|
144
|
+
* @param options The options parameters.
|
|
92
145
|
*/
|
|
93
|
-
create(
|
|
94
|
-
|
|
146
|
+
create(
|
|
147
|
+
resourceGroupName: string,
|
|
148
|
+
accountName: string,
|
|
149
|
+
certificateName: string,
|
|
150
|
+
parameters: CertificateCreateOrUpdateParameters,
|
|
151
|
+
options?: CertificateCreateOptionalParams
|
|
152
|
+
): Promise<CertificateCreateResponse> {
|
|
95
153
|
return this.client.sendOperationRequest(
|
|
96
|
-
{
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
certificateName,
|
|
100
|
-
parameters,
|
|
101
|
-
options
|
|
102
|
-
},
|
|
103
|
-
createOperationSpec,
|
|
104
|
-
callback) as Promise<Models.CertificateCreateResponse>;
|
|
154
|
+
{ resourceGroupName, accountName, certificateName, parameters, options },
|
|
155
|
+
createOperationSpec
|
|
156
|
+
);
|
|
105
157
|
}
|
|
106
158
|
|
|
107
159
|
/**
|
|
@@ -109,45 +161,22 @@ export class CertificateOperations {
|
|
|
109
161
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
110
162
|
* @param accountName The name of the Batch account.
|
|
111
163
|
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
112
|
-
*
|
|
113
|
-
*
|
|
164
|
+
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
165
|
+
* SHA1-a3d1c5.
|
|
114
166
|
* @param parameters Certificate entity to update.
|
|
115
|
-
* @param
|
|
116
|
-
* @returns Promise<Models.CertificateUpdateResponse>
|
|
167
|
+
* @param options The options parameters.
|
|
117
168
|
*/
|
|
118
|
-
update(
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
* @param parameters Certificate entity to update.
|
|
126
|
-
* @param callback The callback
|
|
127
|
-
*/
|
|
128
|
-
update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, callback: msRest.ServiceCallback<Models.Certificate>): void;
|
|
129
|
-
/**
|
|
130
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
131
|
-
* @param accountName The name of the Batch account.
|
|
132
|
-
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
133
|
-
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
134
|
-
* SHA1-a3d1c5.
|
|
135
|
-
* @param parameters Certificate entity to update.
|
|
136
|
-
* @param options The optional parameters
|
|
137
|
-
* @param callback The callback
|
|
138
|
-
*/
|
|
139
|
-
update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options: Models.CertificateUpdateOptionalParams, callback: msRest.ServiceCallback<Models.Certificate>): void;
|
|
140
|
-
update(resourceGroupName: string, accountName: string, certificateName: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateUpdateOptionalParams | msRest.ServiceCallback<Models.Certificate>, callback?: msRest.ServiceCallback<Models.Certificate>): Promise<Models.CertificateUpdateResponse> {
|
|
169
|
+
update(
|
|
170
|
+
resourceGroupName: string,
|
|
171
|
+
accountName: string,
|
|
172
|
+
certificateName: string,
|
|
173
|
+
parameters: CertificateCreateOrUpdateParameters,
|
|
174
|
+
options?: CertificateUpdateOptionalParams
|
|
175
|
+
): Promise<CertificateUpdateResponse> {
|
|
141
176
|
return this.client.sendOperationRequest(
|
|
142
|
-
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
certificateName,
|
|
146
|
-
parameters,
|
|
147
|
-
options
|
|
148
|
-
},
|
|
149
|
-
updateOperationSpec,
|
|
150
|
-
callback) as Promise<Models.CertificateUpdateResponse>;
|
|
177
|
+
{ resourceGroupName, accountName, certificateName, parameters, options },
|
|
178
|
+
updateOperationSpec
|
|
179
|
+
);
|
|
151
180
|
}
|
|
152
181
|
|
|
153
182
|
/**
|
|
@@ -155,176 +184,164 @@ export class CertificateOperations {
|
|
|
155
184
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
156
185
|
* @param accountName The name of the Batch account.
|
|
157
186
|
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* @param
|
|
161
|
-
* @returns Promise<Models.CertificateDeleteResponse>
|
|
187
|
+
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
188
|
+
* SHA1-a3d1c5.
|
|
189
|
+
* @param options The options parameters.
|
|
162
190
|
*/
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
191
|
+
async beginDelete(
|
|
192
|
+
resourceGroupName: string,
|
|
193
|
+
accountName: string,
|
|
194
|
+
certificateName: string,
|
|
195
|
+
options?: CertificateDeleteOptionalParams
|
|
196
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
197
|
+
const directSendOperation = async (
|
|
198
|
+
args: coreClient.OperationArguments,
|
|
199
|
+
spec: coreClient.OperationSpec
|
|
200
|
+
): Promise<void> => {
|
|
201
|
+
return this.client.sendOperationRequest(args, spec);
|
|
202
|
+
};
|
|
203
|
+
const sendOperation = async (
|
|
204
|
+
args: coreClient.OperationArguments,
|
|
205
|
+
spec: coreClient.OperationSpec
|
|
206
|
+
) => {
|
|
207
|
+
let currentRawResponse:
|
|
208
|
+
| coreClient.FullOperationResponse
|
|
209
|
+
| undefined = undefined;
|
|
210
|
+
const providedCallback = args.options?.onResponse;
|
|
211
|
+
const callback: coreClient.RawResponseCallback = (
|
|
212
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
213
|
+
flatResponse: unknown
|
|
214
|
+
) => {
|
|
215
|
+
currentRawResponse = rawResponse;
|
|
216
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
217
|
+
};
|
|
218
|
+
const updatedArgs = {
|
|
219
|
+
...args,
|
|
220
|
+
options: {
|
|
221
|
+
...args.options,
|
|
222
|
+
onResponse: callback
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
226
|
+
return {
|
|
227
|
+
flatResponse,
|
|
228
|
+
rawResponse: {
|
|
229
|
+
statusCode: currentRawResponse!.status,
|
|
230
|
+
body: currentRawResponse!.parsedBody,
|
|
231
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
const lro = new LroImpl(
|
|
237
|
+
sendOperation,
|
|
238
|
+
{ resourceGroupName, accountName, certificateName, options },
|
|
239
|
+
deleteOperationSpec
|
|
240
|
+
);
|
|
241
|
+
return new LroEngine(lro, {
|
|
242
|
+
resumeFrom: options?.resumeFrom,
|
|
243
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
244
|
+
lroResourceLocationConfig: "location"
|
|
245
|
+
});
|
|
166
246
|
}
|
|
167
247
|
|
|
168
248
|
/**
|
|
169
|
-
*
|
|
170
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
171
|
-
* @param accountName The name of the Batch account.
|
|
172
|
-
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
173
|
-
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
174
|
-
* SHA1-a3d1c5.
|
|
175
|
-
* @param [options] The optional parameters
|
|
176
|
-
* @returns Promise<Models.CertificateGetResponse>
|
|
177
|
-
*/
|
|
178
|
-
get(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise<Models.CertificateGetResponse>;
|
|
179
|
-
/**
|
|
249
|
+
* Deletes the specified certificate.
|
|
180
250
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
181
251
|
* @param accountName The name of the Batch account.
|
|
182
252
|
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* @param
|
|
253
|
+
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
254
|
+
* SHA1-a3d1c5.
|
|
255
|
+
* @param options The options parameters.
|
|
186
256
|
*/
|
|
187
|
-
|
|
257
|
+
async beginDeleteAndWait(
|
|
258
|
+
resourceGroupName: string,
|
|
259
|
+
accountName: string,
|
|
260
|
+
certificateName: string,
|
|
261
|
+
options?: CertificateDeleteOptionalParams
|
|
262
|
+
): Promise<void> {
|
|
263
|
+
const poller = await this.beginDelete(
|
|
264
|
+
resourceGroupName,
|
|
265
|
+
accountName,
|
|
266
|
+
certificateName,
|
|
267
|
+
options
|
|
268
|
+
);
|
|
269
|
+
return poller.pollUntilDone();
|
|
270
|
+
}
|
|
271
|
+
|
|
188
272
|
/**
|
|
273
|
+
* Gets information about the specified certificate.
|
|
189
274
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
190
275
|
* @param accountName The name of the Batch account.
|
|
191
276
|
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* @param options The
|
|
195
|
-
* @param callback The callback
|
|
277
|
+
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
278
|
+
* SHA1-a3d1c5.
|
|
279
|
+
* @param options The options parameters.
|
|
196
280
|
*/
|
|
197
|
-
get(
|
|
198
|
-
|
|
281
|
+
get(
|
|
282
|
+
resourceGroupName: string,
|
|
283
|
+
accountName: string,
|
|
284
|
+
certificateName: string,
|
|
285
|
+
options?: CertificateGetOptionalParams
|
|
286
|
+
): Promise<CertificateGetResponse> {
|
|
199
287
|
return this.client.sendOperationRequest(
|
|
200
|
-
{
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
certificateName,
|
|
204
|
-
options
|
|
205
|
-
},
|
|
206
|
-
getOperationSpec,
|
|
207
|
-
callback) as Promise<Models.CertificateGetResponse>;
|
|
288
|
+
{ resourceGroupName, accountName, certificateName, options },
|
|
289
|
+
getOperationSpec
|
|
290
|
+
);
|
|
208
291
|
}
|
|
209
292
|
|
|
210
293
|
/**
|
|
211
|
-
* If you try to delete a certificate that is being used by a pool or compute node, the status of
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
* @summary Cancels a failed deletion of a certificate from the specified account.
|
|
294
|
+
* If you try to delete a certificate that is being used by a pool or compute node, the status of the
|
|
295
|
+
* certificate changes to deleteFailed. If you decide that you want to continue using the certificate,
|
|
296
|
+
* you can use this operation to set the status of the certificate back to active. If you intend to
|
|
297
|
+
* delete the certificate, you do not need to run this operation after the deletion failed. You must
|
|
298
|
+
* make sure that the certificate is not being used by any resources, and then you can try again to
|
|
299
|
+
* delete the certificate.
|
|
218
300
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
219
301
|
* @param accountName The name of the Batch account.
|
|
220
302
|
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
* @param
|
|
224
|
-
* @returns Promise<Models.CertificateCancelDeletionResponse>
|
|
303
|
+
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
304
|
+
* SHA1-a3d1c5.
|
|
305
|
+
* @param options The options parameters.
|
|
225
306
|
*/
|
|
226
|
-
cancelDeletion(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
* SHA1-a3d1c5.
|
|
233
|
-
* @param callback The callback
|
|
234
|
-
*/
|
|
235
|
-
cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, callback: msRest.ServiceCallback<Models.Certificate>): void;
|
|
236
|
-
/**
|
|
237
|
-
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
238
|
-
* @param accountName The name of the Batch account.
|
|
239
|
-
* @param certificateName The identifier for the certificate. This must be made up of algorithm and
|
|
240
|
-
* thumbprint separated by a dash, and must match the certificate data in the request. For example
|
|
241
|
-
* SHA1-a3d1c5.
|
|
242
|
-
* @param options The optional parameters
|
|
243
|
-
* @param callback The callback
|
|
244
|
-
*/
|
|
245
|
-
cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Certificate>): void;
|
|
246
|
-
cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Certificate>, callback?: msRest.ServiceCallback<Models.Certificate>): Promise<Models.CertificateCancelDeletionResponse> {
|
|
307
|
+
cancelDeletion(
|
|
308
|
+
resourceGroupName: string,
|
|
309
|
+
accountName: string,
|
|
310
|
+
certificateName: string,
|
|
311
|
+
options?: CertificateCancelDeletionOptionalParams
|
|
312
|
+
): Promise<CertificateCancelDeletionResponse> {
|
|
247
313
|
return this.client.sendOperationRequest(
|
|
248
|
-
{
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
certificateName,
|
|
252
|
-
options
|
|
253
|
-
},
|
|
254
|
-
cancelDeletionOperationSpec,
|
|
255
|
-
callback) as Promise<Models.CertificateCancelDeletionResponse>;
|
|
314
|
+
{ resourceGroupName, accountName, certificateName, options },
|
|
315
|
+
cancelDeletionOperationSpec
|
|
316
|
+
);
|
|
256
317
|
}
|
|
257
318
|
|
|
258
319
|
/**
|
|
259
|
-
*
|
|
320
|
+
* ListByBatchAccountNext
|
|
260
321
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
261
322
|
* @param accountName The name of the Batch account.
|
|
262
|
-
* @param
|
|
263
|
-
*
|
|
264
|
-
* SHA1-a3d1c5.
|
|
265
|
-
* @param [options] The optional parameters
|
|
266
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
267
|
-
*/
|
|
268
|
-
beginDeleteMethod(resourceGroupName: string, accountName: string, certificateName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
|
|
269
|
-
return this.client.sendLRORequest(
|
|
270
|
-
{
|
|
271
|
-
resourceGroupName,
|
|
272
|
-
accountName,
|
|
273
|
-
certificateName,
|
|
274
|
-
options
|
|
275
|
-
},
|
|
276
|
-
beginDeleteMethodOperationSpec,
|
|
277
|
-
options);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Lists all of the certificates in the specified account.
|
|
282
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
283
|
-
* @param [options] The optional parameters
|
|
284
|
-
* @returns Promise<Models.CertificateListByBatchAccountNextResponse>
|
|
285
|
-
*/
|
|
286
|
-
listByBatchAccountNext(nextPageLink: string, options?: Models.CertificateListByBatchAccountNextOptionalParams): Promise<Models.CertificateListByBatchAccountNextResponse>;
|
|
287
|
-
/**
|
|
288
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
289
|
-
* @param callback The callback
|
|
323
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBatchAccount method.
|
|
324
|
+
* @param options The options parameters.
|
|
290
325
|
*/
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
listByBatchAccountNext(nextPageLink: string, options: Models.CertificateListByBatchAccountNextOptionalParams, callback: msRest.ServiceCallback<Models.ListCertificatesResult>): void;
|
|
298
|
-
listByBatchAccountNext(nextPageLink: string, options?: Models.CertificateListByBatchAccountNextOptionalParams | msRest.ServiceCallback<Models.ListCertificatesResult>, callback?: msRest.ServiceCallback<Models.ListCertificatesResult>): Promise<Models.CertificateListByBatchAccountNextResponse> {
|
|
326
|
+
private _listByBatchAccountNext(
|
|
327
|
+
resourceGroupName: string,
|
|
328
|
+
accountName: string,
|
|
329
|
+
nextLink: string,
|
|
330
|
+
options?: CertificateListByBatchAccountNextOptionalParams
|
|
331
|
+
): Promise<CertificateListByBatchAccountNextResponse> {
|
|
299
332
|
return this.client.sendOperationRequest(
|
|
300
|
-
{
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
},
|
|
304
|
-
listByBatchAccountNextOperationSpec,
|
|
305
|
-
callback) as Promise<Models.CertificateListByBatchAccountNextResponse>;
|
|
333
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
334
|
+
listByBatchAccountNextOperationSpec
|
|
335
|
+
);
|
|
306
336
|
}
|
|
307
337
|
}
|
|
308
|
-
|
|
309
338
|
// Operation Specifications
|
|
310
|
-
const serializer =
|
|
311
|
-
|
|
339
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
340
|
+
|
|
341
|
+
const listByBatchAccountOperationSpec: coreClient.OperationSpec = {
|
|
342
|
+
path:
|
|
343
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates",
|
|
312
344
|
httpMethod: "GET",
|
|
313
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates",
|
|
314
|
-
urlParameters: [
|
|
315
|
-
Parameters.resourceGroupName,
|
|
316
|
-
Parameters.accountName1,
|
|
317
|
-
Parameters.subscriptionId
|
|
318
|
-
],
|
|
319
|
-
queryParameters: [
|
|
320
|
-
Parameters.maxresults,
|
|
321
|
-
Parameters.select,
|
|
322
|
-
Parameters.filter,
|
|
323
|
-
Parameters.apiVersion
|
|
324
|
-
],
|
|
325
|
-
headerParameters: [
|
|
326
|
-
Parameters.acceptLanguage
|
|
327
|
-
],
|
|
328
345
|
responses: {
|
|
329
346
|
200: {
|
|
330
347
|
bodyMapper: Mappers.ListCertificatesResult
|
|
@@ -333,187 +350,157 @@ const listByBatchAccountOperationSpec: msRest.OperationSpec = {
|
|
|
333
350
|
bodyMapper: Mappers.CloudError
|
|
334
351
|
}
|
|
335
352
|
},
|
|
336
|
-
serializer
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
const createOperationSpec: msRest.OperationSpec = {
|
|
340
|
-
httpMethod: "PUT",
|
|
341
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
|
|
342
|
-
urlParameters: [
|
|
343
|
-
Parameters.resourceGroupName,
|
|
344
|
-
Parameters.accountName1,
|
|
345
|
-
Parameters.certificateName,
|
|
346
|
-
Parameters.subscriptionId
|
|
347
|
-
],
|
|
348
353
|
queryParameters: [
|
|
349
|
-
Parameters.apiVersion
|
|
354
|
+
Parameters.apiVersion,
|
|
355
|
+
Parameters.maxresults,
|
|
356
|
+
Parameters.filter,
|
|
357
|
+
Parameters.select
|
|
350
358
|
],
|
|
351
|
-
|
|
352
|
-
Parameters
|
|
353
|
-
Parameters.
|
|
354
|
-
Parameters.
|
|
359
|
+
urlParameters: [
|
|
360
|
+
Parameters.$host,
|
|
361
|
+
Parameters.resourceGroupName,
|
|
362
|
+
Parameters.subscriptionId,
|
|
363
|
+
Parameters.accountName1
|
|
355
364
|
],
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
|
|
365
|
+
headerParameters: [Parameters.accept],
|
|
366
|
+
serializer
|
|
367
|
+
};
|
|
368
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
369
|
+
path:
|
|
370
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
|
|
371
|
+
httpMethod: "PUT",
|
|
363
372
|
responses: {
|
|
364
373
|
200: {
|
|
365
374
|
bodyMapper: Mappers.Certificate,
|
|
366
375
|
headersMapper: Mappers.CertificateCreateHeaders
|
|
367
376
|
},
|
|
368
377
|
default: {
|
|
369
|
-
bodyMapper: Mappers.CloudError
|
|
370
|
-
headersMapper: Mappers.CertificateCreateHeaders
|
|
378
|
+
bodyMapper: Mappers.CloudError
|
|
371
379
|
}
|
|
372
380
|
},
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
377
|
-
httpMethod: "PATCH",
|
|
378
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
|
|
381
|
+
requestBody: Parameters.parameters8,
|
|
382
|
+
queryParameters: [Parameters.apiVersion],
|
|
379
383
|
urlParameters: [
|
|
384
|
+
Parameters.$host,
|
|
380
385
|
Parameters.resourceGroupName,
|
|
386
|
+
Parameters.subscriptionId,
|
|
381
387
|
Parameters.accountName1,
|
|
382
|
-
Parameters.certificateName
|
|
383
|
-
Parameters.subscriptionId
|
|
384
|
-
],
|
|
385
|
-
queryParameters: [
|
|
386
|
-
Parameters.apiVersion
|
|
388
|
+
Parameters.certificateName
|
|
387
389
|
],
|
|
388
390
|
headerParameters: [
|
|
391
|
+
Parameters.contentType,
|
|
392
|
+
Parameters.accept,
|
|
389
393
|
Parameters.ifMatch,
|
|
390
|
-
Parameters.
|
|
394
|
+
Parameters.ifNoneMatch
|
|
391
395
|
],
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
|
|
396
|
+
mediaType: "json",
|
|
397
|
+
serializer
|
|
398
|
+
};
|
|
399
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
400
|
+
path:
|
|
401
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
|
|
402
|
+
httpMethod: "PATCH",
|
|
399
403
|
responses: {
|
|
400
404
|
200: {
|
|
401
405
|
bodyMapper: Mappers.Certificate,
|
|
402
406
|
headersMapper: Mappers.CertificateUpdateHeaders
|
|
403
407
|
},
|
|
404
408
|
default: {
|
|
405
|
-
bodyMapper: Mappers.CloudError
|
|
406
|
-
headersMapper: Mappers.CertificateUpdateHeaders
|
|
409
|
+
bodyMapper: Mappers.CloudError
|
|
407
410
|
}
|
|
408
411
|
},
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
413
|
-
httpMethod: "GET",
|
|
414
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
|
|
412
|
+
requestBody: Parameters.parameters8,
|
|
413
|
+
queryParameters: [Parameters.apiVersion],
|
|
415
414
|
urlParameters: [
|
|
415
|
+
Parameters.$host,
|
|
416
416
|
Parameters.resourceGroupName,
|
|
417
|
+
Parameters.subscriptionId,
|
|
417
418
|
Parameters.accountName1,
|
|
418
|
-
Parameters.certificateName
|
|
419
|
-
Parameters.subscriptionId
|
|
420
|
-
],
|
|
421
|
-
queryParameters: [
|
|
422
|
-
Parameters.apiVersion
|
|
419
|
+
Parameters.certificateName
|
|
423
420
|
],
|
|
424
421
|
headerParameters: [
|
|
425
|
-
Parameters.
|
|
422
|
+
Parameters.contentType,
|
|
423
|
+
Parameters.accept,
|
|
424
|
+
Parameters.ifMatch
|
|
426
425
|
],
|
|
426
|
+
mediaType: "json",
|
|
427
|
+
serializer
|
|
428
|
+
};
|
|
429
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
430
|
+
path:
|
|
431
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
|
|
432
|
+
httpMethod: "DELETE",
|
|
427
433
|
responses: {
|
|
428
|
-
200: {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
},
|
|
434
|
+
200: {},
|
|
435
|
+
201: {},
|
|
436
|
+
202: {},
|
|
437
|
+
204: {},
|
|
432
438
|
default: {
|
|
433
|
-
bodyMapper: Mappers.CloudError
|
|
434
|
-
headersMapper: Mappers.CertificateGetHeaders
|
|
439
|
+
bodyMapper: Mappers.CloudError
|
|
435
440
|
}
|
|
436
441
|
},
|
|
437
|
-
|
|
438
|
-
};
|
|
439
|
-
|
|
440
|
-
const cancelDeletionOperationSpec: msRest.OperationSpec = {
|
|
441
|
-
httpMethod: "POST",
|
|
442
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete",
|
|
442
|
+
queryParameters: [Parameters.apiVersion],
|
|
443
443
|
urlParameters: [
|
|
444
|
+
Parameters.$host,
|
|
444
445
|
Parameters.resourceGroupName,
|
|
446
|
+
Parameters.subscriptionId,
|
|
445
447
|
Parameters.accountName1,
|
|
446
|
-
Parameters.certificateName
|
|
447
|
-
Parameters.subscriptionId
|
|
448
|
-
],
|
|
449
|
-
queryParameters: [
|
|
450
|
-
Parameters.apiVersion
|
|
451
|
-
],
|
|
452
|
-
headerParameters: [
|
|
453
|
-
Parameters.acceptLanguage
|
|
448
|
+
Parameters.certificateName
|
|
454
449
|
],
|
|
450
|
+
headerParameters: [Parameters.accept],
|
|
451
|
+
serializer
|
|
452
|
+
};
|
|
453
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
454
|
+
path:
|
|
455
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
|
|
456
|
+
httpMethod: "GET",
|
|
455
457
|
responses: {
|
|
456
458
|
200: {
|
|
457
459
|
bodyMapper: Mappers.Certificate,
|
|
458
|
-
headersMapper: Mappers.
|
|
460
|
+
headersMapper: Mappers.CertificateGetHeaders
|
|
459
461
|
},
|
|
460
462
|
default: {
|
|
461
|
-
bodyMapper: Mappers.CloudError
|
|
462
|
-
headersMapper: Mappers.CertificateCancelDeletionHeaders
|
|
463
|
+
bodyMapper: Mappers.CloudError
|
|
463
464
|
}
|
|
464
465
|
},
|
|
465
|
-
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
469
|
-
httpMethod: "DELETE",
|
|
470
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}",
|
|
466
|
+
queryParameters: [Parameters.apiVersion],
|
|
471
467
|
urlParameters: [
|
|
468
|
+
Parameters.$host,
|
|
472
469
|
Parameters.resourceGroupName,
|
|
470
|
+
Parameters.subscriptionId,
|
|
473
471
|
Parameters.accountName1,
|
|
474
|
-
Parameters.certificateName
|
|
475
|
-
Parameters.subscriptionId
|
|
476
|
-
],
|
|
477
|
-
queryParameters: [
|
|
478
|
-
Parameters.apiVersion
|
|
479
|
-
],
|
|
480
|
-
headerParameters: [
|
|
481
|
-
Parameters.acceptLanguage
|
|
472
|
+
Parameters.certificateName
|
|
482
473
|
],
|
|
474
|
+
headerParameters: [Parameters.accept],
|
|
475
|
+
serializer
|
|
476
|
+
};
|
|
477
|
+
const cancelDeletionOperationSpec: coreClient.OperationSpec = {
|
|
478
|
+
path:
|
|
479
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete",
|
|
480
|
+
httpMethod: "POST",
|
|
483
481
|
responses: {
|
|
484
482
|
200: {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
202: {
|
|
488
|
-
headersMapper: Mappers.CertificateDeleteHeaders
|
|
489
|
-
},
|
|
490
|
-
204: {
|
|
491
|
-
headersMapper: Mappers.CertificateDeleteHeaders
|
|
483
|
+
bodyMapper: Mappers.Certificate,
|
|
484
|
+
headersMapper: Mappers.CertificateCancelDeletionHeaders
|
|
492
485
|
},
|
|
493
486
|
default: {
|
|
494
|
-
bodyMapper: Mappers.CloudError
|
|
495
|
-
headersMapper: Mappers.CertificateDeleteHeaders
|
|
487
|
+
bodyMapper: Mappers.CloudError
|
|
496
488
|
}
|
|
497
489
|
},
|
|
490
|
+
queryParameters: [Parameters.apiVersion],
|
|
491
|
+
urlParameters: [
|
|
492
|
+
Parameters.$host,
|
|
493
|
+
Parameters.resourceGroupName,
|
|
494
|
+
Parameters.subscriptionId,
|
|
495
|
+
Parameters.accountName1,
|
|
496
|
+
Parameters.certificateName
|
|
497
|
+
],
|
|
498
|
+
headerParameters: [Parameters.accept],
|
|
498
499
|
serializer
|
|
499
500
|
};
|
|
500
|
-
|
|
501
|
-
const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
502
|
-
httpMethod: "GET",
|
|
503
|
-
baseUrl: "https://management.azure.com",
|
|
501
|
+
const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
504
502
|
path: "{nextLink}",
|
|
505
|
-
|
|
506
|
-
Parameters.nextPageLink
|
|
507
|
-
],
|
|
508
|
-
queryParameters: [
|
|
509
|
-
Parameters.maxresults,
|
|
510
|
-
Parameters.select,
|
|
511
|
-
Parameters.filter,
|
|
512
|
-
Parameters.apiVersion
|
|
513
|
-
],
|
|
514
|
-
headerParameters: [
|
|
515
|
-
Parameters.acceptLanguage
|
|
516
|
-
],
|
|
503
|
+
httpMethod: "GET",
|
|
517
504
|
responses: {
|
|
518
505
|
200: {
|
|
519
506
|
bodyMapper: Mappers.ListCertificatesResult
|
|
@@ -522,5 +509,19 @@ const listByBatchAccountNextOperationSpec: msRest.OperationSpec = {
|
|
|
522
509
|
bodyMapper: Mappers.CloudError
|
|
523
510
|
}
|
|
524
511
|
},
|
|
512
|
+
queryParameters: [
|
|
513
|
+
Parameters.apiVersion,
|
|
514
|
+
Parameters.maxresults,
|
|
515
|
+
Parameters.filter,
|
|
516
|
+
Parameters.select
|
|
517
|
+
],
|
|
518
|
+
urlParameters: [
|
|
519
|
+
Parameters.$host,
|
|
520
|
+
Parameters.resourceGroupName,
|
|
521
|
+
Parameters.subscriptionId,
|
|
522
|
+
Parameters.accountName1,
|
|
523
|
+
Parameters.nextLink
|
|
524
|
+
],
|
|
525
|
+
headerParameters: [Parameters.accept],
|
|
525
526
|
serializer
|
|
526
527
|
};
|