generated/api/Models/ReplicationGroupAdvOptionsGcp.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;

    public partial class ReplicationGroupAdvOptionsGcp :
        Commvault.Powershell.Models.IReplicationGroupAdvOptionsGcp,
        Commvault.Powershell.Models.IReplicationGroupAdvOptionsGcpInternal,
        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; }

        /// <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; }

        /// <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; }

        /// <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="ReplicationGroupAdvOptionsGcp" /> instance.</summary>
        public ReplicationGroupAdvOptionsGcp()
        {

        }

        /// <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 IReplicationGroupAdvOptionsGcp :
        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,
        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 IReplicationGroupAdvOptionsGcpInternal :
        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; }

    }
}