Add description for the parameters field of DSA instances (#445)

* Add description for the parameters field of DSA instances

* Improve sentence
This commit is contained in:
João Palet 2024-07-02 19:02:19 +01:00 committed by GitHub
parent 78793f49ff
commit aec518b8f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 35 additions and 43 deletions

View file

@ -168,6 +168,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
"version": "The service version.",
"plan_name": "The selected plan name.",
"plan_id": "The selected plan ID.",
"parameters": "Configuration parameters. Please note that removing a previously configured field from your Terraform configuration won't replace its value in the API. To update a previously configured field, explicitly set a new value for it.",
}
parametersDescriptions := map[string]string{
@ -244,6 +245,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
Computed: true,
},
"parameters": schema.SingleNestedAttribute{
Description: descriptions["parameters"],
Attributes: map[string]schema.Attribute{
"sgw_acl": schema.StringAttribute{
Description: parametersDescriptions["sgw_acl"],

View file

@ -136,6 +136,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
"version": "The service version.",
"plan_name": "The selected plan name.",
"plan_id": "The selected plan ID.",
"parameters": "Configuration parameters. Please note that removing a previously configured field from your Terraform configuration won't replace its value in the API. To update a previously configured field, explicitly set a new value for it.",
}
parametersDescriptions := map[string]string{
@ -206,6 +207,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
Computed: true,
},
"parameters": schema.SingleNestedAttribute{
Description: descriptions["parameters"],
Attributes: map[string]schema.Attribute{
"sgw_acl": schema.StringAttribute{
Description: parametersDescriptions["sgw_acl"],

View file

@ -149,6 +149,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
"version": "The service version.",
"plan_name": "The selected plan name.",
"plan_id": "The selected plan ID.",
"parameters": "Configuration parameters. Please note that removing a previously configured field from your Terraform configuration won't replace its value in the API. To update a previously configured field, explicitly set a new value for it.",
}
parametersDescriptions := map[string]string{
@ -225,6 +226,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
Computed: true,
},
"parameters": schema.SingleNestedAttribute{
Description: descriptions["parameters"],
Attributes: map[string]schema.Attribute{
"sgw_acl": schema.StringAttribute{
Description: parametersDescriptions["sgw_acl"],

View file

@ -146,6 +146,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
"version": "The service version.",
"plan_name": "The selected plan name.",
"plan_id": "The selected plan ID.",
"parameters": "Configuration parameters. Please note that removing a previously configured field from your Terraform configuration won't replace its value in the API. To update a previously configured field, explicitly set a new value for it.",
}
parametersDescriptions := map[string]string{
@ -221,6 +222,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
Computed: true,
},
"parameters": schema.SingleNestedAttribute{
Description: descriptions["parameters"],
Attributes: map[string]schema.Attribute{
"sgw_acl": schema.StringAttribute{
Description: parametersDescriptions["sgw_acl"],

View file

@ -165,6 +165,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
"version": "The service version.",
"plan_name": "The selected plan name.",
"plan_id": "The selected plan ID.",
"parameters": "Configuration parameters. Please note that removing a previously configured field from your Terraform configuration won't replace its value in the API. To update a previously configured field, explicitly set a new value for it.",
}
parametersDescriptions := map[string]string{
@ -249,6 +250,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r
Computed: true,
},
"parameters": schema.SingleNestedAttribute{
Description: descriptions["parameters"],
Attributes: map[string]schema.Attribute{
"sgw_acl": schema.StringAttribute{
Description: parametersDescriptions["sgw_acl"],