Skip to content

[AutoPR @azure/arm-compute] GalleryRP 2022-08-03 release (2nd) #5621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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
19 changes: 9 additions & 10 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# Release History

## 21.1.0 (2023-06-30)

**Features**

## 21.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Type Alias FileFormat
- Interface GrantAccessData has a new optional parameter fileFormat
- Added Enum KnownFileFormat


## 21.0.0 (2023-05-17)

**Features**
Expand Down
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": "a2140e7ff0a6c28df501b16c51fe85b762a386fc",
"commit": "e6f6f7a5b3a88f653f7c2d51b2691039c86fd4ed",
"readme": "specification/compute/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.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\\compute\\resource-manager\\readme.md --use=@autorest/[email protected].1 --generate-sample=true",
"autorest_command": "autorest --version=3.9.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/compute/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/[email protected].1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
"use": "@autorest/typescript@^6.0.4"
}
19 changes: 5 additions & 14 deletions sdk/compute/arm-compute/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ComputeManagementClient.",
"version": "21.0.1",
"version": "21.1.0",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@azure/core-lro": "^2.5.3",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
Expand Down Expand Up @@ -48,8 +48,7 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-network": "^26.0.0"
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -112,13 +111,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute"
}
10 changes: 10 additions & 0 deletions sdk/compute/arm-compute/review/arm-compute.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,9 @@ export interface Extension {
properties?: CloudServiceExtensionProperties;
}

// @public
export type FileFormat = string;

// @public
export interface Galleries {
beginCreateOrUpdate(resourceGroupName: string, galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<GalleriesCreateOrUpdateResponse>, GalleriesCreateOrUpdateResponse>>;
Expand Down Expand Up @@ -2779,6 +2782,7 @@ export interface GrantAccessData {
// (undocumented)
access: AccessLevel;
durationInSeconds: number;
fileFormat?: FileFormat;
getSecureVMGuestStateSAS?: boolean;
}

Expand Down Expand Up @@ -3276,6 +3280,12 @@ export enum KnownExtendedLocationTypes {
EdgeZone = "EdgeZone"
}

// @public
export enum KnownFileFormat {
VHD = "VHD",
Vhdx = "VHDX"
}

// @public
export enum KnownGalleryExpandParams {
SharingProfileGroups = "SharingProfile/Groups"
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/arm-compute/src/computeManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-compute/21.0.1`;
const packageDetails = `azsdk-js-arm-compute/21.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
38 changes: 29 additions & 9 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3010,6 +3010,8 @@ export interface GrantAccessData {
durationInSeconds: number;
/** Set this flag to true to get additional SAS for VM guest state */
getSecureVMGuestStateSAS?: boolean;
/** Used to specify the file format when making request for SAS on a VHDX file format snapshot */
fileFormat?: FileFormat;
}

/** A disk access SAS uri. */
Expand Down Expand Up @@ -3503,7 +3505,7 @@ export interface GalleryIdentifier {

/** Profile for gallery sharing to subscription or tenant */
export interface SharingProfile {
/** This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community** */
/** This property allows you to specify the permission of sharing gallery. Possible values are: **Private,** **Groups,** **Community.** */
permissions?: GallerySharingPermissionTypes;
/**
* A list of sharing profile groups.
Expand All @@ -3516,7 +3518,7 @@ export interface SharingProfile {

/** Group of the gallery sharing profile */
export interface SharingProfileGroup {
/** This property allows you to specify the type of sharing group. <br><br> Possible values are: <br><br> **Subscriptions** <br><br> **AADTenants** */
/** This property allows you to specify the type of sharing group. Possible values are: **Subscriptions,** **AADTenants.** */
type?: SharingProfileGroupTypes;
/** A list of subscription/tenant ids the gallery is aimed to be shared to. */
ids?: string[];
Expand Down Expand Up @@ -3898,7 +3900,7 @@ export interface GalleryApplicationVersionList {

/** Specifies information about the gallery sharing profile update. */
export interface SharingUpdate {
/** This property allows you to specify the operation type of gallery sharing update. <br><br> Possible values are: <br><br> **Add** <br><br> **Remove** <br><br> **Reset** */
/** This property allows you to specify the operation type of gallery sharing update. Possible values are: **Add,** **Remove,** **Reset.** */
operationType: SharingUpdateOperationTypes;
/** A list of sharing profile groups. */
groups?: SharingProfileGroup[];
Expand Down Expand Up @@ -5726,7 +5728,7 @@ export interface GalleryImage extends Resource {
privacyStatementUri?: string;
/** The release note uri. */
releaseNoteUri?: string;
/** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux** */
/** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */
osType?: OperatingSystemTypes;
/** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */
osState?: OperatingSystemStateTypes;
Expand Down Expand Up @@ -5785,7 +5787,7 @@ export interface GalleryApplication extends Resource {
releaseNoteUri?: string;
/** The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. */
endOfLifeDate?: Date;
/** This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux** */
/** This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.** */
supportedOSType?: OperatingSystemTypes;
/** A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. */
customActions?: GalleryApplicationCustomAction[];
Expand Down Expand Up @@ -6338,7 +6340,7 @@ export interface GalleryImageUpdate extends UpdateResourceDefinition {
privacyStatementUri?: string;
/** The release note uri. */
releaseNoteUri?: string;
/** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux** */
/** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */
osType?: OperatingSystemTypes;
/** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */
osState?: OperatingSystemStateTypes;
Expand Down Expand Up @@ -6397,7 +6399,7 @@ export interface GalleryApplicationUpdate extends UpdateResourceDefinition {
releaseNoteUri?: string;
/** The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable. */
endOfLifeDate?: Date;
/** This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux** */
/** This property allows you to specify the supported type of the OS that application is built for. Possible values are: **Windows,** **Linux.** */
supportedOSType?: OperatingSystemTypes;
/** A list of custom actions that can be performed with all of the Gallery Application Versions within this Gallery Application. */
customActions?: GalleryApplicationCustomAction[];
Expand Down Expand Up @@ -6517,7 +6519,7 @@ export interface CommunityGallery extends PirCommunityGalleryResource {}

/** Specifies information about the gallery image definition that you want to create or update. */
export interface CommunityGalleryImage extends PirCommunityGalleryResource {
/** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux** */
/** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */
osType?: OperatingSystemTypes;
/** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */
osState?: OperatingSystemStateTypes;
Expand Down Expand Up @@ -6588,7 +6590,7 @@ export interface SharedGallery extends PirSharedGalleryResource {}

/** Specifies information about the gallery image definition that you want to create or update. */
export interface SharedGalleryImage extends PirSharedGalleryResource {
/** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux** */
/** This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.** */
osType?: OperatingSystemTypes;
/** This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. */
osState?: OperatingSystemStateTypes;
Expand Down Expand Up @@ -8557,6 +8559,24 @@ export enum KnownAccessLevel {
*/
export type AccessLevel = string;

/** Known values of {@link FileFormat} that the service accepts. */
export enum KnownFileFormat {
/** A VHD file is a disk image file in the Virtual Hard Disk file format. */
VHD = "VHD",
/** A VHDX file is a disk image file in the Virtual Hard Disk v2 file format. */
Vhdx = "VHDX"
}

/**
* Defines values for FileFormat. \
* {@link KnownFileFormat} can be used interchangeably with FileFormat,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **VHD**: A VHD file is a disk image file in the Virtual Hard Disk file format. \
* **VHDX**: A VHDX file is a disk image file in the Virtual Hard Disk v2 file format.
*/
export type FileFormat = string;

/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
export enum KnownPrivateEndpointServiceConnectionStatus {
/** Pending */
Expand Down
6 changes: 6 additions & 0 deletions sdk/compute/arm-compute/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8008,6 +8008,12 @@ export const GrantAccessData: coreClient.CompositeMapper = {
type: {
name: "Boolean"
}
},
fileFormat: {
serializedName: "fileFormat",
type: {
name: "String"
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/compute/arm-compute/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ export const diskName: OperationURLParameter = {
export const apiVersion1: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2022-07-02",
defaultValue: "2023-01-02",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down Expand Up @@ -1127,7 +1127,7 @@ export const galleryName: OperationURLParameter = {
export const apiVersion3: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2022-03-03",
defaultValue: "2022-08-03",
isConstant: true,
serializedName: "api-version",
type: {
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