Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions common/config/rush/pnpm-lock.yaml

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

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-02-15)

**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
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": "5f120c7da26b228e37241a53a2e0cddd81ea215a",
"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].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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/batch/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].20211217.1"
"use": "@autorest/[email protected].20220105.1"
}
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"
}
}
}
}
}
11 changes: 5 additions & 6 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 @@ -29,21 +29,20 @@
"types": "./types/arm-batch.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.0.0",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"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"
"cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch",
"repository": {
Expand Down Expand Up @@ -100,4 +99,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
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
4 changes: 2 additions & 2 deletions sdk/batch/arm-batch/src/batchManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class BatchManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-batch/7.0.0`;
const packageDetails = `azsdk-js-arm-batch/7.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -88,7 +88,7 @@ export class BatchManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-06-01";
this.apiVersion = options.apiVersion || "2022-01-01";
this.batchAccountOperations = new BatchAccountOperationsImpl(this);
this.applicationPackageOperations = new ApplicationPackageOperationsImpl(
this
Expand Down
47 changes: 43 additions & 4 deletions sdk/batch/arm-batch/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,14 @@ export interface CertificateBaseProperties {
format?: CertificateFormat;
}

/** Values returned by the List operation. */
export interface DetectorListResult {
/** The collection of Batch account detectors returned by the listing operation. */
value?: DetectorResponse[];
/** The URL to get the next set of results. */
nextLink?: string;
}

/** Values returned by the List operation. */
export interface ListPrivateLinkResourcesResult {
/** The collection of returned private link resources. */
Expand Down Expand Up @@ -502,7 +510,7 @@ export interface ImageReference {
publisher?: string;
/** For example, UbuntuServer or WindowsServer. */
offer?: string;
/** For example, 18.04-LTS or 2019-Datacenter. */
/** For example, 18.04-LTS or 2022-datacenter. */
sku?: string;
/** A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'. */
version?: string;
Expand Down Expand Up @@ -659,6 +667,8 @@ export interface AutoScaleRunError {
export interface NetworkConfiguration {
/** The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration */
subnetId?: string;
/** The scope of dynamic vnet assignment. */
dynamicVNetAssignmentScope?: DynamicVNetAssignmentScope;
/** Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. */
endpointConfiguration?: PoolEndpointConfiguration;
/** This property is only supported on Pools with the virtualMachineConfiguration property. */
Expand Down Expand Up @@ -703,7 +713,7 @@ export interface NetworkSecurityGroupRule {
export interface PublicIPAddressConfiguration {
/** The default value is BatchManaged */
provision?: IPAddressProvisioningType;
/** The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. */
/** The number of IPs specified here limits the maximum size of the Pool - 100 dedicated nodes or 100 Spot/low-priority nodes can be allocated for each public IP. For example, a pool needing 250 dedicated VMs would need at least 3 public IPs specified. Each element of this collection is of the form: /subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Network/publicIPAddresses/{ip}. */
ipAddressIds?: string[];
}

Expand Down Expand Up @@ -847,7 +857,7 @@ export interface ApplicationPackageReference {
export interface ResizeOperationStatus {
/** The desired number of dedicated compute nodes in the pool. */
targetDedicatedNodes?: number;
/** The desired number of low-priority compute nodes in the pool. */
/** The desired number of Spot/low-priority compute nodes in the pool. */
targetLowPriorityNodes?: number;
/** The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). */
resizeTimeout?: string;
Expand Down Expand Up @@ -1107,6 +1117,12 @@ export type CertificateCreateOrUpdateParameters = ProxyResource & {
password?: string;
};

/** Contains the information for a detector. */
export type DetectorResponse = ProxyResource & {
/** A base64 encoded string that represents the content of a detector. */
value?: string;
};

/** Contains information about a private link resource. */
export type PrivateLinkResource = ProxyResource & {
/**
Expand Down Expand Up @@ -1172,7 +1188,7 @@ export type Pool = ProxyResource & {
*/
readonly currentDedicatedNodes?: number;
/**
* The number of low-priority compute nodes currently in the pool.
* The number of Spot/low-priority compute nodes currently in the pool.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly currentLowPriorityNodes?: number;
Expand Down Expand Up @@ -1492,6 +1508,8 @@ export type ComputeNodeDeallocationOption =
| "RetainedData";
/** Defines values for InterNodeCommunicationState. */
export type InterNodeCommunicationState = "Enabled" | "Disabled";
/** Defines values for DynamicVNetAssignmentScope. */
export type DynamicVNetAssignmentScope = "none" | "job";
/** Defines values for InboundEndpointProtocol. */
export type InboundEndpointProtocol = "TCP" | "UDP";
/** Defines values for NetworkSecurityGroupRuleAccess. */
Expand Down Expand Up @@ -1587,6 +1605,20 @@ export interface BatchAccountGetKeysOptionalParams
/** Contains response data for the getKeys operation. */
export type BatchAccountGetKeysResponse = BatchAccountKeys;

/** Optional parameters. */
export interface BatchAccountListDetectorsOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listDetectors operation. */
export type BatchAccountListDetectorsResponse = DetectorListResult;

/** Optional parameters. */
export interface BatchAccountGetDetectorOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the getDetector operation. */
export type BatchAccountGetDetectorResponse = DetectorResponse;

/** Optional parameters. */
export interface BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams
extends coreClient.OperationOptions {}
Expand All @@ -1608,6 +1640,13 @@ export interface BatchAccountListByResourceGroupNextOptionalParams
/** Contains response data for the listByResourceGroupNext operation. */
export type BatchAccountListByResourceGroupNextResponse = BatchAccountListResult;

/** Optional parameters. */
export interface BatchAccountListDetectorsNextOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listDetectorsNext operation. */
export type BatchAccountListDetectorsNextResponse = DetectorListResult;

/** Optional parameters. */
export interface BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams
extends coreClient.OperationOptions {}
Expand Down
Loading