generated/api/Models/TestFailoverVirtualMachines.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708)
// 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>Test failover virtual machine details</summary>
    public partial class TestFailoverVirtualMachines :
        Commvault.Powershell.Models.ITestFailoverVirtualMachines,
        Commvault.Powershell.Models.ITestFailoverVirtualMachinesInternal
    {

        /// <summary>Internal Acessors for Creator</summary>
        Commvault.Powershell.Models.IIdNameGuid Commvault.Powershell.Models.ITestFailoverVirtualMachinesInternal.Creator { get => (this._creator = this._creator ?? new Commvault.Powershell.Models.IdNameGuid()); set { {_creator = value;} } }

        /// <summary>Backing field for <see cref="Creator" /> property.</summary>
        private Commvault.Powershell.Models.IIdNameGuid _creator;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IIdNameGuid Creator { get => (this._creator = this._creator ?? new Commvault.Powershell.Models.IdNameGuid()); set => this._creator = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string CreatorGuid { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Creator).Guid; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Creator).Guid = value ?? null; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? CreatorId { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Creator).Id; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Creator).Id = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string CreatorName { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Creator).Name; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Creator).Name = value ?? null; }

        /// <summary>Backing field for <see cref="ExpirationTime" /> property.</summary>
        private long? _expirationTime;

        /// <summary>Expiration timestamp of cloned VM in unix time (epoch) format</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? ExpirationTime { get => this._expirationTime; set => this._expirationTime = value; }

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

        /// <summary>The IP address of the clone VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string IPAddress { get => this._iPAddress; set => this._iPAddress = value; }

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

        /// <summary>The name of the clone VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

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

        /// <summary>Name of operating system of VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string OperatingSystem { get => this._operatingSystem; set => this._operatingSystem = value; }

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

        /// <summary>Power state of the clone VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string State { get => this._state; set => this._state = value; }

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

        }
    }
    /// Test failover virtual machine details
    public partial interface ITestFailoverVirtualMachines :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"GUID",
        PossibleTypes = new [] { typeof(string) })]
        string CreatorGuid { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? CreatorId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string CreatorName { get; set; }
        /// <summary>Expiration timestamp of cloned VM in unix time (epoch) format</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Expiration timestamp of cloned VM in unix time (epoch) format",
        SerializedName = @"expirationTime",
        PossibleTypes = new [] { typeof(long) })]
        long? ExpirationTime { get; set; }
        /// <summary>The IP address of the clone VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"The IP address of the clone VM",
        SerializedName = @"ipAddress",
        PossibleTypes = new [] { typeof(string) })]
        string IPAddress { get; set; }
        /// <summary>The name of the clone VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"The name of the clone VM",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }
        /// <summary>Name of operating system of VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Name of operating system of VM",
        SerializedName = @"operatingSystem",
        PossibleTypes = new [] { typeof(string) })]
        string OperatingSystem { get; set; }
        /// <summary>Power state of the clone VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Power state of the clone VM",
        SerializedName = @"state",
        PossibleTypes = new [] { typeof(string) })]
        string State { get; set; }

    }
    /// Test failover virtual machine details
    internal partial interface ITestFailoverVirtualMachinesInternal

    {
        Commvault.Powershell.Models.IIdNameGuid Creator { get; set; }

        string CreatorGuid { get; set; }

        long? CreatorId { get; set; }

        string CreatorName { get; set; }
        /// <summary>Expiration timestamp of cloned VM in unix time (epoch) format</summary>
        long? ExpirationTime { get; set; }
        /// <summary>The IP address of the clone VM</summary>
        string IPAddress { get; set; }
        /// <summary>The name of the clone VM</summary>
        string Name { get; set; }
        /// <summary>Name of operating system of VM</summary>
        string OperatingSystem { get; set; }
        /// <summary>Power state of the clone VM</summary>
        string State { get; set; }

    }
}