This reverts commit cc3cf05307.
This commit is contained in:
parent
07af7d3ae0
commit
ddcbc77685
45 changed files with 71 additions and 7718 deletions
|
|
@ -75,18 +75,11 @@ func (d *instanceDataSource) Configure(ctx context.Context, req datasource.Confi
|
|||
|
||||
// Schema defines the schema for the data source.
|
||||
func (d *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "Argus instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
"deprecation_message": "The `stackit_argus_instance` data source has been deprecated and will be removed after February 26th 2025. " +
|
||||
"Please use `stackit_observability_instance` instead, which offers the exact same functionality.",
|
||||
}
|
||||
resp.Schema = schema.Schema{
|
||||
Description: fmt.Sprintf("%s\n%s", descriptions["main"], descriptions["deprecation_message"]),
|
||||
MarkdownDescription: fmt.Sprintf("%s\n\n!> %s", descriptions["main"], descriptions["deprecation_message"]),
|
||||
DeprecationMessage: descriptions["deprecation_message"],
|
||||
Description: "Argus instance data source schema. Must have a `region` specified in the provider configuration.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal data source ID. It is structured as \"`project_id`,`instance_id`\".",
|
||||
Description: "Terraform's internal data source. ID. It is structured as \"`project_id`,`instance_id`\".",
|
||||
Computed: true,
|
||||
},
|
||||
"project_id": schema.StringAttribute{
|
||||
|
|
|
|||
|
|
@ -375,15 +375,8 @@ func (r *instanceResource) Configure(ctx context.Context, req resource.Configure
|
|||
|
||||
// Schema defines the schema for the resource.
|
||||
func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
|
||||
descriptions := map[string]string{
|
||||
"main": "Argus instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
"deprecation_message": "The `stackit_argus_instance` resource has been deprecated and will be removed after February 26th 2025. " +
|
||||
"Please use `stackit_observability_instance` instead, which offers the exact same functionality.",
|
||||
}
|
||||
resp.Schema = schema.Schema{
|
||||
Description: fmt.Sprintf("%s\n%s", descriptions["main"], descriptions["deprecation_message"]),
|
||||
MarkdownDescription: fmt.Sprintf("%s\n\n!> %s", descriptions["main"], descriptions["deprecation_message"]),
|
||||
DeprecationMessage: descriptions["deprecation_message"],
|
||||
Description: "Argus instance resource schema. Must have a `region` specified in the provider configuration.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal resource ID. It is structured as \"`project_id`,`instance_id`\".",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue