<filename>sdk/dotnet/NexusRepositoryAptHosted.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
{
    [NexusResourceType("nexus:index/nexusRepositoryAptHosted:NexusRepositoryAptHosted")]
    public partial class NexusRepositoryAptHosted : Pulumi.CustomResource
    {
        /// <summary>
        /// Cleanup policies
        /// </summary>
        [Output("cleanups")]
        public Output<ImmutableArray<Outputs.NexusRepositoryAptHostedCleanup>> Cleanups { get; private set; } = null!;

        /// <summary>
        /// Component configuration for the hosted repository
        /// </summary>
        [Output("component")]
        public Output<Outputs.NexusRepositoryAptHostedComponent> Component { get; private set; } = null!;

        /// <summary>
        /// Distribution to fetch
        /// </summary>
        [Output("distribution")]
        public Output<string> Distribution { get; private set; } = null!;

        /// <summary>
        /// A unique identifier for this repository
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// Whether this repository accepts incoming requests
        /// </summary>
        [Output("online")]
        public Output<bool?> Online { get; private set; } = null!;

        /// <summary>
        /// Signing contains signing data of hosted repositores of format Apt
        /// </summary>
        [Output("signing")]
        public Output<Outputs.NexusRepositoryAptHostedSigning> Signing { get; private set; } = null!;

        /// <summary>
        /// The storage configuration of the repository
        /// </summary>
        [Output("storage")]
        public Output<Outputs.NexusRepositoryAptHostedStorage> Storage { get; private set; } = null!;


        /// <summary>
        /// Create a NexusRepositoryAptHosted resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public NexusRepositoryAptHosted(string name, NexusRepositoryAptHostedArgs args, CustomResourceOptions? options = null)
            : base("nexus:index/nexusRepositoryAptHosted:NexusRepositoryAptHosted", name, args ?? new NexusRepositoryAptHostedArgs(), MakeResourceOptions(options, ""))
        {
        }

        private NexusRepositoryAptHosted(string name, Input<string> id, NexusRepositoryAptHostedState? state = null, CustomResourceOptions? options = null)
            : base("nexus:index/nexusRepositoryAptHosted:NexusRepositoryAptHosted", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "https://github.com/SimCubeLtd/pulumi-nexus/releases/download/v${VERSION}",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing NexusRepositoryAptHosted resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static NexusRepositoryAptHosted Get(string name, Input<string> id, NexusRepositoryAptHostedState? state = null, CustomResourceOptions? options = null)
        {
            return new NexusRepositoryAptHosted(name, id, state, options);
        }
    }

    public sealed class NexusRepositoryAptHostedArgs : Pulumi.ResourceArgs
    {
        [Input("cleanups")]
        private InputList<Inputs.NexusRepositoryAptHostedCleanupArgs>? _cleanups;

        /// <summary>
        /// Cleanup policies
        /// </summary>
        public InputList<Inputs.NexusRepositoryAptHostedCleanupArgs> Cleanups
        {
            get => _cleanups ?? (_cleanups = new InputList<Inputs.NexusRepositoryAptHostedCleanupArgs>());
            set => _cleanups = value;
        }

        /// <summary>
        /// Component configuration for the hosted repository
        /// </summary>
        [Input("component")]
        public Input<Inputs.NexusRepositoryAptHostedComponentArgs>? Component { get; set; }

        /// <summary>
        /// Distribution to fetch
        /// </summary>
        [Input("distribution", required: true)]
        public Input<string> Distribution { get; set; } = null!;

        /// <summary>
        /// A unique identifier for this repository
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// Whether this repository accepts incoming requests
        /// </summary>
        [Input("online")]
        public Input<bool>? Online { get; set; }

        /// <summary>
        /// Signing contains signing data of hosted repositores of format Apt
        /// </summary>
        [Input("signing", required: true)]
        public Input<Inputs.NexusRepositoryAptHostedSigningArgs> Signing { get; set; } = null!;

        /// <summary>
        /// The storage configuration of the repository
        /// </summary>
        [Input("storage", required: true)]
        public Input<Inputs.NexusRepositoryAptHostedStorageArgs> Storage { get; set; } = null!;

        public NexusRepositoryAptHostedArgs()
        {
        }
    }

    public sealed class NexusRepositoryAptHostedState : Pulumi.ResourceArgs
    {
        [Input("cleanups")]
        private InputList<Inputs.NexusRepositoryAptHostedCleanupGetArgs>? _cleanups;

        /// <summary>
        /// Cleanup policies
        /// </summary>
        public InputList<Inputs.NexusRepositoryAptHostedCleanupGetArgs> Cleanups
        {
            get => _cleanups ?? (_cleanups = new InputList<Inputs.NexusRepositoryAptHostedCleanupGetArgs>());
            set => _cleanups = value;
        }

        /// <summary>
        /// Component configuration for the hosted repository
        /// </summary>
        [Input("component")]
        public Input<Inputs.NexusRepositoryAptHostedComponentGetArgs>? Component { get; set; }

        /// <summary>
        /// Distribution to fetch
        /// </summary>
        [Input("distribution")]
        public Input<string>? Distribution { get; set; }

        /// <summary>
        /// A unique identifier for this repository
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// Whether this repository accepts incoming requests
        /// </summary>
        [Input("online")]
        public Input<bool>? Online { get; set; }

        /// <summary>
        /// Signing contains signing data of hosted repositores of format Apt
        /// </summary>
        [Input("signing")]
        public Input<Inputs.NexusRepositoryAptHostedSigningGetArgs>? Signing { get; set; }

        /// <summary>
        /// The storage configuration of the repository
        /// </summary>
        [Input("storage")]
        public Input<Inputs.NexusRepositoryAptHostedStorageGetArgs>? Storage { get; set; }

        public NexusRepositoryAptHostedState()
        {
        }
    }
}
