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

SDK code for shared gallery, image features and blob as source #19472

Merged
merged 34 commits into from
Apr 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d57e4a2
save the auto-generation work
kangsun-ctrl Oct 11, 2020
ab94c6d
add gallery application version update auto-generation
kangsun-ctrl Oct 22, 2020
ecaa68e
nit, add new line
kangsun-ctrl Oct 22, 2020
565c469
update record json
kangsun-ctrl Oct 23, 2020
dfce18d
update record json and add new tests for caps gallery with sharing pr…
kangsun-ctrl Oct 23, 2020
41cff3c
Merge branch 'master' of https://github.com/kangsun-ctrl/azure-sdk-fo…
kangsun-ctrl Oct 26, 2020
548eb77
save work for gallery with sharing profile, caps side test
kangsun-ctrl Dec 3, 2020
0e06c30
update blob as source code
kangsun-ctrl Jan 16, 2021
84c8022
merge
kangsun-ctrl Jan 16, 2021
d88f514
uncheck shared gallery test which can not run right now
kangsun-ctrl Jan 20, 2021
eec14b5
merge
kangsun-ctrl Jan 28, 2021
2ea8208
save
kangsun-ctrl Feb 5, 2021
e50747f
save
kangsun-ctrl Feb 5, 2021
70ad6ef
add shared gallery tests
kangsun-ctrl Feb 8, 2021
051be54
generate files again
kangsun-ctrl Mar 12, 2021
891906e
Revert "generate files again"
kangsun-ctrl Mar 12, 2021
adf5678
update gallery
kangsun-ctrl Mar 12, 2021
c7ff79e
revert unnecessary change
kangsun-ctrl Mar 12, 2021
6237339
resolve merge conflict
kangsun-ctrl Mar 23, 2021
d069151
update examples
kangsun-ctrl Mar 30, 2021
a45f4b5
Merge branch 'cplat-gallery-build' into master
kangsun-ctrl Apr 5, 2021
f7e3bb1
Cplat gallery build (#20407)
grizzlytheodore Apr 14, 2021
5a4a269
Update AssemblyInfo.cs
grizzlytheodore Apr 14, 2021
3ea4d26
update, include all generated files
kangsun-ctrl Apr 15, 2021
aa81408
update
kangsun-ctrl Apr 15, 2021
4feba73
Update Microsoft.Azure.Management.Compute.csproj
grizzlytheodore Apr 15, 2021
6586933
nit
kangsun-ctrl Apr 15, 2021
4bb2445
Update Microsoft.Azure.Management.Compute.csproj
grizzlytheodore Apr 15, 2021
e128572
Update AssemblyInfo.cs
grizzlytheodore Apr 15, 2021
37e507a
Create AssemblyInfo.cs
grizzlytheodore Apr 15, 2021
883acac
commit
grizzlytheodore Apr 15, 2021
b48d52e
Merge branch 'galleryImage-preview' of https://github.com/Azure/azure…
kangsun-ctrl Apr 15, 2021
3160498
update, address comments
kangsun-ctrl Apr 19, 2021
1209e3f
update
kangsun-ctrl Apr 20, 2021
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
4 changes: 2 additions & 2 deletions eng/mgmt/mgmtmetadata/compute_resource-manager.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ 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=v2 --reflect-api-versions --csharp-sdks-folder=C:\git\azure-sdk-for-net\sdk
2021-03-22 15:21:44 UTC
2021-04-15 18:15:44 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 55bfefdb2c4c7564113c4968976ba97b02d643c4
Commit: f80541db7532f4e71e6f64c1bb1bde86b8620c67
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
<AzureApiTag>Compute_2021-03-01;Compute_2020-12-01;Compute_2020-06-30;Compute_2020-05-01;Compute_2019-12-01;Compute_2019-11-01;Compute_2019-04-01;</AzureApiTag>
Sandido marked this conversation as resolved.
Show resolved Hide resolved
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
namespace Microsoft.Azure.Management.Compute
{
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>
/// GalleriesOperations operations.
/// </summary>
internal partial class GalleriesOperations : IServiceOperations<ComputeManagementClient>, IGalleriesOperations
{
/// <summary>
/// Retrieves information about a Shared Image Gallery.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Image Gallery.
/// </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<Gallery>> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName)
{
return await GetWithHttpMessagesAsync(resourceGroupName, galleryName, default(string), null, default(CancellationToken));
}

/// <summary>
/// Retrieves information about a Shared Image Gallery.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Image Gallery.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
/// </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<Gallery>> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName, Dictionary<string, List<string>> customHeaders = null)
{
return await GetWithHttpMessagesAsync(resourceGroupName, galleryName, default(string), customHeaders, default(CancellationToken));
}

/// <summary>
/// Retrieves information about a Shared Image Gallery.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Image Gallery.
/// </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<Gallery>> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
kangsun-ctrl marked this conversation as resolved.
Show resolved Hide resolved
{
return await GetWithHttpMessagesAsync(resourceGroupName, galleryName, default(string), customHeaders, cancellationToken);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
namespace Microsoft.Azure.Management.Compute
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Extension methods for GalleriesOperations.
/// </summary>
public static partial class GalleriesOperationsExtensions
{
/// <summary>
/// Retrieves information about a Shared Image Gallery.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Image Gallery.
/// </param>
public static async Task<Gallery> GetAsync(this IGalleriesOperations operations, string resourceGroupName, string galleryName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'this' looks like incorrect syntax, remove it.

Copy link
Contributor Author

@kangsun-ctrl kangsun-ctrl Apr 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{
return await GetAsync(operations, resourceGroupName, galleryName, default(string), default(CancellationToken));
}

/// <summary>
/// Retrieves information about a Shared Image Gallery.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Image Gallery.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<Gallery> GetAsync(this IGalleriesOperations operations, string resourceGroupName, string galleryName, CancellationToken cancellationToken = default(CancellationToken))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'this' looks like incorrect syntax, remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

{
return await GetAsync(operations, resourceGroupName, galleryName, default(string), cancellationToken);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
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>
/// GalleriesOperations operations.
/// </summary>
public partial interface IGalleriesOperations
{
/// <summary>
/// Retrieves information about a Shared Image Gallery.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Image Gallery.
/// </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<Gallery>> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName);

/// <summary>
/// Retrieves information about a Shared Image Gallery.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Image Gallery.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </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<Gallery>> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName, Dictionary<string, List<string>> customHeaders = null);

/// <summary>
/// Retrieves information about a Shared Image Gallery.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='galleryName'>
/// The name of the Shared Image Gallery.
/// </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<Gallery>> GetWithHttpMessagesAsync(string resourceGroupName, string galleryName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

}
}

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

Loading