generated/api/Models/StorageResourcePoolMap.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 StorageResourcePoolMap :
        Commvault.Powershell.Models.IStorageResourcePoolMap,
        Commvault.Powershell.Models.IStorageResourcePoolMapInternal
    {

        /// <summary>Internal Acessors for Storage</summary>
        Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IStorageResourcePoolMapInternal.Storage { get => (this._storage = this._storage ?? new Commvault.Powershell.Models.IdName()); set { {_storage = value;} } }

        /// <summary>Backing field for <see cref="Resources" /> property.</summary>
        private Commvault.Powershell.Models.IResourcePoolInfo[] _resources;

        /// <summary>List of resources mapped to the storage</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IResourcePoolInfo[] Resources { get => this._resources; set => this._resources = value; }

        /// <summary>Backing field for <see cref="Storage" /> property.</summary>
        private Commvault.Powershell.Models.IIdName _storage;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IIdName Storage { get => (this._storage = this._storage ?? new Commvault.Powershell.Models.IdName()); set => this._storage = value; }

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

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

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

        }
    }
    public partial interface IStorageResourcePoolMap :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>List of resources mapped to the storage</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"List of resources mapped to the storage",
        SerializedName = @"resources",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IResourcePoolInfo) })]
        Commvault.Powershell.Models.IResourcePoolInfo[] Resources { get; set; }

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

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string StorageName { get; set; }

    }
    internal partial interface IStorageResourcePoolMapInternal

    {
        /// <summary>List of resources mapped to the storage</summary>
        Commvault.Powershell.Models.IResourcePoolInfo[] Resources { get; set; }

        Commvault.Powershell.Models.IIdName Storage { get; set; }

        long? StorageId { get; set; }

        string StorageName { get; set; }

    }
}