From 97ec898204b651ad81285b0561829913f271c2fc Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 3 Jan 2022 18:29:14 +0000 Subject: [PATCH] CodeGen from PR 16959 in Azure/azure-rest-api-specs Merge bc25c96b7984c06678a4da14c7bb43572927b97b into 2b083f0d1b7ecb0717741551fa543a73e86d672c --- .../ContainerInstanceManagementClient.cs | 2 +- .../Models/DnsNameLabelReusePolicy.cs | 25 +++++++++++++++++++ .../src/Generated/Models/IpAddress.cs | 14 ++++++++++- ...kInfo_ContainerInstanceManagementClient.cs | 19 +++----------- 4 files changed, 43 insertions(+), 17 deletions(-) create mode 100644 sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/Models/DnsNameLabelReusePolicy.cs diff --git a/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/ContainerInstanceManagementClient.cs b/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/ContainerInstanceManagementClient.cs index d7f3ba59bb34..4d4070545659 100644 --- a/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/ContainerInstanceManagementClient.cs +++ b/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/ContainerInstanceManagementClient.cs @@ -339,7 +339,7 @@ private void Initialize() Location = new LocationOperations(this); Containers = new ContainersOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2021-09-01"; + ApiVersion = "2021-10-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/Models/DnsNameLabelReusePolicy.cs b/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/Models/DnsNameLabelReusePolicy.cs new file mode 100644 index 000000000000..992fef5fea7b --- /dev/null +++ b/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/Models/DnsNameLabelReusePolicy.cs @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.ContainerInstance.Models +{ + + /// + /// Defines values for DnsNameLabelReusePolicy. + /// + public static class DnsNameLabelReusePolicy + { + public const string Unsecure = "Unsecure"; + public const string TenantReuse = "TenantReuse"; + public const string SubscriptionReuse = "SubscriptionReuse"; + public const string ResourceGroupReuse = "ResourceGroupReuse"; + public const string Noreuse = "Noreuse"; + } +} diff --git a/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/Models/IpAddress.cs b/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/Models/IpAddress.cs index b02475c17135..433e60712271 100644 --- a/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/Models/IpAddress.cs +++ b/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/Models/IpAddress.cs @@ -39,13 +39,17 @@ public IpAddress() /// 'Private' /// The IP exposed to the public internet. /// The Dns name label for the IP. + /// The value representing the + /// security enum. Possible values include: 'Unsecure', 'TenantReuse', + /// 'SubscriptionReuse', 'ResourceGroupReuse', 'Noreuse' /// The FQDN for the IP. - public IpAddress(IList ports, string type, string ip = default(string), string dnsNameLabel = default(string), string fqdn = default(string)) + public IpAddress(IList ports, string type, string ip = default(string), string dnsNameLabel = default(string), string dnsNameLabelReusePolicy = default(string), string fqdn = default(string)) { Ports = ports; Type = type; Ip = ip; DnsNameLabel = dnsNameLabel; + DnsNameLabelReusePolicy = dnsNameLabelReusePolicy; Fqdn = fqdn; CustomInit(); } @@ -80,6 +84,14 @@ public IpAddress() [JsonProperty(PropertyName = "dnsNameLabel")] public string DnsNameLabel { get; set; } + /// + /// Gets or sets the value representing the security enum. Possible + /// values include: 'Unsecure', 'TenantReuse', 'SubscriptionReuse', + /// 'ResourceGroupReuse', 'Noreuse' + /// + [JsonProperty(PropertyName = "dnsNameLabelReusePolicy")] + public string DnsNameLabelReusePolicy { get; set; } + /// /// Gets the FQDN for the IP. /// diff --git a/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/SdkInfo_ContainerInstanceManagementClient.cs b/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/SdkInfo_ContainerInstanceManagementClient.cs index fe05192830da..654064492b1d 100644 --- a/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/SdkInfo_ContainerInstanceManagementClient.cs +++ b/sdk/containerinstance/Microsoft.Azure.Management.ContainerInstance/src/Generated/SdkInfo_ContainerInstanceManagementClient.cs @@ -19,23 +19,12 @@ public static IEnumerable> ApiInfo_ContainerInstan { return new Tuple[] { - new Tuple("ContainerInstance", "ContainerGroups", "2021-09-01"), - new Tuple("ContainerInstance", "Containers", "2021-09-01"), - new Tuple("ContainerInstance", "Location", "2021-09-01"), - new Tuple("ContainerInstance", "Operations", "2021-09-01"), + new Tuple("ContainerInstance", "ContainerGroups", "2021-10-01"), + new Tuple("ContainerInstance", "Containers", "2021-10-01"), + new Tuple("ContainerInstance", "Location", "2021-10-01"), + new Tuple("ContainerInstance", "Operations", "2021-10-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.4.1"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerinstance/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\josephporter\\source\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "314f28163917b9cfc527f7776b5e4a1dea69d295"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -