generated/api/Models/MountReq.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>
    /// Request template for Mounting Snapshots. scsiServer refers to the iSCSI server which the user can choose while mounting.
    /// </summary>
    public partial class MountReq :
        Commvault.Powershell.Models.IMountReq,
        Commvault.Powershell.Models.IMountReqInternal
    {

        /// <summary>Backing field for <see cref="AppId" /> property.</summary>
        private Commvault.Powershell.Models.IVsaApplicationDetails[] _appId;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IVsaApplicationDetails[] AppId { get => this._appId; set => this._appId = value; }

        /// <summary>Internal Acessors for DestinationClient</summary>
        Commvault.Powershell.Models.IDestinationMount Commvault.Powershell.Models.IMountReqInternal.DestinationClient { get => (this._destinationClient = this._destinationClient ?? new Commvault.Powershell.Models.DestinationMount()); set { {_destinationClient = value;} } }

        /// <summary>Internal Acessors for ScsiServer</summary>
        Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IMountReqInternal.ScsiServer { get => (this._scsiServer = this._scsiServer ?? new Commvault.Powershell.Models.IdName()); set { {_scsiServer = value;} } }

        /// <summary>Backing field for <see cref="DestinationClient" /> property.</summary>
        private Commvault.Powershell.Models.IDestinationMount _destinationClient;

        /// <summary>Model for destination clients id and path during Snap operations</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IDestinationMount DestinationClient { get => (this._destinationClient = this._destinationClient ?? new Commvault.Powershell.Models.DestinationMount()); set => this._destinationClient = value; }

        /// <summary>Id of the MA where the Snap is mounted</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? DestinationClientId { get => ((Commvault.Powershell.Models.IDestinationMountInternal)DestinationClient).Id; set => ((Commvault.Powershell.Models.IDestinationMountInternal)DestinationClient).Id = value ?? default(long); }

        /// <summary>Path where the snap is mounted</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string DestinationClientPath { get => ((Commvault.Powershell.Models.IDestinationMountInternal)DestinationClient).Path; set => ((Commvault.Powershell.Models.IDestinationMountInternal)DestinationClient).Path = value ?? null; }

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

        /// <summary>Enable or disable VSS protection on Snaps while mounting</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? ProtectSnap { get => this._protectSnap; set => this._protectSnap = value; }

        /// <summary>Backing field for <see cref="ScsiServer" /> property.</summary>
        private Commvault.Powershell.Models.IIdName _scsiServer;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IIdName ScsiServer { get => (this._scsiServer = this._scsiServer ?? new Commvault.Powershell.Models.IdName()); set => this._scsiServer = value; }

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

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

        /// <summary>Backing field for <see cref="Server" /> property.</summary>
        private Commvault.Powershell.Models.IVsaServerDetails[] _server;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IVsaServerDetails[] Server { get => this._server; set => this._server = value; }

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

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

        /// <summary>Backing field for <see cref="Volumes" /> property.</summary>
        private Commvault.Powershell.Models.IVolumeSnap[] _volumes;

        /// <summary>Volumes of the snap you want to mount</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IVolumeSnap[] Volumes { get => this._volumes; set => this._volumes = value; }

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

        }
    }
    /// Request template for Mounting Snapshots. scsiServer refers to the iSCSI server which the user can choose while mounting.
    public partial interface IMountReq :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"appId",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IVsaApplicationDetails) })]
        Commvault.Powershell.Models.IVsaApplicationDetails[] AppId { get; set; }
        /// <summary>Id of the MA where the Snap is mounted</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Id of the MA where the Snap is mounted",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? DestinationClientId { get; set; }
        /// <summary>Path where the snap is mounted</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Path where the snap is mounted",
        SerializedName = @"path",
        PossibleTypes = new [] { typeof(string) })]
        string DestinationClientPath { get; set; }
        /// <summary>Enable or disable VSS protection on Snaps while mounting</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Enable or disable VSS protection on Snaps while mounting",
        SerializedName = @"protectSnap",
        PossibleTypes = new [] { typeof(long) })]
        long? ProtectSnap { get; set; }

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

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string ScsiServerName { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"server",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IVsaServerDetails) })]
        Commvault.Powershell.Models.IVsaServerDetails[] Server { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"userName",
        PossibleTypes = new [] { typeof(string) })]
        string UserName { get; set; }
        /// <summary>Volumes of the snap you want to mount</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Volumes of the snap you want to mount",
        SerializedName = @"volumes",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IVolumeSnap) })]
        Commvault.Powershell.Models.IVolumeSnap[] Volumes { get; set; }

    }
    /// Request template for Mounting Snapshots. scsiServer refers to the iSCSI server which the user can choose while mounting.
    internal partial interface IMountReqInternal

    {
        Commvault.Powershell.Models.IVsaApplicationDetails[] AppId { get; set; }
        /// <summary>Model for destination clients id and path during Snap operations</summary>
        Commvault.Powershell.Models.IDestinationMount DestinationClient { get; set; }
        /// <summary>Id of the MA where the Snap is mounted</summary>
        long? DestinationClientId { get; set; }
        /// <summary>Path where the snap is mounted</summary>
        string DestinationClientPath { get; set; }
        /// <summary>Enable or disable VSS protection on Snaps while mounting</summary>
        long? ProtectSnap { get; set; }

        Commvault.Powershell.Models.IIdName ScsiServer { get; set; }

        long? ScsiServerId { get; set; }

        string ScsiServerName { get; set; }

        Commvault.Powershell.Models.IVsaServerDetails[] Server { get; set; }

        string UserName { get; set; }
        /// <summary>Volumes of the snap you want to mount</summary>
        Commvault.Powershell.Models.IVolumeSnap[] Volumes { get; set; }

    }
}