0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 02:52:58 +00:00
terraform-provider-proxmox/fwprovider/cluster/acme/plugin_model.go
Pavel Boldyrev 2a356014a1
misc(code): move fwprovider files around (#1866)
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2025-03-29 19:02:41 +00:00

44 lines
1.3 KiB
Go

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package acme
import (
"github.com/hashicorp/terraform-plugin-framework/types"
)
// acmePluginsModel maps the schema data for the ACME plugins data source.
type acmePluginsModel struct {
Plugins []acmePluginModel `tfsdk:"plugins"`
}
type baseACMEPluginModel struct {
// API plugin name
API types.String `tfsdk:"api"`
// DNS plugin data
Data types.Map `tfsdk:"data"`
// Prevent changes if current configuration file has a different digest.
// This can be used to prevent concurrent modifications.
Digest types.String `tfsdk:"digest"`
// Plugin ID name
Plugin types.String `tfsdk:"plugin"`
// Extra delay in seconds to wait before requesting validation (0 - 172800)
ValidationDelay types.Int64 `tfsdk:"validation_delay"`
}
// acmePluginModel maps the schema data for an ACME plugin.
type acmePluginModel struct {
baseACMEPluginModel
Type types.String `tfsdk:"type"`
}
// acmePluginCreateModel maps the schema data for an ACME plugin.
type acmePluginCreateModel struct {
baseACMEPluginModel
// Flag to disable the config
Disable types.Bool `tfsdk:"disable"`
}