-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
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 4ece171
Merge pull request #2 from Azure/master
Sandido 5988450
Delete test json files (#18003)
Sandido 1274dbb
Resolve conflicts for -updated merge (#18015)
Sandido 781f474
Compute 2020 12 updated (#17975)
grizzlytheodore cf303a0
new recording files
grizzlytheodore 7ef6f13
2020-12 release features generated, tests pass
grizzlytheodore ca9fb7b
Update DiskRPTestsBase.cs (#18355)
Sandido 3b5b0b4
sync with master, worried about some tests
Sandido 02881d8
Remove CloudService tests (#18423)
Sandido d63c9b4
regenerate on released 2020-12-01 swagger
grizzlytheodore 388463c
re-recorded test jsons
grizzlytheodore beb6c2c
test fixes
grizzlytheodore 07185a1
Update AssemblyInfo.cs
Sandido 5bc4005
Update AzSdk.RP.props
Sandido e484b33
Update Microsoft.Azure.Management.Compute.csproj
Sandido 5a7be8b
Merge branch 'master' into compute-2020-12
Sandido b4027e9
Update compute_resource-manager.txt
Sandido 1252c47
Update Microsoft.Azure.Management.Compute.csproj
Sandido a27f5d9
customization for VMSSVMOperations
Sandido 6da8041
update for OMode and others
grizzlytheodore 003bc02
Merge branch 'compute-2020-12' of https://github.com/Azure/azure-sdk-…
grizzlytheodore 009f309
Update compute_resource-manager.txt
Sandido cb54d6a
Update VirtualMachineScaleSetVMsOperations.cs
Sandido f0a16cd
Update VirtualMachineScaleSetVMsOperations.cs
Sandido 12b6d9a
Create VirtualMachineScaleSet.cs
Sandido cb95a05
Create VirtualMachineUpdate.cs
Sandido fbc6788
Create VirtualMachine.cs
Sandido 4d61dcf
Update VirtualMachineScaleSet.cs
Sandido ce0e517
Update VirtualMachineScaleSetVMsOperations.cs
Sandido a6f60ab
Create VirtualMachineImage.cs
Sandido 5ac81ce
Update VirtualMachine.cs
Sandido 369b5eb
Update VirtualMachine.cs
Sandido f24f056
Update VirtualMachineUpdate.cs
Sandido 6c567b2
Update VirtualMachineUpdate.cs
Sandido c8124c1
Update VirtualMachine.cs
Sandido d3590e4
Update VirtualMachineImage.cs
Sandido 27f50b0
Update VirtualMachineScaleSet.cs
Sandido 82b9336
Update VirtualMachine.cs
Sandido 7928f67
Update VirtualMachineImage.cs
Sandido 4ff159f
Update VirtualMachineScaleSet.cs
Sandido 1242b7d
Update VirtualMachineUpdate.cs
Sandido 93eeed4
Update VirtualMachineScaleSet.cs
Sandido 406287d
Update VirtualMachineScaleSetVMsOperations.cs
Sandido a16dc7d
Update VirtualMachineUpdate.cs
Sandido 0447def
Create IVirtualMachineScaleSetVMsOperations.cs
Sandido 9ffe1af
Update IVirtualMachineScaleSetVMsOperations.cs
Sandido 6418f98
Create VirtualMachineScaleSetVMsOperationsExtensions.cs
Sandido b780c79
Update VMInstanceViewPatchStatusTests.cs
Sandido File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
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
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;</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> |
27 changes: 27 additions & 0 deletions
27
...osoft.Azure.Management.Compute/src/Customizations/IVirtualMachineScaleSetVMsOperations.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,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); | ||
|
||
} | ||
} |
276 changes: 276 additions & 0 deletions
276
sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachine.cs
Large diffs are not rendered by default.
Oops, something went wrong.
88 changes: 88 additions & 0 deletions
88
sdk/compute/Microsoft.Azure.Management.Compute/src/Customizations/VirtualMachineImage.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,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; | ||
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(); | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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