generated/api/Models/MigrationDestination.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> /// Specify node with write access to Azure File share. The destincation type (NFS/CIFS) is determined by source. /// </summary> public partial class MigrationDestination : Commvault.Powershell.Models.IMigrationDestination, Commvault.Powershell.Models.IMigrationDestinationInternal { /// <summary>Backing field for <see cref="AccessNode" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IAccessNodes> _accessNode; /// <summary>Access nodes for the destination client</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IAccessNodes> AccessNode { get => this._accessNode; set => this._accessNode = value; } /// <summary>Internal Acessors for DestinationCredentials</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IMigrationDestinationInternal.DestinationCredentials { get => (this._destinationCredentials = this._destinationCredentials ?? new Commvault.Powershell.Models.IdName()); set { {_destinationCredentials = value;} } } /// <summary>Internal Acessors for Region</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IMigrationDestinationInternal.Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdName()); set { {_region = value;} } } /// <summary>Backing field for <see cref="DestinationCredentials" /> property.</summary> private Commvault.Powershell.Models.IIdName _destinationCredentials; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName DestinationCredentials { get => (this._destinationCredentials = this._destinationCredentials ?? new Commvault.Powershell.Models.IdName()); set => this._destinationCredentials = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? DestinationCredentialsId { get => ((Commvault.Powershell.Models.IIdNameInternal)DestinationCredentials).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)DestinationCredentials).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string DestinationCredentialsName { get => ((Commvault.Powershell.Models.IIdNameInternal)DestinationCredentials).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)DestinationCredentials).Name = value ?? null; } /// <summary>Backing field for <see cref="DestinationName" /> property.</summary> private string _destinationName; /// <summary>Azure storage account</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string DestinationName { get => this._destinationName; set => this._destinationName = value; } /// <summary>Backing field for <see cref="Region" /> property.</summary> private Commvault.Powershell.Models.IIdName _region; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdName()); set => this._region = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? RegionId { get => ((Commvault.Powershell.Models.IIdNameInternal)Region).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Region).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string RegionName { get => ((Commvault.Powershell.Models.IIdNameInternal)Region).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Region).Name = value ?? null; } /// <summary>Creates an new <see cref="MigrationDestination" /> instance.</summary> public MigrationDestination() { } } /// Specify node with write access to Azure File share. The destincation type (NFS/CIFS) is determined by source. public partial interface IMigrationDestination : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Access nodes for the destination client</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Access nodes for the destination client", SerializedName = @"accessNode", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IAccessNodes) })] System.Collections.Generic.List<Commvault.Powershell.Models.IAccessNodes> AccessNode { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? DestinationCredentialsId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string DestinationCredentialsName { get; set; } /// <summary>Azure storage account</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Azure storage account", SerializedName = @"destinationName", PossibleTypes = new [] { typeof(string) })] string DestinationName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? RegionId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string RegionName { get; set; } } /// Specify node with write access to Azure File share. The destincation type (NFS/CIFS) is determined by source. internal partial interface IMigrationDestinationInternal { /// <summary>Access nodes for the destination client</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IAccessNodes> AccessNode { get; set; } Commvault.Powershell.Models.IIdName DestinationCredentials { get; set; } long? DestinationCredentialsId { get; set; } string DestinationCredentialsName { get; set; } /// <summary>Azure storage account</summary> string DestinationName { get; set; } Commvault.Powershell.Models.IIdName Region { get; set; } long? RegionId { get; set; } string RegionName { get; set; } } } |