Skip to content

Commit 1f574ef

Browse files
authored
batch-track2 (Azure#20609)
1 parent efd7194 commit 1f574ef

File tree

162 files changed

+8533
-123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+8533
-123
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/ignore-links.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ https://docs.microsoft.com/javascript/api/@azure/arm-iothub-profile-2020-09-01-h
2727
https://docs.microsoft.com/javascript/api/@azure/arm-monitor-profile-2020-09-01-hybrid?view=azure-node-preview
2828
https://docs.microsoft.com/javascript/api/@azure/arm-databoxedge-profile-2020-09-01-hybrid
2929
https://docs.microsoft.com/javascript/api/@azure/arm-appservice-profile-2020-09-01-hybrid
30+
https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network

sdk/batch/arm-batch/CHANGELOG.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
# Release History
2-
3-
## 7.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
2+
3+
## 7.1.0 (2022-03-02)
4+
5+
**Features**
6+
7+
- Added operation BatchAccountOperations.getDetector
8+
- Added operation BatchAccountOperations.listDetectors
9+
- Added Interface BatchAccountGetDetectorOptionalParams
10+
- Added Interface BatchAccountListDetectorsNextOptionalParams
11+
- Added Interface BatchAccountListDetectorsOptionalParams
12+
- Added Interface DetectorListResult
13+
- Added Type Alias BatchAccountGetDetectorResponse
14+
- Added Type Alias BatchAccountListDetectorsNextResponse
15+
- Added Type Alias BatchAccountListDetectorsResponse
16+
- Added Type Alias DetectorResponse
17+
- Added Type Alias DynamicVNetAssignmentScope
18+
- Interface NetworkConfiguration has a new optional parameter dynamicVNetAssignmentScope
19+
20+
1321
## 7.0.0 (2021-12-24)
1422

1523
The package of @azure/arm-batch is using our next generation design principles since version 7.0.0, which contains breaking changes.

sdk/batch/arm-batch/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Microsoft
3+
Copyright (c) 2022 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/batch/arm-batch/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Batch Client
1616
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
1717
- Latest versions of Safari, Chrome, Edge and Firefox.
1818

19+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20+
1921
### Prerequisites
2022

2123
- An [Azure subscription][azure_sub].
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
4951
```javascript
5052
const { BatchManagementClient } = require("@azure/arm-batch");
5153
const { DefaultAzureCredential } = require("@azure/identity");
54+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55+
5256
const subscriptionId = "00000000-0000-0000-0000-000000000000";
5357
const client = new BatchManagementClient(new DefaultAzureCredential(), subscriptionId);
58+
59+
// For client-side applications running in the browser, use this code instead:
60+
// const credential = new InteractiveBrowserCredential({
61+
// tenantId: "<YOUR_TENANT_ID>",
62+
// clientId: "<YOUR_CLIENT_ID>"
63+
// });
64+
// const client = new BatchManagementClient(credential, subscriptionId);
5465
```
5566

5667

sdk/batch/arm-batch/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "698ebc782f3cc4650f6df1d765f6a38a6695ad50",
2+
"commit": "4042a47cff72c950d35dd72149895b044ed79713",
33
"readme": "specification/batch/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/batch/resource-manager/readme.md --use=@autorest/[email protected]alpha.16.20211217.1",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\batch\\resource-manager\\readme.md --use=@autorest/[email protected]beta.16 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected]alpha.16.20211217.1"
6+
"use": "@autorest/[email protected]beta.16"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-batch.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/batch/arm-batch/package.json

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for BatchManagementClient.",
6-
"version": "7.0.1",
6+
"version": "7.1.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -30,20 +30,20 @@
3030
"devDependencies": {
3131
"@microsoft/api-extractor": "^7.18.11",
3232
"@rollup/plugin-commonjs": "^21.0.1",
33-
"@rollup/plugin-json": "^4.0.0",
34-
"@rollup/plugin-multi-entry": "^3.0.0",
35-
"@rollup/plugin-node-resolve": "^8.0.0",
33+
"@rollup/plugin-json": "^4.1.0",
34+
"@rollup/plugin-multi-entry": "^4.1.0",
35+
"@rollup/plugin-node-resolve": "^13.1.3",
3636
"mkdirp": "^1.0.4",
37-
"rollup": "^2.0.0",
38-
"rollup-plugin-sourcemaps": "^0.4.2",
37+
"rollup": "^2.66.1",
38+
"rollup-plugin-sourcemaps": "^0.6.3",
3939
"typescript": "~4.2.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
4242
"@azure/identity": "^2.0.1",
4343
"@azure-tools/test-recorder": "^1.0.0",
4444
"mocha": "^7.1.1",
4545
"cross-env": "^7.0.2",
46-
"@azure/arm-storage": "^17.0.0"
46+
"@azure/arm-storage": "^17.1.0"
4747
},
4848
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch",
4949
"repository": {
@@ -99,5 +99,21 @@
9999
"docs": "echo skipped"
100100
},
101101
"sideEffects": false,
102-
"autoPublish": true
102+
"//metadata": {
103+
"constantPaths": [
104+
{
105+
"path": "src/batchManagementClient.ts",
106+
"prefix": "packageDetails"
107+
}
108+
]
109+
},
110+
"autoPublish": true,
111+
"//sampleConfiguration": {
112+
"productName": "",
113+
"productSlugs": [
114+
"azure"
115+
],
116+
"disableDocsMs": true,
117+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-batch?view=azure-node-preview"
118+
}
103119
}

sdk/batch/arm-batch/review/arm-batch.api.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,13 @@ export interface BatchAccountDeleteOptionalParams extends coreClient.OperationOp
274274
updateIntervalInMs?: number;
275275
}
276276

277+
// @public
278+
export interface BatchAccountGetDetectorOptionalParams extends coreClient.OperationOptions {
279+
}
280+
281+
// @public
282+
export type BatchAccountGetDetectorResponse = DetectorResponse;
283+
277284
// @public
278285
export interface BatchAccountGetKeysOptionalParams extends coreClient.OperationOptions {
279286
}
@@ -319,6 +326,20 @@ export interface BatchAccountListByResourceGroupOptionalParams extends coreClien
319326
// @public
320327
export type BatchAccountListByResourceGroupResponse = BatchAccountListResult;
321328

329+
// @public
330+
export interface BatchAccountListDetectorsNextOptionalParams extends coreClient.OperationOptions {
331+
}
332+
333+
// @public
334+
export type BatchAccountListDetectorsNextResponse = DetectorListResult;
335+
336+
// @public
337+
export interface BatchAccountListDetectorsOptionalParams extends coreClient.OperationOptions {
338+
}
339+
340+
// @public
341+
export type BatchAccountListDetectorsResponse = DetectorListResult;
342+
322343
// @public
323344
export interface BatchAccountListNextOptionalParams extends coreClient.OperationOptions {
324345
}
@@ -360,9 +381,11 @@ export interface BatchAccountOperations {
360381
beginDelete(resourceGroupName: string, accountName: string, options?: BatchAccountDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
361382
beginDeleteAndWait(resourceGroupName: string, accountName: string, options?: BatchAccountDeleteOptionalParams): Promise<void>;
362383
get(resourceGroupName: string, accountName: string, options?: BatchAccountGetOptionalParams): Promise<BatchAccountGetResponse>;
384+
getDetector(resourceGroupName: string, accountName: string, detectorId: string, options?: BatchAccountGetDetectorOptionalParams): Promise<BatchAccountGetDetectorResponse>;
363385
getKeys(resourceGroupName: string, accountName: string, options?: BatchAccountGetKeysOptionalParams): Promise<BatchAccountGetKeysResponse>;
364386
list(options?: BatchAccountListOptionalParams): PagedAsyncIterableIterator<BatchAccount>;
365387
listByResourceGroup(resourceGroupName: string, options?: BatchAccountListByResourceGroupOptionalParams): PagedAsyncIterableIterator<BatchAccount>;
388+
listDetectors(resourceGroupName: string, accountName: string, options?: BatchAccountListDetectorsOptionalParams): PagedAsyncIterableIterator<DetectorResponse>;
366389
listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, accountName: string, options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint>;
367390
regenerateKey(resourceGroupName: string, accountName: string, parameters: BatchAccountRegenerateKeyParameters, options?: BatchAccountRegenerateKeyOptionalParams): Promise<BatchAccountRegenerateKeyResponse>;
368391
synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams): Promise<void>;
@@ -706,6 +729,17 @@ export interface DeploymentConfiguration {
706729
virtualMachineConfiguration?: VirtualMachineConfiguration;
707730
}
708731

732+
// @public
733+
export interface DetectorListResult {
734+
nextLink?: string;
735+
value?: DetectorResponse[];
736+
}
737+
738+
// @public
739+
export type DetectorResponse = ProxyResource & {
740+
value?: string;
741+
};
742+
709743
// @public
710744
export interface DiffDiskSettings {
711745
placement?: "CacheDisk";
@@ -719,6 +753,9 @@ export interface DiskEncryptionConfiguration {
719753
// @public
720754
export type DiskEncryptionTarget = "OsDisk" | "TemporaryDisk";
721755

756+
// @public
757+
export type DynamicVNetAssignmentScope = "none" | "job";
758+
722759
// @public
723760
export type ElevationLevel = "NonAdmin" | "Admin";
724761

@@ -920,6 +957,7 @@ export type NameAvailabilityReason = "Invalid" | "AlreadyExists";
920957

921958
// @public
922959
export interface NetworkConfiguration {
960+
dynamicVNetAssignmentScope?: DynamicVNetAssignmentScope;
923961
endpointConfiguration?: PoolEndpointConfiguration;
924962
publicIPAddressConfiguration?: PublicIPAddressConfiguration;
925963
subnetId?: string;

0 commit comments

Comments
 (0)