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

package cloudforce_one_request_message

import (
	"github.com/cloudflare/terraform-provider-cloudflare/internal/apijson"
	"github.com/hashicorp/terraform-plugin-framework-timetypes/timetypes"
	"github.com/hashicorp/terraform-plugin-framework/types"
)

type CloudforceOneRequestMessageResultEnvelope struct {
	Result CloudforceOneRequestMessageModel `json:"result"`
}

type CloudforceOneRequestMessageModel struct {
	ID                types.Int64       `tfsdk:"id" json:"id,computed"`
	AccountID         types.String      `tfsdk:"account_id" path:"account_id,required"`
	RequestID         types.String      `tfsdk:"request_id" path:"request_id,required"`
	Content           types.String      `tfsdk:"content" json:"content,optional"`
	Author            types.String      `tfsdk:"author" json:"author,computed"`
	Created           timetypes.RFC3339 `tfsdk:"created" json:"created,computed" format:"date-time"`
	IsFollowOnRequest types.Bool        `tfsdk:"is_follow_on_request" json:"is_follow_on_request,computed"`
	Updated           timetypes.RFC3339 `tfsdk:"updated" json:"updated,computed" format:"date-time"`
}

func (m CloudforceOneRequestMessageModel) MarshalJSON() (data []byte, err error) {
	return apijson.MarshalRoot(m)
}

func (m CloudforceOneRequestMessageModel) MarshalJSONForUpdate(state CloudforceOneRequestMessageModel) (data []byte, err error) {
	return apijson.MarshalForUpdate(m, state)
}
