From 5195d8ffe856ee5ffb16e05712126bb52bc78656 Mon Sep 17 00:00:00 2001 From: Nish Krishnan Date: Wed, 17 Sep 2025 13:39:33 -0700 Subject: [PATCH 1/3] add metricsread role to service account docs --- docs/data-sources/service_accounts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data-sources/service_accounts.md b/docs/data-sources/service_accounts.md index a88213ea..82c5fcc2 100644 --- a/docs/data-sources/service_accounts.md +++ b/docs/data-sources/service_accounts.md @@ -29,7 +29,7 @@ Optional: Read-Only: -- `account_access` (String) The role on the account. Must be one of admin, developer, or read (case-insensitive). +- `account_access` (String) The role on the account. Must be one of admin, developer, read, or metricsread (case-insensitive). - `created_at` (String) The creation time of the Service Account. - `description` (String) The description of the Service Account. - `id` (String) The unique identifier of the Service Account. From 7466e6d51e0ae7bf3833977d7f8bcfde16e4d04f Mon Sep 17 00:00:00 2001 From: Nish Krishnan Date: Wed, 17 Sep 2025 14:08:06 -0700 Subject: [PATCH 2/3] add other files --- docs/resources/service_account.md | 2 +- internal/provider/service_account_resource.go | 2 +- internal/provider/service_accounts_datasource.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/resources/service_account.md b/docs/resources/service_account.md index cb7fee08..8c0627b5 100644 --- a/docs/resources/service_account.md +++ b/docs/resources/service_account.md @@ -54,7 +54,7 @@ resource "temporalcloud_service_account" "namespace_admin" { ### Required -- `account_access` (String) The role on the account. Must be one of admin, developer, or read (case-insensitive). +- `account_access` (String) The role on the account. Must be one of admin, developer, read, or metricsread (case-insensitive). - `name` (String) The name associated with the service account. ### Optional diff --git a/internal/provider/service_account_resource.go b/internal/provider/service_account_resource.go index 872afc54..2bb48228 100644 --- a/internal/provider/service_account_resource.go +++ b/internal/provider/service_account_resource.go @@ -124,7 +124,7 @@ func (r *serviceAccountResource) Schema(ctx context.Context, _ resource.SchemaRe }, "account_access": schema.StringAttribute{ CustomType: internaltypes.CaseInsensitiveStringType{}, - Description: "The role on the account. Must be one of admin, developer, or read (case-insensitive).", + Description: "The role on the account. Must be one of admin, developer, read, or metricsread (case-insensitive).", Required: true, Validators: []validator.String{ stringvalidator.OneOfCaseInsensitive(enums.AllowedAccountAccessRoles()...), diff --git a/internal/provider/service_accounts_datasource.go b/internal/provider/service_accounts_datasource.go index 6dfdb140..085b4bdc 100644 --- a/internal/provider/service_accounts_datasource.go +++ b/internal/provider/service_accounts_datasource.go @@ -100,7 +100,7 @@ func serviceAccountSchema(idRequired bool) map[string]schema.Attribute { }, "account_access": schema.StringAttribute{ CustomType: internaltypes.CaseInsensitiveStringType{}, - Description: "The role on the account. Must be one of admin, developer, or read (case-insensitive).", + Description: "The role on the account. Must be one of admin, developer, read, or metricsread (case-insensitive).", Computed: true, }, "namespace_accesses": schema.SetNestedAttribute{ From 0905a1bf57859c32c6ebe6cc65e269d994f39006 Mon Sep 17 00:00:00 2001 From: Nish Krishnan Date: Wed, 17 Sep 2025 14:25:43 -0700 Subject: [PATCH 3/3] generate. --- docs/data-sources/service_account.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data-sources/service_account.md b/docs/data-sources/service_account.md index e57f7e41..fc2de701 100644 --- a/docs/data-sources/service_account.md +++ b/docs/data-sources/service_account.md @@ -52,7 +52,7 @@ output "service_account" { ### Read-Only -- `account_access` (String) The role on the account. Must be one of admin, developer, or read (case-insensitive). +- `account_access` (String) The role on the account. Must be one of admin, developer, read, or metricsread (case-insensitive). - `created_at` (String) The creation time of the Service Account. - `description` (String) The description of the Service Account. - `name` (String) The name associated with the service account.