<reponame>Dwonczykj/gember_deploy<filename>sdk/dotnet/Tencentcloud/Tsf/Repository.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;
using Pulumi;

namespace TencentCloudIAC.PulumiPackage.Tencentcloud.Tsf
{
    /// <summary>
    /// Provides a resource to create a tsf repository
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using Pulumi;
    /// using Tencentcloud = TencentCloudIAC.PulumiPackage.Tencentcloud;
    /// 
    /// class MyStack : Stack
    /// {
    ///     public MyStack()
    ///     {
    ///         var repository = new Tencentcloud.Tsf.Repository("repository", new Tencentcloud.Tsf.RepositoryArgs
    ///         {
    ///             BucketName = "",
    ///             BucketRegion = "",
    ///             Directory = "",
    ///             RepositoryDesc = "",
    ///             RepositoryName = "",
    ///             RepositoryType = "",
    ///         });
    ///     }
    /// 
    /// }
    /// ```
    /// 
    /// ## Import
    /// 
    /// tsf repository can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import tencentcloud:Tsf/repository:Repository repository repository_id
    /// ```
    /// </summary>
    [TencentcloudResourceType("tencentcloud:Tsf/repository:Repository")]
    public partial class Repository : Pulumi.CustomResource
    {
        /// <summary>
        /// the name of the bucket where the warehouse is located.
        /// </summary>
        [Output("bucketName")]
        public Output<string> BucketName { get; private set; } = null!;

        /// <summary>
        /// Bucket region where the warehouse is located.
        /// </summary>
        [Output("bucketRegion")]
        public Output<string> BucketRegion { get; private set; } = null!;

        /// <summary>
        /// warehouse creation time.
        /// </summary>
        [Output("createTime")]
        public Output<string> CreateTime { get; private set; } = null!;

        /// <summary>
        /// directory.
        /// </summary>
        [Output("directory")]
        public Output<string> Directory { get; private set; } = null!;

        /// <summary>
        /// whether the repository is in use.
        /// </summary>
        [Output("isUsed")]
        public Output<bool> IsUsed { get; private set; } = null!;

        /// <summary>
        /// warehouse description.
        /// </summary>
        [Output("repositoryDesc")]
        public Output<string> RepositoryDesc { get; private set; } = null!;

        /// <summary>
        /// Warehouse ID.
        /// </summary>
        [Output("repositoryId")]
        public Output<string> RepositoryId { get; private set; } = null!;

        /// <summary>
        /// warehouse name.
        /// </summary>
        [Output("repositoryName")]
        public Output<string> RepositoryName { get; private set; } = null!;

        /// <summary>
        /// warehouse type (default warehouse: default, private warehouse: private).
        /// </summary>
        [Output("repositoryType")]
        public Output<string> RepositoryType { get; private set; } = null!;


        /// <summary>
        /// Create a Repository 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 Repository(string name, RepositoryArgs args, CustomResourceOptions? options = null)
            : base("tencentcloud:Tsf/repository:Repository", name, args ?? new RepositoryArgs(), MakeResourceOptions(options, ""))
        {
        }

        private Repository(string name, Input<string> id, RepositoryState? state = null, CustomResourceOptions? options = null)
            : base("tencentcloud:Tsf/repository:Repository", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/tencentcloudstack",
            };
            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 Repository 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 Repository Get(string name, Input<string> id, RepositoryState? state = null, CustomResourceOptions? options = null)
        {
            return new Repository(name, id, state, options);
        }
    }

    public sealed class RepositoryArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// the name of the bucket where the warehouse is located.
        /// </summary>
        [Input("bucketName", required: true)]
        public Input<string> BucketName { get; set; } = null!;

        /// <summary>
        /// Bucket region where the warehouse is located.
        /// </summary>
        [Input("bucketRegion", required: true)]
        public Input<string> BucketRegion { get; set; } = null!;

        /// <summary>
        /// directory.
        /// </summary>
        [Input("directory")]
        public Input<string>? Directory { get; set; }

        /// <summary>
        /// warehouse description.
        /// </summary>
        [Input("repositoryDesc")]
        public Input<string>? RepositoryDesc { get; set; }

        /// <summary>
        /// warehouse name.
        /// </summary>
        [Input("repositoryName", required: true)]
        public Input<string> RepositoryName { get; set; } = null!;

        /// <summary>
        /// warehouse type (default warehouse: default, private warehouse: private).
        /// </summary>
        [Input("repositoryType", required: true)]
        public Input<string> RepositoryType { get; set; } = null!;

        public RepositoryArgs()
        {
        }
    }

    public sealed class RepositoryState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// the name of the bucket where the warehouse is located.
        /// </summary>
        [Input("bucketName")]
        public Input<string>? BucketName { get; set; }

        /// <summary>
        /// Bucket region where the warehouse is located.
        /// </summary>
        [Input("bucketRegion")]
        public Input<string>? BucketRegion { get; set; }

        /// <summary>
        /// warehouse creation time.
        /// </summary>
        [Input("createTime")]
        public Input<string>? CreateTime { get; set; }

        /// <summary>
        /// directory.
        /// </summary>
        [Input("directory")]
        public Input<string>? Directory { get; set; }

        /// <summary>
        /// whether the repository is in use.
        /// </summary>
        [Input("isUsed")]
        public Input<bool>? IsUsed { get; set; }

        /// <summary>
        /// warehouse description.
        /// </summary>
        [Input("repositoryDesc")]
        public Input<string>? RepositoryDesc { get; set; }

        /// <summary>
        /// Warehouse ID.
        /// </summary>
        [Input("repositoryId")]
        public Input<string>? RepositoryId { get; set; }

        /// <summary>
        /// warehouse name.
        /// </summary>
        [Input("repositoryName")]
        public Input<string>? RepositoryName { get; set; }

        /// <summary>
        /// warehouse type (default warehouse: default, private warehouse: private).
        /// </summary>
        [Input("repositoryType")]
        public Input<string>? RepositoryType { get; set; }

        public RepositoryState()
        {
        }
    }
}
