Skip to content

Commit 68a3751

Browse files
authored
Merge pull request #41 from planetscale/docs
tweak more docs
2 parents f9f730e + 00c8977 commit 68a3751

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ provider "planetscale" {
3737

3838
## Known limitations
3939

40-
- 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)
40+
- 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.
41+
- 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`)
4142

4243
## Contributing
4344

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ description: |-
88
Note that the provider is not production ready and only for early testing at this time.
99
Known limitations:
1010
- 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.
11+
- 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)
1112
---
1213

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

2223
Known limitations:
2324
- 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.
25+
- 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`)
2426

2527
## Example Usage
2628

docs/resources/backup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ resource "planetscale_backup" "example" {
3535

3636
### Required
3737

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

6666
- `created_at` (String) When the backup policy was created.
67-
- `frequency_unit` (String) The unit for the frequency of the backup policy.
68-
- `frequency_value` (Number) A number value for the frequency of the backup policy.
67+
- `frequency_unit` (String) The unit for the frequency of the backup policy. Not configurable for now.
68+
- `frequency_value` (Number) A number value for the frequency of the backup policy. Not configurable for now.
6969
- `id` (String) The ID of the backup policy.
7070
- `last_ran_at` (String) When the backup was last run.
7171
- `name` (String) The name of the backup policy.

internal/provider/backup_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Known limitations:
121121
stringplanmodifier.RequiresReplace(),
122122
}},
123123
"backup_policy": schema.SingleNestedAttribute{
124-
Description: ".",
124+
Description: "The policy used by the backup.",
125125
Required: true,
126126
Attributes: backupPolicyResourceAttribute,
127127
},

internal/provider/models_resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ var backupPolicyResourceAttribute = map[string]schema.Attribute{
147147
Computed: true,
148148
},
149149
"frequency_unit": schema.StringAttribute{
150-
Description: "The unit for the frequency of the backup policy.",
150+
Description: "The unit for the frequency of the backup policy. Not configurable for now.",
151151
Computed: true,
152152
},
153153
"frequency_value": schema.Float64Attribute{
154-
Description: "A number value for the frequency of the backup policy.",
154+
Description: "A number value for the frequency of the backup policy. Not configurable for now.",
155155
Computed: true,
156156
},
157157
"last_ran_at": schema.StringAttribute{

internal/provider/provider.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ func (p *PlanetScaleProvider) Schema(ctx context.Context, req provider.SchemaReq
6262
Note that the provider is not production ready and only for early testing at this time.
6363
6464
Known limitations:
65-
- 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.`,
65+
- 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.
66+
- 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`" + `)`,
6667
Attributes: map[string]schema.Attribute{
6768
"endpoint": schema.StringAttribute{
6869
MarkdownDescription: "If set, points the API client to a different endpoint than `https:://api.planetscale.com/v1`.",

0 commit comments

Comments
 (0)