diff --git a/sdk/containerinstance/arm-containerinstance/CHANGELOG.md b/sdk/containerinstance/arm-containerinstance/CHANGELOG.md index 2febc7ec52fb..bfa1dffd705b 100644 --- a/sdk/containerinstance/arm-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/arm-containerinstance/CHANGELOG.md @@ -1,15 +1,14 @@ # Release History - -## 8.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 8.1.0 (2022-03-03) + +**Features** + + - Added Type Alias AutoGeneratedDomainNameLabelScope + - Interface IpAddress has a new optional parameter dnsNameLabelReusePolicy + - Added Enum KnownAutoGeneratedDomainNameLabelScope + + ## 8.0.0 (2022-01-04) The package of @azure/arm-containerinstance is using our next generation design principles since version 8.0.0, which contains breaking changes. diff --git a/sdk/containerinstance/arm-containerinstance/_meta.json b/sdk/containerinstance/arm-containerinstance/_meta.json index 236678411833..b081db0a3987 100644 --- a/sdk/containerinstance/arm-containerinstance/_meta.json +++ b/sdk/containerinstance/arm-containerinstance/_meta.json @@ -1,7 +1,7 @@ { - "commit": "2b083f0d1b7ecb0717741551fa543a73e86d672c", + "commit": "c0e640ae6625e04ec3afe008c20e63a33ba59c0a", "readme": "specification/containerinstance/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.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/containerinstance/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1", + "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/containerinstance/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211217.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/containerinstance/arm-containerinstance/api-extractor.json b/sdk/containerinstance/arm-containerinstance/api-extractor.json index f5001bd2879e..528b52cec802 100644 --- a/sdk/containerinstance/arm-containerinstance/api-extractor.json +++ b/sdk/containerinstance/arm-containerinstance/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-containerinstance.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/containerinstance/arm-containerinstance/package.json b/sdk/containerinstance/arm-containerinstance/package.json index 05971f666553..bbcebeb5502b 100644 --- a/sdk/containerinstance/arm-containerinstance/package.json +++ b/sdk/containerinstance/arm-containerinstance/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ContainerInstanceManagementClient.", - "version": "8.0.1", + "version": "1.0.0-beta.1", "engines": { "node": ">=12.0.0" }, @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/containerinstance/arm-containerinstance/review/arm-containerinstance.api.md b/sdk/containerinstance/arm-containerinstance/review/arm-containerinstance.api.md index 63551e0e4451..9fc824457725 100644 --- a/sdk/containerinstance/arm-containerinstance/review/arm-containerinstance.api.md +++ b/sdk/containerinstance/arm-containerinstance/review/arm-containerinstance.api.md @@ -10,6 +10,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { PollerLike } from '@azure/core-lro'; import { PollOperationState } from '@azure/core-lro'; +// @public +export type AutoGeneratedDomainNameLabelScope = string; + // @public export interface AzureFileVolume { readOnly?: boolean; @@ -470,12 +473,27 @@ export interface InitContainerPropertiesDefinitionInstanceView { // @public export interface IpAddress { dnsNameLabel?: string; + dnsNameLabelReusePolicy?: AutoGeneratedDomainNameLabelScope; readonly fqdn?: string; ip?: string; ports: Port[]; type: ContainerGroupIpAddressType; } +// @public +export enum KnownAutoGeneratedDomainNameLabelScope { + // (undocumented) + Noreuse = "Noreuse", + // (undocumented) + ResourceGroupReuse = "ResourceGroupReuse", + // (undocumented) + SubscriptionReuse = "SubscriptionReuse", + // (undocumented) + TenantReuse = "TenantReuse", + // (undocumented) + Unsecure = "Unsecure" +} + // @public export enum KnownContainerGroupIpAddressType { // (undocumented) diff --git a/sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.ts b/sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.ts index 4cdcdb7401dd..9da60d839810 100644 --- a/sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.ts +++ b/sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.ts @@ -55,7 +55,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient credential: credentials }; - const packageDetails = `azsdk-js-arm-containerinstance/8.0.0`; + const packageDetails = `azsdk-js-arm-containerinstance/8.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -78,7 +78,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-09-01"; + this.apiVersion = options.apiVersion || "2021-10-01"; this.containerGroups = new ContainerGroupsImpl(this); this.operations = new OperationsImpl(this); this.location = new LocationImpl(this); diff --git a/sdk/containerinstance/arm-containerinstance/src/models/index.ts b/sdk/containerinstance/arm-containerinstance/src/models/index.ts index 9e55c7916955..f3a40b9a58b3 100644 --- a/sdk/containerinstance/arm-containerinstance/src/models/index.ts +++ b/sdk/containerinstance/arm-containerinstance/src/models/index.ts @@ -295,6 +295,8 @@ export interface IpAddress { ip?: string; /** The Dns name label for the IP. */ dnsNameLabel?: string; + /** The value representing the security enum. */ + dnsNameLabelReusePolicy?: AutoGeneratedDomainNameLabelScope; /** * The FQDN for the IP. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -834,6 +836,28 @@ export enum KnownContainerGroupIpAddressType { */ export type ContainerGroupIpAddressType = string; +/** Known values of {@link AutoGeneratedDomainNameLabelScope} that the service accepts. */ +export enum KnownAutoGeneratedDomainNameLabelScope { + Unsecure = "Unsecure", + TenantReuse = "TenantReuse", + SubscriptionReuse = "SubscriptionReuse", + ResourceGroupReuse = "ResourceGroupReuse", + Noreuse = "Noreuse" +} + +/** + * Defines values for AutoGeneratedDomainNameLabelScope. \ + * {@link KnownAutoGeneratedDomainNameLabelScope} can be used interchangeably with AutoGeneratedDomainNameLabelScope, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unsecure** \ + * **TenantReuse** \ + * **SubscriptionReuse** \ + * **ResourceGroupReuse** \ + * **Noreuse** + */ +export type AutoGeneratedDomainNameLabelScope = string; + /** Known values of {@link OperatingSystemTypes} that the service accepts. */ export enum KnownOperatingSystemTypes { Windows = "Windows", diff --git a/sdk/containerinstance/arm-containerinstance/src/models/mappers.ts b/sdk/containerinstance/arm-containerinstance/src/models/mappers.ts index 938b02d8d4c0..65c88020aa11 100644 --- a/sdk/containerinstance/arm-containerinstance/src/models/mappers.ts +++ b/sdk/containerinstance/arm-containerinstance/src/models/mappers.ts @@ -738,6 +738,12 @@ export const IpAddress: coreClient.CompositeMapper = { name: "String" } }, + dnsNameLabelReusePolicy: { + serializedName: "dnsNameLabelReusePolicy", + type: { + name: "String" + } + }, fqdn: { serializedName: "fqdn", readOnly: true, diff --git a/sdk/containerinstance/arm-containerinstance/src/models/parameters.ts b/sdk/containerinstance/arm-containerinstance/src/models/parameters.ts index d9285c64018c..d97122d0741f 100644 --- a/sdk/containerinstance/arm-containerinstance/src/models/parameters.ts +++ b/sdk/containerinstance/arm-containerinstance/src/models/parameters.ts @@ -55,7 +55,7 @@ export const subscriptionId: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-09-01", + defaultValue: "2021-10-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/containerinstance/arm-containerinstance/test/sampleTest.ts b/sdk/containerinstance/arm-containerinstance/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/containerinstance/arm-containerinstance/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * 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 { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + 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" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/containerinstance/arm-containerinstance/tsconfig.json b/sdk/containerinstance/arm-containerinstance/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/containerinstance/arm-containerinstance/tsconfig.json +++ b/sdk/containerinstance/arm-containerinstance/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/containerinstance/ci.mgmt.yml b/sdk/containerinstance/ci.mgmt.yml index e7bba4a871c1..a37e288a5ccf 100644 --- a/sdk/containerinstance/ci.mgmt.yml +++ b/sdk/containerinstance/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: @@ -10,6 +10,7 @@ trigger: include: - sdk/containerinstance/ci.mgmt.yml - sdk/containerinstance/arm-containerinstance/ + - sdk/containerinstance/arm-containerinstance pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/containerinstance/ci.mgmt.yml - sdk/containerinstance/arm-containerinstance/ - + - sdk/containerinstance/arm-containerinstance extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: containerinstance Artifacts: - name: azure-arm-containerinstance - safeName: azurearmcontainerinstance \ No newline at end of file + safeName: azurearmcontainerinstance