Skip to content

Commit

Permalink
[Compute] Gallery Application APIs (#7232)
Browse files Browse the repository at this point in the history
* Gallery Application APIs and adding HyperVGeneration to VM image

* Add Gallery Application test
  • Loading branch information
hyonholee authored and isra-fel committed Aug 9, 2019
1 parent 267d4ea commit 1a42a79
Show file tree
Hide file tree
Showing 24 changed files with 7,788 additions and 60 deletions.
6 changes: 3 additions & 3 deletions eng/mgmt/mgmtmetadata/compute_resource-manager.txt
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/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=G:\Code\azure-sdk-for-net\sdk
2019-08-02 00:21:49 UTC
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=E:\hylee-sdk\august\sdk
2019-08-08 21:45:07 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: ab88105b1fd4d8b982869c43b1fbf365f24fc0af
Commit: 397e41997764b35729dd4f39ec80a0f98c4456eb
AutoRest information
Requested version: latest
Bootstrapper version: autorest@2.0.4283
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,16 @@ public partial class ComputeManagementClient : ServiceClient<ComputeManagementCl
/// </summary>
public virtual IGalleryImageVersionsOperations GalleryImageVersions { get; private set; }

/// <summary>
/// Gets the IGalleryApplicationsOperations.
/// </summary>
public virtual IGalleryApplicationsOperations GalleryApplications { get; private set; }

/// <summary>
/// Gets the IGalleryApplicationVersionsOperations.
/// </summary>
public virtual IGalleryApplicationVersionsOperations GalleryApplicationVersions { get; private set; }

/// <summary>
/// Gets the IContainerServicesOperations.
/// </summary>
Expand Down Expand Up @@ -461,6 +471,8 @@ private void Initialize()
Galleries = new GalleriesOperations(this);
GalleryImages = new GalleryImagesOperations(this);
GalleryImageVersions = new GalleryImageVersionsOperations(this);
GalleryApplications = new GalleryApplicationsOperations(this);
GalleryApplicationVersions = new GalleryApplicationVersionsOperations(this);
ContainerServices = new ContainerServicesOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
AcceptLanguage = "en-US";
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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 @@ -186,6 +186,16 @@ public partial interface IComputeManagementClient : System.IDisposable
/// </summary>
IGalleryImageVersionsOperations GalleryImageVersions { get; }

/// <summary>
/// Gets the IGalleryApplicationsOperations.
/// </summary>
IGalleryApplicationsOperations GalleryApplications { get; }

/// <summary>
/// Gets the IGalleryApplicationVersionsOperations.
/// </summary>
IGalleryApplicationVersionsOperations GalleryApplicationVersions { get; }

/// <summary>
/// Gets the IContainerServicesOperations.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
// <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.Compute
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// GalleryApplicationVersionsOperations operations.
/// </summary>
public partial interface IGalleryApplicationVersionsOperations
{
/// <summary>
/// Create or update a gallery Application Version.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Application Gallery in which the Application
/// Definition resides.
/// </param>
/// <param name='galleryApplicationName'>
/// The name of the gallery Application Definition in which the
/// Application Version is to be created.
/// </param>
/// <param name='galleryApplicationVersionName'>
/// The name of the gallery Application Version to be created. Needs to
/// follow semantic version name pattern: The allowed characters are
/// digit and period. Digits must be within the range of a 32-bit
/// integer. Format:
/// &lt;MajorVersion&gt;.&lt;MinorVersion&gt;.&lt;Patch&gt;
/// </param>
/// <param name='galleryApplicationVersion'>
/// Parameters supplied to the create or update gallery Application
/// Version 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<GalleryApplicationVersion>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Retrieves information about a gallery Application Version.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Application Gallery in which the Application
/// Definition resides.
/// </param>
/// <param name='galleryApplicationName'>
/// The name of the gallery Application Definition in which the
/// Application Version resides.
/// </param>
/// <param name='galleryApplicationVersionName'>
/// The name of the gallery Application Version to be retrieved.
/// </param>
/// <param name='expand'>
/// The expand expression to apply on the operation. Possible values
/// include: 'ReplicationStatus'
/// </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<GalleryApplicationVersion>> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, string expand = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete a gallery Application Version.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Application Gallery in which the Application
/// Definition resides.
/// </param>
/// <param name='galleryApplicationName'>
/// The name of the gallery Application Definition in which the
/// Application Version resides.
/// </param>
/// <param name='galleryApplicationVersionName'>
/// The name of the gallery Application Version to be deleted.
/// </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 galleryName, string galleryApplicationName, string galleryApplicationVersionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// List gallery Application Versions in a gallery Application
/// Definition.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Application Gallery in which the Application
/// Definition resides.
/// </param>
/// <param name='galleryApplicationName'>
/// The name of the Shared Application Gallery Application Definition
/// from which the Application Versions are to be listed.
/// </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<GalleryApplicationVersion>>> ListByGalleryApplicationWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Create or update a gallery Application Version.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Application Gallery in which the Application
/// Definition resides.
/// </param>
/// <param name='galleryApplicationName'>
/// The name of the gallery Application Definition in which the
/// Application Version is to be created.
/// </param>
/// <param name='galleryApplicationVersionName'>
/// The name of the gallery Application Version to be created. Needs to
/// follow semantic version name pattern: The allowed characters are
/// digit and period. Digits must be within the range of a 32-bit
/// integer. Format:
/// &lt;MajorVersion&gt;.&lt;MinorVersion&gt;.&lt;Patch&gt;
/// </param>
/// <param name='galleryApplicationVersion'>
/// Parameters supplied to the create or update gallery Application
/// Version 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<GalleryApplicationVersion>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName, GalleryApplicationVersion galleryApplicationVersion, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete a gallery Application Version.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Application Gallery in which the Application
/// Definition resides.
/// </param>
/// <param name='galleryApplicationName'>
/// The name of the gallery Application Definition in which the
/// Application Version resides.
/// </param>
/// <param name='galleryApplicationVersionName'>
/// The name of the gallery Application Version to be deleted.
/// </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 galleryName, string galleryApplicationName, string galleryApplicationVersionName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// List gallery Application Versions in a gallery Application
/// Definition.
/// </summary>
/// <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<GalleryApplicationVersion>>> ListByGalleryApplicationNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Loading

0 comments on commit 1a42a79

Please sign in to comment.