generated/api/Models/UpdateReplicationGroup.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>UpdateReplicationGroupReq</summary> public partial class UpdateReplicationGroup : Commvault.Powershell.Models.IUpdateReplicationGroup, Commvault.Powershell.Models.IUpdateReplicationGroupInternal { /// <summary>Set to true to continue to the next priority machines on failure.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public bool? AdvancedOptionContinueOnFailure { get => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)AdvancedOptions).ContinueOnFailure; set => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)AdvancedOptions).ContinueOnFailure = value ?? default(bool); } /// <summary>The delay between machines in different priorities. Mention in minutes</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? AdvancedOptionDelayBetweenPriorityMachines { get => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)AdvancedOptions).DelayBetweenPriorityMachines; set => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)AdvancedOptions).DelayBetweenPriorityMachines = value ?? default(long); } /// <summary>Pre/post failover and failback scripts at group level</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public Commvault.Powershell.Models.IReplicationGroupScript AdvancedOptionScript { get => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)AdvancedOptions).Script; set => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)AdvancedOptions).Script = value ?? null /* model class */; } /// <summary>Backing field for <see cref="AdvancedOptions" /> property.</summary> private Commvault.Powershell.Models.IReplicationGroupAdvancedOptions _advancedOptions; /// <summary>The advanced option for replication group</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IReplicationGroupAdvancedOptions AdvancedOptions { get => (this._advancedOptions = this._advancedOptions ?? new Commvault.Powershell.Models.ReplicationGroupAdvancedOptions()); set => this._advancedOptions = value; } /// <summary>Internal Acessors for AdvancedOptions</summary> Commvault.Powershell.Models.IReplicationGroupAdvancedOptions Commvault.Powershell.Models.IUpdateReplicationGroupInternal.AdvancedOptions { get => (this._advancedOptions = this._advancedOptions ?? new Commvault.Powershell.Models.ReplicationGroupAdvancedOptions()); set { {_advancedOptions = value;} } } /// <summary>Backing field for <see cref="Disable" /> property.</summary> private bool? _disable; /// <summary>Used to disable a replication group</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? Disable { get => this._disable; set => this._disable = value; } /// <summary>Backing field for <see cref="Enable" /> property.</summary> private bool? _enable; /// <summary>Used to enable a replication group</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? Enable { get => this._enable; set => this._enable = value; } /// <summary>Backing field for <see cref="NewName" /> property.</summary> private string _newName; /// <summary>Used to change the name of a replication group</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string NewName { get => this._newName; set => this._newName = value; } /// <summary>Creates an new <see cref="UpdateReplicationGroup" /> instance.</summary> public UpdateReplicationGroup() { } } /// UpdateReplicationGroupReq public partial interface IUpdateReplicationGroup : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Set to true to continue to the next priority machines on failure.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Set to true to continue to the next priority machines on failure.", SerializedName = @"continueOnFailure", PossibleTypes = new [] { typeof(bool) })] bool? AdvancedOptionContinueOnFailure { get; set; } /// <summary>The delay between machines in different priorities. Mention in minutes</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The delay between machines in different priorities. Mention in minutes", SerializedName = @"delayBetweenPriorityMachines", PossibleTypes = new [] { typeof(long) })] long? AdvancedOptionDelayBetweenPriorityMachines { get; set; } /// <summary>Pre/post failover and failback scripts at group level</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Pre/post failover and failback scripts at group level", SerializedName = @"script", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IReplicationGroupScript) })] Commvault.Powershell.Models.IReplicationGroupScript AdvancedOptionScript { get; set; } /// <summary>Used to disable a replication group</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Used to disable a replication group", SerializedName = @"disable", PossibleTypes = new [] { typeof(bool) })] bool? Disable { get; set; } /// <summary>Used to enable a replication group</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Used to enable a replication group", SerializedName = @"enable", PossibleTypes = new [] { typeof(bool) })] bool? Enable { get; set; } /// <summary>Used to change the name of a replication group</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Used to change the name of a replication group", SerializedName = @"newName", PossibleTypes = new [] { typeof(string) })] string NewName { get; set; } } /// UpdateReplicationGroupReq internal partial interface IUpdateReplicationGroupInternal { /// <summary>Set to true to continue to the next priority machines on failure.</summary> bool? AdvancedOptionContinueOnFailure { get; set; } /// <summary>The delay between machines in different priorities. Mention in minutes</summary> long? AdvancedOptionDelayBetweenPriorityMachines { get; set; } /// <summary>Pre/post failover and failback scripts at group level</summary> Commvault.Powershell.Models.IReplicationGroupScript AdvancedOptionScript { get; set; } /// <summary>The advanced option for replication group</summary> Commvault.Powershell.Models.IReplicationGroupAdvancedOptions AdvancedOptions { get; set; } /// <summary>Used to disable a replication group</summary> bool? Disable { get; set; } /// <summary>Used to enable a replication group</summary> bool? Enable { get; set; } /// <summary>Used to change the name of a replication group</summary> string NewName { get; set; } } } |