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

Update containerinstance client to the 2021-03-01 api #22701

Merged
merged 12 commits into from
Aug 10, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerinstance/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Users\nochangi\DEV\azure-sdk-for-net\sdk
2020-06-21 05:01:44 UTC
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerinstance/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Users\josephporter\source\azure-sdk-for-net\sdk
2021-08-03 18:23:56 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: ae8d69cc6c78331c24b13951979bf171bf132d26
Commit: c25e3a8c81feb4e965d65e8584262fea42b5da0a
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
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>ContainerInstance_2019-12-01;</AzureApiTag>
<AzureApiTag>ContainerInstance_2021-03-01;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26228.4
# Visual Studio Version 16
VisualStudioVersion = 16.0.31515.178
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.ContainerInstance.Tests", "tests\Microsoft.Azure.Management.ContainerInstance.Tests.csproj", "{80C5B642-F93C-4E68-9B37-04565D3CF6AB}"
EndProject
Expand All @@ -25,4 +25,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CB56698B-16FB-484E-B974-BD1C1FF36CEF}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
namespace Microsoft.Azure.Management.ContainerInstance
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// ContainersOperations operations.
/// </summary>
internal partial class ContainersOperations : IServiceOperations<ContainerInstanceManagementClient>, IContainersOperations
{
/// <summary>
/// Get the logs for a specified container instance.
/// </summary>
/// <remarks>
/// Get the logs for a specified container instance in a specified resource
/// group and container group.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='containerGroupName'>
/// The name of the container group.
/// </param>
/// <param name='containerName'>
/// The name of the container instance.
/// </param>
/// <param name='tail'>
/// The number of lines to show from the tail of the container instance log. If
/// not provided, all available logs are shown up to 4mb.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="ValidationException">
/// Thrown when a required parameter is null
/// </exception>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<Logs>> ListLogsWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, int? tail, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken = default(CancellationToken))
{
return await ListLogsWithHttpMessagesAsync(resourceGroupName: resourceGroupName, containerGroupName: containerGroupName, containerName: containerName, tail: tail, timestamps: false, customHeaders: customHeaders, cancellationToken: cancellationToken);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
namespace Microsoft.Azure.Management.ContainerInstance
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for ContainersOperations.
/// </summary>
public static partial class ContainersOperationsExtensions
{
/// <summary>
/// Get the logs for a specified container instance.
/// </summary>
/// <remarks>
/// Get the logs for a specified container instance in a specified resource
/// group and container group.
/// </remarks>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='containerGroupName'>
/// The name of the container group.
/// </param>
/// <param name='containerName'>
/// The name of the container instance.
/// </param>
/// <param name='tail'>
/// The number of lines to show from the tail of the container instance log. If
/// not provided, all available logs are shown up to 4mb.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<Logs> ListLogsAsync(this IContainersOperations operations, string resourceGroupName, string containerGroupName, string containerName, int? tail, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListLogsWithHttpMessagesAsync(resourceGroupName, containerGroupName, containerName, tail, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
namespace Microsoft.Azure.Management.ContainerInstance
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// ContainersOperations operations.
/// </summary>
public partial interface IContainersOperations
{
/// <summary>
/// Get the logs for a specified container instance.
/// </summary>
/// <remarks>
/// Get the logs for a specified container instance in a specified
/// resource group and container group.
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='containerGroupName'>
/// The name of the container group.
/// </param>
/// <param name='containerName'>
/// The name of the container instance.
/// </param>
/// <param name='tail'>
/// The number of lines to show from the tail of the container instance
/// log. If not provided, all available logs are shown up to 4mb.
/// </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<Logs>> ListLogsWithHttpMessagesAsync(string resourceGroupName, string containerGroupName, string containerName, int? tail, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken = default(CancellationToken));
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading