generated/api/Models/PlanSourceCopy.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>PlanSourceCopy</summary>
    public partial class PlanSourceCopy :
        Commvault.Powershell.Models.IPlanSourceCopy,
        Commvault.Powershell.Models.IPlanSourceCopyInternal
    {

        /// <summary>Backing field for <see cref="ArrayReplicaCopy" /> property.</summary>
        private bool? _arrayReplicaCopy;

        /// <summary>Is this an array replica copy?</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? ArrayReplicaCopy { get => this._arrayReplicaCopy; set => this._arrayReplicaCopy = value; }

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

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

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

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

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

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

        /// <summary>Order of backup destinaion copy created in storage policy</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? CopyPrecedence { get => this._copyPrecedence; set => this._copyPrecedence = value; }

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

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

        /// <summary>Backing field for <see cref="DefaultReplicaCopy" /> property.</summary>
        private bool? _defaultReplicaCopy;

        /// <summary>Is this a default replica copy?</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? DefaultReplicaCopy { get => this._defaultReplicaCopy; set => this._defaultReplicaCopy = value; }

        /// <summary>Backing field for <see cref="IsActive" /> property.</summary>
        private bool? _isActive;

        /// <summary>Is this an active backup destination?</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? IsActive { get => this._isActive; set => this._isActive = value; }

        /// <summary>Backing field for <see cref="IsDefault" /> property.</summary>
        private bool? _isDefault;

        /// <summary>Is this a default backup destination?</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? IsDefault { get => this._isDefault; set => this._isDefault = value; }

        /// <summary>Backing field for <see cref="IsMirrorCopy" /> property.</summary>
        private bool? _isMirrorCopy;

        /// <summary>Is this a mirror copy?</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? IsMirrorCopy { get => this._isMirrorCopy; set => this._isMirrorCopy = value; }

        /// <summary>Backing field for <see cref="IsSnapCopy" /> property.</summary>
        private bool? _isSnapCopy;

        /// <summary>Is this a snap copy?</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? IsSnapCopy { get => this._isSnapCopy; set => this._isSnapCopy = value; }

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

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

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

        }
    }
    /// PlanSourceCopy
    public partial interface IPlanSourceCopy :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Is this an array replica copy?</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Is this an array replica copy?",
        SerializedName = @"arrayReplicaCopy",
        PossibleTypes = new [] { typeof(bool) })]
        bool? ArrayReplicaCopy { get; set; }

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

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string BackupDestinationName { get; set; }
        /// <summary>Order of backup destinaion copy created in storage policy</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Order of backup destinaion copy created in storage policy",
        SerializedName = @"copyPrecedence",
        PossibleTypes = new [] { typeof(long) })]
        long? CopyPrecedence { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"copyType",
        PossibleTypes = new [] { typeof(string) })]
        string CopyType { get; set; }
        /// <summary>Is this a default replica copy?</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Is this a default replica copy?",
        SerializedName = @"defaultReplicaCopy",
        PossibleTypes = new [] { typeof(bool) })]
        bool? DefaultReplicaCopy { get; set; }
        /// <summary>Is this an active backup destination?</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Is this an active backup destination?",
        SerializedName = @"isActive",
        PossibleTypes = new [] { typeof(bool) })]
        bool? IsActive { get; set; }
        /// <summary>Is this a default backup destination?</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Is this a default backup destination?",
        SerializedName = @"isDefault",
        PossibleTypes = new [] { typeof(bool) })]
        bool? IsDefault { get; set; }
        /// <summary>Is this a mirror copy?</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Is this a mirror copy?",
        SerializedName = @"isMirrorCopy",
        PossibleTypes = new [] { typeof(bool) })]
        bool? IsMirrorCopy { get; set; }
        /// <summary>Is this a snap copy?</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Is this a snap copy?",
        SerializedName = @"isSnapCopy",
        PossibleTypes = new [] { typeof(bool) })]
        bool? IsSnapCopy { get; set; }

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

    }
    /// PlanSourceCopy
    internal partial interface IPlanSourceCopyInternal

    {
        /// <summary>Is this an array replica copy?</summary>
        bool? ArrayReplicaCopy { get; set; }

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

        long? BackupDestinationId { get; set; }

        string BackupDestinationName { get; set; }
        /// <summary>Order of backup destinaion copy created in storage policy</summary>
        long? CopyPrecedence { get; set; }

        string CopyType { get; set; }
        /// <summary>Is this a default replica copy?</summary>
        bool? DefaultReplicaCopy { get; set; }
        /// <summary>Is this an active backup destination?</summary>
        bool? IsActive { get; set; }
        /// <summary>Is this a default backup destination?</summary>
        bool? IsDefault { get; set; }
        /// <summary>Is this a mirror copy?</summary>
        bool? IsMirrorCopy { get; set; }
        /// <summary>Is this a snap copy?</summary>
        bool? IsSnapCopy { get; set; }

        string SnapCopyType { get; set; }

    }
}