generated/api/Models/ArrayReplicationMonitorInfo.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>Gives array replication monitor site information</summary> public partial class ArrayReplicationMonitorInfo : Commvault.Powershell.Models.IArrayReplicationMonitorInfo, Commvault.Powershell.Models.IArrayReplicationMonitorInfoInternal { /// <summary>Internal Acessors for Destination</summary> Commvault.Powershell.Models.INameGuid Commvault.Powershell.Models.IArrayReplicationMonitorInfoInternal.Destination { get => (this._destination = this._destination ?? new Commvault.Powershell.Models.NameGuid()); set { {_destination = value;} } } /// <summary>Internal Acessors for Source</summary> Commvault.Powershell.Models.INameGuid Commvault.Powershell.Models.IArrayReplicationMonitorInfoInternal.Source { get => (this._source = this._source ?? new Commvault.Powershell.Models.NameGuid()); set { {_source = value;} } } /// <summary>Backing field for <see cref="Datastores" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IArrayReplicationDatastoreReplication> _datastores; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IArrayReplicationDatastoreReplication> Datastores { get => this._datastores; set => this._datastores = value; } /// <summary>Backing field for <see cref="Destination" /> property.</summary> private Commvault.Powershell.Models.INameGuid _destination; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.INameGuid Destination { get => (this._destination = this._destination ?? new Commvault.Powershell.Models.NameGuid()); set => this._destination = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string DestinationGuid { get => ((Commvault.Powershell.Models.INameGuidInternal)Destination).Guid; set => ((Commvault.Powershell.Models.INameGuidInternal)Destination).Guid = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string DestinationName { get => ((Commvault.Powershell.Models.INameGuidInternal)Destination).Name; set => ((Commvault.Powershell.Models.INameGuidInternal)Destination).Name = value ?? null; } /// <summary>Backing field for <see cref="FailoverStatus" /> property.</summary> private string _failoverStatus; /// <summary>The types of failover statuses</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string FailoverStatus { get => this._failoverStatus; set => this._failoverStatus = value; } /// <summary>Backing field for <see cref="Id" /> property.</summary> private long? _id; /// <summary>The ID of array replication pair</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Id { get => this._id; set => this._id = value; } /// <summary>Backing field for <see cref="LastReplicationFailureStatus" /> property.</summary> private string _lastReplicationFailureStatus; /// <summary>The reason for last replication job failure</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string LastReplicationFailureStatus { get => this._lastReplicationFailureStatus; set => this._lastReplicationFailureStatus = value; } /// <summary>Backing field for <see cref="Source" /> property.</summary> private Commvault.Powershell.Models.INameGuid _source; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.INameGuid Source { get => (this._source = this._source ?? new Commvault.Powershell.Models.NameGuid()); set => this._source = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SourceGuid { get => ((Commvault.Powershell.Models.INameGuidInternal)Source).Guid; set => ((Commvault.Powershell.Models.INameGuidInternal)Source).Guid = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SourceName { get => ((Commvault.Powershell.Models.INameGuidInternal)Source).Name; set => ((Commvault.Powershell.Models.INameGuidInternal)Source).Name = value ?? null; } /// <summary>Backing field for <see cref="TestFailoverStatus" /> property.</summary> private string _testFailoverStatus; /// <summary>The types of failover statuses</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string TestFailoverStatus { get => this._testFailoverStatus; set => this._testFailoverStatus = value; } /// <summary>Creates an new <see cref="ArrayReplicationMonitorInfo" /> instance.</summary> public ArrayReplicationMonitorInfo() { } } /// Gives array replication monitor site information public partial interface IArrayReplicationMonitorInfo : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"datastores", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IArrayReplicationDatastoreReplication) })] System.Collections.Generic.List<Commvault.Powershell.Models.IArrayReplicationDatastoreReplication> Datastores { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"GUID", PossibleTypes = new [] { typeof(string) })] string DestinationGuid { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string DestinationName { get; set; } /// <summary>The types of failover statuses</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The types of failover statuses", SerializedName = @"failoverStatus", PossibleTypes = new [] { typeof(string) })] string FailoverStatus { get; set; } /// <summary>The ID of array replication pair</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The ID of array replication pair", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? Id { get; set; } /// <summary>The reason for last replication job failure</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The reason for last replication job failure", SerializedName = @"lastReplicationFailureStatus", PossibleTypes = new [] { typeof(string) })] string LastReplicationFailureStatus { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"GUID", PossibleTypes = new [] { typeof(string) })] string SourceGuid { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SourceName { get; set; } /// <summary>The types of failover statuses</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The types of failover statuses", SerializedName = @"testFailoverStatus", PossibleTypes = new [] { typeof(string) })] string TestFailoverStatus { get; set; } } /// Gives array replication monitor site information internal partial interface IArrayReplicationMonitorInfoInternal { System.Collections.Generic.List<Commvault.Powershell.Models.IArrayReplicationDatastoreReplication> Datastores { get; set; } Commvault.Powershell.Models.INameGuid Destination { get; set; } string DestinationGuid { get; set; } string DestinationName { get; set; } /// <summary>The types of failover statuses</summary> string FailoverStatus { get; set; } /// <summary>The ID of array replication pair</summary> long? Id { get; set; } /// <summary>The reason for last replication job failure</summary> string LastReplicationFailureStatus { get; set; } Commvault.Powershell.Models.INameGuid Source { get; set; } string SourceGuid { get; set; } string SourceName { get; set; } /// <summary>The types of failover statuses</summary> string TestFailoverStatus { get; set; } } } |