Documentation ¶
Index ¶
- func NewResource() resource.Resource
- func ResourceSchema(ctx context.Context) schema.Schema
- type WorkersScriptBindingsModel
- type WorkersScriptMetadataMigrationsRenamedClassesModel
- type WorkersScriptMetadataMigrationsStepsModel
- type WorkersScriptMetadataMigrationsStepsRenamedClassesModel
- type WorkersScriptMetadataMigrationsStepsTransferredClassesModel
- type WorkersScriptMetadataMigrationsTransferredClassesModel
- type WorkersScriptMetadataModel
- type WorkersScriptMetadataPlacementModel
- type WorkersScriptMigrationsModel
- type WorkersScriptModel
- type WorkersScriptPartModel
- type WorkersScriptResource
- func (r *WorkersScriptResource) ConfigValidators(_ context.Context) []resource.ConfigValidator
- func (r *WorkersScriptResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *WorkersScriptResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *WorkersScriptResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *WorkersScriptResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *WorkersScriptResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *WorkersScriptResource) ModifyPlan(_ context.Context, _ resource.ModifyPlanRequest, ...)
- func (r *WorkersScriptResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *WorkersScriptResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *WorkersScriptResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type WorkersScriptSettingResponseEnvelope
- type WorkersScriptTailConsumersModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
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 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 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 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 WorkersScriptResource ¶
type WorkersScriptResource struct {
// contains filtered or unexported fields
}
WorkersScriptResource defines the resource implementation.
func (*WorkersScriptResource) ConfigValidators ¶
func (r *WorkersScriptResource) ConfigValidators(_ context.Context) []resource.ConfigValidator
func (*WorkersScriptResource) Configure ¶
func (r *WorkersScriptResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*WorkersScriptResource) Create ¶
func (r *WorkersScriptResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*WorkersScriptResource) Delete ¶
func (r *WorkersScriptResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*WorkersScriptResource) ImportState ¶
func (r *WorkersScriptResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*WorkersScriptResource) Metadata ¶
func (r *WorkersScriptResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*WorkersScriptResource) ModifyPlan ¶
func (r *WorkersScriptResource) ModifyPlan(_ context.Context, _ resource.ModifyPlanRequest, _ *resource.ModifyPlanResponse)
func (*WorkersScriptResource) Read ¶
func (r *WorkersScriptResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*WorkersScriptResource) Schema ¶
func (r *WorkersScriptResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*WorkersScriptResource) Update ¶
func (r *WorkersScriptResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type WorkersScriptSettingResponseEnvelope ¶ added in v0.0.4
type WorkersScriptSettingResponseEnvelope struct {
Result WorkersScriptMetadataModel `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.