diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 228e5a900197..2c423ded0a66 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -615,8 +615,8 @@ packages: - supports-color dev: false - /@azure/arm-storage/17.0.0: - resolution: {integrity: sha512-WS9eT3/vDQ7a1z/8K5BkPhoAi0ilo94yCSws4KyWq6UIA3RaXBDpYYAlN0TOxad9rPeOnWXWcB9gLw3DmjZ4wg==} + /@azure/arm-compute/17.2.0: + resolution: {integrity: sha512-tcKF04SeLcQyzFxzTlZN8dpyEU3GvRUYmhw3MYdsV7P3e6BJHibhJCL0pWLpB2Wa8GwVTv2ZLQ0UAzfKCtYerw==} engines: {node: '>=12.0.0'} dependencies: '@azure/abort-controller': 1.0.4 @@ -8797,7 +8797,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-YLgo9eIKQgbm757lEvizbQpwH1LlH6lD/aUMdWnJUI6jJT/c8O8/0wBH+x4VJNrPr5s30+9VmvEDyJSgRBKZvg==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-WkOPi4KrjmrSJOBZKum4E3Fu6mh41Dj6+gpvcvjeiVan9iaNjcfx1/GqQPD6W0/CfXfralQNK6yB+OYYT5eGOQ==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -9463,7 +9463,6 @@ packages: version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 - '@azure/arm-storage': 17.0.0 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.4 '@rollup/plugin-commonjs': 21.0.1_rollup@2.67.1 @@ -9702,27 +9701,28 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-PMofmK9xvJaGzycv50HnFTu0lXAvJgFo0S1E7RrcPpzCPjhvKRxE5VyqDhxDi5pLPpobNGbyfuifoelcT5a39g==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-SXG1OOPxmuDjfmHhCOcG31GII1K7GgOEgaWBJ1ljPTcUIHkI9dVHelhX9hgUh5GOlGLpQlC6UYp6PKlJE4JVXA==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.4 - '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 - '@rollup/plugin-json': 4.1.0_rollup@1.32.1 - '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 - '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 + '@rollup/plugin-commonjs': 21.0.1_rollup@2.67.1 + '@rollup/plugin-json': 4.1.0_rollup@2.67.1 + '@rollup/plugin-multi-entry': 4.1.0_rollup@2.67.1 + '@rollup/plugin-node-resolve': 13.1.3_rollup@2.67.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 1.32.1 - rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 + rollup: 2.67.1 + rollup-plugin-sourcemaps: 0.6.3_rollup@2.67.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.1 transitivePeerDependencies: + - '@types/node' - debug - encoding - supports-color @@ -10413,7 +10413,6 @@ packages: version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 - '@azure/arm-storage': 17.0.0 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.4 '@rollup/plugin-commonjs': 21.0.1_rollup@2.67.1 @@ -10683,6 +10682,7 @@ packages: version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 + '@azure/arm-compute': 17.2.0 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.4 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 @@ -11334,7 +11334,6 @@ packages: version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 - '@azure/arm-storage': 17.0.0 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.4 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 @@ -13765,19 +13764,14 @@ packages: version: 0.0.0 dependencies: '@microsoft/api-extractor': 7.19.4 - '@types/node': 12.20.43 cross-env: 7.0.3 downlevel-dts: 0.8.0 eslint: 7.32.0 - inherits: 2.0.4 mocha: 7.2.0 mocha-junit-reporter: 2.0.2_mocha@7.2.0 prettier: 2.5.1 rimraf: 3.0.2 - sinon: 9.2.4 - ts-node: 10.5.0_1aa569e4b68ef65c520f700d6703bce0 typescript: 4.2.4 - util: 0.12.4 transitivePeerDependencies: - supports-color dev: false @@ -16530,7 +16524,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-BRjdrldgLNJTlYmBSyQSQxRcKJ7+RI1mJjGtO4fs+pJ3LwGhuMJlcZZ5o/SWZHA9EDkMubsoiQcqzVPlWR8xnQ==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-xnF25ju9piSj1kanKGYIAGU0KI1SqDEIVFP3nb3yRic1O7z4XoI6Gl8sGyAMUg3ialaLPrCHTuaqrXlXNcQMqA==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -16691,7 +16685,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-efIo+Gtc9RgodqY4b1HNsFCmA2eTKls6HBle4D2W6uBE85QVLZOqleJnO7pKyF3n4jMGifJXhIdtmyxfT/Fs7Q==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-Tm3Eutn4zqT2OJJmJqPEnX01mzaQd42aWvYxN+UXsjpfQh8mH9mpXoo3UIoDF6xDnusHAa8SAci45JqXWtRIeQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -16758,7 +16752,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-YQrZG6MkISEYxq+XYeXWtIWgGPtDF3Rbgix3d5YW6vpCPmXABDiBcIx1M+0AWBa5CDaVPvWIjFtFJJCNWtcG+A==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-Ssz6nuW4Asy1xOLLsZgpMlWGlGMOBFP3ov30Vxbm08NTP2wW/gPo7xUc/sP2xL9tvkiEc7+Mgmmr4htp1oyE/g==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index 6a4c34193718..3b9baf52a8f7 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,5 +1,25 @@ # Release History +## 17.3.0 (2022-03-01) + +**Features** + + - Added Type Alias Architecture + - Added Type Alias ArchitectureTypes + - Added Type Alias DataAccessAuthMode + - Interface DiskUpdate has a new optional parameter dataAccessAuthMode + - Interface SnapshotUpdate has a new optional parameter dataAccessAuthMode + - Interface SupportedCapabilities has a new optional parameter architecture + - Type Alias Disk has a new parameter dataAccessAuthMode + - Type Alias GalleryImage has a new parameter architecture + - Type Alias GalleryImageUpdate has a new parameter architecture + - Type Alias Snapshot has a new parameter dataAccessAuthMode + - Type Alias VirtualMachineImage has a new parameter architecture + - Added Enum KnownArchitecture + - Added Enum KnownArchitectureTypes + - Added Enum KnownDataAccessAuthMode + + ## 17.2.0 (2022-02-14) **Features** diff --git a/sdk/compute/arm-compute/README.md b/sdk/compute/arm-compute/README.md index cb9f06fd0eac..9a5b8e7c17fc 100644 --- a/sdk/compute/arm-compute/README.md +++ b/sdk/compute/arm-compute/README.md @@ -16,6 +16,8 @@ Compute Client - [LTS versions of Node.js](https://nodejs.org/about/releases/) - Latest versions of Safari, Chrome, Edge and Firefox. +See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. + ### Prerequisites - An [Azure subscription][azure_sub]. @@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this ```javascript const { ComputeManagementClient } = require("@azure/arm-compute"); const { DefaultAzureCredential } = require("@azure/identity"); +// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. + const subscriptionId = "00000000-0000-0000-0000-000000000000"; const client = new ComputeManagementClient(new DefaultAzureCredential(), subscriptionId); + +// For client-side applications running in the browser, use this code instead: +// const credential = new InteractiveBrowserCredential({ +// tenantId: "", +// clientId: "" +// }); +// const client = new ComputeManagementClient(credential, subscriptionId); ``` diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index ed991dab39f9..91624816cc43 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,7 +1,7 @@ { - "commit": "7c98de7664d4565c088350015ccd0cfc102eab49", + "commit": "6cae16d785c0916d73085fac1587e061308626b6", "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:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220128.1 --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=D:\\mydev\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220224.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20220128.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220224.1" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 4b1454af02c2..2721116de4a1 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "17.2.0", + "version": "17.3.0", "engines": { "node": ">=12.0.0" }, @@ -29,13 +29,13 @@ "types": "./types/arm-compute.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@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", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-multi-entry": "^4.1.0", + "@rollup/plugin-node-resolve": "^13.1.3", "mkdirp": "^1.0.4", - "rollup": "^1.16.3", - "rollup-plugin-sourcemaps": "^0.4.2", + "rollup": "^2.66.1", + "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~4.2.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", @@ -107,13 +107,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview" - } -} \ No newline at end of file + "autoPublish": true +} diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index 77deb0d2719e..53ef7aaacaf7 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -64,6 +64,12 @@ export interface ApplicationProfile { galleryApplications?: VMGalleryApplication[]; } +// @public +export type Architecture = string; + +// @public +export type ArchitectureTypes = string; + // @public export interface AutomaticOSUpgradePolicy { disableAutomaticRollback?: boolean; @@ -1120,6 +1126,9 @@ export interface CreationData { uploadSizeBytes?: number; } +// @public +export type DataAccessAuthMode = string; + // @public export interface DataDisk { caching?: CachingTypes; @@ -1431,6 +1440,7 @@ export type Disk = Resource & { securityProfile?: DiskSecurityProfile; completionPercent?: number; publicNetworkAccess?: PublicNetworkAccess; + dataAccessAuthMode?: DataAccessAuthMode; }; // @public @@ -1936,6 +1946,7 @@ export type DisksUpdateResponse = Disk; // @public export interface DiskUpdate { burstingEnabled?: boolean; + dataAccessAuthMode?: DataAccessAuthMode; diskAccessId?: string; diskIopsReadOnly?: number; diskIopsReadWrite?: number; @@ -2345,6 +2356,7 @@ export type GalleryImage = Resource & { purchasePlan?: ImagePurchasePlan; readonly provisioningState?: GalleryImagePropertiesProvisioningState; features?: GalleryImageFeature[]; + architecture?: Architecture; }; // @public @@ -2442,6 +2454,7 @@ export type GalleryImageUpdate = UpdateResourceDefinition & { purchasePlan?: ImagePurchasePlan; readonly provisioningState?: GalleryImagePropertiesProvisioningState; features?: GalleryImageFeature[]; + architecture?: Architecture; }; // @public @@ -2852,6 +2865,22 @@ export enum KnownAggregatedReplicationState { Unknown = "Unknown" } +// @public +export enum KnownArchitecture { + // (undocumented) + Arm64 = "Arm64", + // (undocumented) + X64 = "x64" +} + +// @public +export enum KnownArchitectureTypes { + // (undocumented) + Arm64 = "Arm64", + // (undocumented) + X64 = "x64" +} + // @public export enum KnownAvailabilitySetSkuTypes { // (undocumented) @@ -2902,6 +2931,12 @@ export enum KnownConsistencyModeTypes { FileSystemConsistent = "FileSystemConsistent" } +// @public +export enum KnownDataAccessAuthMode { + AzureActiveDirectory = "AzureActiveDirectory", + None = "None" +} + // @public export enum KnownDeleteOptions { // (undocumented) @@ -5269,6 +5304,7 @@ export type Snapshot = Resource & { supportsHibernation?: boolean; publicNetworkAccess?: PublicNetworkAccess; completionPercent?: number; + dataAccessAuthMode?: DataAccessAuthMode; }; // @public @@ -5379,6 +5415,7 @@ export type SnapshotsUpdateResponse = Snapshot; // @public export interface SnapshotUpdate { + dataAccessAuthMode?: DataAccessAuthMode; diskAccessId?: string; diskSizeGB?: number; encryption?: Encryption; @@ -5555,6 +5592,7 @@ export type SubResourceWithColocationStatus = SubResource & { // @public export interface SupportedCapabilities { acceleratedNetwork?: boolean; + architecture?: Architecture; } // @public @@ -5961,6 +5999,7 @@ export type VirtualMachineImage = VirtualMachineImageResource & { hyperVGeneration?: HyperVGenerationTypes; disallowed?: DisallowedConfiguration; features?: VirtualMachineImageFeature[]; + architecture?: ArchitectureTypes; }; // @public diff --git a/sdk/compute/arm-compute/rollup.config.js b/sdk/compute/arm-compute/rollup.config.js index 9be1955eb7f1..3f89d7309da5 100644 --- a/sdk/compute/arm-compute/rollup.config.js +++ b/sdk/compute/arm-compute/rollup.config.js @@ -14,62 +14,14 @@ import json from "@rollup/plugin-json"; import nodeBuiltins from "builtin-modules"; -/** - * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api. - * - * NOTE: this manual configuration is only needed because OpenTelemetry uses an - * __exportStar downleveled helper function to declare its exports which confuses - * rollup's automatic discovery mechanism. - * - * @returns an object reference that can be `...`'d into your cjs() configuration. - */ -export function openTelemetryCommonJs() { - const namedExports = {}; - - for (const key of [ - "@opentelemetry/api", - "@azure/core-tracing/node_modules/@opentelemetry/api" - ]) { - namedExports[key] = [ - "SpanKind", - "TraceFlags", - "getSpan", - "setSpan", - "SpanStatusCode", - "getSpanContext", - "setSpanContext" - ]; - } - - const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"]; - - for (const version of releasedOpenTelemetryVersions) { - namedExports[ - // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path. - `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js` - ] = [ - "SpanKind", - "TraceFlags", - "getSpan", - "setSpan", - "StatusCode", - "CanonicalCode", - "getSpanContext", - "setSpanContext" - ]; - } - - return namedExports; -} - // #region Warning Handler /** - * A function that can determine whether a rollupwarning should be ignored. If + * A function that can determine whether a rollup warning should be ignored. If * the function returns `true`, then the warning will not be displayed. */ -function ignoreNiseSinonEvalWarnings(warning) { +function ignoreNiseSinonEval(warning) { return ( warning.code === "EVAL" && warning.id && @@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) { ); } -function ignoreChaiCircularDependencyWarnings(warning) { +function ignoreChaiCircularDependency(warning) { return ( warning.code === "CIRCULAR_DEPENDENCY" && warning.importer && warning.importer.includes("node_modules/chai") === true ); } -const warningInhibitors = [ - ignoreChaiCircularDependencyWarnings, - ignoreNiseSinonEvalWarnings -]; +const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval]; /** * Construct a warning handler for the shared rollup configuration @@ -122,22 +71,7 @@ function makeBrowserTestConfig() { nodeResolve({ mainFields: ["module", "browser"] }), - cjs({ - namedExports: { - // Chai's strange internal architecture makes it impossible to statically - // analyze its exports. - chai: [ - "version", - "use", - "util", - "config", - "expect", - "should", - "assert" - ], - ...openTelemetryCommonJs() - } - }), + cjs(), json(), sourcemaps() //viz({ filename: "dist-test/browser-stats.html", sourcemap: true }) @@ -173,7 +107,7 @@ export function makeConfig(pkg, options) { ], output: { file: "dist/index.js", format: "cjs", sourcemap: true }, preserveSymlinks: false, - plugins: [sourcemaps(), nodeResolve(), cjs()] + plugins: [sourcemaps(), nodeResolve()] }; const config = [baseConfig]; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index ce49bdd68231..869e344e577b 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -144,7 +144,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-compute/17.2.0`; + const packageDetails = `azsdk-js-arm-compute/17.3.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index 78c946b28dfb..4abb76fcfb79 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -2688,10 +2688,12 @@ export interface PurchasePlanAutoGenerated { promotionCode?: string; } -/** List of supported capabilities (like accelerated networking) persisted on the disk resource for VM use. */ +/** List of supported capabilities persisted on the disk resource for VM use. */ export interface SupportedCapabilities { /** True if the image from which the OS disk is created supports accelerated networking. */ acceleratedNetwork?: boolean; + /** CPU architecture supported by an OS disk. */ + architecture?: Architecture; } /** Data used when creating a disk. */ @@ -2833,7 +2835,7 @@ export interface DiskUpdate { burstingEnabled?: boolean; /** Purchase plan information to be added on the OS disk */ purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities (like accelerated networking) to be added on the OS disk. */ + /** List of supported capabilities to be added on the OS disk. */ supportedCapabilities?: SupportedCapabilities; /** * Properties of the disk for which update is pending. @@ -2844,6 +2846,8 @@ export interface DiskUpdate { supportsHibernation?: boolean; /** Policy for controlling export on the disk. */ publicNetworkAccess?: PublicNetworkAccess; + /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ + dataAccessAuthMode?: DataAccessAuthMode; } /** The List Disks operation response. */ @@ -2910,7 +2914,9 @@ export interface SnapshotUpdate { supportsHibernation?: boolean; /** Policy for controlling export on the disk. */ publicNetworkAccess?: PublicNetworkAccess; - /** List of supported capabilities (like accelerated networking) for the image from which the OS disk was created. */ + /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ + dataAccessAuthMode?: DataAccessAuthMode; + /** List of supported capabilities for the image from which the OS disk was created. */ supportedCapabilities?: SupportedCapabilities; } @@ -4912,6 +4918,8 @@ export type Disk = Resource & { completionPercent?: number; /** Policy for controlling export on the disk. */ publicNetworkAccess?: PublicNetworkAccess; + /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ + dataAccessAuthMode?: DataAccessAuthMode; }; /** Snapshot resource. */ @@ -4936,7 +4944,7 @@ export type Snapshot = Resource & { hyperVGeneration?: HyperVGeneration; /** Purchase plan information for the image from which the source disk for the snapshot was originally created. */ purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities (like Accelerated Networking) for the image from which the source disk from the snapshot was originally created. */ + /** List of supported capabilities for the image from which the source disk from the snapshot was originally created. */ supportedCapabilities?: SupportedCapabilities; /** Disk source information. CreationData information cannot be changed after the disk has been created. */ creationData?: CreationData; @@ -4980,6 +4988,8 @@ export type Snapshot = Resource & { publicNetworkAccess?: PublicNetworkAccess; /** Percentage complete for the background copy when a resource is created via the CopyStart operation. */ completionPercent?: number; + /** Additional authentication requirements when exporting or uploading to a disk or snapshot. */ + dataAccessAuthMode?: DataAccessAuthMode; }; /** disk encryption set resource. */ @@ -5090,6 +5100,8 @@ export type GalleryImage = Resource & { readonly provisioningState?: GalleryImagePropertiesProvisioningState; /** A list of gallery image features. */ features?: GalleryImageFeature[]; + /** The architecture of the image. Applicable to OS disks only. */ + architecture?: Architecture; }; /** Specifies information about the gallery image version that you want to create or update. */ @@ -5736,7 +5748,7 @@ export type DiskRestorePoint = ProxyOnlyResource & { hyperVGeneration?: HyperVGeneration; /** Purchase plan information for the the image from which the OS disk was created. */ purchasePlan?: PurchasePlanAutoGenerated; - /** List of supported capabilities (like accelerated networking) for the image from which the OS disk was created. */ + /** List of supported capabilities for the image from which the OS disk was created. */ supportedCapabilities?: SupportedCapabilities; /** * id of the backing snapshot's MIS family @@ -5830,6 +5842,8 @@ export type GalleryImageUpdate = UpdateResourceDefinition & { readonly provisioningState?: GalleryImagePropertiesProvisioningState; /** A list of gallery image features. */ features?: GalleryImageFeature[]; + /** The architecture of the image. Applicable to OS disks only. */ + architecture?: Architecture; }; /** Specifies information about the gallery image version that you want to update. */ @@ -5968,6 +5982,8 @@ export type VirtualMachineImage = VirtualMachineImageResource & { /** Specifies disallowed configuration for the VirtualMachine created from the image */ disallowed?: DisallowedConfiguration; features?: VirtualMachineImageFeature[]; + /** Specifies the Architecture Type */ + architecture?: ArchitectureTypes; }; /** Describes a Virtual Machine Scale Set VM Reimage Parameters. */ @@ -6057,6 +6073,22 @@ export enum KnownVmDiskTypes { */ export type VmDiskTypes = string; +/** Known values of {@link ArchitectureTypes} that the service accepts. */ +export enum KnownArchitectureTypes { + X64 = "x64", + Arm64 = "Arm64" +} + +/** + * Defines values for ArchitectureTypes. \ + * {@link KnownArchitectureTypes} can be used interchangeably with ArchitectureTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **x64** \ + * **Arm64** + */ +export type ArchitectureTypes = string; + /** Known values of {@link ExtendedLocationTypes} that the service accepts. */ export enum KnownExtendedLocationTypes { EdgeZone = "EdgeZone" @@ -7253,6 +7285,22 @@ export enum KnownHyperVGeneration { */ export type HyperVGeneration = string; +/** Known values of {@link Architecture} that the service accepts. */ +export enum KnownArchitecture { + X64 = "x64", + Arm64 = "Arm64" +} + +/** + * Defines values for Architecture. \ + * {@link KnownArchitecture} can be used interchangeably with Architecture, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **x64** \ + * **Arm64** + */ +export type Architecture = string; + /** Known values of {@link DiskCreateOption} that the service accepts. */ export enum KnownDiskCreateOption { /** Create an empty data disk of a size given by diskSizeGB. */ @@ -7415,6 +7463,24 @@ export enum KnownPublicNetworkAccess { */ export type PublicNetworkAccess = string; +/** Known values of {@link DataAccessAuthMode} that the service accepts. */ +export enum KnownDataAccessAuthMode { + /** When export/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export/upload the data. Please refer to aka.ms/DisksAzureADAuth. */ + AzureActiveDirectory = "AzureActiveDirectory", + /** No additional authentication would be performed when accessing export/upload URL. */ + None = "None" +} + +/** + * Defines values for DataAccessAuthMode. \ + * {@link KnownDataAccessAuthMode} can be used interchangeably with DataAccessAuthMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureActiveDirectory**: When export\/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export\/upload the data. Please refer to aka.ms\/DisksAzureADAuth. \ + * **None**: No additional authentication would be performed when accessing export\/upload URL. + */ +export type DataAccessAuthMode = string; + /** Known values of {@link AccessLevel} that the service accepts. */ export enum KnownAccessLevel { None = "None", diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index 387dfffc0b7b..12978d03ca18 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -6986,6 +6986,12 @@ export const SupportedCapabilities: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + architecture: { + serializedName: "architecture", + type: { + name: "String" + } } } } @@ -7409,6 +7415,12 @@ export const DiskUpdate: coreClient.CompositeMapper = { type: { name: "String" } + }, + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", + type: { + name: "String" + } } } } @@ -7586,6 +7598,12 @@ export const SnapshotUpdate: coreClient.CompositeMapper = { name: "String" } }, + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", + type: { + name: "String" + } + }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { @@ -12712,6 +12730,12 @@ export const Disk: coreClient.CompositeMapper = { type: { name: "String" } + }, + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", + type: { + name: "String" + } } } } @@ -12875,6 +12899,12 @@ export const Snapshot: coreClient.CompositeMapper = { type: { name: "Number" } + }, + dataAccessAuthMode: { + serializedName: "properties.dataAccessAuthMode", + type: { + name: "String" + } } } } @@ -13147,6 +13177,12 @@ export const GalleryImage: coreClient.CompositeMapper = { } } } + }, + architecture: { + serializedName: "properties.architecture", + type: { + name: "String" + } } } } @@ -15030,6 +15066,12 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { } } } + }, + architecture: { + serializedName: "properties.architecture", + type: { + name: "String" + } } } } @@ -15439,6 +15481,12 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { } } } + }, + architecture: { + serializedName: "properties.architecture", + type: { + name: "String" + } } } } diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 8bf5b25e1450..3b84e2941ec9 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -940,7 +940,7 @@ export const diskName: OperationURLParameter = { export const apiVersion2: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-08-01", + defaultValue: "2021-12-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json index 481f8c36ccdc..3e6ae96443f3 100644 --- a/sdk/compute/arm-compute/tsconfig.json +++ b/sdk/compute/arm-compute/tsconfig.json @@ -15,12 +15,7 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-compute": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", diff --git a/sdk/compute/ci.mgmt.yml b/sdk/compute/ci.mgmt.yml index c029d21afe01..d4d25787274a 100644 --- a/sdk/compute/ci.mgmt.yml +++ b/sdk/compute/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -9,7 +9,7 @@ trigger: paths: include: - sdk/compute/ci.mgmt.yml - - sdk/compute/arm-compute/ + - sdk/compute/arm-compute pr: branches: include: @@ -22,12 +22,11 @@ pr: paths: include: - sdk/compute/ci.mgmt.yml - - sdk/compute/arm-compute/ - + - sdk/compute/arm-compute extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: compute Artifacts: - name: azure-arm-compute - safeName: azurearmcompute \ No newline at end of file + safeName: azurearmcompute