generated/api/Models/MountReq.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> /// 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.IAny _appId; /// <summary>Anything</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public Commvault.Powershell.Models.IAny AppId { get => (this._appId = this._appId ?? new Commvault.Powershell.Models.Any()); 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.IAny _server; /// <summary>Anything</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public Commvault.Powershell.Models.IAny Server { get => (this._server = this._server ?? new Commvault.Powershell.Models.Any()); 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 System.Collections.Generic.List<Commvault.Powershell.Models.IVolumeSnap> _volumes; /// <summary>Volumes of the snap you want to mount</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<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 { /// <summary>Anything</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Anything", SerializedName = @"appId", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAny) })] Commvault.Powershell.Models.IAny AppId { get; set; } /// <summary>Id of the MA where the Snap is mounted</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ScsiServerId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ScsiServerName { get; set; } /// <summary>Anything</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Anything", SerializedName = @"server", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAny) })] Commvault.Powershell.Models.IAny Server { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"Volumes of the snap you want to mount", SerializedName = @"volumes", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IVolumeSnap) })] System.Collections.Generic.List<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 { /// <summary>Anything</summary> Commvault.Powershell.Models.IAny 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; } /// <summary>Anything</summary> Commvault.Powershell.Models.IAny Server { get; set; } string UserName { get; set; } /// <summary>Volumes of the snap you want to mount</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IVolumeSnap> Volumes { get; set; } } } |