generated/api/Models/ReplicationGroupAdvOptionsOci.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 ReplicationGroupAdvOptionsOci : Commvault.Powershell.Models.IReplicationGroupAdvOptionsOci, Commvault.Powershell.Models.IReplicationGroupAdvOptionsOciInternal, Commvault.Powershell.Runtime.IValidates { /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IReplicationGroupAdvancedOptions" /> /// </summary> private Commvault.Powershell.Models.IReplicationGroupAdvancedOptions __replicationGroupAdvancedOptions = new Commvault.Powershell.Models.ReplicationGroupAdvancedOptions(); /// <summary>Set to true to continue to the next priority machines on failure.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public bool? ContinueOnFailure { get => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)__replicationGroupAdvancedOptions).ContinueOnFailure; set => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)__replicationGroupAdvancedOptions).ContinueOnFailure = value ?? default(bool); } /// <summary>The delay between machines in different priorities. Mention in minutes</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? DelayBetweenPriorityMachines { get => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)__replicationGroupAdvancedOptions).DelayBetweenPriorityMachines; set => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)__replicationGroupAdvancedOptions).DelayBetweenPriorityMachines = value ?? default(long); } /// <summary>Pre/post failover and failback scripts at group level</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public Commvault.Powershell.Models.IReplicationGroupScript Script { get => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)__replicationGroupAdvancedOptions).Script; set => ((Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal)__replicationGroupAdvancedOptions).Script = value ?? null /* model class */; } /// <summary>Backing field for <see cref="UnconditionalOverwrite" /> property.</summary> private bool? _unconditionalOverwrite; /// <summary> /// This will replace the instance at the destination if the instance with the same name already exists. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? UnconditionalOverwrite { get => this._unconditionalOverwrite; set => this._unconditionalOverwrite = value; } /// <summary>Creates an new <see cref="ReplicationGroupAdvOptionsOci" /> instance.</summary> public ReplicationGroupAdvOptionsOci() { } /// <summary>Validates that this object meets the validation criteria.</summary> /// <param name="eventListener">an <see cref="Commvault.Powershell.Runtime.IEventListener" /> instance that will receive validation /// events.</param> /// <returns> /// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. /// </returns> public async global::System.Threading.Tasks.Task Validate(Commvault.Powershell.Runtime.IEventListener eventListener) { await eventListener.AssertNotNull(nameof(__replicationGroupAdvancedOptions), __replicationGroupAdvancedOptions); await eventListener.AssertObjectIsValid(nameof(__replicationGroupAdvancedOptions), __replicationGroupAdvancedOptions); } } public partial interface IReplicationGroupAdvOptionsOci : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.IReplicationGroupAdvancedOptions { /// <summary> /// This will replace the instance at the destination if the instance with the same name already exists. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"This will replace the instance at the destination if the instance with the same name already exists.", SerializedName = @"unconditionalOverwrite", PossibleTypes = new [] { typeof(bool) })] bool? UnconditionalOverwrite { get; set; } } internal partial interface IReplicationGroupAdvOptionsOciInternal : Commvault.Powershell.Models.IReplicationGroupAdvancedOptionsInternal { /// <summary> /// This will replace the instance at the destination if the instance with the same name already exists. /// </summary> bool? UnconditionalOverwrite { get; set; } } } |