Update documentation (#298)

* Update documentation

* Update stackit/internal/services/redis/credential/resource.go

Co-authored-by: João Palet <joao.palet@outlook.com>

* Add more info

* Update datasource

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
This commit is contained in:
Vicente Pinto 2024-03-11 15:55:05 +00:00 committed by GitHub
parent 3ea0f81900
commit b79c88e858
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 15 additions and 9 deletions

View file

@ -80,6 +80,7 @@ func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequ
"credential_id": "The credential's ID.",
"instance_id": "ID of the Redis instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"uri": "Connection URI. Currently the returned uri doesn't support SSL, but you can enable it by using `rediss://` instead of `redis://`. We will provide the SSL connection in a future release",
}
resp.Schema = schema.Schema{
@ -134,7 +135,8 @@ func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequ
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Description: descriptions["uri"],
Computed: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -103,6 +103,7 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
"credential_id": "The credential's ID.",
"instance_id": "ID of the Redis instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",
"uri": "Connection URI. Currently the returned uri doesn't support SSL, but you can enable it by using `rediss://` instead of `redis://`. We will provide the SSL connection in a future release",
}
resp.Schema = schema.Schema{
@ -171,7 +172,8 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Description: descriptions["uri"],
Computed: true,
},
"username": schema.StringAttribute{
Computed: true,