Skip to content

Commit 2b4f3a7

Browse files
author
SDKAuto
committed
CodeGen from PR 19589 in Azure/azure-rest-api-specs
Merge a22c5754ab0bbb26473710a3586c130fa7d97cba into f4e7a1c99eff175286c3313ec875f79e4142ac1a
1 parent fee80ce commit 2b4f3a7

File tree

10 files changed

+173
-139
lines changed

10 files changed

+173
-139
lines changed

sdk/batch/arm-batch/CHANGELOG.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
# Release History
2+
3+
## 7.3.0 (2022-07-22)
4+
5+
**Features**
26

3-
## 7.2.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Added Type Alias Application
8+
- Added Type Alias ApplicationPackage
9+
- Added Type Alias AutoStorageProperties
10+
- Added Type Alias BatchAccount
11+
- Added Type Alias Certificate
12+
- Added Type Alias CertificateCreateOrUpdateParameters
13+
- Added Type Alias CertificateCreateOrUpdateProperties
14+
- Added Type Alias CertificateProperties
15+
- Added Type Alias DetectorResponse
16+
- Added Type Alias Pool
17+
- Added Type Alias PrivateEndpointConnection
18+
- Added Type Alias PrivateLinkResource
19+
20+
1321
## 7.2.0 (2022-07-19)
1422

1523
**Features**

sdk/batch/arm-batch/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "c03c258c7a01a7d57b3110cc20e2e76752b6f2d6",
2+
"commit": "c2050c61a0339a77c42882d61b16ebb6e9cfc419",
33
"readme": "specification/batch/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.7.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.0-rc.1 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/batch/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220425.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
66
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.0",
7-
"use": "@autorest/typescript@6.0.0-rc.1"
7+
"use": "@autorest/typescript@6.0.0-alpha.19.20220425.1"
88
}

sdk/batch/arm-batch/package.json

Lines changed: 6 additions & 16 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.2.1",
6+
"version": "7.3.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -43,11 +43,8 @@
4343
"@azure-tools/test-recorder": "^2.0.0",
4444
"@azure-tools/test-credential": "^1.0.0",
4545
"mocha": "^7.1.1",
46-
"@types/chai": "^4.2.8",
47-
"chai": "^4.2.0",
4846
"cross-env": "^7.0.2",
49-
"@azure/dev-tool": "^1.0.0",
50-
"@azure/arm-storage": "^17.1.0"
47+
"@azure/dev-tool": "^1.0.0"
5148
},
5249
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch",
5350
"repository": {
@@ -99,7 +96,8 @@
9996
"unit-test:browser": "echo skipped",
10097
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
10198
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
102-
"integration-test:browser": "echo skipped"
99+
"integration-test:browser": "echo skipped",
100+
"docs": "echo skipped"
103101
},
104102
"sideEffects": false,
105103
"//metadata": {
@@ -110,13 +108,5 @@
110108
}
111109
]
112110
},
113-
"autoPublish": true,
114-
"//sampleConfiguration": {
115-
"productName": "",
116-
"productSlugs": [
117-
"azure"
118-
],
119-
"disableDocsMs": true,
120-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-batch?view=azure-node-preview"
121-
}
122-
}
111+
"autoPublish": true
112+
}

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

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ export interface ActivateApplicationPackageParameters {
2222
export type AllocationState = "Steady" | "Resizing" | "Stopping";
2323

2424
// @public
25-
export interface Application extends ProxyResource {
25+
export type Application = ProxyResource & {
26+
displayName?: string;
2627
allowUpdates?: boolean;
2728
defaultVersion?: string;
28-
displayName?: string;
29-
}
29+
};
3030

3131
// @public
3232
export interface ApplicationCreateOptionalParams extends coreClient.OperationOptions {
@@ -73,13 +73,13 @@ export interface ApplicationOperations {
7373
}
7474

7575
// @public
76-
export interface ApplicationPackage extends ProxyResource {
77-
readonly format?: string;
78-
readonly lastActivationTime?: Date;
76+
export type ApplicationPackage = ProxyResource & {
7977
readonly state?: PackageState;
78+
readonly format?: string;
8079
readonly storageUrl?: string;
8180
readonly storageUrlExpiry?: Date;
82-
}
81+
readonly lastActivationTime?: Date;
82+
};
8383

8484
// @public
8585
export interface ApplicationPackageActivateOptionalParams extends coreClient.OperationOptions {
@@ -179,9 +179,9 @@ export interface AutoStorageBaseProperties {
179179
}
180180

181181
// @public
182-
export interface AutoStorageProperties extends AutoStorageBaseProperties {
182+
export type AutoStorageProperties = AutoStorageBaseProperties & {
183183
lastKeySync: Date;
184-
}
184+
};
185185

186186
// @public
187187
export type AutoUserScope = "Task" | "Pool";
@@ -213,26 +213,26 @@ export interface AzureFileShareConfiguration {
213213
}
214214

215215
// @public
216-
export interface BatchAccount extends Resource {
216+
export type BatchAccount = Resource & {
217+
identity?: BatchAccountIdentity;
217218
readonly accountEndpoint?: string;
218-
readonly activeJobAndJobScheduleQuota?: number;
219-
readonly allowedAuthenticationModes?: AuthenticationMode[];
219+
readonly nodeManagementEndpoint?: string;
220+
readonly provisioningState?: ProvisioningState;
221+
readonly poolAllocationMode?: PoolAllocationMode;
222+
readonly keyVaultReference?: KeyVaultReference;
223+
publicNetworkAccess?: PublicNetworkAccessType;
224+
networkProfile?: NetworkProfile;
225+
readonly privateEndpointConnections?: PrivateEndpointConnection[];
220226
readonly autoStorage?: AutoStorageProperties;
227+
readonly encryption?: EncryptionProperties;
221228
readonly dedicatedCoreQuota?: number;
229+
readonly lowPriorityCoreQuota?: number;
222230
readonly dedicatedCoreQuotaPerVMFamily?: VirtualMachineFamilyCoreQuota[];
223231
readonly dedicatedCoreQuotaPerVMFamilyEnforced?: boolean;
224-
readonly encryption?: EncryptionProperties;
225-
identity?: BatchAccountIdentity;
226-
readonly keyVaultReference?: KeyVaultReference;
227-
readonly lowPriorityCoreQuota?: number;
228-
networkProfile?: NetworkProfile;
229-
readonly nodeManagementEndpoint?: string;
230-
readonly poolAllocationMode?: PoolAllocationMode;
231232
readonly poolQuota?: number;
232-
readonly privateEndpointConnections?: PrivateEndpointConnection[];
233-
readonly provisioningState?: ProvisioningState;
234-
publicNetworkAccess?: PublicNetworkAccessType;
235-
}
233+
readonly activeJobAndJobScheduleQuota?: number;
234+
readonly allowedAuthenticationModes?: AuthenticationMode[];
235+
};
236236

237237
// @public
238238
export interface BatchAccountCreateHeaders {
@@ -484,17 +484,17 @@ export interface BatchPoolIdentity {
484484
export type CachingType = "None" | "ReadOnly" | "ReadWrite";
485485

486486
// @public
487-
export interface Certificate extends ProxyResource {
488-
readonly deleteCertificateError?: DeleteCertificateError;
487+
export type Certificate = ProxyResource & {
488+
thumbprintAlgorithm?: string;
489+
thumbprint?: string;
489490
format?: CertificateFormat;
490-
readonly previousProvisioningState?: CertificateProvisioningState;
491-
readonly previousProvisioningStateTransitionTime?: Date;
492491
readonly provisioningState?: CertificateProvisioningState;
493492
readonly provisioningStateTransitionTime?: Date;
493+
readonly previousProvisioningState?: CertificateProvisioningState;
494+
readonly previousProvisioningStateTransitionTime?: Date;
494495
readonly publicData?: string;
495-
thumbprint?: string;
496-
thumbprintAlgorithm?: string;
497-
}
496+
readonly deleteCertificateError?: DeleteCertificateError;
497+
};
498498

499499
// @public
500500
export interface CertificateBaseProperties {
@@ -527,19 +527,19 @@ export interface CertificateCreateOptionalParams extends coreClient.OperationOpt
527527
}
528528

529529
// @public
530-
export interface CertificateCreateOrUpdateParameters extends ProxyResource {
531-
data?: string;
530+
export type CertificateCreateOrUpdateParameters = ProxyResource & {
531+
thumbprintAlgorithm?: string;
532+
thumbprint?: string;
532533
format?: CertificateFormat;
534+
data?: string;
533535
password?: string;
534-
thumbprint?: string;
535-
thumbprintAlgorithm?: string;
536-
}
536+
};
537537

538538
// @public
539-
export interface CertificateCreateOrUpdateProperties extends CertificateBaseProperties {
539+
export type CertificateCreateOrUpdateProperties = CertificateBaseProperties & {
540540
data: string;
541541
password?: string;
542-
}
542+
};
543543

544544
// @public
545545
export type CertificateCreateResponse = CertificateCreateHeaders & Certificate;
@@ -603,14 +603,14 @@ export interface CertificateOperations {
603603
}
604604

605605
// @public
606-
export interface CertificateProperties extends CertificateBaseProperties {
607-
readonly deleteCertificateError?: DeleteCertificateError;
608-
readonly previousProvisioningState?: CertificateProvisioningState;
609-
readonly previousProvisioningStateTransitionTime?: Date;
606+
export type CertificateProperties = CertificateBaseProperties & {
610607
readonly provisioningState?: CertificateProvisioningState;
611608
readonly provisioningStateTransitionTime?: Date;
609+
readonly previousProvisioningState?: CertificateProvisioningState;
610+
readonly previousProvisioningStateTransitionTime?: Date;
612611
readonly publicData?: string;
613-
}
612+
readonly deleteCertificateError?: DeleteCertificateError;
613+
};
614614

615615
// @public
616616
export type CertificateProvisioningState = "Succeeded" | "Deleting" | "Failed";
@@ -741,9 +741,9 @@ export interface DetectorListResult {
741741
}
742742

743743
// @public
744-
export interface DetectorResponse extends ProxyResource {
744+
export type DetectorResponse = ProxyResource & {
745745
value?: string;
746-
}
746+
};
747747

748748
// @public
749749
export interface DiffDiskSettings {
@@ -1078,34 +1078,34 @@ export interface OutboundEnvironmentEndpointCollection {
10781078
export type PackageState = "Pending" | "Active";
10791079

10801080
// @public
1081-
export interface Pool extends ProxyResource {
1081+
export type Pool = ProxyResource & {
1082+
identity?: BatchPoolIdentity;
1083+
displayName?: string;
1084+
readonly lastModified?: Date;
1085+
readonly creationTime?: Date;
1086+
readonly provisioningState?: PoolProvisioningState;
1087+
readonly provisioningStateTransitionTime?: Date;
10821088
readonly allocationState?: AllocationState;
10831089
readonly allocationStateTransitionTime?: Date;
1084-
applicationLicenses?: string[];
1085-
applicationPackages?: ApplicationPackageReference[];
1086-
readonly autoScaleRun?: AutoScaleRun;
1087-
certificates?: CertificateReference[];
1088-
readonly creationTime?: Date;
1090+
vmSize?: string;
1091+
deploymentConfiguration?: DeploymentConfiguration;
10891092
readonly currentDedicatedNodes?: number;
10901093
readonly currentLowPriorityNodes?: number;
1091-
deploymentConfiguration?: DeploymentConfiguration;
1092-
displayName?: string;
1093-
identity?: BatchPoolIdentity;
1094+
scaleSettings?: ScaleSettings;
1095+
readonly autoScaleRun?: AutoScaleRun;
10941096
interNodeCommunication?: InterNodeCommunicationState;
1095-
readonly lastModified?: Date;
1096-
metadata?: MetadataItem[];
1097-
mountConfiguration?: MountConfiguration[];
10981097
networkConfiguration?: NetworkConfiguration;
1099-
readonly provisioningState?: PoolProvisioningState;
1100-
readonly provisioningStateTransitionTime?: Date;
1101-
readonly resizeOperationStatus?: ResizeOperationStatus;
1102-
scaleSettings?: ScaleSettings;
1103-
startTask?: StartTask;
1104-
taskSchedulingPolicy?: TaskSchedulingPolicy;
11051098
taskSlotsPerNode?: number;
1099+
taskSchedulingPolicy?: TaskSchedulingPolicy;
11061100
userAccounts?: UserAccount[];
1107-
vmSize?: string;
1108-
}
1101+
metadata?: MetadataItem[];
1102+
startTask?: StartTask;
1103+
certificates?: CertificateReference[];
1104+
applicationPackages?: ApplicationPackageReference[];
1105+
applicationLicenses?: string[];
1106+
readonly resizeOperationStatus?: ResizeOperationStatus;
1107+
mountConfiguration?: MountConfiguration[];
1108+
};
11091109

11101110
// @public
11111111
export type PoolAllocationMode = "BatchService" | "UserSubscription";
@@ -1234,12 +1234,12 @@ export interface PrivateEndpoint {
12341234
}
12351235

12361236
// @public
1237-
export interface PrivateEndpointConnection extends ProxyResource {
1238-
readonly groupIds?: string[];
1237+
export type PrivateEndpointConnection = ProxyResource & {
1238+
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
12391239
readonly privateEndpoint?: PrivateEndpoint;
1240+
readonly groupIds?: string[];
12401241
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
1241-
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
1242-
}
1242+
};
12431243

12441244
// @public
12451245
export interface PrivateEndpointConnectionDeleteHeaders {
@@ -1309,11 +1309,11 @@ export interface PrivateEndpointConnectionUpdateOptionalParams extends coreClien
13091309
export type PrivateEndpointConnectionUpdateResponse = PrivateEndpointConnection;
13101310

13111311
// @public
1312-
export interface PrivateLinkResource extends ProxyResource {
1312+
export type PrivateLinkResource = ProxyResource & {
13131313
readonly groupId?: string;
13141314
readonly requiredMembers?: string[];
13151315
readonly requiredZoneNames?: string[];
1316-
}
1316+
};
13171317

13181318
// @public
13191319
export interface PrivateLinkResourceGetOptionalParams extends coreClient.OperationOptions {

sdk/batch/arm-batch/src/batchManagementClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class BatchManagementClient extends coreClient.ServiceClient {
7171
credential: credentials
7272
};
7373

74-
const packageDetails = `azsdk-js-arm-batch/7.2.1`;
74+
const packageDetails = `azsdk-js-arm-batch/7.3.0`;
7575
const userAgentPrefix =
7676
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7777
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -152,7 +152,7 @@ export class BatchManagementClient extends coreClient.ServiceClient {
152152
if (param.length > 1) {
153153
const newParams = param[1].split("&").map((item) => {
154154
if (item.indexOf("api-version") > -1) {
155-
return "api-version=" + apiVersion;
155+
return item.replace(/(?<==).*$/, apiVersion);
156156
} else {
157157
return item;
158158
}

0 commit comments

Comments
 (0)