generated/api/Models/GetCrdCloudAccountsResponse.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;

    /// <summary>Contains the list of cloud accounts eligible for Cloud Resource Discovery</summary>
    public partial class GetCrdCloudAccountsResponse :
        Commvault.Powershell.Models.IGetCrdCloudAccountsResponse,
        Commvault.Powershell.Models.IGetCrdCloudAccountsResponseInternal
    {

        /// <summary>Backing field for <see cref="CloudAccounts" /> property.</summary>
        private Commvault.Powershell.Models.ICrdCloudAccount[] _cloudAccounts;

        /// <summary>Array of cloud accounts eligible for Cloud Resource Discovery</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.ICrdCloudAccount[] CloudAccounts { get => this._cloudAccounts; set => this._cloudAccounts = value; }

        /// <summary>Internal Acessors for Error</summary>
        Commvault.Powershell.Models.IGenericResp Commvault.Powershell.Models.IGetCrdCloudAccountsResponseInternal.Error { get => (this._error = this._error ?? new Commvault.Powershell.Models.GenericResp()); set { {_error = value;} } }

        /// <summary>Backing field for <see cref="Error" /> property.</summary>
        private Commvault.Powershell.Models.IGenericResp _error;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IGenericResp Error { get => (this._error = this._error ?? new Commvault.Powershell.Models.GenericResp()); set => this._error = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? ErrorCode { get => ((Commvault.Powershell.Models.IGenericRespInternal)Error).ErrorCode; set => ((Commvault.Powershell.Models.IGenericRespInternal)Error).ErrorCode = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string ErrorMessage { get => ((Commvault.Powershell.Models.IGenericRespInternal)Error).ErrorMessage; set => ((Commvault.Powershell.Models.IGenericRespInternal)Error).ErrorMessage = value ?? null; }

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

        }
    }
    /// Contains the list of cloud accounts eligible for Cloud Resource Discovery
    public partial interface IGetCrdCloudAccountsResponse :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Array of cloud accounts eligible for Cloud Resource Discovery</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Array of cloud accounts eligible for Cloud Resource Discovery",
        SerializedName = @"cloudAccounts",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.ICrdCloudAccount) })]
        Commvault.Powershell.Models.ICrdCloudAccount[] CloudAccounts { get; set; }

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

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

    }
    /// Contains the list of cloud accounts eligible for Cloud Resource Discovery
    internal partial interface IGetCrdCloudAccountsResponseInternal

    {
        /// <summary>Array of cloud accounts eligible for Cloud Resource Discovery</summary>
        Commvault.Powershell.Models.ICrdCloudAccount[] CloudAccounts { get; set; }

        Commvault.Powershell.Models.IGenericResp Error { get; set; }

        long? ErrorCode { get; set; }

        string ErrorMessage { get; set; }

    }
}