generated/api/Models/VMLocation.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Commvault.Powershell.Models
{
    using static Commvault.Powershell.Runtime.Extensions;

    /// <summary>VMLocation</summary>
    public partial class VMLocation :
        Commvault.Powershell.Models.IVMLocation,
        Commvault.Powershell.Models.IVMLocationInternal
    {

        /// <summary>Backing field for <see cref="Cluster" /> property.</summary>
        private string _cluster;

        /// <summary>ESX-Cluster moref if cluster is selected for resource</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Cluster { get => this._cluster; set => this._cluster = value; }

        /// <summary>Backing field for <see cref="DataCenterName" /> property.</summary>
        private string _dataCenterName;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string DataCenterName { get => this._dataCenterName; set => this._dataCenterName = value; }

        /// <summary>Backing field for <see cref="Datastore" /> property.</summary>
        private string _datastore;

        /// <summary>
        /// If cluster is selected for storage then moref of datastore cluster else dataStoreName
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Datastore { get => this._datastore; set => this._datastore = value; }

        /// <summary>Backing field for <see cref="Host" /> property.</summary>
        private string _host;

        /// <summary>
        /// If ESX-Host for resource the host moref or If ESX-Cluster then cluster moref and if resource pool is used for resource
        /// then first go for host moref then cluster moref
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Host { get => this._host; set => this._host = value; }

        /// <summary>Backing field for <see cref="InventoryPath" /> property.</summary>
        private string _inventoryPath;

        /// <summary>
        /// Folder path where you can locate vm, empty if Datacenter is selected for location. Default is set to Datacenter
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string InventoryPath { get => this._inventoryPath; set => this._inventoryPath = value; }

        /// <summary>Backing field for <see cref="ResourcePool" /> property.</summary>
        private string _resourcePool;

        /// <summary>Resource Pool moref if resource pool is selected for resource</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ResourcePool { get => this._resourcePool; set => this._resourcePool = value; }

        /// <summary>Creates an new <see cref="VMLocation" /> instance.</summary>
        public VMLocation()
        {

        }
    }
    /// VMLocation
    public partial interface IVMLocation :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>ESX-Cluster moref if cluster is selected for resource</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"ESX-Cluster moref if cluster is selected for resource",
        SerializedName = @"cluster",
        PossibleTypes = new [] { typeof(string) })]
        string Cluster { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"dataCenterName",
        PossibleTypes = new [] { typeof(string) })]
        string DataCenterName { get; set; }
        /// <summary>
        /// If cluster is selected for storage then moref of datastore cluster else dataStoreName
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"If cluster is selected for storage then moref of datastore cluster else dataStoreName",
        SerializedName = @"datastore",
        PossibleTypes = new [] { typeof(string) })]
        string Datastore { get; set; }
        /// <summary>
        /// If ESX-Host for resource the host moref or If ESX-Cluster then cluster moref and if resource pool is used for resource
        /// then first go for host moref then cluster moref
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"If ESX-Host for resource the host moref or If ESX-Cluster then cluster moref and if resource pool is used for resource then first go for host moref then cluster moref",
        SerializedName = @"host",
        PossibleTypes = new [] { typeof(string) })]
        string Host { get; set; }
        /// <summary>
        /// Folder path where you can locate vm, empty if Datacenter is selected for location. Default is set to Datacenter
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Folder path where you can locate vm, empty if Datacenter is selected for location. Default is set to Datacenter",
        SerializedName = @"inventoryPath",
        PossibleTypes = new [] { typeof(string) })]
        string InventoryPath { get; set; }
        /// <summary>Resource Pool moref if resource pool is selected for resource</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Resource Pool moref if resource pool is selected for resource",
        SerializedName = @"resourcePool",
        PossibleTypes = new [] { typeof(string) })]
        string ResourcePool { get; set; }

    }
    /// VMLocation
    internal partial interface IVMLocationInternal

    {
        /// <summary>ESX-Cluster moref if cluster is selected for resource</summary>
        string Cluster { get; set; }

        string DataCenterName { get; set; }
        /// <summary>
        /// If cluster is selected for storage then moref of datastore cluster else dataStoreName
        /// </summary>
        string Datastore { get; set; }
        /// <summary>
        /// If ESX-Host for resource the host moref or If ESX-Cluster then cluster moref and if resource pool is used for resource
        /// then first go for host moref then cluster moref
        /// </summary>
        string Host { get; set; }
        /// <summary>
        /// Folder path where you can locate vm, empty if Datacenter is selected for location. Default is set to Datacenter
        /// </summary>
        string InventoryPath { get; set; }
        /// <summary>Resource Pool moref if resource pool is selected for resource</summary>
        string ResourcePool { get; set; }

    }
}