// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;

namespace PiersKarsenbarg.Nutanix
{
    public static class GetPbr
    {
        /// <summary>
        /// Provides a datasource to retrieve PBR with pbr_uuid .
        /// </summary>
        public static Task<GetPbrResult> InvokeAsync(GetPbrArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetPbrResult>("nutanix:index/getPbr:getPbr", args ?? new GetPbrArgs(), options.WithDefaults());

        /// <summary>
        /// Provides a datasource to retrieve PBR with pbr_uuid .
        /// </summary>
        public static Output<GetPbrResult> Invoke(GetPbrInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetPbrResult>("nutanix:index/getPbr:getPbr", args ?? new GetPbrInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetPbrArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// pbr UUID
        /// </summary>
        [Input("pbrUuid", required: true)]
        public string PbrUuid { get; set; } = null!;

        public GetPbrArgs()
        {
        }
    }

    public sealed class GetPbrInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// pbr UUID
        /// </summary>
        [Input("pbrUuid", required: true)]
        public Input<string> PbrUuid { get; set; } = null!;

        public GetPbrInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetPbrResult
    {
        /// <summary>
        /// The version of the API.
        /// </summary>
        public readonly string ApiVersion;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableDictionary<string, string> Metadata;
        public readonly string PbrUuid;
        /// <summary>
        /// PBR input spec
        /// </summary>
        public readonly ImmutableArray<Outputs.GetPbrSpecResult> Specs;
        /// <summary>
        /// PBR output status
        /// </summary>
        public readonly ImmutableArray<Outputs.GetPbrStatusResult> Statuses;

        [OutputConstructor]
        private GetPbrResult(
            string apiVersion,

            string id,

            ImmutableDictionary<string, string> metadata,

            string pbrUuid,

            ImmutableArray<Outputs.GetPbrSpecResult> specs,

            ImmutableArray<Outputs.GetPbrStatusResult> statuses)
        {
            ApiVersion = apiVersion;
            Id = id;
            Metadata = metadata;
            PbrUuid = pbrUuid;
            Specs = specs;
            Statuses = statuses;
        }
    }
}
