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

Starter updates to model type generation #33

Open
m-nash opened this issue Oct 1, 2020 · 0 comments
Open

Starter updates to model type generation #33

m-nash opened this issue Oct 1, 2020 · 0 comments
Assignees

Comments

@m-nash
Copy link
Owner

m-nash commented Oct 1, 2020

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

//

#nullable disable

using System;
using System.Collections.Generic;
using Azure.Core;
//CHANGE: using Azure.ResourceManager.Core

namespace Azure.ResourceManager.Compute.Models
{
///

Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see Manage the availability of virtual machines. <br><br> For more information on Azure planned maintenance, see Planned maintenance for virtual machines in Azure <br><br> Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set.
//CHANGE: public partial class AvailabilitySet : TrackedResource
public partial class AvailabilitySet : Resource
{
/// Initializes a new instance of AvailabilitySet.
/// Resource location.
/// is null.
public AvailabilitySet(string location) : base(location)
{
//CHANGE: remove
if (location == null)
{
throw new ArgumentNullException(nameof(location));
}
//CHANGE: end remove

        VirtualMachines = new ChangeTrackingList<SubResource>();
        Statuses = new ChangeTrackingList<InstanceViewStatus>();
    }

    /// <summary> Initializes a new instance of AvailabilitySet. </summary>
    /// <param name="id"> Resource Id. </param>
    /// <param name="name"> Resource name. </param>
    /// <param name="type"> Resource type. </param>
    /// <param name="location"> Resource location. </param>
    /// <param name="tags"> Resource tags. </param>
    /// <param name="sku"> Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use &apos;Aligned&apos; for virtual machines with managed disks and &apos;Classic&apos; for virtual machines with unmanaged disks. Default value is &apos;Classic&apos;. </param>
    /// <param name="platformUpdateDomainCount"> Update Domain count. </param>
    /// <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>
    internal AvailabilitySet(string id, string name, string type, string location, IDictionary<string, string> tags, Sku sku, int? platformUpdateDomainCount, int? platformFaultDomainCount, IList<SubResource> virtualMachines, SubResource proximityPlacementGroup, IReadOnlyList<InstanceViewStatus> statuses) : base(id, name, type, location, tags)
    {
        Sku = sku;
        PlatformUpdateDomainCount = platformUpdateDomainCount;
        PlatformFaultDomainCount = platformFaultDomainCount;
        VirtualMachines = virtualMachines;
        ProximityPlacementGroup = proximityPlacementGroup;
        Statuses = statuses;
    }

    /// <summary> Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use &apos;Aligned&apos; for virtual machines with managed disks and &apos;Classic&apos; for virtual machines with unmanaged disks. Default value is &apos;Classic&apos;. </summary>
    public Sku Sku { get; set; }
    /// <summary> Update Domain count. </summary>
    public int? PlatformUpdateDomainCount { get; set; }
    /// <summary> Fault Domain count. </summary>
    public int? PlatformFaultDomainCount { get; set; }
    /// <summary> A list of references to all virtual machines in the availability set. </summary>
    //CHANGE: public IList<ResourceIdentifier> VirtualMachines { get; }
    public IList<SubResource> VirtualMachines { get; }
    /// <summary> 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. </summary>
    //CHANGE: public ResourceIdentifier ProximityPlacementGroup { get; set; }
    public SubResource ProximityPlacementGroup { get; set; }
    /// <summary> The resource status information. </summary>
    public IReadOnlyList<InstanceViewStatus> Statuses { get; }
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants