Skip to content

Commit b92dc32

Browse files
author
SDKAuto
committed
CodeGen from PR 17853 in Azure/azure-rest-api-specs
Merge 1d7ce851071426c6b1b48c4747f913a3b4fadb21 into 06f446933347cf235bf85abe1afdbee49615bf9c
1 parent 4882b4a commit b92dc32

File tree

11 files changed

+172
-35
lines changed

11 files changed

+172
-35
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 18 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/compute/arm-compute/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Release History
22

3+
## 17.3.0 (2022-02-25)
4+
5+
**Features**
6+
7+
- Added Type Alias Architecture
8+
- Added Type Alias ArchitectureTypes
9+
- Type Alias GalleryImage has a new parameter architecture
10+
- Type Alias GalleryImageUpdate has a new parameter architecture
11+
- Type Alias VirtualMachineImage has a new parameter architecture
12+
- Added Enum KnownArchitecture
13+
- Added Enum KnownArchitectureTypes
14+
15+
316
## 17.2.0 (2022-02-14)
417

518
**Features**

sdk/compute/arm-compute/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "7c98de7664d4565c088350015ccd0cfc102eab49",
2+
"commit": "f7dc83cc587f62c2006c9211b2d1e966b257ca30",
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:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/[email protected].20220128.1 --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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/compute/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected].20220128.1"
6+
"use": "@autorest/[email protected].20220105.1"
77
}

sdk/compute/arm-compute/package.json

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for ComputeManagementClient.",
6-
"version": "17.2.0",
6+
"version": "1.0.0-beta.1",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -42,8 +42,7 @@
4242
"@azure/identity": "^2.0.1",
4343
"@azure-tools/test-recorder": "^1.0.0",
4444
"mocha": "^7.1.1",
45-
"cross-env": "^7.0.2",
46-
"@azure/arm-network": "^26.0.0"
45+
"cross-env": "^7.0.2"
4746
},
4847
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/compute/arm-compute",
4948
"repository": {
@@ -99,21 +98,5 @@
9998
"docs": "echo skipped"
10099
},
101100
"sideEffects": false,
102-
"//metadata": {
103-
"constantPaths": [
104-
{
105-
"path": "src/computeManagementClient.ts",
106-
"prefix": "packageDetails"
107-
}
108-
]
109-
},
110-
"autoPublish": true,
111-
"//sampleConfiguration": {
112-
"productName": "",
113-
"productSlugs": [
114-
"azure"
115-
],
116-
"disableDocsMs": true,
117-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-compute?view=azure-node-preview"
118-
}
101+
"autoPublish": true
119102
}

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ export interface ApplicationProfile {
6464
galleryApplications?: VMGalleryApplication[];
6565
}
6666

67+
// @public
68+
export type Architecture = string;
69+
70+
// @public
71+
export type ArchitectureTypes = string;
72+
6773
// @public
6874
export interface AutomaticOSUpgradePolicy {
6975
disableAutomaticRollback?: boolean;
@@ -2345,6 +2351,7 @@ export type GalleryImage = Resource & {
23452351
purchasePlan?: ImagePurchasePlan;
23462352
readonly provisioningState?: GalleryImagePropertiesProvisioningState;
23472353
features?: GalleryImageFeature[];
2354+
architecture?: Architecture;
23482355
};
23492356

23502357
// @public
@@ -2442,6 +2449,7 @@ export type GalleryImageUpdate = UpdateResourceDefinition & {
24422449
purchasePlan?: ImagePurchasePlan;
24432450
readonly provisioningState?: GalleryImagePropertiesProvisioningState;
24442451
features?: GalleryImageFeature[];
2452+
architecture?: Architecture;
24452453
};
24462454

24472455
// @public
@@ -2852,6 +2860,22 @@ export enum KnownAggregatedReplicationState {
28522860
Unknown = "Unknown"
28532861
}
28542862

2863+
// @public
2864+
export enum KnownArchitecture {
2865+
// (undocumented)
2866+
Arm64 = "Arm64",
2867+
// (undocumented)
2868+
X64 = "x64"
2869+
}
2870+
2871+
// @public
2872+
export enum KnownArchitectureTypes {
2873+
// (undocumented)
2874+
Arm64 = "Arm64",
2875+
// (undocumented)
2876+
X64 = "x64"
2877+
}
2878+
28552879
// @public
28562880
export enum KnownAvailabilitySetSkuTypes {
28572881
// (undocumented)
@@ -5961,6 +5985,7 @@ export type VirtualMachineImage = VirtualMachineImageResource & {
59615985
hyperVGeneration?: HyperVGenerationTypes;
59625986
disallowed?: DisallowedConfiguration;
59635987
features?: VirtualMachineImageFeature[];
5988+
architecture?: ArchitectureTypes;
59645989
};
59655990

59665991
// @public

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

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

147-
const packageDetails = `azsdk-js-arm-compute/17.2.0`;
147+
const packageDetails = `azsdk-js-arm-compute/17.3.0`;
148148
const userAgentPrefix =
149149
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
150150
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5090,6 +5090,8 @@ export type GalleryImage = Resource & {
50905090
readonly provisioningState?: GalleryImagePropertiesProvisioningState;
50915091
/** A list of gallery image features. */
50925092
features?: GalleryImageFeature[];
5093+
/** The architecture of the image. Applicable to OS disks only. */
5094+
architecture?: Architecture;
50935095
};
50945096

50955097
/** Specifies information about the gallery image version that you want to create or update. */
@@ -5830,6 +5832,8 @@ export type GalleryImageUpdate = UpdateResourceDefinition & {
58305832
readonly provisioningState?: GalleryImagePropertiesProvisioningState;
58315833
/** A list of gallery image features. */
58325834
features?: GalleryImageFeature[];
5835+
/** The architecture of the image. Applicable to OS disks only. */
5836+
architecture?: Architecture;
58335837
};
58345838

58355839
/** Specifies information about the gallery image version that you want to update. */
@@ -5968,6 +5972,8 @@ export type VirtualMachineImage = VirtualMachineImageResource & {
59685972
/** Specifies disallowed configuration for the VirtualMachine created from the image */
59695973
disallowed?: DisallowedConfiguration;
59705974
features?: VirtualMachineImageFeature[];
5975+
/** Specifies the Architecture Type */
5976+
architecture?: ArchitectureTypes;
59715977
};
59725978

59735979
/** Describes a Virtual Machine Scale Set VM Reimage Parameters. */
@@ -6057,6 +6063,22 @@ export enum KnownVmDiskTypes {
60576063
*/
60586064
export type VmDiskTypes = string;
60596065

6066+
/** Known values of {@link ArchitectureTypes} that the service accepts. */
6067+
export enum KnownArchitectureTypes {
6068+
X64 = "x64",
6069+
Arm64 = "Arm64"
6070+
}
6071+
6072+
/**
6073+
* Defines values for ArchitectureTypes. \
6074+
* {@link KnownArchitectureTypes} can be used interchangeably with ArchitectureTypes,
6075+
* this enum contains the known values that the service supports.
6076+
* ### Known values supported by the service
6077+
* **x64** \
6078+
* **Arm64**
6079+
*/
6080+
export type ArchitectureTypes = string;
6081+
60606082
/** Known values of {@link ExtendedLocationTypes} that the service accepts. */
60616083
export enum KnownExtendedLocationTypes {
60626084
EdgeZone = "EdgeZone"
@@ -7659,6 +7681,22 @@ export enum KnownGalleryImagePropertiesProvisioningState {
76597681
*/
76607682
export type GalleryImagePropertiesProvisioningState = string;
76617683

7684+
/** Known values of {@link Architecture} that the service accepts. */
7685+
export enum KnownArchitecture {
7686+
X64 = "x64",
7687+
Arm64 = "Arm64"
7688+
}
7689+
7690+
/**
7691+
* Defines values for Architecture. \
7692+
* {@link KnownArchitecture} can be used interchangeably with Architecture,
7693+
* this enum contains the known values that the service supports.
7694+
* ### Known values supported by the service
7695+
* **x64** \
7696+
* **Arm64**
7697+
*/
7698+
export type Architecture = string;
7699+
76627700
/** Known values of {@link StorageAccountType} that the service accepts. */
76637701
export enum KnownStorageAccountType {
76647702
StandardLRS = "Standard_LRS",

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13147,6 +13147,12 @@ export const GalleryImage: coreClient.CompositeMapper = {
1314713147
}
1314813148
}
1314913149
}
13150+
},
13151+
architecture: {
13152+
serializedName: "properties.architecture",
13153+
type: {
13154+
name: "String"
13155+
}
1315013156
}
1315113157
}
1315213158
}
@@ -15030,6 +15036,12 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = {
1503015036
}
1503115037
}
1503215038
}
15039+
},
15040+
architecture: {
15041+
serializedName: "properties.architecture",
15042+
type: {
15043+
name: "String"
15044+
}
1503315045
}
1503415046
}
1503515047
}
@@ -15439,6 +15451,12 @@ export const VirtualMachineImage: coreClient.CompositeMapper = {
1543915451
}
1544015452
}
1544115453
}
15454+
},
15455+
architecture: {
15456+
serializedName: "properties.architecture",
15457+
type: {
15458+
name: "String"
15459+
}
1544215460
}
1544315461
}
1544415462
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
env,
11+
record,
12+
RecorderEnvironmentSetup,
13+
Recorder
14+
} from "@azure-tools/test-recorder";
15+
import * as assert from "assert";
16+
17+
const recorderEnvSetup: RecorderEnvironmentSetup = {
18+
replaceableVariables: {
19+
AZURE_CLIENT_ID: "azure_client_id",
20+
AZURE_CLIENT_SECRET: "azure_client_secret",
21+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
22+
SUBSCRIPTION_ID: "azure_subscription_id"
23+
},
24+
customizationsOnRecordings: [
25+
(recording: any): any =>
26+
recording.replace(
27+
/"access_token":"[^"]*"/g,
28+
`"access_token":"access_token"`
29+
)
30+
],
31+
queryParametersToSkip: []
32+
};
33+
34+
describe("My test", () => {
35+
let recorder: Recorder;
36+
37+
beforeEach(async function() {
38+
recorder = record(this, recorderEnvSetup);
39+
});
40+
41+
afterEach(async function() {
42+
await recorder.stop();
43+
});
44+
45+
it("sample test", async function() {
46+
console.log("Hi, I'm a test!");
47+
});
48+
});

sdk/compute/arm-compute/tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@
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",

0 commit comments

Comments
 (0)