@@ -66,10 +66,10 @@ func (r *userDataSource) Configure(ctx context.Context, req datasource.Configure
66
66
67
67
var apiClient * mongodbflex.APIClient
68
68
var err error
69
- if providerData .PostgresFlexCustomEndpoint != "" {
69
+ if providerData .MongoDBFlexCustomEndpoint != "" {
70
70
apiClient , err = mongodbflex .NewAPIClient (
71
71
config .WithCustomAuth (providerData .RoundTripper ),
72
- config .WithEndpoint (providerData .PostgresFlexCustomEndpoint ),
72
+ config .WithEndpoint (providerData .MongoDBFlexCustomEndpoint ),
73
73
)
74
74
} else {
75
75
apiClient , err = mongodbflex .NewAPIClient (
@@ -84,16 +84,16 @@ func (r *userDataSource) Configure(ctx context.Context, req datasource.Configure
84
84
}
85
85
86
86
r .client = apiClient
87
- tflog .Info (ctx , "PostgresFlex user client configured" )
87
+ tflog .Info (ctx , "MongoDB Flex user client configured" )
88
88
}
89
89
90
90
// Schema defines the schema for the data source.
91
91
func (r * userDataSource ) Schema (_ context.Context , _ datasource.SchemaRequest , resp * datasource.SchemaResponse ) {
92
92
descriptions := map [string ]string {
93
- "main" : "PostgresFlex user data source schema. Must have a `region` specified in the provider configuration." ,
93
+ "main" : "MongoDB Flex user data source schema. Must have a `region` specified in the provider configuration." ,
94
94
"id" : "Terraform's internal data source. ID. It is structured as \" `project_id`,`instance_id`,`user_id`\" ." ,
95
95
"user_id" : "User ID." ,
96
- "instance_id" : "ID of the PostgresFlex instance." ,
96
+ "instance_id" : "ID of the MongoDB Flex instance." ,
97
97
"project_id" : "STACKIT project ID to which the instance is associated." ,
98
98
}
99
99
@@ -181,7 +181,7 @@ func (r *userDataSource) Read(ctx context.Context, req datasource.ReadRequest, r
181
181
if resp .Diagnostics .HasError () {
182
182
return
183
183
}
184
- tflog .Info (ctx , "PostgresFlex user read" )
184
+ tflog .Info (ctx , "MongoDB Flex user read" )
185
185
}
186
186
187
187
func mapDataSourceFields (userResp * mongodbflex.GetUserResponse , model * DataSourceModel ) error {
0 commit comments