generated/api/Models/DestinationLocation.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 DestinationLocation :
        Commvault.Powershell.Models.IDestinationLocation,
        Commvault.Powershell.Models.IDestinationLocationInternal
    {

        /// <summary>Internal Acessors for Library</summary>
        Commvault.Powershell.Models.ILibrary Commvault.Powershell.Models.IDestinationLocationInternal.Library { get => (this._library = this._library ?? new Commvault.Powershell.Models.Library()); set { {_library = value;} } }

        /// <summary>Internal Acessors for Location</summary>
        Commvault.Powershell.Models.ILocation Commvault.Powershell.Models.IDestinationLocationInternal.Location { get => (this._location = this._location ?? new Commvault.Powershell.Models.Location()); set { {_location = value;} } }

        /// <summary>Internal Acessors for Shelf</summary>
        Commvault.Powershell.Models.IShelfDetails Commvault.Powershell.Models.IDestinationLocationInternal.Shelf { get => (this._shelf = this._shelf ?? new Commvault.Powershell.Models.ShelfDetails()); set { {_shelf = value;} } }

        /// <summary>Backing field for <see cref="Library" /> property.</summary>
        private Commvault.Powershell.Models.ILibrary _library;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.ILibrary Library { get => (this._library = this._library ?? new Commvault.Powershell.Models.Library()); set => this._library = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? LibraryId { get => ((Commvault.Powershell.Models.IIdNameInternal)Library).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Library).Id = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string LibraryName { get => ((Commvault.Powershell.Models.IIdNameInternal)Library).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Library).Name = value ?? null; }

        /// <summary>library type.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? LibraryType { get => ((Commvault.Powershell.Models.ILibraryInternal)Library).Type; set => ((Commvault.Powershell.Models.ILibraryInternal)Library).Type = value ?? default(long); }

        /// <summary>Backing field for <see cref="Location" /> property.</summary>
        private Commvault.Powershell.Models.ILocation _location;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.ILocation Location { get => (this._location = this._location ?? new Commvault.Powershell.Models.Location()); set => this._location = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? LocationId { get => ((Commvault.Powershell.Models.IIdNameInternal)Location).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Location).Id = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string LocationName { get => ((Commvault.Powershell.Models.IIdNameInternal)Location).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Location).Name = value ?? null; }

        /// <summary>location type.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? LocationType { get => ((Commvault.Powershell.Models.ILocationInternal)Location).Type; set => ((Commvault.Powershell.Models.ILocationInternal)Location).Type = value ?? default(long); }

        /// <summary>Backing field for <see cref="Shelf" /> property.</summary>
        private Commvault.Powershell.Models.IShelfDetails _shelf;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IShelfDetails Shelf { get => (this._shelf = this._shelf ?? new Commvault.Powershell.Models.ShelfDetails()); set => this._shelf = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? ShelfId { get => ((Commvault.Powershell.Models.IIdNameInternal)Shelf).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Shelf).Id = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string ShelfName { get => ((Commvault.Powershell.Models.IIdNameInternal)Shelf).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Shelf).Name = value ?? null; }

        /// <summary>shelf type.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? ShelfType { get => ((Commvault.Powershell.Models.IShelfDetailsInternal)Shelf).Type; set => ((Commvault.Powershell.Models.IShelfDetailsInternal)Shelf).Type = value ?? default(long); }

        /// <summary>Creates an new <see cref="DestinationLocation" /> instance.</summary>
        public DestinationLocation()
        {

        }
    }
    public partial interface IDestinationLocation :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? LibraryId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string LibraryName { get; set; }
        /// <summary>library type.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"library type.",
        SerializedName = @"type",
        PossibleTypes = new [] { typeof(long) })]
        long? LibraryType { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? LocationId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string LocationName { get; set; }
        /// <summary>location type.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"location type.",
        SerializedName = @"type",
        PossibleTypes = new [] { typeof(long) })]
        long? LocationType { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? ShelfId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string ShelfName { get; set; }
        /// <summary>shelf type.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"shelf type.",
        SerializedName = @"type",
        PossibleTypes = new [] { typeof(long) })]
        long? ShelfType { get; set; }

    }
    internal partial interface IDestinationLocationInternal

    {
        Commvault.Powershell.Models.ILibrary Library { get; set; }

        long? LibraryId { get; set; }

        string LibraryName { get; set; }
        /// <summary>library type.</summary>
        long? LibraryType { get; set; }

        Commvault.Powershell.Models.ILocation Location { get; set; }

        long? LocationId { get; set; }

        string LocationName { get; set; }
        /// <summary>location type.</summary>
        long? LocationType { get; set; }

        Commvault.Powershell.Models.IShelfDetails Shelf { get; set; }

        long? ShelfId { get; set; }

        string ShelfName { get; set; }
        /// <summary>shelf type.</summary>
        long? ShelfType { get; set; }

    }
}