-
Notifications
You must be signed in to change notification settings - Fork 5.1k
SDK code for shared gallery, image features and blob as source #19472
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
Changes from all commits
d57e4a2
ab94c6d
ecaa68e
565c469
dfce18d
41cff3c
548eb77
0e06c30
84c8022
d88f514
eec14b5
2ea8208
e50747f
70ad6ef
051be54
891906e
adf5678
c7ff79e
6237339
d069151
a45f4b5
f7e3bb1
5a4a269
3ea4d26
aa81408
4feba73
6586933
4bb2445
e128572
37e507a
883acac
b48d52e
3160498
1209e3f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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: [email protected] | ||
| 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) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 'this' looks like incorrect syntax, remove it.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is correct actually. VMSSOperationExtension has this too: https://github.com/kangsun-ctrl/azure-sdk-for-net/blob/master/sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachinesOperationsExtensions.cs |
||
| { | ||
| 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)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The 'this' looks like incorrect syntax, remove it.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Uh oh!
There was an error while loading. Please reload this page.