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
fix(azure): correct Manged typo in SQL client factory functions
Four exported functions misspelled "Managed" as "Manged" in
modules/azure/client_factory.go:
CreateSQLMangedInstanceClient
CreateSQLMangedInstanceClientContext
CreateSQLMangedDatabasesClient
CreateSQLMangedDatabasesClientContext
Add the correctly-spelled CreateSQLManaged* functions as the canonical
names and convert the typo'd names to // Deprecated: aliases that delegate
to them. Update internal call sites in sql_managedinstance.go to use the
new spellings.
Tagging v1.0 with the typo would lock it into the stable API until a major
version bump; the alias approach keeps backwards compatibility while
steering new code to the correct names.
OSS-3452.
// CreateSQLMangedInstanceClient is a backwards-compatible alias for [CreateSQLManagedInstanceClient].
518
+
//
519
+
// Deprecated: Use [CreateSQLManagedInstanceClient] instead.
520
+
funcCreateSQLMangedInstanceClient(subscriptionIDstring) (*armsql.ManagedInstancesClient, error) { //nolint:revive,staticcheck // preserving deprecated function name
// Deprecated: Use [CreateSQLManagedDatabasesClient] instead.
552
+
funcCreateSQLMangedDatabasesClient(subscriptionIDstring) (*armsql.ManagedDatabasesClient, error) {//nolint:revive,staticcheck // preserving deprecated function name
0 commit comments