generated/api/Models/ArrayReplicationDatastoreReplication.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>The replication information for each datastore pair mapping</summary> public partial class ArrayReplicationDatastoreReplication : Commvault.Powershell.Models.IArrayReplicationDatastoreReplication, Commvault.Powershell.Models.IArrayReplicationDatastoreReplicationInternal { /// <summary>Internal Acessors for DestinationDatastore</summary> Commvault.Powershell.Models.INameGuid Commvault.Powershell.Models.IArrayReplicationDatastoreReplicationInternal.DestinationDatastore { get => (this._destinationDatastore = this._destinationDatastore ?? new Commvault.Powershell.Models.NameGuid()); set { {_destinationDatastore = value;} } } /// <summary>Internal Acessors for SourceDatastore</summary> Commvault.Powershell.Models.INameGuid Commvault.Powershell.Models.IArrayReplicationDatastoreReplicationInternal.SourceDatastore { get => (this._sourceDatastore = this._sourceDatastore ?? new Commvault.Powershell.Models.NameGuid()); set { {_sourceDatastore = value;} } } /// <summary>Backing field for <see cref="DestinationDatastore" /> property.</summary> private Commvault.Powershell.Models.INameGuid _destinationDatastore; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.INameGuid DestinationDatastore { get => (this._destinationDatastore = this._destinationDatastore ?? new Commvault.Powershell.Models.NameGuid()); set => this._destinationDatastore = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string DestinationDatastoreGuid { get => ((Commvault.Powershell.Models.INameGuidInternal)DestinationDatastore).Guid; set => ((Commvault.Powershell.Models.INameGuidInternal)DestinationDatastore).Guid = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string DestinationDatastoreName { get => ((Commvault.Powershell.Models.INameGuidInternal)DestinationDatastore).Name; set => ((Commvault.Powershell.Models.INameGuidInternal)DestinationDatastore).Name = value ?? null; } /// <summary>Backing field for <see cref="Id" /> property.</summary> private long? _id; /// <summary>The ID of datastore relationship mapping</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? Id { get => this._id; set => this._id = value; } /// <summary>Backing field for <see cref="SourceDatastore" /> property.</summary> private Commvault.Powershell.Models.INameGuid _sourceDatastore; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.INameGuid SourceDatastore { get => (this._sourceDatastore = this._sourceDatastore ?? new Commvault.Powershell.Models.NameGuid()); set => this._sourceDatastore = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SourceDatastoreGuid { get => ((Commvault.Powershell.Models.INameGuidInternal)SourceDatastore).Guid; set => ((Commvault.Powershell.Models.INameGuidInternal)SourceDatastore).Guid = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SourceDatastoreName { get => ((Commvault.Powershell.Models.INameGuidInternal)SourceDatastore).Name; set => ((Commvault.Powershell.Models.INameGuidInternal)SourceDatastore).Name = value ?? null; } /// <summary>Creates an new <see cref="ArrayReplicationDatastoreReplication" /> instance.</summary> public ArrayReplicationDatastoreReplication() { } } /// The replication information for each datastore pair mapping public partial interface IArrayReplicationDatastoreReplication : 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 DestinationDatastoreGuid { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string DestinationDatastoreName { get; set; } /// <summary>The ID of datastore relationship mapping</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The ID of datastore relationship mapping", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? Id { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"GUID", PossibleTypes = new [] { typeof(string) })] string SourceDatastoreGuid { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SourceDatastoreName { get; set; } } /// The replication information for each datastore pair mapping internal partial interface IArrayReplicationDatastoreReplicationInternal { Commvault.Powershell.Models.INameGuid DestinationDatastore { get; set; } string DestinationDatastoreGuid { get; set; } string DestinationDatastoreName { get; set; } /// <summary>The ID of datastore relationship mapping</summary> long? Id { get; set; } Commvault.Powershell.Models.INameGuid SourceDatastore { get; set; } string SourceDatastoreGuid { get; set; } string SourceDatastoreName { get; set; } } } |