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

Functionality for the 2020-12-01 Compute Rest API release #18498

Merged
merged 49 commits into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
f2a583e
Merge pull request #1 from Azure/master
Sandido Oct 1, 2020
4ece171
Merge pull request #2 from Azure/master
Sandido Dec 23, 2020
5988450
Delete test json files (#18003)
Sandido Jan 15, 2021
1274dbb
Resolve conflicts for -updated merge (#18015)
Sandido Jan 15, 2021
781f474
Compute 2020 12 updated (#17975)
grizzlytheodore Jan 15, 2021
cf303a0
new recording files
grizzlytheodore Jan 19, 2021
7ef6f13
2020-12 release features generated, tests pass
grizzlytheodore Jan 22, 2021
ca9fb7b
Update DiskRPTestsBase.cs (#18355)
Sandido Feb 2, 2021
3b5b0b4
sync with master, worried about some tests
Sandido Feb 3, 2021
02881d8
Remove CloudService tests (#18423)
Sandido Feb 4, 2021
d63c9b4
regenerate on released 2020-12-01 swagger
grizzlytheodore Feb 4, 2021
388463c
re-recorded test jsons
grizzlytheodore Feb 4, 2021
beb6c2c
test fixes
grizzlytheodore Feb 5, 2021
07185a1
Update AssemblyInfo.cs
Sandido Feb 9, 2021
5bc4005
Update AzSdk.RP.props
Sandido Feb 9, 2021
e484b33
Update Microsoft.Azure.Management.Compute.csproj
Sandido Feb 9, 2021
5a7be8b
Merge branch 'master' into compute-2020-12
Sandido Feb 9, 2021
b4027e9
Update compute_resource-manager.txt
Sandido Feb 10, 2021
1252c47
Update Microsoft.Azure.Management.Compute.csproj
Sandido Feb 10, 2021
a27f5d9
customization for VMSSVMOperations
Sandido Feb 11, 2021
6da8041
update for OMode and others
grizzlytheodore Feb 17, 2021
003bc02
Merge branch 'compute-2020-12' of https://github.com/Azure/azure-sdk-…
grizzlytheodore Feb 17, 2021
009f309
Update compute_resource-manager.txt
Sandido Feb 17, 2021
cb54d6a
Update VirtualMachineScaleSetVMsOperations.cs
Sandido Feb 17, 2021
f0a16cd
Update VirtualMachineScaleSetVMsOperations.cs
Sandido Feb 17, 2021
12b6d9a
Create VirtualMachineScaleSet.cs
Sandido Feb 18, 2021
cb95a05
Create VirtualMachineUpdate.cs
Sandido Feb 18, 2021
fbc6788
Create VirtualMachine.cs
Sandido Feb 18, 2021
4d61dcf
Update VirtualMachineScaleSet.cs
Sandido Feb 18, 2021
ce0e517
Update VirtualMachineScaleSetVMsOperations.cs
Sandido Feb 18, 2021
a6f60ab
Create VirtualMachineImage.cs
Sandido Feb 18, 2021
5ac81ce
Update VirtualMachine.cs
Sandido Feb 18, 2021
369b5eb
Update VirtualMachine.cs
Sandido Feb 18, 2021
f24f056
Update VirtualMachineUpdate.cs
Sandido Feb 18, 2021
6c567b2
Update VirtualMachineUpdate.cs
Sandido Feb 18, 2021
c8124c1
Update VirtualMachine.cs
Sandido Feb 18, 2021
d3590e4
Update VirtualMachineImage.cs
Sandido Feb 18, 2021
27f50b0
Update VirtualMachineScaleSet.cs
Sandido Feb 18, 2021
82b9336
Update VirtualMachine.cs
Sandido Feb 18, 2021
7928f67
Update VirtualMachineImage.cs
Sandido Feb 18, 2021
4ff159f
Update VirtualMachineScaleSet.cs
Sandido Feb 18, 2021
1242b7d
Update VirtualMachineUpdate.cs
Sandido Feb 18, 2021
93eeed4
Update VirtualMachineScaleSet.cs
Sandido Feb 18, 2021
406287d
Update VirtualMachineScaleSetVMsOperations.cs
Sandido Feb 18, 2021
a16dc7d
Update VirtualMachineUpdate.cs
Sandido Feb 18, 2021
0447def
Create IVirtualMachineScaleSetVMsOperations.cs
Sandido Feb 18, 2021
9ffe1af
Update IVirtualMachineScaleSetVMsOperations.cs
Sandido Feb 18, 2021
6418f98
Create VirtualMachineScaleSetVMsOperationsExtensions.cs
Sandido Feb 18, 2021
b780c79
Update VMInstanceViewPatchStatusTests.cs
Sandido Feb 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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:\azure-sdk-for-net\sdk
2021-01-22 17:02:43 UTC
2021-02-17 15:04:43 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: a35bddecf81df1a1a3030dbaee0b73c777aeb0db
Commit: a2a3da0d9f4a26b317fc15eb1cf34557c2a8d05a
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
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;</AzureApiTag>
<AzureApiTag>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>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
namespace Microsoft.Azure.Management.Compute
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Microsoft.Rest.Azure.OData;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// VirtualMachineScaleSetVMsOperations operations.
/// </summary>
public partial interface IVirtualMachineScaleSetVMsOperations
{

Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken);

Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary<string, List<string>> customHeaders);

Task<AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary<string, List<string>> customHeaders, CancellationToken cancellationToken);

Task<AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string vmScaleSetName, string instanceId, Dictionary<string, List<string>> customHeaders);

}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
namespace Microsoft.Azure.Management.Compute.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
/// Describes a Virtual Machine Image.
/// </summary>
public partial class VirtualMachineImage : VirtualMachineImageResource
{

/// <summary>
/// Initializes a new instance of the VirtualMachineImage class.
/// </summary>
/// <param name="name">The name of the resource.</param>
/// <param name="location">The supported Azure location of the
/// resource.</param>
/// <param name="id">Resource Id</param>
/// <param name="tags">Specifies the tags that are assigned to the
/// virtual machine. For more information about using tags, see [Using
/// tags to organize your Azure
/// resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).</param>
/// <param name="hyperVGeneration">Possible values include: 'V1',
/// 'V2'</param>
/// <param name="disallowed">Specifies disallowed configuration for the
/// VirtualMachine created from the image</param>
public VirtualMachineImage(string name, string location, string id, IDictionary<string, string> tags, PurchasePlan plan, OSDiskImage osDiskImage, IList<DataDiskImage> dataDiskImages, AutomaticOSUpgradeProperties automaticOSUpgradeProperties, string hyperVGeneration, DisallowedConfiguration disallowed)
: base(name, location, id, tags)
{
Plan = plan;
Copy link
Member

Choose a reason for hiding this comment

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

This looks OK, but I would have thought you would call this(...al parameters) rather than tre-implementing the constructor

OsDiskImage = osDiskImage;
DataDiskImages = dataDiskImages;
AutomaticOSUpgradeProperties = automaticOSUpgradeProperties;
HyperVGeneration = hyperVGeneration;
Disallowed = disallowed;
CustomInit();
}

public VirtualMachineImage(string name, string location, string id, IDictionary<string, string> tags, PurchasePlan plan, OSDiskImage osDiskImage, IList<DataDiskImage> dataDiskImages, AutomaticOSUpgradeProperties automaticOSUpgradeProperties, string hyperVGeneration)
: base(name, location, id, tags)
{
Plan = plan;
OsDiskImage = osDiskImage;
DataDiskImages = dataDiskImages;
AutomaticOSUpgradeProperties = automaticOSUpgradeProperties;
HyperVGeneration = hyperVGeneration;
CustomInit();
}

public VirtualMachineImage(string name, string location, string id, IDictionary<string, string> tags, PurchasePlan plan, OSDiskImage osDiskImage, IList<DataDiskImage> dataDiskImages, AutomaticOSUpgradeProperties automaticOSUpgradeProperties)
: base(name, location, id, tags)
{
Plan = plan;
OsDiskImage = osDiskImage;
DataDiskImages = dataDiskImages;
AutomaticOSUpgradeProperties = automaticOSUpgradeProperties;
CustomInit();
}

public VirtualMachineImage(string name, string location, string id, IDictionary<string, string> tags, PurchasePlan plan, OSDiskImage osDiskImage, IList<DataDiskImage> dataDiskImages)
: base(name, location, id, tags)
{
Plan = plan;
OsDiskImage = osDiskImage;
DataDiskImages = dataDiskImages;
CustomInit();
}

public VirtualMachineImage(string name, string location, string id, IDictionary<string, string> tags, PurchasePlan plan, OSDiskImage osDiskImage)
: base(name, location, id, tags)
{
Plan = plan;
OsDiskImage = osDiskImage;
CustomInit();
}

public VirtualMachineImage(string name, string location, string id, IDictionary<string, string> tags, PurchasePlan plan)
: base(name, location, id, tags)
{
Plan = plan;
CustomInit();
}
}
}
Loading