diff --git a/internal/resource/service_deployment_model.go b/internal/model/service_deployment.go similarity index 99% rename from internal/resource/service_deployment_model.go rename to internal/model/service_deployment.go index 2f999f0..046bb84 100644 --- a/internal/resource/service_deployment_model.go +++ b/internal/model/service_deployment.go @@ -1,4 +1,4 @@ -package resource +package model import ( "context" diff --git a/internal/resource/service_deployment.go b/internal/resource/service_deployment.go index 9e98f74..a43dee9 100644 --- a/internal/resource/service_deployment.go +++ b/internal/resource/service_deployment.go @@ -6,6 +6,7 @@ import ( "time" "terraform-provider-plural/internal/common" + "terraform-provider-plural/internal/model" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" @@ -53,7 +54,7 @@ func (r *ServiceDeploymentResource) Configure(_ context.Context, req resource.Co } func (r *ServiceDeploymentResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - data := new(ServiceDeployment) + data := new(model.ServiceDeployment) resp.Diagnostics.Append(req.Plan.Get(ctx, data)...) if resp.Diagnostics.HasError() { return @@ -71,7 +72,7 @@ func (r *ServiceDeploymentResource) Create(ctx context.Context, req resource.Cre } func (r *ServiceDeploymentResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - data := new(ServiceDeployment) + data := new(model.ServiceDeployment) resp.Diagnostics.Append(req.State.Get(ctx, data)...) if resp.Diagnostics.HasError() { return @@ -88,7 +89,7 @@ func (r *ServiceDeploymentResource) Read(ctx context.Context, req resource.ReadR } func (r *ServiceDeploymentResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - data := new(ServiceDeployment) + data := new(model.ServiceDeployment) resp.Diagnostics.Append(req.Plan.Get(ctx, data)...) if resp.Diagnostics.HasError() { return @@ -104,7 +105,7 @@ func (r *ServiceDeploymentResource) Update(ctx context.Context, req resource.Upd } func (r *ServiceDeploymentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - data := new(ServiceDeployment) + data := new(model.ServiceDeployment) resp.Diagnostics.Append(req.State.Get(ctx, data)...) if resp.Diagnostics.HasError() { return