generated/api/Models/PlanBackupDestinationGeneralInfoUpdate.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;

    public partial class PlanBackupDestinationGeneralInfoUpdate :
        Commvault.Powershell.Models.IPlanBackupDestinationGeneralInfoUpdate,
        Commvault.Powershell.Models.IPlanBackupDestinationGeneralInfoUpdateInternal
    {

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

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

        /// <summary>
        /// Toggle to enable compliance lock on backup destination. One time operation, once enabled cannot be disabled and if it
        /// is enabled retention on backup destination cannot be lowered.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? ComplianceLock { get => this._complianceLock; set => this._complianceLock = value; }

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

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

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

        /// <summary>Toggle to enable immutable snap for snap copy</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? IsImmutableSnapCopy { get => this._isImmutableSnapCopy; set => this._isImmutableSnapCopy = value; }

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

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

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

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

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

        }
    }
    public partial interface IPlanBackupDestinationGeneralInfoUpdate :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>
        /// Toggle to enable compliance lock on backup destination. One time operation, once enabled cannot be disabled and if it
        /// is enabled retention on backup destination cannot be lowered.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Toggle to enable compliance lock on backup destination. One time operation, once enabled cannot be disabled and if it is enabled retention on backup destination cannot be lowered.",
        SerializedName = @"complianceLock",
        PossibleTypes = new [] { typeof(bool) })]
        bool? ComplianceLock { get; set; }
        /// <summary>Toggle to keep backup destination active</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Toggle to keep backup destination active",
        SerializedName = @"isActive",
        PossibleTypes = new [] { typeof(bool) })]
        bool? IsActive { get; set; }
        /// <summary>Toggle to enable immutable snap for snap copy</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Toggle to enable immutable snap for snap copy",
        SerializedName = @"isImmutableSnapCopy",
        PossibleTypes = new [] { typeof(bool) })]
        bool? IsImmutableSnapCopy { get; set; }

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

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

    }
    internal partial interface IPlanBackupDestinationGeneralInfoUpdateInternal

    {
        /// <summary>
        /// Toggle to enable compliance lock on backup destination. One time operation, once enabled cannot be disabled and if it
        /// is enabled retention on backup destination cannot be lowered.
        /// </summary>
        bool? ComplianceLock { get; set; }
        /// <summary>Toggle to keep backup destination active</summary>
        bool? IsActive { get; set; }
        /// <summary>Toggle to enable immutable snap for snap copy</summary>
        bool? IsImmutableSnapCopy { get; set; }

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

        long? SourceId { get; set; }

        string SourceName { get; set; }

    }
}