Skip to content

Commit

Permalink
chore: generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
henryde committed Jun 6, 2024
1 parent 24f377c commit 6a16bee
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
58 changes: 58 additions & 0 deletions docs/data-sources/tenant.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "meshstack_tenant Data Source - terraform-provider-meshstack"
subcategory: ""
description: |-
Single tenant by workspace, project, and platform.
---

# meshstack_tenant (Data Source)

Single tenant by workspace, project, and platform.



<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `metadata` (Attributes) Tenant metadata. Workspace, project and platform of the target tenant must be set here. (see [below for nested schema](#nestedatt--metadata))

### Read-Only

- `api_version` (String) Tenant datatype version
- `kind` (String) meshObject type, always `meshTenant`.
- `spec` (Attributes) Tenant specification. (see [below for nested schema](#nestedatt--spec))

<a id="nestedatt--metadata"></a>
### Nested Schema for `metadata`

Required:

- `owned_by_project` (String)
- `owned_by_workspace` (String)
- `platform_identifier` (String)

Read-Only:

- `assigned_tags` (Map of List of String)
- `deleted_on` (String)


<a id="nestedatt--spec"></a>
### Nested Schema for `spec`

Read-Only:

- `landing_zone_identifier` (String)
- `local_id` (String)
- `quotas` (Attributes List) (see [below for nested schema](#nestedatt--spec--quotas))

<a id="nestedatt--spec--quotas"></a>
### Nested Schema for `spec.quotas`

Read-Only:

- `key` (String)
- `value` (String)
2 changes: 1 addition & 1 deletion internal/provider/project_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ func (r *projectResource) Schema(_ context.Context, _ resource.SchemaRequest, re

"display_name": schema.StringAttribute{Required: true},
// TODO: Blocks would be more terraform-y.
// FIXME: nullable and not computed
"tags": schema.MapAttribute{
ElementType: types.ListType{ElemType: types.StringType},
Optional: true,
Computed: true,
Default: mapdefault.StaticValue(types.MapNull(types.ListType{ElemType: types.StringType})),
},
Expand Down

0 comments on commit 6a16bee

Please sign in to comment.