generated/api/Models/CreateGlobalConfigInfo.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>Only applicable to Global CommCells</summary>
    public partial class CreateGlobalConfigInfo :
        Commvault.Powershell.Models.ICreateGlobalConfigInfo,
        Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal
    {

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

        /// <summary>
        /// Action that will be taken on the local entity that has the same name as the global entity that needs to be created
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ActionOnLocalEntity { get => this._actionOnLocalEntity; set => this._actionOnLocalEntity = value; }

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

        /// <summary>
        /// Decides whether the global configuration should be applied to all the Service commcells, including the newly created ones
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? ApplyOnAllCommCells { get => this._applyOnAllCommCells; set => this._applyOnAllCommCells = value; }

        /// <summary>Backing field for <see cref="Commcells" /> property.</summary>
        private Commvault.Powershell.Models.IGlobalConfigCommcellInfo[] _commcells;

        /// <summary>List of Service CommCells where the global configuration should be applied</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IGlobalConfigCommcellInfo[] Commcells { get => this._commcells; set => this._commcells = value; }

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

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

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

        /// <summary>The entity level at which the config has to be applied.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Scope { get => this._scope; set => this._scope = value; }

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

        /// <summary>CommCellEntityCache filter query string using for filtering the scope</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ScopeFilterQuery { get => this._scopeFilterQuery; set => this._scopeFilterQuery = value; }

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

        }
    }
    /// Only applicable to Global CommCells
    public partial interface ICreateGlobalConfigInfo :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>
        /// Action that will be taken on the local entity that has the same name as the global entity that needs to be created
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Action that will be taken on the local entity that has the same name as the global entity that needs to be created",
        SerializedName = @"actionOnLocalEntity",
        PossibleTypes = new [] { typeof(string) })]
        string ActionOnLocalEntity { get; set; }
        /// <summary>
        /// Decides whether the global configuration should be applied to all the Service commcells, including the newly created ones
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Decides whether the global configuration should be applied to all the Service commcells, including the newly created ones",
        SerializedName = @"applyOnAllCommCells",
        PossibleTypes = new [] { typeof(bool) })]
        bool? ApplyOnAllCommCells { get; set; }
        /// <summary>List of Service CommCells where the global configuration should be applied</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"List of Service CommCells where the global configuration should be applied",
        SerializedName = @"commcells",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IGlobalConfigCommcellInfo) })]
        Commvault.Powershell.Models.IGlobalConfigCommcellInfo[] Commcells { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }
        /// <summary>The entity level at which the config has to be applied.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The entity level at which the config has to be applied.",
        SerializedName = @"scope",
        PossibleTypes = new [] { typeof(string) })]
        string Scope { get; set; }
        /// <summary>CommCellEntityCache filter query string using for filtering the scope</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"CommCellEntityCache filter query string using for filtering the scope",
        SerializedName = @"scopeFilterQuery",
        PossibleTypes = new [] { typeof(string) })]
        string ScopeFilterQuery { get; set; }

    }
    /// Only applicable to Global CommCells
    internal partial interface ICreateGlobalConfigInfoInternal

    {
        /// <summary>
        /// Action that will be taken on the local entity that has the same name as the global entity that needs to be created
        /// </summary>
        string ActionOnLocalEntity { get; set; }
        /// <summary>
        /// Decides whether the global configuration should be applied to all the Service commcells, including the newly created ones
        /// </summary>
        bool? ApplyOnAllCommCells { get; set; }
        /// <summary>List of Service CommCells where the global configuration should be applied</summary>
        Commvault.Powershell.Models.IGlobalConfigCommcellInfo[] Commcells { get; set; }

        string Name { get; set; }
        /// <summary>The entity level at which the config has to be applied.</summary>
        string Scope { get; set; }
        /// <summary>CommCellEntityCache filter query string using for filtering the scope</summary>
        string ScopeFilterQuery { get; set; }

    }
}