@azure/arm-batch 9.2.1-alpha.20240924.1 → 10.0.0-alpha.20240926.3
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 +63 -7
- package/dist/index.js +1215 -315
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/applicationCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationListSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageActivateSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageCreateSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageDeleteSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageGetSample.js +1 -1
- package/dist-esm/samples-dev/applicationPackageListSample.js +1 -1
- package/dist-esm/samples-dev/applicationUpdateSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountCreateSample.js +5 -5
- package/dist-esm/samples-dev/batchAccountDeleteSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountGetSample.js +2 -2
- package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +3 -3
- package/dist-esm/samples-dev/batchAccountListSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +1 -1
- package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
- package/dist-esm/samples-dev/batchAccountUpdateSample.js +1 -1
- package/dist-esm/samples-dev/certificateCancelDeletionSample.js +1 -1
- package/dist-esm/samples-dev/certificateCreateSample.js +3 -3
- package/dist-esm/samples-dev/certificateDeleteSample.js +1 -1
- package/dist-esm/samples-dev/certificateGetSample.js +2 -2
- package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +2 -2
- package/dist-esm/samples-dev/certificateUpdateSample.js +1 -1
- package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
- package/dist-esm/samples-dev/networkSecurityPerimeterGetConfigurationSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterGetConfigurationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterGetConfigurationSample.js +39 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterGetConfigurationSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterListConfigurationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterListConfigurationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{locationListSupportedCloudServiceSkusSample.js → networkSecurityPerimeterListConfigurationsSample.js} +9 -8
- package/dist-esm/samples-dev/networkSecurityPerimeterListConfigurationsSample.js.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.d.ts +2 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.js +39 -0
- package/dist-esm/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolCreateSample.js +50 -132
- package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
- package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
- package/dist-esm/samples-dev/poolGetSample.js +7 -7
- package/dist-esm/samples-dev/poolListByBatchAccountSample.js +2 -2
- package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
- package/dist-esm/samples-dev/poolUpdateSample.js +4 -4
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
- package/dist-esm/src/batchManagementClient.d.ts +2 -1
- package/dist-esm/src/batchManagementClient.d.ts.map +1 -1
- package/dist-esm/src/batchManagementClient.js +5 -3
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +467 -46
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +92 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +22 -3
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +739 -120
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +14 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
- package/dist-esm/src/operations/batchAccountOperations.js +2 -2
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/location.d.ts +1 -23
- package/dist-esm/src/operations/location.d.ts.map +1 -1
- package/dist-esm/src/operations/location.js +0 -124
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/networkSecurityPerimeterOperations.d.ts +66 -0
- package/dist-esm/src/operations/networkSecurityPerimeterOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/networkSecurityPerimeterOperations.js +286 -0
- package/dist-esm/src/operations/networkSecurityPerimeterOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/location.d.ts +1 -7
- package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterOperations.d.ts +41 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterOperations.js.map +1 -0
- package/dist-esm/test/batch_examples.js +23 -45
- package/dist-esm/test/batch_examples.js.map +1 -1
- package/package.json +33 -31
- package/review/arm-batch.api.md +294 -44
- package/src/batchManagementClient.ts +7 -2
- package/src/models/index.ts +517 -53
- package/src/models/mappers.ts +781 -133
- package/src/models/parameters.ts +16 -1
- package/src/operations/batchAccountOperations.ts +42 -42
- package/src/operations/index.ts +1 -0
- package/src/operations/location.ts +0 -154
- package/src/operations/networkSecurityPerimeterOperations.ts +397 -0
- package/src/operationsInterfaces/batchAccountOperations.ts +1 -1
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/location.ts +0 -10
- package/src/operationsInterfaces/networkSecurityPerimeterOperations.ts +81 -0
- package/types/arm-batch.d.ts +575 -81
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.d.ts +0 -2
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js.map +0 -1
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { NetworkSecurityPerimeterOperations } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller,
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
22
|
+
import {
|
|
23
|
+
NetworkSecurityPerimeterConfiguration,
|
|
24
|
+
NetworkSecurityPerimeterListConfigurationsNextOptionalParams,
|
|
25
|
+
NetworkSecurityPerimeterListConfigurationsOptionalParams,
|
|
26
|
+
NetworkSecurityPerimeterListConfigurationsResponse,
|
|
27
|
+
NetworkSecurityPerimeterGetConfigurationOptionalParams,
|
|
28
|
+
NetworkSecurityPerimeterGetConfigurationResponse,
|
|
29
|
+
NetworkSecurityPerimeterReconcileConfigurationOptionalParams,
|
|
30
|
+
NetworkSecurityPerimeterReconcileConfigurationResponse,
|
|
31
|
+
NetworkSecurityPerimeterListConfigurationsNextResponse,
|
|
32
|
+
} from "../models";
|
|
33
|
+
|
|
34
|
+
/// <reference lib="esnext.asynciterable" />
|
|
35
|
+
/** Class containing NetworkSecurityPerimeterOperations operations. */
|
|
36
|
+
export class NetworkSecurityPerimeterOperationsImpl
|
|
37
|
+
implements NetworkSecurityPerimeterOperations
|
|
38
|
+
{
|
|
39
|
+
private readonly client: BatchManagementClient;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initialize a new instance of the class NetworkSecurityPerimeterOperations class.
|
|
43
|
+
* @param client Reference to the service client
|
|
44
|
+
*/
|
|
45
|
+
constructor(client: BatchManagementClient) {
|
|
46
|
+
this.client = client;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Lists all of the NSP configurations in the specified account.
|
|
51
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
52
|
+
* @param accountName The name of the Batch account.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
public listConfigurations(
|
|
56
|
+
resourceGroupName: string,
|
|
57
|
+
accountName: string,
|
|
58
|
+
options?: NetworkSecurityPerimeterListConfigurationsOptionalParams,
|
|
59
|
+
): PagedAsyncIterableIterator<NetworkSecurityPerimeterConfiguration> {
|
|
60
|
+
const iter = this.listConfigurationsPagingAll(
|
|
61
|
+
resourceGroupName,
|
|
62
|
+
accountName,
|
|
63
|
+
options,
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
next() {
|
|
67
|
+
return iter.next();
|
|
68
|
+
},
|
|
69
|
+
[Symbol.asyncIterator]() {
|
|
70
|
+
return this;
|
|
71
|
+
},
|
|
72
|
+
byPage: (settings?: PageSettings) => {
|
|
73
|
+
if (settings?.maxPageSize) {
|
|
74
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
75
|
+
}
|
|
76
|
+
return this.listConfigurationsPagingPage(
|
|
77
|
+
resourceGroupName,
|
|
78
|
+
accountName,
|
|
79
|
+
options,
|
|
80
|
+
settings,
|
|
81
|
+
);
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private async *listConfigurationsPagingPage(
|
|
87
|
+
resourceGroupName: string,
|
|
88
|
+
accountName: string,
|
|
89
|
+
options?: NetworkSecurityPerimeterListConfigurationsOptionalParams,
|
|
90
|
+
settings?: PageSettings,
|
|
91
|
+
): AsyncIterableIterator<NetworkSecurityPerimeterConfiguration[]> {
|
|
92
|
+
let result: NetworkSecurityPerimeterListConfigurationsResponse;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listConfigurations(
|
|
96
|
+
resourceGroupName,
|
|
97
|
+
accountName,
|
|
98
|
+
options,
|
|
99
|
+
);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listConfigurationsNext(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
accountName,
|
|
109
|
+
continuationToken,
|
|
110
|
+
options,
|
|
111
|
+
);
|
|
112
|
+
continuationToken = result.nextLink;
|
|
113
|
+
let page = result.value || [];
|
|
114
|
+
setContinuationToken(page, continuationToken);
|
|
115
|
+
yield page;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
private async *listConfigurationsPagingAll(
|
|
120
|
+
resourceGroupName: string,
|
|
121
|
+
accountName: string,
|
|
122
|
+
options?: NetworkSecurityPerimeterListConfigurationsOptionalParams,
|
|
123
|
+
): AsyncIterableIterator<NetworkSecurityPerimeterConfiguration> {
|
|
124
|
+
for await (const page of this.listConfigurationsPagingPage(
|
|
125
|
+
resourceGroupName,
|
|
126
|
+
accountName,
|
|
127
|
+
options,
|
|
128
|
+
)) {
|
|
129
|
+
yield* page;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Lists all of the NSP configurations in the specified account.
|
|
135
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
136
|
+
* @param accountName The name of the Batch account.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
private _listConfigurations(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
accountName: string,
|
|
142
|
+
options?: NetworkSecurityPerimeterListConfigurationsOptionalParams,
|
|
143
|
+
): Promise<NetworkSecurityPerimeterListConfigurationsResponse> {
|
|
144
|
+
return this.client.sendOperationRequest(
|
|
145
|
+
{ resourceGroupName, accountName, options },
|
|
146
|
+
listConfigurationsOperationSpec,
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Gets information about the specified NSP configuration.
|
|
152
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
153
|
+
* @param accountName The name of the Batch account.
|
|
154
|
+
* @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter
|
|
155
|
+
* configuration
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
getConfiguration(
|
|
159
|
+
resourceGroupName: string,
|
|
160
|
+
accountName: string,
|
|
161
|
+
networkSecurityPerimeterConfigurationName: string,
|
|
162
|
+
options?: NetworkSecurityPerimeterGetConfigurationOptionalParams,
|
|
163
|
+
): Promise<NetworkSecurityPerimeterGetConfigurationResponse> {
|
|
164
|
+
return this.client.sendOperationRequest(
|
|
165
|
+
{
|
|
166
|
+
resourceGroupName,
|
|
167
|
+
accountName,
|
|
168
|
+
networkSecurityPerimeterConfigurationName,
|
|
169
|
+
options,
|
|
170
|
+
},
|
|
171
|
+
getConfigurationOperationSpec,
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Reconciles the specified NSP configuration.
|
|
177
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
178
|
+
* @param accountName The name of the Batch account.
|
|
179
|
+
* @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter
|
|
180
|
+
* configuration
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
async beginReconcileConfiguration(
|
|
184
|
+
resourceGroupName: string,
|
|
185
|
+
accountName: string,
|
|
186
|
+
networkSecurityPerimeterConfigurationName: string,
|
|
187
|
+
options?: NetworkSecurityPerimeterReconcileConfigurationOptionalParams,
|
|
188
|
+
): Promise<
|
|
189
|
+
SimplePollerLike<
|
|
190
|
+
OperationState<NetworkSecurityPerimeterReconcileConfigurationResponse>,
|
|
191
|
+
NetworkSecurityPerimeterReconcileConfigurationResponse
|
|
192
|
+
>
|
|
193
|
+
> {
|
|
194
|
+
const directSendOperation = async (
|
|
195
|
+
args: coreClient.OperationArguments,
|
|
196
|
+
spec: coreClient.OperationSpec,
|
|
197
|
+
): Promise<NetworkSecurityPerimeterReconcileConfigurationResponse> => {
|
|
198
|
+
return this.client.sendOperationRequest(args, spec);
|
|
199
|
+
};
|
|
200
|
+
const sendOperationFn = async (
|
|
201
|
+
args: coreClient.OperationArguments,
|
|
202
|
+
spec: coreClient.OperationSpec,
|
|
203
|
+
) => {
|
|
204
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
205
|
+
undefined;
|
|
206
|
+
const providedCallback = args.options?.onResponse;
|
|
207
|
+
const callback: coreClient.RawResponseCallback = (
|
|
208
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
209
|
+
flatResponse: unknown,
|
|
210
|
+
) => {
|
|
211
|
+
currentRawResponse = rawResponse;
|
|
212
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
213
|
+
};
|
|
214
|
+
const updatedArgs = {
|
|
215
|
+
...args,
|
|
216
|
+
options: {
|
|
217
|
+
...args.options,
|
|
218
|
+
onResponse: callback,
|
|
219
|
+
},
|
|
220
|
+
};
|
|
221
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
222
|
+
return {
|
|
223
|
+
flatResponse,
|
|
224
|
+
rawResponse: {
|
|
225
|
+
statusCode: currentRawResponse!.status,
|
|
226
|
+
body: currentRawResponse!.parsedBody,
|
|
227
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
const lro = createLroSpec({
|
|
233
|
+
sendOperationFn,
|
|
234
|
+
args: {
|
|
235
|
+
resourceGroupName,
|
|
236
|
+
accountName,
|
|
237
|
+
networkSecurityPerimeterConfigurationName,
|
|
238
|
+
options,
|
|
239
|
+
},
|
|
240
|
+
spec: reconcileConfigurationOperationSpec,
|
|
241
|
+
});
|
|
242
|
+
const poller = await createHttpPoller<
|
|
243
|
+
NetworkSecurityPerimeterReconcileConfigurationResponse,
|
|
244
|
+
OperationState<NetworkSecurityPerimeterReconcileConfigurationResponse>
|
|
245
|
+
>(lro, {
|
|
246
|
+
restoreFrom: options?.resumeFrom,
|
|
247
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
248
|
+
resourceLocationConfig: "location",
|
|
249
|
+
});
|
|
250
|
+
await poller.poll();
|
|
251
|
+
return poller;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Reconciles the specified NSP configuration.
|
|
256
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
257
|
+
* @param accountName The name of the Batch account.
|
|
258
|
+
* @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter
|
|
259
|
+
* configuration
|
|
260
|
+
* @param options The options parameters.
|
|
261
|
+
*/
|
|
262
|
+
async beginReconcileConfigurationAndWait(
|
|
263
|
+
resourceGroupName: string,
|
|
264
|
+
accountName: string,
|
|
265
|
+
networkSecurityPerimeterConfigurationName: string,
|
|
266
|
+
options?: NetworkSecurityPerimeterReconcileConfigurationOptionalParams,
|
|
267
|
+
): Promise<NetworkSecurityPerimeterReconcileConfigurationResponse> {
|
|
268
|
+
const poller = await this.beginReconcileConfiguration(
|
|
269
|
+
resourceGroupName,
|
|
270
|
+
accountName,
|
|
271
|
+
networkSecurityPerimeterConfigurationName,
|
|
272
|
+
options,
|
|
273
|
+
);
|
|
274
|
+
return poller.pollUntilDone();
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* ListConfigurationsNext
|
|
279
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
280
|
+
* @param accountName The name of the Batch account.
|
|
281
|
+
* @param nextLink The nextLink from the previous successful call to the ListConfigurations method.
|
|
282
|
+
* @param options The options parameters.
|
|
283
|
+
*/
|
|
284
|
+
private _listConfigurationsNext(
|
|
285
|
+
resourceGroupName: string,
|
|
286
|
+
accountName: string,
|
|
287
|
+
nextLink: string,
|
|
288
|
+
options?: NetworkSecurityPerimeterListConfigurationsNextOptionalParams,
|
|
289
|
+
): Promise<NetworkSecurityPerimeterListConfigurationsNextResponse> {
|
|
290
|
+
return this.client.sendOperationRequest(
|
|
291
|
+
{ resourceGroupName, accountName, nextLink, options },
|
|
292
|
+
listConfigurationsNextOperationSpec,
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
// Operation Specifications
|
|
297
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
298
|
+
|
|
299
|
+
const listConfigurationsOperationSpec: coreClient.OperationSpec = {
|
|
300
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/networkSecurityPerimeterConfigurations",
|
|
301
|
+
httpMethod: "GET",
|
|
302
|
+
responses: {
|
|
303
|
+
200: {
|
|
304
|
+
bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult,
|
|
305
|
+
},
|
|
306
|
+
default: {
|
|
307
|
+
bodyMapper: Mappers.CloudError,
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
queryParameters: [Parameters.apiVersion],
|
|
311
|
+
urlParameters: [
|
|
312
|
+
Parameters.$host,
|
|
313
|
+
Parameters.resourceGroupName,
|
|
314
|
+
Parameters.subscriptionId,
|
|
315
|
+
Parameters.accountName1,
|
|
316
|
+
],
|
|
317
|
+
headerParameters: [Parameters.accept],
|
|
318
|
+
serializer,
|
|
319
|
+
};
|
|
320
|
+
const getConfigurationOperationSpec: coreClient.OperationSpec = {
|
|
321
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}",
|
|
322
|
+
httpMethod: "GET",
|
|
323
|
+
responses: {
|
|
324
|
+
200: {
|
|
325
|
+
bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration,
|
|
326
|
+
},
|
|
327
|
+
default: {
|
|
328
|
+
bodyMapper: Mappers.CloudError,
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
queryParameters: [Parameters.apiVersion],
|
|
332
|
+
urlParameters: [
|
|
333
|
+
Parameters.$host,
|
|
334
|
+
Parameters.resourceGroupName,
|
|
335
|
+
Parameters.subscriptionId,
|
|
336
|
+
Parameters.accountName1,
|
|
337
|
+
Parameters.networkSecurityPerimeterConfigurationName,
|
|
338
|
+
],
|
|
339
|
+
headerParameters: [Parameters.accept],
|
|
340
|
+
serializer,
|
|
341
|
+
};
|
|
342
|
+
const reconcileConfigurationOperationSpec: coreClient.OperationSpec = {
|
|
343
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile",
|
|
344
|
+
httpMethod: "POST",
|
|
345
|
+
responses: {
|
|
346
|
+
200: {
|
|
347
|
+
headersMapper:
|
|
348
|
+
Mappers.NetworkSecurityPerimeterReconcileConfigurationHeaders,
|
|
349
|
+
},
|
|
350
|
+
201: {
|
|
351
|
+
headersMapper:
|
|
352
|
+
Mappers.NetworkSecurityPerimeterReconcileConfigurationHeaders,
|
|
353
|
+
},
|
|
354
|
+
202: {
|
|
355
|
+
headersMapper:
|
|
356
|
+
Mappers.NetworkSecurityPerimeterReconcileConfigurationHeaders,
|
|
357
|
+
},
|
|
358
|
+
204: {
|
|
359
|
+
headersMapper:
|
|
360
|
+
Mappers.NetworkSecurityPerimeterReconcileConfigurationHeaders,
|
|
361
|
+
},
|
|
362
|
+
default: {
|
|
363
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
queryParameters: [Parameters.apiVersion],
|
|
367
|
+
urlParameters: [
|
|
368
|
+
Parameters.$host,
|
|
369
|
+
Parameters.resourceGroupName,
|
|
370
|
+
Parameters.subscriptionId,
|
|
371
|
+
Parameters.accountName1,
|
|
372
|
+
Parameters.networkSecurityPerimeterConfigurationName,
|
|
373
|
+
],
|
|
374
|
+
headerParameters: [Parameters.accept],
|
|
375
|
+
serializer,
|
|
376
|
+
};
|
|
377
|
+
const listConfigurationsNextOperationSpec: coreClient.OperationSpec = {
|
|
378
|
+
path: "{nextLink}",
|
|
379
|
+
httpMethod: "GET",
|
|
380
|
+
responses: {
|
|
381
|
+
200: {
|
|
382
|
+
bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult,
|
|
383
|
+
},
|
|
384
|
+
default: {
|
|
385
|
+
bodyMapper: Mappers.CloudError,
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
urlParameters: [
|
|
389
|
+
Parameters.$host,
|
|
390
|
+
Parameters.resourceGroupName,
|
|
391
|
+
Parameters.subscriptionId,
|
|
392
|
+
Parameters.accountName1,
|
|
393
|
+
Parameters.nextLink,
|
|
394
|
+
],
|
|
395
|
+
headerParameters: [Parameters.accept],
|
|
396
|
+
serializer,
|
|
397
|
+
};
|
|
@@ -71,7 +71,7 @@ export interface BatchAccountOperations {
|
|
|
71
71
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
72
72
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
73
73
|
* about creating a pool inside of a virtual network, see
|
|
74
|
-
* https://docs.microsoft.com/
|
|
74
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network.
|
|
75
75
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
76
76
|
* @param accountName The name of the Batch account.
|
|
77
77
|
* @param options The options parameters.
|
|
@@ -10,7 +10,6 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
|
10
10
|
import {
|
|
11
11
|
SupportedSku,
|
|
12
12
|
LocationListSupportedVirtualMachineSkusOptionalParams,
|
|
13
|
-
LocationListSupportedCloudServiceSkusOptionalParams,
|
|
14
13
|
LocationGetQuotasOptionalParams,
|
|
15
14
|
LocationGetQuotasResponse,
|
|
16
15
|
CheckNameAvailabilityParameters,
|
|
@@ -30,15 +29,6 @@ export interface Location {
|
|
|
30
29
|
locationName: string,
|
|
31
30
|
options?: LocationListSupportedVirtualMachineSkusOptionalParams,
|
|
32
31
|
): PagedAsyncIterableIterator<SupportedSku>;
|
|
33
|
-
/**
|
|
34
|
-
* Gets the list of Batch supported Cloud Service VM sizes available at the given location.
|
|
35
|
-
* @param locationName The region for which to retrieve Batch service supported SKUs.
|
|
36
|
-
* @param options The options parameters.
|
|
37
|
-
*/
|
|
38
|
-
listSupportedCloudServiceSkus(
|
|
39
|
-
locationName: string,
|
|
40
|
-
options?: LocationListSupportedCloudServiceSkusOptionalParams,
|
|
41
|
-
): PagedAsyncIterableIterator<SupportedSku>;
|
|
42
32
|
/**
|
|
43
33
|
* Gets the Batch service quotas for the specified subscription at the given location.
|
|
44
34
|
* @param locationName The region for which to retrieve Batch service quotas.
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
NetworkSecurityPerimeterConfiguration,
|
|
13
|
+
NetworkSecurityPerimeterListConfigurationsOptionalParams,
|
|
14
|
+
NetworkSecurityPerimeterGetConfigurationOptionalParams,
|
|
15
|
+
NetworkSecurityPerimeterGetConfigurationResponse,
|
|
16
|
+
NetworkSecurityPerimeterReconcileConfigurationOptionalParams,
|
|
17
|
+
NetworkSecurityPerimeterReconcileConfigurationResponse,
|
|
18
|
+
} from "../models";
|
|
19
|
+
|
|
20
|
+
/// <reference lib="esnext.asynciterable" />
|
|
21
|
+
/** Interface representing a NetworkSecurityPerimeterOperations. */
|
|
22
|
+
export interface NetworkSecurityPerimeterOperations {
|
|
23
|
+
/**
|
|
24
|
+
* Lists all of the NSP configurations in the specified account.
|
|
25
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
26
|
+
* @param accountName The name of the Batch account.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listConfigurations(
|
|
30
|
+
resourceGroupName: string,
|
|
31
|
+
accountName: string,
|
|
32
|
+
options?: NetworkSecurityPerimeterListConfigurationsOptionalParams,
|
|
33
|
+
): PagedAsyncIterableIterator<NetworkSecurityPerimeterConfiguration>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets information about the specified NSP configuration.
|
|
36
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
37
|
+
* @param accountName The name of the Batch account.
|
|
38
|
+
* @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter
|
|
39
|
+
* configuration
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
getConfiguration(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
accountName: string,
|
|
45
|
+
networkSecurityPerimeterConfigurationName: string,
|
|
46
|
+
options?: NetworkSecurityPerimeterGetConfigurationOptionalParams,
|
|
47
|
+
): Promise<NetworkSecurityPerimeterGetConfigurationResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Reconciles the specified NSP configuration.
|
|
50
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
51
|
+
* @param accountName The name of the Batch account.
|
|
52
|
+
* @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter
|
|
53
|
+
* configuration
|
|
54
|
+
* @param options The options parameters.
|
|
55
|
+
*/
|
|
56
|
+
beginReconcileConfiguration(
|
|
57
|
+
resourceGroupName: string,
|
|
58
|
+
accountName: string,
|
|
59
|
+
networkSecurityPerimeterConfigurationName: string,
|
|
60
|
+
options?: NetworkSecurityPerimeterReconcileConfigurationOptionalParams,
|
|
61
|
+
): Promise<
|
|
62
|
+
SimplePollerLike<
|
|
63
|
+
OperationState<NetworkSecurityPerimeterReconcileConfigurationResponse>,
|
|
64
|
+
NetworkSecurityPerimeterReconcileConfigurationResponse
|
|
65
|
+
>
|
|
66
|
+
>;
|
|
67
|
+
/**
|
|
68
|
+
* Reconciles the specified NSP configuration.
|
|
69
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
70
|
+
* @param accountName The name of the Batch account.
|
|
71
|
+
* @param networkSecurityPerimeterConfigurationName The name for Network Security Perimeter
|
|
72
|
+
* configuration
|
|
73
|
+
* @param options The options parameters.
|
|
74
|
+
*/
|
|
75
|
+
beginReconcileConfigurationAndWait(
|
|
76
|
+
resourceGroupName: string,
|
|
77
|
+
accountName: string,
|
|
78
|
+
networkSecurityPerimeterConfigurationName: string,
|
|
79
|
+
options?: NetworkSecurityPerimeterReconcileConfigurationOptionalParams,
|
|
80
|
+
): Promise<NetworkSecurityPerimeterReconcileConfigurationResponse>;
|
|
81
|
+
}
|