Skip to content

Commit 242d91e

Browse files
author
SDKAuto
committed
CodeGen from PR 19400 in Azure/azure-rest-api-specs
Merge 77bce9c7862ffcab8cf2bc4ee4aa121093cf7e86 into f68e478437a9065651c982788769337fc4d8fb37
1 parent dc8b5b9 commit 242d91e

File tree

6 files changed

+70
-44
lines changed

6 files changed

+70
-44
lines changed

sdk/compute/arm-compute/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "7168ecde052e9797d31d74c40ad00ac68c74ec6a",
2+
"commit": "37c1f101a4ccf8dd689ec5f8ea7e7138592e6d7f",
33
"readme": "specification/compute/resource-manager/readme.md",
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:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/[email protected]beta.20 --generate-sample=true",
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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/[email protected]alpha.19.20220425.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].0",
7-
"use": "@autorest/[email protected]beta.20"
6+
"release_tool": "@azure-tools/[email protected].2",
7+
"use": "@autorest/[email protected]alpha.19.20220425.1"
88
}

sdk/compute/arm-compute/package.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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-network": "^26.0.0"
47+
"@azure/dev-tool": "^1.0.0"
5148
},
5249
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
5350
"repository": {
@@ -111,13 +108,5 @@
111108
}
112109
]
113110
},
114-
"autoPublish": true,
115-
"//sampleConfiguration": {
116-
"productName": "",
117-
"productSlugs": [
118-
"azure"
119-
],
120-
"disableDocsMs": true,
121-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
122-
}
123-
}
111+
"autoPublish": true
112+
}

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ export interface CommunityGalleriesGetOptionalParams extends coreClient.Operatio
924924
export type CommunityGalleriesGetResponse = CommunityGallery;
925925

926926
// @public
927-
export type CommunityGallery = PirCommunityGalleryResource;
927+
export type CommunityGallery = PirCommunityGalleryResource & {};
928928

929929
// @public
930930
export type CommunityGalleryImage = PirCommunityGalleryResource & {
@@ -1685,7 +1685,7 @@ export interface DiskEncryptionSetList {
16851685
}
16861686

16871687
// @public
1688-
export type DiskEncryptionSetParameters = SubResource;
1688+
export type DiskEncryptionSetParameters = SubResource & {};
16891689

16901690
// @public
16911691
export interface DiskEncryptionSets {
@@ -2541,7 +2541,7 @@ export interface GalleryImageVersionList {
25412541
}
25422542

25432543
// @public
2544-
export type GalleryImageVersionPublishingProfile = GalleryArtifactPublishingProfileBase;
2544+
export type GalleryImageVersionPublishingProfile = GalleryArtifactPublishingProfileBase & {};
25452545

25462546
// @public
25472547
export interface GalleryImageVersions {
@@ -2623,7 +2623,7 @@ export interface GalleryList {
26232623
}
26242624

26252625
// @public
2626-
export type GalleryOSDiskImage = GalleryDiskImage;
2626+
export type GalleryOSDiskImage = GalleryDiskImage & {};
26272627

26282628
// @public
26292629
export type GalleryProvisioningState = string;
@@ -4581,7 +4581,7 @@ export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup;
45814581
export type ProximityPlacementGroupType = string;
45824582

45834583
// @public
4584-
export type ProximityPlacementGroupUpdate = UpdateResource;
4584+
export type ProximityPlacementGroupUpdate = UpdateResource & {};
45854585

45864586
// @public
45874587
export interface ProxyOnlyResource {
@@ -5227,7 +5227,7 @@ export interface SharedGalleriesListOptionalParams extends coreClient.OperationO
52275227
export type SharedGalleriesListResponse = SharedGalleryList;
52285228

52295229
// @public
5230-
export type SharedGallery = PirSharedGalleryResource;
5230+
export type SharedGallery = PirSharedGalleryResource & {};
52315231

52325232
// @public
52335233
export type SharedGalleryDataDiskImage = SharedGalleryDiskImage & {
@@ -5348,7 +5348,7 @@ export interface SharedGalleryList {
53485348
}
53495349

53505350
// @public
5351-
export type SharedGalleryOSDiskImage = SharedGalleryDiskImage;
5351+
export type SharedGalleryOSDiskImage = SharedGalleryDiskImage & {};
53525352

53535353
// @public
53545354
export type SharedToValues = string;
@@ -5731,7 +5731,7 @@ export interface TerminateNotificationProfile {
57315731
}
57325732

57335733
// @public
5734-
export type ThrottledRequestsInput = LogAnalyticsInputBase;
5734+
export type ThrottledRequestsInput = LogAnalyticsInputBase & {};
57355735

57365736
// @public
57375737
export interface UefiSettings {
@@ -7449,7 +7449,7 @@ export interface VirtualMachineScaleSetVMProtectionPolicy {
74497449
}
74507450

74517451
// @public
7452-
export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters;
7452+
export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters & {};
74537453

74547454
// @public
74557455
export interface VirtualMachineScaleSetVMRunCommands {

sdk/compute/arm-compute/src/models/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4274,7 +4274,7 @@ export type ImageReference = SubResource & {
42744274
};
42754275

42764276
/** Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. <br><br> NOTE: The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details. */
4277-
export type DiskEncryptionSetParameters = SubResource;
4277+
export type DiskEncryptionSetParameters = SubResource & {};
42784278

42794279
/** Describes a virtual machine scale set network profile's IP configuration. */
42804280
export type VirtualMachineScaleSetIPConfiguration = SubResource & {
@@ -5556,7 +5556,7 @@ export type AvailabilitySetUpdate = UpdateResource & {
55565556
};
55575557

55585558
/** Specifies information about the proximity placement group. */
5559-
export type ProximityPlacementGroupUpdate = UpdateResource;
5559+
export type ProximityPlacementGroupUpdate = UpdateResource & {};
55605560

55615561
/** Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated. */
55625562
export type DedicatedHostGroupUpdate = UpdateResource & {
@@ -5750,7 +5750,7 @@ export type VirtualMachineRunCommandUpdate = UpdateResource & {
57505750
};
57515751

57525752
/** Describes a Virtual Machine Scale Set VM Reimage Parameters. */
5753-
export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters;
5753+
export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters & {};
57545754

57555755
/** Describes a Virtual Machine Extension. */
57565756
export type VirtualMachineExtension = ResourceWithOptionalLocation & {
@@ -5849,7 +5849,7 @@ export type RequestRateByIntervalInput = LogAnalyticsInputBase & {
58495849
};
58505850

58515851
/** Api request input for LogAnalytics getThrottledRequests Api. */
5852-
export type ThrottledRequestsInput = LogAnalyticsInputBase;
5852+
export type ThrottledRequestsInput = LogAnalyticsInputBase & {};
58535853

58545854
/** Describes the properties of a Run Command. */
58555855
export type RunCommandDocument = RunCommandDocumentBase & {
@@ -6031,7 +6031,7 @@ export type GalleryApplicationVersionUpdate = UpdateResourceDefinition & {
60316031
};
60326032

60336033
/** The publishing profile of a gallery image Version. */
6034-
export type GalleryImageVersionPublishingProfile = GalleryArtifactPublishingProfileBase;
6034+
export type GalleryImageVersionPublishingProfile = GalleryArtifactPublishingProfileBase & {};
60356035

60366036
/** The publishing profile of a gallery image version. */
60376037
export type GalleryApplicationVersionPublishingProfile = GalleryArtifactPublishingProfileBase & {
@@ -6059,7 +6059,7 @@ export type DataDiskImageEncryption = DiskImageEncryption & {
60596059
};
60606060

60616061
/** This is the OS disk image. */
6062-
export type GalleryOSDiskImage = GalleryDiskImage;
6062+
export type GalleryOSDiskImage = GalleryDiskImage & {};
60636063

60646064
/** This is the data disk image. */
60656065
export type GalleryDataDiskImage = GalleryDiskImage & {
@@ -6074,7 +6074,7 @@ export type PirSharedGalleryResource = PirResource & {
60746074
};
60756075

60766076
/** This is the OS disk image. */
6077-
export type SharedGalleryOSDiskImage = SharedGalleryDiskImage;
6077+
export type SharedGalleryOSDiskImage = SharedGalleryDiskImage & {};
60786078

60796079
/** This is the data disk image. */
60806080
export type SharedGalleryDataDiskImage = SharedGalleryDiskImage & {
@@ -6083,7 +6083,7 @@ export type SharedGalleryDataDiskImage = SharedGalleryDiskImage & {
60836083
};
60846084

60856085
/** Specifies information about the Community Gallery that you want to create or update. */
6086-
export type CommunityGallery = PirCommunityGalleryResource;
6086+
export type CommunityGallery = PirCommunityGalleryResource & {};
60876087

60886088
/** Specifies information about the gallery image definition that you want to create or update. */
60896089
export type CommunityGalleryImage = PirCommunityGalleryResource & {
@@ -6150,7 +6150,7 @@ export type VirtualMachineScaleSetReimageParameters = VirtualMachineScaleSetVMRe
61506150
};
61516151

61526152
/** Specifies information about the Shared Gallery that you want to create or update. */
6153-
export type SharedGallery = PirSharedGalleryResource;
6153+
export type SharedGallery = PirSharedGalleryResource & {};
61546154

61556155
/** Specifies information about the gallery image definition that you want to create or update. */
61566156
export type SharedGalleryImage = PirSharedGalleryResource & {
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
import {
10+
Recorder,
11+
RecorderStartOptions,
12+
env
13+
} from "@azure-tools/test-recorder";
14+
import { assert } from "chai";
15+
import { Context } from "mocha";
16+
17+
const replaceableVariables: Record<string, string> = {
18+
AZURE_CLIENT_ID: "azure_client_id",
19+
AZURE_CLIENT_SECRET: "azure_client_secret",
20+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
21+
SUBSCRIPTION_ID: "azure_subscription_id"
22+
};
23+
24+
const recorderOptions: RecorderStartOptions = {
25+
envSetupForPlayback: replaceableVariables
26+
};
27+
28+
describe("My test", () => {
29+
let recorder: Recorder;
30+
31+
beforeEach(async function(this: Context) {
32+
recorder = new Recorder(this.currentTest);
33+
await recorder.start(recorderOptions);
34+
});
35+
36+
afterEach(async function() {
37+
await recorder.stop();
38+
});
39+
40+
it("sample test", async function() {
41+
console.log("Hi, I'm a test!");
42+
});
43+
});

sdk/compute/arm-compute/tsconfig.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,11 @@
1515
],
1616
"declaration": true,
1717
"outDir": "./dist-esm",
18-
"importHelpers": true,
19-
"paths": {
20-
"@azure/arm-compute": [
21-
"./src/index"
22-
]
23-
}
18+
"importHelpers": true
2419
},
2520
"include": [
2621
"./src/**/*.ts",
27-
"./test/**/*.ts",
28-
"samples-dev/**/*.ts"
22+
"./test/**/*.ts"
2923
],
3024
"exclude": [
3125
"node_modules"

0 commit comments

Comments
 (0)