generated/api/Models/CreateGlobalServerPlan.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 CreateGlobalServerPlan : Commvault.Powershell.Models.ICreateGlobalServerPlan, Commvault.Powershell.Models.ICreateGlobalServerPlanInternal { /// <summary>Internal Acessors for GlobalConfigInfo</summary> Commvault.Powershell.Models.ICreateGlobalConfigInfo Commvault.Powershell.Models.ICreateGlobalServerPlanInternal.GlobalConfigInfo { get => (this._globalConfigInfo = this._globalConfigInfo ?? new Commvault.Powershell.Models.CreateGlobalConfigInfo()); set { {_globalConfigInfo = value;} } } /// <summary>Backing field for <see cref="GlobalConfigInfo" /> property.</summary> private Commvault.Powershell.Models.ICreateGlobalConfigInfo _globalConfigInfo; /// <summary>Only applicable to Global CommCells</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.ICreateGlobalConfigInfo GlobalConfigInfo { get => (this._globalConfigInfo = this._globalConfigInfo ?? new Commvault.Powershell.Models.CreateGlobalConfigInfo()); set => this._globalConfigInfo = value; } /// <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.Inlined)] public string GlobalConfigInfoActionOnLocalEntity { get => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).ActionOnLocalEntity; set => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).ActionOnLocalEntity = value ?? null; } /// <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.Inlined)] public bool? GlobalConfigInfoApplyOnAllCommCells { get => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).ApplyOnAllCommCells; set => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).ApplyOnAllCommCells = value ?? default(bool); } /// <summary>List of Service CommCells where the global configuration should be applied</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public System.Collections.Generic.List<Commvault.Powershell.Models.IGlobalConfigCommcellInfo> GlobalConfigInfoCommcells { get => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).Commcells; set => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).Commcells = value ?? null /* arrayOf */; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GlobalConfigInfoName { get => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).Name; set => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).Name = value ?? null; } /// <summary>The entity level at which the config has to be applied.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GlobalConfigInfoScope { get => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).Scope; set => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).Scope = value ?? null; } /// <summary>CommCellEntityCache filter query string using for filtering the scope</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GlobalConfigInfoScopeFilterQuery { get => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).ScopeFilterQuery; set => ((Commvault.Powershell.Models.ICreateGlobalConfigInfoInternal)GlobalConfigInfo).ScopeFilterQuery = value ?? null; } /// <summary>Backing field for <see cref="Plan" /> property.</summary> private Commvault.Powershell.Models.ICreateServerPlan _plan; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public Commvault.Powershell.Models.ICreateServerPlan Plan { get => (this._plan = this._plan ?? new Commvault.Powershell.Models.CreateServerPlan()); set => this._plan = value; } /// <summary>Creates an new <see cref="CreateGlobalServerPlan" /> instance.</summary> public CreateGlobalServerPlan() { } } public partial interface ICreateGlobalServerPlan : 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, Read = true, Create = true, Update = true, 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 GlobalConfigInfoActionOnLocalEntity { 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, Read = true, Create = true, Update = true, 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? GlobalConfigInfoApplyOnAllCommCells { get; set; } /// <summary>List of Service CommCells where the global configuration should be applied</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"List of Service CommCells where the global configuration should be applied", SerializedName = @"commcells", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IGlobalConfigCommcellInfo) })] System.Collections.Generic.List<Commvault.Powershell.Models.IGlobalConfigCommcellInfo> GlobalConfigInfoCommcells { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string GlobalConfigInfoName { get; set; } /// <summary>The entity level at which the config has to be applied.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The entity level at which the config has to be applied.", SerializedName = @"scope", PossibleTypes = new [] { typeof(string) })] string GlobalConfigInfoScope { get; set; } /// <summary>CommCellEntityCache filter query string using for filtering the scope</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"CommCellEntityCache filter query string using for filtering the scope", SerializedName = @"scopeFilterQuery", PossibleTypes = new [] { typeof(string) })] string GlobalConfigInfoScopeFilterQuery { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"plan", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.ICreateServerPlan) })] Commvault.Powershell.Models.ICreateServerPlan Plan { get; set; } } internal partial interface ICreateGlobalServerPlanInternal { /// <summary>Only applicable to Global CommCells</summary> Commvault.Powershell.Models.ICreateGlobalConfigInfo GlobalConfigInfo { get; set; } /// <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 GlobalConfigInfoActionOnLocalEntity { get; set; } /// <summary> /// Decides whether the global configuration should be applied to all the Service commcells, including the newly created ones /// </summary> bool? GlobalConfigInfoApplyOnAllCommCells { get; set; } /// <summary>List of Service CommCells where the global configuration should be applied</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IGlobalConfigCommcellInfo> GlobalConfigInfoCommcells { get; set; } string GlobalConfigInfoName { get; set; } /// <summary>The entity level at which the config has to be applied.</summary> string GlobalConfigInfoScope { get; set; } /// <summary>CommCellEntityCache filter query string using for filtering the scope</summary> string GlobalConfigInfoScopeFilterQuery { get; set; } Commvault.Powershell.Models.ICreateServerPlan Plan { get; set; } } } |