mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-09 15:25:01 +00:00
* chore(deps): update golangci/golangci-lint (v2.1.6 → v2.2.1) | datasource | package | from | to | | --------------- | ---------------------- | ------ | ------ | | github-releases | golangci/golangci-lint | v2.1.6 | v2.2.1 | * chore: update rules & run linter Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --------- Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
46 lines
1.3 KiB
Go
46 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"`
|
|
}
|