google-cloud-sql 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. google/cloud/sqladmin/__init__.py +605 -0
  2. google/cloud/sqladmin/gapic_version.py +16 -0
  3. google/cloud/sqladmin/py.typed +2 -0
  4. google/cloud/sqladmin_v1/__init__.py +616 -0
  5. google/cloud/sqladmin_v1/_compat.py +262 -0
  6. google/cloud/sqladmin_v1/gapic_metadata.json +959 -0
  7. google/cloud/sqladmin_v1/gapic_version.py +16 -0
  8. google/cloud/sqladmin_v1/py.typed +2 -0
  9. google/cloud/sqladmin_v1/services/__init__.py +15 -0
  10. google/cloud/sqladmin_v1/services/sql_available_database_versions_service/__init__.py +22 -0
  11. google/cloud/sqladmin_v1/services/sql_available_database_versions_service/async_client.py +336 -0
  12. google/cloud/sqladmin_v1/services/sql_available_database_versions_service/client.py +613 -0
  13. google/cloud/sqladmin_v1/services/sql_available_database_versions_service/transports/__init__.py +34 -0
  14. google/cloud/sqladmin_v1/services/sql_available_database_versions_service/transports/base.py +159 -0
  15. google/cloud/sqladmin_v1/services/sql_available_database_versions_service/transports/grpc.py +339 -0
  16. google/cloud/sqladmin_v1/services/sql_available_database_versions_service/transports/grpc_asyncio.py +356 -0
  17. google/cloud/sqladmin_v1/services/sql_backup_runs_service/__init__.py +22 -0
  18. google/cloud/sqladmin_v1/services/sql_backup_runs_service/async_client.py +697 -0
  19. google/cloud/sqladmin_v1/services/sql_backup_runs_service/client.py +977 -0
  20. google/cloud/sqladmin_v1/services/sql_backup_runs_service/pagers.py +199 -0
  21. google/cloud/sqladmin_v1/services/sql_backup_runs_service/transports/__init__.py +32 -0
  22. google/cloud/sqladmin_v1/services/sql_backup_runs_service/transports/base.py +225 -0
  23. google/cloud/sqladmin_v1/services/sql_backup_runs_service/transports/grpc.py +456 -0
  24. google/cloud/sqladmin_v1/services/sql_backup_runs_service/transports/grpc_asyncio.py +495 -0
  25. google/cloud/sqladmin_v1/services/sql_backups_service/__init__.py +22 -0
  26. google/cloud/sqladmin_v1/services/sql_backups_service/async_client.py +946 -0
  27. google/cloud/sqladmin_v1/services/sql_backups_service/client.py +1244 -0
  28. google/cloud/sqladmin_v1/services/sql_backups_service/pagers.py +197 -0
  29. google/cloud/sqladmin_v1/services/sql_backups_service/transports/__init__.py +32 -0
  30. google/cloud/sqladmin_v1/services/sql_backups_service/transports/base.py +237 -0
  31. google/cloud/sqladmin_v1/services/sql_backups_service/transports/grpc.py +478 -0
  32. google/cloud/sqladmin_v1/services/sql_backups_service/transports/grpc_asyncio.py +527 -0
  33. google/cloud/sqladmin_v1/services/sql_connect_service/__init__.py +22 -0
  34. google/cloud/sqladmin_v1/services/sql_connect_service/async_client.py +591 -0
  35. google/cloud/sqladmin_v1/services/sql_connect_service/client.py +867 -0
  36. google/cloud/sqladmin_v1/services/sql_connect_service/transports/__init__.py +32 -0
  37. google/cloud/sqladmin_v1/services/sql_connect_service/transports/base.py +215 -0
  38. google/cloud/sqladmin_v1/services/sql_connect_service/transports/grpc.py +430 -0
  39. google/cloud/sqladmin_v1/services/sql_connect_service/transports/grpc_asyncio.py +464 -0
  40. google/cloud/sqladmin_v1/services/sql_databases_service/__init__.py +22 -0
  41. google/cloud/sqladmin_v1/services/sql_databases_service/async_client.py +872 -0
  42. google/cloud/sqladmin_v1/services/sql_databases_service/client.py +1152 -0
  43. google/cloud/sqladmin_v1/services/sql_databases_service/transports/__init__.py +32 -0
  44. google/cloud/sqladmin_v1/services/sql_databases_service/transports/base.py +251 -0
  45. google/cloud/sqladmin_v1/services/sql_databases_service/transports/grpc.py +515 -0
  46. google/cloud/sqladmin_v1/services/sql_databases_service/transports/grpc_asyncio.py +568 -0
  47. google/cloud/sqladmin_v1/services/sql_events_service/__init__.py +22 -0
  48. google/cloud/sqladmin_v1/services/sql_events_service/async_client.py +311 -0
  49. google/cloud/sqladmin_v1/services/sql_events_service/client.py +593 -0
  50. google/cloud/sqladmin_v1/services/sql_events_service/transports/__init__.py +32 -0
  51. google/cloud/sqladmin_v1/services/sql_events_service/transports/base.py +159 -0
  52. google/cloud/sqladmin_v1/services/sql_events_service/transports/grpc.py +337 -0
  53. google/cloud/sqladmin_v1/services/sql_events_service/transports/grpc_asyncio.py +354 -0
  54. google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/__init__.py +22 -0
  55. google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/async_client.py +327 -0
  56. google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/client.py +605 -0
  57. google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/transports/__init__.py +32 -0
  58. google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/transports/base.py +159 -0
  59. google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/transports/grpc.py +337 -0
  60. google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/transports/grpc_asyncio.py +356 -0
  61. google/cloud/sqladmin_v1/services/sql_flags_service/__init__.py +22 -0
  62. google/cloud/sqladmin_v1/services/sql_flags_service/async_client.py +386 -0
  63. google/cloud/sqladmin_v1/services/sql_flags_service/client.py +667 -0
  64. google/cloud/sqladmin_v1/services/sql_flags_service/transports/__init__.py +32 -0
  65. google/cloud/sqladmin_v1/services/sql_flags_service/transports/base.py +181 -0
  66. google/cloud/sqladmin_v1/services/sql_flags_service/transports/grpc.py +367 -0
  67. google/cloud/sqladmin_v1/services/sql_flags_service/transports/grpc_asyncio.py +391 -0
  68. google/cloud/sqladmin_v1/services/sql_iam_policies_service/__init__.py +22 -0
  69. google/cloud/sqladmin_v1/services/sql_iam_policies_service/async_client.py +315 -0
  70. google/cloud/sqladmin_v1/services/sql_iam_policies_service/client.py +593 -0
  71. google/cloud/sqladmin_v1/services/sql_iam_policies_service/transports/__init__.py +32 -0
  72. google/cloud/sqladmin_v1/services/sql_iam_policies_service/transports/base.py +159 -0
  73. google/cloud/sqladmin_v1/services/sql_iam_policies_service/transports/grpc.py +336 -0
  74. google/cloud/sqladmin_v1/services/sql_iam_policies_service/transports/grpc_asyncio.py +353 -0
  75. google/cloud/sqladmin_v1/services/sql_instance_names_service/__init__.py +22 -0
  76. google/cloud/sqladmin_v1/services/sql_instance_names_service/async_client.py +321 -0
  77. google/cloud/sqladmin_v1/services/sql_instance_names_service/client.py +595 -0
  78. google/cloud/sqladmin_v1/services/sql_instance_names_service/transports/__init__.py +32 -0
  79. google/cloud/sqladmin_v1/services/sql_instance_names_service/transports/base.py +159 -0
  80. google/cloud/sqladmin_v1/services/sql_instance_names_service/transports/grpc.py +336 -0
  81. google/cloud/sqladmin_v1/services/sql_instance_names_service/transports/grpc_asyncio.py +353 -0
  82. google/cloud/sqladmin_v1/services/sql_instances_service/__init__.py +22 -0
  83. google/cloud/sqladmin_v1/services/sql_instances_service/async_client.py +4519 -0
  84. google/cloud/sqladmin_v1/services/sql_instances_service/client.py +4833 -0
  85. google/cloud/sqladmin_v1/services/sql_instances_service/pagers.py +197 -0
  86. google/cloud/sqladmin_v1/services/sql_instances_service/transports/__init__.py +32 -0
  87. google/cloud/sqladmin_v1/services/sql_instances_service/transports/base.py +801 -0
  88. google/cloud/sqladmin_v1/services/sql_instances_service/transports/grpc.py +1661 -0
  89. google/cloud/sqladmin_v1/services/sql_instances_service/transports/grpc_asyncio.py +1904 -0
  90. google/cloud/sqladmin_v1/services/sql_operations_service/__init__.py +22 -0
  91. google/cloud/sqladmin_v1/services/sql_operations_service/async_client.py +591 -0
  92. google/cloud/sqladmin_v1/services/sql_operations_service/client.py +871 -0
  93. google/cloud/sqladmin_v1/services/sql_operations_service/pagers.py +197 -0
  94. google/cloud/sqladmin_v1/services/sql_operations_service/transports/__init__.py +32 -0
  95. google/cloud/sqladmin_v1/services/sql_operations_service/transports/base.py +210 -0
  96. google/cloud/sqladmin_v1/services/sql_operations_service/transports/grpc.py +426 -0
  97. google/cloud/sqladmin_v1/services/sql_operations_service/transports/grpc_asyncio.py +462 -0
  98. google/cloud/sqladmin_v1/services/sql_regions_service/__init__.py +22 -0
  99. google/cloud/sqladmin_v1/services/sql_regions_service/async_client.py +314 -0
  100. google/cloud/sqladmin_v1/services/sql_regions_service/client.py +596 -0
  101. google/cloud/sqladmin_v1/services/sql_regions_service/transports/__init__.py +32 -0
  102. google/cloud/sqladmin_v1/services/sql_regions_service/transports/base.py +159 -0
  103. google/cloud/sqladmin_v1/services/sql_regions_service/transports/grpc.py +338 -0
  104. google/cloud/sqladmin_v1/services/sql_regions_service/transports/grpc_asyncio.py +355 -0
  105. google/cloud/sqladmin_v1/services/sql_ssl_certs_service/__init__.py +22 -0
  106. google/cloud/sqladmin_v1/services/sql_ssl_certs_service/async_client.py +680 -0
  107. google/cloud/sqladmin_v1/services/sql_ssl_certs_service/client.py +960 -0
  108. google/cloud/sqladmin_v1/services/sql_ssl_certs_service/transports/__init__.py +32 -0
  109. google/cloud/sqladmin_v1/services/sql_ssl_certs_service/transports/base.py +226 -0
  110. google/cloud/sqladmin_v1/services/sql_ssl_certs_service/transports/grpc.py +461 -0
  111. google/cloud/sqladmin_v1/services/sql_ssl_certs_service/transports/grpc_asyncio.py +501 -0
  112. google/cloud/sqladmin_v1/services/sql_tiers_service/__init__.py +22 -0
  113. google/cloud/sqladmin_v1/services/sql_tiers_service/async_client.py +395 -0
  114. google/cloud/sqladmin_v1/services/sql_tiers_service/client.py +676 -0
  115. google/cloud/sqladmin_v1/services/sql_tiers_service/transports/__init__.py +32 -0
  116. google/cloud/sqladmin_v1/services/sql_tiers_service/transports/base.py +181 -0
  117. google/cloud/sqladmin_v1/services/sql_tiers_service/transports/grpc.py +369 -0
  118. google/cloud/sqladmin_v1/services/sql_tiers_service/transports/grpc_asyncio.py +393 -0
  119. google/cloud/sqladmin_v1/services/sql_users_service/__init__.py +22 -0
  120. google/cloud/sqladmin_v1/services/sql_users_service/async_client.py +754 -0
  121. google/cloud/sqladmin_v1/services/sql_users_service/client.py +1035 -0
  122. google/cloud/sqladmin_v1/services/sql_users_service/transports/__init__.py +32 -0
  123. google/cloud/sqladmin_v1/services/sql_users_service/transports/base.py +237 -0
  124. google/cloud/sqladmin_v1/services/sql_users_service/transports/grpc.py +477 -0
  125. google/cloud/sqladmin_v1/services/sql_users_service/transports/grpc_asyncio.py +526 -0
  126. google/cloud/sqladmin_v1/types/__init__.py +472 -0
  127. google/cloud/sqladmin_v1/types/cloud_sql_available_database_versions.py +24 -0
  128. google/cloud/sqladmin_v1/types/cloud_sql_backup_runs.py +438 -0
  129. google/cloud/sqladmin_v1/types/cloud_sql_backups.py +467 -0
  130. google/cloud/sqladmin_v1/types/cloud_sql_connect.py +385 -0
  131. google/cloud/sqladmin_v1/types/cloud_sql_databases.py +202 -0
  132. google/cloud/sqladmin_v1/types/cloud_sql_events.py +24 -0
  133. google/cloud/sqladmin_v1/types/cloud_sql_feature_eligibility.py +24 -0
  134. google/cloud/sqladmin_v1/types/cloud_sql_flags.py +272 -0
  135. google/cloud/sqladmin_v1/types/cloud_sql_iam_policies.py +24 -0
  136. google/cloud/sqladmin_v1/types/cloud_sql_instance_names.py +24 -0
  137. google/cloud/sqladmin_v1/types/cloud_sql_instances.py +4514 -0
  138. google/cloud/sqladmin_v1/types/cloud_sql_operations.py +164 -0
  139. google/cloud/sqladmin_v1/types/cloud_sql_regions.py +24 -0
  140. google/cloud/sqladmin_v1/types/cloud_sql_resources.py +4678 -0
  141. google/cloud/sqladmin_v1/types/cloud_sql_ssl_certs.py +220 -0
  142. google/cloud/sqladmin_v1/types/cloud_sql_tiers.py +108 -0
  143. google/cloud/sqladmin_v1/types/cloud_sql_users.py +571 -0
  144. google/cloud/sqladmin_v1beta4/__init__.py +583 -0
  145. google/cloud/sqladmin_v1beta4/_compat.py +262 -0
  146. google/cloud/sqladmin_v1beta4/gapic_metadata.json +1371 -0
  147. google/cloud/sqladmin_v1beta4/gapic_version.py +16 -0
  148. google/cloud/sqladmin_v1beta4/py.typed +2 -0
  149. google/cloud/sqladmin_v1beta4/services/__init__.py +15 -0
  150. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/__init__.py +22 -0
  151. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/async_client.py +689 -0
  152. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/client.py +971 -0
  153. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/pagers.py +197 -0
  154. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/__init__.py +36 -0
  155. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/base.py +223 -0
  156. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/grpc.py +449 -0
  157. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/grpc_asyncio.py +490 -0
  158. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/rest.py +1038 -0
  159. google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/rest_base.py +150 -0
  160. google/cloud/sqladmin_v1beta4/services/sql_backups_service/__init__.py +22 -0
  161. google/cloud/sqladmin_v1beta4/services/sql_backups_service/async_client.py +941 -0
  162. google/cloud/sqladmin_v1beta4/services/sql_backups_service/client.py +1241 -0
  163. google/cloud/sqladmin_v1beta4/services/sql_backups_service/pagers.py +197 -0
  164. google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/__init__.py +36 -0
  165. google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/base.py +234 -0
  166. google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/grpc.py +470 -0
  167. google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/grpc_asyncio.py +521 -0
  168. google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/rest.py +1238 -0
  169. google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/rest_base.py +175 -0
  170. google/cloud/sqladmin_v1beta4/services/sql_connect_service/__init__.py +22 -0
  171. google/cloud/sqladmin_v1beta4/services/sql_connect_service/async_client.py +591 -0
  172. google/cloud/sqladmin_v1beta4/services/sql_connect_service/client.py +869 -0
  173. google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/__init__.py +36 -0
  174. google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/base.py +215 -0
  175. google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/grpc.py +430 -0
  176. google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/grpc_asyncio.py +464 -0
  177. google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/rest.py +852 -0
  178. google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/rest_base.py +138 -0
  179. google/cloud/sqladmin_v1beta4/services/sql_data_service/__init__.py +22 -0
  180. google/cloud/sqladmin_v1beta4/services/sql_data_service/async_client.py +444 -0
  181. google/cloud/sqladmin_v1beta4/services/sql_data_service/client.py +739 -0
  182. google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/__init__.py +36 -0
  183. google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/base.py +181 -0
  184. google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/grpc.py +407 -0
  185. google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/grpc_asyncio.py +431 -0
  186. google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/rest.py +213 -0
  187. google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/rest_base.py +97 -0
  188. google/cloud/sqladmin_v1beta4/services/sql_databases_service/__init__.py +22 -0
  189. google/cloud/sqladmin_v1beta4/services/sql_databases_service/async_client.py +860 -0
  190. google/cloud/sqladmin_v1beta4/services/sql_databases_service/client.py +1142 -0
  191. google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/__init__.py +36 -0
  192. google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/base.py +251 -0
  193. google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/grpc.py +502 -0
  194. google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/grpc_asyncio.py +561 -0
  195. google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/rest.py +1468 -0
  196. google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/rest_base.py +180 -0
  197. google/cloud/sqladmin_v1beta4/services/sql_flags_service/__init__.py +22 -0
  198. google/cloud/sqladmin_v1beta4/services/sql_flags_service/async_client.py +386 -0
  199. google/cloud/sqladmin_v1beta4/services/sql_flags_service/client.py +669 -0
  200. google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/__init__.py +36 -0
  201. google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/base.py +181 -0
  202. google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/grpc.py +365 -0
  203. google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/grpc_asyncio.py +389 -0
  204. google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/rest.py +392 -0
  205. google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/rest_base.py +107 -0
  206. google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/__init__.py +22 -0
  207. google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/async_client.py +315 -0
  208. google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/client.py +595 -0
  209. google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/__init__.py +39 -0
  210. google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/base.py +159 -0
  211. google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/grpc.py +336 -0
  212. google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/grpc_asyncio.py +353 -0
  213. google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/rest.py +184 -0
  214. google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/rest_base.py +91 -0
  215. google/cloud/sqladmin_v1beta4/services/sql_instances_service/__init__.py +22 -0
  216. google/cloud/sqladmin_v1beta4/services/sql_instances_service/async_client.py +4399 -0
  217. google/cloud/sqladmin_v1beta4/services/sql_instances_service/client.py +4715 -0
  218. google/cloud/sqladmin_v1beta4/services/sql_instances_service/pagers.py +197 -0
  219. google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/__init__.py +36 -0
  220. google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/base.py +801 -0
  221. google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/grpc.py +1627 -0
  222. google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/grpc_asyncio.py +1895 -0
  223. google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/rest.py +9625 -0
  224. google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/rest_base.py +744 -0
  225. google/cloud/sqladmin_v1beta4/services/sql_operations_service/__init__.py +22 -0
  226. google/cloud/sqladmin_v1beta4/services/sql_operations_service/async_client.py +585 -0
  227. google/cloud/sqladmin_v1beta4/services/sql_operations_service/client.py +867 -0
  228. google/cloud/sqladmin_v1beta4/services/sql_operations_service/pagers.py +197 -0
  229. google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/__init__.py +36 -0
  230. google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/base.py +210 -0
  231. google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/grpc.py +422 -0
  232. google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/grpc_asyncio.py +458 -0
  233. google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/rest.py +744 -0
  234. google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/rest_base.py +136 -0
  235. google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/__init__.py +22 -0
  236. google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/async_client.py +672 -0
  237. google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/client.py +954 -0
  238. google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/__init__.py +36 -0
  239. google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/base.py +226 -0
  240. google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/grpc.py +453 -0
  241. google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/grpc_asyncio.py +497 -0
  242. google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/rest.py +1036 -0
  243. google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/rest_base.py +150 -0
  244. google/cloud/sqladmin_v1beta4/services/sql_tiers_service/__init__.py +22 -0
  245. google/cloud/sqladmin_v1beta4/services/sql_tiers_service/async_client.py +393 -0
  246. google/cloud/sqladmin_v1beta4/services/sql_tiers_service/client.py +676 -0
  247. google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/__init__.py +36 -0
  248. google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/base.py +181 -0
  249. google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/grpc.py +368 -0
  250. google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/grpc_asyncio.py +392 -0
  251. google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/rest.py +396 -0
  252. google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/rest_base.py +107 -0
  253. google/cloud/sqladmin_v1beta4/services/sql_users_service/__init__.py +22 -0
  254. google/cloud/sqladmin_v1beta4/services/sql_users_service/async_client.py +754 -0
  255. google/cloud/sqladmin_v1beta4/services/sql_users_service/client.py +1037 -0
  256. google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/__init__.py +36 -0
  257. google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/base.py +237 -0
  258. google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/grpc.py +475 -0
  259. google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/grpc_asyncio.py +524 -0
  260. google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/rest.py +1249 -0
  261. google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/rest_base.py +165 -0
  262. google/cloud/sqladmin_v1beta4/types/__init__.py +480 -0
  263. google/cloud/sqladmin_v1beta4/types/cloud_sql.py +2666 -0
  264. google/cloud/sqladmin_v1beta4/types/cloud_sql_connect.py +386 -0
  265. google/cloud/sqladmin_v1beta4/types/cloud_sql_data.py +339 -0
  266. google/cloud/sqladmin_v1beta4/types/cloud_sql_iam_policies.py +24 -0
  267. google/cloud/sqladmin_v1beta4/types/cloud_sql_resources.py +8111 -0
  268. google/cloud/sqladmin_v1beta4/types/cloud_sql_tiers.py +108 -0
  269. google/cloud/sqladmin_v1beta4/types/cloud_sql_users.py +573 -0
  270. google_cloud_sql-0.1.1.dist-info/METADATA +239 -0
  271. google_cloud_sql-0.1.1.dist-info/RECORD +274 -0
  272. google_cloud_sql-0.1.1.dist-info/WHEEL +5 -0
  273. google_cloud_sql-0.1.1.dist-info/licenses/LICENSE +202 -0
  274. google_cloud_sql-0.1.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1142 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2026 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ import json
17
+ import logging as std_logging
18
+ import os
19
+ import re
20
+ import warnings
21
+ from collections import OrderedDict
22
+ from http import HTTPStatus
23
+ from typing import (
24
+ Callable,
25
+ Dict,
26
+ Mapping,
27
+ MutableMapping,
28
+ MutableSequence,
29
+ Optional,
30
+ Sequence,
31
+ Tuple,
32
+ Type,
33
+ Union,
34
+ cast,
35
+ )
36
+
37
+ import google.protobuf
38
+ from google.api_core import client_options as client_options_lib
39
+ from google.api_core import exceptions as core_exceptions
40
+ from google.api_core import gapic_v1
41
+ from google.api_core import retry as retries
42
+ from google.auth import credentials as ga_credentials # type: ignore
43
+ from google.auth.exceptions import MutualTLSChannelError # type: ignore
44
+ from google.auth.transport import mtls # type: ignore
45
+ from google.auth.transport.grpc import SslCredentials # type: ignore
46
+ from google.oauth2 import service_account # type: ignore
47
+
48
+ from google.cloud.sqladmin_v1beta4 import gapic_version as package_version
49
+ from google.cloud.sqladmin_v1beta4._compat import (
50
+ get_api_endpoint,
51
+ get_default_mtls_endpoint,
52
+ get_universe_domain,
53
+ read_environment_variables,
54
+ should_use_client_cert,
55
+ )
56
+
57
+ try:
58
+ OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
59
+ except AttributeError: # pragma: NO COVER
60
+ OptionalRetry = Union[retries.Retry, object, None] # type: ignore
61
+
62
+ try:
63
+ from google.api_core import client_logging # type: ignore
64
+
65
+ CLIENT_LOGGING_SUPPORTED = True # pragma: NO COVER
66
+ except ImportError: # pragma: NO COVER
67
+ CLIENT_LOGGING_SUPPORTED = False
68
+
69
+ _LOGGER = std_logging.getLogger(__name__)
70
+
71
+ import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
72
+ from google.cloud.location import locations_pb2 # type: ignore
73
+ from google.longrunning import operations_pb2 # type: ignore
74
+
75
+ from google.cloud.sqladmin_v1beta4.types import cloud_sql, cloud_sql_resources
76
+
77
+ from .transports.base import DEFAULT_CLIENT_INFO, SqlDatabasesServiceTransport
78
+ from .transports.grpc import SqlDatabasesServiceGrpcTransport
79
+ from .transports.grpc_asyncio import SqlDatabasesServiceGrpcAsyncIOTransport
80
+ from .transports.rest import SqlDatabasesServiceRestTransport
81
+
82
+
83
+ class SqlDatabasesServiceClientMeta(type):
84
+ """Metaclass for the SqlDatabasesService client.
85
+
86
+ This provides class-level methods for building and retrieving
87
+ support objects (e.g. transport) without polluting the client instance
88
+ objects.
89
+ """
90
+
91
+ _transport_registry = OrderedDict() # type: Dict[str, Type[SqlDatabasesServiceTransport]]
92
+ _transport_registry["grpc"] = SqlDatabasesServiceGrpcTransport
93
+ _transport_registry["grpc_asyncio"] = SqlDatabasesServiceGrpcAsyncIOTransport
94
+ _transport_registry["rest"] = SqlDatabasesServiceRestTransport
95
+
96
+ def get_transport_class(
97
+ cls,
98
+ label: Optional[str] = None,
99
+ ) -> Type[SqlDatabasesServiceTransport]:
100
+ """Returns an appropriate transport class.
101
+
102
+ Args:
103
+ label: The name of the desired transport. If none is
104
+ provided, then the first transport in the registry is used.
105
+
106
+ Returns:
107
+ The transport class to use.
108
+ """
109
+ # If a specific transport is requested, return that one.
110
+ if label:
111
+ return cls._transport_registry[label]
112
+
113
+ # No transport is requested; return the default (that is, the first one
114
+ # in the dictionary).
115
+ return next(iter(cls._transport_registry.values()))
116
+
117
+
118
+ class SqlDatabasesServiceClient(metaclass=SqlDatabasesServiceClientMeta):
119
+ """"""
120
+
121
+ # Note: DEFAULT_ENDPOINT is deprecated. Use _DEFAULT_ENDPOINT_TEMPLATE instead.
122
+ DEFAULT_ENDPOINT = "sqladmin.googleapis.com"
123
+ DEFAULT_MTLS_ENDPOINT = get_default_mtls_endpoint(DEFAULT_ENDPOINT)
124
+
125
+ _DEFAULT_ENDPOINT_TEMPLATE = "sqladmin.{UNIVERSE_DOMAIN}"
126
+ _DEFAULT_UNIVERSE = "googleapis.com"
127
+
128
+ @classmethod
129
+ def from_service_account_info(cls, info: dict, *args, **kwargs):
130
+ """Creates an instance of this client using the provided credentials
131
+ info.
132
+
133
+ Args:
134
+ info (dict): The service account private key info.
135
+ args: Additional arguments to pass to the constructor.
136
+ kwargs: Additional arguments to pass to the constructor.
137
+
138
+ Returns:
139
+ SqlDatabasesServiceClient: The constructed client.
140
+ """
141
+ credentials = service_account.Credentials.from_service_account_info(info)
142
+ kwargs["credentials"] = credentials
143
+ return cls(*args, **kwargs)
144
+
145
+ @classmethod
146
+ def from_service_account_file(cls, filename: str, *args, **kwargs):
147
+ """Creates an instance of this client using the provided credentials
148
+ file.
149
+
150
+ Args:
151
+ filename (str): The path to the service account private key json
152
+ file.
153
+ args: Additional arguments to pass to the constructor.
154
+ kwargs: Additional arguments to pass to the constructor.
155
+
156
+ Returns:
157
+ SqlDatabasesServiceClient: The constructed client.
158
+ """
159
+ credentials = service_account.Credentials.from_service_account_file(filename)
160
+ kwargs["credentials"] = credentials
161
+ return cls(*args, **kwargs)
162
+
163
+ from_service_account_json = from_service_account_file
164
+
165
+ @property
166
+ def transport(self) -> SqlDatabasesServiceTransport:
167
+ """Returns the transport used by the client instance.
168
+
169
+ Returns:
170
+ SqlDatabasesServiceTransport: The transport used by the client
171
+ instance.
172
+ """
173
+ return self._transport
174
+
175
+ @staticmethod
176
+ def common_billing_account_path(
177
+ billing_account: str,
178
+ ) -> str:
179
+ """Returns a fully-qualified billing_account string."""
180
+ return "billingAccounts/{billing_account}".format(
181
+ billing_account=billing_account,
182
+ )
183
+
184
+ @staticmethod
185
+ def parse_common_billing_account_path(path: str) -> Dict[str, str]:
186
+ """Parse a billing_account path into its component segments."""
187
+ m = re.match(r"^billingAccounts/(?P<billing_account>.+?)$", path)
188
+ return m.groupdict() if m else {}
189
+
190
+ @staticmethod
191
+ def common_folder_path(
192
+ folder: str,
193
+ ) -> str:
194
+ """Returns a fully-qualified folder string."""
195
+ return "folders/{folder}".format(
196
+ folder=folder,
197
+ )
198
+
199
+ @staticmethod
200
+ def parse_common_folder_path(path: str) -> Dict[str, str]:
201
+ """Parse a folder path into its component segments."""
202
+ m = re.match(r"^folders/(?P<folder>.+?)$", path)
203
+ return m.groupdict() if m else {}
204
+
205
+ @staticmethod
206
+ def common_organization_path(
207
+ organization: str,
208
+ ) -> str:
209
+ """Returns a fully-qualified organization string."""
210
+ return "organizations/{organization}".format(
211
+ organization=organization,
212
+ )
213
+
214
+ @staticmethod
215
+ def parse_common_organization_path(path: str) -> Dict[str, str]:
216
+ """Parse a organization path into its component segments."""
217
+ m = re.match(r"^organizations/(?P<organization>.+?)$", path)
218
+ return m.groupdict() if m else {}
219
+
220
+ @staticmethod
221
+ def common_project_path(
222
+ project: str,
223
+ ) -> str:
224
+ """Returns a fully-qualified project string."""
225
+ return "projects/{project}".format(
226
+ project=project,
227
+ )
228
+
229
+ @staticmethod
230
+ def parse_common_project_path(path: str) -> Dict[str, str]:
231
+ """Parse a project path into its component segments."""
232
+ m = re.match(r"^projects/(?P<project>.+?)$", path)
233
+ return m.groupdict() if m else {}
234
+
235
+ @staticmethod
236
+ def common_location_path(
237
+ project: str,
238
+ location: str,
239
+ ) -> str:
240
+ """Returns a fully-qualified location string."""
241
+ return "projects/{project}/locations/{location}".format(
242
+ project=project,
243
+ location=location,
244
+ )
245
+
246
+ @staticmethod
247
+ def parse_common_location_path(path: str) -> Dict[str, str]:
248
+ """Parse a location path into its component segments."""
249
+ m = re.match(r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)$", path)
250
+ return m.groupdict() if m else {}
251
+
252
+ @classmethod
253
+ def get_mtls_endpoint_and_cert_source(
254
+ cls, client_options: Optional[client_options_lib.ClientOptions] = None
255
+ ):
256
+ """Deprecated. Return the API endpoint and client cert source for mutual TLS.
257
+
258
+ The client cert source is determined in the following order:
259
+ (1) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is not "true", the
260
+ client cert source is None.
261
+ (2) if `client_options.client_cert_source` is provided, use the provided one; if the
262
+ default client cert source exists, use the default one; otherwise the client cert
263
+ source is None.
264
+
265
+ The API endpoint is determined in the following order:
266
+ (1) if `client_options.api_endpoint` if provided, use the provided one.
267
+ (2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the
268
+ default mTLS endpoint; if the environment variable is "never", use the default API
269
+ endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise
270
+ use the default API endpoint.
271
+
272
+ More details can be found at https://google.aip.dev/auth/4114.
273
+
274
+ Args:
275
+ client_options (google.api_core.client_options.ClientOptions): Custom options for the
276
+ client. Only the `api_endpoint` and `client_cert_source` properties may be used
277
+ in this method.
278
+
279
+ Returns:
280
+ Tuple[str, Callable[[], Tuple[bytes, bytes]]]: returns the API endpoint and the
281
+ client cert source to use.
282
+
283
+ Raises:
284
+ google.auth.exceptions.MutualTLSChannelError: If any errors happen.
285
+ """
286
+
287
+ warnings.warn(
288
+ "get_mtls_endpoint_and_cert_source is deprecated. Use the api_endpoint property instead.",
289
+ DeprecationWarning,
290
+ )
291
+ if client_options is None:
292
+ client_options = client_options_lib.ClientOptions()
293
+ use_client_cert = should_use_client_cert()
294
+ use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto")
295
+ if use_mtls_endpoint not in ("auto", "never", "always"):
296
+ raise MutualTLSChannelError(
297
+ "Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`"
298
+ )
299
+
300
+ # Figure out the client cert source to use.
301
+ client_cert_source = None
302
+ if use_client_cert:
303
+ if client_options.client_cert_source:
304
+ client_cert_source = client_options.client_cert_source
305
+ elif mtls.has_default_client_cert_source():
306
+ client_cert_source = mtls.default_client_cert_source()
307
+
308
+ # Figure out which api endpoint to use.
309
+ if client_options.api_endpoint is not None:
310
+ api_endpoint = client_options.api_endpoint
311
+ elif use_mtls_endpoint == "always" or (
312
+ use_mtls_endpoint == "auto" and client_cert_source
313
+ ):
314
+ api_endpoint = cls.DEFAULT_MTLS_ENDPOINT # type: ignore
315
+ else:
316
+ api_endpoint = cls.DEFAULT_ENDPOINT
317
+
318
+ return api_endpoint, client_cert_source
319
+
320
+ @staticmethod
321
+ def _get_client_cert_source(provided_cert_source, use_cert_flag):
322
+ """Return the client cert source to be used by the client.
323
+
324
+ Args:
325
+ provided_cert_source (bytes): The client certificate source provided.
326
+ use_cert_flag (bool): A flag indicating whether to use the client certificate.
327
+
328
+ Returns:
329
+ bytes or None: The client cert source to be used by the client.
330
+ """
331
+ client_cert_source = None
332
+ if use_cert_flag:
333
+ if provided_cert_source:
334
+ client_cert_source = provided_cert_source
335
+ elif mtls.has_default_client_cert_source():
336
+ client_cert_source = mtls.default_client_cert_source()
337
+ return client_cert_source
338
+
339
+ def _validate_universe_domain(self):
340
+ """Validates client's and credentials' universe domains are consistent.
341
+
342
+ Returns:
343
+ bool: True iff the configured universe domain is valid.
344
+
345
+ Raises:
346
+ ValueError: If the configured universe domain is not valid.
347
+ """
348
+
349
+ # NOTE (b/349488459): universe validation is disabled until further notice.
350
+ return True
351
+
352
+ def _add_cred_info_for_auth_errors(
353
+ self, error: core_exceptions.GoogleAPICallError
354
+ ) -> None:
355
+ """Adds credential info string to error details for 401/403/404 errors.
356
+
357
+ Args:
358
+ error (google.api_core.exceptions.GoogleAPICallError): The error to add the cred info.
359
+ """
360
+ if error.code not in [
361
+ HTTPStatus.UNAUTHORIZED,
362
+ HTTPStatus.FORBIDDEN,
363
+ HTTPStatus.NOT_FOUND,
364
+ ]:
365
+ return
366
+
367
+ cred = self._transport._credentials
368
+
369
+ # get_cred_info is only available in google-auth>=2.35.0
370
+ if not hasattr(cred, "get_cred_info"):
371
+ return
372
+
373
+ # ignore the type check since pypy test fails when get_cred_info
374
+ # is not available
375
+ cred_info = cred.get_cred_info() # type: ignore
376
+ if cred_info and hasattr(error._details, "append"):
377
+ error._details.append(json.dumps(cred_info))
378
+
379
+ @property
380
+ def api_endpoint(self) -> str:
381
+ """Return the API endpoint used by the client instance.
382
+
383
+ Returns:
384
+ str: The API endpoint used by the client instance.
385
+ """
386
+ return self._api_endpoint
387
+
388
+ @property
389
+ def universe_domain(self) -> str:
390
+ """Return the universe domain used by the client instance.
391
+
392
+ Returns:
393
+ str: The universe domain used by the client instance.
394
+ """
395
+ return self._universe_domain
396
+
397
+ def __init__(
398
+ self,
399
+ *,
400
+ credentials: Optional[ga_credentials.Credentials] = None,
401
+ transport: Optional[
402
+ Union[
403
+ str,
404
+ SqlDatabasesServiceTransport,
405
+ Callable[..., SqlDatabasesServiceTransport],
406
+ ]
407
+ ] = None,
408
+ client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None,
409
+ client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
410
+ ) -> None:
411
+ """Instantiates the sql databases service client.
412
+
413
+ Args:
414
+ credentials (Optional[google.auth.credentials.Credentials]): The
415
+ authorization credentials to attach to requests. These
416
+ credentials identify the application to the service; if none
417
+ are specified, the client will attempt to ascertain the
418
+ credentials from the environment.
419
+ transport (Optional[Union[str,SqlDatabasesServiceTransport,Callable[..., SqlDatabasesServiceTransport]]]):
420
+ The transport to use, or a Callable that constructs and returns a new transport.
421
+ If a Callable is given, it will be called with the same set of initialization
422
+ arguments as used in the SqlDatabasesServiceTransport constructor.
423
+ If set to None, a transport is chosen automatically.
424
+ client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]):
425
+ Custom options for the client.
426
+
427
+ 1. The ``api_endpoint`` property can be used to override the
428
+ default endpoint provided by the client when ``transport`` is
429
+ not explicitly provided. Only if this property is not set and
430
+ ``transport`` was not explicitly provided, the endpoint is
431
+ determined by the GOOGLE_API_USE_MTLS_ENDPOINT environment
432
+ variable, which have one of the following values:
433
+ "always" (always use the default mTLS endpoint), "never" (always
434
+ use the default regular endpoint) and "auto" (auto-switch to the
435
+ default mTLS endpoint if client certificate is present; this is
436
+ the default value).
437
+
438
+ 2. If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable
439
+ is "true", then the ``client_cert_source`` property can be used
440
+ to provide a client certificate for mTLS transport. If
441
+ not provided, the default SSL client certificate will be used if
442
+ present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not
443
+ set, no client certificate will be used.
444
+
445
+ 3. The ``universe_domain`` property can be used to override the
446
+ default "googleapis.com" universe. Note that the ``api_endpoint``
447
+ property still takes precedence; and ``universe_domain`` is
448
+ currently not supported for mTLS.
449
+
450
+ client_info (google.api_core.gapic_v1.client_info.ClientInfo):
451
+ The client info used to send a user-agent string along with
452
+ API requests. If ``None``, then default info will be used.
453
+ Generally, you only need to set this if you're developing
454
+ your own client library.
455
+
456
+ Raises:
457
+ google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport
458
+ creation failed for any reason.
459
+ """
460
+ self._client_options = client_options
461
+ if isinstance(self._client_options, dict):
462
+ self._client_options = client_options_lib.from_dict(self._client_options)
463
+ if self._client_options is None:
464
+ self._client_options = client_options_lib.ClientOptions()
465
+ self._client_options = cast(
466
+ client_options_lib.ClientOptions, self._client_options
467
+ )
468
+
469
+ universe_domain_opt = getattr(self._client_options, "universe_domain", None)
470
+
471
+ self._use_client_cert, self._use_mtls_endpoint, self._universe_domain_env = (
472
+ read_environment_variables()
473
+ )
474
+ self._client_cert_source = SqlDatabasesServiceClient._get_client_cert_source(
475
+ self._client_options.client_cert_source, self._use_client_cert
476
+ )
477
+ self._universe_domain = get_universe_domain(
478
+ universe_domain_opt,
479
+ self._universe_domain_env,
480
+ default_universe=SqlDatabasesServiceClient._DEFAULT_UNIVERSE,
481
+ )
482
+ self._api_endpoint: str = "" # updated below, depending on `transport`
483
+
484
+ # Initialize the universe domain validation.
485
+ self._is_universe_domain_valid = False
486
+
487
+ if CLIENT_LOGGING_SUPPORTED: # pragma: NO COVER
488
+ # Setup logging.
489
+ client_logging.initialize_logging()
490
+
491
+ api_key_value = getattr(self._client_options, "api_key", None)
492
+ if api_key_value and credentials:
493
+ raise ValueError(
494
+ "client_options.api_key and credentials are mutually exclusive"
495
+ )
496
+
497
+ # Save or instantiate the transport.
498
+ # Ordinarily, we provide the transport, but allowing a custom transport
499
+ # instance provides an extensibility point for unusual situations.
500
+ transport_provided = isinstance(transport, SqlDatabasesServiceTransport)
501
+ if transport_provided:
502
+ # transport is a SqlDatabasesServiceTransport instance.
503
+ if credentials or self._client_options.credentials_file or api_key_value:
504
+ raise ValueError(
505
+ "When providing a transport instance, "
506
+ "provide its credentials directly."
507
+ )
508
+ if self._client_options.scopes:
509
+ raise ValueError(
510
+ "When providing a transport instance, provide its scopes directly."
511
+ )
512
+ self._transport = cast(SqlDatabasesServiceTransport, transport)
513
+ self._api_endpoint = self._transport.host
514
+
515
+ self._api_endpoint = self._api_endpoint or get_api_endpoint(
516
+ api_override=self._client_options.api_endpoint,
517
+ universe_domain=self._universe_domain,
518
+ default_universe=SqlDatabasesServiceClient._DEFAULT_UNIVERSE,
519
+ default_mtls_endpoint=SqlDatabasesServiceClient.DEFAULT_MTLS_ENDPOINT,
520
+ default_endpoint_template=SqlDatabasesServiceClient._DEFAULT_ENDPOINT_TEMPLATE,
521
+ use_mtls=self._use_mtls_endpoint == "always"
522
+ or (self._use_mtls_endpoint == "auto" and self._client_cert_source),
523
+ )
524
+
525
+ if not transport_provided:
526
+ import google.auth._default # type: ignore
527
+
528
+ if api_key_value and hasattr(
529
+ google.auth._default, "get_api_key_credentials"
530
+ ):
531
+ credentials = google.auth._default.get_api_key_credentials(
532
+ api_key_value
533
+ )
534
+
535
+ transport_init: Union[
536
+ Type[SqlDatabasesServiceTransport],
537
+ Callable[..., SqlDatabasesServiceTransport],
538
+ ] = (
539
+ SqlDatabasesServiceClient.get_transport_class(transport)
540
+ if isinstance(transport, str) or transport is None
541
+ else cast(Callable[..., SqlDatabasesServiceTransport], transport)
542
+ )
543
+ # initialize with the provided callable or the passed in class
544
+ self._transport = transport_init(
545
+ credentials=credentials,
546
+ credentials_file=self._client_options.credentials_file,
547
+ host=self._api_endpoint,
548
+ scopes=self._client_options.scopes,
549
+ client_cert_source_for_mtls=self._client_cert_source,
550
+ quota_project_id=self._client_options.quota_project_id,
551
+ client_info=client_info,
552
+ always_use_jwt_access=True,
553
+ api_audience=self._client_options.api_audience,
554
+ )
555
+
556
+ if "async" not in str(self._transport):
557
+ if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(
558
+ std_logging.DEBUG
559
+ ): # pragma: NO COVER
560
+ _LOGGER.debug(
561
+ "Created client `google.cloud.sql_v1beta4.SqlDatabasesServiceClient`.",
562
+ extra={
563
+ "serviceName": "google.cloud.sql.v1beta4.SqlDatabasesService",
564
+ "universeDomain": getattr(
565
+ self._transport._credentials, "universe_domain", ""
566
+ ),
567
+ "credentialsType": f"{type(self._transport._credentials).__module__}.{type(self._transport._credentials).__qualname__}",
568
+ "credentialsInfo": getattr(
569
+ self.transport._credentials, "get_cred_info", lambda: None
570
+ )(),
571
+ }
572
+ if hasattr(self._transport, "_credentials")
573
+ else {
574
+ "serviceName": "google.cloud.sql.v1beta4.SqlDatabasesService",
575
+ "credentialsType": None,
576
+ },
577
+ )
578
+
579
+ def delete(
580
+ self,
581
+ request: Optional[Union[cloud_sql.SqlDatabasesDeleteRequest, dict]] = None,
582
+ *,
583
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
584
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
585
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
586
+ ) -> cloud_sql_resources.Operation:
587
+ r"""Deletes a database from a Cloud SQL instance.
588
+
589
+ .. code-block:: python
590
+
591
+ # This snippet has been automatically generated and should be regarded as a
592
+ # code template only.
593
+ # It will require modifications to work:
594
+ # - It may require correct/in-range values for request initialization.
595
+ # - It may require specifying regional endpoints when creating the service
596
+ # client as shown in:
597
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
598
+ from google.cloud import sqladmin_v1beta4
599
+
600
+ def sample_delete():
601
+ # Create a client
602
+ client = sqladmin_v1beta4.SqlDatabasesServiceClient()
603
+
604
+ # Initialize request argument(s)
605
+ request = sqladmin_v1beta4.SqlDatabasesDeleteRequest(
606
+ )
607
+
608
+ # Make the request
609
+ response = client.delete(request=request)
610
+
611
+ # Handle the response
612
+ print(response)
613
+
614
+ Args:
615
+ request (Union[google.cloud.sqladmin_v1beta4.types.SqlDatabasesDeleteRequest, dict]):
616
+ The request object.
617
+ retry (google.api_core.retry.Retry): Designation of what errors, if any,
618
+ should be retried.
619
+ timeout (float): The timeout for this request.
620
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
621
+ sent along with the request as metadata. Normally, each value must be of type `str`,
622
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
623
+ be of type `bytes`.
624
+
625
+ Returns:
626
+ google.cloud.sqladmin_v1beta4.types.Operation:
627
+ An Operation resource.&nbsp;For
628
+ successful operations that return an
629
+ Operation resource, only the fields
630
+ relevant to the operation are populated
631
+ in the resource.
632
+
633
+ """
634
+ # Create or coerce a protobuf request object.
635
+ # - Use the request object if provided (there's no risk of modifying the input as
636
+ # there are no flattened fields), or create one.
637
+ if not isinstance(request, cloud_sql.SqlDatabasesDeleteRequest):
638
+ request = cloud_sql.SqlDatabasesDeleteRequest(request)
639
+
640
+ # Wrap the RPC method; this adds retry and timeout information,
641
+ # and friendly error handling.
642
+ rpc = self._transport._wrapped_methods[self._transport.delete]
643
+
644
+ # Certain fields should be provided within the metadata header;
645
+ # add these here.
646
+ metadata = tuple(metadata) + (
647
+ gapic_v1.routing_header.to_grpc_metadata(
648
+ (
649
+ ("project", request.project),
650
+ ("instance", request.instance),
651
+ ("database", request.database),
652
+ )
653
+ ),
654
+ )
655
+
656
+ # Validate the universe domain.
657
+ self._validate_universe_domain()
658
+
659
+ # Send the request.
660
+ response = rpc(
661
+ request,
662
+ retry=retry,
663
+ timeout=timeout,
664
+ metadata=metadata,
665
+ )
666
+
667
+ # Done; return the response.
668
+ return response
669
+
670
+ def get(
671
+ self,
672
+ request: Optional[Union[cloud_sql.SqlDatabasesGetRequest, dict]] = None,
673
+ *,
674
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
675
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
676
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
677
+ ) -> cloud_sql_resources.Database:
678
+ r"""Retrieves a resource containing information about a
679
+ database inside a Cloud SQL instance.
680
+
681
+ .. code-block:: python
682
+
683
+ # This snippet has been automatically generated and should be regarded as a
684
+ # code template only.
685
+ # It will require modifications to work:
686
+ # - It may require correct/in-range values for request initialization.
687
+ # - It may require specifying regional endpoints when creating the service
688
+ # client as shown in:
689
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
690
+ from google.cloud import sqladmin_v1beta4
691
+
692
+ def sample_get():
693
+ # Create a client
694
+ client = sqladmin_v1beta4.SqlDatabasesServiceClient()
695
+
696
+ # Initialize request argument(s)
697
+ request = sqladmin_v1beta4.SqlDatabasesGetRequest(
698
+ )
699
+
700
+ # Make the request
701
+ response = client.get(request=request)
702
+
703
+ # Handle the response
704
+ print(response)
705
+
706
+ Args:
707
+ request (Union[google.cloud.sqladmin_v1beta4.types.SqlDatabasesGetRequest, dict]):
708
+ The request object.
709
+ retry (google.api_core.retry.Retry): Designation of what errors, if any,
710
+ should be retried.
711
+ timeout (float): The timeout for this request.
712
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
713
+ sent along with the request as metadata. Normally, each value must be of type `str`,
714
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
715
+ be of type `bytes`.
716
+
717
+ Returns:
718
+ google.cloud.sqladmin_v1beta4.types.Database:
719
+ Represents a SQL database on the
720
+ Cloud SQL instance.
721
+
722
+ """
723
+ # Create or coerce a protobuf request object.
724
+ # - Use the request object if provided (there's no risk of modifying the input as
725
+ # there are no flattened fields), or create one.
726
+ if not isinstance(request, cloud_sql.SqlDatabasesGetRequest):
727
+ request = cloud_sql.SqlDatabasesGetRequest(request)
728
+
729
+ # Wrap the RPC method; this adds retry and timeout information,
730
+ # and friendly error handling.
731
+ rpc = self._transport._wrapped_methods[self._transport.get]
732
+
733
+ # Certain fields should be provided within the metadata header;
734
+ # add these here.
735
+ metadata = tuple(metadata) + (
736
+ gapic_v1.routing_header.to_grpc_metadata(
737
+ (
738
+ ("project", request.project),
739
+ ("instance", request.instance),
740
+ ("database", request.database),
741
+ )
742
+ ),
743
+ )
744
+
745
+ # Validate the universe domain.
746
+ self._validate_universe_domain()
747
+
748
+ # Send the request.
749
+ response = rpc(
750
+ request,
751
+ retry=retry,
752
+ timeout=timeout,
753
+ metadata=metadata,
754
+ )
755
+
756
+ # Done; return the response.
757
+ return response
758
+
759
+ def insert(
760
+ self,
761
+ request: Optional[Union[cloud_sql.SqlDatabasesInsertRequest, dict]] = None,
762
+ *,
763
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
764
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
765
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
766
+ ) -> cloud_sql_resources.Operation:
767
+ r"""Inserts a resource containing information about a database
768
+ inside a Cloud SQL instance.
769
+
770
+ **Note:** You can't modify the default character set and
771
+ collation.
772
+
773
+ .. code-block:: python
774
+
775
+ # This snippet has been automatically generated and should be regarded as a
776
+ # code template only.
777
+ # It will require modifications to work:
778
+ # - It may require correct/in-range values for request initialization.
779
+ # - It may require specifying regional endpoints when creating the service
780
+ # client as shown in:
781
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
782
+ from google.cloud import sqladmin_v1beta4
783
+
784
+ def sample_insert():
785
+ # Create a client
786
+ client = sqladmin_v1beta4.SqlDatabasesServiceClient()
787
+
788
+ # Initialize request argument(s)
789
+ request = sqladmin_v1beta4.SqlDatabasesInsertRequest(
790
+ )
791
+
792
+ # Make the request
793
+ response = client.insert(request=request)
794
+
795
+ # Handle the response
796
+ print(response)
797
+
798
+ Args:
799
+ request (Union[google.cloud.sqladmin_v1beta4.types.SqlDatabasesInsertRequest, dict]):
800
+ The request object.
801
+ retry (google.api_core.retry.Retry): Designation of what errors, if any,
802
+ should be retried.
803
+ timeout (float): The timeout for this request.
804
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
805
+ sent along with the request as metadata. Normally, each value must be of type `str`,
806
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
807
+ be of type `bytes`.
808
+
809
+ Returns:
810
+ google.cloud.sqladmin_v1beta4.types.Operation:
811
+ An Operation resource.&nbsp;For
812
+ successful operations that return an
813
+ Operation resource, only the fields
814
+ relevant to the operation are populated
815
+ in the resource.
816
+
817
+ """
818
+ # Create or coerce a protobuf request object.
819
+ # - Use the request object if provided (there's no risk of modifying the input as
820
+ # there are no flattened fields), or create one.
821
+ if not isinstance(request, cloud_sql.SqlDatabasesInsertRequest):
822
+ request = cloud_sql.SqlDatabasesInsertRequest(request)
823
+
824
+ # Wrap the RPC method; this adds retry and timeout information,
825
+ # and friendly error handling.
826
+ rpc = self._transport._wrapped_methods[self._transport.insert]
827
+
828
+ # Certain fields should be provided within the metadata header;
829
+ # add these here.
830
+ metadata = tuple(metadata) + (
831
+ gapic_v1.routing_header.to_grpc_metadata(
832
+ (
833
+ ("project", request.project),
834
+ ("instance", request.instance),
835
+ )
836
+ ),
837
+ )
838
+
839
+ # Validate the universe domain.
840
+ self._validate_universe_domain()
841
+
842
+ # Send the request.
843
+ response = rpc(
844
+ request,
845
+ retry=retry,
846
+ timeout=timeout,
847
+ metadata=metadata,
848
+ )
849
+
850
+ # Done; return the response.
851
+ return response
852
+
853
+ def list(
854
+ self,
855
+ request: Optional[Union[cloud_sql.SqlDatabasesListRequest, dict]] = None,
856
+ *,
857
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
858
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
859
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
860
+ ) -> cloud_sql_resources.DatabasesListResponse:
861
+ r"""Lists databases in the specified Cloud SQL instance.
862
+
863
+ .. code-block:: python
864
+
865
+ # This snippet has been automatically generated and should be regarded as a
866
+ # code template only.
867
+ # It will require modifications to work:
868
+ # - It may require correct/in-range values for request initialization.
869
+ # - It may require specifying regional endpoints when creating the service
870
+ # client as shown in:
871
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
872
+ from google.cloud import sqladmin_v1beta4
873
+
874
+ def sample_list():
875
+ # Create a client
876
+ client = sqladmin_v1beta4.SqlDatabasesServiceClient()
877
+
878
+ # Initialize request argument(s)
879
+ request = sqladmin_v1beta4.SqlDatabasesListRequest(
880
+ )
881
+
882
+ # Make the request
883
+ response = client.list(request=request)
884
+
885
+ # Handle the response
886
+ print(response)
887
+
888
+ Args:
889
+ request (Union[google.cloud.sqladmin_v1beta4.types.SqlDatabasesListRequest, dict]):
890
+ The request object.
891
+ retry (google.api_core.retry.Retry): Designation of what errors, if any,
892
+ should be retried.
893
+ timeout (float): The timeout for this request.
894
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
895
+ sent along with the request as metadata. Normally, each value must be of type `str`,
896
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
897
+ be of type `bytes`.
898
+
899
+ Returns:
900
+ google.cloud.sqladmin_v1beta4.types.DatabasesListResponse:
901
+ Database list response.
902
+ """
903
+ # Create or coerce a protobuf request object.
904
+ # - Use the request object if provided (there's no risk of modifying the input as
905
+ # there are no flattened fields), or create one.
906
+ if not isinstance(request, cloud_sql.SqlDatabasesListRequest):
907
+ request = cloud_sql.SqlDatabasesListRequest(request)
908
+
909
+ # Wrap the RPC method; this adds retry and timeout information,
910
+ # and friendly error handling.
911
+ rpc = self._transport._wrapped_methods[self._transport.list]
912
+
913
+ # Certain fields should be provided within the metadata header;
914
+ # add these here.
915
+ metadata = tuple(metadata) + (
916
+ gapic_v1.routing_header.to_grpc_metadata(
917
+ (
918
+ ("project", request.project),
919
+ ("instance", request.instance),
920
+ )
921
+ ),
922
+ )
923
+
924
+ # Validate the universe domain.
925
+ self._validate_universe_domain()
926
+
927
+ # Send the request.
928
+ response = rpc(
929
+ request,
930
+ retry=retry,
931
+ timeout=timeout,
932
+ metadata=metadata,
933
+ )
934
+
935
+ # Done; return the response.
936
+ return response
937
+
938
+ def patch(
939
+ self,
940
+ request: Optional[Union[cloud_sql.SqlDatabasesUpdateRequest, dict]] = None,
941
+ *,
942
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
943
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
944
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
945
+ ) -> cloud_sql_resources.Operation:
946
+ r"""Partially updates a resource containing information
947
+ about a database inside a Cloud SQL instance. This
948
+ method supports patch semantics.
949
+
950
+ .. code-block:: python
951
+
952
+ # This snippet has been automatically generated and should be regarded as a
953
+ # code template only.
954
+ # It will require modifications to work:
955
+ # - It may require correct/in-range values for request initialization.
956
+ # - It may require specifying regional endpoints when creating the service
957
+ # client as shown in:
958
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
959
+ from google.cloud import sqladmin_v1beta4
960
+
961
+ def sample_patch():
962
+ # Create a client
963
+ client = sqladmin_v1beta4.SqlDatabasesServiceClient()
964
+
965
+ # Initialize request argument(s)
966
+ request = sqladmin_v1beta4.SqlDatabasesUpdateRequest(
967
+ )
968
+
969
+ # Make the request
970
+ response = client.patch(request=request)
971
+
972
+ # Handle the response
973
+ print(response)
974
+
975
+ Args:
976
+ request (Union[google.cloud.sqladmin_v1beta4.types.SqlDatabasesUpdateRequest, dict]):
977
+ The request object.
978
+ retry (google.api_core.retry.Retry): Designation of what errors, if any,
979
+ should be retried.
980
+ timeout (float): The timeout for this request.
981
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
982
+ sent along with the request as metadata. Normally, each value must be of type `str`,
983
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
984
+ be of type `bytes`.
985
+
986
+ Returns:
987
+ google.cloud.sqladmin_v1beta4.types.Operation:
988
+ An Operation resource.&nbsp;For
989
+ successful operations that return an
990
+ Operation resource, only the fields
991
+ relevant to the operation are populated
992
+ in the resource.
993
+
994
+ """
995
+ # Create or coerce a protobuf request object.
996
+ # - Use the request object if provided (there's no risk of modifying the input as
997
+ # there are no flattened fields), or create one.
998
+ if not isinstance(request, cloud_sql.SqlDatabasesUpdateRequest):
999
+ request = cloud_sql.SqlDatabasesUpdateRequest(request)
1000
+
1001
+ # Wrap the RPC method; this adds retry and timeout information,
1002
+ # and friendly error handling.
1003
+ rpc = self._transport._wrapped_methods[self._transport.patch]
1004
+
1005
+ # Certain fields should be provided within the metadata header;
1006
+ # add these here.
1007
+ metadata = tuple(metadata) + (
1008
+ gapic_v1.routing_header.to_grpc_metadata(
1009
+ (
1010
+ ("project", request.project),
1011
+ ("instance", request.instance),
1012
+ ("database", request.database),
1013
+ )
1014
+ ),
1015
+ )
1016
+
1017
+ # Validate the universe domain.
1018
+ self._validate_universe_domain()
1019
+
1020
+ # Send the request.
1021
+ response = rpc(
1022
+ request,
1023
+ retry=retry,
1024
+ timeout=timeout,
1025
+ metadata=metadata,
1026
+ )
1027
+
1028
+ # Done; return the response.
1029
+ return response
1030
+
1031
+ def update(
1032
+ self,
1033
+ request: Optional[Union[cloud_sql.SqlDatabasesUpdateRequest, dict]] = None,
1034
+ *,
1035
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
1036
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
1037
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
1038
+ ) -> cloud_sql_resources.Operation:
1039
+ r"""Updates a resource containing information about a
1040
+ database inside a Cloud SQL instance.
1041
+
1042
+ .. code-block:: python
1043
+
1044
+ # This snippet has been automatically generated and should be regarded as a
1045
+ # code template only.
1046
+ # It will require modifications to work:
1047
+ # - It may require correct/in-range values for request initialization.
1048
+ # - It may require specifying regional endpoints when creating the service
1049
+ # client as shown in:
1050
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1051
+ from google.cloud import sqladmin_v1beta4
1052
+
1053
+ def sample_update():
1054
+ # Create a client
1055
+ client = sqladmin_v1beta4.SqlDatabasesServiceClient()
1056
+
1057
+ # Initialize request argument(s)
1058
+ request = sqladmin_v1beta4.SqlDatabasesUpdateRequest(
1059
+ )
1060
+
1061
+ # Make the request
1062
+ response = client.update(request=request)
1063
+
1064
+ # Handle the response
1065
+ print(response)
1066
+
1067
+ Args:
1068
+ request (Union[google.cloud.sqladmin_v1beta4.types.SqlDatabasesUpdateRequest, dict]):
1069
+ The request object.
1070
+ retry (google.api_core.retry.Retry): Designation of what errors, if any,
1071
+ should be retried.
1072
+ timeout (float): The timeout for this request.
1073
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
1074
+ sent along with the request as metadata. Normally, each value must be of type `str`,
1075
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
1076
+ be of type `bytes`.
1077
+
1078
+ Returns:
1079
+ google.cloud.sqladmin_v1beta4.types.Operation:
1080
+ An Operation resource.&nbsp;For
1081
+ successful operations that return an
1082
+ Operation resource, only the fields
1083
+ relevant to the operation are populated
1084
+ in the resource.
1085
+
1086
+ """
1087
+ # Create or coerce a protobuf request object.
1088
+ # - Use the request object if provided (there's no risk of modifying the input as
1089
+ # there are no flattened fields), or create one.
1090
+ if not isinstance(request, cloud_sql.SqlDatabasesUpdateRequest):
1091
+ request = cloud_sql.SqlDatabasesUpdateRequest(request)
1092
+
1093
+ # Wrap the RPC method; this adds retry and timeout information,
1094
+ # and friendly error handling.
1095
+ rpc = self._transport._wrapped_methods[self._transport.update]
1096
+
1097
+ # Certain fields should be provided within the metadata header;
1098
+ # add these here.
1099
+ metadata = tuple(metadata) + (
1100
+ gapic_v1.routing_header.to_grpc_metadata(
1101
+ (
1102
+ ("project", request.project),
1103
+ ("instance", request.instance),
1104
+ ("database", request.database),
1105
+ )
1106
+ ),
1107
+ )
1108
+
1109
+ # Validate the universe domain.
1110
+ self._validate_universe_domain()
1111
+
1112
+ # Send the request.
1113
+ response = rpc(
1114
+ request,
1115
+ retry=retry,
1116
+ timeout=timeout,
1117
+ metadata=metadata,
1118
+ )
1119
+
1120
+ # Done; return the response.
1121
+ return response
1122
+
1123
+ def __enter__(self) -> "SqlDatabasesServiceClient":
1124
+ return self
1125
+
1126
+ def __exit__(self, type, value, traceback):
1127
+ """Releases underlying transport's resources.
1128
+
1129
+ .. warning::
1130
+ ONLY use as a context manager if the transport is NOT shared
1131
+ with other clients! Exiting the with block will CLOSE the transport
1132
+ and may cause errors in other clients!
1133
+ """
1134
+ self.transport.close()
1135
+
1136
+
1137
+ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
1138
+ gapic_version=package_version.__version__
1139
+ )
1140
+ DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
1141
+
1142
+ __all__ = ("SqlDatabasesServiceClient",)