Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ require (
github.com/hashicorp/terraform-plugin-framework-timeouts v0.5.0
github.com/hashicorp/terraform-plugin-framework-timetypes v0.5.0
github.com/hashicorp/terraform-plugin-framework-validators v0.18.0
github.com/hashicorp/terraform-plugin-go v0.27.0
github.com/hashicorp/terraform-plugin-mux v0.19.0
github.com/hashicorp/terraform-plugin-go v0.27.1-0.20250521190222-e4163ede0746
github.com/hashicorp/terraform-plugin-mux v0.19.1-0.20250521191935-028fb584efcf
github.com/hashicorp/terraform-plugin-sdk/v2 v2.37.0
github.com/hashicorp/terraform-plugin-testing v1.13.0
github.com/hashicorp/terraform-plugin-testing v1.13.1-0.20250521192739-18f8d556d02d
github.com/zclconf/go-cty v1.16.3
)

Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,16 @@ github.com/hashicorp/terraform-plugin-framework-timetypes v0.5.0 h1:v3DapR8gsp3E
github.com/hashicorp/terraform-plugin-framework-timetypes v0.5.0/go.mod h1:c3PnGE9pHBDfdEVG9t1S1C9ia5LW+gkFR0CygXlM8ak=
github.com/hashicorp/terraform-plugin-framework-validators v0.18.0 h1:OQnlOt98ua//rCw+QhBbSqfW3QbwtVrcdWeQN5gI3Hw=
github.com/hashicorp/terraform-plugin-framework-validators v0.18.0/go.mod h1:lZvZvagw5hsJwuY7mAY6KUz45/U6fiDR0CzQAwWD0CA=
github.com/hashicorp/terraform-plugin-go v0.27.0 h1:ujykws/fWIdsi6oTUT5Or4ukvEan4aN9lY+LOxVP8EE=
github.com/hashicorp/terraform-plugin-go v0.27.0/go.mod h1:FDa2Bb3uumkTGSkTFpWSOwWJDwA7bf3vdP3ltLDTH6o=
github.com/hashicorp/terraform-plugin-go v0.27.1-0.20250521190222-e4163ede0746 h1:Bzdpky/7WRDZBfxsktI97ZhUmZVxDzHGqb3jIcqvOIk=
github.com/hashicorp/terraform-plugin-go v0.27.1-0.20250521190222-e4163ede0746/go.mod h1:FDa2Bb3uumkTGSkTFpWSOwWJDwA7bf3vdP3ltLDTH6o=
github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0=
github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow=
github.com/hashicorp/terraform-plugin-mux v0.19.0 h1:F2QxnHfsvdoWbF7EWeEHA+sfmBetlW5pipq+zWnVdIc=
github.com/hashicorp/terraform-plugin-mux v0.19.0/go.mod h1:MO+7zYzrMz2Ohc5r8m7sM6YT+F8ET4lgYKe2GhiYW0g=
github.com/hashicorp/terraform-plugin-mux v0.19.1-0.20250521191935-028fb584efcf h1:XTWFnjH5nPHe4Vjq0iDZ1s5MKUdBX+7hogk528fccmI=
github.com/hashicorp/terraform-plugin-mux v0.19.1-0.20250521191935-028fb584efcf/go.mod h1:TyUwvT/kDzsGNge6A9uTG0VxAP8iDCPE9u6mpX0inmw=
github.com/hashicorp/terraform-plugin-sdk/v2 v2.37.0 h1:NFPMacTrY/IdcIcnUB+7hsore1ZaRWU9cnB6jFoBnIM=
github.com/hashicorp/terraform-plugin-sdk/v2 v2.37.0/go.mod h1:QYmYnLfsosrxjCnGY1p9c7Zj6n9thnEE+7RObeYs3fA=
github.com/hashicorp/terraform-plugin-testing v1.13.0 h1:vTELm6x3Z4H9VO3fbz71wbJhbs/5dr5DXfIwi3GMmPY=
github.com/hashicorp/terraform-plugin-testing v1.13.0/go.mod h1:b/hl6YZLm9fjeud/3goqh/gdqhZXbRfbHMkEiY9dZwc=
github.com/hashicorp/terraform-plugin-testing v1.13.1-0.20250521192739-18f8d556d02d h1:zDdHdi3vH5xYn1Znj61egI4yjUOvdmCqiGFOctZvrZY=
github.com/hashicorp/terraform-plugin-testing v1.13.1-0.20250521192739-18f8d556d02d/go.mod h1:G+cgTrkSOJQI4aPNxLFuWtdyRtqPSuWe5cI7AL0n6zI=
github.com/hashicorp/terraform-registry-address v0.2.5 h1:2GTftHqmUhVOeuu9CW3kwDkRe4pcBDq0uuK5VJngU1M=
github.com/hashicorp/terraform-registry-address v0.2.5/go.mod h1:PpzXWINwB5kuVS5CA7m1+eO2f1jKb5ZDIxrOPfpnGkg=
github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ=
Expand Down
12 changes: 12 additions & 0 deletions internal/protocolprovider/resource_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,15 @@ func (r resourceRouter) MoveResourceState(ctx context.Context, req *tfprotov5.Mo

return res.MoveResourceState(ctx, req)
}

func (r resourceRouter) UpgradeResourceIdentity(context.Context, *tfprotov5.UpgradeResourceIdentityRequest) (*tfprotov5.UpgradeResourceIdentityResponse, error) {
return &tfprotov5.UpgradeResourceIdentityResponse{
Diagnostics: []*tfprotov5.Diagnostic{
{
Severity: tfprotov5.DiagnosticSeverityError,
Summary: "Unsupported Upgrade Resource Identity Operation",
Detail: "Resource identity is not supported by this provider.",
},
},
}, nil
}
4 changes: 4 additions & 0 deletions internal/protocolprovider/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func (s *server) GetProviderSchema(ctx context.Context, req *tfprotov5.GetProvid
}, nil
}

func (s *server) GetResourceIdentitySchemas(context.Context, *tfprotov5.GetResourceIdentitySchemasRequest) (*tfprotov5.GetResourceIdentitySchemasResponse, error) {
return &tfprotov5.GetResourceIdentitySchemasResponse{}, nil
}

func (s *server) PrepareProviderConfig(ctx context.Context, req *tfprotov5.PrepareProviderConfigRequest) (*tfprotov5.PrepareProviderConfigResponse, error) {
return &tfprotov5.PrepareProviderConfigResponse{
PreparedConfig: req.Config,
Expand Down
2 changes: 2 additions & 0 deletions internal/protocolprovider/writeonly_datacheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
)

type resourceWriteOnlyDataCheck struct {
resourceRouter

enableLegacyTypeSystem bool
applyDataError bool
planDataError bool
Expand Down
12 changes: 12 additions & 0 deletions internal/protocolv6provider/resource_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,15 @@ func (r resourceRouter) MoveResourceState(ctx context.Context, req *tfprotov6.Mo

return res.MoveResourceState(ctx, req)
}

func (r resourceRouter) UpgradeResourceIdentity(context.Context, *tfprotov6.UpgradeResourceIdentityRequest) (*tfprotov6.UpgradeResourceIdentityResponse, error) {
return &tfprotov6.UpgradeResourceIdentityResponse{
Diagnostics: []*tfprotov6.Diagnostic{
{
Severity: tfprotov6.DiagnosticSeverityError,
Summary: "Unsupported Upgrade Resource Identity Operation",
Detail: "Resource identity is not supported by this provider.",
},
},
}, nil
}
4 changes: 4 additions & 0 deletions internal/protocolv6provider/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func (s *server) GetProviderSchema(ctx context.Context, req *tfprotov6.GetProvid
}, nil
}

func (s *server) GetResourceIdentitySchemas(context.Context, *tfprotov6.GetResourceIdentitySchemasRequest) (*tfprotov6.GetResourceIdentitySchemasResponse, error) {
return &tfprotov6.GetResourceIdentitySchemasResponse{}, nil
}

func (s *server) ValidateProviderConfig(ctx context.Context, req *tfprotov6.ValidateProviderConfigRequest) (*tfprotov6.ValidateProviderConfigResponse, error) {
return &tfprotov6.ValidateProviderConfigResponse{
PreparedConfig: req.Config,
Expand Down
2 changes: 2 additions & 0 deletions internal/protocolv6provider/writeonly_datacheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
)

type resourceWriteOnlyDataCheck struct {
resourceRouter

enableLegacyTypeSystem bool
applyDataError bool
planDataError bool
Expand Down
Loading