workers_script

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() resource.Resource

func ResourceSchema

func ResourceSchema(ctx context.Context) schema.Schema

Types

type WorkersScriptBindingsModel added in v0.0.4

type WorkersScriptBindingsModel struct {
	Name          types.String `tfsdk:"name" json:"name,optional"`
	Type          types.String `tfsdk:"type" json:"type,optional"`
	BucketName    types.String `tfsdk:"bucket_name" json:"bucket_name,optional"`
	Service       types.String `tfsdk:"service" json:"service,optional"`
	Environment   types.String `tfsdk:"environment" json:"environment,optional"`
	ClassName     types.String `tfsdk:"class_name" json:"class_name,optional"`
	ScriptName    types.String `tfsdk:"script_name" json:"script_name,optional"`
	QueueName     types.String `tfsdk:"queue_name" json:"queue_name,optional"`
	ID            types.String `tfsdk:"id" json:"id,optional"`
	CertificateID types.String `tfsdk:"certificate_id" json:"certificate_id,optional"`
}

type WorkersScriptMetadataMigrationsRenamedClassesModel

type WorkersScriptMetadataMigrationsRenamedClassesModel struct {
	From types.String `tfsdk:"from" json:"from,optional"`
	To   types.String `tfsdk:"to" json:"to,optional"`
}

type WorkersScriptMetadataMigrationsStepsModel

type WorkersScriptMetadataMigrationsStepsModel struct {
	DeletedClasses     customfield.List[types.String]                                                            `tfsdk:"deleted_classes" json:"deleted_classes,optional"`
	NewClasses         customfield.List[types.String]                                                            `tfsdk:"new_classes" json:"new_classes,optional"`
	NewSqliteClasses   customfield.List[types.String]                                                            `tfsdk:"new_sqlite_classes" json:"new_sqlite_classes,optional"`
	RenamedClasses     customfield.NestedObjectList[WorkersScriptMetadataMigrationsStepsRenamedClassesModel]     `tfsdk:"renamed_classes" json:"renamed_classes,computed_optional"`
	TransferredClasses customfield.NestedObjectList[WorkersScriptMetadataMigrationsStepsTransferredClassesModel] `tfsdk:"transferred_classes" json:"transferred_classes,computed_optional"`
}

type WorkersScriptMetadataMigrationsStepsRenamedClassesModel

type WorkersScriptMetadataMigrationsStepsRenamedClassesModel struct {
	From types.String `tfsdk:"from" json:"from,optional"`
	To   types.String `tfsdk:"to" json:"to,optional"`
}

type WorkersScriptMetadataMigrationsStepsTransferredClassesModel

type WorkersScriptMetadataMigrationsStepsTransferredClassesModel struct {
	From       types.String `tfsdk:"from" json:"from,optional"`
	FromScript types.String `tfsdk:"from_script" json:"from_script,optional"`
	To         types.String `tfsdk:"to" json:"to,optional"`
}

type WorkersScriptMetadataMigrationsTransferredClassesModel

type WorkersScriptMetadataMigrationsTransferredClassesModel struct {
	From       types.String `tfsdk:"from" json:"from,optional"`
	FromScript types.String `tfsdk:"from_script" json:"from_script,optional"`
	To         types.String `tfsdk:"to" json:"to,optional"`
}

type WorkersScriptMetadataModel

type WorkersScriptMetadataModel struct {
	Bindings           customfield.NestedObjectList[WorkersScriptBindingsModel]      `tfsdk:"bindings" json:"bindings,optional"`
	BodyPart           types.String                                                  `tfsdk:"body_part" json:"body_part,optional"`
	CompatibilityDate  types.String                                                  `tfsdk:"compatibility_date" json:"compatibility_date,optional"`
	CompatibilityFlags customfield.List[types.String]                                `tfsdk:"compatibility_flags" json:"compatibility_flags,optional"`
	KeepBindings       customfield.List[types.String]                                `tfsdk:"keep_bindings" json:"keep_bindings,optional"`
	MainModule         types.String                                                  `tfsdk:"main_module" json:"main_module,optional"`
	Migrations         customfield.NestedObject[WorkersScriptMigrationsModel]        `tfsdk:"migrations" json:"migrations,optional"`
	Placement          customfield.NestedObject[WorkersScriptMetadataPlacementModel] `tfsdk:"placement" json:"placement,computed_optional"`
	Tags               customfield.List[types.String]                                `tfsdk:"tags" json:"tags,optional"`
	TailConsumers      customfield.NestedObjectList[WorkersScriptTailConsumersModel] `tfsdk:"tail_consumers" json:"tail_consumers,optional"`
	UsageModel         types.String                                                  `tfsdk:"usage_model" json:"usage_model,optional"`
	VersionTags        map[string]types.String                                       `tfsdk:"version_tags" json:"version_tags,optional"`
	Logpush            types.Bool                                                    `tfsdk:"logpush" json:"logpush,optional"`
}

func (WorkersScriptMetadataModel) MarshalJSON added in v0.0.4

func (m WorkersScriptMetadataModel) MarshalJSON() (data []byte, err error)

type WorkersScriptMetadataPlacementModel

type WorkersScriptMetadataPlacementModel struct {
	Mode types.String `tfsdk:"mode" json:"mode,optional"`
}

type WorkersScriptMigrationsModel added in v0.0.4

type WorkersScriptMigrationsModel struct {
	DeletedClasses     customfield.List[types.String]                                                       `tfsdk:"deleted_classes" json:"deleted_classes,optional"`
	NewClasses         customfield.List[types.String]                                                       `tfsdk:"new_classes" json:"new_classes,optional"`
	NewSqliteClasses   customfield.List[types.String]                                                       `tfsdk:"new_sqlite_classes" json:"new_sqlite_classes,optional"`
	NewTag             types.String                                                                         `tfsdk:"new_tag" json:"new_tag,optional"`
	OldTag             types.String                                                                         `tfsdk:"old_tag" json:"old_tag,optional"`
	RenamedClasses     customfield.NestedObjectList[WorkersScriptMetadataMigrationsRenamedClassesModel]     `tfsdk:"renamed_classes" json:"renamed_classes,computed_optional"`
	TransferredClasses customfield.NestedObjectList[WorkersScriptMetadataMigrationsTransferredClassesModel] `tfsdk:"transferred_classes" json:"transferred_classes,computed_optional"`
	Steps              customfield.NestedObjectList[WorkersScriptMetadataMigrationsStepsModel]              `tfsdk:"steps" json:"steps,computed_optional"`
}

type WorkersScriptModel

type WorkersScriptModel struct {
	ID                 types.String                                                 `tfsdk:"id" path:"id,computed"`
	ScriptName         types.String                                                 `tfsdk:"script_name" path:"script_name,required"`
	AccountID          types.String                                                 `tfsdk:"account_id" path:"account_id,required"`
	Parts              customfield.NestedObjectMap[WorkersScriptPartModel]          `tfsdk:"parts" path:"parts,required"`
	Bindings           customfield.NestedObjectSet[WorkersScriptBindingsModel]      `tfsdk:"bindings" json:"bindings,optional"`
	CompatibilityDate  types.String                                                 `tfsdk:"compatibility_date" json:"compatibility_date,optional"`
	CompatibilityFlags customfield.Set[types.String]                                `tfsdk:"compatibility_flags" json:"compatibility_flags,optional"`
	KeepBindings       customfield.Set[types.String]                                `tfsdk:"keep_bindings" json:"keep_bindings,optional"`
	MainModule         types.String                                                 `tfsdk:"main_module" json:"main_module,optional"`
	BodyPart           types.String                                                 `tfsdk:"body_part" json:"body_part,optional"`
	Migrations         customfield.NestedObject[WorkersScriptMigrationsModel]       `tfsdk:"migrations" json:"migrations,optional"`
	Tags               customfield.Set[types.String]                                `tfsdk:"tags" json:"tags,optional"`
	VersionTags        map[string]types.String                                      `tfsdk:"version_tags" json:"version_tags,optional"`
	Message            types.String                                                 `tfsdk:"message" json:"message,optional"`
	Logpush            types.Bool                                                   `tfsdk:"logpush" json:"logpush,computed_optional"`
	PlacementMode      types.String                                                 `tfsdk:"placement_mode" json:"placement_mode,computed_optional"`
	UsageModel         types.String                                                 `tfsdk:"usage_model" json:"usage_model,computed_optional"`
	TailConsumers      customfield.NestedObjectSet[WorkersScriptTailConsumersModel] `tfsdk:"tail_consumers" json:"tail_consumers,computed_optional"`
	StartupTimeMs      types.Int64                                                  `tfsdk:"startup_time_ms" json:"startup_time_ms,computed"`
	CreatedOn          timetypes.RFC3339                                            `tfsdk:"created_on" json:"created_on,computed" format:"date-time"`
	ModifiedOn         timetypes.RFC3339                                            `tfsdk:"modified_on" json:"modified_on,computed" format:"date-time"`
	Etag               types.String                                                 `tfsdk:"etag" json:"etag,computed"`
}

func (WorkersScriptModel) MarshalMultipart

func (r WorkersScriptModel) MarshalMultipart() (data []byte, contentType string, err error)

type WorkersScriptPartModel added in v0.0.4

type WorkersScriptPartModel struct {
	Part   types.String `tfsdk:"part" path:"part,required"`
	Module types.Bool   `tfsdk:"module" path:"module,optional"`
}

type WorkersScriptResource

type WorkersScriptResource struct {
	// contains filtered or unexported fields
}

WorkersScriptResource defines the resource implementation.

func (*WorkersScriptResource) ConfigValidators

func (*WorkersScriptResource) Configure

func (*WorkersScriptResource) Create

func (*WorkersScriptResource) Delete

func (*WorkersScriptResource) ImportState

func (*WorkersScriptResource) Metadata

func (*WorkersScriptResource) ModifyPlan

func (*WorkersScriptResource) Read

func (*WorkersScriptResource) Schema

func (*WorkersScriptResource) Update

type WorkersScriptSettingResponseEnvelope added in v0.0.4

type WorkersScriptSettingResponseEnvelope struct {
	Result WorkersScriptMetadataModel `json:"result"`
}

type WorkersScriptTailConsumersModel

type WorkersScriptTailConsumersModel struct {
	Service     types.String `tfsdk:"service" json:"service,required"`
	Environment types.String `tfsdk:"environment" json:"environment,optional"`
	Namespace   types.String `tfsdk:"namespace" json:"namespace,optional"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL