Skip to content

Commit 2e13ef5

Browse files

File tree

172 files changed

+2482
-1342
lines changed

Some content is hidden

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

172 files changed

+2482
-1342
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.

sdk/batch/arm-batch/CHANGELOG.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
11
# Release History
2+
3+
## 9.0.0 (2023-06-30)
4+
5+
**Features**
26

3-
## 8.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
7+
- Added Type Alias ContainerType
8+
- Interface NetworkConfiguration has a new optional parameter enableAcceleratedNetworking
9+
- Interface VMExtension has a new optional parameter enableAutomaticUpgrade
10+
- Added Enum KnownContainerType
11+
- Interface ApplicationListNextOptionalParams no longer has parameter maxresults
12+
- Interface ApplicationPackageListNextOptionalParams no longer has parameter maxresults
13+
- Interface CertificateListByBatchAccountNextOptionalParams no longer has parameter filter
14+
- Interface CertificateListByBatchAccountNextOptionalParams no longer has parameter maxresults
15+
- Interface CertificateListByBatchAccountNextOptionalParams no longer has parameter select
16+
- Interface LocationListSupportedCloudServiceSkusNextOptionalParams no longer has parameter filter
17+
- Interface LocationListSupportedCloudServiceSkusNextOptionalParams no longer has parameter maxresults
18+
- Interface LocationListSupportedVirtualMachineSkusNextOptionalParams no longer has parameter filter
19+
- Interface LocationListSupportedVirtualMachineSkusNextOptionalParams no longer has parameter maxresults
20+
- Interface PoolListByBatchAccountNextOptionalParams no longer has parameter filter
21+
- Interface PoolListByBatchAccountNextOptionalParams no longer has parameter maxresults
22+
- Interface PoolListByBatchAccountNextOptionalParams no longer has parameter select
23+
- Interface PrivateEndpointConnectionListByBatchAccountNextOptionalParams no longer has parameter maxresults
24+
- Interface PrivateLinkResourceListByBatchAccountNextOptionalParams no longer has parameter maxresults
825

9-
### Bugs Fixed
26+
**Breaking Changes**
1027

11-
### Other Changes
28+
- Type of parameter type of interface ContainerConfiguration is changed from "DockerCompatible" to ContainerType
1229

30+
1331
## 8.0.0 (2022-11-10)
1432

1533
**Features**

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) 2022 Microsoft
3+
Copyright (c) 2023 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/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "05fc1b443a1ba7b120a48e1ad204d267565ef57a",
2+
"commit": "64efc48302878a07d1d1231eaed0ca9cadfaf037",
33
"readme": "specification/batch/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.3.20221108.1 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
7-
"use": "@autorest/typescript@6.0.0-rc.3.20221108.1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
7+
"use": "@autorest/typescript@6.0.5"
88
}

sdk/batch/arm-batch/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/batch/arm-batch",
5-
"Tag": "js/batch/arm-batch_7d52e8edfe"
5+
"Tag": "js/batch/arm-batch_beed3813b7"
66
}

sdk/batch/arm-batch/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for BatchManagementClient.",
6-
"version": "8.0.1",
6+
"version": "9.0.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.2.0",
11+
"@azure/core-lro": "^2.5.3",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
14-
"@azure/core-client": "^1.6.1",
14+
"@azure/core-client": "^1.7.0",
1515
"@azure/core-auth": "^1.3.0",
1616
"@azure/core-rest-pipeline": "^1.8.0",
1717
"tslib": "^2.2.0"
@@ -33,12 +33,13 @@
3333
"@rollup/plugin-json": "^6.0.0",
3434
"@rollup/plugin-multi-entry": "^6.0.0",
3535
"@rollup/plugin-node-resolve": "^13.1.3",
36-
"mkdirp": "^1.0.4",
36+
"mkdirp": "^2.1.2",
3737
"rollup": "^2.66.1",
3838
"rollup-plugin-sourcemaps": "^0.6.3",
3939
"typescript": "~5.0.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
42+
"dotenv": "^16.0.0",
4243
"@azure/identity": "^2.0.1",
4344
"@azure-tools/test-recorder": "^3.0.0",
4445
"@azure-tools/test-credential": "^1.0.0",
@@ -50,7 +51,6 @@
5051
"@azure/dev-tool": "^1.0.0",
5152
"@azure/arm-storage": "^17.1.0"
5253
},
53-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch",
5454
"repository": {
5555
"type": "git",
5656
"url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -112,6 +112,7 @@
112112
]
113113
},
114114
"autoPublish": true,
115+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch",
115116
"//sampleConfiguration": {
116117
"productName": "",
117118
"productSlugs": [

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

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
import * as coreAuth from '@azure/core-auth';
88
import * as coreClient from '@azure/core-client';
9+
import { OperationState } from '@azure/core-lro';
910
import { PagedAsyncIterableIterator } from '@azure/core-paging';
10-
import { PollerLike } from '@azure/core-lro';
11-
import { PollOperationState } from '@azure/core-lro';
11+
import { SimplePollerLike } from '@azure/core-lro';
1212

1313
// @public
1414
export type AccountKeyType = "Primary" | "Secondary";
@@ -49,7 +49,6 @@ export type ApplicationGetResponse = Application;
4949

5050
// @public
5151
export interface ApplicationListNextOptionalParams extends coreClient.OperationOptions {
52-
maxresults?: number;
5352
}
5453

5554
// @public
@@ -109,7 +108,6 @@ export type ApplicationPackageGetResponse = ApplicationPackage;
109108

110109
// @public
111110
export interface ApplicationPackageListNextOptionalParams extends coreClient.OperationOptions {
112-
maxresults?: number;
113111
}
114112

115113
// @public
@@ -379,9 +377,9 @@ export interface BatchAccountListResult {
379377

380378
// @public
381379
export interface BatchAccountOperations {
382-
beginCreate(resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, options?: BatchAccountCreateOptionalParams): Promise<PollerLike<PollOperationState<BatchAccountCreateResponse>, BatchAccountCreateResponse>>;
380+
beginCreate(resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, options?: BatchAccountCreateOptionalParams): Promise<SimplePollerLike<OperationState<BatchAccountCreateResponse>, BatchAccountCreateResponse>>;
383381
beginCreateAndWait(resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, options?: BatchAccountCreateOptionalParams): Promise<BatchAccountCreateResponse>;
384-
beginDelete(resourceGroupName: string, accountName: string, options?: BatchAccountDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
382+
beginDelete(resourceGroupName: string, accountName: string, options?: BatchAccountDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
385383
beginDeleteAndWait(resourceGroupName: string, accountName: string, options?: BatchAccountDeleteOptionalParams): Promise<void>;
386384
get(resourceGroupName: string, accountName: string, options?: BatchAccountGetOptionalParams): Promise<BatchAccountGetResponse>;
387385
getDetector(resourceGroupName: string, accountName: string, detectorId: string, options?: BatchAccountGetDetectorOptionalParams): Promise<BatchAccountGetDetectorResponse>;
@@ -573,9 +571,6 @@ export type CertificateGetResponse = CertificateGetHeaders & Certificate;
573571

574572
// @public
575573
export interface CertificateListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {
576-
filter?: string;
577-
maxresults?: number;
578-
select?: string;
579574
}
580575

581576
// @public
@@ -593,7 +588,7 @@ export type CertificateListByBatchAccountResponse = ListCertificatesResult;
593588

594589
// @public
595590
export interface CertificateOperations {
596-
beginDelete(resourceGroupName: string, accountName: string, certificateName: string, options?: CertificateDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
591+
beginDelete(resourceGroupName: string, accountName: string, certificateName: string, options?: CertificateDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
597592
beginDeleteAndWait(resourceGroupName: string, accountName: string, certificateName: string, options?: CertificateDeleteOptionalParams): Promise<void>;
598593
cancelDeletion(resourceGroupName: string, accountName: string, certificateName: string, options?: CertificateCancelDeletionOptionalParams): Promise<CertificateCancelDeletionResponse>;
599594
create(resourceGroupName: string, accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, options?: CertificateCreateOptionalParams): Promise<CertificateCreateResponse>;
@@ -698,7 +693,7 @@ export interface ComputeNodeIdentityReference {
698693
export interface ContainerConfiguration {
699694
containerImageNames?: string[];
700695
containerRegistries?: ContainerRegistry[];
701-
type: "DockerCompatible";
696+
type: ContainerType;
702697
}
703698

704699
// @public
@@ -709,6 +704,9 @@ export interface ContainerRegistry {
709704
userName?: string;
710705
}
711706

707+
// @public
708+
export type ContainerType = string;
709+
712710
// @public
713711
export type ContainerWorkingDirectory = "TaskWorkingDirectory" | "ContainerImageDefault";
714712

@@ -856,6 +854,12 @@ export interface KeyVaultReference {
856854
url: string;
857855
}
858856

857+
// @public
858+
export enum KnownContainerType {
859+
CriCompatible = "CriCompatible",
860+
DockerCompatible = "DockerCompatible"
861+
}
862+
859863
// @public
860864
export interface LinuxUserConfiguration {
861865
gid?: number;
@@ -924,8 +928,6 @@ export type LocationGetQuotasResponse = BatchLocationQuota;
924928

925929
// @public
926930
export interface LocationListSupportedCloudServiceSkusNextOptionalParams extends coreClient.OperationOptions {
927-
filter?: string;
928-
maxresults?: number;
929931
}
930932

931933
// @public
@@ -942,8 +944,6 @@ export type LocationListSupportedCloudServiceSkusResponse = SupportedSkusResult;
942944

943945
// @public
944946
export interface LocationListSupportedVirtualMachineSkusNextOptionalParams extends coreClient.OperationOptions {
945-
filter?: string;
946-
maxresults?: number;
947947
}
948948

949949
// @public
@@ -981,6 +981,7 @@ export type NameAvailabilityReason = "Invalid" | "AlreadyExists";
981981
// @public
982982
export interface NetworkConfiguration {
983983
dynamicVnetAssignmentScope?: DynamicVNetAssignmentScope;
984+
enableAcceleratedNetworking?: boolean;
984985
endpointConfiguration?: PoolEndpointConfiguration;
985986
publicIPAddressConfiguration?: PublicIPAddressConfiguration;
986987
subnetId?: string;
@@ -1178,9 +1179,6 @@ export type PoolIdentityType = "UserAssigned" | "None";
11781179

11791180
// @public
11801181
export interface PoolListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {
1181-
filter?: string;
1182-
maxresults?: number;
1183-
select?: string;
11841182
}
11851183

11861184
// @public
@@ -1198,7 +1196,7 @@ export type PoolListByBatchAccountResponse = ListPoolsResult;
11981196

11991197
// @public
12001198
export interface PoolOperations {
1201-
beginDelete(resourceGroupName: string, accountName: string, poolName: string, options?: PoolDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1199+
beginDelete(resourceGroupName: string, accountName: string, poolName: string, options?: PoolDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
12021200
beginDeleteAndWait(resourceGroupName: string, accountName: string, poolName: string, options?: PoolDeleteOptionalParams): Promise<void>;
12031201
create(resourceGroupName: string, accountName: string, poolName: string, parameters: Pool, options?: PoolCreateOptionalParams): Promise<PoolCreateResponse>;
12041202
disableAutoScale(resourceGroupName: string, accountName: string, poolName: string, options?: PoolDisableAutoScaleOptionalParams): Promise<PoolDisableAutoScaleResponse>;
@@ -1273,7 +1271,6 @@ export type PrivateEndpointConnectionGetResponse = PrivateEndpointConnection;
12731271

12741272
// @public
12751273
export interface PrivateEndpointConnectionListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {
1276-
maxresults?: number;
12771274
}
12781275

12791276
// @public
@@ -1289,9 +1286,9 @@ export type PrivateEndpointConnectionListByBatchAccountResponse = ListPrivateEnd
12891286

12901287
// @public
12911288
export interface PrivateEndpointConnectionOperations {
1292-
beginDelete(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionDeleteResponse>, PrivateEndpointConnectionDeleteResponse>>;
1289+
beginDelete(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionDeleteResponse>, PrivateEndpointConnectionDeleteResponse>>;
12931290
beginDeleteAndWait(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise<PrivateEndpointConnectionDeleteResponse>;
1294-
beginUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionUpdateOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionUpdateResponse>, PrivateEndpointConnectionUpdateResponse>>;
1291+
beginUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionUpdateResponse>, PrivateEndpointConnectionUpdateResponse>>;
12951292
beginUpdateAndWait(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, options?: PrivateEndpointConnectionUpdateOptionalParams): Promise<PrivateEndpointConnectionUpdateResponse>;
12961293
get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionGetOptionalParams): Promise<PrivateEndpointConnectionGetResponse>;
12971294
listByBatchAccount(resourceGroupName: string, accountName: string, options?: PrivateEndpointConnectionListByBatchAccountOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
@@ -1332,7 +1329,6 @@ export type PrivateLinkResourceGetResponse = PrivateLinkResource;
13321329

13331330
// @public
13341331
export interface PrivateLinkResourceListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {
1335-
maxresults?: number;
13361332
}
13371333

13381334
// @public
@@ -1520,6 +1516,7 @@ export interface VirtualMachineFamilyCoreQuota {
15201516
// @public
15211517
export interface VMExtension {
15221518
autoUpgradeMinorVersion?: boolean;
1519+
enableAutomaticUpgrade?: boolean;
15231520
name: string;
15241521
protectedSettings?: Record<string, unknown>;
15251522
provisionAfterExtensions?: string[];

sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@ import {
1414
BatchManagementClient
1515
} from "@azure/arm-batch";
1616
import { DefaultAzureCredential } from "@azure/identity";
17+
import * as dotenv from "dotenv";
18+
19+
dotenv.config();
1720

1821
/**
1922
* This sample demonstrates how to Adds an application to the specified Batch account.
2023
*
2124
* @summary Adds an application to the specified Batch account.
22-
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/ApplicationCreate.json
25+
* x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-05-01/examples/ApplicationCreate.json
2326
*/
2427
async function applicationCreate() {
25-
const subscriptionId = "subid";
26-
const resourceGroupName = "default-azurebatch-japaneast";
28+
const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
29+
const resourceGroupName =
30+
process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
2731
const accountName = "sampleacct";
2832
const applicationName = "app1";
2933
const parameters: Application = {
@@ -42,4 +46,8 @@ async function applicationCreate() {
4246
console.log(result);
4347
}
4448

45-
applicationCreate().catch(console.error);
49+
async function main() {
50+
applicationCreate();
51+
}
52+
53+
main().catch(console.error);

0 commit comments

Comments
 (0)