feat: generating code

This commit is contained in:
Marcel S. Henselin 2026-01-21 09:07:29 +01:00
parent c329d58970
commit 51663cd8d0
1221 changed files with 271709 additions and 2444 deletions

View file

@ -0,0 +1,87 @@
// Code generated by terraform-plugin-framework-generator DO NOT EDIT.
package sqlserverflexalpha
import (
"context"
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
)
func BackupDataSourceSchema(ctx context.Context) schema.Schema {
return schema.Schema{
Attributes: map[string]schema.Attribute{
"backup_id": schema.Int64Attribute{
Required: true,
Description: "The ID of the backup.",
MarkdownDescription: "The ID of the backup.",
},
"completion_time": schema.StringAttribute{
Computed: true,
Description: "The time when the backup was completed in RFC3339 format.",
MarkdownDescription: "The time when the backup was completed in RFC3339 format.",
},
"id": schema.Int64Attribute{
Computed: true,
Description: "The ID of the backup.",
MarkdownDescription: "The ID of the backup.",
},
"instance_id": schema.StringAttribute{
Required: true,
Description: "The ID of the instance.",
MarkdownDescription: "The ID of the instance.",
},
"name": schema.StringAttribute{
Computed: true,
Description: "The name of the backup.",
MarkdownDescription: "The name of the backup.",
},
"project_id": schema.StringAttribute{
Required: true,
Description: "The STACKIT project ID.",
MarkdownDescription: "The STACKIT project ID.",
},
"region": schema.StringAttribute{
Required: true,
Description: "The region which should be addressed",
MarkdownDescription: "The region which should be addressed",
Validators: []validator.String{
stringvalidator.OneOf(
"eu01",
),
},
},
"retained_until": schema.StringAttribute{
Computed: true,
Description: "The time until the backup will be retained.",
MarkdownDescription: "The time until the backup will be retained.",
},
"size": schema.Int64Attribute{
Computed: true,
Description: "The size of the backup in bytes.",
MarkdownDescription: "The size of the backup in bytes.",
},
"type": schema.StringAttribute{
Computed: true,
Description: "The type of the backup, which can be automated or manual triggered.",
MarkdownDescription: "The type of the backup, which can be automated or manual triggered.",
},
},
}
}
type BackupModel struct {
BackupId types.Int64 `tfsdk:"backup_id"`
CompletionTime types.String `tfsdk:"completion_time"`
Id types.Int64 `tfsdk:"id"`
InstanceId types.String `tfsdk:"instance_id"`
Name types.String `tfsdk:"name"`
ProjectId types.String `tfsdk:"project_id"`
Region types.String `tfsdk:"region"`
RetainedUntil types.String `tfsdk:"retained_until"`
Size types.Int64 `tfsdk:"size"`
Type types.String `tfsdk:"type"`
}