// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package dns_zone_transfers_tsig

import (
	"context"

	"github.com/cloudflare/cloudflare-go/v6"
	"github.com/cloudflare/cloudflare-go/v6/dns"
	"github.com/hashicorp/terraform-plugin-framework/diag"
	"github.com/hashicorp/terraform-plugin-framework/types"
)

type DNSZoneTransfersTSIGResultDataSourceEnvelope struct {
	Result DNSZoneTransfersTSIGDataSourceModel `json:"result,computed"`
}

type DNSZoneTransfersTSIGDataSourceModel struct {
	ID        types.String `tfsdk:"id" path:"tsig_id,computed"`
	TSIGID    types.String `tfsdk:"tsig_id" path:"tsig_id,optional"`
	AccountID types.String `tfsdk:"account_id" path:"account_id,required"`
	Algo      types.String `tfsdk:"algo" json:"algo,computed"`
	Name      types.String `tfsdk:"name" json:"name,computed"`
	Secret    types.String `tfsdk:"secret" json:"secret,computed"`
}

func (m *DNSZoneTransfersTSIGDataSourceModel) toReadParams(_ context.Context) (params dns.ZoneTransferTSIGGetParams, diags diag.Diagnostics) {
	params = dns.ZoneTransferTSIGGetParams{
		AccountID: cloudflare.F(m.AccountID.ValueString()),
	}

	return
}
