From eece858606a7dbe25d70e1fa625bfa5920e53c54 Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Mon, 15 Jul 2024 06:58:33 +0000 Subject: [PATCH] gen + fmt --- docs/data-sources/user.md | 3 ++- integration/user-test/main.tf | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/data-sources/user.md b/docs/data-sources/user.md index 88c9a1f..2b12670 100644 --- a/docs/data-sources/user.md +++ b/docs/data-sources/user.md @@ -22,11 +22,12 @@ An existing user on the coder deployment ### Read-Only +- `avatar_url` (String) URL of the user's avatar. - `created_at` (Number) Unix timestamp of when the user was created. - `email` (String) Email of the user. - `last_seen_at` (Number) Unix timestamp of when the user was last seen. - `login_type` (String) Type of login for the user. Valid types are 'none', 'password', 'github', and 'oidc'. -- `name` (String) Display name of the user. Defaults to username. +- `name` (String) Display name of the user. - `organization_ids` (Set of String) IDs of organizations the user is associated with. - `roles` (Set of String) Roles assigned to the user. Valid roles are 'owner', 'template-admin', 'user-admin', and 'auditor'. - `suspended` (Boolean) Whether the user is suspended. diff --git a/integration/user-test/main.tf b/integration/user-test/main.tf index 3b05004..922cabb 100644 --- a/integration/user-test/main.tf +++ b/integration/user-test/main.tf @@ -22,11 +22,11 @@ data "coderd_user" "ethan" { } resource "coderd_user" "ethan2" { - username = "${data.coderd_user.ethan.username}2" - name = "${data.coderd_user.ethan.name}2" - email = "${data.coderd_user.ethan.email}.au" - login_type = "${data.coderd_user.ethan.login_type}" - roles = data.coderd_user.ethan.roles - suspended = data.coderd_user.ethan.suspended + username = "${data.coderd_user.ethan.username}2" + name = "${data.coderd_user.ethan.name}2" + email = "${data.coderd_user.ethan.email}.au" + login_type = data.coderd_user.ethan.login_type + roles = data.coderd_user.ethan.roles + suspended = data.coderd_user.ethan.suspended }