remove legacy Spanner admin interfaces when deprecation period expires #7356
Labels
api: spanner
Issues related to the Spanner API.
next major: breaking change
this is a change that we should wait to bundle into the next major version
type: cleanup
An internal cleanup or hygiene concern.
As of 2021-10-01 the hand-wrought
google::cloud::spanner::InstanceAdminConnection
, andgoogle::cloud::spanner::DatabaseAdminConnection
connection classes, along with the overloaded functions
google::cloud::spanner::MakeInstanceAdminConnection()
, andgoogle::cloud::spanner::MakeDatabaseAdminConnection()
that build them, and the
google::cloud::spanner::InstanceAdminClient
google::cloud::spanner::DatabaseAdminClient
client classes, were all deprecated in favor of their similarly named counterparts in the
google::cloud::spanner_admin
namespace from the https://github.com/googleapis/google-cloud-cpp/tree/main/google/cloud/spanner/admin source tree.The new interfaces were generated directly from the Spanner admin service definitions in https://github.com/googleapis/googleapis/tree/master/google/spanner/admin by the https://github.com/googleapis/google-cloud-cpp/tree/main/generator. As such, they are at a slightly lower level, dealing only with
protobuf
types, but the basic elements remain the same.The old interfaces are now frozen and will be removed from the code base on or shortly after 2022-10-01, so customers will need to migrate any affected code before then.
Deprecation attributes have been added to those old APIs to aid in their identification, while the sample code in https://github.com/googleapis/google-cloud-cpp/blob/main/google/cloud/spanner/samples/samples.cc has been updated to use the new APIs. See the diffs between the old and new samples in #7311 for a more concise picture of how to perform migrations.
The text was updated successfully, but these errors were encountered: