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
8 changes: 4 additions & 4 deletions sdk/compute/arm-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "7168ecde052e9797d31d74c40ad00ac68c74ec6a",
"commit": "37c1f101a4ccf8dd689ec5f8ea7e7138592e6d7f",
"readme": "specification/compute/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].0",
"use": "@autorest/[email protected]beta.20"
"release_tool": "@azure-tools/[email protected].2",
"use": "@autorest/[email protected]alpha.19.20220425.1"
}
17 changes: 3 additions & 14 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-network": "^26.0.0"
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"repository": {
Expand Down Expand Up @@ -111,13 +108,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
}
}
"autoPublish": true
}
18 changes: 9 additions & 9 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ export interface CommunityGalleriesGetOptionalParams extends coreClient.Operatio
export type CommunityGalleriesGetResponse = CommunityGallery;

// @public
export type CommunityGallery = PirCommunityGalleryResource;
export type CommunityGallery = PirCommunityGalleryResource & {};

// @public
export type CommunityGalleryImage = PirCommunityGalleryResource & {
Expand Down Expand Up @@ -1685,7 +1685,7 @@ export interface DiskEncryptionSetList {
}

// @public
export type DiskEncryptionSetParameters = SubResource;
export type DiskEncryptionSetParameters = SubResource & {};

// @public
export interface DiskEncryptionSets {
Expand Down Expand Up @@ -2541,7 +2541,7 @@ export interface GalleryImageVersionList {
}

// @public
export type GalleryImageVersionPublishingProfile = GalleryArtifactPublishingProfileBase;
export type GalleryImageVersionPublishingProfile = GalleryArtifactPublishingProfileBase & {};

// @public
export interface GalleryImageVersions {
Expand Down Expand Up @@ -2623,7 +2623,7 @@ export interface GalleryList {
}

// @public
export type GalleryOSDiskImage = GalleryDiskImage;
export type GalleryOSDiskImage = GalleryDiskImage & {};

// @public
export type GalleryProvisioningState = string;
Expand Down Expand Up @@ -4581,7 +4581,7 @@ export type ProximityPlacementGroupsUpdateResponse = ProximityPlacementGroup;
export type ProximityPlacementGroupType = string;

// @public
export type ProximityPlacementGroupUpdate = UpdateResource;
export type ProximityPlacementGroupUpdate = UpdateResource & {};

// @public
export interface ProxyOnlyResource {
Expand Down Expand Up @@ -5227,7 +5227,7 @@ export interface SharedGalleriesListOptionalParams extends coreClient.OperationO
export type SharedGalleriesListResponse = SharedGalleryList;

// @public
export type SharedGallery = PirSharedGalleryResource;
export type SharedGallery = PirSharedGalleryResource & {};

// @public
export type SharedGalleryDataDiskImage = SharedGalleryDiskImage & {
Expand Down Expand Up @@ -5348,7 +5348,7 @@ export interface SharedGalleryList {
}

// @public
export type SharedGalleryOSDiskImage = SharedGalleryDiskImage;
export type SharedGalleryOSDiskImage = SharedGalleryDiskImage & {};

// @public
export type SharedToValues = string;
Expand Down Expand Up @@ -5731,7 +5731,7 @@ export interface TerminateNotificationProfile {
}

// @public
export type ThrottledRequestsInput = LogAnalyticsInputBase;
export type ThrottledRequestsInput = LogAnalyticsInputBase & {};

// @public
export interface UefiSettings {
Expand Down Expand Up @@ -7449,7 +7449,7 @@ export interface VirtualMachineScaleSetVMProtectionPolicy {
}

// @public
export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters;
export type VirtualMachineScaleSetVMReimageParameters = VirtualMachineReimageParameters & {};

// @public
export interface VirtualMachineScaleSetVMRunCommands {
Expand Down
18 changes: 9 additions & 9 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4274,7 +4274,7 @@ export type ImageReference = SubResource & {
};

/** 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. */
export type DiskEncryptionSetParameters = SubResource;
export type DiskEncryptionSetParameters = SubResource & {};

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

/** Specifies information about the proximity placement group. */
export type ProximityPlacementGroupUpdate = UpdateResource;
export type ProximityPlacementGroupUpdate = UpdateResource & {};

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

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

/** Describes a Virtual Machine Extension. */
export type VirtualMachineExtension = ResourceWithOptionalLocation & {
Expand Down Expand Up @@ -5849,7 +5849,7 @@ export type RequestRateByIntervalInput = LogAnalyticsInputBase & {
};

/** Api request input for LogAnalytics getThrottledRequests Api. */
export type ThrottledRequestsInput = LogAnalyticsInputBase;
export type ThrottledRequestsInput = LogAnalyticsInputBase & {};

/** Describes the properties of a Run Command. */
export type RunCommandDocument = RunCommandDocumentBase & {
Expand Down Expand Up @@ -6031,7 +6031,7 @@ export type GalleryApplicationVersionUpdate = UpdateResourceDefinition & {
};

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

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

/** This is the OS disk image. */
export type GalleryOSDiskImage = GalleryDiskImage;
export type GalleryOSDiskImage = GalleryDiskImage & {};

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

/** This is the OS disk image. */
export type SharedGalleryOSDiskImage = SharedGalleryDiskImage;
export type SharedGalleryOSDiskImage = SharedGalleryDiskImage & {};

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

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

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

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

/** Specifies information about the gallery image definition that you want to create or update. */
export type SharedGalleryImage = PirSharedGalleryResource & {
Expand Down
43 changes: 43 additions & 0 deletions sdk/compute/arm-compute/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

import {
Recorder,
RecorderStartOptions,
env
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";

const replaceableVariables: Record<string, string> = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
};

const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables
};

describe("My test", () => {
let recorder: Recorder;

beforeEach(async function(this: Context) {
recorder = new Recorder(this.currentTest);
await recorder.start(recorderOptions);
});

afterEach(async function() {
await recorder.stop();
});

it("sample test", async function() {
console.log("Hi, I'm a test!");
});
});
10 changes: 2 additions & 8 deletions sdk/compute/arm-compute/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-compute": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down