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

    public partial class CompanyStatus :
        Commvault.Powershell.Models.ICompanyStatus,
        Commvault.Powershell.Models.ICompanyStatusInternal
    {

        /// <summary>Internal Acessors for Options</summary>
        Commvault.Powershell.Models.IDeactivationOptions Commvault.Powershell.Models.ICompanyStatusInternal.Options { get => (this._options = this._options ?? new Commvault.Powershell.Models.DeactivationOptions()); set { {_options = value;} } }

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

        /// <summary>Used to activate or deactivate the company.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? Deactivate { get => this._deactivate; set => this._deactivate = value; }

        /// <summary>
        /// Enable or disable backup. This option can only be set or unset for a deactivated company.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public bool? OptionDisableBackup { get => ((Commvault.Powershell.Models.IDeactivationOptionsInternal)Options).DisableBackup; set => ((Commvault.Powershell.Models.IDeactivationOptionsInternal)Options).DisableBackup = value ?? default(bool); }

        /// <summary>
        /// Enable or disable login. This option can only be set or unset for a deactivated company.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public bool? OptionDisableLogin { get => ((Commvault.Powershell.Models.IDeactivationOptionsInternal)Options).DisableLogin; set => ((Commvault.Powershell.Models.IDeactivationOptionsInternal)Options).DisableLogin = value ?? default(bool); }

        /// <summary>
        /// Enable or disable restore. This option can only be set or unset for a deactivated company.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public bool? OptionDisableRestore { get => ((Commvault.Powershell.Models.IDeactivationOptionsInternal)Options).DisableRestore; set => ((Commvault.Powershell.Models.IDeactivationOptionsInternal)Options).DisableRestore = value ?? default(bool); }

        /// <summary>Backing field for <see cref="Options" /> property.</summary>
        private Commvault.Powershell.Models.IDeactivationOptions _options;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IDeactivationOptions Options { get => (this._options = this._options ?? new Commvault.Powershell.Models.DeactivationOptions()); set => this._options = value; }

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

        }
    }
    public partial interface ICompanyStatus :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Used to activate or deactivate the company.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Used to activate or deactivate the company.",
        SerializedName = @"deactivate",
        PossibleTypes = new [] { typeof(bool) })]
        bool? Deactivate { get; set; }
        /// <summary>
        /// Enable or disable backup. This option can only be set or unset for a deactivated company.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Enable or disable backup. This option can only be set or unset for a deactivated company.",
        SerializedName = @"disableBackup",
        PossibleTypes = new [] { typeof(bool) })]
        bool? OptionDisableBackup { get; set; }
        /// <summary>
        /// Enable or disable login. This option can only be set or unset for a deactivated company.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Enable or disable login. This option can only be set or unset for a deactivated company.",
        SerializedName = @"disableLogin",
        PossibleTypes = new [] { typeof(bool) })]
        bool? OptionDisableLogin { get; set; }
        /// <summary>
        /// Enable or disable restore. This option can only be set or unset for a deactivated company.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Enable or disable restore. This option can only be set or unset for a deactivated company.",
        SerializedName = @"disableRestore",
        PossibleTypes = new [] { typeof(bool) })]
        bool? OptionDisableRestore { get; set; }

    }
    internal partial interface ICompanyStatusInternal

    {
        /// <summary>Used to activate or deactivate the company.</summary>
        bool? Deactivate { get; set; }
        /// <summary>
        /// Enable or disable backup. This option can only be set or unset for a deactivated company.
        /// </summary>
        bool? OptionDisableBackup { get; set; }
        /// <summary>
        /// Enable or disable login. This option can only be set or unset for a deactivated company.
        /// </summary>
        bool? OptionDisableLogin { get; set; }
        /// <summary>
        /// Enable or disable restore. This option can only be set or unset for a deactivated company.
        /// </summary>
        bool? OptionDisableRestore { get; set; }

        Commvault.Powershell.Models.IDeactivationOptions Options { get; set; }

    }
}