Skip to content

Commit

Permalink
Functionality for the 2020-12-01 Compute Rest API release (#18498)
Browse files Browse the repository at this point in the history
* Delete test json files (#18003)

* Delete TestVMExtensionOperations.json

* Delete TestVMScaleSetExtensions.json

* Resolve conflicts for -updated merge (#18015)

* Update SdkInfo_ComputeManagementClient.cs

* Update VirtualMachineRunCommandsOperations.cs

* Update VirtualMachineScaleSetVMRunCommandsOperations.cs

* Create TestVMExtensionOperations.json

* Delete TestVMExtensionOperations.json

* Create TestVMExtensionOperations.json

* Create TestVMScaleSetExtensions.json

* Compute 2020 12 updated (#17975)

* adding 2020-12-01 compute generated files

* update default sku

* update tests

* test updates

* records

* tests fixes

* all the recorded tests

* more update

* more update

* more update

* last test fixes

* Updated TestVMIdentitySystemAssignedUserAssigned SDK Test to create User Assigned Identity using SDK (#17861)

* Updated TestVMIdentitySystemAssignedUserAssigned SDK Test to create User Assigned MI using MSI SDK

* Resolved Merge Conflicts and updated the test

Co-authored-by: Pavan Rachapudy <vrachapu@microsoft.com>

* Delete AppGW tests (#17977)

* Delete VMScaleSetAppGwWithAS.json

* Delete VMScaleSetAppGwWithAS_A1V2.json

* Delete VMScaleSetAppGwWithAS_SPG_False.json

* Delete VMScaleSetAppGwWithAS_Spot.json

* Delete VMScaleSetAppGWTests.cs

* Delete deprecated ContainerService tests (#17976)

* Delete ContainerServiceOperationalTests.cs

* Delete ContainerServiceTestsBase.cs

* Delete ContainerServiceUpdateTests.cs

* Delete TestDCOSOperations.json

* Delete TestSwarmOperations.json

* Delete TestContainerServiceUpdateOperations.json

* test

* remove test text

Co-authored-by: pavanrachapudy <pavanrachapudy@gmail.com>
Co-authored-by: Pavan Rachapudy <vrachapu@microsoft.com>
Co-authored-by: Adam Sandor <adsandor@microsoft.com>

* new recording files

* 2020-12 release features generated, tests pass

* Update DiskRPTestsBase.cs (#18355)

* Remove CloudService tests (#18423)

* Delete CloudServiceExtensionTests.cs

* Delete CloudServiceOperationTests.cs

* Delete CloudServiceRoleInstanceTests.cs

* Delete CloudServiceScenarioTests.cs

* Delete CloudServiceTestsBase.cs

* Delete CloudServiceUpdateTests.cs

* Delete MultiRole_CreateUpdateGetAndDeleteWithExtension_WorkerAndWebRole.json

* Delete MultiRole_CreateUpdateGetAndDeleteWithExtension_WorkerAndWebRole_MultiRoleExtension.json

* Delete Test_Create_PowerOff_Start_CloudServiceOperation.json

* Delete Test_ListCloudServicesOperation.json

* Delete Test_CloudServiceRoleInstanceOperations.json

* Delete TestCloudServiceScenarioOperations.json

* Delete TestCloudServiceScenarioOperations_DeleteCloudService.json

* Delete TestCloudServiceScenarioOperations_ExtensionProfile.json

* Delete TestCloudServiceScenarioOperations_InstanceView.json

* Delete TestCloudServiceOperations_ScaleIn_ScaleOut.json

* Delete TestCloudServiceUpdateOperations.json

* Update AzSdk.RP.props

* Update AzSdk.RP.props

remove containerService

* Delete ServiceConfigurationHelpers.cs

* regenerate on released 2020-12-01 swagger

* re-recorded test jsons

* test fixes

* Update AssemblyInfo.cs

* Update AzSdk.RP.props

* Update Microsoft.Azure.Management.Compute.csproj

* Update compute_resource-manager.txt

* Update Microsoft.Azure.Management.Compute.csproj

* customization for VMSSVMOperations

* update for OMode and others

* Update compute_resource-manager.txt

* Update VirtualMachineScaleSetVMsOperations.cs

full customization for this class

* Update VirtualMachineScaleSetVMsOperations.cs

full customization revision

* Create VirtualMachineScaleSet.cs

customizations for VMSS.cs

* Create VirtualMachineUpdate.cs

customizations for VMU

* Create VirtualMachine.cs

customization for VM.cs

* Update VirtualMachineScaleSet.cs

customization finalized

* Update VirtualMachineScaleSetVMsOperations.cs

customization edit

* Create VirtualMachineImage.cs

VMI.cs customization

* Update VirtualMachine.cs

cleanup

* Update VirtualMachine.cs

c;eamup2

* Update VirtualMachineUpdate.cs

fix build error? removed Plan

* Update VirtualMachineUpdate.cs

resolve errors

* Update VirtualMachine.cs

resolve errors

* Update VirtualMachineImage.cs

resolve errors

* Update VirtualMachineScaleSet.cs

resolve errors

* Update VirtualMachine.cs

* Update VirtualMachineImage.cs

* Update VirtualMachineScaleSet.cs

* Update VirtualMachineUpdate.cs

* Update VirtualMachineScaleSet.cs

* Update VirtualMachineScaleSetVMsOperations.cs

* Update VirtualMachineUpdate.cs

* Create IVirtualMachineScaleSetVMsOperations.cs

customizations

* Update IVirtualMachineScaleSetVMsOperations.cs

additional customizations

* Create VirtualMachineScaleSetVMsOperationsExtensions.cs

* Update VMInstanceViewPatchStatusTests.cs

Co-authored-by: Theodore Chang <thchan@microsoft.com>
Co-authored-by: pavanrachapudy <pavanrachapudy@gmail.com>
Co-authored-by: Pavan Rachapudy <vrachapu@microsoft.com>
  • Loading branch information
4 people authored Feb 18, 2021
1 parent 5ca920a commit e8cc86f
Show file tree
Hide file tree
Showing 324 changed files with 115,648 additions and 204,523 deletions.
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;
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

0 comments on commit e8cc86f

Please sign in to comment.