Skip to content

Commit

Permalink
Merge pull request #41 from planetscale/docs
Browse files Browse the repository at this point in the history
tweak more docs
  • Loading branch information
aybabtme authored Oct 13, 2023
2 parents f9f730e + 00c8977 commit 68a3751
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ provider "planetscale" {

## Known limitations

- Service tokens don't immediately have read/write access on the resources they create. For now, access must be granted via the UI or via the CLI (pscale service-token add-access)
- Support for deployments, deploy queues, deploy requests and reverts is not implemented at this time. If you have a use case for it, please let us know in the repository issues.
- Service tokens don't immediately have read/write access on the resources they create. For now, access must be granted via the UI or via the CLI (`pscale service-token add-access`)

## Contributing

Expand Down
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ description: |-
Note that the provider is not production ready and only for early testing at this time.
Known limitations:
- Support for deployments, deploy queues, deploy requests and reverts is not implemented at this time. If you have a use case for it, please let us know in the repository issues.
- Service tokens don't immediately have read/write access on the resources they create. For now, access must be granted via the UI or via the CLI (pscale service-token add-access)
---

# planetscale Provider
Expand All @@ -21,6 +22,7 @@ Note that the provider is not production ready and only for early testing at thi

Known limitations:
- Support for deployments, deploy queues, deploy requests and reverts is not implemented at this time. If you have a use case for it, please let us know in the repository issues.
- Service tokens don't immediately have read/write access on the resources they create. For now, access must be granted via the UI or via the CLI (`pscale service-token add-access`)

## Example Usage

Expand Down
6 changes: 3 additions & 3 deletions docs/resources/backup.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "planetscale_backup" "example" {

### Required

- `backup_policy` (Attributes) . (see [below for nested schema](#nestedatt--backup_policy))
- `backup_policy` (Attributes) The policy used by the backup. (see [below for nested schema](#nestedatt--backup_policy))
- `branch` (String) The branch being backed up.
- `database` (String) The database to which the branch being backed up belongs to.
- `name` (String) The name of the backup.
Expand Down Expand Up @@ -64,8 +64,8 @@ Required:
Read-Only:

- `created_at` (String) When the backup policy was created.
- `frequency_unit` (String) The unit for the frequency of the backup policy.
- `frequency_value` (Number) A number value for the frequency of the backup policy.
- `frequency_unit` (String) The unit for the frequency of the backup policy. Not configurable for now.
- `frequency_value` (Number) A number value for the frequency of the backup policy. Not configurable for now.
- `id` (String) The ID of the backup policy.
- `last_ran_at` (String) When the backup was last run.
- `name` (String) The name of the backup policy.
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/backup_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Known limitations:
stringplanmodifier.RequiresReplace(),
}},
"backup_policy": schema.SingleNestedAttribute{
Description: ".",
Description: "The policy used by the backup.",
Required: true,
Attributes: backupPolicyResourceAttribute,
},
Expand Down
4 changes: 2 additions & 2 deletions internal/provider/models_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ var backupPolicyResourceAttribute = map[string]schema.Attribute{
Computed: true,
},
"frequency_unit": schema.StringAttribute{
Description: "The unit for the frequency of the backup policy.",
Description: "The unit for the frequency of the backup policy. Not configurable for now.",
Computed: true,
},
"frequency_value": schema.Float64Attribute{
Description: "A number value for the frequency of the backup policy.",
Description: "A number value for the frequency of the backup policy. Not configurable for now.",
Computed: true,
},
"last_ran_at": schema.StringAttribute{
Expand Down
3 changes: 2 additions & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ func (p *PlanetScaleProvider) Schema(ctx context.Context, req provider.SchemaReq
Note that the provider is not production ready and only for early testing at this time.
Known limitations:
- Support for deployments, deploy queues, deploy requests and reverts is not implemented at this time. If you have a use case for it, please let us know in the repository issues.`,
- Support for deployments, deploy queues, deploy requests and reverts is not implemented at this time. If you have a use case for it, please let us know in the repository issues.
- Service tokens don't immediately have read/write access on the resources they create. For now, access must be granted via the UI or via the CLI (` + "`pscale service-token add-access`" + `)`,
Attributes: map[string]schema.Attribute{
"endpoint": schema.StringAttribute{
MarkdownDescription: "If set, points the API client to a different endpoint than `https:://api.planetscale.com/v1`.",
Expand Down

0 comments on commit 68a3751

Please sign in to comment.