generated/api/Models/UpdatePlanEntityRule.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; /// <summary> /// Plan entity rule update object. Fields in this object need to be populated to suggest what need to be changed in the rule. /// User can provide all rule options or can specify a specific rule group. Be default, for rule to be applicable for association /// to a workload, ALL specified rules in that Rule need to be matched. /// </summary> public partial class UpdatePlanEntityRule : Commvault.Powershell.Models.IUpdatePlanEntityRule, Commvault.Powershell.Models.IUpdatePlanEntityRuleInternal { /// <summary>Internal Acessors for Plan</summary> Commvault.Powershell.Models.IIdNameGuid Commvault.Powershell.Models.IUpdatePlanEntityRuleInternal.Plan { get => (this._plan = this._plan ?? new Commvault.Powershell.Models.IdNameGuid()); set { {_plan = value;} } } /// <summary>Internal Acessors for Rule</summary> Commvault.Powershell.Models.IIdNameGuid Commvault.Powershell.Models.IUpdatePlanEntityRuleInternal.Rule { get => (this._rule = this._rule ?? new Commvault.Powershell.Models.IdNameGuid()); set { {_rule = value;} } } /// <summary>Backing field for <see cref="Plan" /> property.</summary> private Commvault.Powershell.Models.IIdNameGuid _plan; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdNameGuid Plan { get => (this._plan = this._plan ?? new Commvault.Powershell.Models.IdNameGuid()); set => this._plan = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string PlanGuid { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Guid; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Guid = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? PlanId { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Id; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string PlanName { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Name; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Name = value ?? null; } /// <summary>Backing field for <see cref="Rank" /> property.</summary> private long? _rank; /// <summary>[Optional] - This field will suggest rank/priority of rule.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Rank { get => this._rank; set => this._rank = value; } /// <summary>Backing field for <see cref="Regions" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IIdNameGuid> _regions; /// <summary> /// This will include list of regions that should be evaluated against workload region for plan association. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IIdNameGuid> Regions { get => this._regions; set => this._regions = value; } /// <summary>Backing field for <see cref="Rule" /> property.</summary> private Commvault.Powershell.Models.IIdNameGuid _rule; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdNameGuid Rule { get => (this._rule = this._rule ?? new Commvault.Powershell.Models.IdNameGuid()); set => this._rule = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string RuleGuid { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Rule).Guid; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Rule).Guid = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? RuleId { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Rule).Id; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Rule).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string RuleName { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Rule).Name; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Rule).Name = value ?? null; } /// <summary>Backing field for <see cref="ServerGroups" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IIdNameGuid> _serverGroups; /// <summary> /// This will include list of Server groups that should be evaluated against workload server group for plan association. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IIdNameGuid> ServerGroups { get => this._serverGroups; set => this._serverGroups = value; } /// <summary>Backing field for <see cref="Solutions" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> _solutions; /// <summary> /// This will include list of solutions that should be evaluated against workload for plan association. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> Solutions { get => this._solutions; set => this._solutions = value; } /// <summary>Backing field for <see cref="Tags" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IPlanEntityRuleTag> _tags; /// <summary> /// This will include list of tags that should be evaluated against workload for plan association /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IPlanEntityRuleTag> Tags { get => this._tags; set => this._tags = value; } /// <summary>Backing field for <see cref="Workloads" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> _workloads; /// <summary> /// This will include list of apptypes that should be evaluated against workload apptype for plan association. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> Workloads { get => this._workloads; set => this._workloads = value; } /// <summary>Creates an new <see cref="UpdatePlanEntityRule" /> instance.</summary> public UpdatePlanEntityRule() { } } /// Plan entity rule update object. Fields in this object need to be populated to suggest what need to be changed in the rule. /// User can provide all rule options or can specify a specific rule group. Be default, for rule to be applicable for association /// to a workload, ALL specified rules in that Rule need to be matched. public partial interface IUpdatePlanEntityRule : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"GUID", PossibleTypes = new [] { typeof(string) })] string PlanGuid { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? PlanId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string PlanName { get; set; } /// <summary>[Optional] - This field will suggest rank/priority of rule.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"[Optional] - This field will suggest rank/priority of rule.", SerializedName = @"rank", PossibleTypes = new [] { typeof(long) })] long? Rank { get; set; } /// <summary> /// This will include list of regions that should be evaluated against workload region for plan association. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"This will include list of regions that should be evaluated against workload region for plan association.", SerializedName = @"regions", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdNameGuid) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdNameGuid> Regions { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"GUID", PossibleTypes = new [] { typeof(string) })] string RuleGuid { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? RuleId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string RuleName { get; set; } /// <summary> /// This will include list of Server groups that should be evaluated against workload server group for plan association. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"This will include list of Server groups that should be evaluated against workload server group for plan association.", SerializedName = @"serverGroups", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdNameGuid) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdNameGuid> ServerGroups { get; set; } /// <summary> /// This will include list of solutions that should be evaluated against workload for plan association. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"This will include list of solutions that should be evaluated against workload for plan association.", SerializedName = @"solutions", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> Solutions { get; set; } /// <summary> /// This will include list of tags that should be evaluated against workload for plan association /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"This will include list of tags that should be evaluated against workload for plan association", SerializedName = @"tags", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IPlanEntityRuleTag) })] System.Collections.Generic.List<Commvault.Powershell.Models.IPlanEntityRuleTag> Tags { get; set; } /// <summary> /// This will include list of apptypes that should be evaluated against workload apptype for plan association. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"This will include list of apptypes that should be evaluated against workload apptype for plan association.", SerializedName = @"workloads", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> Workloads { get; set; } } /// Plan entity rule update object. Fields in this object need to be populated to suggest what need to be changed in the rule. /// User can provide all rule options or can specify a specific rule group. Be default, for rule to be applicable for association /// to a workload, ALL specified rules in that Rule need to be matched. internal partial interface IUpdatePlanEntityRuleInternal { Commvault.Powershell.Models.IIdNameGuid Plan { get; set; } string PlanGuid { get; set; } long? PlanId { get; set; } string PlanName { get; set; } /// <summary>[Optional] - This field will suggest rank/priority of rule.</summary> long? Rank { get; set; } /// <summary> /// This will include list of regions that should be evaluated against workload region for plan association. /// </summary> System.Collections.Generic.List<Commvault.Powershell.Models.IIdNameGuid> Regions { get; set; } Commvault.Powershell.Models.IIdNameGuid Rule { get; set; } string RuleGuid { get; set; } long? RuleId { get; set; } string RuleName { get; set; } /// <summary> /// This will include list of Server groups that should be evaluated against workload server group for plan association. /// </summary> System.Collections.Generic.List<Commvault.Powershell.Models.IIdNameGuid> ServerGroups { get; set; } /// <summary> /// This will include list of solutions that should be evaluated against workload for plan association. /// </summary> System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> Solutions { get; set; } /// <summary> /// This will include list of tags that should be evaluated against workload for plan association /// </summary> System.Collections.Generic.List<Commvault.Powershell.Models.IPlanEntityRuleTag> Tags { get; set; } /// <summary> /// This will include list of apptypes that should be evaluated against workload apptype for plan association. /// </summary> System.Collections.Generic.List<Commvault.Powershell.Models.IIdName> Workloads { get; set; } } } |