Skip to content

Commit 15b5993

Browse files
author
SDKAuto
committed
CodeGen from PR 18201 in Azure/azure-rest-api-specs
Merge 78c740349acb28572fe43faa51c716e38d19aff4 into 96da969aa75e2beb27c3dbc2d69a76900856cc52
1 parent 1007ebb commit 15b5993

File tree

12 files changed

+150
-32
lines changed

12 files changed

+150
-32
lines changed

sdk/containerinstance/arm-containerinstance/CHANGELOG.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# Release History
2-
3-
## 8.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
2+
3+
## 8.1.0 (2022-03-14)
4+
5+
**Features**
6+
7+
- Added Type Alias DnsNameLabelReusePolicy
8+
- Interface IpAddress has a new optional parameter dnsNameLabelReusePolicy
9+
- Added Enum KnownDnsNameLabelReusePolicy
10+
11+
1312
## 8.0.0 (2022-01-04)
1413

1514
The package of @azure/arm-containerinstance is using our next generation design principles since version 8.0.0, which contains breaking changes.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"commit": "2b083f0d1b7ecb0717741551fa543a73e86d672c",
2+
"commit": "86fc7ac77ad48e14f33b34888d3f65967d7c68d4",
33
"readme": "specification/containerinstance/resource-manager/readme.md",
4-
"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/[email protected].20211217.1",
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/containerinstance/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]"
6+
"release_tool": "@azure-tools/[email protected]",
7+
"use": "@autorest/[email protected]"
78
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-containerinstance.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/containerinstance/arm-containerinstance/package.json

Lines changed: 2 additions & 2 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 ContainerInstanceManagementClient.",
6-
"version": "8.0.1",
6+
"version": "8.1.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -99,4 +99,4 @@
9999
},
100100
"sideEffects": false,
101101
"autoPublish": true
102-
}
102+
}

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,9 @@ export interface DnsConfiguration {
393393
searchDomains?: string;
394394
}
395395

396+
// @public
397+
export type DnsNameLabelReusePolicy = string;
398+
396399
// @public
397400
export interface EncryptionProperties {
398401
keyName: string;
@@ -470,6 +473,7 @@ export interface InitContainerPropertiesDefinitionInstanceView {
470473
// @public
471474
export interface IpAddress {
472475
dnsNameLabel?: string;
476+
dnsNameLabelReusePolicy?: DnsNameLabelReusePolicy;
473477
readonly fqdn?: string;
474478
ip?: string;
475479
ports: Port[];
@@ -526,6 +530,20 @@ export enum KnownContainerNetworkProtocol {
526530
UDP = "UDP"
527531
}
528532

533+
// @public
534+
export enum KnownDnsNameLabelReusePolicy {
535+
// (undocumented)
536+
Noreuse = "Noreuse",
537+
// (undocumented)
538+
ResourceGroupReuse = "ResourceGroupReuse",
539+
// (undocumented)
540+
SubscriptionReuse = "SubscriptionReuse",
541+
// (undocumented)
542+
TenantReuse = "TenantReuse",
543+
// (undocumented)
544+
Unsecure = "Unsecure"
545+
}
546+
529547
// @public
530548
export enum KnownGpuSku {
531549
// (undocumented)

sdk/containerinstance/arm-containerinstance/src/containerInstanceManagementClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
5555
credential: credentials
5656
};
5757

58-
const packageDetails = `azsdk-js-arm-containerinstance/8.0.0`;
58+
const packageDetails = `azsdk-js-arm-containerinstance/8.1.0`;
5959
const userAgentPrefix =
6060
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
6161
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -78,7 +78,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
7878

7979
// Assigning values to Constant parameters
8080
this.$host = options.$host || "https://management.azure.com";
81-
this.apiVersion = options.apiVersion || "2021-09-01";
81+
this.apiVersion = options.apiVersion || "2021-10-01";
8282
this.containerGroups = new ContainerGroupsImpl(this);
8383
this.operations = new OperationsImpl(this);
8484
this.location = new LocationImpl(this);

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ export interface IpAddress {
295295
ip?: string;
296296
/** The Dns name label for the IP. */
297297
dnsNameLabel?: string;
298+
/** The value representing the security enum. */
299+
dnsNameLabelReusePolicy?: DnsNameLabelReusePolicy;
298300
/**
299301
* The FQDN for the IP.
300302
* NOTE: This property will not be serialized. It can only be populated by the server.
@@ -834,6 +836,28 @@ export enum KnownContainerGroupIpAddressType {
834836
*/
835837
export type ContainerGroupIpAddressType = string;
836838

839+
/** Known values of {@link DnsNameLabelReusePolicy} that the service accepts. */
840+
export enum KnownDnsNameLabelReusePolicy {
841+
Unsecure = "Unsecure",
842+
TenantReuse = "TenantReuse",
843+
SubscriptionReuse = "SubscriptionReuse",
844+
ResourceGroupReuse = "ResourceGroupReuse",
845+
Noreuse = "Noreuse"
846+
}
847+
848+
/**
849+
* Defines values for DnsNameLabelReusePolicy. \
850+
* {@link KnownDnsNameLabelReusePolicy} can be used interchangeably with DnsNameLabelReusePolicy,
851+
* this enum contains the known values that the service supports.
852+
* ### Known values supported by the service
853+
* **Unsecure** \
854+
* **TenantReuse** \
855+
* **SubscriptionReuse** \
856+
* **ResourceGroupReuse** \
857+
* **Noreuse**
858+
*/
859+
export type DnsNameLabelReusePolicy = string;
860+
837861
/** Known values of {@link OperatingSystemTypes} that the service accepts. */
838862
export enum KnownOperatingSystemTypes {
839863
Windows = "Windows",

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,12 @@ export const IpAddress: coreClient.CompositeMapper = {
738738
name: "String"
739739
}
740740
},
741+
dnsNameLabelReusePolicy: {
742+
serializedName: "dnsNameLabelReusePolicy",
743+
type: {
744+
name: "String"
745+
}
746+
},
741747
fqdn: {
742748
serializedName: "fqdn",
743749
readOnly: true,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const subscriptionId: OperationURLParameter = {
5555
export const apiVersion: OperationQueryParameter = {
5656
parameterPath: "apiVersion",
5757
mapper: {
58-
defaultValue: "2021-09-01",
58+
defaultValue: "2021-10-01",
5959
isConstant: true,
6060
serializedName: "api-version",
6161
type: {
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+
});

0 commit comments

Comments
 (0)