Skip to content

Commit 2ba93a7

Browse files
authored
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
1 parent 594379a commit 2ba93a7

File tree

163 files changed

+81768
-24234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+81768
-24234
lines changed

eng/mgmt/mgmtmetadata/compute_resource-manager.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ AutoRest installed successfully.
33
Commencing code generation
44
Generating CSharp code
55
Executing AutoRest command
6-
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
7-
2020-11-29 04:50:45 UTC
6+
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
7+
2021-01-22 17:02:43 UTC
88
Azure-rest-api-specs repository information
99
GitHub fork: Azure
1010
Branch: master
11-
Commit: 33b5733cc82028c9ce6e2c9ec9f28e7f763098f7
11+
Commit: a35bddecf81df1a1a3030dbaee0b73c777aeb0db
1212
AutoRest information
1313
Requested version: v2
1414
Bootstrapper version: autorest@2.0.4413
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<!--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-->
33
<PropertyGroup>
4-
<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>
4+
<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>
55
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
66
</PropertyGroup>
77
</Project>
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
namespace Microsoft.Azure.Management.Compute
2+
{
3+
using System.Collections.Generic;
4+
using System.Threading;
5+
using System.Threading.Tasks;
6+
using Microsoft.Rest.Azure;
7+
8+
/// <summary>
9+
/// VirtualMachinesOperations operations.
10+
/// </summary>
11+
public partial interface IVirtualMachinesOperations
12+
{
13+
/// <summary>
14+
/// The operation to delete a virtual machine.
15+
/// </summary>
16+
/// <param name='resourceGroupName'>
17+
/// The name of the resource group.
18+
/// </param>
19+
/// <param name='vmName'>
20+
/// The name of the virtual machine.
21+
/// <param name='customHeaders'>
22+
/// The headers that will be added to request.
23+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
24+
/// Thrown when the operation returned an invalid status code
25+
/// </exception>
26+
/// <exception cref="Microsoft.Rest.ValidationException">
27+
/// Thrown when a required parameter is null
28+
/// </exception>
29+
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders);
30+
/// <summary>
31+
/// The operation to delete a virtual machine.
32+
/// </summary>
33+
/// <param name='resourceGroupName'>
34+
/// The name of the resource group.
35+
/// </param>
36+
/// <param name='vmName'>
37+
/// The name of the virtual machine.
38+
/// <param name='customHeaders'>
39+
/// The headers that will be added to request.
40+
/// </param>
41+
/// <param name='cancellationToken'>
42+
/// The cancellation token.
43+
/// </param>
44+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
45+
/// Thrown when the operation returned an invalid status code
46+
/// </exception>
47+
/// <exception cref="Microsoft.Rest.ValidationException">
48+
/// Thrown when a required parameter is null
49+
/// </exception>
50+
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken);
51+
/// <summary>
52+
/// The operation to delete a virtual machine.
53+
/// </summary>
54+
/// <param name='resourceGroupName'>
55+
/// The name of the resource group.
56+
/// </param>
57+
/// <param name='vmName'>
58+
/// The name of the virtual machine.
59+
/// <param name='customHeaders'>
60+
/// The headers that will be added to request.
61+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
62+
/// Thrown when the operation returned an invalid status code
63+
/// </exception>
64+
/// <exception cref="Microsoft.Rest.ValidationException">
65+
/// Thrown when a required parameter is null
66+
/// </exception>
67+
Task<AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders);
68+
/// <summary>
69+
/// The operation to delete a virtual machine.
70+
/// </summary>
71+
/// <param name='resourceGroupName'>
72+
/// The name of the resource group.
73+
/// </param>
74+
/// <param name='vmName'>
75+
/// The name of the virtual machine.
76+
/// <param name='customHeaders'>
77+
/// The headers that will be added to request.
78+
/// </param>
79+
/// <param name='cancellationToken'>
80+
/// The cancellation token.
81+
/// </param>
82+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
83+
/// Thrown when the operation returned an invalid status code
84+
/// </exception>
85+
/// <exception cref="Microsoft.Rest.ValidationException">
86+
/// Thrown when a required parameter is null
87+
/// </exception>
88+
Task<AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken);
89+
}
90+
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
namespace Microsoft.Azure.Management.Compute
2+
{
3+
using System.Collections.Generic;
4+
using System.Threading;
5+
using System.Threading.Tasks;
6+
using Microsoft.Rest;
7+
using Microsoft.Rest.Azure;
8+
9+
/// <summary>
10+
/// VirtualMachinesOperations operations.
11+
/// </summary>
12+
internal partial class VirtualMachinesOperations : IServiceOperations<ComputeManagementClient>, IVirtualMachinesOperations
13+
{
14+
/// <summary>
15+
/// The operation to delete a virtual machine.
16+
/// </summary>
17+
/// <param name='resourceGroupName'>
18+
/// The name of the resource group.
19+
/// </param>
20+
/// <param name='vmName'>
21+
/// The name of the virtual machine.
22+
/// </param>
23+
/// <param name='customHeaders'>
24+
/// The headers that will be added to request.
25+
public async Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders)
26+
{
27+
return await DeleteWithHttpMessagesAsync(resourceGroupName, vmName, false, customHeaders, default(CancellationToken));
28+
}
29+
30+
/// <summary>
31+
/// The operation to delete a virtual machine.
32+
/// </summary>
33+
/// <param name='resourceGroupName'>
34+
/// The name of the resource group.
35+
/// </param>
36+
/// <param name='vmName'>
37+
/// The name of the virtual machine.
38+
/// </param>
39+
/// <param name='customHeaders'>
40+
/// The headers that will be added to request.
41+
/// </param>
42+
/// <param name='cancellationToken'>
43+
/// The cancellation token.
44+
/// </param>
45+
public async Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken)
46+
{
47+
return await DeleteWithHttpMessagesAsync(resourceGroupName, vmName, false, customHeaders, cancellationToken);
48+
}
49+
50+
/// <summary>
51+
/// The operation to delete a virtual machine.
52+
/// </summary>
53+
/// <param name='resourceGroupName'>
54+
/// The name of the resource group.
55+
/// </param>
56+
/// <param name='vmName'>
57+
/// The name of the virtual machine.
58+
/// </param>
59+
/// <param name='customHeaders'>
60+
/// Headers that will be added to request.
61+
/// <exception cref="CloudException">
62+
/// Thrown when the operation returned an invalid status code
63+
/// </exception>
64+
/// <exception cref="ValidationException">
65+
/// Thrown when a required parameter is null
66+
/// </exception>
67+
/// <exception cref="System.ArgumentNullException">
68+
/// Thrown when a required parameter is null
69+
/// </exception>
70+
/// <return>
71+
/// A response object containing the response body and response headers.
72+
/// </return>
73+
public async Task<AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders)
74+
{
75+
return await BeginDeleteWithHttpMessagesAsync(resourceGroupName, vmName, false, customHeaders, default(CancellationToken));
76+
}
77+
78+
79+
/// <summary>
80+
/// The operation to delete a virtual machine.
81+
/// </summary>
82+
/// <param name='resourceGroupName'>
83+
/// The name of the resource group.
84+
/// </param>
85+
/// <param name='vmName'>
86+
/// The name of the virtual machine.
87+
/// </param>
88+
/// <param name='customHeaders'>
89+
/// Headers that will be added to request.
90+
/// </param>
91+
/// <param name='cancellationToken'>
92+
/// The cancellation token.
93+
/// </param>
94+
/// <exception cref="CloudException">
95+
/// Thrown when the operation returned an invalid status code
96+
/// </exception>
97+
/// <exception cref="ValidationException">
98+
/// Thrown when a required parameter is null
99+
/// </exception>
100+
/// <exception cref="System.ArgumentNullException">
101+
/// Thrown when a required parameter is null
102+
/// </exception>
103+
/// <return>
104+
/// A response object containing the response body and response headers.
105+
/// </return>
106+
public async Task<AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmName, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken)
107+
{
108+
return await BeginDeleteWithHttpMessagesAsync(resourceGroupName, vmName, false, customHeaders, cancellationToken);
109+
}
110+
}
111+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
namespace Microsoft.Azure.Management.Compute
2+
{
3+
using Microsoft.Rest;
4+
using Microsoft.Rest.Azure;
5+
using Models;
6+
using System.Collections;
7+
using System.Collections.Generic;
8+
using System.Threading;
9+
using System.Threading.Tasks;
10+
11+
/// <summary>
12+
/// Extension methods for VirtualMachinesOperations.
13+
/// </summary>
14+
public static partial class VirtualMachinesOperationsExtensions
15+
{
16+
/// <summary>
17+
/// The operation to delete a virtual machine.
18+
/// </summary>
19+
/// <param name='operations'>
20+
/// The operations group for this extension method.
21+
/// </param>
22+
/// <param name='resourceGroupName'>
23+
/// The name of the resource group.
24+
/// </param>
25+
/// <param name='vmName'>
26+
/// The name of the virtual machine.
27+
public static async Task DeleteAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName)
28+
{
29+
await DeleteAsync(operations, resourceGroupName, vmName, false, default(CancellationToken));
30+
}
31+
32+
/// <summary>
33+
/// The operation to delete a virtual machine.
34+
/// </summary>
35+
/// <param name='operations'>
36+
/// The operations group for this extension method.
37+
/// </param>
38+
/// <param name='resourceGroupName'>
39+
/// The name of the resource group.
40+
/// </param>
41+
/// <param name='vmName'>
42+
/// The name of the virtual machine.
43+
/// </param>
44+
/// <param name='cancellationToken'>
45+
/// The cancellation token.
46+
/// </param>
47+
public static async Task DeleteAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, CancellationToken cancellationToken)
48+
{
49+
await DeleteAsync(operations, resourceGroupName, vmName, false, cancellationToken);
50+
}
51+
52+
/// <summary>
53+
/// The operation to delete a virtual machine.
54+
/// </summary>
55+
/// <param name='operations'>
56+
/// The operations group for this extension method.
57+
/// </param>
58+
/// <param name='resourceGroupName'>
59+
/// The name of the resource group.
60+
/// </param>
61+
/// <param name='vmName'>
62+
/// The name of the virtual machine.
63+
/// </param>
64+
public static async Task BeginDeleteAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName)
65+
{
66+
await BeginDeleteAsync(operations, resourceGroupName, vmName, false, default(CancellationToken));
67+
}
68+
69+
/// <summary>
70+
/// The operation to delete a virtual machine.
71+
/// </summary>
72+
/// <param name='operations'>
73+
/// The operations group for this extension method.
74+
/// </param>
75+
/// <param name='resourceGroupName'>
76+
/// The name of the resource group.
77+
/// </param>
78+
/// <param name='vmName'>
79+
/// The name of the virtual machine.
80+
/// </param>
81+
/// <param name='cancellationToken'>
82+
/// The cancellation token.
83+
/// </param>
84+
public static async Task BeginDeleteAsync(this IVirtualMachinesOperations operations, string resourceGroupName, string vmName, CancellationToken cancellationToken)
85+
{
86+
await BeginDeleteAsync(operations, resourceGroupName, vmName, false, cancellationToken);
87+
}
88+
}
89+
}

0 commit comments

Comments
 (0)