forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add New CloudService Resource in Azure SDK (Azure#17341)
* adding cloudservice generated sdk files and test * adding customizations to resolve runtime anbiguity * regenrating the sdk from rest repo * regenerating full SDK (including gallery and diskrp changes), fixing diskrp and gallery tests * regenrating SDK using rest repo
- Loading branch information
1 parent
594379a
commit 2ba93a7
Showing
163 changed files
with
81,768 additions
and
24,234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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=v2 --reflect-api-versions --csharp-sdks-folder=E:\azure-sdk-for-net\sdk | ||
2020-11-29 04:50:45 UTC | ||
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:\azure-sdk-for-net\sdk | ||
2021-01-22 17:02:43 UTC | ||
Azure-rest-api-specs repository information | ||
GitHub fork: Azure | ||
Branch: master | ||
Commit: 33b5733cc82028c9ce6e2c9ec9f28e7f763098f7 | ||
Commit: a35bddecf81df1a1a3030dbaee0b73c777aeb0db | ||
AutoRest information | ||
Requested version: v2 | ||
Bootstrapper version: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>Compute_2020-06-30;Compute_2020-05-01;Compute_2019-12-01;Compute_2019-11-01;Compute_2019-04-01;ContainerService_2017-01-31;</AzureApiTag> | ||
<AzureApiTag>Compute_2020-10-01-preview;Compute_2020-06-30;Compute_2020-05-01;Compute_2019-12-01;Compute_2019-11-01;Compute_2019-04-01;ContainerService_2017-01-31;</AzureApiTag> | ||
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags> | ||
</PropertyGroup> | ||
</Project> |
90 changes: 90 additions & 0 deletions
90
...mpute/Microsoft.Azure.Management.Compute/src/Customizations/IVirtualMachinesOperations.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
namespace Microsoft.Azure.Management.Compute | ||
{ | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Microsoft.Rest.Azure; | ||
|
||
/// <summary> | ||
/// VirtualMachinesOperations operations. | ||
/// </summary> | ||
public partial interface IVirtualMachinesOperations | ||
{ | ||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// <param name='customHeaders'> | ||
/// The headers that will be added to request. | ||
/// <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 vmName, Dictionary<string, List<string>> customHeaders); | ||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// <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 vmName, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken); | ||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// <param name='customHeaders'> | ||
/// The headers that will be added to request. | ||
/// <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 vmName, Dictionary<string, List<string>> customHeaders); | ||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// <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 vmName, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken); | ||
} | ||
} |
111 changes: 111 additions & 0 deletions
111
...ompute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachinesOperations.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
namespace Microsoft.Azure.Management.Compute | ||
{ | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
|
||
/// <summary> | ||
/// VirtualMachinesOperations operations. | ||
/// </summary> | ||
internal partial class VirtualMachinesOperations : IServiceOperations<ComputeManagementClient>, IVirtualMachinesOperations | ||
{ | ||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// </param> | ||
/// <param name='customHeaders'> | ||
/// The headers that will be added to request. | ||
public async Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders) | ||
{ | ||
return await DeleteWithHttpMessagesAsync(resourceGroupName, vmName, false, customHeaders, default(CancellationToken)); | ||
} | ||
|
||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// </param> | ||
/// <param name='customHeaders'> | ||
/// The headers that will be added to request. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public async Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken) | ||
{ | ||
return await DeleteWithHttpMessagesAsync(resourceGroupName, vmName, false, customHeaders, cancellationToken); | ||
} | ||
|
||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// </param> | ||
/// <param name='customHeaders'> | ||
/// Headers that will be added to request. | ||
/// <exception cref="CloudException"> | ||
/// Thrown when the operation returned an invalid status code | ||
/// </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> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders) | ||
{ | ||
return await BeginDeleteWithHttpMessagesAsync(resourceGroupName, vmName, false, customHeaders, default(CancellationToken)); | ||
} | ||
|
||
|
||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// </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="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> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken) | ||
{ | ||
return await BeginDeleteWithHttpMessagesAsync(resourceGroupName, vmName, false, customHeaders, cancellationToken); | ||
} | ||
} | ||
} |
89 changes: 89 additions & 0 deletions
89
...rosoft.Azure.Management.Compute/src/Customizations/VirtualMachinesOperationsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
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> | ||
/// Extension methods for VirtualMachinesOperations. | ||
/// </summary> | ||
public static partial class VirtualMachinesOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
public static async Task DeleteAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName) | ||
{ | ||
await DeleteAsync(operations, resourceGroupName, vmName, false, default(CancellationToken)); | ||
} | ||
|
||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task DeleteAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, CancellationToken cancellationToken) | ||
{ | ||
await DeleteAsync(operations, resourceGroupName, vmName, false, cancellationToken); | ||
} | ||
|
||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// </param> | ||
public static async Task BeginDeleteAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName) | ||
{ | ||
await BeginDeleteAsync(operations, resourceGroupName, vmName, false, default(CancellationToken)); | ||
} | ||
|
||
/// <summary> | ||
/// The operation to delete a virtual machine. | ||
/// </summary> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='resourceGroupName'> | ||
/// The name of the resource group. | ||
/// </param> | ||
/// <param name='vmName'> | ||
/// The name of the virtual machine. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task BeginDeleteAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, CancellationToken cancellationToken) | ||
{ | ||
await BeginDeleteAsync(operations, resourceGroupName, vmName, false, cancellationToken); | ||
} | ||
} | ||
} |
Oops, something went wrong.