Skip to content

Commit

Permalink
Fix to flexCluster data source schema
Browse files Browse the repository at this point in the history
  • Loading branch information
cveticm committed Oct 22, 2024
1 parent a58236e commit 33368ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/service/flexcluster/data_source_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ func DataSourceSchema(ctx context.Context) schema.Schema {
func dataSourceSchema(isPlural bool) map[string]schema.Attribute {
return map[string]schema.Attribute{
"project_id": schema.StringAttribute{
Required: !isPlural,
Computed: isPlural,
Required: true,
MarkdownDescription: "Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access.\n\n**NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.",
},
"name": schema.StringAttribute{
Expand Down Expand Up @@ -88,7 +87,7 @@ func dataSourceSchema(isPlural bool) map[string]schema.Attribute {
Computed: true,
MarkdownDescription: "Unique 24-hexadecimal digit string that identifies the instance.",
},
"mongo_dbversion": schema.StringAttribute{
"mongo_db_version": schema.StringAttribute{
Computed: true,
MarkdownDescription: "Version of MongoDB that the instance runs.",
},
Expand Down

0 comments on commit 33368ec

Please sign in to comment.