import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## Import * * The resource can be imported using the public cloud project ID and the user ID, e.g., * * terraform * * import { * * to = ovh_cloud_project_user.user * * id = "/" * * } * * bash * * $ pulumi preview -generate-config-out=user.tf * * $ pulumi up * * The file `user.tf` will then contain the imported resource's configuration, that can be copied next to the `import` block above. See https://developer.hashicorp.com/terraform/language/import/generating-configuration for more details. */ export declare class User extends pulumi.CustomResource { /** * Get an existing User resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: UserState, opts?: pulumi.CustomResourceOptions): User; /** * Returns true if the given object is an instance of User. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is User; /** * the date the user was created. */ readonly creationDate: pulumi.Output; /** * A description associated with the user. */ readonly description: pulumi.Output; /** * a convenient map representing an openstackRc file. Note: no password nor sensitive token is set in this map. */ readonly openstackRc: pulumi.Output<{ [key: string]: string; }>; /** * (Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation. */ readonly password: pulumi.Output; /** * Arbitrary string to change to trigger a password update */ readonly passwordReset: pulumi.Output; /** * The name of a role. See `roleNames`. */ readonly roleName: pulumi.Output; /** * A list of role names. Values can be: * - administrator * - aiTrainingOperator * - aiTrainingRead * - authentication * - backupOperator * - computeOperator * - imageOperator * - infrastructureSupervisor * - key-manager_operator * - key-manager_read * - load-balancer_operator * - networkOperator * - networkSecurityOperator * - objectstoreOperator * - volume_operator */ readonly roleNames: pulumi.Output; /** * A list of roles associated with the user. */ readonly roles: pulumi.Output; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * the status of the user. should be normally set to 'ok'. */ readonly status: pulumi.Output; /** * the username generated for the user. This username can be used with the Openstack API. */ readonly username: pulumi.Output; /** * Create a User resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: UserArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering User resources. */ export interface UserState { /** * the date the user was created. */ creationDate?: pulumi.Input; /** * A description associated with the user. */ description?: pulumi.Input; /** * a convenient map representing an openstackRc file. Note: no password nor sensitive token is set in this map. */ openstackRc?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * (Sensitive) the password generated for the user. The password can be used with the Openstack API. This attribute is sensitive and will only be retrieve once during creation. */ password?: pulumi.Input; /** * Arbitrary string to change to trigger a password update */ passwordReset?: pulumi.Input; /** * The name of a role. See `roleNames`. */ roleName?: pulumi.Input; /** * A list of role names. Values can be: * - administrator * - aiTrainingOperator * - aiTrainingRead * - authentication * - backupOperator * - computeOperator * - imageOperator * - infrastructureSupervisor * - key-manager_operator * - key-manager_read * - load-balancer_operator * - networkOperator * - networkSecurityOperator * - objectstoreOperator * - volume_operator */ roleNames?: pulumi.Input[]>; /** * A list of roles associated with the user. */ roles?: pulumi.Input[]>; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * the status of the user. should be normally set to 'ok'. */ status?: pulumi.Input; /** * the username generated for the user. This username can be used with the Openstack API. */ username?: pulumi.Input; } /** * The set of arguments for constructing a User resource. */ export interface UserArgs { /** * A description associated with the user. */ description?: pulumi.Input; /** * a convenient map representing an openstackRc file. Note: no password nor sensitive token is set in this map. */ openstackRc?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Arbitrary string to change to trigger a password update */ passwordReset?: pulumi.Input; /** * The name of a role. See `roleNames`. */ roleName?: pulumi.Input; /** * A list of role names. Values can be: * - administrator * - aiTrainingOperator * - aiTrainingRead * - authentication * - backupOperator * - computeOperator * - imageOperator * - infrastructureSupervisor * - key-manager_operator * - key-manager_read * - load-balancer_operator * - networkOperator * - networkSecurityOperator * - objectstoreOperator * - volume_operator */ roleNames?: pulumi.Input[]>; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; }