@azure/arm-batch 7.1.2-alpha.20220427.2 → 7.2.1-alpha.20220721.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 +30 -1
- package/dist/index.js +400 -106
- 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/locationListSupportedCloudServiceSkusSample.js +1 -1
- package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/poolCreateSample.js +9 -9
- 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 +2 -2
- 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.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +32 -0
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -0
- 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 +2 -2
- package/dist-esm/samples-dev/privateLinkResourceGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
- package/dist-esm/src/batchManagementClient.d.ts +2 -0
- package/dist-esm/src/batchManagementClient.d.ts.map +1 -1
- package/dist-esm/src/batchManagementClient.js +48 -2
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +92 -35
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +146 -2
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.js +100 -92
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +19 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +92 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +19 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/test/batch_examples.d.ts.map +1 -1
- package/dist-esm/test/batch_examples.js +20 -22
- package/dist-esm/test/batch_examples.js.map +1 -1
- package/package.json +10 -7
- package/review/arm-batch.api.md +113 -69
- package/src/batchManagementClient.ts +60 -2
- package/src/models/index.ts +104 -36
- package/src/models/mappers.ts +153 -2
- package/src/models/parameters.ts +1 -1
- package/src/operations/batchAccountOperations.ts +184 -122
- package/src/operations/privateEndpointConnectionOperations.ts +134 -0
- package/src/operationsInterfaces/batchAccountOperations.ts +9 -4
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +36 -1
- package/types/arm-batch.d.ts +120 -36
|
@@ -23,6 +23,8 @@ import {
|
|
|
23
23
|
PrivateEndpointConnectionGetResponse,
|
|
24
24
|
PrivateEndpointConnectionUpdateOptionalParams,
|
|
25
25
|
PrivateEndpointConnectionUpdateResponse,
|
|
26
|
+
PrivateEndpointConnectionDeleteOptionalParams,
|
|
27
|
+
PrivateEndpointConnectionDeleteResponse,
|
|
26
28
|
PrivateEndpointConnectionListByBatchAccountNextResponse
|
|
27
29
|
} from "../models";
|
|
28
30
|
|
|
@@ -261,6 +263,106 @@ export class PrivateEndpointConnectionOperationsImpl
|
|
|
261
263
|
return poller.pollUntilDone();
|
|
262
264
|
}
|
|
263
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Deletes the specified private endpoint connection.
|
|
268
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
269
|
+
* @param accountName The name of the Batch account.
|
|
270
|
+
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
271
|
+
* within the account.
|
|
272
|
+
* @param options The options parameters.
|
|
273
|
+
*/
|
|
274
|
+
async beginDelete(
|
|
275
|
+
resourceGroupName: string,
|
|
276
|
+
accountName: string,
|
|
277
|
+
privateEndpointConnectionName: string,
|
|
278
|
+
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
279
|
+
): Promise<
|
|
280
|
+
PollerLike<
|
|
281
|
+
PollOperationState<PrivateEndpointConnectionDeleteResponse>,
|
|
282
|
+
PrivateEndpointConnectionDeleteResponse
|
|
283
|
+
>
|
|
284
|
+
> {
|
|
285
|
+
const directSendOperation = async (
|
|
286
|
+
args: coreClient.OperationArguments,
|
|
287
|
+
spec: coreClient.OperationSpec
|
|
288
|
+
): Promise<PrivateEndpointConnectionDeleteResponse> => {
|
|
289
|
+
return this.client.sendOperationRequest(args, spec);
|
|
290
|
+
};
|
|
291
|
+
const sendOperation = async (
|
|
292
|
+
args: coreClient.OperationArguments,
|
|
293
|
+
spec: coreClient.OperationSpec
|
|
294
|
+
) => {
|
|
295
|
+
let currentRawResponse:
|
|
296
|
+
| coreClient.FullOperationResponse
|
|
297
|
+
| undefined = undefined;
|
|
298
|
+
const providedCallback = args.options?.onResponse;
|
|
299
|
+
const callback: coreClient.RawResponseCallback = (
|
|
300
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
301
|
+
flatResponse: unknown
|
|
302
|
+
) => {
|
|
303
|
+
currentRawResponse = rawResponse;
|
|
304
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
305
|
+
};
|
|
306
|
+
const updatedArgs = {
|
|
307
|
+
...args,
|
|
308
|
+
options: {
|
|
309
|
+
...args.options,
|
|
310
|
+
onResponse: callback
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
314
|
+
return {
|
|
315
|
+
flatResponse,
|
|
316
|
+
rawResponse: {
|
|
317
|
+
statusCode: currentRawResponse!.status,
|
|
318
|
+
body: currentRawResponse!.parsedBody,
|
|
319
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
const lro = new LroImpl(
|
|
325
|
+
sendOperation,
|
|
326
|
+
{
|
|
327
|
+
resourceGroupName,
|
|
328
|
+
accountName,
|
|
329
|
+
privateEndpointConnectionName,
|
|
330
|
+
options
|
|
331
|
+
},
|
|
332
|
+
deleteOperationSpec
|
|
333
|
+
);
|
|
334
|
+
const poller = new LroEngine(lro, {
|
|
335
|
+
resumeFrom: options?.resumeFrom,
|
|
336
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
337
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
338
|
+
});
|
|
339
|
+
await poller.poll();
|
|
340
|
+
return poller;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Deletes the specified private endpoint connection.
|
|
345
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
346
|
+
* @param accountName The name of the Batch account.
|
|
347
|
+
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
348
|
+
* within the account.
|
|
349
|
+
* @param options The options parameters.
|
|
350
|
+
*/
|
|
351
|
+
async beginDeleteAndWait(
|
|
352
|
+
resourceGroupName: string,
|
|
353
|
+
accountName: string,
|
|
354
|
+
privateEndpointConnectionName: string,
|
|
355
|
+
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
356
|
+
): Promise<PrivateEndpointConnectionDeleteResponse> {
|
|
357
|
+
const poller = await this.beginDelete(
|
|
358
|
+
resourceGroupName,
|
|
359
|
+
accountName,
|
|
360
|
+
privateEndpointConnectionName,
|
|
361
|
+
options
|
|
362
|
+
);
|
|
363
|
+
return poller.pollUntilDone();
|
|
364
|
+
}
|
|
365
|
+
|
|
264
366
|
/**
|
|
265
367
|
* ListByBatchAccountNext
|
|
266
368
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
@@ -366,6 +468,38 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
366
468
|
mediaType: "json",
|
|
367
469
|
serializer
|
|
368
470
|
};
|
|
471
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
472
|
+
path:
|
|
473
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
474
|
+
httpMethod: "DELETE",
|
|
475
|
+
responses: {
|
|
476
|
+
200: {
|
|
477
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
478
|
+
},
|
|
479
|
+
201: {
|
|
480
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
481
|
+
},
|
|
482
|
+
202: {
|
|
483
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
484
|
+
},
|
|
485
|
+
204: {
|
|
486
|
+
headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders
|
|
487
|
+
},
|
|
488
|
+
default: {
|
|
489
|
+
bodyMapper: Mappers.CloudError
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
queryParameters: [Parameters.apiVersion],
|
|
493
|
+
urlParameters: [
|
|
494
|
+
Parameters.$host,
|
|
495
|
+
Parameters.resourceGroupName,
|
|
496
|
+
Parameters.subscriptionId,
|
|
497
|
+
Parameters.accountName1,
|
|
498
|
+
Parameters.privateEndpointConnectionName
|
|
499
|
+
],
|
|
500
|
+
headerParameters: [Parameters.accept],
|
|
501
|
+
serializer
|
|
502
|
+
};
|
|
369
503
|
const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = {
|
|
370
504
|
path: "{nextLink}",
|
|
371
505
|
httpMethod: "GET",
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
BatchAccountGetKeysOptionalParams,
|
|
33
33
|
BatchAccountGetKeysResponse,
|
|
34
34
|
BatchAccountGetDetectorOptionalParams,
|
|
35
|
-
BatchAccountGetDetectorResponse
|
|
35
|
+
BatchAccountGetDetectorResponse
|
|
36
36
|
} from "../models";
|
|
37
37
|
|
|
38
38
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -42,7 +42,9 @@ export interface BatchAccountOperations {
|
|
|
42
42
|
* Gets information about the Batch accounts associated with the subscription.
|
|
43
43
|
* @param options The options parameters.
|
|
44
44
|
*/
|
|
45
|
-
list(
|
|
45
|
+
list(
|
|
46
|
+
options?: BatchAccountListOptionalParams
|
|
47
|
+
): PagedAsyncIterableIterator<BatchAccount>;
|
|
46
48
|
/**
|
|
47
49
|
* Gets information about the Batch accounts associated with the specified resource group.
|
|
48
50
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
@@ -69,7 +71,7 @@ export interface BatchAccountOperations {
|
|
|
69
71
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
70
72
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
71
73
|
* about creating a pool inside of a virtual network, see
|
|
72
|
-
* https://docs.microsoft.com/azure/batch/batch-virtual-network
|
|
74
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network
|
|
73
75
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
74
76
|
* @param accountName The name of the Batch account.
|
|
75
77
|
* @param options The options parameters.
|
|
@@ -96,7 +98,10 @@ export interface BatchAccountOperations {
|
|
|
96
98
|
parameters: BatchAccountCreateParameters,
|
|
97
99
|
options?: BatchAccountCreateOptionalParams
|
|
98
100
|
): Promise<
|
|
99
|
-
PollerLike<
|
|
101
|
+
PollerLike<
|
|
102
|
+
PollOperationState<BatchAccountCreateResponse>,
|
|
103
|
+
BatchAccountCreateResponse
|
|
104
|
+
>
|
|
100
105
|
>;
|
|
101
106
|
/**
|
|
102
107
|
* Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with
|
|
@@ -14,7 +14,9 @@ import {
|
|
|
14
14
|
PrivateEndpointConnectionGetOptionalParams,
|
|
15
15
|
PrivateEndpointConnectionGetResponse,
|
|
16
16
|
PrivateEndpointConnectionUpdateOptionalParams,
|
|
17
|
-
PrivateEndpointConnectionUpdateResponse
|
|
17
|
+
PrivateEndpointConnectionUpdateResponse,
|
|
18
|
+
PrivateEndpointConnectionDeleteOptionalParams,
|
|
19
|
+
PrivateEndpointConnectionDeleteResponse
|
|
18
20
|
} from "../models";
|
|
19
21
|
|
|
20
22
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -84,4 +86,37 @@ export interface PrivateEndpointConnectionOperations {
|
|
|
84
86
|
parameters: PrivateEndpointConnection,
|
|
85
87
|
options?: PrivateEndpointConnectionUpdateOptionalParams
|
|
86
88
|
): Promise<PrivateEndpointConnectionUpdateResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Deletes the specified private endpoint connection.
|
|
91
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
92
|
+
* @param accountName The name of the Batch account.
|
|
93
|
+
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
94
|
+
* within the account.
|
|
95
|
+
* @param options The options parameters.
|
|
96
|
+
*/
|
|
97
|
+
beginDelete(
|
|
98
|
+
resourceGroupName: string,
|
|
99
|
+
accountName: string,
|
|
100
|
+
privateEndpointConnectionName: string,
|
|
101
|
+
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
102
|
+
): Promise<
|
|
103
|
+
PollerLike<
|
|
104
|
+
PollOperationState<PrivateEndpointConnectionDeleteResponse>,
|
|
105
|
+
PrivateEndpointConnectionDeleteResponse
|
|
106
|
+
>
|
|
107
|
+
>;
|
|
108
|
+
/**
|
|
109
|
+
* Deletes the specified private endpoint connection.
|
|
110
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
111
|
+
* @param accountName The name of the Batch account.
|
|
112
|
+
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
113
|
+
* within the account.
|
|
114
|
+
* @param options The options parameters.
|
|
115
|
+
*/
|
|
116
|
+
beginDeleteAndWait(
|
|
117
|
+
resourceGroupName: string,
|
|
118
|
+
accountName: string,
|
|
119
|
+
privateEndpointConnectionName: string,
|
|
120
|
+
options?: PrivateEndpointConnectionDeleteOptionalParams
|
|
121
|
+
): Promise<PrivateEndpointConnectionDeleteResponse>;
|
|
87
122
|
}
|
package/types/arm-batch.d.ts
CHANGED
|
@@ -17,14 +17,14 @@ export declare interface ActivateApplicationPackageParameters {
|
|
|
17
17
|
export declare type AllocationState = "Steady" | "Resizing" | "Stopping";
|
|
18
18
|
|
|
19
19
|
/** Contains information about an application in a Batch account. */
|
|
20
|
-
export declare
|
|
20
|
+
export declare interface Application extends ProxyResource {
|
|
21
21
|
/** The display name for the application. */
|
|
22
22
|
displayName?: string;
|
|
23
23
|
/** A value indicating whether packages within the application may be overwritten using the same version string. */
|
|
24
24
|
allowUpdates?: boolean;
|
|
25
25
|
/** The package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package. */
|
|
26
26
|
defaultVersion?: string;
|
|
27
|
-
}
|
|
27
|
+
}
|
|
28
28
|
|
|
29
29
|
/** Optional parameters. */
|
|
30
30
|
export declare interface ApplicationCreateOptionalParams extends coreClient.OperationOptions {
|
|
@@ -109,7 +109,7 @@ export declare interface ApplicationOperations {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
/** An application package which represents a particular version of an application. */
|
|
112
|
-
export declare
|
|
112
|
+
export declare interface ApplicationPackage extends ProxyResource {
|
|
113
113
|
/**
|
|
114
114
|
* The current state of the application package.
|
|
115
115
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -135,7 +135,7 @@ export declare type ApplicationPackage = ProxyResource & {
|
|
|
135
135
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
136
136
|
*/
|
|
137
137
|
readonly lastActivationTime?: Date;
|
|
138
|
-
}
|
|
138
|
+
}
|
|
139
139
|
|
|
140
140
|
/** Optional parameters. */
|
|
141
141
|
export declare interface ApplicationPackageActivateOptionalParams extends coreClient.OperationOptions {
|
|
@@ -296,10 +296,10 @@ export declare interface AutoStorageBaseProperties {
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
/** Contains information about the auto-storage account associated with a Batch account. */
|
|
299
|
-
export declare
|
|
299
|
+
export declare interface AutoStorageProperties extends AutoStorageBaseProperties {
|
|
300
300
|
/** The UTC time at which storage keys were last synchronized with the Batch account. */
|
|
301
301
|
lastKeySync: Date;
|
|
302
|
-
}
|
|
302
|
+
}
|
|
303
303
|
|
|
304
304
|
/** Defines values for AutoUserScope. */
|
|
305
305
|
export declare type AutoUserScope = "Task" | "Pool";
|
|
@@ -345,7 +345,7 @@ export declare interface AzureFileShareConfiguration {
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
/** Contains information about an Azure Batch account. */
|
|
348
|
-
export declare
|
|
348
|
+
export declare interface BatchAccount extends Resource {
|
|
349
349
|
/** The identity of the Batch account. */
|
|
350
350
|
identity?: BatchAccountIdentity;
|
|
351
351
|
/**
|
|
@@ -353,6 +353,11 @@ export declare type BatchAccount = Resource & {
|
|
|
353
353
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
354
354
|
*/
|
|
355
355
|
readonly accountEndpoint?: string;
|
|
356
|
+
/**
|
|
357
|
+
* The endpoint used by compute node to connect to the Batch node management service.
|
|
358
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
359
|
+
*/
|
|
360
|
+
readonly nodeManagementEndpoint?: string;
|
|
356
361
|
/**
|
|
357
362
|
* The provisioned state of the resource
|
|
358
363
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -368,11 +373,10 @@ export declare type BatchAccount = Resource & {
|
|
|
368
373
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
369
374
|
*/
|
|
370
375
|
readonly keyVaultReference?: KeyVaultReference;
|
|
371
|
-
/**
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
readonly publicNetworkAccess?: PublicNetworkAccessType;
|
|
376
|
+
/** If not specified, the default value is 'enabled'. */
|
|
377
|
+
publicNetworkAccess?: PublicNetworkAccessType;
|
|
378
|
+
/** The network profile only takes effect when publicNetworkAccess is enabled. */
|
|
379
|
+
networkProfile?: NetworkProfile;
|
|
376
380
|
/**
|
|
377
381
|
* List of private endpoint connections associated with the Batch account
|
|
378
382
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -404,7 +408,7 @@ export declare type BatchAccount = Resource & {
|
|
|
404
408
|
*/
|
|
405
409
|
readonly dedicatedCoreQuotaPerVMFamily?: VirtualMachineFamilyCoreQuota[];
|
|
406
410
|
/**
|
|
407
|
-
*
|
|
411
|
+
* If this flag is true, dedicated core quota is enforced via both the dedicatedCoreQuotaPerVMFamily and dedicatedCoreQuota properties on the account. If this flag is false, dedicated core quota is enforced only via the dedicatedCoreQuota property on the account and does not consider Virtual Machine family.
|
|
408
412
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
409
413
|
*/
|
|
410
414
|
readonly dedicatedCoreQuotaPerVMFamilyEnforced?: boolean;
|
|
@@ -423,7 +427,7 @@ export declare type BatchAccount = Resource & {
|
|
|
423
427
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
424
428
|
*/
|
|
425
429
|
readonly allowedAuthenticationModes?: AuthenticationMode[];
|
|
426
|
-
}
|
|
430
|
+
}
|
|
427
431
|
|
|
428
432
|
/** Defines headers for BatchAccount_create operation. */
|
|
429
433
|
export declare interface BatchAccountCreateHeaders {
|
|
@@ -459,6 +463,8 @@ export declare interface BatchAccountCreateParameters {
|
|
|
459
463
|
keyVaultReference?: KeyVaultReference;
|
|
460
464
|
/** If not specified, the default value is 'enabled'. */
|
|
461
465
|
publicNetworkAccess?: PublicNetworkAccessType;
|
|
466
|
+
/** The network profile only takes effect when publicNetworkAccess is enabled. */
|
|
467
|
+
networkProfile?: NetworkProfile;
|
|
462
468
|
/** Configures how customer data is encrypted inside the Batch account. By default, accounts are encrypted using a Microsoft managed key. For additional control, a customer-managed key can be used instead. */
|
|
463
469
|
encryption?: EncryptionProperties;
|
|
464
470
|
/** List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does not affect authentication with the control plane. */
|
|
@@ -634,7 +640,7 @@ export declare interface BatchAccountOperations {
|
|
|
634
640
|
* you must make sure your network allows outbound access to these endpoints. Failure to allow access
|
|
635
641
|
* to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
|
|
636
642
|
* about creating a pool inside of a virtual network, see
|
|
637
|
-
* https://docs.microsoft.com/azure/batch/batch-virtual-network
|
|
643
|
+
* https://docs.microsoft.com/azure/batch/batch-virtual-network
|
|
638
644
|
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
639
645
|
* @param accountName The name of the Batch account.
|
|
640
646
|
* @param options The options parameters.
|
|
@@ -767,6 +773,10 @@ export declare interface BatchAccountUpdateParameters {
|
|
|
767
773
|
encryption?: EncryptionProperties;
|
|
768
774
|
/** List of allowed authentication modes for the Batch account that can be used to authenticate with the data plane. This does not affect authentication with the control plane. */
|
|
769
775
|
allowedAuthenticationModes?: AuthenticationMode[];
|
|
776
|
+
/** If not specified, the default value is 'enabled'. */
|
|
777
|
+
publicNetworkAccess?: PublicNetworkAccessType;
|
|
778
|
+
/** The network profile only takes effect when publicNetworkAccess is enabled. */
|
|
779
|
+
networkProfile?: NetworkProfile;
|
|
770
780
|
}
|
|
771
781
|
|
|
772
782
|
/** Contains response data for the update operation. */
|
|
@@ -793,6 +803,8 @@ export declare class BatchManagementClient extends coreClient.ServiceClient {
|
|
|
793
803
|
* @param options The parameter options
|
|
794
804
|
*/
|
|
795
805
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: BatchManagementClientOptionalParams);
|
|
806
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
807
|
+
private addCustomApiVersionPolicy;
|
|
796
808
|
batchAccountOperations: BatchAccountOperations;
|
|
797
809
|
applicationPackageOperations: ApplicationPackageOperations;
|
|
798
810
|
applicationOperations: ApplicationOperations;
|
|
@@ -828,7 +840,7 @@ export declare interface BatchPoolIdentity {
|
|
|
828
840
|
export declare type CachingType = "None" | "ReadOnly" | "ReadWrite";
|
|
829
841
|
|
|
830
842
|
/** Contains information about a certificate. */
|
|
831
|
-
export declare
|
|
843
|
+
export declare interface Certificate extends ProxyResource {
|
|
832
844
|
/** This must match the first portion of the certificate name. Currently required to be 'SHA1'. */
|
|
833
845
|
thumbprintAlgorithm?: string;
|
|
834
846
|
/** This must match the thumbprint from the name. */
|
|
@@ -862,7 +874,7 @@ export declare type Certificate = ProxyResource & {
|
|
|
862
874
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
863
875
|
*/
|
|
864
876
|
readonly deleteCertificateError?: DeleteCertificateError;
|
|
865
|
-
}
|
|
877
|
+
}
|
|
866
878
|
|
|
867
879
|
/** Base certificate properties. */
|
|
868
880
|
export declare interface CertificateBaseProperties {
|
|
@@ -902,7 +914,7 @@ export declare interface CertificateCreateOptionalParams extends coreClient.Oper
|
|
|
902
914
|
}
|
|
903
915
|
|
|
904
916
|
/** Contains information about a certificate. */
|
|
905
|
-
export declare
|
|
917
|
+
export declare interface CertificateCreateOrUpdateParameters extends ProxyResource {
|
|
906
918
|
/** This must match the first portion of the certificate name. Currently required to be 'SHA1'. */
|
|
907
919
|
thumbprintAlgorithm?: string;
|
|
908
920
|
/** This must match the thumbprint from the name. */
|
|
@@ -913,15 +925,15 @@ export declare type CertificateCreateOrUpdateParameters = ProxyResource & {
|
|
|
913
925
|
data?: string;
|
|
914
926
|
/** This must not be specified if the certificate format is Cer. */
|
|
915
927
|
password?: string;
|
|
916
|
-
}
|
|
928
|
+
}
|
|
917
929
|
|
|
918
930
|
/** Certificate properties for create operations */
|
|
919
|
-
export declare
|
|
931
|
+
export declare interface CertificateCreateOrUpdateProperties extends CertificateBaseProperties {
|
|
920
932
|
/** The maximum size is 10KB. */
|
|
921
933
|
data: string;
|
|
922
934
|
/** This must not be specified if the certificate format is Cer. */
|
|
923
935
|
password?: string;
|
|
924
|
-
}
|
|
936
|
+
}
|
|
925
937
|
|
|
926
938
|
/** Contains response data for the create operation. */
|
|
927
939
|
export declare type CertificateCreateResponse = CertificateCreateHeaders & Certificate;
|
|
@@ -1063,7 +1075,7 @@ export declare interface CertificateOperations {
|
|
|
1063
1075
|
}
|
|
1064
1076
|
|
|
1065
1077
|
/** Certificate properties. */
|
|
1066
|
-
export declare
|
|
1078
|
+
export declare interface CertificateProperties extends CertificateBaseProperties {
|
|
1067
1079
|
/** NOTE: This property will not be serialized. It can only be populated by the server. */
|
|
1068
1080
|
readonly provisioningState?: CertificateProvisioningState;
|
|
1069
1081
|
/**
|
|
@@ -1091,7 +1103,7 @@ export declare type CertificateProperties = CertificateBaseProperties & {
|
|
|
1091
1103
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1092
1104
|
*/
|
|
1093
1105
|
readonly deleteCertificateError?: DeleteCertificateError;
|
|
1094
|
-
}
|
|
1106
|
+
}
|
|
1095
1107
|
|
|
1096
1108
|
/** Defines values for CertificateProvisioningState. */
|
|
1097
1109
|
export declare type CertificateProvisioningState = "Succeeded" | "Deleting" | "Failed";
|
|
@@ -1287,10 +1299,10 @@ export declare interface DetectorListResult {
|
|
|
1287
1299
|
}
|
|
1288
1300
|
|
|
1289
1301
|
/** Contains the information for a detector. */
|
|
1290
|
-
export declare
|
|
1302
|
+
export declare interface DetectorResponse extends ProxyResource {
|
|
1291
1303
|
/** A base64 encoded string that represents the content of a detector. */
|
|
1292
1304
|
value?: string;
|
|
1293
|
-
}
|
|
1305
|
+
}
|
|
1294
1306
|
|
|
1295
1307
|
/** Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine. */
|
|
1296
1308
|
export declare interface DiffDiskSettings {
|
|
@@ -1321,6 +1333,17 @@ export declare interface EncryptionProperties {
|
|
|
1321
1333
|
keyVaultProperties?: KeyVaultProperties;
|
|
1322
1334
|
}
|
|
1323
1335
|
|
|
1336
|
+
/** Defines values for EndpointAccessDefaultAction. */
|
|
1337
|
+
export declare type EndpointAccessDefaultAction = "Allow" | "Deny";
|
|
1338
|
+
|
|
1339
|
+
/** Network access profile for Batch endpoint. */
|
|
1340
|
+
export declare interface EndpointAccessProfile {
|
|
1341
|
+
/** Default action for endpoint access. It is only applicable when publicNetworkAccess is enabled. */
|
|
1342
|
+
defaultAction: EndpointAccessDefaultAction;
|
|
1343
|
+
/** Array of IP ranges to filter client IP address. */
|
|
1344
|
+
ipRules?: IPRule[];
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1324
1347
|
/** A domain name and connection details used to access a dependency. */
|
|
1325
1348
|
export declare interface EndpointDependency {
|
|
1326
1349
|
/**
|
|
@@ -1408,6 +1431,14 @@ export declare type InterNodeCommunicationState = "Enabled" | "Disabled";
|
|
|
1408
1431
|
/** Defines values for IPAddressProvisioningType. */
|
|
1409
1432
|
export declare type IPAddressProvisioningType = "BatchManaged" | "UserManaged" | "NoPublicIPAddresses";
|
|
1410
1433
|
|
|
1434
|
+
/** Rule to filter client IP address. */
|
|
1435
|
+
export declare interface IPRule {
|
|
1436
|
+
/** Action when client IP address is matched. */
|
|
1437
|
+
action: "Allow";
|
|
1438
|
+
/** IPv4 address, or IPv4 address range in CIDR format. */
|
|
1439
|
+
value: string;
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1411
1442
|
/** Defines values for KeySource. */
|
|
1412
1443
|
export declare type KeySource = "Microsoft.Batch" | "Microsoft.KeyVault";
|
|
1413
1444
|
|
|
@@ -1615,6 +1646,14 @@ export declare interface NetworkConfiguration {
|
|
|
1615
1646
|
publicIPAddressConfiguration?: PublicIPAddressConfiguration;
|
|
1616
1647
|
}
|
|
1617
1648
|
|
|
1649
|
+
/** Network profile for Batch account, which contains network rule settings for each endpoint. */
|
|
1650
|
+
export declare interface NetworkProfile {
|
|
1651
|
+
/** Network access profile for batchAccount endpoint (Batch account data plane API). */
|
|
1652
|
+
accountAccess?: EndpointAccessProfile;
|
|
1653
|
+
/** Network access profile for nodeManagement endpoint (Batch service managing compute nodes for Batch pools). */
|
|
1654
|
+
nodeManagementAccess?: EndpointAccessProfile;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1618
1657
|
/** A network security group rule to apply to an inbound endpoint. */
|
|
1619
1658
|
export declare interface NetworkSecurityGroupRule {
|
|
1620
1659
|
/** Priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or duplicate values are provided the request fails with HTTP status code 400. */
|
|
@@ -1659,7 +1698,7 @@ export declare interface Operation {
|
|
|
1659
1698
|
display?: OperationDisplay;
|
|
1660
1699
|
/** The intended executor of the operation. */
|
|
1661
1700
|
origin?: string;
|
|
1662
|
-
/**
|
|
1701
|
+
/** Properties of the operation. */
|
|
1663
1702
|
properties?: Record<string, unknown>;
|
|
1664
1703
|
}
|
|
1665
1704
|
|
|
@@ -1741,7 +1780,7 @@ export declare interface OutboundEnvironmentEndpointCollection {
|
|
|
1741
1780
|
export declare type PackageState = "Pending" | "Active";
|
|
1742
1781
|
|
|
1743
1782
|
/** Contains information about a pool. */
|
|
1744
|
-
export declare
|
|
1783
|
+
export declare interface Pool extends ProxyResource {
|
|
1745
1784
|
/** The type of identity used for the Batch Pool. */
|
|
1746
1785
|
identity?: BatchPoolIdentity;
|
|
1747
1786
|
/** The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. */
|
|
@@ -1824,7 +1863,7 @@ export declare type Pool = ProxyResource & {
|
|
|
1824
1863
|
readonly resizeOperationStatus?: ResizeOperationStatus;
|
|
1825
1864
|
/** This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. */
|
|
1826
1865
|
mountConfiguration?: MountConfiguration[];
|
|
1827
|
-
}
|
|
1866
|
+
}
|
|
1828
1867
|
|
|
1829
1868
|
/** Defines values for PoolAllocationMode. */
|
|
1830
1869
|
export declare type PoolAllocationMode = "BatchService" | "UserSubscription";
|
|
@@ -2067,17 +2106,44 @@ export declare interface PrivateEndpoint {
|
|
|
2067
2106
|
}
|
|
2068
2107
|
|
|
2069
2108
|
/** Contains information about a private link resource. */
|
|
2070
|
-
export declare
|
|
2109
|
+
export declare interface PrivateEndpointConnection extends ProxyResource {
|
|
2071
2110
|
/**
|
|
2072
2111
|
* The provisioning state of the private endpoint connection.
|
|
2073
2112
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
2074
2113
|
*/
|
|
2075
2114
|
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
|
2076
|
-
/**
|
|
2077
|
-
|
|
2115
|
+
/**
|
|
2116
|
+
* The private endpoint of the private endpoint connection.
|
|
2117
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
2118
|
+
*/
|
|
2119
|
+
readonly privateEndpoint?: PrivateEndpoint;
|
|
2120
|
+
/**
|
|
2121
|
+
* The value has one and only one group id.
|
|
2122
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
2123
|
+
*/
|
|
2124
|
+
readonly groupIds?: string[];
|
|
2078
2125
|
/** The private link service connection state of the private endpoint connection */
|
|
2079
2126
|
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
|
|
2080
|
-
}
|
|
2127
|
+
}
|
|
2128
|
+
|
|
2129
|
+
/** Defines headers for PrivateEndpointConnection_delete operation. */
|
|
2130
|
+
export declare interface PrivateEndpointConnectionDeleteHeaders {
|
|
2131
|
+
/** The URL of the resource used to check the status of the asynchronous operation. */
|
|
2132
|
+
location?: string;
|
|
2133
|
+
/** Suggested delay to check the status of the asynchronous operation. The value is an integer that specifies the delay in seconds. */
|
|
2134
|
+
retryAfter?: number;
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
/** Optional parameters. */
|
|
2138
|
+
export declare interface PrivateEndpointConnectionDeleteOptionalParams extends coreClient.OperationOptions {
|
|
2139
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
2140
|
+
updateIntervalInMs?: number;
|
|
2141
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
2142
|
+
resumeFrom?: string;
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
/** Contains response data for the delete operation. */
|
|
2146
|
+
export declare type PrivateEndpointConnectionDeleteResponse = PrivateEndpointConnectionDeleteHeaders;
|
|
2081
2147
|
|
|
2082
2148
|
/** Optional parameters. */
|
|
2083
2149
|
export declare interface PrivateEndpointConnectionGetOptionalParams extends coreClient.OperationOptions {
|
|
@@ -2144,10 +2210,28 @@ export declare interface PrivateEndpointConnectionOperations {
|
|
|
2144
2210
|
* @param options The options parameters.
|
|
2145
2211
|
*/
|
|
2146
2212
|
beginUpdateAndWait(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionUpdateOptionalParams): Promise<PrivateEndpointConnectionUpdateResponse>;
|
|
2213
|
+
/**
|
|
2214
|
+
* Deletes the specified private endpoint connection.
|
|
2215
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
2216
|
+
* @param accountName The name of the Batch account.
|
|
2217
|
+
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
2218
|
+
* within the account.
|
|
2219
|
+
* @param options The options parameters.
|
|
2220
|
+
*/
|
|
2221
|
+
beginDelete(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionDeleteResponse>, PrivateEndpointConnectionDeleteResponse>>;
|
|
2222
|
+
/**
|
|
2223
|
+
* Deletes the specified private endpoint connection.
|
|
2224
|
+
* @param resourceGroupName The name of the resource group that contains the Batch account.
|
|
2225
|
+
* @param accountName The name of the Batch account.
|
|
2226
|
+
* @param privateEndpointConnectionName The private endpoint connection name. This must be unique
|
|
2227
|
+
* within the account.
|
|
2228
|
+
* @param options The options parameters.
|
|
2229
|
+
*/
|
|
2230
|
+
beginDeleteAndWait(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise<PrivateEndpointConnectionDeleteResponse>;
|
|
2147
2231
|
}
|
|
2148
2232
|
|
|
2149
2233
|
/** Defines values for PrivateEndpointConnectionProvisioningState. */
|
|
2150
|
-
export declare type PrivateEndpointConnectionProvisioningState = "
|
|
2234
|
+
export declare type PrivateEndpointConnectionProvisioningState = "Creating" | "Updating" | "Deleting" | "Succeeded" | "Failed" | "Cancelled";
|
|
2151
2235
|
|
|
2152
2236
|
/** Defines headers for PrivateEndpointConnection_update operation. */
|
|
2153
2237
|
export declare interface PrivateEndpointConnectionUpdateHeaders {
|
|
@@ -2171,7 +2255,7 @@ export declare interface PrivateEndpointConnectionUpdateOptionalParams extends c
|
|
|
2171
2255
|
export declare type PrivateEndpointConnectionUpdateResponse = PrivateEndpointConnection;
|
|
2172
2256
|
|
|
2173
2257
|
/** Contains information about a private link resource. */
|
|
2174
|
-
export declare
|
|
2258
|
+
export declare interface PrivateLinkResource extends ProxyResource {
|
|
2175
2259
|
/**
|
|
2176
2260
|
* The group id is used to establish the private link connection.
|
|
2177
2261
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -2187,7 +2271,7 @@ export declare type PrivateLinkResource = ProxyResource & {
|
|
|
2187
2271
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
2188
2272
|
*/
|
|
2189
2273
|
readonly requiredZoneNames?: string[];
|
|
2190
|
-
}
|
|
2274
|
+
}
|
|
2191
2275
|
|
|
2192
2276
|
/** Optional parameters. */
|
|
2193
2277
|
export declare interface PrivateLinkResourceGetOptionalParams extends coreClient.OperationOptions {
|
|
@@ -2549,7 +2633,7 @@ export declare interface VMExtension {
|
|
|
2549
2633
|
typeHandlerVersion?: string;
|
|
2550
2634
|
/** Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. */
|
|
2551
2635
|
autoUpgradeMinorVersion?: boolean;
|
|
2552
|
-
/**
|
|
2636
|
+
/** JSON formatted public settings for the extension. */
|
|
2553
2637
|
settings?: Record<string, unknown>;
|
|
2554
2638
|
/** The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. */
|
|
2555
2639
|
protectedSettings?: Record<string, unknown>;
|