diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServiceClient.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServiceClient.cs
index 8ec676a4cb842..0b8baf3943cee 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServiceClient.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServiceClient.cs
@@ -360,7 +360,7 @@ private void Initialize()
PrivateLinkResources = new PrivateLinkResourcesOperations(this);
ResolvePrivateLinkServiceId = new ResolvePrivateLinkServiceIdOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2021-05-01";
+ ApiVersion = "2021-08-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPool.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPool.cs
index 58fbd8379397a..5e9bd1cd7dd1e 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPool.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPool.cs
@@ -64,6 +64,8 @@ public AgentPool()
/// auto-scaling
/// Whether to enable
/// auto-scaler
+ /// The scale down mode to use when scaling
+ /// the Agent Pool.
/// Possible values include:
/// 'VirtualMachineScaleSets', 'AvailabilitySet'
/// Possible values include: 'System',
@@ -112,7 +114,10 @@ public AgentPool()
/// GPUInstanceProfile to be used to
/// specify GPU MIG instance profile for supported GPU VM SKU. Possible
/// values include: 'MIG1g', 'MIG2g', 'MIG3g', 'MIG4g', 'MIG7g'
- public AgentPool(string id = default(string), string name = default(string), string type = default(string), int? count = default(int?), string vmSize = default(string), int? osDiskSizeGB = default(int?), string osDiskType = default(string), string kubeletDiskType = default(string), string vnetSubnetID = default(string), string podSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), string osSKU = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string agentPoolType = default(string), string mode = default(string), string orchestratorVersion = default(string), string nodeImageVersion = default(string), AgentPoolUpgradeSettings upgradeSettings = default(AgentPoolUpgradeSettings), string provisioningState = default(string), PowerState powerState = default(PowerState), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string nodePublicIPPrefixID = default(string), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), double? spotMaxPrice = default(double?), IDictionary tags = default(IDictionary), IDictionary nodeLabels = default(IDictionary), IList nodeTaints = default(IList), string proximityPlacementGroupID = default(string), KubeletConfig kubeletConfig = default(KubeletConfig), LinuxOSConfig linuxOSConfig = default(LinuxOSConfig), bool? enableEncryptionAtHost = default(bool?), bool? enableUltraSSD = default(bool?), bool? enableFIPS = default(bool?), string gpuInstanceProfile = default(string))
+ /// CreationData to be used to specify the
+ /// source Snapshot ID if the node pool will be created/upgraded using
+ /// a snapshot.
+ public AgentPool(string id = default(string), string name = default(string), string type = default(string), int? count = default(int?), string vmSize = default(string), int? osDiskSizeGB = default(int?), string osDiskType = default(string), string kubeletDiskType = default(string), string vnetSubnetID = default(string), string podSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), string osSKU = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string scaleDownMode = default(string), string agentPoolType = default(string), string mode = default(string), string orchestratorVersion = default(string), string nodeImageVersion = default(string), AgentPoolUpgradeSettings upgradeSettings = default(AgentPoolUpgradeSettings), string provisioningState = default(string), PowerState powerState = default(PowerState), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string nodePublicIPPrefixID = default(string), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), double? spotMaxPrice = default(double?), IDictionary tags = default(IDictionary), IDictionary nodeLabels = default(IDictionary), IList nodeTaints = default(IList), string proximityPlacementGroupID = default(string), KubeletConfig kubeletConfig = default(KubeletConfig), LinuxOSConfig linuxOSConfig = default(LinuxOSConfig), bool? enableEncryptionAtHost = default(bool?), bool? enableUltraSSD = default(bool?), bool? enableFIPS = default(bool?), string gpuInstanceProfile = default(string), CreationData creationData = default(CreationData))
: base(id, name, type)
{
Count = count;
@@ -128,6 +133,7 @@ public AgentPool()
MaxCount = maxCount;
MinCount = minCount;
EnableAutoScaling = enableAutoScaling;
+ ScaleDownMode = scaleDownMode;
AgentPoolType = agentPoolType;
Mode = mode;
OrchestratorVersion = orchestratorVersion;
@@ -151,6 +157,7 @@ public AgentPool()
EnableUltraSSD = enableUltraSSD;
EnableFIPS = enableFIPS;
GpuInstanceProfile = gpuInstanceProfile;
+ CreationData = creationData;
CustomInit();
}
@@ -258,6 +265,18 @@ public AgentPool()
[JsonProperty(PropertyName = "properties.enableAutoScaling")]
public bool? EnableAutoScaling { get; set; }
+ ///
+ /// Gets or sets the scale down mode to use when scaling the Agent
+ /// Pool.
+ ///
+ ///
+ /// This also effects the cluster autoscaler behavior. If not
+ /// specified, it defaults to Delete. Possible values include:
+ /// 'Delete', 'Deallocate'
+ ///
+ [JsonProperty(PropertyName = "properties.scaleDownMode")]
+ public string ScaleDownMode { get; set; }
+
///
/// Gets or sets possible values include: 'VirtualMachineScaleSets',
/// 'AvailabilitySet'
@@ -454,6 +473,13 @@ public AgentPool()
[JsonProperty(PropertyName = "properties.gpuInstanceProfile")]
public string GpuInstanceProfile { get; set; }
+ ///
+ /// Gets or sets creationData to be used to specify the source Snapshot
+ /// ID if the node pool will be created/upgraded using a snapshot.
+ ///
+ [JsonProperty(PropertyName = "properties.creationData")]
+ public CreationData CreationData { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs
index d15f24633a1bc..74371e2d92dd4 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ContainerServiceNetworkProfile.cs
@@ -57,7 +57,9 @@ public ContainerServiceNetworkProfile()
/// cluster.
/// Profile of the cluster load
/// balancer.
- public ContainerServiceNetworkProfile(string networkPlugin = default(string), string networkPolicy = default(string), string networkMode = default(string), string podCidr = default(string), string serviceCidr = default(string), string dnsServiceIP = default(string), string dockerBridgeCidr = default(string), string outboundType = default(string), string loadBalancerSku = default(string), ManagedClusterLoadBalancerProfile loadBalancerProfile = default(ManagedClusterLoadBalancerProfile))
+ /// Profile of the cluster NAT
+ /// gateway.
+ public ContainerServiceNetworkProfile(string networkPlugin = default(string), string networkPolicy = default(string), string networkMode = default(string), string podCidr = default(string), string serviceCidr = default(string), string dnsServiceIP = default(string), string dockerBridgeCidr = default(string), string outboundType = default(string), string loadBalancerSku = default(string), ManagedClusterLoadBalancerProfile loadBalancerProfile = default(ManagedClusterLoadBalancerProfile), ManagedClusterNATGatewayProfile natGatewayProfile = default(ManagedClusterNATGatewayProfile))
{
NetworkPlugin = networkPlugin;
NetworkPolicy = networkPolicy;
@@ -69,6 +71,7 @@ public ContainerServiceNetworkProfile()
OutboundType = outboundType;
LoadBalancerSku = loadBalancerSku;
LoadBalancerProfile = loadBalancerProfile;
+ NatGatewayProfile = natGatewayProfile;
CustomInit();
}
@@ -138,7 +141,8 @@ public ContainerServiceNetworkProfile()
/// This can only be set at cluster creation time and cannot be changed
/// later. For more information see [egress outbound
/// type](https://docs.microsoft.com/azure/aks/egress-outboundtype).
- /// Possible values include: 'loadBalancer', 'userDefinedRouting'
+ /// Possible values include: 'loadBalancer', 'userDefinedRouting',
+ /// 'managedNATGateway', 'userAssignedNATGateway'
///
[JsonProperty(PropertyName = "outboundType")]
public string OutboundType { get; set; }
@@ -161,6 +165,12 @@ public ContainerServiceNetworkProfile()
[JsonProperty(PropertyName = "loadBalancerProfile")]
public ManagedClusterLoadBalancerProfile LoadBalancerProfile { get; set; }
+ ///
+ /// Gets or sets profile of the cluster NAT gateway.
+ ///
+ [JsonProperty(PropertyName = "natGatewayProfile")]
+ public ManagedClusterNATGatewayProfile NatGatewayProfile { get; set; }
+
///
/// Validate the object.
///
@@ -201,6 +211,10 @@ public virtual void Validate()
{
LoadBalancerProfile.Validate();
}
+ if (NatGatewayProfile != null)
+ {
+ NatGatewayProfile.Validate();
+ }
}
}
}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/CreationData.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/CreationData.cs
new file mode 100644
index 0000000000000..64cdf5b5fc750
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/CreationData.cs
@@ -0,0 +1,53 @@
+//
+// 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.ContainerService.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Data used when creating a target resource from a source resource.
+ ///
+ public partial class CreationData
+ {
+ ///
+ /// Initializes a new instance of the CreationData class.
+ ///
+ public CreationData()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CreationData class.
+ ///
+ /// This is the ARM ID of the source
+ /// object to be used to create the target object.
+ public CreationData(string sourceResourceId = default(string))
+ {
+ SourceResourceId = sourceResourceId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets this is the ARM ID of the source object to be used to
+ /// create the target object.
+ ///
+ [JsonProperty(PropertyName = "sourceResourceId")]
+ public string SourceResourceId { get; set; }
+
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedCluster.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedCluster.cs
index 17ae58b44a5cc..8dd5fbc0c52a8 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedCluster.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedCluster.cs
@@ -39,6 +39,11 @@ public ManagedCluster()
/// Resource name
/// Resource type
/// Resource tags
+ /// The managed cluster SKU.
+ /// The extended location of the Virtual
+ /// Machine.
+ /// The identity of the managed cluster, if
+ /// configured.
/// The current provisioning
/// state.
/// The Power State of the cluster.
@@ -95,14 +100,16 @@ public ManagedCluster()
/// disabled on the Managed Cluster.
/// Configurations for provisioning the
/// cluster with HTTP proxy servers.
- /// The identity of the managed cluster, if
- /// configured.
- /// The managed cluster SKU.
- /// The extended location of the Virtual
- /// Machine.
- public ManagedCluster(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), PowerState powerState = default(PowerState), int? maxAgentPools = default(int?), string kubernetesVersion = default(string), string dnsPrefix = default(string), string fqdnSubdomain = default(string), string fqdn = default(string), string privateFQDN = default(string), string azurePortalFQDN = default(string), IList agentPoolProfiles = default(IList), ContainerServiceLinuxProfile linuxProfile = default(ContainerServiceLinuxProfile), ManagedClusterWindowsProfile windowsProfile = default(ManagedClusterWindowsProfile), ManagedClusterServicePrincipalProfile servicePrincipalProfile = default(ManagedClusterServicePrincipalProfile), IDictionary addonProfiles = default(IDictionary), ManagedClusterPodIdentityProfile podIdentityProfile = default(ManagedClusterPodIdentityProfile), string nodeResourceGroup = default(string), bool? enableRBAC = default(bool?), bool? enablePodSecurityPolicy = default(bool?), ContainerServiceNetworkProfile networkProfile = default(ContainerServiceNetworkProfile), ManagedClusterAADProfile aadProfile = default(ManagedClusterAADProfile), ManagedClusterAutoUpgradeProfile autoUpgradeProfile = default(ManagedClusterAutoUpgradeProfile), ManagedClusterPropertiesAutoScalerProfile autoScalerProfile = default(ManagedClusterPropertiesAutoScalerProfile), ManagedClusterAPIServerAccessProfile apiServerAccessProfile = default(ManagedClusterAPIServerAccessProfile), string diskEncryptionSetID = default(string), IDictionary identityProfile = default(IDictionary), IList privateLinkResources = default(IList), bool? disableLocalAccounts = default(bool?), ManagedClusterHTTPProxyConfig httpProxyConfig = default(ManagedClusterHTTPProxyConfig), ManagedClusterIdentity identity = default(ManagedClusterIdentity), ManagedClusterSKU sku = default(ManagedClusterSKU), ExtendedLocation extendedLocation = default(ExtendedLocation))
+ /// Security profile for the managed
+ /// cluster.
+ /// Whether the cluster can be
+ /// accessed through public network or not
+ public ManagedCluster(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), ManagedClusterSKU sku = default(ManagedClusterSKU), ExtendedLocation extendedLocation = default(ExtendedLocation), ManagedClusterIdentity identity = default(ManagedClusterIdentity), string provisioningState = default(string), PowerState powerState = default(PowerState), int? maxAgentPools = default(int?), string kubernetesVersion = default(string), string dnsPrefix = default(string), string fqdnSubdomain = default(string), string fqdn = default(string), string privateFQDN = default(string), string azurePortalFQDN = default(string), IList agentPoolProfiles = default(IList), ContainerServiceLinuxProfile linuxProfile = default(ContainerServiceLinuxProfile), ManagedClusterWindowsProfile windowsProfile = default(ManagedClusterWindowsProfile), ManagedClusterServicePrincipalProfile servicePrincipalProfile = default(ManagedClusterServicePrincipalProfile), IDictionary addonProfiles = default(IDictionary), ManagedClusterPodIdentityProfile podIdentityProfile = default(ManagedClusterPodIdentityProfile), string nodeResourceGroup = default(string), bool? enableRBAC = default(bool?), bool? enablePodSecurityPolicy = default(bool?), ContainerServiceNetworkProfile networkProfile = default(ContainerServiceNetworkProfile), ManagedClusterAADProfile aadProfile = default(ManagedClusterAADProfile), ManagedClusterAutoUpgradeProfile autoUpgradeProfile = default(ManagedClusterAutoUpgradeProfile), ManagedClusterPropertiesAutoScalerProfile autoScalerProfile = default(ManagedClusterPropertiesAutoScalerProfile), ManagedClusterAPIServerAccessProfile apiServerAccessProfile = default(ManagedClusterAPIServerAccessProfile), string diskEncryptionSetID = default(string), IDictionary identityProfile = default(IDictionary), IList privateLinkResources = default(IList), bool? disableLocalAccounts = default(bool?), ManagedClusterHTTPProxyConfig httpProxyConfig = default(ManagedClusterHTTPProxyConfig), ManagedClusterSecurityProfile securityProfile = default(ManagedClusterSecurityProfile), string publicNetworkAccess = default(string))
: base(location, id, name, type, tags)
{
+ Sku = sku;
+ ExtendedLocation = extendedLocation;
+ Identity = identity;
ProvisioningState = provisioningState;
PowerState = powerState;
MaxAgentPools = maxAgentPools;
@@ -131,9 +138,8 @@ public ManagedCluster()
PrivateLinkResources = privateLinkResources;
DisableLocalAccounts = disableLocalAccounts;
HttpProxyConfig = httpProxyConfig;
- Identity = identity;
- Sku = sku;
- ExtendedLocation = extendedLocation;
+ SecurityProfile = securityProfile;
+ PublicNetworkAccess = publicNetworkAccess;
CustomInit();
}
@@ -142,6 +148,24 @@ public ManagedCluster()
///
partial void CustomInit();
+ ///
+ /// Gets or sets the managed cluster SKU.
+ ///
+ [JsonProperty(PropertyName = "sku")]
+ public ManagedClusterSKU Sku { get; set; }
+
+ ///
+ /// Gets or sets the extended location of the Virtual Machine.
+ ///
+ [JsonProperty(PropertyName = "extendedLocation")]
+ public ExtendedLocation ExtendedLocation { get; set; }
+
+ ///
+ /// Gets or sets the identity of the managed cluster, if configured.
+ ///
+ [JsonProperty(PropertyName = "identity")]
+ public ManagedClusterIdentity Identity { get; set; }
+
///
/// Gets the current provisioning state.
///
@@ -331,7 +355,7 @@ public ManagedCluster()
/// Gets or sets identities associated with the cluster.
///
[JsonProperty(PropertyName = "properties.identityProfile")]
- public IDictionary IdentityProfile { get; set; }
+ public IDictionary IdentityProfile { get; set; }
///
/// Gets or sets private link resources associated with the cluster.
@@ -360,22 +384,21 @@ public ManagedCluster()
public ManagedClusterHTTPProxyConfig HttpProxyConfig { get; set; }
///
- /// Gets or sets the identity of the managed cluster, if configured.
- ///
- [JsonProperty(PropertyName = "identity")]
- public ManagedClusterIdentity Identity { get; set; }
-
- ///
- /// Gets or sets the managed cluster SKU.
+ /// Gets or sets security profile for the managed cluster.
///
- [JsonProperty(PropertyName = "sku")]
- public ManagedClusterSKU Sku { get; set; }
+ [JsonProperty(PropertyName = "properties.securityProfile")]
+ public ManagedClusterSecurityProfile SecurityProfile { get; set; }
///
- /// Gets or sets the extended location of the Virtual Machine.
+ /// Gets or sets whether the cluster can be accessed through public
+ /// network or not
///
- [JsonProperty(PropertyName = "extendedLocation")]
- public ExtendedLocation ExtendedLocation { get; set; }
+ ///
+ /// Default value is 'Enabled' (case insensitive). Could be set to
+ /// 'Disabled' to enable private cluster
+ ///
+ [JsonProperty(PropertyName = "properties.publicNetworkAccess")]
+ public string PublicNetworkAccess { get; set; }
///
/// Validate the object.
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAPIServerAccessProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAPIServerAccessProfile.cs
index 25d25ef2cdfe8..3051fdc5656aa 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAPIServerAccessProfile.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAPIServerAccessProfile.cs
@@ -41,12 +41,15 @@ public ManagedClusterAPIServerAccessProfile()
/// cluster.
/// Whether to create
/// additional public FQDN for private cluster or not.
- public ManagedClusterAPIServerAccessProfile(IList authorizedIPRanges = default(IList), bool? enablePrivateCluster = default(bool?), string privateDNSZone = default(string), bool? enablePrivateClusterPublicFQDN = default(bool?))
+ /// Whether to disable run command for
+ /// the cluster or not.
+ public ManagedClusterAPIServerAccessProfile(IList authorizedIPRanges = default(IList), bool? enablePrivateCluster = default(bool?), string privateDNSZone = default(string), bool? enablePrivateClusterPublicFQDN = default(bool?), bool? disableRunCommand = default(bool?))
{
AuthorizedIPRanges = authorizedIPRanges;
EnablePrivateCluster = enablePrivateCluster;
PrivateDNSZone = privateDNSZone;
EnablePrivateClusterPublicFQDN = enablePrivateClusterPublicFQDN;
+ DisableRunCommand = disableRunCommand;
CustomInit();
}
@@ -98,5 +101,11 @@ public ManagedClusterAPIServerAccessProfile()
[JsonProperty(PropertyName = "enablePrivateClusterPublicFQDN")]
public bool? EnablePrivateClusterPublicFQDN { get; set; }
+ ///
+ /// Gets or sets whether to disable run command for the cluster or not.
+ ///
+ [JsonProperty(PropertyName = "disableRunCommand")]
+ public bool? DisableRunCommand { get; set; }
+
}
}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs
index 2117fcb3f9471..3679117235310 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs
@@ -61,6 +61,8 @@ public ManagedClusterAgentPoolProfile()
/// auto-scaling
/// Whether to enable
/// auto-scaler
+ /// The scale down mode to use when scaling
+ /// the Agent Pool.
/// Possible values include:
/// 'VirtualMachineScaleSets', 'AvailabilitySet'
/// Possible values include: 'System',
@@ -109,8 +111,11 @@ public ManagedClusterAgentPoolProfile()
/// GPUInstanceProfile to be used to
/// specify GPU MIG instance profile for supported GPU VM SKU. Possible
/// values include: 'MIG1g', 'MIG2g', 'MIG3g', 'MIG4g', 'MIG7g'
- public ManagedClusterAgentPoolProfile(string name, int? count = default(int?), string vmSize = default(string), int? osDiskSizeGB = default(int?), string osDiskType = default(string), string kubeletDiskType = default(string), string vnetSubnetID = default(string), string podSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), string osSKU = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string mode = default(string), string orchestratorVersion = default(string), string nodeImageVersion = default(string), AgentPoolUpgradeSettings upgradeSettings = default(AgentPoolUpgradeSettings), string provisioningState = default(string), PowerState powerState = default(PowerState), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string nodePublicIPPrefixID = default(string), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), double? spotMaxPrice = default(double?), IDictionary tags = default(IDictionary), IDictionary nodeLabels = default(IDictionary), IList nodeTaints = default(IList), string proximityPlacementGroupID = default(string), KubeletConfig kubeletConfig = default(KubeletConfig), LinuxOSConfig linuxOSConfig = default(LinuxOSConfig), bool? enableEncryptionAtHost = default(bool?), bool? enableUltraSSD = default(bool?), bool? enableFIPS = default(bool?), string gpuInstanceProfile = default(string))
- : base(count, vmSize, osDiskSizeGB, osDiskType, kubeletDiskType, vnetSubnetID, podSubnetID, maxPods, osType, osSKU, maxCount, minCount, enableAutoScaling, type, mode, orchestratorVersion, nodeImageVersion, upgradeSettings, provisioningState, powerState, availabilityZones, enableNodePublicIP, nodePublicIPPrefixID, scaleSetPriority, scaleSetEvictionPolicy, spotMaxPrice, tags, nodeLabels, nodeTaints, proximityPlacementGroupID, kubeletConfig, linuxOSConfig, enableEncryptionAtHost, enableUltraSSD, enableFIPS, gpuInstanceProfile)
+ /// CreationData to be used to specify the
+ /// source Snapshot ID if the node pool will be created/upgraded using
+ /// a snapshot.
+ public ManagedClusterAgentPoolProfile(string name, int? count = default(int?), string vmSize = default(string), int? osDiskSizeGB = default(int?), string osDiskType = default(string), string kubeletDiskType = default(string), string vnetSubnetID = default(string), string podSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), string osSKU = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string scaleDownMode = default(string), string type = default(string), string mode = default(string), string orchestratorVersion = default(string), string nodeImageVersion = default(string), AgentPoolUpgradeSettings upgradeSettings = default(AgentPoolUpgradeSettings), string provisioningState = default(string), PowerState powerState = default(PowerState), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string nodePublicIPPrefixID = default(string), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), double? spotMaxPrice = default(double?), IDictionary tags = default(IDictionary), IDictionary nodeLabels = default(IDictionary), IList nodeTaints = default(IList), string proximityPlacementGroupID = default(string), KubeletConfig kubeletConfig = default(KubeletConfig), LinuxOSConfig linuxOSConfig = default(LinuxOSConfig), bool? enableEncryptionAtHost = default(bool?), bool? enableUltraSSD = default(bool?), bool? enableFIPS = default(bool?), string gpuInstanceProfile = default(string), CreationData creationData = default(CreationData))
+ : base(count, vmSize, osDiskSizeGB, osDiskType, kubeletDiskType, vnetSubnetID, podSubnetID, maxPods, osType, osSKU, maxCount, minCount, enableAutoScaling, scaleDownMode, type, mode, orchestratorVersion, nodeImageVersion, upgradeSettings, provisioningState, powerState, availabilityZones, enableNodePublicIP, nodePublicIPPrefixID, scaleSetPriority, scaleSetEvictionPolicy, spotMaxPrice, tags, nodeLabels, nodeTaints, proximityPlacementGroupID, kubeletConfig, linuxOSConfig, enableEncryptionAtHost, enableUltraSSD, enableFIPS, gpuInstanceProfile, creationData)
{
Name = name;
CustomInit();
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs
index d971cebc282f7..926dd10ac9099 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfileProperties.cs
@@ -58,6 +58,8 @@ public ManagedClusterAgentPoolProfileProperties()
/// auto-scaling
/// Whether to enable
/// auto-scaler
+ /// The scale down mode to use when scaling
+ /// the Agent Pool.
/// Possible values include:
/// 'VirtualMachineScaleSets', 'AvailabilitySet'
/// Possible values include: 'System',
@@ -106,7 +108,10 @@ public ManagedClusterAgentPoolProfileProperties()
/// GPUInstanceProfile to be used to
/// specify GPU MIG instance profile for supported GPU VM SKU. Possible
/// values include: 'MIG1g', 'MIG2g', 'MIG3g', 'MIG4g', 'MIG7g'
- public ManagedClusterAgentPoolProfileProperties(int? count = default(int?), string vmSize = default(string), int? osDiskSizeGB = default(int?), string osDiskType = default(string), string kubeletDiskType = default(string), string vnetSubnetID = default(string), string podSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), string osSKU = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string mode = default(string), string orchestratorVersion = default(string), string nodeImageVersion = default(string), AgentPoolUpgradeSettings upgradeSettings = default(AgentPoolUpgradeSettings), string provisioningState = default(string), PowerState powerState = default(PowerState), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string nodePublicIPPrefixID = default(string), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), double? spotMaxPrice = default(double?), IDictionary tags = default(IDictionary), IDictionary nodeLabels = default(IDictionary), IList nodeTaints = default(IList), string proximityPlacementGroupID = default(string), KubeletConfig kubeletConfig = default(KubeletConfig), LinuxOSConfig linuxOSConfig = default(LinuxOSConfig), bool? enableEncryptionAtHost = default(bool?), bool? enableUltraSSD = default(bool?), bool? enableFIPS = default(bool?), string gpuInstanceProfile = default(string))
+ /// CreationData to be used to specify the
+ /// source Snapshot ID if the node pool will be created/upgraded using
+ /// a snapshot.
+ public ManagedClusterAgentPoolProfileProperties(int? count = default(int?), string vmSize = default(string), int? osDiskSizeGB = default(int?), string osDiskType = default(string), string kubeletDiskType = default(string), string vnetSubnetID = default(string), string podSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), string osSKU = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string scaleDownMode = default(string), string type = default(string), string mode = default(string), string orchestratorVersion = default(string), string nodeImageVersion = default(string), AgentPoolUpgradeSettings upgradeSettings = default(AgentPoolUpgradeSettings), string provisioningState = default(string), PowerState powerState = default(PowerState), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string nodePublicIPPrefixID = default(string), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), double? spotMaxPrice = default(double?), IDictionary tags = default(IDictionary), IDictionary nodeLabels = default(IDictionary), IList nodeTaints = default(IList), string proximityPlacementGroupID = default(string), KubeletConfig kubeletConfig = default(KubeletConfig), LinuxOSConfig linuxOSConfig = default(LinuxOSConfig), bool? enableEncryptionAtHost = default(bool?), bool? enableUltraSSD = default(bool?), bool? enableFIPS = default(bool?), string gpuInstanceProfile = default(string), CreationData creationData = default(CreationData))
{
Count = count;
VmSize = vmSize;
@@ -121,6 +126,7 @@ public ManagedClusterAgentPoolProfileProperties()
MaxCount = maxCount;
MinCount = minCount;
EnableAutoScaling = enableAutoScaling;
+ ScaleDownMode = scaleDownMode;
Type = type;
Mode = mode;
OrchestratorVersion = orchestratorVersion;
@@ -144,6 +150,7 @@ public ManagedClusterAgentPoolProfileProperties()
EnableUltraSSD = enableUltraSSD;
EnableFIPS = enableFIPS;
GpuInstanceProfile = gpuInstanceProfile;
+ CreationData = creationData;
CustomInit();
}
@@ -251,6 +258,18 @@ public ManagedClusterAgentPoolProfileProperties()
[JsonProperty(PropertyName = "enableAutoScaling")]
public bool? EnableAutoScaling { get; set; }
+ ///
+ /// Gets or sets the scale down mode to use when scaling the Agent
+ /// Pool.
+ ///
+ ///
+ /// This also effects the cluster autoscaler behavior. If not
+ /// specified, it defaults to Delete. Possible values include:
+ /// 'Delete', 'Deallocate'
+ ///
+ [JsonProperty(PropertyName = "scaleDownMode")]
+ public string ScaleDownMode { get; set; }
+
///
/// Gets or sets possible values include: 'VirtualMachineScaleSets',
/// 'AvailabilitySet'
@@ -447,6 +466,13 @@ public ManagedClusterAgentPoolProfileProperties()
[JsonProperty(PropertyName = "gpuInstanceProfile")]
public string GpuInstanceProfile { get; set; }
+ ///
+ /// Gets or sets creationData to be used to specify the source Snapshot
+ /// ID if the node pool will be created/upgraded using a snapshot.
+ ///
+ [JsonProperty(PropertyName = "creationData")]
+ public CreationData CreationData { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterManagedOutboundIPProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterManagedOutboundIPProfile.cs
new file mode 100644
index 0000000000000..a0a6a43d41605
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterManagedOutboundIPProfile.cs
@@ -0,0 +1,75 @@
+//
+// 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.ContainerService.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Profile of the managed outbound IP resources of the managed cluster.
+ ///
+ public partial class ManagedClusterManagedOutboundIPProfile
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterManagedOutboundIPProfile class.
+ ///
+ public ManagedClusterManagedOutboundIPProfile()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterManagedOutboundIPProfile class.
+ ///
+ /// The desired number of outbound IPs
+ /// created/managed by Azure. Allowed values must be in the range of 1
+ /// to 16 (inclusive). The default value is 1.
+ public ManagedClusterManagedOutboundIPProfile(int? count = default(int?))
+ {
+ Count = count;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the desired number of outbound IPs created/managed by
+ /// Azure. Allowed values must be in the range of 1 to 16 (inclusive).
+ /// The default value is 1.
+ ///
+ [JsonProperty(PropertyName = "count")]
+ public int? Count { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Count > 16)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Count", 16);
+ }
+ if (Count < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Count", 1);
+ }
+ }
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterNATGatewayProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterNATGatewayProfile.cs
new file mode 100644
index 0000000000000..b67c1d881124f
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterNATGatewayProfile.cs
@@ -0,0 +1,101 @@
+//
+// 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.ContainerService.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Profile of the managed cluster NAT gateway.
+ ///
+ public partial class ManagedClusterNATGatewayProfile
+ {
+ ///
+ /// Initializes a new instance of the ManagedClusterNATGatewayProfile
+ /// class.
+ ///
+ public ManagedClusterNATGatewayProfile()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ManagedClusterNATGatewayProfile
+ /// class.
+ ///
+ /// Profile of the managed
+ /// outbound IP resources of the cluster NAT gateway.
+ /// The effective outbound IP
+ /// resources of the cluster NAT gateway.
+ /// Desired outbound flow idle
+ /// timeout in minutes. Allowed values are in the range of 4 to 120
+ /// (inclusive). The default value is 4 minutes.
+ public ManagedClusterNATGatewayProfile(ManagedClusterManagedOutboundIPProfile managedOutboundIPProfile = default(ManagedClusterManagedOutboundIPProfile), IList effectiveOutboundIPs = default(IList), int? idleTimeoutInMinutes = default(int?))
+ {
+ ManagedOutboundIPProfile = managedOutboundIPProfile;
+ EffectiveOutboundIPs = effectiveOutboundIPs;
+ IdleTimeoutInMinutes = idleTimeoutInMinutes;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets profile of the managed outbound IP resources of the
+ /// cluster NAT gateway.
+ ///
+ [JsonProperty(PropertyName = "managedOutboundIPProfile")]
+ public ManagedClusterManagedOutboundIPProfile ManagedOutboundIPProfile { get; set; }
+
+ ///
+ /// Gets or sets the effective outbound IP resources of the cluster NAT
+ /// gateway.
+ ///
+ [JsonProperty(PropertyName = "effectiveOutboundIPs")]
+ public IList EffectiveOutboundIPs { get; set; }
+
+ ///
+ /// Gets or sets desired outbound flow idle timeout in minutes. Allowed
+ /// values are in the range of 4 to 120 (inclusive). The default value
+ /// is 4 minutes.
+ ///
+ [JsonProperty(PropertyName = "idleTimeoutInMinutes")]
+ public int? IdleTimeoutInMinutes { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ManagedOutboundIPProfile != null)
+ {
+ ManagedOutboundIPProfile.Validate();
+ }
+ if (IdleTimeoutInMinutes > 120)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "IdleTimeoutInMinutes", 120);
+ }
+ if (IdleTimeoutInMinutes < 4)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "IdleTimeoutInMinutes", 4);
+ }
+ }
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterPropertiesIdentityProfileValue.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterPropertiesIdentityProfileValue.cs
deleted file mode 100644
index 6cbaf38bdcc8b..0000000000000
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterPropertiesIdentityProfileValue.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// 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.ContainerService.Models
-{
- using System.Linq;
-
- public partial class ManagedClusterPropertiesIdentityProfileValue : UserAssignedIdentity
- {
- ///
- /// Initializes a new instance of the
- /// ManagedClusterPropertiesIdentityProfileValue class.
- ///
- public ManagedClusterPropertiesIdentityProfileValue()
- {
- CustomInit();
- }
-
- ///
- /// Initializes a new instance of the
- /// ManagedClusterPropertiesIdentityProfileValue class.
- ///
- /// The resource ID of the user assigned
- /// identity.
- /// The client ID of the user assigned
- /// identity.
- /// The object ID of the user assigned
- /// identity.
- public ManagedClusterPropertiesIdentityProfileValue(string resourceId = default(string), string clientId = default(string), string objectId = default(string))
- : base(resourceId, clientId, objectId)
- {
- CustomInit();
- }
-
- ///
- /// An initialization method that performs custom operations like setting defaults
- ///
- partial void CustomInit();
-
- }
-}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs
new file mode 100644
index 0000000000000..aa5654dd20bc1
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterSecurityProfile.cs
@@ -0,0 +1,54 @@
+//
+// 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.ContainerService.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Security profile for the container service cluster.
+ ///
+ public partial class ManagedClusterSecurityProfile
+ {
+ ///
+ /// Initializes a new instance of the ManagedClusterSecurityProfile
+ /// class.
+ ///
+ public ManagedClusterSecurityProfile()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ManagedClusterSecurityProfile
+ /// class.
+ ///
+ /// Azure Defender settings for the
+ /// security profile.
+ public ManagedClusterSecurityProfile(ManagedClusterSecurityProfileAzureDefender azureDefender = default(ManagedClusterSecurityProfileAzureDefender))
+ {
+ AzureDefender = azureDefender;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets azure Defender settings for the security profile.
+ ///
+ [JsonProperty(PropertyName = "azureDefender")]
+ public ManagedClusterSecurityProfileAzureDefender AzureDefender { get; set; }
+
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileAzureDefender.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileAzureDefender.cs
new file mode 100644
index 0000000000000..c5ed32338af14
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterSecurityProfileAzureDefender.cs
@@ -0,0 +1,68 @@
+//
+// 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.ContainerService.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Azure Defender settings for the security profile.
+ ///
+ public partial class ManagedClusterSecurityProfileAzureDefender
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterSecurityProfileAzureDefender class.
+ ///
+ public ManagedClusterSecurityProfileAzureDefender()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterSecurityProfileAzureDefender class.
+ ///
+ /// Whether to enable Azure Defender
+ /// Resource ID of the
+ /// Log Analytics workspace to be associated with Azure Defender. When
+ /// Azure Defender is enabled, this field is required and must be a
+ /// valid workspace resource ID. When Azure Defender is disabled, leave
+ /// the field empty.
+ public ManagedClusterSecurityProfileAzureDefender(bool? enabled = default(bool?), string logAnalyticsWorkspaceResourceId = default(string))
+ {
+ Enabled = enabled;
+ LogAnalyticsWorkspaceResourceId = logAnalyticsWorkspaceResourceId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets whether to enable Azure Defender
+ ///
+ [JsonProperty(PropertyName = "enabled")]
+ public bool? Enabled { get; set; }
+
+ ///
+ /// Gets or sets resource ID of the Log Analytics workspace to be
+ /// associated with Azure Defender. When Azure Defender is enabled,
+ /// this field is required and must be a valid workspace resource ID.
+ /// When Azure Defender is disabled, leave the field empty.
+ ///
+ [JsonProperty(PropertyName = "logAnalyticsWorkspaceResourceId")]
+ public string LogAnalyticsWorkspaceResourceId { get; set; }
+
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/OutboundType.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/OutboundType.cs
index 05228ab50febc..dd1ed35453f51 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/OutboundType.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/OutboundType.cs
@@ -30,5 +30,15 @@ public static class OutboundType
/// userDefinedRouting](https://docs.microsoft.com/azure/aks/egress-outboundtype#outbound-type-of-userdefinedrouting).
///
public const string UserDefinedRouting = "userDefinedRouting";
+ ///
+ /// The AKS-managed NAT gateway is used for egress.
+ ///
+ public const string ManagedNATGateway = "managedNATGateway";
+ ///
+ /// The user-assigned NAT gateway associated to the cluster subnet is
+ /// used for egress. This is an advanced scenario and requires proper
+ /// network configuration.
+ ///
+ public const string UserAssignedNATGateway = "userAssignedNATGateway";
}
}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleDownMode.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleDownMode.cs
new file mode 100644
index 0000000000000..e78a045d16c88
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleDownMode.cs
@@ -0,0 +1,30 @@
+//
+// 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.ContainerService.Models
+{
+
+ ///
+ /// Defines values for ScaleDownMode.
+ ///
+ public static class ScaleDownMode
+ {
+ ///
+ /// Create new instances during scale up and remove instances during
+ /// scale down.
+ ///
+ public const string Delete = "Delete";
+ ///
+ /// Attempt to start deallocated instances (if they exist) during scale
+ /// up and deallocate instances during scale down.
+ ///
+ public const string Deallocate = "Deallocate";
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/SdkInfo_ContainerServiceClient.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/SdkInfo_ContainerServiceClient.cs
index 73e4ea9b59511..194fb90f2b650 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/SdkInfo_ContainerServiceClient.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/SdkInfo_ContainerServiceClient.cs
@@ -19,26 +19,15 @@ public static IEnumerable> ApiInfo_ContainerServic
{
return new Tuple[]
{
- new Tuple("ContainerService", "AgentPools", "2021-05-01"),
- new Tuple("ContainerService", "MaintenanceConfigurations", "2021-05-01"),
- new Tuple("ContainerService", "ManagedClusters", "2021-05-01"),
- new Tuple("ContainerService", "Operations", "2021-05-01"),
- new Tuple("ContainerService", "PrivateEndpointConnections", "2021-05-01"),
- new Tuple("ContainerService", "PrivateLinkResources", "2021-05-01"),
- new Tuple("ContainerService", "ResolvePrivateLinkServiceId", "2021-05-01"),
+ new Tuple("ContainerService", "AgentPools", "2021-08-01"),
+ new Tuple("ContainerService", "MaintenanceConfigurations", "2021-08-01"),
+ new Tuple("ContainerService", "ManagedClusters", "2021-08-01"),
+ new Tuple("ContainerService", "Operations", "2021-08-01"),
+ new Tuple("ContainerService", "PrivateEndpointConnections", "2021-08-01"),
+ new Tuple("ContainerService", "PrivateLinkResources", "2021-08-01"),
+ new Tuple("ContainerService", "ResolvePrivateLinkServiceId", "2021-08-01"),
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "v2";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerservice/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\kaiqz\\github\\kaiqzhan\\azure-sdk-for-net\\sdk";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "b5b3ae9a081535b4dabce52a1136eece3e2d469f";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-