<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;

namespace Pulumi.Vcd
{
    [VcdResourceType("vcd:index/orgUser:OrgUser")]
    public partial class OrgUser : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Quota of vApps that this user can deploy. A value of 0 specifies an unlimited quota.
        /// </summary>
        [Output("deployedVmQuota")]
        public Output<int> DeployedVmQuota { get; private set; } = null!;

        /// <summary>
        /// The user's description
        /// </summary>
        [Output("description")]
        public Output<string?> Description { get; private set; } = null!;

        /// <summary>
        /// The user's email address
        /// </summary>
        [Output("emailAddress")]
        public Output<string> EmailAddress { get; private set; } = null!;

        /// <summary>
        /// True if the user is enabled and can log in.
        /// </summary>
        [Output("enabled")]
        public Output<bool?> Enabled { get; private set; } = null!;

        /// <summary>
        /// The user's full name
        /// </summary>
        [Output("fullName")]
        public Output<string> FullName { get; private set; } = null!;

        /// <summary>
        /// Read only. Set of group names that this user belongs to
        /// </summary>
        [Output("groupNames")]
        public Output<ImmutableArray<string>> GroupNames { get; private set; } = null!;

        /// <summary>
        /// The user's telephone
        /// </summary>
        [Output("instantMessaging")]
        public Output<string> InstantMessaging { get; private set; } = null!;

        /// <summary>
        /// True if this user is imported from an external resource, like an LDAP.
        /// </summary>
        [Output("isExternal")]
        public Output<bool?> IsExternal { get; private set; } = null!;

        /// <summary>
        /// True if this user has a group role.
        /// </summary>
        [Output("isGroupRole")]
        public Output<bool?> IsGroupRole { get; private set; } = null!;

        /// <summary>
        /// If the user account has been locked due to too many invalid login attempts, the value will change to true (only the
        /// system can lock the user). To unlock the user re-set this flag to false.
        /// </summary>
        [Output("isLocked")]
        public Output<bool?> IsLocked { get; private set; } = null!;

        /// <summary>
        /// User's name. Only lowercase letters allowed. Cannot be changed after creation
        /// </summary>
        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        /// <summary>
        /// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across
        /// different organizations
        /// </summary>
        [Output("org")]
        public Output<string?> Org { get; private set; } = null!;

        /// <summary>
        /// The user's password. This value is never returned on read. Either "password" or "password_file" must be included on
        /// creation unless is_external is true.
        /// </summary>
        [Output("password")]
        public Output<string?> Password { get; private set; } = null!;

        /// <summary>
        /// Name of a file containing the user's password. Either "password_file" or "password" must be included on creation unless
        /// is_external is true.
        /// </summary>
        [Output("passwordFile")]
        public Output<string?> PasswordFile { get; private set; } = null!;

        /// <summary>
        /// Identity provider type for this this user. One of: 'INTEGRATED', 'SAML', 'OAUTH'. When empty, the default value
        /// 'INTEGRATED' is used.
        /// </summary>
        [Output("providerType")]
        public Output<string?> ProviderType { get; private set; } = null!;

        /// <summary>
        /// Role within the organization
        /// </summary>
        [Output("role")]
        public Output<string> Role { get; private set; } = null!;

        /// <summary>
        /// Quota of vApps that this user can store. A value of 0 specifies an unlimited quota.
        /// </summary>
        [Output("storedVmQuota")]
        public Output<int> StoredVmQuota { get; private set; } = null!;

        /// <summary>
        /// Take ownership of user's objects on deletion.
        /// </summary>
        [Output("takeOwnership")]
        public Output<bool?> TakeOwnership { get; private set; } = null!;

        /// <summary>
        /// The user's telephone
        /// </summary>
        [Output("telephone")]
        public Output<string> Telephone { get; private set; } = null!;


        /// <summary>
        /// Create a OrgUser 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 OrgUser(string name, OrgUserArgs args, CustomResourceOptions? options = null)
            : base("vcd:index/orgUser:OrgUser", name, args ?? new OrgUserArgs(), MakeResourceOptions(options, ""))
        {
        }

        private OrgUser(string name, Input<string> id, OrgUserState? state = null, CustomResourceOptions? options = null)
            : base("vcd:index/orgUser:OrgUser", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.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 OrgUser 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 OrgUser Get(string name, Input<string> id, OrgUserState? state = null, CustomResourceOptions? options = null)
        {
            return new OrgUser(name, id, state, options);
        }
    }

    public sealed class OrgUserArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Quota of vApps that this user can deploy. A value of 0 specifies an unlimited quota.
        /// </summary>
        [Input("deployedVmQuota")]
        public Input<int>? DeployedVmQuota { get; set; }

        /// <summary>
        /// The user's description
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// The user's email address
        /// </summary>
        [Input("emailAddress")]
        public Input<string>? EmailAddress { get; set; }

        /// <summary>
        /// True if the user is enabled and can log in.
        /// </summary>
        [Input("enabled")]
        public Input<bool>? Enabled { get; set; }

        /// <summary>
        /// The user's full name
        /// </summary>
        [Input("fullName")]
        public Input<string>? FullName { get; set; }

        /// <summary>
        /// The user's telephone
        /// </summary>
        [Input("instantMessaging")]
        public Input<string>? InstantMessaging { get; set; }

        /// <summary>
        /// True if this user is imported from an external resource, like an LDAP.
        /// </summary>
        [Input("isExternal")]
        public Input<bool>? IsExternal { get; set; }

        /// <summary>
        /// True if this user has a group role.
        /// </summary>
        [Input("isGroupRole")]
        public Input<bool>? IsGroupRole { get; set; }

        /// <summary>
        /// If the user account has been locked due to too many invalid login attempts, the value will change to true (only the
        /// system can lock the user). To unlock the user re-set this flag to false.
        /// </summary>
        [Input("isLocked")]
        public Input<bool>? IsLocked { get; set; }

        /// <summary>
        /// User's name. Only lowercase letters allowed. Cannot be changed after creation
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across
        /// different organizations
        /// </summary>
        [Input("org")]
        public Input<string>? Org { get; set; }

        /// <summary>
        /// The user's password. This value is never returned on read. Either "password" or "password_file" must be included on
        /// creation unless is_external is true.
        /// </summary>
        [Input("password")]
        public Input<string>? Password { get; set; }

        /// <summary>
        /// Name of a file containing the user's password. Either "password_file" or "password" must be included on creation unless
        /// is_external is true.
        /// </summary>
        [Input("passwordFile")]
        public Input<string>? PasswordFile { get; set; }

        /// <summary>
        /// Identity provider type for this this user. One of: 'INTEGRATED', 'SAML', 'OAUTH'. When empty, the default value
        /// 'INTEGRATED' is used.
        /// </summary>
        [Input("providerType")]
        public Input<string>? ProviderType { get; set; }

        /// <summary>
        /// Role within the organization
        /// </summary>
        [Input("role", required: true)]
        public Input<string> Role { get; set; } = null!;

        /// <summary>
        /// Quota of vApps that this user can store. A value of 0 specifies an unlimited quota.
        /// </summary>
        [Input("storedVmQuota")]
        public Input<int>? StoredVmQuota { get; set; }

        /// <summary>
        /// Take ownership of user's objects on deletion.
        /// </summary>
        [Input("takeOwnership")]
        public Input<bool>? TakeOwnership { get; set; }

        /// <summary>
        /// The user's telephone
        /// </summary>
        [Input("telephone")]
        public Input<string>? Telephone { get; set; }

        public OrgUserArgs()
        {
        }
        public static new OrgUserArgs Empty => new OrgUserArgs();
    }

    public sealed class OrgUserState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Quota of vApps that this user can deploy. A value of 0 specifies an unlimited quota.
        /// </summary>
        [Input("deployedVmQuota")]
        public Input<int>? DeployedVmQuota { get; set; }

        /// <summary>
        /// The user's description
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// The user's email address
        /// </summary>
        [Input("emailAddress")]
        public Input<string>? EmailAddress { get; set; }

        /// <summary>
        /// True if the user is enabled and can log in.
        /// </summary>
        [Input("enabled")]
        public Input<bool>? Enabled { get; set; }

        /// <summary>
        /// The user's full name
        /// </summary>
        [Input("fullName")]
        public Input<string>? FullName { get; set; }

        [Input("groupNames")]
        private InputList<string>? _groupNames;

        /// <summary>
        /// Read only. Set of group names that this user belongs to
        /// </summary>
        public InputList<string> GroupNames
        {
            get => _groupNames ?? (_groupNames = new InputList<string>());
            set => _groupNames = value;
        }

        /// <summary>
        /// The user's telephone
        /// </summary>
        [Input("instantMessaging")]
        public Input<string>? InstantMessaging { get; set; }

        /// <summary>
        /// True if this user is imported from an external resource, like an LDAP.
        /// </summary>
        [Input("isExternal")]
        public Input<bool>? IsExternal { get; set; }

        /// <summary>
        /// True if this user has a group role.
        /// </summary>
        [Input("isGroupRole")]
        public Input<bool>? IsGroupRole { get; set; }

        /// <summary>
        /// If the user account has been locked due to too many invalid login attempts, the value will change to true (only the
        /// system can lock the user). To unlock the user re-set this flag to false.
        /// </summary>
        [Input("isLocked")]
        public Input<bool>? IsLocked { get; set; }

        /// <summary>
        /// User's name. Only lowercase letters allowed. Cannot be changed after creation
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// The name of organization to use, optional if defined at provider level. Useful when connected as sysadmin working across
        /// different organizations
        /// </summary>
        [Input("org")]
        public Input<string>? Org { get; set; }

        /// <summary>
        /// The user's password. This value is never returned on read. Either "password" or "password_file" must be included on
        /// creation unless is_external is true.
        /// </summary>
        [Input("password")]
        public Input<string>? Password { get; set; }

        /// <summary>
        /// Name of a file containing the user's password. Either "password_file" or "password" must be included on creation unless
        /// is_external is true.
        /// </summary>
        [Input("passwordFile")]
        public Input<string>? PasswordFile { get; set; }

        /// <summary>
        /// Identity provider type for this this user. One of: 'INTEGRATED', 'SAML', 'OAUTH'. When empty, the default value
        /// 'INTEGRATED' is used.
        /// </summary>
        [Input("providerType")]
        public Input<string>? ProviderType { get; set; }

        /// <summary>
        /// Role within the organization
        /// </summary>
        [Input("role")]
        public Input<string>? Role { get; set; }

        /// <summary>
        /// Quota of vApps that this user can store. A value of 0 specifies an unlimited quota.
        /// </summary>
        [Input("storedVmQuota")]
        public Input<int>? StoredVmQuota { get; set; }

        /// <summary>
        /// Take ownership of user's objects on deletion.
        /// </summary>
        [Input("takeOwnership")]
        public Input<bool>? TakeOwnership { get; set; }

        /// <summary>
        /// The user's telephone
        /// </summary>
        [Input("telephone")]
        public Input<string>? Telephone { get; set; }

        public OrgUserState()
        {
        }
        public static new OrgUserState Empty => new OrgUserState();
    }
}
