-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.go
24 lines (20 loc) · 994 Bytes
/
schema.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package env_status
import (
"context"
"github.com/MakeNowJust/heredoc/v2"
"github.com/altinity/terraform-provider-altinitycloud/internal/provider/common"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
)
func (r *GCPEnvStatusDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
resp.Schema = schema.Schema{
MarkdownDescription: heredoc.Doc("Altinity.Cloud GCP environment status data source. It will long pool the status until `matching_spec` is `true`."),
Attributes: map[string]schema.Attribute{
"id": common.IDAttribute,
"name": common.NameAttribute,
"pending_delete": common.PendingDeleteAttribute,
"applied_spec_revision": common.AppliedSpecRevisionAttribute,
"wait_for_applied_spec_revision": common.WaitForAppliedSpecRevisionAttribute,
},
}
}