Skip to content

Commit 2e696f8

Browse files
author
SDKAuto
committed
CodeGen from PR 24364 in Azure/azure-rest-api-specs
Merge 3ecc2fe6087798173ff3f99164369fe07d89ee7f into 4b7481587132ce0bde5f0a6d6ab590129f7b7179
1 parent c979e82 commit 2e696f8

File tree

10 files changed

+101
-38
lines changed

10 files changed

+101
-38
lines changed

sdk/compute/arm-compute/CHANGELOG.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# Release History
2+
3+
## 21.1.0 (2023-06-27)
4+
5+
**Features**
26

3-
## 21.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Added Type Alias FileFormat
8+
- Interface GrantAccessData has a new optional parameter fileFormat
9+
- Added Enum KnownFileFormat
10+
11+
1312
## 21.0.0 (2023-05-17)
1413

1514
**Features**

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": "a2140e7ff0a6c28df501b16c51fe85b762a386fc",
2+
"commit": "97483969d1d44531bbb0b5e3ef65c4f5cadae1d6",
33
"readme": "specification/compute/resource-manager/readme.md",
4-
"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",
4+
"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",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
7-
"use": "@autorest/[email protected].1"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
7+
"use": "@autorest/typescript@^6.0.4"
88
}

sdk/compute/arm-compute/package.json

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for ComputeManagementClient.",
6-
"version": "21.0.1",
6+
"version": "21.1.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.5.0",
11+
"@azure/core-lro": "^2.5.3",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
@@ -48,8 +48,7 @@
4848
"chai": "^4.2.0",
4949
"cross-env": "^7.0.2",
5050
"@types/node": "^14.0.0",
51-
"@azure/dev-tool": "^1.0.0",
52-
"@azure/arm-network": "^26.0.0"
51+
"@azure/dev-tool": "^1.0.0"
5352
},
5453
"repository": {
5554
"type": "git",
@@ -112,13 +111,5 @@
112111
]
113112
},
114113
"autoPublish": true,
115-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
116-
"//sampleConfiguration": {
117-
"productName": "",
118-
"productSlugs": [
119-
"azure"
120-
],
121-
"disableDocsMs": true,
122-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
123-
}
124-
}
114+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute"
115+
}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,6 +2154,9 @@ export interface Extension {
21542154
properties?: CloudServiceExtensionProperties;
21552155
}
21562156

2157+
// @public
2158+
export type FileFormat = string;
2159+
21572160
// @public
21582161
export interface Galleries {
21592162
beginCreateOrUpdate(resourceGroupName: string, galleryName: string, gallery: Gallery, options?: GalleriesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<GalleriesCreateOrUpdateResponse>, GalleriesCreateOrUpdateResponse>>;
@@ -2779,6 +2782,7 @@ export interface GrantAccessData {
27792782
// (undocumented)
27802783
access: AccessLevel;
27812784
durationInSeconds: number;
2785+
fileFormat?: FileFormat;
27822786
getSecureVMGuestStateSAS?: boolean;
27832787
}
27842788

@@ -3276,6 +3280,12 @@ export enum KnownExtendedLocationTypes {
32763280
EdgeZone = "EdgeZone"
32773281
}
32783282

3283+
// @public
3284+
export enum KnownFileFormat {
3285+
VHD = "VHD",
3286+
Vhdx = "VHDX"
3287+
}
3288+
32793289
// @public
32803290
export enum KnownGalleryExpandParams {
32813291
SharingProfileGroups = "SharingProfile/Groups"

sdk/compute/arm-compute/src/computeManagementClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
145145
credential: credentials
146146
};
147147

148-
const packageDetails = `azsdk-js-arm-compute/21.0.1`;
148+
const packageDetails = `azsdk-js-arm-compute/21.1.0`;
149149
const userAgentPrefix =
150150
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
151151
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3010,6 +3010,8 @@ export interface GrantAccessData {
30103010
durationInSeconds: number;
30113011
/** Set this flag to true to get additional SAS for VM guest state */
30123012
getSecureVMGuestStateSAS?: boolean;
3013+
/** Used to specify the file format when making request for SAS on a VHDX file format snapshot */
3014+
fileFormat?: FileFormat;
30133015
}
30143016

30153017
/** A disk access SAS uri. */
@@ -8557,6 +8559,24 @@ export enum KnownAccessLevel {
85578559
*/
85588560
export type AccessLevel = string;
85598561

8562+
/** Known values of {@link FileFormat} that the service accepts. */
8563+
export enum KnownFileFormat {
8564+
/** A VHD file is a disk image file in the Virtual Hard Disk file format. */
8565+
VHD = "VHD",
8566+
/** A VHDX file is a disk image file in the Virtual Hard Disk v2 file format. */
8567+
Vhdx = "VHDX"
8568+
}
8569+
8570+
/**
8571+
* Defines values for FileFormat. \
8572+
* {@link KnownFileFormat} can be used interchangeably with FileFormat,
8573+
* this enum contains the known values that the service supports.
8574+
* ### Known values supported by the service
8575+
* **VHD**: A VHD file is a disk image file in the Virtual Hard Disk file format. \
8576+
* **VHDX**: A VHDX file is a disk image file in the Virtual Hard Disk v2 file format.
8577+
*/
8578+
export type FileFormat = string;
8579+
85608580
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
85618581
export enum KnownPrivateEndpointServiceConnectionStatus {
85628582
/** Pending */

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8008,6 +8008,12 @@ export const GrantAccessData: coreClient.CompositeMapper = {
80088008
type: {
80098009
name: "Boolean"
80108010
}
8011+
},
8012+
fileFormat: {
8013+
serializedName: "fileFormat",
8014+
type: {
8015+
name: "String"
8016+
}
80118017
}
80128018
}
80138019
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ export const diskName: OperationURLParameter = {
966966
export const apiVersion1: OperationQueryParameter = {
967967
parameterPath: "apiVersion",
968968
mapper: {
969-
defaultValue: "2022-07-02",
969+
defaultValue: "2023-01-02",
970970
isConstant: true,
971971
serializedName: "api-version",
972972
type: {
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)