<gh_stars>0// *** 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 GetImage
    {
        /// <summary>
        /// Describes a Image
        /// </summary>
        public static Task<GetImageResult> InvokeAsync(GetImageArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetImageResult>("nutanix:index/getImage:getImage", args ?? new GetImageArgs(), options.WithDefaults());

        /// <summary>
        /// Describes a Image
        /// </summary>
        public static Output<GetImageResult> Invoke(GetImageInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetImageResult>("nutanix:index/getImage:getImage", args ?? new GetImageInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetImageArgs : Pulumi.InvokeArgs
    {
        [Input("categories")]
        private List<Inputs.GetImageCategoryArgs>? _categories;
        public List<Inputs.GetImageCategoryArgs> Categories
        {
            get => _categories ?? (_categories = new List<Inputs.GetImageCategoryArgs>());
            set => _categories = value;
        }

        [Input("imageId")]
        public string? ImageId { get; set; }

        [Input("imageName")]
        public string? ImageName { get; set; }

        public GetImageArgs()
        {
        }
    }

    public sealed class GetImageInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("categories")]
        private InputList<Inputs.GetImageCategoryInputArgs>? _categories;
        public InputList<Inputs.GetImageCategoryInputArgs> Categories
        {
            get => _categories ?? (_categories = new InputList<Inputs.GetImageCategoryInputArgs>());
            set => _categories = value;
        }

        [Input("imageId")]
        public Input<string>? ImageId { get; set; }

        [Input("imageName")]
        public Input<string>? ImageName { get; set; }

        public GetImageInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetImageResult
    {
        public readonly string ApiVersion;
        public readonly string Architecture;
        public readonly ImmutableDictionary<string, string> AvailabilityZoneReference;
        public readonly ImmutableArray<Outputs.GetImageCategoryResult> Categories;
        public readonly ImmutableDictionary<string, string> Checksum;
        public readonly string ClusterName;
        public readonly ImmutableArray<Outputs.GetImageClusterReferenceResult> ClusterReferences;
        public readonly string ClusterUuid;
        public readonly ImmutableArray<Outputs.GetImageCurrentClusterReferenceListResult> CurrentClusterReferenceLists;
        public readonly string Description;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ImageId;
        public readonly string? ImageName;
        public readonly string ImageType;
        public readonly ImmutableDictionary<string, string> Metadata;
        public readonly string Name;
        public readonly ImmutableDictionary<string, string> OwnerReference;
        public readonly ImmutableDictionary<string, string> ProjectReference;
        public readonly ImmutableArray<string> RetrievalUriLists;
        public readonly int SizeBytes;
        public readonly string SourceUri;
        public readonly string State;
        public readonly ImmutableDictionary<string, string> Version;

        [OutputConstructor]
        private GetImageResult(
            string apiVersion,

            string architecture,

            ImmutableDictionary<string, string> availabilityZoneReference,

            ImmutableArray<Outputs.GetImageCategoryResult> categories,

            ImmutableDictionary<string, string> checksum,

            string clusterName,

            ImmutableArray<Outputs.GetImageClusterReferenceResult> clusterReferences,

            string clusterUuid,

            ImmutableArray<Outputs.GetImageCurrentClusterReferenceListResult> currentClusterReferenceLists,

            string description,

            string id,

            string? imageId,

            string? imageName,

            string imageType,

            ImmutableDictionary<string, string> metadata,

            string name,

            ImmutableDictionary<string, string> ownerReference,

            ImmutableDictionary<string, string> projectReference,

            ImmutableArray<string> retrievalUriLists,

            int sizeBytes,

            string sourceUri,

            string state,

            ImmutableDictionary<string, string> version)
        {
            ApiVersion = apiVersion;
            Architecture = architecture;
            AvailabilityZoneReference = availabilityZoneReference;
            Categories = categories;
            Checksum = checksum;
            ClusterName = clusterName;
            ClusterReferences = clusterReferences;
            ClusterUuid = clusterUuid;
            CurrentClusterReferenceLists = currentClusterReferenceLists;
            Description = description;
            Id = id;
            ImageId = imageId;
            ImageName = imageName;
            ImageType = imageType;
            Metadata = metadata;
            Name = name;
            OwnerReference = ownerReference;
            ProjectReference = projectReference;
            RetrievalUriLists = retrievalUriLists;
            SizeBytes = sizeBytes;
            SourceUri = sourceUri;
            State = state;
            Version = version;
        }
    }
}
