Skip to content

Commit

Permalink
[AutoPR Microsoft.Azure.Management.ContainerService] fix getting agen…
Browse files Browse the repository at this point in the history
…t pool available versions api path (#203)

* Generated from 25369344fbeb2f169b5bc40b9c4a8a99c42503e7 (#194)

chore: jsonfmt servicebus

* Generated from 7a35ba99fa36d4a95daf9c4f7c88ae0867cb0825 (#195)

Remove common from examples.

* Generated from 7cd1aa92499c42947998cf1570e19ac0087fda19 (#193)

missing section for compute 2019-07-01

* Generated from 96e53c8b30b238235fadb02b5ebf75533039ab91

fix getting agent pool available versions api path
  • Loading branch information
openapi-sdkautomation[bot] authored and azuresdkci committed Sep 19, 2019
1 parent 74c9258 commit 21fc8fd
Show file tree
Hide file tree
Showing 24 changed files with 1,531 additions and 35 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,106 @@ public static void Delete(this IAgentPoolsOperations operations, string resource
(await operations.DeleteWithHttpMessagesAsync(resourceGroupName, resourceName, agentPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
/// Gets upgrade profile for an agent pool.
/// </summary>
/// <remarks>
/// Gets the details of the upgrade profile for an agent pool with a specified
/// resource group and managed cluster name.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='resourceName'>
/// The name of the managed cluster resource.
/// </param>
/// <param name='agentPoolName'>
/// The name of the agent pool.
/// </param>
public static AgentPoolUpgradeProfile GetUpgradeProfile(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName, string agentPoolName)
{
return operations.GetUpgradeProfileAsync(resourceGroupName, resourceName, agentPoolName).GetAwaiter().GetResult();
}

/// <summary>
/// Gets upgrade profile for an agent pool.
/// </summary>
/// <remarks>
/// Gets the details of the upgrade profile for an agent pool with a specified
/// resource group and managed cluster name.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='resourceName'>
/// The name of the managed cluster resource.
/// </param>
/// <param name='agentPoolName'>
/// The name of the agent pool.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AgentPoolUpgradeProfile> 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;
}
}

/// <summary>
/// Gets a list of supported versions for the specified agent pool.
/// </summary>
/// <remarks>
/// Gets a list of supported versions for the specified agent pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='resourceName'>
/// The name of the managed cluster resource.
/// </param>
public static AgentPoolAvailableVersions GetAvailableAgentPoolVersions(this IAgentPoolsOperations operations, string resourceGroupName, string resourceName)
{
return operations.GetAvailableAgentPoolVersionsAsync(resourceGroupName, resourceName).GetAwaiter().GetResult();
}

/// <summary>
/// Gets a list of supported versions for the specified agent pool.
/// </summary>
/// <remarks>
/// Gets a list of supported versions for the specified agent pool.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='resourceName'>
/// The name of the managed cluster resource.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<AgentPoolAvailableVersions> 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;
}
}

/// <summary>
/// Creates or updates an agent pool.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,66 @@ public partial interface IAgentPoolsOperations
/// </exception>
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets upgrade profile for an agent pool.
/// </summary>
/// <remarks>
/// Gets the details of the upgrade profile for an agent pool with a
/// specified resource group and managed cluster name.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='resourceName'>
/// The name of the managed cluster resource.
/// </param>
/// <param name='agentPoolName'>
/// The name of the agent pool.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<AgentPoolUpgradeProfile>> GetUpgradeProfileWithHttpMessagesAsync(string resourceGroupName, string resourceName, string agentPoolName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets a list of supported versions for the specified agent pool.
/// </summary>
/// <remarks>
/// Gets a list of supported versions for the specified agent pool.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='resourceName'>
/// The name of the managed cluster resource.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<AgentPoolAvailableVersions>> GetAvailableAgentPoolVersionsWithHttpMessagesAsync(string resourceGroupName, string resourceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates or updates an agent pool.
/// </summary>
/// <remarks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2019-04-01";
string apiVersion = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -278,7 +278,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
}
string apiVersion = "2019-04-01";
string apiVersion = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -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 = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -723,7 +723,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "roleName");
}
string apiVersion = "2019-04-01";
string apiVersion = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -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 = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -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 = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1385,7 +1385,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 = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1756,7 +1756,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
parameters.Validate();
}
string apiVersion = "2019-04-01";
string apiVersion = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2003,7 +2003,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 = "2019-08-01";
TagsObject parameters = new TagsObject();
if (tags != null)
{
Expand Down Expand Up @@ -2231,7 +2231,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 = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2441,7 +2441,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
parameters.Validate();
}
string apiVersion = "2019-04-01";
string apiVersion = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2658,7 +2658,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
parameters.Validate();
}
string apiVersion = "2019-04-01";
string apiVersion = "2019-08-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,17 @@ public AgentPool()
/// provisioning state, which only appears in the response.</param>
/// <param name="availabilityZones">(PREVIEW) Availability zones for
/// nodes. Must use VirtualMachineScaleSets AgentPoolType.</param>
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<string> availabilityZones = default(IList<string>))
/// <param name="enableNodePublicIP">Enable public IP for nodes</param>
/// <param name="scaleSetPriority">ScaleSetPriority to be used to
/// specify virtual machine scale set priority. Default to regular.
/// Possible values include: 'Low', 'Regular'</param>
/// <param name="scaleSetEvictionPolicy">ScaleSetEvictionPolicy to be
/// used to specify eviction policy for low priority virtual machine
/// scale set. Default to Delete. Possible values include: 'Delete',
/// 'Deallocate'</param>
/// <param name="nodeTaints">Taints added to new nodes during node pool
/// create and scale. For example, key=value:NoSchedule.</param>
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<string> availabilityZones = default(IList<string>), bool? enableNodePublicIP = default(bool?), string scaleSetPriority = default(string), string scaleSetEvictionPolicy = default(string), IList<string> nodeTaints = default(IList<string>))
: base(id, name, type)
{
Count = count;
Expand All @@ -139,6 +149,10 @@ public AgentPool()
OrchestratorVersion = orchestratorVersion;
ProvisioningState = provisioningState;
AvailabilityZones = availabilityZones;
EnableNodePublicIP = enableNodePublicIP;
ScaleSetPriority = scaleSetPriority;
ScaleSetEvictionPolicy = scaleSetEvictionPolicy;
NodeTaints = nodeTaints;
CustomInit();
}

Expand Down Expand Up @@ -291,6 +305,35 @@ public AgentPool()
[JsonProperty(PropertyName = "properties.availabilityZones")]
public IList<string> AvailabilityZones { get; set; }

/// <summary>
/// Gets or sets enable public IP for nodes
/// </summary>
[JsonProperty(PropertyName = "properties.enableNodePublicIP")]
public bool? EnableNodePublicIP { get; set; }

/// <summary>
/// Gets or sets scaleSetPriority to be used to specify virtual machine
/// scale set priority. Default to regular. Possible values include:
/// 'Low', 'Regular'
/// </summary>
[JsonProperty(PropertyName = "properties.scaleSetPriority")]
public string ScaleSetPriority { get; set; }

/// <summary>
/// Gets or sets scaleSetEvictionPolicy to be used to specify eviction
/// policy for low priority virtual machine scale set. Default to
/// Delete. Possible values include: 'Delete', 'Deallocate'
/// </summary>
[JsonProperty(PropertyName = "properties.scaleSetEvictionPolicy")]
public string ScaleSetEvictionPolicy { get; set; }

/// <summary>
/// Gets or sets taints added to new nodes during node pool create and
/// scale. For example, key=value:NoSchedule.
/// </summary>
[JsonProperty(PropertyName = "properties.nodeTaints")]
public IList<string> NodeTaints { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Loading

0 comments on commit 21fc8fd

Please sign in to comment.