Skip to content

Commit

Permalink
batch-track2 (Azure#20609)
Browse files Browse the repository at this point in the history
  • Loading branch information
colawwj authored and WeiJun428 committed Mar 19, 2022
1 parent 54bd412 commit 7455083
Show file tree
Hide file tree
Showing 162 changed files with 8,533 additions and 123 deletions.
13 changes: 7 additions & 6 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions eng/ignore-links.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ https://docs.microsoft.com/javascript/api/@azure/arm-iothub-profile-2020-09-01-h
https://docs.microsoft.com/javascript/api/@azure/arm-monitor-profile-2020-09-01-hybrid?view=azure-node-preview
https://docs.microsoft.com/javascript/api/@azure/arm-databoxedge-profile-2020-09-01-hybrid
https://docs.microsoft.com/javascript/api/@azure/arm-appservice-profile-2020-09-01-hybrid
https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network
30 changes: 19 additions & 11 deletions sdk/batch/arm-batch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Release History

## 7.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 7.1.0 (2022-03-02)

**Features**

- Added operation BatchAccountOperations.getDetector
- Added operation BatchAccountOperations.listDetectors
- Added Interface BatchAccountGetDetectorOptionalParams
- Added Interface BatchAccountListDetectorsNextOptionalParams
- Added Interface BatchAccountListDetectorsOptionalParams
- Added Interface DetectorListResult
- Added Type Alias BatchAccountGetDetectorResponse
- Added Type Alias BatchAccountListDetectorsNextResponse
- Added Type Alias BatchAccountListDetectorsResponse
- Added Type Alias DetectorResponse
- Added Type Alias DynamicVNetAssignmentScope
- Interface NetworkConfiguration has a new optional parameter dynamicVNetAssignmentScope


## 7.0.0 (2021-12-24)

The package of @azure/arm-batch is using our next generation design principles since version 7.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/batch/arm-batch/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 11 additions & 0 deletions sdk/batch/arm-batch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Batch Client
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.

### Prerequisites

- An [Azure subscription][azure_sub].
Expand Down Expand Up @@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
```javascript
const { BatchManagementClient } = require("@azure/arm-batch");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new BatchManagementClient(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new BatchManagementClient(credential, subscriptionId);
```


Expand Down
6 changes: 3 additions & 3 deletions sdk/batch/arm-batch/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "698ebc782f3cc4650f6df1d765f6a38a6695ad50",
"commit": "4042a47cff72c950d35dd72149895b044ed79713",
"readme": "specification/batch/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected]alpha.16.20211217.1"
"use": "@autorest/[email protected]beta.16"
}
25 changes: 19 additions & 6 deletions sdk/batch/arm-batch/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-batch.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
32 changes: 24 additions & 8 deletions sdk/batch/arm-batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for BatchManagementClient.",
"version": "7.0.1",
"version": "7.1.0",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -30,20 +30,20 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"rollup": "^2.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2",
"@azure/arm-storage": "^17.0.0"
"@azure/arm-storage": "^17.1.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch",
"repository": {
Expand Down Expand Up @@ -99,5 +99,21 @@
"docs": "echo skipped"
},
"sideEffects": false,
"autoPublish": true
"//metadata": {
"constantPaths": [
{
"path": "src/batchManagementClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-batch?view=azure-node-preview"
}
}
38 changes: 38 additions & 0 deletions sdk/batch/arm-batch/review/arm-batch.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,13 @@ export interface BatchAccountDeleteOptionalParams extends coreClient.OperationOp
updateIntervalInMs?: number;
}

// @public
export interface BatchAccountGetDetectorOptionalParams extends coreClient.OperationOptions {
}

// @public
export type BatchAccountGetDetectorResponse = DetectorResponse;

// @public
export interface BatchAccountGetKeysOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -319,6 +326,20 @@ export interface BatchAccountListByResourceGroupOptionalParams extends coreClien
// @public
export type BatchAccountListByResourceGroupResponse = BatchAccountListResult;

// @public
export interface BatchAccountListDetectorsNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type BatchAccountListDetectorsNextResponse = DetectorListResult;

// @public
export interface BatchAccountListDetectorsOptionalParams extends coreClient.OperationOptions {
}

// @public
export type BatchAccountListDetectorsResponse = DetectorListResult;

// @public
export interface BatchAccountListNextOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -360,9 +381,11 @@ export interface BatchAccountOperations {
beginDelete(resourceGroupName: string, accountName: string, options?: BatchAccountDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, accountName: string, options?: BatchAccountDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, accountName: string, options?: BatchAccountGetOptionalParams): Promise<BatchAccountGetResponse>;
getDetector(resourceGroupName: string, accountName: string, detectorId: string, options?: BatchAccountGetDetectorOptionalParams): Promise<BatchAccountGetDetectorResponse>;
getKeys(resourceGroupName: string, accountName: string, options?: BatchAccountGetKeysOptionalParams): Promise<BatchAccountGetKeysResponse>;
list(options?: BatchAccountListOptionalParams): PagedAsyncIterableIterator<BatchAccount>;
listByResourceGroup(resourceGroupName: string, options?: BatchAccountListByResourceGroupOptionalParams): PagedAsyncIterableIterator<BatchAccount>;
listDetectors(resourceGroupName: string, accountName: string, options?: BatchAccountListDetectorsOptionalParams): PagedAsyncIterableIterator<DetectorResponse>;
listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, accountName: string, options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint>;
regenerateKey(resourceGroupName: string, accountName: string, parameters: BatchAccountRegenerateKeyParameters, options?: BatchAccountRegenerateKeyOptionalParams): Promise<BatchAccountRegenerateKeyResponse>;
synchronizeAutoStorageKeys(resourceGroupName: string, accountName: string, options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams): Promise<void>;
Expand Down Expand Up @@ -706,6 +729,17 @@ export interface DeploymentConfiguration {
virtualMachineConfiguration?: VirtualMachineConfiguration;
}

// @public
export interface DetectorListResult {
nextLink?: string;
value?: DetectorResponse[];
}

// @public
export type DetectorResponse = ProxyResource & {
value?: string;
};

// @public
export interface DiffDiskSettings {
placement?: "CacheDisk";
Expand All @@ -719,6 +753,9 @@ export interface DiskEncryptionConfiguration {
// @public
export type DiskEncryptionTarget = "OsDisk" | "TemporaryDisk";

// @public
export type DynamicVNetAssignmentScope = "none" | "job";

// @public
export type ElevationLevel = "NonAdmin" | "Admin";

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

// @public
export interface NetworkConfiguration {
dynamicVNetAssignmentScope?: DynamicVNetAssignmentScope;
endpointConfiguration?: PoolEndpointConfiguration;
publicIPAddressConfiguration?: PublicIPAddressConfiguration;
subnetId?: string;
Expand Down
Loading

0 comments on commit 7455083

Please sign in to comment.