diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperations.cs
index 50bf7e4b6b92c..72ebae5b27a9e 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperations.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperations.cs
@@ -120,7 +120,7 @@ internal AgentPoolsOperations(ContainerServiceClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
}
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -346,7 +346,7 @@ internal AgentPoolsOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "agentPoolName");
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -557,6 +557,454 @@ internal AgentPoolsOperations(ContainerServiceClient client)
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
+ ///
+ /// Gets upgrade profile for an agent pool.
+ ///
+ ///
+ /// Gets the details of the upgrade profile for an agent pool with a specified
+ /// resource group and managed cluster name.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The name of the agent pool.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetUpgradeProfileWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ }
+ if (resourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
+ }
+ if (resourceName != null)
+ {
+ if (resourceName.Length > 63)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceName", 63);
+ }
+ if (resourceName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceName, "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
+ }
+ }
+ if (agentPoolName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "agentPoolName");
+ }
+ string apiVersion = "2020-02-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+ tracingParameters.Add("agentPoolName", agentPoolName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetUpgradeProfile", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/upgradeProfiles/default").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+ _url = _url.Replace("{agentPoolName}", System.Uri.EscapeDataString(agentPoolName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Gets a list of supported versions for the specified agent pool.
+ ///
+ ///
+ /// Gets a list of supported versions for the specified agent pool.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetAvailableAgentPoolVersionsWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ }
+ if (resourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
+ }
+ if (resourceName != null)
+ {
+ if (resourceName.Length > 63)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceName", 63);
+ }
+ if (resourceName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceName, "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
+ }
+ }
+ string apiVersion = "2020-02-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetAvailableAgentPoolVersions", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Creates or updates an agent pool.
///
@@ -644,7 +1092,7 @@ internal AgentPoolsOperations(ContainerServiceClient client)
{
parameters.Validate();
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -894,7 +1342,7 @@ internal AgentPoolsOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "agentPoolName");
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperationsExtensions.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperationsExtensions.cs
index 333bc9802a1ab..fac6394a3939e 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperationsExtensions.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/AgentPoolsOperationsExtensions.cs
@@ -228,6 +228,106 @@ public static void Delete(this IAgentPoolsOperations operations, string resource
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceName, agentPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// Gets upgrade profile for an agent pool.
+ ///
+ ///
+ /// Gets the details of the upgrade profile for an agent pool with a specified
+ /// resource group and managed cluster name.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The name of the agent pool.
+ ///
+ public static AgentPoolUpgradeProfile GetUpgradeProfile(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName, string agentPoolName)
+ {
+ return operations.GetUpgradeProfileAsync(resourceGroupName, resourceName, agentPoolName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets upgrade profile for an agent pool.
+ ///
+ ///
+ /// Gets the details of the upgrade profile for an agent pool with a specified
+ /// resource group and managed cluster name.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The name of the agent pool.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetUpgradeProfileAsync(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName, string agentPoolName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetUpgradeProfileWithHttpMessagesAsync(resourceGroupName, resourceName, agentPoolName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Gets a list of supported versions for the specified agent pool.
+ ///
+ ///
+ /// Gets a list of supported versions for the specified agent pool.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ public static AgentPoolAvailableVersions GetAvailableAgentPoolVersions(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName)
+ {
+ return operations.GetAvailableAgentPoolVersionsAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets a list of supported versions for the specified agent pool.
+ ///
+ ///
+ /// Gets a list of supported versions for the specified agent pool.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAvailableAgentPoolVersionsAsync(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetAvailableAgentPoolVersionsWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Creates or updates an agent pool.
///
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServicesOperations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServicesOperations.cs
index b8ec9621329db..564aab6846208 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServicesOperations.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ContainerServicesOperations.cs
@@ -735,7 +735,7 @@ internal ContainerServicesOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "location");
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IAgentPoolsOperations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IAgentPoolsOperations.cs
index fe31c66be91b1..40bf792cb96bc 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IAgentPoolsOperations.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IAgentPoolsOperations.cs
@@ -148,6 +148,66 @@ public partial interface IAgentPoolsOperations
///
Task DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets upgrade profile for an agent pool.
+ ///
+ ///
+ /// Gets the details of the upgrade profile for an agent pool with a
+ /// specified resource group and managed cluster name.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The name of the agent pool.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetUpgradeProfileWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets a list of supported versions for the specified agent pool.
+ ///
+ ///
+ /// Gets a list of supported versions for the specified agent pool.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetAvailableAgentPoolVersionsWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Creates or updates an agent pool.
///
///
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IManagedClustersOperations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IManagedClustersOperations.cs
index 425306a2b0dbf..c3957a97e4929 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IManagedClustersOperations.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/IManagedClustersOperations.cs
@@ -193,6 +193,35 @@ public partial interface IManagedClustersOperations
///
Task> ListClusterUserCredentialsWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets cluster monitoring user credential of a managed cluster.
+ ///
+ ///
+ /// Gets cluster monitoring user credential of the managed cluster with
+ /// a specified resource group and name.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ListClusterMonitoringUserCredentialsWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets a managed cluster.
///
///
@@ -370,6 +399,31 @@ public partial interface IManagedClustersOperations
///
Task ResetAADProfileWithHttpMessagesAsync(string resourceGroupName, string resourceName, ManagedClusterAADProfile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task RotateClusterCertificatesWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Creates or updates a managed cluster.
///
///
@@ -518,6 +572,31 @@ public partial interface IManagedClustersOperations
///
Task BeginResetAADProfileWithHttpMessagesAsync(string resourceGroupName, string resourceName, ManagedClusterAADProfile parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginRotateClusterCertificatesWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets a list of managed clusters in the specified subscription.
///
///
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperations.cs
index b42496c1c2412..8d9655e53b0b5 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperations.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperations.cs
@@ -84,7 +84,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -278,7 +278,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -496,7 +496,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
}
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -723,7 +723,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "roleName");
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -945,7 +945,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
}
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1165,7 +1165,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
}
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1315,6 +1315,226 @@ internal ManagedClustersOperations(ContainerServiceClient client)
return _result;
}
+ ///
+ /// Gets cluster monitoring user credential of a managed cluster.
+ ///
+ ///
+ /// Gets cluster monitoring user credential of the managed cluster with a
+ /// specified resource group and name.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> ListClusterMonitoringUserCredentialsWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ }
+ if (resourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
+ }
+ if (resourceName != null)
+ {
+ if (resourceName.Length > 63)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceName", 63);
+ }
+ if (resourceName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceName, "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
+ }
+ }
+ string apiVersion = "2020-02-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListClusterMonitoringUserCredentials", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterMonitoringUserCredential").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Gets a managed cluster.
///
@@ -1385,7 +1605,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
}
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1675,6 +1895,31 @@ internal ManagedClustersOperations(ContainerServiceClient client)
return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task RotateClusterCertificatesWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginRotateClusterCertificatesWithHttpMessagesAsync(resourceGroupName, resourceName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
///
/// Creates or updates a managed cluster.
///
@@ -1756,7 +2001,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
parameters.Validate();
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2003,7 +2248,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
}
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
TagsObject parameters = new TagsObject();
if (tags != null)
{
@@ -2231,7 +2476,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
}
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2441,7 +2686,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
parameters.Validate();
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2658,7 +2903,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
parameters.Validate();
}
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2797,6 +3042,204 @@ internal ManagedClustersOperations(ContainerServiceClient client)
return _result;
}
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task BeginRotateClusterCertificatesWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ }
+ if (resourceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
+ }
+ if (resourceName != null)
+ {
+ if (resourceName.Length > 63)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceName", 63);
+ }
+ if (resourceName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceName, "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceName", "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$");
+ }
+ }
+ string apiVersion = "2020-02-01";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("resourceName", resourceName);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginRotateClusterCertificates", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rotateClusterCertificates").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{resourceName}", System.Uri.EscapeDataString(resourceName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 202 && (int)_statusCode != 204)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Gets a list of managed clusters in the specified subscription.
///
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperationsExtensions.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperationsExtensions.cs
index dd29028a7f9b1..1514bd1cca6ac 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperationsExtensions.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/ManagedClustersOperationsExtensions.cs
@@ -299,6 +299,54 @@ public static CredentialResults ListClusterUserCredentials(this IManagedClusters
}
}
+ ///
+ /// Gets cluster monitoring user credential of a managed cluster.
+ ///
+ ///
+ /// Gets cluster monitoring user credential of the managed cluster with a
+ /// specified resource group and name.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ public static CredentialResults ListClusterMonitoringUserCredentials(this IManagedClustersOperations operations, string resourceGroupName, string resourceName)
+ {
+ return operations.ListClusterMonitoringUserCredentialsAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets cluster monitoring user credential of a managed cluster.
+ ///
+ ///
+ /// Gets cluster monitoring user credential of the managed cluster with a
+ /// specified resource group and name.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ListClusterMonitoringUserCredentialsAsync(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListClusterMonitoringUserCredentialsWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Gets a managed cluster.
///
@@ -598,6 +646,49 @@ public static void ResetAADProfile(this IManagedClustersOperations operations, s
(await operations.ResetAADProfileWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ public static void RotateClusterCertificates(this IManagedClustersOperations operations, string resourceGroupName, string resourceName)
+ {
+ operations.RotateClusterCertificatesAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task RotateClusterCertificatesAsync(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.RotateClusterCertificatesWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
///
/// Creates or updates a managed cluster.
///
@@ -849,6 +940,49 @@ public static void BeginResetAADProfile(this IManagedClustersOperations operatio
(await operations.BeginResetAADProfileWithHttpMessagesAsync(resourceGroupName, resourceName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ public static void BeginRotateClusterCertificates(this IManagedClustersOperations operations, string resourceGroupName, string resourceName)
+ {
+ operations.BeginRotateClusterCertificatesAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// Rotate certificates of a managed cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group.
+ ///
+ ///
+ /// The name of the managed cluster resource.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginRotateClusterCertificatesAsync(this IManagedClustersOperations operations, string resourceGroupName, string resourceName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginRotateClusterCertificatesWithHttpMessagesAsync(resourceGroupName, resourceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
///
/// Gets a list of managed clusters in the specified subscription.
///
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 62d800ddd453b..72569a8685149 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
@@ -121,9 +121,27 @@ public AgentPool()
/// when creating the managed cluster.
/// The current deployment or
/// provisioning state, which only appears in the response.
- /// (PREVIEW) Availability zones for
- /// nodes. Must use VirtualMachineScaleSets AgentPoolType.
- public AgentPool(int count, string vmSize, string id = default(string), string name = default(string), string type = default(string), int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string agentPoolType = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList))
+ /// Availability zones for nodes. Must
+ /// use VirtualMachineScaleSets AgentPoolType.
+ /// Enable public IP for nodes
+ /// ScaleSetPriority to be used to
+ /// specify virtual machine scale set priority. Default to regular.
+ /// Possible values include: 'Spot', 'Low', 'Regular'
+ /// ScaleSetEvictionPolicy to be
+ /// used to specify eviction policy for Spot or low priority virtual
+ /// machine scale set. Default to Delete. Possible values include:
+ /// 'Delete', 'Deallocate'
+ /// SpotMaxPrice to be used to specify the
+ /// maximum price you are willing to pay in US Dollars. Possible values
+ /// are any decimal value greater than zero or -1 which indicates
+ /// default price to be up-to on-demand.
+ /// Agent pool tags to be persisted on the agent
+ /// pool virtual machine scale set.
+ /// Agent pool node labels to be persisted
+ /// across all nodes in agent pool.
+ /// Taints added to new nodes during node pool
+ /// create and scale. For example, key=value:NoSchedule.
+ public AgentPool(int count, string vmSize, string id = default(string), string name = default(string), string type = default(string), int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string agentPoolType = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), double? spotMaxPrice = default(double?), IDictionary tags = default(IDictionary), IDictionary nodeLabels = default(IDictionary), IList nodeTaints = default(IList))
: base(id, name, type)
{
Count = count;
@@ -139,6 +157,13 @@ public AgentPool()
OrchestratorVersion = orchestratorVersion;
ProvisioningState = provisioningState;
AvailabilityZones = availabilityZones;
+ EnableNodePublicIP = enableNodePublicIP;
+ ScaleSetPriority = scaleSetPriority;
+ ScaleSetEvictionPolicy = scaleSetEvictionPolicy;
+ SpotMaxPrice = spotMaxPrice;
+ Tags = tags;
+ NodeLabels = nodeLabels;
+ NodeTaints = nodeTaints;
CustomInit();
}
@@ -285,12 +310,64 @@ public AgentPool()
public string ProvisioningState { get; private set; }
///
- /// Gets or sets (PREVIEW) Availability zones for nodes. Must use
+ /// Gets or sets availability zones for nodes. Must use
/// VirtualMachineScaleSets AgentPoolType.
///
[JsonProperty(PropertyName = "properties.availabilityZones")]
public IList AvailabilityZones { get; set; }
+ ///
+ /// Gets or sets enable public IP for nodes
+ ///
+ [JsonProperty(PropertyName = "properties.enableNodePublicIP")]
+ public bool? EnableNodePublicIP { get; set; }
+
+ ///
+ /// Gets or sets scaleSetPriority to be used to specify virtual machine
+ /// scale set priority. Default to regular. Possible values include:
+ /// 'Spot', 'Low', 'Regular'
+ ///
+ [JsonProperty(PropertyName = "properties.scaleSetPriority")]
+ public string ScaleSetPriority { get; set; }
+
+ ///
+ /// Gets or sets scaleSetEvictionPolicy to be used to specify eviction
+ /// policy for Spot or low priority virtual machine scale set. Default
+ /// to Delete. Possible values include: 'Delete', 'Deallocate'
+ ///
+ [JsonProperty(PropertyName = "properties.scaleSetEvictionPolicy")]
+ public string ScaleSetEvictionPolicy { get; set; }
+
+ ///
+ /// Gets or sets spotMaxPrice to be used to specify the maximum price
+ /// you are willing to pay in US Dollars. Possible values are any
+ /// decimal value greater than zero or -1 which indicates default price
+ /// to be up-to on-demand.
+ ///
+ [JsonProperty(PropertyName = "properties.spotMaxPrice")]
+ public double? SpotMaxPrice { get; set; }
+
+ ///
+ /// Gets or sets agent pool tags to be persisted on the agent pool
+ /// virtual machine scale set.
+ ///
+ [JsonProperty(PropertyName = "properties.tags")]
+ public IDictionary Tags { get; set; }
+
+ ///
+ /// Gets or sets agent pool node labels to be persisted across all
+ /// nodes in agent pool.
+ ///
+ [JsonProperty(PropertyName = "properties.nodeLabels")]
+ public IDictionary NodeLabels { get; set; }
+
+ ///
+ /// Gets or sets taints added to new nodes during node pool create and
+ /// scale. For example, key=value:NoSchedule.
+ ///
+ [JsonProperty(PropertyName = "properties.nodeTaints")]
+ public IList NodeTaints { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs
new file mode 100644
index 0000000000000..aef0635745932
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersions.cs
@@ -0,0 +1,83 @@
+//
+// 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 Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The list of available versions for an agent pool.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class AgentPoolAvailableVersions
+ {
+ ///
+ /// Initializes a new instance of the AgentPoolAvailableVersions class.
+ ///
+ public AgentPoolAvailableVersions()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AgentPoolAvailableVersions class.
+ ///
+ /// Id of the agent pool available versions.
+ /// Name of the agent pool available
+ /// versions.
+ /// Type of the agent pool available
+ /// versions.
+ /// List of versions available for
+ /// agent pool.
+ public AgentPoolAvailableVersions(string id = default(string), string name = default(string), string type = default(string), IList agentPoolVersions = default(IList))
+ {
+ Id = id;
+ Name = name;
+ Type = type;
+ AgentPoolVersions = agentPoolVersions;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets id of the agent pool available versions.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; private set; }
+
+ ///
+ /// Gets name of the agent pool available versions.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; private set; }
+
+ ///
+ /// Gets type of the agent pool available versions.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ ///
+ /// Gets or sets list of versions available for agent pool.
+ ///
+ [JsonProperty(PropertyName = "properties.agentPoolVersions")]
+ public IList AgentPoolVersions { get; set; }
+
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.cs
new file mode 100644
index 0000000000000..8642c1dbda4cc
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.cs
@@ -0,0 +1,70 @@
+//
+// 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;
+
+ public partial class AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem class.
+ ///
+ public AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem class.
+ ///
+ /// Whether this version is the default
+ /// agent pool version.
+ /// Kubernetes version (major, minor,
+ /// patch).
+ /// Whether Kubernetes version is currently in
+ /// preview.
+ public AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem(bool? defaultProperty = default(bool?), string kubernetesVersion = default(string), bool? isPreview = default(bool?))
+ {
+ DefaultProperty = defaultProperty;
+ KubernetesVersion = kubernetesVersion;
+ IsPreview = isPreview;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets whether this version is the default agent pool
+ /// version.
+ ///
+ [JsonProperty(PropertyName = "default")]
+ public bool? DefaultProperty { get; set; }
+
+ ///
+ /// Gets or sets kubernetes version (major, minor, patch).
+ ///
+ [JsonProperty(PropertyName = "kubernetesVersion")]
+ public string KubernetesVersion { get; set; }
+
+ ///
+ /// Gets or sets whether Kubernetes version is currently in preview.
+ ///
+ [JsonProperty(PropertyName = "isPreview")]
+ public bool? IsPreview { get; set; }
+
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfile.cs
new file mode 100644
index 0000000000000..7e876988de79c
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfile.cs
@@ -0,0 +1,120 @@
+//
+// 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 Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The list of available upgrades for an agent pool.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class AgentPoolUpgradeProfile
+ {
+ ///
+ /// Initializes a new instance of the AgentPoolUpgradeProfile class.
+ ///
+ public AgentPoolUpgradeProfile()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AgentPoolUpgradeProfile class.
+ ///
+ /// Kubernetes version (major, minor,
+ /// patch).
+ /// OsType to be used to specify os type. Choose
+ /// from Linux and Windows. Default to Linux. Possible values include:
+ /// 'Linux', 'Windows'
+ /// Id of the agent pool upgrade profile.
+ /// Name of the agent pool upgrade profile.
+ /// Type of the agent pool upgrade profile.
+ /// List of orchestrator types and versions
+ /// available for upgrade.
+ public AgentPoolUpgradeProfile(string kubernetesVersion, string osType, string id = default(string), string name = default(string), string type = default(string), IList upgrades = default(IList))
+ {
+ Id = id;
+ Name = name;
+ Type = type;
+ KubernetesVersion = kubernetesVersion;
+ OsType = osType;
+ Upgrades = upgrades;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets id of the agent pool upgrade profile.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; private set; }
+
+ ///
+ /// Gets name of the agent pool upgrade profile.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; private set; }
+
+ ///
+ /// Gets type of the agent pool upgrade profile.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ ///
+ /// Gets or sets kubernetes version (major, minor, patch).
+ ///
+ [JsonProperty(PropertyName = "properties.kubernetesVersion")]
+ public string KubernetesVersion { get; set; }
+
+ ///
+ /// Gets or sets osType to be used to specify os type. Choose from
+ /// Linux and Windows. Default to Linux. Possible values include:
+ /// 'Linux', 'Windows'
+ ///
+ [JsonProperty(PropertyName = "properties.osType")]
+ public string OsType { get; set; }
+
+ ///
+ /// Gets or sets list of orchestrator types and versions available for
+ /// upgrade.
+ ///
+ [JsonProperty(PropertyName = "properties.upgrades")]
+ public IList Upgrades { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (KubernetesVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "KubernetesVersion");
+ }
+ if (OsType == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "OsType");
+ }
+ }
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfilePropertiesUpgradesItem.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfilePropertiesUpgradesItem.cs
new file mode 100644
index 0000000000000..e449e974e445a
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/AgentPoolUpgradeProfilePropertiesUpgradesItem.cs
@@ -0,0 +1,60 @@
+//
+// 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;
+
+ public partial class AgentPoolUpgradeProfilePropertiesUpgradesItem
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AgentPoolUpgradeProfilePropertiesUpgradesItem class.
+ ///
+ public AgentPoolUpgradeProfilePropertiesUpgradesItem()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AgentPoolUpgradeProfilePropertiesUpgradesItem class.
+ ///
+ /// Kubernetes version (major, minor,
+ /// patch).
+ /// Whether Kubernetes version is currently in
+ /// preview.
+ public AgentPoolUpgradeProfilePropertiesUpgradesItem(string kubernetesVersion = default(string), bool? isPreview = default(bool?))
+ {
+ KubernetesVersion = kubernetesVersion;
+ IsPreview = isPreview;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets kubernetes version (major, minor, patch).
+ ///
+ [JsonProperty(PropertyName = "kubernetesVersion")]
+ public string KubernetesVersion { get; set; }
+
+ ///
+ /// Gets or sets whether Kubernetes version is currently in preview.
+ ///
+ [JsonProperty(PropertyName = "isPreview")]
+ public bool? IsPreview { get; set; }
+
+ }
+}
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 311110d17c1a9..bb8dc8ebc5e63 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
@@ -38,6 +38,8 @@ public ContainerServiceNetworkProfile()
/// Network policy used for building
/// Kubernetes network. Possible values include: 'calico',
/// 'azure'
+ /// Network mode used for building Kubernetes
+ /// network. Possible values include: 'transparent', 'bridge'
/// A CIDR notation IP range from which to assign
/// pod IPs when kubenet is used.
/// A CIDR notation IP range from which to
@@ -49,17 +51,25 @@ public ContainerServiceNetworkProfile()
/// A CIDR notation IP range assigned to
/// the Docker bridge network. It must not overlap with any Subnet IP
/// ranges or the Kubernetes service address range.
+ /// The outbound (egress) routing method.
+ /// Possible values include: 'loadBalancer',
+ /// 'userDefinedRouting'
/// The load balancer sku for the managed
/// cluster. Possible values include: 'standard', 'basic'
- public ContainerServiceNetworkProfile(string networkPlugin = default(string), string networkPolicy = default(string), string podCidr = default(string), string serviceCidr = default(string), string dnsServiceIP = default(string), string dockerBridgeCidr = default(string), string loadBalancerSku = default(string))
+ /// 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))
{
NetworkPlugin = networkPlugin;
NetworkPolicy = networkPolicy;
+ NetworkMode = networkMode;
PodCidr = podCidr;
ServiceCidr = serviceCidr;
DnsServiceIP = dnsServiceIP;
DockerBridgeCidr = dockerBridgeCidr;
+ OutboundType = outboundType;
LoadBalancerSku = loadBalancerSku;
+ LoadBalancerProfile = loadBalancerProfile;
CustomInit();
}
@@ -82,6 +92,13 @@ public ContainerServiceNetworkProfile()
[JsonProperty(PropertyName = "networkPolicy")]
public string NetworkPolicy { get; set; }
+ ///
+ /// Gets or sets network mode used for building Kubernetes network.
+ /// Possible values include: 'transparent', 'bridge'
+ ///
+ [JsonProperty(PropertyName = "networkMode")]
+ public string NetworkMode { get; set; }
+
///
/// Gets or sets a CIDR notation IP range from which to assign pod IPs
/// when kubenet is used.
@@ -112,6 +129,13 @@ public ContainerServiceNetworkProfile()
[JsonProperty(PropertyName = "dockerBridgeCidr")]
public string DockerBridgeCidr { get; set; }
+ ///
+ /// Gets or sets the outbound (egress) routing method. Possible values
+ /// include: 'loadBalancer', 'userDefinedRouting'
+ ///
+ [JsonProperty(PropertyName = "outboundType")]
+ public string OutboundType { get; set; }
+
///
/// Gets or sets the load balancer sku for the managed cluster.
/// Possible values include: 'standard', 'basic'
@@ -119,6 +143,12 @@ public ContainerServiceNetworkProfile()
[JsonProperty(PropertyName = "loadBalancerSku")]
public string LoadBalancerSku { get; set; }
+ ///
+ /// Gets or sets profile of the cluster load balancer.
+ ///
+ [JsonProperty(PropertyName = "loadBalancerProfile")]
+ public ManagedClusterLoadBalancerProfile LoadBalancerProfile { get; set; }
+
///
/// Validate the object.
///
@@ -155,6 +185,10 @@ public virtual void Validate()
throw new ValidationException(ValidationRules.Pattern, "DockerBridgeCidr", "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\\/([0-9]|[1-2][0-9]|3[0-2]))?$");
}
}
+ if (LoadBalancerProfile != null)
+ {
+ LoadBalancerProfile.Validate();
+ }
}
}
}
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 7a4181186b426..04f38f71c59ac 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
@@ -48,6 +48,7 @@ public ManagedCluster()
/// DNS prefix specified when creating the
/// managed cluster.
/// FQDN for the master pool.
+ /// FQDN of private cluster.
/// Properties of the agent
/// pool.
/// Profile for Linux VMs in the container
@@ -69,11 +70,15 @@ public ManagedCluster()
/// configuration.
/// Profile of Azure Active Directory
/// configuration.
- /// (PREVIEW) Authorized IP
- /// Ranges to kubernetes API server.
+ /// Access profile for managed
+ /// cluster API server.
+ /// ResourceId of the disk encryption
+ /// set to use for enabling encryption at rest.
+ /// Identities associated with the
+ /// cluster.
/// The identity of the managed cluster, if
/// configured.
- public ManagedCluster(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), int? maxAgentPools = default(int?), string kubernetesVersion = default(string), string dnsPrefix = default(string), string fqdn = default(string), IList agentPoolProfiles = default(IList), ContainerServiceLinuxProfile linuxProfile = default(ContainerServiceLinuxProfile), ManagedClusterWindowsProfile windowsProfile = default(ManagedClusterWindowsProfile), ManagedClusterServicePrincipalProfile servicePrincipalProfile = default(ManagedClusterServicePrincipalProfile), IDictionary addonProfiles = default(IDictionary), string nodeResourceGroup = default(string), bool? enableRBAC = default(bool?), bool? enablePodSecurityPolicy = default(bool?), ContainerServiceNetworkProfile networkProfile = default(ContainerServiceNetworkProfile), ManagedClusterAADProfile aadProfile = default(ManagedClusterAADProfile), IList apiServerAuthorizedIPRanges = default(IList), ManagedClusterIdentity identity = default(ManagedClusterIdentity))
+ public ManagedCluster(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), int? maxAgentPools = default(int?), string kubernetesVersion = default(string), string dnsPrefix = default(string), string fqdn = default(string), string privateFQDN = default(string), IList agentPoolProfiles = default(IList), ContainerServiceLinuxProfile linuxProfile = default(ContainerServiceLinuxProfile), ManagedClusterWindowsProfile windowsProfile = default(ManagedClusterWindowsProfile), ManagedClusterServicePrincipalProfile servicePrincipalProfile = default(ManagedClusterServicePrincipalProfile), IDictionary addonProfiles = default(IDictionary), string nodeResourceGroup = default(string), bool? enableRBAC = default(bool?), bool? enablePodSecurityPolicy = default(bool?), ContainerServiceNetworkProfile networkProfile = default(ContainerServiceNetworkProfile), ManagedClusterAADProfile aadProfile = default(ManagedClusterAADProfile), ManagedClusterAPIServerAccessProfile apiServerAccessProfile = default(ManagedClusterAPIServerAccessProfile), string diskEncryptionSetID = default(string), IDictionary identityProfile = default(IDictionary), ManagedClusterIdentity identity = default(ManagedClusterIdentity))
: base(location, id, name, type, tags)
{
ProvisioningState = provisioningState;
@@ -81,6 +86,7 @@ public ManagedCluster()
KubernetesVersion = kubernetesVersion;
DnsPrefix = dnsPrefix;
Fqdn = fqdn;
+ PrivateFQDN = privateFQDN;
AgentPoolProfiles = agentPoolProfiles;
LinuxProfile = linuxProfile;
WindowsProfile = windowsProfile;
@@ -91,7 +97,9 @@ public ManagedCluster()
EnablePodSecurityPolicy = enablePodSecurityPolicy;
NetworkProfile = networkProfile;
AadProfile = aadProfile;
- ApiServerAuthorizedIPRanges = apiServerAuthorizedIPRanges;
+ ApiServerAccessProfile = apiServerAccessProfile;
+ DiskEncryptionSetID = diskEncryptionSetID;
+ IdentityProfile = identityProfile;
Identity = identity;
CustomInit();
}
@@ -134,6 +142,12 @@ public ManagedCluster()
[JsonProperty(PropertyName = "properties.fqdn")]
public string Fqdn { get; private set; }
+ ///
+ /// Gets FQDN of private cluster.
+ ///
+ [JsonProperty(PropertyName = "properties.privateFQDN")]
+ public string PrivateFQDN { get; private set; }
+
///
/// Gets or sets properties of the agent pool.
///
@@ -201,11 +215,23 @@ public ManagedCluster()
public ManagedClusterAADProfile AadProfile { get; set; }
///
- /// Gets or sets (PREVIEW) Authorized IP Ranges to kubernetes API
- /// server.
+ /// Gets or sets access profile for managed cluster API server.
+ ///
+ [JsonProperty(PropertyName = "properties.apiServerAccessProfile")]
+ public ManagedClusterAPIServerAccessProfile ApiServerAccessProfile { get; set; }
+
+ ///
+ /// Gets or sets resourceId of the disk encryption set to use for
+ /// enabling encryption at rest.
+ ///
+ [JsonProperty(PropertyName = "properties.diskEncryptionSetID")]
+ public string DiskEncryptionSetID { get; set; }
+
+ ///
+ /// Gets or sets identities associated with the cluster.
///
- [JsonProperty(PropertyName = "properties.apiServerAuthorizedIPRanges")]
- public IList ApiServerAuthorizedIPRanges { get; set; }
+ [JsonProperty(PropertyName = "properties.identityProfile")]
+ public IDictionary IdentityProfile { get; set; }
///
/// Gets or sets the identity of the managed cluster, if configured.
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
new file mode 100644
index 0000000000000..a950f33365d19
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAPIServerAccessProfile.cs
@@ -0,0 +1,66 @@
+//
+// 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.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Access profile for managed cluster API server.
+ ///
+ public partial class ManagedClusterAPIServerAccessProfile
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterAPIServerAccessProfile class.
+ ///
+ public ManagedClusterAPIServerAccessProfile()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterAPIServerAccessProfile class.
+ ///
+ /// Authorized IP Ranges to kubernetes
+ /// API server.
+ /// Whether to create the cluster as
+ /// a private cluster or not.
+ public ManagedClusterAPIServerAccessProfile(IList authorizedIPRanges = default(IList), bool? enablePrivateCluster = default(bool?))
+ {
+ AuthorizedIPRanges = authorizedIPRanges;
+ EnablePrivateCluster = enablePrivateCluster;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets authorized IP Ranges to kubernetes API server.
+ ///
+ [JsonProperty(PropertyName = "authorizedIPRanges")]
+ public IList AuthorizedIPRanges { get; set; }
+
+ ///
+ /// Gets or sets whether to create the cluster as a private cluster or
+ /// not.
+ ///
+ [JsonProperty(PropertyName = "enablePrivateCluster")]
+ public bool? EnablePrivateCluster { get; set; }
+
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAddonProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAddonProfile.cs
index 0655ec233ac59..0ebd1fa134212 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAddonProfile.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAddonProfile.cs
@@ -34,10 +34,13 @@ public ManagedClusterAddonProfile()
/// Whether the add-on is enabled or not.
/// Key-value pairs for configuring an
/// add-on.
- public ManagedClusterAddonProfile(bool enabled, IDictionary config = default(IDictionary))
+ /// Information of user assigned identity used
+ /// by this add-on.
+ public ManagedClusterAddonProfile(bool enabled, IDictionary config = default(IDictionary), ManagedClusterAddonProfileIdentity identity = default(ManagedClusterAddonProfileIdentity))
{
Enabled = enabled;
Config = config;
+ Identity = identity;
CustomInit();
}
@@ -58,6 +61,12 @@ public ManagedClusterAddonProfile()
[JsonProperty(PropertyName = "config")]
public IDictionary Config { get; set; }
+ ///
+ /// Gets information of user assigned identity used by this add-on.
+ ///
+ [JsonProperty(PropertyName = "identity")]
+ public ManagedClusterAddonProfileIdentity Identity { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAddonProfileIdentity.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAddonProfileIdentity.cs
new file mode 100644
index 0000000000000..61ad97f955046
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAddonProfileIdentity.cs
@@ -0,0 +1,51 @@
+//
+// 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;
+
+ ///
+ /// Information of user assigned identity used by this add-on.
+ ///
+ public partial class ManagedClusterAddonProfileIdentity : UserAssignedIdentity
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterAddonProfileIdentity class.
+ ///
+ public ManagedClusterAddonProfileIdentity()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterAddonProfileIdentity 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 ManagedClusterAddonProfileIdentity(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/ManagedClusterAgentPoolProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterAgentPoolProfile.cs
index 357545428fe3b..4cc4eb0b61ae5 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
@@ -118,10 +118,28 @@ public ManagedClusterAgentPoolProfile()
/// when creating the managed cluster.
/// The current deployment or
/// provisioning state, which only appears in the response.
- /// (PREVIEW) Availability zones for
- /// nodes. Must use VirtualMachineScaleSets AgentPoolType.
- public ManagedClusterAgentPoolProfile(int count, string vmSize, string name, int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList))
- : base(count, vmSize, osDiskSizeGB, vnetSubnetID, maxPods, osType, maxCount, minCount, enableAutoScaling, type, orchestratorVersion, provisioningState, availabilityZones)
+ /// Availability zones for nodes. Must
+ /// use VirtualMachineScaleSets AgentPoolType.
+ /// Enable public IP for nodes
+ /// ScaleSetPriority to be used to
+ /// specify virtual machine scale set priority. Default to regular.
+ /// Possible values include: 'Spot', 'Low', 'Regular'
+ /// ScaleSetEvictionPolicy to be
+ /// used to specify eviction policy for Spot or low priority virtual
+ /// machine scale set. Default to Delete. Possible values include:
+ /// 'Delete', 'Deallocate'
+ /// SpotMaxPrice to be used to specify the
+ /// maximum price you are willing to pay in US Dollars. Possible values
+ /// are any decimal value greater than zero or -1 which indicates
+ /// default price to be up-to on-demand.
+ /// Agent pool tags to be persisted on the agent
+ /// pool virtual machine scale set.
+ /// Agent pool node labels to be persisted
+ /// across all nodes in agent pool.
+ /// Taints added to new nodes during node pool
+ /// create and scale. For example, key=value:NoSchedule.
+ public ManagedClusterAgentPoolProfile(int count, string vmSize, string name, int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), double? spotMaxPrice = default(double?), IDictionary tags = default(IDictionary), IDictionary nodeLabels = default(IDictionary), IList nodeTaints = default(IList))
+ : base(count, vmSize, osDiskSizeGB, vnetSubnetID, maxPods, osType, maxCount, minCount, enableAutoScaling, type, orchestratorVersion, provisioningState, availabilityZones, enableNodePublicIP, scaleSetPriority, scaleSetEvictionPolicy, spotMaxPrice, tags, nodeLabels, nodeTaints)
{
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 6e86f0cc9df6c..8db709962effa 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
@@ -116,9 +116,27 @@ public ManagedClusterAgentPoolProfileProperties()
/// when creating the managed cluster.
/// The current deployment or
/// provisioning state, which only appears in the response.
- /// (PREVIEW) Availability zones for
- /// nodes. Must use VirtualMachineScaleSets AgentPoolType.
- public ManagedClusterAgentPoolProfileProperties(int count, string vmSize, int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList))
+ /// Availability zones for nodes. Must
+ /// use VirtualMachineScaleSets AgentPoolType.
+ /// Enable public IP for nodes
+ /// ScaleSetPriority to be used to
+ /// specify virtual machine scale set priority. Default to regular.
+ /// Possible values include: 'Spot', 'Low', 'Regular'
+ /// ScaleSetEvictionPolicy to be
+ /// used to specify eviction policy for Spot or low priority virtual
+ /// machine scale set. Default to Delete. Possible values include:
+ /// 'Delete', 'Deallocate'
+ /// SpotMaxPrice to be used to specify the
+ /// maximum price you are willing to pay in US Dollars. Possible values
+ /// are any decimal value greater than zero or -1 which indicates
+ /// default price to be up-to on-demand.
+ /// Agent pool tags to be persisted on the agent
+ /// pool virtual machine scale set.
+ /// Agent pool node labels to be persisted
+ /// across all nodes in agent pool.
+ /// Taints added to new nodes during node pool
+ /// create and scale. For example, key=value:NoSchedule.
+ public ManagedClusterAgentPoolProfileProperties(int count, string vmSize, int? osDiskSizeGB = default(int?), string vnetSubnetID = default(string), int? maxPods = default(int?), string osType = default(string), int? maxCount = default(int?), int? minCount = default(int?), bool? enableAutoScaling = default(bool?), string type = default(string), string orchestratorVersion = default(string), string provisioningState = default(string), IList availabilityZones = default(IList), bool? enableNodePublicIP = default(bool?), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), double? spotMaxPrice = default(double?), IDictionary tags = default(IDictionary), IDictionary nodeLabels = default(IDictionary), IList nodeTaints = default(IList))
{
Count = count;
VmSize = vmSize;
@@ -133,6 +151,13 @@ public ManagedClusterAgentPoolProfileProperties()
OrchestratorVersion = orchestratorVersion;
ProvisioningState = provisioningState;
AvailabilityZones = availabilityZones;
+ EnableNodePublicIP = enableNodePublicIP;
+ ScaleSetPriority = scaleSetPriority;
+ ScaleSetEvictionPolicy = scaleSetEvictionPolicy;
+ SpotMaxPrice = spotMaxPrice;
+ Tags = tags;
+ NodeLabels = nodeLabels;
+ NodeTaints = nodeTaints;
CustomInit();
}
@@ -279,12 +304,64 @@ public ManagedClusterAgentPoolProfileProperties()
public string ProvisioningState { get; private set; }
///
- /// Gets or sets (PREVIEW) Availability zones for nodes. Must use
+ /// Gets or sets availability zones for nodes. Must use
/// VirtualMachineScaleSets AgentPoolType.
///
[JsonProperty(PropertyName = "availabilityZones")]
public IList AvailabilityZones { get; set; }
+ ///
+ /// Gets or sets enable public IP for nodes
+ ///
+ [JsonProperty(PropertyName = "enableNodePublicIP")]
+ public bool? EnableNodePublicIP { get; set; }
+
+ ///
+ /// Gets or sets scaleSetPriority to be used to specify virtual machine
+ /// scale set priority. Default to regular. Possible values include:
+ /// 'Spot', 'Low', 'Regular'
+ ///
+ [JsonProperty(PropertyName = "scaleSetPriority")]
+ public string ScaleSetPriority { get; set; }
+
+ ///
+ /// Gets or sets scaleSetEvictionPolicy to be used to specify eviction
+ /// policy for Spot or low priority virtual machine scale set. Default
+ /// to Delete. Possible values include: 'Delete', 'Deallocate'
+ ///
+ [JsonProperty(PropertyName = "scaleSetEvictionPolicy")]
+ public string ScaleSetEvictionPolicy { get; set; }
+
+ ///
+ /// Gets or sets spotMaxPrice to be used to specify the maximum price
+ /// you are willing to pay in US Dollars. Possible values are any
+ /// decimal value greater than zero or -1 which indicates default price
+ /// to be up-to on-demand.
+ ///
+ [JsonProperty(PropertyName = "spotMaxPrice")]
+ public double? SpotMaxPrice { get; set; }
+
+ ///
+ /// Gets or sets agent pool tags to be persisted on the agent pool
+ /// virtual machine scale set.
+ ///
+ [JsonProperty(PropertyName = "tags")]
+ public IDictionary Tags { get; set; }
+
+ ///
+ /// Gets or sets agent pool node labels to be persisted across all
+ /// nodes in agent pool.
+ ///
+ [JsonProperty(PropertyName = "nodeLabels")]
+ public IDictionary NodeLabels { get; set; }
+
+ ///
+ /// Gets or sets taints added to new nodes during node pool create and
+ /// scale. For example, key=value:NoSchedule.
+ ///
+ [JsonProperty(PropertyName = "nodeTaints")]
+ public IList NodeTaints { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs
new file mode 100644
index 0000000000000..e3a2c4740ceaa
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfile.cs
@@ -0,0 +1,142 @@
+//
+// 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 load balancer.
+ ///
+ public partial class ManagedClusterLoadBalancerProfile
+ {
+ ///
+ /// Initializes a new instance of the ManagedClusterLoadBalancerProfile
+ /// class.
+ ///
+ public ManagedClusterLoadBalancerProfile()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ManagedClusterLoadBalancerProfile
+ /// class.
+ ///
+ /// Desired managed outbound IPs for
+ /// the cluster load balancer.
+ /// Desired outbound IP Prefix
+ /// resources for the cluster load balancer.
+ /// Desired outbound IP resources for the
+ /// cluster load balancer.
+ /// The effective outbound IP
+ /// resources of the cluster load balancer.
+ /// Desired number of allocated
+ /// SNAT ports per VM. Allowed values must be in the range of 0 to
+ /// 64000 (inclusive). The default value is 0 which results in Azure
+ /// dynamically allocating ports.
+ /// Desired outbound flow idle
+ /// timeout in minutes. Allowed values must be in the range of 4 to 120
+ /// (inclusive). The default value is 30 minutes.
+ public ManagedClusterLoadBalancerProfile(ManagedClusterLoadBalancerProfileManagedOutboundIPs managedOutboundIPs = default(ManagedClusterLoadBalancerProfileManagedOutboundIPs), ManagedClusterLoadBalancerProfileOutboundIPPrefixes outboundIPPrefixes = default(ManagedClusterLoadBalancerProfileOutboundIPPrefixes), ManagedClusterLoadBalancerProfileOutboundIPs outboundIPs = default(ManagedClusterLoadBalancerProfileOutboundIPs), IList effectiveOutboundIPs = default(IList), int? allocatedOutboundPorts = default(int?), int? idleTimeoutInMinutes = default(int?))
+ {
+ ManagedOutboundIPs = managedOutboundIPs;
+ OutboundIPPrefixes = outboundIPPrefixes;
+ OutboundIPs = outboundIPs;
+ EffectiveOutboundIPs = effectiveOutboundIPs;
+ AllocatedOutboundPorts = allocatedOutboundPorts;
+ IdleTimeoutInMinutes = idleTimeoutInMinutes;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets desired managed outbound IPs for the cluster load
+ /// balancer.
+ ///
+ [JsonProperty(PropertyName = "managedOutboundIPs")]
+ public ManagedClusterLoadBalancerProfileManagedOutboundIPs ManagedOutboundIPs { get; set; }
+
+ ///
+ /// Gets or sets desired outbound IP Prefix resources for the cluster
+ /// load balancer.
+ ///
+ [JsonProperty(PropertyName = "outboundIPPrefixes")]
+ public ManagedClusterLoadBalancerProfileOutboundIPPrefixes OutboundIPPrefixes { get; set; }
+
+ ///
+ /// Gets or sets desired outbound IP resources for the cluster load
+ /// balancer.
+ ///
+ [JsonProperty(PropertyName = "outboundIPs")]
+ public ManagedClusterLoadBalancerProfileOutboundIPs OutboundIPs { get; set; }
+
+ ///
+ /// Gets or sets the effective outbound IP resources of the cluster
+ /// load balancer.
+ ///
+ [JsonProperty(PropertyName = "effectiveOutboundIPs")]
+ public IList EffectiveOutboundIPs { get; set; }
+
+ ///
+ /// Gets or sets desired number of allocated SNAT ports per VM. Allowed
+ /// values must be in the range of 0 to 64000 (inclusive). The default
+ /// value is 0 which results in Azure dynamically allocating ports.
+ ///
+ [JsonProperty(PropertyName = "allocatedOutboundPorts")]
+ public int? AllocatedOutboundPorts { get; set; }
+
+ ///
+ /// Gets or sets desired outbound flow idle timeout in minutes. Allowed
+ /// values must be in the range of 4 to 120 (inclusive). The default
+ /// value is 30 minutes.
+ ///
+ [JsonProperty(PropertyName = "idleTimeoutInMinutes")]
+ public int? IdleTimeoutInMinutes { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ManagedOutboundIPs != null)
+ {
+ ManagedOutboundIPs.Validate();
+ }
+ if (AllocatedOutboundPorts > 64000)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "AllocatedOutboundPorts", 64000);
+ }
+ if (AllocatedOutboundPorts < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "AllocatedOutboundPorts", 0);
+ }
+ 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/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.cs
new file mode 100644
index 0000000000000..d72f7f793e37c
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.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;
+
+ ///
+ /// Desired managed outbound IPs for the cluster load balancer.
+ ///
+ public partial class ManagedClusterLoadBalancerProfileManagedOutboundIPs
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterLoadBalancerProfileManagedOutboundIPs class.
+ ///
+ public ManagedClusterLoadBalancerProfileManagedOutboundIPs()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterLoadBalancerProfileManagedOutboundIPs class.
+ ///
+ /// Desired number of outbound IP created/managed
+ /// by Azure for the cluster load balancer. Allowed values must be in
+ /// the range of 1 to 100 (inclusive). The default value is 1.
+ public ManagedClusterLoadBalancerProfileManagedOutboundIPs(int? count = default(int?))
+ {
+ Count = count;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets desired number of outbound IP created/managed by Azure
+ /// for the cluster load balancer. Allowed values must be in the range
+ /// of 1 to 100 (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 > 100)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Count", 100);
+ }
+ if (Count < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Count", 1);
+ }
+ }
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs
new file mode 100644
index 0000000000000..e4220de6974b6
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPPrefixes.cs
@@ -0,0 +1,56 @@
+//
+// 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.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Desired outbound IP Prefix resources for the cluster load balancer.
+ ///
+ public partial class ManagedClusterLoadBalancerProfileOutboundIPPrefixes
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterLoadBalancerProfileOutboundIPPrefixes class.
+ ///
+ public ManagedClusterLoadBalancerProfileOutboundIPPrefixes()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterLoadBalancerProfileOutboundIPPrefixes class.
+ ///
+ /// A list of public IP prefix
+ /// resources.
+ public ManagedClusterLoadBalancerProfileOutboundIPPrefixes(IList publicIPPrefixes = default(IList))
+ {
+ PublicIPPrefixes = publicIPPrefixes;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets a list of public IP prefix resources.
+ ///
+ [JsonProperty(PropertyName = "publicIPPrefixes")]
+ public IList PublicIPPrefixes { get; set; }
+
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs
new file mode 100644
index 0000000000000..8c6863afa7cbf
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterLoadBalancerProfileOutboundIPs.cs
@@ -0,0 +1,55 @@
+//
+// 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.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Desired outbound IP resources for the cluster load balancer.
+ ///
+ public partial class ManagedClusterLoadBalancerProfileOutboundIPs
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterLoadBalancerProfileOutboundIPs class.
+ ///
+ public ManagedClusterLoadBalancerProfileOutboundIPs()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedClusterLoadBalancerProfileOutboundIPs class.
+ ///
+ /// A list of public IP resources.
+ public ManagedClusterLoadBalancerProfileOutboundIPs(IList publicIPs = default(IList))
+ {
+ PublicIPs = publicIPs;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets a list of public IP resources.
+ ///
+ [JsonProperty(PropertyName = "publicIPs")]
+ public IList PublicIPs { get; set; }
+
+ }
+}
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
new file mode 100644
index 0000000000000..54d95601f6070
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ManagedClusterPropertiesIdentityProfileValue.cs
@@ -0,0 +1,48 @@
+//
+// 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/NetworkMode.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/NetworkMode.cs
new file mode 100644
index 0000000000000..10b074c11ffce
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/NetworkMode.cs
@@ -0,0 +1,22 @@
+//
+// 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 NetworkMode.
+ ///
+ public static class NetworkMode
+ {
+ public const string Transparent = "transparent";
+ public const string Bridge = "bridge";
+ }
+}
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
new file mode 100644
index 0000000000000..642cefaa5d57a
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/OutboundType.cs
@@ -0,0 +1,22 @@
+//
+// 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 OutboundType.
+ ///
+ public static class OutboundType
+ {
+ public const string LoadBalancer = "loadBalancer";
+ public const string UserDefinedRouting = "userDefinedRouting";
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ResourceReference.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ResourceReference.cs
new file mode 100644
index 0000000000000..d272c94add12b
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ResourceReference.cs
@@ -0,0 +1,51 @@
+//
+// 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;
+
+ ///
+ /// A reference to an Azure resource.
+ ///
+ public partial class ResourceReference
+ {
+ ///
+ /// Initializes a new instance of the ResourceReference class.
+ ///
+ public ResourceReference()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ResourceReference class.
+ ///
+ /// The fully qualified Azure resource id.
+ public ResourceReference(string id = default(string))
+ {
+ Id = id;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the fully qualified Azure resource id.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; set; }
+
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetEvictionPolicy.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetEvictionPolicy.cs
new file mode 100644
index 0000000000000..25bd3db49c442
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetEvictionPolicy.cs
@@ -0,0 +1,22 @@
+//
+// 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 ScaleSetEvictionPolicy.
+ ///
+ public static class ScaleSetEvictionPolicy
+ {
+ public const string Delete = "Delete";
+ public const string Deallocate = "Deallocate";
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetPriority.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetPriority.cs
new file mode 100644
index 0000000000000..a40bbe613d2cc
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/ScaleSetPriority.cs
@@ -0,0 +1,23 @@
+//
+// 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 ScaleSetPriority.
+ ///
+ public static class ScaleSetPriority
+ {
+ public const string Spot = "Spot";
+ public const string Low = "Low";
+ public const string Regular = "Regular";
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/UserAssignedIdentity.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/UserAssignedIdentity.cs
new file mode 100644
index 0000000000000..70a04cf5899bc
--- /dev/null
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Models/UserAssignedIdentity.cs
@@ -0,0 +1,67 @@
+//
+// 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;
+
+ public partial class UserAssignedIdentity
+ {
+ ///
+ /// Initializes a new instance of the UserAssignedIdentity class.
+ ///
+ public UserAssignedIdentity()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the UserAssignedIdentity 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 UserAssignedIdentity(string resourceId = default(string), string clientId = default(string), string objectId = default(string))
+ {
+ ResourceId = resourceId;
+ ClientId = clientId;
+ ObjectId = objectId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the resource id of the user assigned identity.
+ ///
+ [JsonProperty(PropertyName = "resourceId")]
+ public string ResourceId { get; set; }
+
+ ///
+ /// Gets or sets the client id of the user assigned identity.
+ ///
+ [JsonProperty(PropertyName = "clientId")]
+ public string ClientId { get; set; }
+
+ ///
+ /// Gets or sets the object id of the user assigned identity.
+ ///
+ [JsonProperty(PropertyName = "objectId")]
+ public string ObjectId { get; set; }
+
+ }
+}
diff --git a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Operations.cs b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Operations.cs
index ec90823197fa8..1a704d8d6e462 100644
--- a/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Operations.cs
+++ b/sdk/containerservice/Microsoft.Azure.Management.ContainerService/src/Generated/Operations.cs
@@ -70,7 +70,7 @@ internal Operations(ContainerServiceClient client)
///
public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- string apiVersion = "2019-04-01";
+ string apiVersion = "2020-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
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 e35757d720208..60b8091a498b6 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,12 +19,12 @@ public static IEnumerable> ApiInfo_ContainerServic
{
return new Tuple[]
{
- new Tuple("ContainerService", "AgentPools", "2019-04-01"),
+ new Tuple("ContainerService", "AgentPools", "2020-02-01"),
new Tuple("ContainerService", "ContainerServices", "2017-07-01"),
- new Tuple("ContainerService", "ContainerServices", "2019-04-01"),
- new Tuple("ContainerService", "ManagedClusters", "2019-04-01"),
+ new Tuple("ContainerService", "ContainerServices", "2019-08-01"),
+ new Tuple("ContainerService", "ManagedClusters", "2020-02-01"),
new Tuple("ContainerService", "OpenShiftManagedClusters", "2019-04-30"),
- new Tuple("ContainerService", "Operations", "2019-04-01"),
+ new Tuple("ContainerService", "Operations", "2020-02-01"),
}.AsEnumerable();
}
}