From f7f32c736bc319b73f99038e6ce1728ff966bb6f Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 16 Aug 2023 00:30:17 +0000 Subject: [PATCH] CodeGen from PR 24665 in Azure/azure-rest-api-specs Merge fb52afc254262765d6d0929d7ae7a108435fddb7 into 44ceaea591c118adf3e4106d389adc2b426db776 --- common/config/rush/pnpm-lock.yaml | 11 +- sdk/compute/arm-compute/CHANGELOG.md | 27 ++-- sdk/compute/arm-compute/_meta.json | 8 +- sdk/compute/arm-compute/package.json | 22 ++-- .../arm-compute/review/arm-compute.api.md | 31 +++++ .../src/computeManagementClient.ts | 2 +- sdk/compute/arm-compute/src/models/index.ts | 69 ++++++++--- sdk/compute/arm-compute/src/models/mappers.ts | 116 +++++++++++++++++- .../arm-compute/src/models/parameters.ts | 2 +- sdk/compute/arm-compute/test/sampleTest.ts | 43 +++++++ sdk/compute/arm-compute/tsconfig.json | 10 +- 11 files changed, 281 insertions(+), 60 deletions(-) create mode 100644 sdk/compute/arm-compute/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 54f1a1847991..e9f25f89c5ed 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4132,7 +4132,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20230811 + typescript: 5.3.0-dev.20230815 dev: false /ecdsa-sig-formatter/1.0.11: @@ -8717,8 +8717,8 @@ packages: hasBin: true dev: false - /typescript/5.3.0-dev.20230811: - resolution: {integrity: sha512-C4bwx7ZpBwX7bKxrrNl+M1j8yNGmwQ5M58X0mT4VYI1+FHqRvb/uJ4F1uJsVJ+X7iy22iXSICR/Vxnpc1gNk7w==} + /typescript/5.3.0-dev.20230815: + resolution: {integrity: sha512-AB4arWte1oMsTpFUSnkhgLOzWRR6SLMtQ4WjDl+I0mDC3nh0UH5SEJtwjSt7lYIg/xylgXduCFEDoM1Vvv3uPg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -10857,7 +10857,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-dc0DkgBjMbn7PO2CVdcMlVVyf+PDXmwO/IGFfPpqiLM4ibQHraBxwpLxF8JXL90AU2sdi8ghPvp8iT0HJJBbFw==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-C25VKe4Q3jeK4S2oxr09r9oj5WKybvEBnupnWCr0NSVlEarSPz24R2/+w6bcuVKUhaZyU+iFbqMXjdURwwlF2w==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -10878,10 +10878,13 @@ packages: rimraf: 3.0.2 rollup: 2.79.1 rollup-plugin-sourcemaps: 0.6.3_dmbj5memikchm63lpeyt6ukdau + ts-node: 10.9.1_n7tz6hmpirns3flqdptizaxofa tslib: 2.6.1 typescript: 5.0.4 uglify-js: 3.17.4 transitivePeerDependencies: + - '@swc/core' + - '@swc/wasm' - supports-color dev: false diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index c04a14081ca2..c1d7ae3ecdd6 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,22 @@ # Release History + +## 21.2.0 (2023-08-16) + +**Features** -## 21.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface CommunityGalleryMetadata + - Interface CommunityGallery has a new optional parameter artifactTags + - Interface CommunityGallery has a new optional parameter communityMetadata + - Interface CommunityGallery has a new optional parameter disclaimer + - Interface CommunityGalleryImage has a new optional parameter artifactTags + - Interface CommunityGalleryImage has a new optional parameter disclaimer + - Interface CommunityGalleryImageVersion has a new optional parameter artifactTags + - Interface CommunityGalleryImageVersion has a new optional parameter disclaimer + - Interface SharedGallery has a new optional parameter artifactTags + - Interface SharedGalleryImage has a new optional parameter artifactTags + - Interface SharedGalleryImageVersion has a new optional parameter artifactTags + + ## 21.1.0 (2023-07-07) **Features** diff --git a/sdk/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index 86612fe07657..9f51ee37c6cf 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "310a0100f5b020c1900c527a6aa70d21992f078a", + "commit": "f16d7c159b7d1fade07aa470797d06ec46400bdb", "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/typescript@6.0.5 --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.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 7bebc4e46ed2..675455809492 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.1.1", + "version": "21.2.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -48,8 +48,8 @@ "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" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -112,13 +112,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" +} \ No newline at end of file diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index f9b50249b9ef..1ece8420a0aa 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -931,12 +931,21 @@ export type CommunityGalleriesGetResponse = CommunityGallery; // @public export interface CommunityGallery extends PirCommunityGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; + communityMetadata?: CommunityGalleryMetadata; + disclaimer?: string; } // @public export interface CommunityGalleryImage extends PirCommunityGalleryResource { architecture?: Architecture; + artifactTags?: { + [propertyName: string]: string; + }; disallowed?: Disallowed; + disclaimer?: string; endOfLifeDate?: Date; eula?: string; features?: GalleryImageFeature[]; @@ -991,6 +1000,10 @@ export type CommunityGalleryImagesListResponse = CommunityGalleryImageList; // @public export interface CommunityGalleryImageVersion extends PirCommunityGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; + disclaimer?: string; endOfLifeDate?: Date; excludeFromLatest?: boolean; publishedDate?: Date; @@ -1040,6 +1053,15 @@ export interface CommunityGalleryInfo { publisherUri?: string; } +// @public +export interface CommunityGalleryMetadata { + eula?: string; + privacyStatementUri?: string; + publicNames?: string[]; + publisherContact?: string; + publisherUri?: string; +} + // @public (undocumented) export class ComputeManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -5103,6 +5125,9 @@ export type SharedGalleriesListResponse = SharedGalleryList; // @public export interface SharedGallery extends PirSharedGalleryResource { + readonly artifactTags?: { + [propertyName: string]: string; + }; } // @public @@ -5122,6 +5147,9 @@ export type SharedGalleryHostCaching = string; // @public export interface SharedGalleryImage extends PirSharedGalleryResource { architecture?: Architecture; + artifactTags?: { + [propertyName: string]: string; + }; disallowed?: Disallowed; endOfLifeDate?: Date; eula?: string; @@ -5171,6 +5199,9 @@ export type SharedGalleryImagesListResponse = SharedGalleryImageList; // @public export interface SharedGalleryImageVersion extends PirSharedGalleryResource { + artifactTags?: { + [propertyName: string]: string; + }; endOfLifeDate?: Date; excludeFromLatest?: boolean; publishedDate?: Date; diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index ac98c4bc74a1..e1fc45dbf8c3 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -145,7 +145,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-compute/21.1.1`; + const packageDetails = `azsdk-js-arm-compute/21.2.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 42acaa4a2538..74d971b6cbd5 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -3505,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.

Possible values are:

**Private**

**Groups**

**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. @@ -3518,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.

Possible values are:

**Subscriptions**

**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[]; @@ -3900,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.

Possible values are:

**Add**

**Remove**

**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[]; @@ -3963,6 +3963,20 @@ export interface SharedGalleryDiskImage { hostCaching?: SharedGalleryHostCaching; } +/** The metadata of community gallery. */ +export interface CommunityGalleryMetadata { + /** The publisher URI of this community gallery. */ + publisherUri?: string; + /** The publisher contact of this community gallery. */ + publisherContact?: string; + /** The end-user license agreement for this community gallery. */ + eula?: string; + /** A list of public names the gallery has. */ + publicNames?: string[]; + /** The link for the privacy statement of this community gallery from the gallery publisher. */ + privacyStatementUri?: string; +} + /** Base information about the community gallery resource in pir. */ export interface PirCommunityGalleryResource { /** @@ -3998,7 +4012,7 @@ export interface CommunityGalleryImageIdentifier { export interface CommunityGalleryImageList { /** A list of community gallery images. */ value: CommunityGalleryImage[]; - /** The uri to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. */ + /** The URI to fetch the next page of community gallery images. Call ListNext() with this to fetch the next page of community gallery images. */ nextLink?: string; } @@ -4006,7 +4020,7 @@ export interface CommunityGalleryImageList { export interface CommunityGalleryImageVersionList { /** A list of community gallery image versions. */ value: CommunityGalleryImageVersion[]; - /** The uri to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. */ + /** The URI to fetch the next page of community gallery image versions. Call ListNext() with this to fetch the next page of community gallery image versions. */ nextLink?: string; } @@ -5728,7 +5742,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.

Possible values are:

**Windows**

**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; @@ -5787,7 +5801,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.

Possible values are:

**Windows**

**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[]; @@ -6340,7 +6354,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.

Possible values are:

**Windows**

**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; @@ -6399,7 +6413,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.

Possible values are:

**Windows**

**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[]; @@ -6515,11 +6529,18 @@ export interface SharedGalleryDataDiskImage extends SharedGalleryDiskImage { } /** Specifies information about the Community Gallery that you want to create or update. */ -export interface CommunityGallery extends PirCommunityGalleryResource {} +export interface CommunityGallery extends PirCommunityGalleryResource { + /** The disclaimer for a community gallery resource. */ + disclaimer?: string; + /** The artifact tags of a community gallery resource. */ + artifactTags?: { [propertyName: string]: string }; + /** The metadata of community gallery. */ + communityMetadata?: CommunityGalleryMetadata; +} /** 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.

Possible values are:

**Windows**

**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; @@ -6539,10 +6560,14 @@ export interface CommunityGalleryImage extends PirCommunityGalleryResource { purchasePlan?: ImagePurchasePlan; /** The architecture of the image. Applicable to OS disks only. */ architecture?: Architecture; - /** Privacy statement uri for the current community gallery image. */ + /** Privacy statement URI for the current community gallery image. */ privacyStatementUri?: string; - /** End-user license agreement for the current community gallery image. */ + /** The end-user license agreement for the current community gallery image. */ eula?: string; + /** The disclaimer for a community gallery resource. */ + disclaimer?: string; + /** The artifact tags of a community gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Specifies information about the gallery image version that you want to create or update. */ @@ -6556,6 +6581,10 @@ export interface CommunityGalleryImageVersion excludeFromLatest?: boolean; /** Describes the storage profile of the image version. */ storageProfile?: SharedGalleryImageVersionStorageProfile; + /** The disclaimer for a community gallery resource. */ + disclaimer?: string; + /** The artifact tags of a community gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Describes a Virtual Machine Image. */ @@ -6586,11 +6615,17 @@ export interface VirtualMachineScaleSetReimageParameters } /** Specifies information about the Shared Gallery that you want to create or update. */ -export interface SharedGallery extends PirSharedGalleryResource {} +export interface SharedGallery extends PirSharedGalleryResource { + /** + * The artifact tags of a shared gallery resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly artifactTags?: { [propertyName: string]: string }; +} /** 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.

Possible values are:

**Windows**

**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; @@ -6614,6 +6649,8 @@ export interface SharedGalleryImage extends PirSharedGalleryResource { privacyStatementUri?: string; /** End-user license agreement for the current community gallery image. */ eula?: string; + /** The artifact tags of a shared gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Specifies information about the gallery image version that you want to create or update. */ @@ -6626,6 +6663,8 @@ export interface SharedGalleryImageVersion extends PirSharedGalleryResource { excludeFromLatest?: boolean; /** Describes the storage profile of the image version. */ storageProfile?: SharedGalleryImageVersionStorageProfile; + /** The artifact tags of a shared gallery resource. */ + artifactTags?: { [propertyName: string]: string }; } /** Defines headers for VirtualMachineScaleSets_reapply operation. */ diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index d95ac0bdbe91..652852e2365c 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -10374,6 +10374,50 @@ export const SharedGalleryDiskImage: coreClient.CompositeMapper = { } }; +export const CommunityGalleryMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommunityGalleryMetadata", + modelProperties: { + publisherUri: { + serializedName: "publisherUri", + type: { + name: "String" + } + }, + publisherContact: { + serializedName: "publisherContact", + type: { + name: "String" + } + }, + eula: { + serializedName: "eula", + type: { + name: "String" + } + }, + publicNames: { + serializedName: "publicNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privacyStatementUri: { + serializedName: "privacyStatementUri", + type: { + name: "String" + } + } + } + } +}; + export const PirCommunityGalleryResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16704,7 +16748,27 @@ export const CommunityGallery: coreClient.CompositeMapper = { name: "Composite", className: "CommunityGallery", modelProperties: { - ...PirCommunityGalleryResource.type.modelProperties + ...PirCommunityGalleryResource.type.modelProperties, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + communityMetadata: { + serializedName: "properties.communityMetadata", + type: { + name: "Composite", + className: "CommunityGalleryMetadata" + } + } } } }; @@ -16798,6 +16862,19 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { type: { name: "String" } + }, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -16833,6 +16910,19 @@ export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryImageVersionStorageProfile" } + }, + disclaimer: { + serializedName: "properties.disclaimer", + type: { + name: "String" + } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -16945,7 +17035,15 @@ export const SharedGallery: coreClient.CompositeMapper = { name: "Composite", className: "SharedGallery", modelProperties: { - ...PirSharedGalleryResource.type.modelProperties + ...PirSharedGalleryResource.type.modelProperties, + artifactTags: { + serializedName: "properties.artifactTags", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } } } }; @@ -17039,6 +17137,13 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { type: { name: "String" } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } @@ -17074,6 +17179,13 @@ export const SharedGalleryImageVersion: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryImageVersionStorageProfile" } + }, + artifactTags: { + serializedName: "properties.artifactTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } } } } diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index b991bdde783f..f8ae91df43a9 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -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: { diff --git a/sdk/compute/arm-compute/test/sampleTest.ts b/sdk/compute/arm-compute/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/compute/arm-compute/test/sampleTest.ts @@ -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 = { + 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!"); + }); +}); diff --git a/sdk/compute/arm-compute/tsconfig.json b/sdk/compute/arm-compute/tsconfig.json index b84abc8423ab..3e6ae96443f3 100644 --- a/sdk/compute/arm-compute/tsconfig.json +++ b/sdk/compute/arm-compute/tsconfig.json @@ -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"