Skip to content

Commit

Permalink
.NET SDK Resource Provider:'Compute'
Browse files Browse the repository at this point in the history
REST Spec PR 'Azure/azure-rest-api-specs#5507'
REST Spec PR Author 'aspand'
REST Spec PR Last commit
  • Loading branch information
adxsdknet committed Mar 29, 2019
1 parent 56de654 commit aff7b32
Show file tree
Hide file tree
Showing 15 changed files with 2,377 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public partial class ComputeManagementClient : ServiceClient<ComputeManagementCl
/// </summary>
public virtual IAvailabilitySetsOperations AvailabilitySets { get; private set; }

/// <summary>
/// Gets the IProximityPlacementGroupsOperations.
/// </summary>
public virtual IProximityPlacementGroupsOperations ProximityPlacementGroups { get; private set; }

/// <summary>
/// Gets the IVirtualMachineExtensionImagesOperations.
/// </summary>
Expand Down Expand Up @@ -424,6 +429,7 @@ private void Initialize()
{
Operations = new Operations(this);
AvailabilitySets = new AvailabilitySetsOperations(this);
ProximityPlacementGroups = new ProximityPlacementGroupsOperations(this);
VirtualMachineExtensionImages = new VirtualMachineExtensionImagesOperations(this);
VirtualMachineExtensions = new VirtualMachineExtensionsOperations(this);
VirtualMachineImages = new VirtualMachineImagesOperations(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ public partial interface IComputeManagementClient : System.IDisposable
/// </summary>
IAvailabilitySetsOperations AvailabilitySets { get; }

/// <summary>
/// Gets the IProximityPlacementGroupsOperations.
/// </summary>
IProximityPlacementGroupsOperations ProximityPlacementGroups { get; }

/// <summary>
/// Gets the IVirtualMachineExtensionImagesOperations.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

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>
/// ProximityPlacementGroupsOperations operations.
/// </summary>
public partial interface IProximityPlacementGroupsOperations
{
/// <summary>
/// Create or update a proximity placement group.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='proximityPlacementGroupName'>
/// The name of the proximity placement group.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to the Create Proximity Placement Group
/// operation.
/// </param>
/// <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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ProximityPlacementGroup>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string proximityPlacementGroupName, ProximityPlacementGroup parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Update a proximity placement group.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='proximityPlacementGroupName'>
/// The name of the proximity placement group.
/// </param>
/// <param name='tags'>
/// Resource tags
/// </param>
/// <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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ProximityPlacementGroup>> UpdateWithHttpMessagesAsync(string resourceGroupName, string proximityPlacementGroupName, IDictionary<string, string> tags = default(IDictionary<string, string>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete a proximity placement group.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='proximityPlacementGroupName'>
/// The name of the proximity placement group.
/// </param>
/// <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 proximityPlacementGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Retrieves information about a proximity placement group .
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='proximityPlacementGroupName'>
/// The name of the proximity placement group.
/// </param>
/// <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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ProximityPlacementGroup>> GetWithHttpMessagesAsync(string resourceGroupName, string proximityPlacementGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all proximity placement groups in a subscription.
/// </summary>
/// <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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ProximityPlacementGroup>>> ListBySubscriptionWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all proximity placement groups in a resource group.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ProximityPlacementGroup>>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all proximity placement groups in a subscription.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ProximityPlacementGroup>>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Lists all proximity placement groups in a resource group.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <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.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ProximityPlacementGroup>>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,23 @@ public AvailabilitySet()
/// <param name="platformFaultDomainCount">Fault Domain count.</param>
/// <param name="virtualMachines">A list of references to all virtual
/// machines in the availability set.</param>
/// <param name="proximityPlacementGroup">Specifies information about
/// the proximity placement group that the availability set should be
/// assigned to. &lt;br&gt;&lt;br&gt;Minimum api-version:
/// 2018-04-01.</param>
/// <param name="statuses">The resource status information.</param>
/// <param name="sku">Sku of the availability set, only name is
/// required to be set. See AvailabilitySetSkuTypes for possible set of
/// values. Use 'Aligned' for virtual machines with managed disks and
/// 'Classic' for virtual machines with unmanaged disks. Default value
/// is 'Classic'.</param>
public AvailabilitySet(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), int? platformUpdateDomainCount = default(int?), int? platformFaultDomainCount = default(int?), IList<SubResource> virtualMachines = default(IList<SubResource>), IList<InstanceViewStatus> statuses = default(IList<InstanceViewStatus>), Sku sku = default(Sku))
public AvailabilitySet(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), int? platformUpdateDomainCount = default(int?), int? platformFaultDomainCount = default(int?), IList<SubResource> virtualMachines = default(IList<SubResource>), SubResource proximityPlacementGroup = default(SubResource), IList<InstanceViewStatus> statuses = default(IList<InstanceViewStatus>), Sku sku = default(Sku))
: base(location, id, name, type, tags)
{
PlatformUpdateDomainCount = platformUpdateDomainCount;
PlatformFaultDomainCount = platformFaultDomainCount;
VirtualMachines = virtualMachines;
ProximityPlacementGroup = proximityPlacementGroup;
Statuses = statuses;
Sku = sku;
CustomInit();
Expand Down Expand Up @@ -96,6 +101,15 @@ public AvailabilitySet()
[JsonProperty(PropertyName = "properties.virtualMachines")]
public IList<SubResource> VirtualMachines { get; set; }

/// <summary>
/// Gets or sets specifies information about the proximity placement
/// group that the availability set should be assigned to.
/// &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Minimum api-version:
/// 2018-04-01.
/// </summary>
[JsonProperty(PropertyName = "properties.proximityPlacementGroup")]
public SubResource ProximityPlacementGroup { get; set; }

/// <summary>
/// Gets the resource status information.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,19 @@ public AvailabilitySetUpdate()
/// <param name="platformFaultDomainCount">Fault Domain count.</param>
/// <param name="virtualMachines">A list of references to all virtual
/// machines in the availability set.</param>
/// <param name="proximityPlacementGroup">Specifies information about
/// the proximity placement group that the availability set should be
/// assigned to. &lt;br&gt;&lt;br&gt;Minimum api-version:
/// 2018-04-01.</param>
/// <param name="statuses">The resource status information.</param>
/// <param name="sku">Sku of the availability set</param>
public AvailabilitySetUpdate(IDictionary<string, string> tags = default(IDictionary<string, string>), int? platformUpdateDomainCount = default(int?), int? platformFaultDomainCount = default(int?), IList<SubResource> virtualMachines = default(IList<SubResource>), IList<InstanceViewStatus> statuses = default(IList<InstanceViewStatus>), Sku sku = default(Sku))
public AvailabilitySetUpdate(IDictionary<string, string> tags = default(IDictionary<string, string>), int? platformUpdateDomainCount = default(int?), int? platformFaultDomainCount = default(int?), IList<SubResource> virtualMachines = default(IList<SubResource>), SubResource proximityPlacementGroup = default(SubResource), IList<InstanceViewStatus> statuses = default(IList<InstanceViewStatus>), Sku sku = default(Sku))
: base(tags)
{
PlatformUpdateDomainCount = platformUpdateDomainCount;
PlatformFaultDomainCount = platformFaultDomainCount;
VirtualMachines = virtualMachines;
ProximityPlacementGroup = proximityPlacementGroup;
Statuses = statuses;
Sku = sku;
CustomInit();
Expand Down Expand Up @@ -78,6 +83,15 @@ public AvailabilitySetUpdate()
[JsonProperty(PropertyName = "properties.virtualMachines")]
public IList<SubResource> VirtualMachines { get; set; }

/// <summary>
/// Gets or sets specifies information about the proximity placement
/// group that the availability set should be assigned to.
/// &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Minimum api-version:
/// 2018-04-01.
/// </summary>
[JsonProperty(PropertyName = "properties.proximityPlacementGroup")]
public SubResource ProximityPlacementGroup { get; set; }

/// <summary>
/// Gets the resource status information.
/// </summary>
Expand Down
Loading

0 comments on commit aff7b32

Please sign in to comment.