Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoPr-ContainerService-xizhamsft-REST Spec PrNumber 5406 #5480

Merged
merged 1 commit into from
Mar 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/SDKs/ContainerService/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>ContainerService_2017-07-01;ContainerService_2017-09-30;ContainerService_2018-08-01-preview;ContainerService_2018-09-30-preview;</AzureApiTag>
<AzureApiTag>ContainerService_2019-02-01;ContainerService_2017-07-01;ContainerService_2017-09-30;ContainerService_2018-09-30-preview;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public partial class ContainerServiceClient : ServiceClient<ContainerServiceClie
/// </summary>
public virtual IManagedClustersOperations ManagedClusters { get; private set; }

/// <summary>
/// Gets the IAgentPoolsOperations.
/// </summary>
public virtual IAgentPoolsOperations AgentPools { get; private set; }

/// <summary>
/// Initializes a new instance of the ContainerServiceClient class.
/// </summary>
Expand Down Expand Up @@ -336,6 +341,7 @@ private void Initialize()
ContainerServices = new ContainerServicesOperations(this);
Operations = new Operations(this);
ManagedClusters = new ManagedClustersOperations(this);
AgentPools = new AgentPoolsOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.ContainerService
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// AgentPoolsOperations operations.
/// </summary>
public partial interface IAgentPoolsOperations
{
/// <summary>
/// Gets a list of agent pools in the specified managed cluster.
/// </summary>
/// <remarks>
/// Gets a list of agent pools in the specified managed cluster. The
/// operation returns properties of each agent pool.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='managedClusterName'>
/// 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<IPage<AgentPool>>> ListWithHttpMessagesAsync(string resourceGroupName, string managedClusterName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets the agent pool.
/// </summary>
/// <remarks>
/// Gets the details of the agent pool by managed cluster and resource
/// group.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='managedClusterName'>
/// 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<AgentPool>> GetWithHttpMessagesAsync(string resourceGroupName, string managedClusterName, string agentPoolName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates or updates an agent pool.
/// </summary>
/// <remarks>
/// Creates or updates an agent pool in the specified managed cluster.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='managedClusterName'>
/// The name of the managed cluster resource.
/// </param>
/// <param name='agentPoolName'>
/// The name of the agent pool.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the Create or Update an agent pool
/// operation.
/// </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<AgentPool>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedClusterName, string agentPoolName, AgentPool parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes an agent pool.
/// </summary>
/// <remarks>
/// Deletes the agent pool in the specified managed cluster.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='managedClusterName'>
/// 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.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string managedClusterName, string agentPoolName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates or updates an agent pool.
/// </summary>
/// <remarks>
/// Creates or updates an agent pool in the specified managed cluster.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='managedClusterName'>
/// The name of the managed cluster resource.
/// </param>
/// <param name='agentPoolName'>
/// The name of the agent pool.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the Create or Update an agent pool
/// operation.
/// </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<AgentPool>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedClusterName, string agentPoolName, AgentPool parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes an agent pool.
/// </summary>
/// <remarks>
/// Deletes the agent pool in the specified managed cluster.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='managedClusterName'>
/// 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.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string managedClusterName, string agentPoolName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets a list of agent pools in the specified managed cluster.
/// </summary>
/// <remarks>
/// Gets a list of agent pools in the specified managed cluster. The
/// operation returns properties of each agent pool.
/// </remarks>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </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<IPage<AgentPool>>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,10 @@ public partial interface IContainerServiceClient : System.IDisposable
/// </summary>
IManagedClustersOperations ManagedClusters { get; }

/// <summary>
/// Gets the IAgentPoolsOperations.
/// </summary>
IAgentPoolsOperations AgentPools { get; }

}
}
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 = "2018-08-01-preview";
string apiVersion = "2019-02-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 = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -481,7 +481,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -693,7 +693,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "roleName");
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -900,7 +900,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1105,7 +1105,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1310,7 +1310,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1666,7 +1666,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
parameters.Validate();
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1898,7 +1898,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
TagsObject parameters = new TagsObject();
if (tags != null)
{
Expand Down Expand Up @@ -2111,7 +2111,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceName");
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2306,7 +2306,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
parameters.Validate();
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2508,7 +2508,7 @@ internal ManagedClustersOperations(ContainerServiceClient client)
{
parameters.Validate();
}
string apiVersion = "2018-08-01-preview";
string apiVersion = "2019-02-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Loading