<filename>sdk/dotnet/GetNexusRepositoryYumHosted.cs// *** 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;

namespace Pulumi.Nexus
{
    public static class GetNexusRepositoryYumHosted
    {
        public static Task<GetNexusRepositoryYumHostedResult> InvokeAsync(GetNexusRepositoryYumHostedArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetNexusRepositoryYumHostedResult>("nexus:index/getNexusRepositoryYumHosted:GetNexusRepositoryYumHosted", args ?? new GetNexusRepositoryYumHostedArgs(), options.WithDefaults());

        public static Output<GetNexusRepositoryYumHostedResult> Invoke(GetNexusRepositoryYumHostedInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetNexusRepositoryYumHostedResult>("nexus:index/getNexusRepositoryYumHosted:GetNexusRepositoryYumHosted", args ?? new GetNexusRepositoryYumHostedInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetNexusRepositoryYumHostedArgs : Pulumi.InvokeArgs
    {
        [Input("name", required: true)]
        public string Name { get; set; } = null!;

        public GetNexusRepositoryYumHostedArgs()
        {
        }
    }

    public sealed class GetNexusRepositoryYumHostedInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("name", required: true)]
        public Input<string> Name { get; set; } = null!;

        public GetNexusRepositoryYumHostedInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetNexusRepositoryYumHostedResult
    {
        public readonly ImmutableArray<Outputs.GetNexusRepositoryYumHostedCleanupResult> Cleanups;
        public readonly ImmutableArray<Outputs.GetNexusRepositoryYumHostedComponentResult> Components;
        public readonly string DeployPolicy;
        public readonly string Id;
        public readonly string Name;
        public readonly bool Online;
        public readonly int RepodataDepth;
        public readonly ImmutableArray<Outputs.GetNexusRepositoryYumHostedStorageResult> Storages;

        [OutputConstructor]
        private GetNexusRepositoryYumHostedResult(
            ImmutableArray<Outputs.GetNexusRepositoryYumHostedCleanupResult> cleanups,

            ImmutableArray<Outputs.GetNexusRepositoryYumHostedComponentResult> components,

            string deployPolicy,

            string id,

            string name,

            bool online,

            int repodataDepth,

            ImmutableArray<Outputs.GetNexusRepositoryYumHostedStorageResult> storages)
        {
            Cleanups = cleanups;
            Components = components;
            DeployPolicy = deployPolicy;
            Id = id;
            Name = name;
            Online = online;
            RepodataDepth = repodataDepth;
            Storages = storages;
        }
    }
}
