You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
body: 'tfprotov5+tfprotov6: `GetResourceIdentitySchemas` and `UpgradeResourceIdentity` RPC calls are now required in
3
+
`ProviderServer` and `ResourceServer`. Implementations that don''t support resource identity can return empty responses from the `GetResourceIdentitySchemas` method
4
+
and an error message the `UpgradeResourceIdentity` method.'
@@ -63,29 +67,6 @@ type ProviderServer interface {
63
67
EphemeralResourceServer
64
68
}
65
69
66
-
// ProviderServerWithResourceIdentity is a temporary interface for servers
67
-
// to implement Resource Identity RPC handling with:
68
-
//
69
-
// - GetResourceIdentitySchemas
70
-
// - UpgradeResourceIdentity
71
-
//
72
-
// Deprecated: All methods will be moved into the
73
-
// ProviderServer and ResourceServer interfaces and this interface will be removed in a future
74
-
// version.
75
-
typeProviderServerWithResourceIdentityinterface {
76
-
ProviderServer
77
-
78
-
// GetResourceIdentitySchemas is called when Terraform needs to know
79
-
// what the provider's resource identity schemas are.
80
-
GetResourceIdentitySchemas(context.Context, *GetResourceIdentitySchemasRequest) (*GetResourceIdentitySchemasResponse, error) // This will go into the ProviderServer interface
81
-
82
-
// UpgradeResourceIdentity is called when Terraform has encountered a
83
-
// resource with an identity state in a schema that doesn't match the schema's
84
-
// current version. It is the provider's responsibility to modify the
85
-
// identity state to upgrade it to the latest state schema.
86
-
UpgradeResourceIdentity(context.Context, *UpgradeResourceIdentityRequest) (*UpgradeResourceIdentityResponse, error) // This will go into the ResourceServer interface
87
-
}
88
-
89
70
// GetMetadataRequest represents a GetMetadata RPC request.
Summary: "Provider GetResourceIdentitySchemas Not Implemented",
588
-
Detail: "A GetResourceIdentitySchemas call was received by the provider, however the provider does not implement the call. "+
589
-
"Either upgrade the provider to a version that implements resource identity support or this is a bug in Terraform that should be reported to the Terraform maintainers.",
590
-
},
591
-
},
592
-
}
593
-
594
-
returnprotoResp, nil
595
-
}
596
-
597
-
// TODO: Update this to call downstream once optional interface is removed
Summary: "Provider UpgradeResourceIdentity Not Implemented",
861
-
Detail: "A UpgradeResourceIdentity call was received by the provider, however the provider does not implement the call. "+
862
-
"Either upgrade the provider to a version that implements resource identity support or this is a bug in Terraform that should be reported to the Terraform maintainers.",
863
-
},
864
-
},
865
-
}
866
-
867
-
returnprotoResp, nil
868
-
}
869
-
870
-
// TODO: Update this to call downstream once optional interface is removed
@@ -63,29 +67,6 @@ type ProviderServer interface {
63
67
EphemeralResourceServer
64
68
}
65
69
66
-
// ProviderServerWithResourceIdentity is a temporary interface for servers
67
-
// to implement Resource Identity RPC handling with:
68
-
//
69
-
// - GetResourceIdentitySchemas
70
-
// - UpgradeResourceIdentity
71
-
//
72
-
// Deprecated: All methods will be moved into the
73
-
// ProviderServer and ResourceServer interfaces and this interface will be removed in a future
74
-
// version.
75
-
typeProviderServerWithResourceIdentityinterface {
76
-
ProviderServer
77
-
78
-
// GetResourceIdentitySchemas is called when Terraform needs to know
79
-
// what the provider's resource identity schemas are.
80
-
GetResourceIdentitySchemas(context.Context, *GetResourceIdentitySchemasRequest) (*GetResourceIdentitySchemasResponse, error) // This will go into the ProviderServer interface
81
-
82
-
// UpgradeResourceIdentity is called when Terraform has encountered a
83
-
// resource with an identity state in a schema that doesn't match the schema's
84
-
// current version. It is the provider's responsibility to modify the
85
-
// identity state to upgrade it to the latest state schema.
86
-
UpgradeResourceIdentity(context.Context, *UpgradeResourceIdentityRequest) (*UpgradeResourceIdentityResponse, error) // This will go into the ResourceServer interface
87
-
}
88
-
89
70
// GetMetadataRequest represents a GetMetadata RPC request.
Summary: "Provider GetResourceIdentitySchemas Not Implemented",
588
-
Detail: "A GetResourceIdentitySchemas call was received by the provider, however the provider does not implement the call. "+
589
-
"Either upgrade the provider to a version that implements resource identity support or this is a bug in Terraform that should be reported to the Terraform maintainers.",
590
-
},
591
-
},
592
-
}
593
-
594
-
returnprotoResp, nil
595
-
}
596
-
597
-
// TODO: Update this to call downstream once optional interface is removed
Summary: "Provider UpgradeResourceIdentity Not Implemented",
862
-
Detail: "A UpgradeResourceIdentity call was received by the provider, however the provider does not implement the call. "+
863
-
"Either upgrade the provider to a version that implements resource identity support or this is a bug in Terraform that should be reported to the Terraform maintainers.",
864
-
},
865
-
},
866
-
}
867
-
868
-
returnprotoResp, nil
869
-
}
870
-
871
-
// TODO: Update this to call downstream once optional interface is removed
0 commit comments