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.
- google/cloud/sqladmin/__init__.py +605 -0
- google/cloud/sqladmin/gapic_version.py +16 -0
- google/cloud/sqladmin/py.typed +2 -0
- google/cloud/sqladmin_v1/__init__.py +616 -0
- google/cloud/sqladmin_v1/_compat.py +262 -0
- google/cloud/sqladmin_v1/gapic_metadata.json +959 -0
- google/cloud/sqladmin_v1/gapic_version.py +16 -0
- google/cloud/sqladmin_v1/py.typed +2 -0
- google/cloud/sqladmin_v1/services/__init__.py +15 -0
- google/cloud/sqladmin_v1/services/sql_available_database_versions_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_available_database_versions_service/async_client.py +336 -0
- google/cloud/sqladmin_v1/services/sql_available_database_versions_service/client.py +613 -0
- google/cloud/sqladmin_v1/services/sql_available_database_versions_service/transports/__init__.py +34 -0
- google/cloud/sqladmin_v1/services/sql_available_database_versions_service/transports/base.py +159 -0
- google/cloud/sqladmin_v1/services/sql_available_database_versions_service/transports/grpc.py +339 -0
- google/cloud/sqladmin_v1/services/sql_available_database_versions_service/transports/grpc_asyncio.py +356 -0
- google/cloud/sqladmin_v1/services/sql_backup_runs_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_backup_runs_service/async_client.py +697 -0
- google/cloud/sqladmin_v1/services/sql_backup_runs_service/client.py +977 -0
- google/cloud/sqladmin_v1/services/sql_backup_runs_service/pagers.py +199 -0
- google/cloud/sqladmin_v1/services/sql_backup_runs_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_backup_runs_service/transports/base.py +225 -0
- google/cloud/sqladmin_v1/services/sql_backup_runs_service/transports/grpc.py +456 -0
- google/cloud/sqladmin_v1/services/sql_backup_runs_service/transports/grpc_asyncio.py +495 -0
- google/cloud/sqladmin_v1/services/sql_backups_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_backups_service/async_client.py +946 -0
- google/cloud/sqladmin_v1/services/sql_backups_service/client.py +1244 -0
- google/cloud/sqladmin_v1/services/sql_backups_service/pagers.py +197 -0
- google/cloud/sqladmin_v1/services/sql_backups_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_backups_service/transports/base.py +237 -0
- google/cloud/sqladmin_v1/services/sql_backups_service/transports/grpc.py +478 -0
- google/cloud/sqladmin_v1/services/sql_backups_service/transports/grpc_asyncio.py +527 -0
- google/cloud/sqladmin_v1/services/sql_connect_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_connect_service/async_client.py +591 -0
- google/cloud/sqladmin_v1/services/sql_connect_service/client.py +867 -0
- google/cloud/sqladmin_v1/services/sql_connect_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_connect_service/transports/base.py +215 -0
- google/cloud/sqladmin_v1/services/sql_connect_service/transports/grpc.py +430 -0
- google/cloud/sqladmin_v1/services/sql_connect_service/transports/grpc_asyncio.py +464 -0
- google/cloud/sqladmin_v1/services/sql_databases_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_databases_service/async_client.py +872 -0
- google/cloud/sqladmin_v1/services/sql_databases_service/client.py +1152 -0
- google/cloud/sqladmin_v1/services/sql_databases_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_databases_service/transports/base.py +251 -0
- google/cloud/sqladmin_v1/services/sql_databases_service/transports/grpc.py +515 -0
- google/cloud/sqladmin_v1/services/sql_databases_service/transports/grpc_asyncio.py +568 -0
- google/cloud/sqladmin_v1/services/sql_events_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_events_service/async_client.py +311 -0
- google/cloud/sqladmin_v1/services/sql_events_service/client.py +593 -0
- google/cloud/sqladmin_v1/services/sql_events_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_events_service/transports/base.py +159 -0
- google/cloud/sqladmin_v1/services/sql_events_service/transports/grpc.py +337 -0
- google/cloud/sqladmin_v1/services/sql_events_service/transports/grpc_asyncio.py +354 -0
- google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/async_client.py +327 -0
- google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/client.py +605 -0
- google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/transports/base.py +159 -0
- google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/transports/grpc.py +337 -0
- google/cloud/sqladmin_v1/services/sql_feature_eligibility_service/transports/grpc_asyncio.py +356 -0
- google/cloud/sqladmin_v1/services/sql_flags_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_flags_service/async_client.py +386 -0
- google/cloud/sqladmin_v1/services/sql_flags_service/client.py +667 -0
- google/cloud/sqladmin_v1/services/sql_flags_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_flags_service/transports/base.py +181 -0
- google/cloud/sqladmin_v1/services/sql_flags_service/transports/grpc.py +367 -0
- google/cloud/sqladmin_v1/services/sql_flags_service/transports/grpc_asyncio.py +391 -0
- google/cloud/sqladmin_v1/services/sql_iam_policies_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_iam_policies_service/async_client.py +315 -0
- google/cloud/sqladmin_v1/services/sql_iam_policies_service/client.py +593 -0
- google/cloud/sqladmin_v1/services/sql_iam_policies_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_iam_policies_service/transports/base.py +159 -0
- google/cloud/sqladmin_v1/services/sql_iam_policies_service/transports/grpc.py +336 -0
- google/cloud/sqladmin_v1/services/sql_iam_policies_service/transports/grpc_asyncio.py +353 -0
- google/cloud/sqladmin_v1/services/sql_instance_names_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_instance_names_service/async_client.py +321 -0
- google/cloud/sqladmin_v1/services/sql_instance_names_service/client.py +595 -0
- google/cloud/sqladmin_v1/services/sql_instance_names_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_instance_names_service/transports/base.py +159 -0
- google/cloud/sqladmin_v1/services/sql_instance_names_service/transports/grpc.py +336 -0
- google/cloud/sqladmin_v1/services/sql_instance_names_service/transports/grpc_asyncio.py +353 -0
- google/cloud/sqladmin_v1/services/sql_instances_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_instances_service/async_client.py +4519 -0
- google/cloud/sqladmin_v1/services/sql_instances_service/client.py +4833 -0
- google/cloud/sqladmin_v1/services/sql_instances_service/pagers.py +197 -0
- google/cloud/sqladmin_v1/services/sql_instances_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_instances_service/transports/base.py +801 -0
- google/cloud/sqladmin_v1/services/sql_instances_service/transports/grpc.py +1661 -0
- google/cloud/sqladmin_v1/services/sql_instances_service/transports/grpc_asyncio.py +1904 -0
- google/cloud/sqladmin_v1/services/sql_operations_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_operations_service/async_client.py +591 -0
- google/cloud/sqladmin_v1/services/sql_operations_service/client.py +871 -0
- google/cloud/sqladmin_v1/services/sql_operations_service/pagers.py +197 -0
- google/cloud/sqladmin_v1/services/sql_operations_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_operations_service/transports/base.py +210 -0
- google/cloud/sqladmin_v1/services/sql_operations_service/transports/grpc.py +426 -0
- google/cloud/sqladmin_v1/services/sql_operations_service/transports/grpc_asyncio.py +462 -0
- google/cloud/sqladmin_v1/services/sql_regions_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_regions_service/async_client.py +314 -0
- google/cloud/sqladmin_v1/services/sql_regions_service/client.py +596 -0
- google/cloud/sqladmin_v1/services/sql_regions_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_regions_service/transports/base.py +159 -0
- google/cloud/sqladmin_v1/services/sql_regions_service/transports/grpc.py +338 -0
- google/cloud/sqladmin_v1/services/sql_regions_service/transports/grpc_asyncio.py +355 -0
- google/cloud/sqladmin_v1/services/sql_ssl_certs_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_ssl_certs_service/async_client.py +680 -0
- google/cloud/sqladmin_v1/services/sql_ssl_certs_service/client.py +960 -0
- google/cloud/sqladmin_v1/services/sql_ssl_certs_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_ssl_certs_service/transports/base.py +226 -0
- google/cloud/sqladmin_v1/services/sql_ssl_certs_service/transports/grpc.py +461 -0
- google/cloud/sqladmin_v1/services/sql_ssl_certs_service/transports/grpc_asyncio.py +501 -0
- google/cloud/sqladmin_v1/services/sql_tiers_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_tiers_service/async_client.py +395 -0
- google/cloud/sqladmin_v1/services/sql_tiers_service/client.py +676 -0
- google/cloud/sqladmin_v1/services/sql_tiers_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_tiers_service/transports/base.py +181 -0
- google/cloud/sqladmin_v1/services/sql_tiers_service/transports/grpc.py +369 -0
- google/cloud/sqladmin_v1/services/sql_tiers_service/transports/grpc_asyncio.py +393 -0
- google/cloud/sqladmin_v1/services/sql_users_service/__init__.py +22 -0
- google/cloud/sqladmin_v1/services/sql_users_service/async_client.py +754 -0
- google/cloud/sqladmin_v1/services/sql_users_service/client.py +1035 -0
- google/cloud/sqladmin_v1/services/sql_users_service/transports/__init__.py +32 -0
- google/cloud/sqladmin_v1/services/sql_users_service/transports/base.py +237 -0
- google/cloud/sqladmin_v1/services/sql_users_service/transports/grpc.py +477 -0
- google/cloud/sqladmin_v1/services/sql_users_service/transports/grpc_asyncio.py +526 -0
- google/cloud/sqladmin_v1/types/__init__.py +472 -0
- google/cloud/sqladmin_v1/types/cloud_sql_available_database_versions.py +24 -0
- google/cloud/sqladmin_v1/types/cloud_sql_backup_runs.py +438 -0
- google/cloud/sqladmin_v1/types/cloud_sql_backups.py +467 -0
- google/cloud/sqladmin_v1/types/cloud_sql_connect.py +385 -0
- google/cloud/sqladmin_v1/types/cloud_sql_databases.py +202 -0
- google/cloud/sqladmin_v1/types/cloud_sql_events.py +24 -0
- google/cloud/sqladmin_v1/types/cloud_sql_feature_eligibility.py +24 -0
- google/cloud/sqladmin_v1/types/cloud_sql_flags.py +272 -0
- google/cloud/sqladmin_v1/types/cloud_sql_iam_policies.py +24 -0
- google/cloud/sqladmin_v1/types/cloud_sql_instance_names.py +24 -0
- google/cloud/sqladmin_v1/types/cloud_sql_instances.py +4514 -0
- google/cloud/sqladmin_v1/types/cloud_sql_operations.py +164 -0
- google/cloud/sqladmin_v1/types/cloud_sql_regions.py +24 -0
- google/cloud/sqladmin_v1/types/cloud_sql_resources.py +4678 -0
- google/cloud/sqladmin_v1/types/cloud_sql_ssl_certs.py +220 -0
- google/cloud/sqladmin_v1/types/cloud_sql_tiers.py +108 -0
- google/cloud/sqladmin_v1/types/cloud_sql_users.py +571 -0
- google/cloud/sqladmin_v1beta4/__init__.py +583 -0
- google/cloud/sqladmin_v1beta4/_compat.py +262 -0
- google/cloud/sqladmin_v1beta4/gapic_metadata.json +1371 -0
- google/cloud/sqladmin_v1beta4/gapic_version.py +16 -0
- google/cloud/sqladmin_v1beta4/py.typed +2 -0
- google/cloud/sqladmin_v1beta4/services/__init__.py +15 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/async_client.py +689 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/client.py +971 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/pagers.py +197 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/base.py +223 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/grpc.py +449 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/grpc_asyncio.py +490 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/rest.py +1038 -0
- google/cloud/sqladmin_v1beta4/services/sql_backup_runs_service/transports/rest_base.py +150 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/async_client.py +941 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/client.py +1241 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/pagers.py +197 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/base.py +234 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/grpc.py +470 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/grpc_asyncio.py +521 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/rest.py +1238 -0
- google/cloud/sqladmin_v1beta4/services/sql_backups_service/transports/rest_base.py +175 -0
- google/cloud/sqladmin_v1beta4/services/sql_connect_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_connect_service/async_client.py +591 -0
- google/cloud/sqladmin_v1beta4/services/sql_connect_service/client.py +869 -0
- google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/base.py +215 -0
- google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/grpc.py +430 -0
- google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/grpc_asyncio.py +464 -0
- google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/rest.py +852 -0
- google/cloud/sqladmin_v1beta4/services/sql_connect_service/transports/rest_base.py +138 -0
- google/cloud/sqladmin_v1beta4/services/sql_data_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_data_service/async_client.py +444 -0
- google/cloud/sqladmin_v1beta4/services/sql_data_service/client.py +739 -0
- google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/base.py +181 -0
- google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/grpc.py +407 -0
- google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/grpc_asyncio.py +431 -0
- google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/rest.py +213 -0
- google/cloud/sqladmin_v1beta4/services/sql_data_service/transports/rest_base.py +97 -0
- google/cloud/sqladmin_v1beta4/services/sql_databases_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_databases_service/async_client.py +860 -0
- google/cloud/sqladmin_v1beta4/services/sql_databases_service/client.py +1142 -0
- google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/base.py +251 -0
- google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/grpc.py +502 -0
- google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/grpc_asyncio.py +561 -0
- google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/rest.py +1468 -0
- google/cloud/sqladmin_v1beta4/services/sql_databases_service/transports/rest_base.py +180 -0
- google/cloud/sqladmin_v1beta4/services/sql_flags_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_flags_service/async_client.py +386 -0
- google/cloud/sqladmin_v1beta4/services/sql_flags_service/client.py +669 -0
- google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/base.py +181 -0
- google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/grpc.py +365 -0
- google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/grpc_asyncio.py +389 -0
- google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/rest.py +392 -0
- google/cloud/sqladmin_v1beta4/services/sql_flags_service/transports/rest_base.py +107 -0
- google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/async_client.py +315 -0
- google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/client.py +595 -0
- google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/__init__.py +39 -0
- google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/base.py +159 -0
- google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/grpc.py +336 -0
- google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/grpc_asyncio.py +353 -0
- google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/rest.py +184 -0
- google/cloud/sqladmin_v1beta4/services/sql_iam_policies_service/transports/rest_base.py +91 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/async_client.py +4399 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/client.py +4715 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/pagers.py +197 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/base.py +801 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/grpc.py +1627 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/grpc_asyncio.py +1895 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/rest.py +9625 -0
- google/cloud/sqladmin_v1beta4/services/sql_instances_service/transports/rest_base.py +744 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/async_client.py +585 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/client.py +867 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/pagers.py +197 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/base.py +210 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/grpc.py +422 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/grpc_asyncio.py +458 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/rest.py +744 -0
- google/cloud/sqladmin_v1beta4/services/sql_operations_service/transports/rest_base.py +136 -0
- google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/async_client.py +672 -0
- google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/client.py +954 -0
- google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/base.py +226 -0
- google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/grpc.py +453 -0
- google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/grpc_asyncio.py +497 -0
- google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/rest.py +1036 -0
- google/cloud/sqladmin_v1beta4/services/sql_ssl_certs_service/transports/rest_base.py +150 -0
- google/cloud/sqladmin_v1beta4/services/sql_tiers_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_tiers_service/async_client.py +393 -0
- google/cloud/sqladmin_v1beta4/services/sql_tiers_service/client.py +676 -0
- google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/base.py +181 -0
- google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/grpc.py +368 -0
- google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/grpc_asyncio.py +392 -0
- google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/rest.py +396 -0
- google/cloud/sqladmin_v1beta4/services/sql_tiers_service/transports/rest_base.py +107 -0
- google/cloud/sqladmin_v1beta4/services/sql_users_service/__init__.py +22 -0
- google/cloud/sqladmin_v1beta4/services/sql_users_service/async_client.py +754 -0
- google/cloud/sqladmin_v1beta4/services/sql_users_service/client.py +1037 -0
- google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/__init__.py +36 -0
- google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/base.py +237 -0
- google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/grpc.py +475 -0
- google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/grpc_asyncio.py +524 -0
- google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/rest.py +1249 -0
- google/cloud/sqladmin_v1beta4/services/sql_users_service/transports/rest_base.py +165 -0
- google/cloud/sqladmin_v1beta4/types/__init__.py +480 -0
- google/cloud/sqladmin_v1beta4/types/cloud_sql.py +2666 -0
- google/cloud/sqladmin_v1beta4/types/cloud_sql_connect.py +386 -0
- google/cloud/sqladmin_v1beta4/types/cloud_sql_data.py +339 -0
- google/cloud/sqladmin_v1beta4/types/cloud_sql_iam_policies.py +24 -0
- google/cloud/sqladmin_v1beta4/types/cloud_sql_resources.py +8111 -0
- google/cloud/sqladmin_v1beta4/types/cloud_sql_tiers.py +108 -0
- google/cloud/sqladmin_v1beta4/types/cloud_sql_users.py +573 -0
- google_cloud_sql-0.1.1.dist-info/METADATA +239 -0
- google_cloud_sql-0.1.1.dist-info/RECORD +274 -0
- google_cloud_sql-0.1.1.dist-info/WHEEL +5 -0
- google_cloud_sql-0.1.1.dist-info/licenses/LICENSE +202 -0
- google_cloud_sql-0.1.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,2666 @@
|
|
|
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
|
+
from __future__ import annotations
|
|
17
|
+
|
|
18
|
+
from typing import MutableMapping, MutableSequence
|
|
19
|
+
|
|
20
|
+
import google.protobuf.duration_pb2 as duration_pb2 # type: ignore
|
|
21
|
+
import google.protobuf.field_mask_pb2 as field_mask_pb2 # type: ignore
|
|
22
|
+
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
|
|
23
|
+
import google.rpc.status_pb2 as status_pb2 # type: ignore
|
|
24
|
+
import proto # type: ignore
|
|
25
|
+
|
|
26
|
+
from google.cloud.sqladmin_v1beta4.types import cloud_sql_resources
|
|
27
|
+
|
|
28
|
+
__protobuf__ = proto.module(
|
|
29
|
+
package="google.cloud.sql.v1beta4",
|
|
30
|
+
manifest={
|
|
31
|
+
"ExternalSyncParallelLevel",
|
|
32
|
+
"CreateBackupRequest",
|
|
33
|
+
"GetBackupRequest",
|
|
34
|
+
"ListBackupsRequest",
|
|
35
|
+
"ListBackupsResponse",
|
|
36
|
+
"UpdateBackupRequest",
|
|
37
|
+
"DeleteBackupRequest",
|
|
38
|
+
"SqlBackupRunsDeleteRequest",
|
|
39
|
+
"SqlBackupRunsGetRequest",
|
|
40
|
+
"SqlBackupRunsInsertRequest",
|
|
41
|
+
"SqlBackupRunsListRequest",
|
|
42
|
+
"SqlDatabasesDeleteRequest",
|
|
43
|
+
"SqlDatabasesGetRequest",
|
|
44
|
+
"SqlDatabasesInsertRequest",
|
|
45
|
+
"SqlDatabasesListRequest",
|
|
46
|
+
"SqlDatabasesUpdateRequest",
|
|
47
|
+
"SqlFlagsListRequest",
|
|
48
|
+
"SqlInstancesAddServerCaRequest",
|
|
49
|
+
"SqlInstancesAddServerCertificateRequest",
|
|
50
|
+
"SqlInstancesAddEntraIdCertificateRequest",
|
|
51
|
+
"SqlInstancesCloneRequest",
|
|
52
|
+
"SqlInstancesDeleteRequest",
|
|
53
|
+
"SqlInstancesDemoteMasterRequest",
|
|
54
|
+
"SqlInstancesDemoteRequest",
|
|
55
|
+
"SqlInstancesExportRequest",
|
|
56
|
+
"SqlInstancesFailoverRequest",
|
|
57
|
+
"SqlInstancesGetRequest",
|
|
58
|
+
"SqlInstancesImportRequest",
|
|
59
|
+
"SqlInstancesInsertRequest",
|
|
60
|
+
"SqlInstancesListRequest",
|
|
61
|
+
"SqlInstancesListServerCasRequest",
|
|
62
|
+
"SqlInstancesListServerCertificatesRequest",
|
|
63
|
+
"SqlInstancesListEntraIdCertificatesRequest",
|
|
64
|
+
"SqlInstancesPatchRequest",
|
|
65
|
+
"SqlInstancesPromoteReplicaRequest",
|
|
66
|
+
"SqlInstancesSwitchoverRequest",
|
|
67
|
+
"SqlInstancesResetSslConfigRequest",
|
|
68
|
+
"SqlInstancesRestartRequest",
|
|
69
|
+
"SqlInstancesRestoreBackupRequest",
|
|
70
|
+
"SqlInstancesRotateServerCaRequest",
|
|
71
|
+
"SqlInstancesRotateServerCertificateRequest",
|
|
72
|
+
"SqlInstancesRotateEntraIdCertificateRequest",
|
|
73
|
+
"SqlInstancesStartReplicaRequest",
|
|
74
|
+
"SqlInstancesStopReplicaRequest",
|
|
75
|
+
"SqlInstancesTruncateLogRequest",
|
|
76
|
+
"SqlInstancesUpdateRequest",
|
|
77
|
+
"SqlInstancesReencryptRequest",
|
|
78
|
+
"InstancesReencryptRequest",
|
|
79
|
+
"BackupReencryptionConfig",
|
|
80
|
+
"SqlInstancesRescheduleMaintenanceRequest",
|
|
81
|
+
"SqlInstancesPerformDiskShrinkRequest",
|
|
82
|
+
"ExternalSyncSelectedObject",
|
|
83
|
+
"SqlInstancesVerifyExternalSyncSettingsRequest",
|
|
84
|
+
"SqlInstancesStartExternalSyncRequest",
|
|
85
|
+
"SqlInstancesResetReplicaSizeRequest",
|
|
86
|
+
"SqlOperationsGetRequest",
|
|
87
|
+
"SqlOperationsListRequest",
|
|
88
|
+
"SqlOperationsCancelRequest",
|
|
89
|
+
"SqlInstancesCreateEphemeralCertRequest",
|
|
90
|
+
"SqlSslCertsDeleteRequest",
|
|
91
|
+
"SqlSslCertsGetRequest",
|
|
92
|
+
"SqlSslCertsInsertRequest",
|
|
93
|
+
"SqlSslCertsListRequest",
|
|
94
|
+
"SqlInstancesGetDiskShrinkConfigRequest",
|
|
95
|
+
"SqlInstancesGetLatestRecoveryTimeRequest",
|
|
96
|
+
"SqlInstancesGetLatestRecoveryTimeResponse",
|
|
97
|
+
"SqlInstancesExecuteSqlRequest",
|
|
98
|
+
"SqlInstancesReleaseSsrsLeaseRequest",
|
|
99
|
+
"SqlInstancesReleaseSsrsLeaseResponse",
|
|
100
|
+
"ExecuteSqlPayload",
|
|
101
|
+
"SqlInstancesExecuteSqlResponse",
|
|
102
|
+
"QueryResult",
|
|
103
|
+
"Column",
|
|
104
|
+
"Row",
|
|
105
|
+
"Value",
|
|
106
|
+
"Metadata",
|
|
107
|
+
"SqlInstancesAcquireSsrsLeaseRequest",
|
|
108
|
+
"SqlInstancesPreCheckMajorVersionUpgradeRequest",
|
|
109
|
+
"SqlInstancesAcquireSsrsLeaseResponse",
|
|
110
|
+
"SqlInstancesPointInTimeRestoreRequest",
|
|
111
|
+
},
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
class ExternalSyncParallelLevel(proto.Enum):
|
|
116
|
+
r"""External Sync parallel level.
|
|
117
|
+
|
|
118
|
+
Values:
|
|
119
|
+
EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED (0):
|
|
120
|
+
Unknown sync parallel level. Will be
|
|
121
|
+
defaulted to OPTIMAL.
|
|
122
|
+
MIN (1):
|
|
123
|
+
Minimal parallel level.
|
|
124
|
+
OPTIMAL (2):
|
|
125
|
+
Optimal parallel level.
|
|
126
|
+
MAX (3):
|
|
127
|
+
Maximum parallel level.
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED = 0
|
|
131
|
+
MIN = 1
|
|
132
|
+
OPTIMAL = 2
|
|
133
|
+
MAX = 3
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class CreateBackupRequest(proto.Message):
|
|
137
|
+
r"""The request payload to create the backup
|
|
138
|
+
|
|
139
|
+
Attributes:
|
|
140
|
+
parent (str):
|
|
141
|
+
Required. The parent resource where this
|
|
142
|
+
backup is created. Format: projects/{project}
|
|
143
|
+
backup (google.cloud.sqladmin_v1beta4.types.Backup):
|
|
144
|
+
Required. The Backup to create.
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
parent: str = proto.Field(
|
|
148
|
+
proto.STRING,
|
|
149
|
+
number=1,
|
|
150
|
+
)
|
|
151
|
+
backup: cloud_sql_resources.Backup = proto.Field(
|
|
152
|
+
proto.MESSAGE,
|
|
153
|
+
number=2,
|
|
154
|
+
message=cloud_sql_resources.Backup,
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
class GetBackupRequest(proto.Message):
|
|
159
|
+
r"""The request payload to get the backup.
|
|
160
|
+
|
|
161
|
+
Attributes:
|
|
162
|
+
name (str):
|
|
163
|
+
Required. The name of the backup to retrieve.
|
|
164
|
+
Format: projects/{project}/backups/{backup}
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
name: str = proto.Field(
|
|
168
|
+
proto.STRING,
|
|
169
|
+
number=1,
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
class ListBackupsRequest(proto.Message):
|
|
174
|
+
r"""The request payload to list the backups.
|
|
175
|
+
|
|
176
|
+
Attributes:
|
|
177
|
+
parent (str):
|
|
178
|
+
Required. The parent that owns this
|
|
179
|
+
collection of backups. Format:
|
|
180
|
+
projects/{project}
|
|
181
|
+
page_size (int):
|
|
182
|
+
The maximum number of backups to return per
|
|
183
|
+
response. The service might return fewer backups
|
|
184
|
+
than this value. If a value for this parameter
|
|
185
|
+
isn't specified, then, at most, 500 backups are
|
|
186
|
+
returned. The maximum value is 2,000. Any values
|
|
187
|
+
that you set, which are greater than 2,000, are
|
|
188
|
+
changed to 2,000.
|
|
189
|
+
page_token (str):
|
|
190
|
+
A page token, received from a previous ``ListBackups`` call.
|
|
191
|
+
Provide this to retrieve the subsequent page.
|
|
192
|
+
|
|
193
|
+
When paginating, all other parameters provided to
|
|
194
|
+
``ListBackups`` must match the call that provided the page
|
|
195
|
+
token.
|
|
196
|
+
filter (str):
|
|
197
|
+
Multiple filter queries are separated by
|
|
198
|
+
spaces. For example, 'instance:abc AND
|
|
199
|
+
type:FINAL, 'location:us',
|
|
200
|
+
'backupInterval.startTime>=1950-01-01T01:01:25.771Z'.
|
|
201
|
+
You can filter by type, instance,
|
|
202
|
+
backupInterval.startTime (creation time), or
|
|
203
|
+
location.
|
|
204
|
+
"""
|
|
205
|
+
|
|
206
|
+
parent: str = proto.Field(
|
|
207
|
+
proto.STRING,
|
|
208
|
+
number=1,
|
|
209
|
+
)
|
|
210
|
+
page_size: int = proto.Field(
|
|
211
|
+
proto.INT32,
|
|
212
|
+
number=2,
|
|
213
|
+
)
|
|
214
|
+
page_token: str = proto.Field(
|
|
215
|
+
proto.STRING,
|
|
216
|
+
number=3,
|
|
217
|
+
)
|
|
218
|
+
filter: str = proto.Field(
|
|
219
|
+
proto.STRING,
|
|
220
|
+
number=4,
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
class ListBackupsResponse(proto.Message):
|
|
225
|
+
r"""The response payload containing a list of the backups.
|
|
226
|
+
|
|
227
|
+
Attributes:
|
|
228
|
+
backups (MutableSequence[google.cloud.sqladmin_v1beta4.types.Backup]):
|
|
229
|
+
A list of backups.
|
|
230
|
+
next_page_token (str):
|
|
231
|
+
A token, which can be sent as ``page_token`` to retrieve the
|
|
232
|
+
next page. If this field is omitted, then there aren't
|
|
233
|
+
subsequent pages.
|
|
234
|
+
warnings (MutableSequence[google.cloud.sqladmin_v1beta4.types.ApiWarning]):
|
|
235
|
+
If a region isn't unavailable or if an
|
|
236
|
+
unknown error occurs, then a warning message is
|
|
237
|
+
returned.
|
|
238
|
+
"""
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
def raw_page(self):
|
|
242
|
+
return self
|
|
243
|
+
|
|
244
|
+
backups: MutableSequence[cloud_sql_resources.Backup] = proto.RepeatedField(
|
|
245
|
+
proto.MESSAGE,
|
|
246
|
+
number=1,
|
|
247
|
+
message=cloud_sql_resources.Backup,
|
|
248
|
+
)
|
|
249
|
+
next_page_token: str = proto.Field(
|
|
250
|
+
proto.STRING,
|
|
251
|
+
number=2,
|
|
252
|
+
)
|
|
253
|
+
warnings: MutableSequence[cloud_sql_resources.ApiWarning] = proto.RepeatedField(
|
|
254
|
+
proto.MESSAGE,
|
|
255
|
+
number=3,
|
|
256
|
+
message=cloud_sql_resources.ApiWarning,
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
class UpdateBackupRequest(proto.Message):
|
|
261
|
+
r"""The request payload to update the backup.
|
|
262
|
+
|
|
263
|
+
Attributes:
|
|
264
|
+
backup (google.cloud.sqladmin_v1beta4.types.Backup):
|
|
265
|
+
Required. The backup to update. The backup’s ``name`` field
|
|
266
|
+
is used to identify the backup to update. Format:
|
|
267
|
+
projects/{project}/backups/{backup}
|
|
268
|
+
update_mask (google.protobuf.field_mask_pb2.FieldMask):
|
|
269
|
+
The list of fields that you can update. You
|
|
270
|
+
can update only the description and retention
|
|
271
|
+
period of the final backup.
|
|
272
|
+
"""
|
|
273
|
+
|
|
274
|
+
backup: cloud_sql_resources.Backup = proto.Field(
|
|
275
|
+
proto.MESSAGE,
|
|
276
|
+
number=1,
|
|
277
|
+
message=cloud_sql_resources.Backup,
|
|
278
|
+
)
|
|
279
|
+
update_mask: field_mask_pb2.FieldMask = proto.Field(
|
|
280
|
+
proto.MESSAGE,
|
|
281
|
+
number=2,
|
|
282
|
+
message=field_mask_pb2.FieldMask,
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
class DeleteBackupRequest(proto.Message):
|
|
287
|
+
r"""The request payload to delete the backup.
|
|
288
|
+
|
|
289
|
+
Attributes:
|
|
290
|
+
name (str):
|
|
291
|
+
Required. The name of the backup to delete.
|
|
292
|
+
Format: projects/{project}/backups/{backup}
|
|
293
|
+
"""
|
|
294
|
+
|
|
295
|
+
name: str = proto.Field(
|
|
296
|
+
proto.STRING,
|
|
297
|
+
number=1,
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
class SqlBackupRunsDeleteRequest(proto.Message):
|
|
302
|
+
r"""
|
|
303
|
+
|
|
304
|
+
Attributes:
|
|
305
|
+
id (int):
|
|
306
|
+
The ID of the backup run to delete. To find a backup run ID,
|
|
307
|
+
use the
|
|
308
|
+
`list <https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/backupRuns/list>`__
|
|
309
|
+
method.
|
|
310
|
+
instance (str):
|
|
311
|
+
Cloud SQL instance ID. This does not include
|
|
312
|
+
the project ID.
|
|
313
|
+
project (str):
|
|
314
|
+
Project ID of the project that contains the
|
|
315
|
+
instance.
|
|
316
|
+
"""
|
|
317
|
+
|
|
318
|
+
id: int = proto.Field(
|
|
319
|
+
proto.INT64,
|
|
320
|
+
number=1,
|
|
321
|
+
)
|
|
322
|
+
instance: str = proto.Field(
|
|
323
|
+
proto.STRING,
|
|
324
|
+
number=2,
|
|
325
|
+
)
|
|
326
|
+
project: str = proto.Field(
|
|
327
|
+
proto.STRING,
|
|
328
|
+
number=3,
|
|
329
|
+
)
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
class SqlBackupRunsGetRequest(proto.Message):
|
|
333
|
+
r"""
|
|
334
|
+
|
|
335
|
+
Attributes:
|
|
336
|
+
id (int):
|
|
337
|
+
The ID of this backup run.
|
|
338
|
+
instance (str):
|
|
339
|
+
Cloud SQL instance ID. This does not include
|
|
340
|
+
the project ID.
|
|
341
|
+
project (str):
|
|
342
|
+
Project ID of the project that contains the
|
|
343
|
+
instance.
|
|
344
|
+
"""
|
|
345
|
+
|
|
346
|
+
id: int = proto.Field(
|
|
347
|
+
proto.INT64,
|
|
348
|
+
number=1,
|
|
349
|
+
)
|
|
350
|
+
instance: str = proto.Field(
|
|
351
|
+
proto.STRING,
|
|
352
|
+
number=2,
|
|
353
|
+
)
|
|
354
|
+
project: str = proto.Field(
|
|
355
|
+
proto.STRING,
|
|
356
|
+
number=3,
|
|
357
|
+
)
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
class SqlBackupRunsInsertRequest(proto.Message):
|
|
361
|
+
r"""
|
|
362
|
+
|
|
363
|
+
Attributes:
|
|
364
|
+
instance (str):
|
|
365
|
+
Cloud SQL instance ID. This does not include
|
|
366
|
+
the project ID.
|
|
367
|
+
project (str):
|
|
368
|
+
Project ID of the project that contains the
|
|
369
|
+
instance.
|
|
370
|
+
body (google.cloud.sqladmin_v1beta4.types.BackupRun):
|
|
371
|
+
|
|
372
|
+
"""
|
|
373
|
+
|
|
374
|
+
instance: str = proto.Field(
|
|
375
|
+
proto.STRING,
|
|
376
|
+
number=1,
|
|
377
|
+
)
|
|
378
|
+
project: str = proto.Field(
|
|
379
|
+
proto.STRING,
|
|
380
|
+
number=2,
|
|
381
|
+
)
|
|
382
|
+
body: cloud_sql_resources.BackupRun = proto.Field(
|
|
383
|
+
proto.MESSAGE,
|
|
384
|
+
number=100,
|
|
385
|
+
message=cloud_sql_resources.BackupRun,
|
|
386
|
+
)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
class SqlBackupRunsListRequest(proto.Message):
|
|
390
|
+
r"""
|
|
391
|
+
|
|
392
|
+
Attributes:
|
|
393
|
+
instance (str):
|
|
394
|
+
Cloud SQL instance ID, or "-" for all
|
|
395
|
+
instances. This does not include the project ID.
|
|
396
|
+
max_results (int):
|
|
397
|
+
Maximum number of backup runs per response.
|
|
398
|
+
page_token (str):
|
|
399
|
+
A previously-returned page token representing
|
|
400
|
+
part of the larger set of results to view.
|
|
401
|
+
project (str):
|
|
402
|
+
Project ID of the project that contains the
|
|
403
|
+
instance.
|
|
404
|
+
"""
|
|
405
|
+
|
|
406
|
+
instance: str = proto.Field(
|
|
407
|
+
proto.STRING,
|
|
408
|
+
number=1,
|
|
409
|
+
)
|
|
410
|
+
max_results: int = proto.Field(
|
|
411
|
+
proto.INT32,
|
|
412
|
+
number=2,
|
|
413
|
+
)
|
|
414
|
+
page_token: str = proto.Field(
|
|
415
|
+
proto.STRING,
|
|
416
|
+
number=3,
|
|
417
|
+
)
|
|
418
|
+
project: str = proto.Field(
|
|
419
|
+
proto.STRING,
|
|
420
|
+
number=4,
|
|
421
|
+
)
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
class SqlDatabasesDeleteRequest(proto.Message):
|
|
425
|
+
r"""
|
|
426
|
+
|
|
427
|
+
Attributes:
|
|
428
|
+
database (str):
|
|
429
|
+
Name of the database to be deleted in the
|
|
430
|
+
instance.
|
|
431
|
+
instance (str):
|
|
432
|
+
Database instance ID. This does not include
|
|
433
|
+
the project ID.
|
|
434
|
+
project (str):
|
|
435
|
+
Project ID of the project that contains the
|
|
436
|
+
instance.
|
|
437
|
+
"""
|
|
438
|
+
|
|
439
|
+
database: str = proto.Field(
|
|
440
|
+
proto.STRING,
|
|
441
|
+
number=1,
|
|
442
|
+
)
|
|
443
|
+
instance: str = proto.Field(
|
|
444
|
+
proto.STRING,
|
|
445
|
+
number=2,
|
|
446
|
+
)
|
|
447
|
+
project: str = proto.Field(
|
|
448
|
+
proto.STRING,
|
|
449
|
+
number=3,
|
|
450
|
+
)
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
class SqlDatabasesGetRequest(proto.Message):
|
|
454
|
+
r"""
|
|
455
|
+
|
|
456
|
+
Attributes:
|
|
457
|
+
database (str):
|
|
458
|
+
Name of the database in the instance.
|
|
459
|
+
instance (str):
|
|
460
|
+
Database instance ID. This does not include
|
|
461
|
+
the project ID.
|
|
462
|
+
project (str):
|
|
463
|
+
Project ID of the project that contains the
|
|
464
|
+
instance.
|
|
465
|
+
"""
|
|
466
|
+
|
|
467
|
+
database: str = proto.Field(
|
|
468
|
+
proto.STRING,
|
|
469
|
+
number=1,
|
|
470
|
+
)
|
|
471
|
+
instance: str = proto.Field(
|
|
472
|
+
proto.STRING,
|
|
473
|
+
number=2,
|
|
474
|
+
)
|
|
475
|
+
project: str = proto.Field(
|
|
476
|
+
proto.STRING,
|
|
477
|
+
number=3,
|
|
478
|
+
)
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
class SqlDatabasesInsertRequest(proto.Message):
|
|
482
|
+
r"""
|
|
483
|
+
|
|
484
|
+
Attributes:
|
|
485
|
+
instance (str):
|
|
486
|
+
Database instance ID. This does not include
|
|
487
|
+
the project ID.
|
|
488
|
+
project (str):
|
|
489
|
+
Project ID of the project that contains the
|
|
490
|
+
instance.
|
|
491
|
+
body (google.cloud.sqladmin_v1beta4.types.Database):
|
|
492
|
+
|
|
493
|
+
"""
|
|
494
|
+
|
|
495
|
+
instance: str = proto.Field(
|
|
496
|
+
proto.STRING,
|
|
497
|
+
number=1,
|
|
498
|
+
)
|
|
499
|
+
project: str = proto.Field(
|
|
500
|
+
proto.STRING,
|
|
501
|
+
number=2,
|
|
502
|
+
)
|
|
503
|
+
body: cloud_sql_resources.Database = proto.Field(
|
|
504
|
+
proto.MESSAGE,
|
|
505
|
+
number=100,
|
|
506
|
+
message=cloud_sql_resources.Database,
|
|
507
|
+
)
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
class SqlDatabasesListRequest(proto.Message):
|
|
511
|
+
r"""
|
|
512
|
+
|
|
513
|
+
Attributes:
|
|
514
|
+
instance (str):
|
|
515
|
+
Cloud SQL instance ID. This does not include
|
|
516
|
+
the project ID.
|
|
517
|
+
project (str):
|
|
518
|
+
Project ID of the project that contains the
|
|
519
|
+
instance.
|
|
520
|
+
"""
|
|
521
|
+
|
|
522
|
+
instance: str = proto.Field(
|
|
523
|
+
proto.STRING,
|
|
524
|
+
number=1,
|
|
525
|
+
)
|
|
526
|
+
project: str = proto.Field(
|
|
527
|
+
proto.STRING,
|
|
528
|
+
number=2,
|
|
529
|
+
)
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
class SqlDatabasesUpdateRequest(proto.Message):
|
|
533
|
+
r"""
|
|
534
|
+
|
|
535
|
+
Attributes:
|
|
536
|
+
database (str):
|
|
537
|
+
Name of the database to be updated in the
|
|
538
|
+
instance.
|
|
539
|
+
instance (str):
|
|
540
|
+
Database instance ID. This does not include
|
|
541
|
+
the project ID.
|
|
542
|
+
project (str):
|
|
543
|
+
Project ID of the project that contains the
|
|
544
|
+
instance.
|
|
545
|
+
body (google.cloud.sqladmin_v1beta4.types.Database):
|
|
546
|
+
|
|
547
|
+
"""
|
|
548
|
+
|
|
549
|
+
database: str = proto.Field(
|
|
550
|
+
proto.STRING,
|
|
551
|
+
number=1,
|
|
552
|
+
)
|
|
553
|
+
instance: str = proto.Field(
|
|
554
|
+
proto.STRING,
|
|
555
|
+
number=2,
|
|
556
|
+
)
|
|
557
|
+
project: str = proto.Field(
|
|
558
|
+
proto.STRING,
|
|
559
|
+
number=3,
|
|
560
|
+
)
|
|
561
|
+
body: cloud_sql_resources.Database = proto.Field(
|
|
562
|
+
proto.MESSAGE,
|
|
563
|
+
number=100,
|
|
564
|
+
message=cloud_sql_resources.Database,
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
class SqlFlagsListRequest(proto.Message):
|
|
569
|
+
r"""
|
|
570
|
+
|
|
571
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
572
|
+
|
|
573
|
+
Attributes:
|
|
574
|
+
database_version (str):
|
|
575
|
+
Database type and version you want to
|
|
576
|
+
retrieve flags for. By default, this method
|
|
577
|
+
returns flags for all database types and
|
|
578
|
+
versions.
|
|
579
|
+
flag_scope (google.cloud.sqladmin_v1beta4.types.SqlFlagScope):
|
|
580
|
+
Optional. Specify the scope of flags to be
|
|
581
|
+
returned by SqlFlagsListService. Return list of
|
|
582
|
+
database flags if unspecified.
|
|
583
|
+
|
|
584
|
+
This field is a member of `oneof`_ ``_flag_scope``.
|
|
585
|
+
"""
|
|
586
|
+
|
|
587
|
+
database_version: str = proto.Field(
|
|
588
|
+
proto.STRING,
|
|
589
|
+
number=1,
|
|
590
|
+
)
|
|
591
|
+
flag_scope: cloud_sql_resources.SqlFlagScope = proto.Field(
|
|
592
|
+
proto.ENUM,
|
|
593
|
+
number=3,
|
|
594
|
+
optional=True,
|
|
595
|
+
enum=cloud_sql_resources.SqlFlagScope,
|
|
596
|
+
)
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
class SqlInstancesAddServerCaRequest(proto.Message):
|
|
600
|
+
r"""
|
|
601
|
+
|
|
602
|
+
Attributes:
|
|
603
|
+
instance (str):
|
|
604
|
+
Cloud SQL instance ID. This does not include
|
|
605
|
+
the project ID.
|
|
606
|
+
project (str):
|
|
607
|
+
Project ID of the project that contains the
|
|
608
|
+
instance.
|
|
609
|
+
"""
|
|
610
|
+
|
|
611
|
+
instance: str = proto.Field(
|
|
612
|
+
proto.STRING,
|
|
613
|
+
number=1,
|
|
614
|
+
)
|
|
615
|
+
project: str = proto.Field(
|
|
616
|
+
proto.STRING,
|
|
617
|
+
number=2,
|
|
618
|
+
)
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
class SqlInstancesAddServerCertificateRequest(proto.Message):
|
|
622
|
+
r"""Request for AddServerCertificate RPC.
|
|
623
|
+
|
|
624
|
+
Attributes:
|
|
625
|
+
instance (str):
|
|
626
|
+
Required. Cloud SQL instance ID. This does
|
|
627
|
+
not include the project ID.
|
|
628
|
+
project (str):
|
|
629
|
+
Required. Project ID of the project that
|
|
630
|
+
contains the instance.
|
|
631
|
+
"""
|
|
632
|
+
|
|
633
|
+
instance: str = proto.Field(
|
|
634
|
+
proto.STRING,
|
|
635
|
+
number=1,
|
|
636
|
+
)
|
|
637
|
+
project: str = proto.Field(
|
|
638
|
+
proto.STRING,
|
|
639
|
+
number=2,
|
|
640
|
+
)
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
class SqlInstancesAddEntraIdCertificateRequest(proto.Message):
|
|
644
|
+
r"""Request for AddEntraIdCertificate RPC.
|
|
645
|
+
|
|
646
|
+
Attributes:
|
|
647
|
+
instance (str):
|
|
648
|
+
Required. Cloud SQL instance ID. This does
|
|
649
|
+
not include the project ID.
|
|
650
|
+
project (str):
|
|
651
|
+
Required. Project ID of the project that
|
|
652
|
+
contains the instance.
|
|
653
|
+
"""
|
|
654
|
+
|
|
655
|
+
instance: str = proto.Field(
|
|
656
|
+
proto.STRING,
|
|
657
|
+
number=1,
|
|
658
|
+
)
|
|
659
|
+
project: str = proto.Field(
|
|
660
|
+
proto.STRING,
|
|
661
|
+
number=2,
|
|
662
|
+
)
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
class SqlInstancesCloneRequest(proto.Message):
|
|
666
|
+
r"""
|
|
667
|
+
|
|
668
|
+
Attributes:
|
|
669
|
+
instance (str):
|
|
670
|
+
The ID of the Cloud SQL instance to be cloned
|
|
671
|
+
(source). This does not include the project ID.
|
|
672
|
+
project (str):
|
|
673
|
+
Project ID of the source Cloud SQL instance.
|
|
674
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesCloneRequest):
|
|
675
|
+
|
|
676
|
+
"""
|
|
677
|
+
|
|
678
|
+
instance: str = proto.Field(
|
|
679
|
+
proto.STRING,
|
|
680
|
+
number=1,
|
|
681
|
+
)
|
|
682
|
+
project: str = proto.Field(
|
|
683
|
+
proto.STRING,
|
|
684
|
+
number=2,
|
|
685
|
+
)
|
|
686
|
+
body: cloud_sql_resources.InstancesCloneRequest = proto.Field(
|
|
687
|
+
proto.MESSAGE,
|
|
688
|
+
number=100,
|
|
689
|
+
message=cloud_sql_resources.InstancesCloneRequest,
|
|
690
|
+
)
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
class SqlInstancesDeleteRequest(proto.Message):
|
|
694
|
+
r"""
|
|
695
|
+
|
|
696
|
+
This message has `oneof`_ fields (mutually exclusive fields).
|
|
697
|
+
For each oneof, at most one member field can be set at the same time.
|
|
698
|
+
Setting any member of the oneof automatically clears all other
|
|
699
|
+
members.
|
|
700
|
+
|
|
701
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
702
|
+
|
|
703
|
+
Attributes:
|
|
704
|
+
instance (str):
|
|
705
|
+
Cloud SQL instance ID. This does not include
|
|
706
|
+
the project ID.
|
|
707
|
+
project (str):
|
|
708
|
+
Project ID of the project that contains the
|
|
709
|
+
instance to be deleted.
|
|
710
|
+
enable_final_backup (bool):
|
|
711
|
+
Flag to opt-in for final backup. By default,
|
|
712
|
+
it is turned off.
|
|
713
|
+
|
|
714
|
+
This field is a member of `oneof`_ ``_enable_final_backup``.
|
|
715
|
+
final_backup_ttl_days (int):
|
|
716
|
+
Optional. Retention period of the final
|
|
717
|
+
backup.
|
|
718
|
+
|
|
719
|
+
This field is a member of `oneof`_ ``expiration``.
|
|
720
|
+
final_backup_expiry_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
721
|
+
Optional. Final Backup expiration time.
|
|
722
|
+
Timestamp in UTC of when this resource is
|
|
723
|
+
considered expired.
|
|
724
|
+
|
|
725
|
+
This field is a member of `oneof`_ ``expiration``.
|
|
726
|
+
final_backup_description (str):
|
|
727
|
+
Optional. The description of the final
|
|
728
|
+
backup.
|
|
729
|
+
"""
|
|
730
|
+
|
|
731
|
+
instance: str = proto.Field(
|
|
732
|
+
proto.STRING,
|
|
733
|
+
number=1,
|
|
734
|
+
)
|
|
735
|
+
project: str = proto.Field(
|
|
736
|
+
proto.STRING,
|
|
737
|
+
number=2,
|
|
738
|
+
)
|
|
739
|
+
enable_final_backup: bool = proto.Field(
|
|
740
|
+
proto.BOOL,
|
|
741
|
+
number=7,
|
|
742
|
+
optional=True,
|
|
743
|
+
)
|
|
744
|
+
final_backup_ttl_days: int = proto.Field(
|
|
745
|
+
proto.INT64,
|
|
746
|
+
number=4,
|
|
747
|
+
oneof="expiration",
|
|
748
|
+
)
|
|
749
|
+
final_backup_expiry_time: timestamp_pb2.Timestamp = proto.Field(
|
|
750
|
+
proto.MESSAGE,
|
|
751
|
+
number=6,
|
|
752
|
+
oneof="expiration",
|
|
753
|
+
message=timestamp_pb2.Timestamp,
|
|
754
|
+
)
|
|
755
|
+
final_backup_description: str = proto.Field(
|
|
756
|
+
proto.STRING,
|
|
757
|
+
number=5,
|
|
758
|
+
)
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
class SqlInstancesDemoteMasterRequest(proto.Message):
|
|
762
|
+
r"""
|
|
763
|
+
|
|
764
|
+
Attributes:
|
|
765
|
+
instance (str):
|
|
766
|
+
Cloud SQL instance name.
|
|
767
|
+
project (str):
|
|
768
|
+
ID of the project that contains the instance.
|
|
769
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesDemoteMasterRequest):
|
|
770
|
+
|
|
771
|
+
"""
|
|
772
|
+
|
|
773
|
+
instance: str = proto.Field(
|
|
774
|
+
proto.STRING,
|
|
775
|
+
number=1,
|
|
776
|
+
)
|
|
777
|
+
project: str = proto.Field(
|
|
778
|
+
proto.STRING,
|
|
779
|
+
number=2,
|
|
780
|
+
)
|
|
781
|
+
body: cloud_sql_resources.InstancesDemoteMasterRequest = proto.Field(
|
|
782
|
+
proto.MESSAGE,
|
|
783
|
+
number=100,
|
|
784
|
+
message=cloud_sql_resources.InstancesDemoteMasterRequest,
|
|
785
|
+
)
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
class SqlInstancesDemoteRequest(proto.Message):
|
|
789
|
+
r"""Instance demote request.
|
|
790
|
+
|
|
791
|
+
Attributes:
|
|
792
|
+
instance (str):
|
|
793
|
+
Required. The name of the Cloud SQL instance.
|
|
794
|
+
project (str):
|
|
795
|
+
Required. The project ID of the project that
|
|
796
|
+
contains the instance.
|
|
797
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesDemoteRequest):
|
|
798
|
+
The request body.
|
|
799
|
+
"""
|
|
800
|
+
|
|
801
|
+
instance: str = proto.Field(
|
|
802
|
+
proto.STRING,
|
|
803
|
+
number=1,
|
|
804
|
+
)
|
|
805
|
+
project: str = proto.Field(
|
|
806
|
+
proto.STRING,
|
|
807
|
+
number=2,
|
|
808
|
+
)
|
|
809
|
+
body: cloud_sql_resources.InstancesDemoteRequest = proto.Field(
|
|
810
|
+
proto.MESSAGE,
|
|
811
|
+
number=100,
|
|
812
|
+
message=cloud_sql_resources.InstancesDemoteRequest,
|
|
813
|
+
)
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
class SqlInstancesExportRequest(proto.Message):
|
|
817
|
+
r"""
|
|
818
|
+
|
|
819
|
+
Attributes:
|
|
820
|
+
instance (str):
|
|
821
|
+
The Cloud SQL instance ID. This doesn't
|
|
822
|
+
include the project ID.
|
|
823
|
+
project (str):
|
|
824
|
+
Project ID of the project that contains the
|
|
825
|
+
instance to be exported.
|
|
826
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesExportRequest):
|
|
827
|
+
|
|
828
|
+
"""
|
|
829
|
+
|
|
830
|
+
instance: str = proto.Field(
|
|
831
|
+
proto.STRING,
|
|
832
|
+
number=1,
|
|
833
|
+
)
|
|
834
|
+
project: str = proto.Field(
|
|
835
|
+
proto.STRING,
|
|
836
|
+
number=2,
|
|
837
|
+
)
|
|
838
|
+
body: cloud_sql_resources.InstancesExportRequest = proto.Field(
|
|
839
|
+
proto.MESSAGE,
|
|
840
|
+
number=100,
|
|
841
|
+
message=cloud_sql_resources.InstancesExportRequest,
|
|
842
|
+
)
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
class SqlInstancesFailoverRequest(proto.Message):
|
|
846
|
+
r"""
|
|
847
|
+
|
|
848
|
+
Attributes:
|
|
849
|
+
instance (str):
|
|
850
|
+
Cloud SQL instance ID. This does not include
|
|
851
|
+
the project ID.
|
|
852
|
+
project (str):
|
|
853
|
+
ID of the project that contains the read
|
|
854
|
+
replica.
|
|
855
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesFailoverRequest):
|
|
856
|
+
|
|
857
|
+
"""
|
|
858
|
+
|
|
859
|
+
instance: str = proto.Field(
|
|
860
|
+
proto.STRING,
|
|
861
|
+
number=1,
|
|
862
|
+
)
|
|
863
|
+
project: str = proto.Field(
|
|
864
|
+
proto.STRING,
|
|
865
|
+
number=2,
|
|
866
|
+
)
|
|
867
|
+
body: cloud_sql_resources.InstancesFailoverRequest = proto.Field(
|
|
868
|
+
proto.MESSAGE,
|
|
869
|
+
number=100,
|
|
870
|
+
message=cloud_sql_resources.InstancesFailoverRequest,
|
|
871
|
+
)
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
class SqlInstancesGetRequest(proto.Message):
|
|
875
|
+
r"""
|
|
876
|
+
|
|
877
|
+
Attributes:
|
|
878
|
+
instance (str):
|
|
879
|
+
Database instance ID. This does not include
|
|
880
|
+
the project ID.
|
|
881
|
+
project (str):
|
|
882
|
+
Project ID of the project that contains the
|
|
883
|
+
instance.
|
|
884
|
+
"""
|
|
885
|
+
|
|
886
|
+
instance: str = proto.Field(
|
|
887
|
+
proto.STRING,
|
|
888
|
+
number=1,
|
|
889
|
+
)
|
|
890
|
+
project: str = proto.Field(
|
|
891
|
+
proto.STRING,
|
|
892
|
+
number=2,
|
|
893
|
+
)
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
class SqlInstancesImportRequest(proto.Message):
|
|
897
|
+
r"""
|
|
898
|
+
|
|
899
|
+
Attributes:
|
|
900
|
+
instance (str):
|
|
901
|
+
Cloud SQL instance ID. This does not include
|
|
902
|
+
the project ID.
|
|
903
|
+
project (str):
|
|
904
|
+
Project ID of the project that contains the
|
|
905
|
+
instance.
|
|
906
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesImportRequest):
|
|
907
|
+
|
|
908
|
+
"""
|
|
909
|
+
|
|
910
|
+
instance: str = proto.Field(
|
|
911
|
+
proto.STRING,
|
|
912
|
+
number=1,
|
|
913
|
+
)
|
|
914
|
+
project: str = proto.Field(
|
|
915
|
+
proto.STRING,
|
|
916
|
+
number=2,
|
|
917
|
+
)
|
|
918
|
+
body: cloud_sql_resources.InstancesImportRequest = proto.Field(
|
|
919
|
+
proto.MESSAGE,
|
|
920
|
+
number=100,
|
|
921
|
+
message=cloud_sql_resources.InstancesImportRequest,
|
|
922
|
+
)
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
class SqlInstancesInsertRequest(proto.Message):
|
|
926
|
+
r"""
|
|
927
|
+
|
|
928
|
+
Attributes:
|
|
929
|
+
project (str):
|
|
930
|
+
Project ID of the project to which the newly
|
|
931
|
+
created Cloud SQL instances should belong.
|
|
932
|
+
body (google.cloud.sqladmin_v1beta4.types.DatabaseInstance):
|
|
933
|
+
|
|
934
|
+
"""
|
|
935
|
+
|
|
936
|
+
project: str = proto.Field(
|
|
937
|
+
proto.STRING,
|
|
938
|
+
number=1,
|
|
939
|
+
)
|
|
940
|
+
body: cloud_sql_resources.DatabaseInstance = proto.Field(
|
|
941
|
+
proto.MESSAGE,
|
|
942
|
+
number=100,
|
|
943
|
+
message=cloud_sql_resources.DatabaseInstance,
|
|
944
|
+
)
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
class SqlInstancesListRequest(proto.Message):
|
|
948
|
+
r"""
|
|
949
|
+
|
|
950
|
+
Attributes:
|
|
951
|
+
filter (str):
|
|
952
|
+
A filter expression that filters resources listed in the
|
|
953
|
+
response. The expression is in the form of field:value. For
|
|
954
|
+
example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be
|
|
955
|
+
nested as needed as per their JSON representation, such as
|
|
956
|
+
'settings.userLabels.auto_start:true'.
|
|
957
|
+
|
|
958
|
+
Multiple filter queries are space-separated. For example.
|
|
959
|
+
'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By
|
|
960
|
+
default, each expression is an AND expression. However, you
|
|
961
|
+
can include AND and OR expressions explicitly.
|
|
962
|
+
max_results (int):
|
|
963
|
+
The maximum number of instances to return.
|
|
964
|
+
The service may return fewer than this value. If
|
|
965
|
+
unspecified, at most 500 instances are returned.
|
|
966
|
+
The maximum value is 1000; values above 1000 are
|
|
967
|
+
coerced to 1000.
|
|
968
|
+
page_token (str):
|
|
969
|
+
A previously-returned page token representing
|
|
970
|
+
part of the larger set of results to view.
|
|
971
|
+
project (str):
|
|
972
|
+
Project ID of the project for which to list
|
|
973
|
+
Cloud SQL instances.
|
|
974
|
+
"""
|
|
975
|
+
|
|
976
|
+
filter: str = proto.Field(
|
|
977
|
+
proto.STRING,
|
|
978
|
+
number=1,
|
|
979
|
+
)
|
|
980
|
+
max_results: int = proto.Field(
|
|
981
|
+
proto.UINT32,
|
|
982
|
+
number=2,
|
|
983
|
+
)
|
|
984
|
+
page_token: str = proto.Field(
|
|
985
|
+
proto.STRING,
|
|
986
|
+
number=3,
|
|
987
|
+
)
|
|
988
|
+
project: str = proto.Field(
|
|
989
|
+
proto.STRING,
|
|
990
|
+
number=4,
|
|
991
|
+
)
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
class SqlInstancesListServerCasRequest(proto.Message):
|
|
995
|
+
r"""
|
|
996
|
+
|
|
997
|
+
Attributes:
|
|
998
|
+
instance (str):
|
|
999
|
+
Cloud SQL instance ID. This does not include
|
|
1000
|
+
the project ID.
|
|
1001
|
+
project (str):
|
|
1002
|
+
Project ID of the project that contains the
|
|
1003
|
+
instance.
|
|
1004
|
+
"""
|
|
1005
|
+
|
|
1006
|
+
instance: str = proto.Field(
|
|
1007
|
+
proto.STRING,
|
|
1008
|
+
number=1,
|
|
1009
|
+
)
|
|
1010
|
+
project: str = proto.Field(
|
|
1011
|
+
proto.STRING,
|
|
1012
|
+
number=2,
|
|
1013
|
+
)
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
class SqlInstancesListServerCertificatesRequest(proto.Message):
|
|
1017
|
+
r"""
|
|
1018
|
+
|
|
1019
|
+
Attributes:
|
|
1020
|
+
instance (str):
|
|
1021
|
+
Required. Cloud SQL instance ID. This does
|
|
1022
|
+
not include the project ID.
|
|
1023
|
+
project (str):
|
|
1024
|
+
Required. Project ID of the project that
|
|
1025
|
+
contains the instance.
|
|
1026
|
+
"""
|
|
1027
|
+
|
|
1028
|
+
instance: str = proto.Field(
|
|
1029
|
+
proto.STRING,
|
|
1030
|
+
number=1,
|
|
1031
|
+
)
|
|
1032
|
+
project: str = proto.Field(
|
|
1033
|
+
proto.STRING,
|
|
1034
|
+
number=2,
|
|
1035
|
+
)
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
class SqlInstancesListEntraIdCertificatesRequest(proto.Message):
|
|
1039
|
+
r"""Request message for
|
|
1040
|
+
SqlInstancesService.ListEntraIdCertificates.
|
|
1041
|
+
|
|
1042
|
+
Attributes:
|
|
1043
|
+
instance (str):
|
|
1044
|
+
Required. Cloud SQL instance ID. This does
|
|
1045
|
+
not include the project ID.
|
|
1046
|
+
project (str):
|
|
1047
|
+
Required. Project ID of the project that
|
|
1048
|
+
contains the instance.
|
|
1049
|
+
"""
|
|
1050
|
+
|
|
1051
|
+
instance: str = proto.Field(
|
|
1052
|
+
proto.STRING,
|
|
1053
|
+
number=1,
|
|
1054
|
+
)
|
|
1055
|
+
project: str = proto.Field(
|
|
1056
|
+
proto.STRING,
|
|
1057
|
+
number=2,
|
|
1058
|
+
)
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
class SqlInstancesPatchRequest(proto.Message):
|
|
1062
|
+
r"""
|
|
1063
|
+
|
|
1064
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
1065
|
+
|
|
1066
|
+
Attributes:
|
|
1067
|
+
instance (str):
|
|
1068
|
+
Cloud SQL instance ID. This does not include
|
|
1069
|
+
the project ID.
|
|
1070
|
+
project (str):
|
|
1071
|
+
Project ID of the project that contains the
|
|
1072
|
+
instance.
|
|
1073
|
+
reconcile_psc_networking (bool):
|
|
1074
|
+
Optional. Set PSC config to the same value as
|
|
1075
|
+
the existing config to reconcile the PSC
|
|
1076
|
+
networking.
|
|
1077
|
+
|
|
1078
|
+
This field is a member of `oneof`_ ``_reconcile_psc_networking``.
|
|
1079
|
+
reconcile_psc_networking_force (bool):
|
|
1080
|
+
Optional. Set PSC config to the same value as
|
|
1081
|
+
the existing config and force reconcile the PSC
|
|
1082
|
+
networking.
|
|
1083
|
+
|
|
1084
|
+
This field is a member of `oneof`_ ``_reconcile_psc_networking_force``.
|
|
1085
|
+
body (google.cloud.sqladmin_v1beta4.types.DatabaseInstance):
|
|
1086
|
+
|
|
1087
|
+
"""
|
|
1088
|
+
|
|
1089
|
+
instance: str = proto.Field(
|
|
1090
|
+
proto.STRING,
|
|
1091
|
+
number=1,
|
|
1092
|
+
)
|
|
1093
|
+
project: str = proto.Field(
|
|
1094
|
+
proto.STRING,
|
|
1095
|
+
number=2,
|
|
1096
|
+
)
|
|
1097
|
+
reconcile_psc_networking: bool = proto.Field(
|
|
1098
|
+
proto.BOOL,
|
|
1099
|
+
number=4,
|
|
1100
|
+
optional=True,
|
|
1101
|
+
)
|
|
1102
|
+
reconcile_psc_networking_force: bool = proto.Field(
|
|
1103
|
+
proto.BOOL,
|
|
1104
|
+
number=5,
|
|
1105
|
+
optional=True,
|
|
1106
|
+
)
|
|
1107
|
+
body: cloud_sql_resources.DatabaseInstance = proto.Field(
|
|
1108
|
+
proto.MESSAGE,
|
|
1109
|
+
number=100,
|
|
1110
|
+
message=cloud_sql_resources.DatabaseInstance,
|
|
1111
|
+
)
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
class SqlInstancesPromoteReplicaRequest(proto.Message):
|
|
1115
|
+
r"""
|
|
1116
|
+
|
|
1117
|
+
Attributes:
|
|
1118
|
+
instance (str):
|
|
1119
|
+
Cloud SQL read replica instance name.
|
|
1120
|
+
project (str):
|
|
1121
|
+
ID of the project that contains the read
|
|
1122
|
+
replica.
|
|
1123
|
+
failover (bool):
|
|
1124
|
+
Set to true to invoke a replica failover to
|
|
1125
|
+
the DR replica. As part of replica failover, the
|
|
1126
|
+
promote operation attempts to add the original
|
|
1127
|
+
primary instance as a replica of the promoted DR
|
|
1128
|
+
replica when the original primary instance comes
|
|
1129
|
+
back online. If set to false or not specified,
|
|
1130
|
+
then the original primary instance becomes an
|
|
1131
|
+
independent Cloud SQL primary instance.
|
|
1132
|
+
"""
|
|
1133
|
+
|
|
1134
|
+
instance: str = proto.Field(
|
|
1135
|
+
proto.STRING,
|
|
1136
|
+
number=1,
|
|
1137
|
+
)
|
|
1138
|
+
project: str = proto.Field(
|
|
1139
|
+
proto.STRING,
|
|
1140
|
+
number=2,
|
|
1141
|
+
)
|
|
1142
|
+
failover: bool = proto.Field(
|
|
1143
|
+
proto.BOOL,
|
|
1144
|
+
number=3,
|
|
1145
|
+
)
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
class SqlInstancesSwitchoverRequest(proto.Message):
|
|
1149
|
+
r"""Instance switchover request.
|
|
1150
|
+
|
|
1151
|
+
Attributes:
|
|
1152
|
+
instance (str):
|
|
1153
|
+
Cloud SQL read replica instance name.
|
|
1154
|
+
project (str):
|
|
1155
|
+
ID of the project that contains the replica.
|
|
1156
|
+
db_timeout (google.protobuf.duration_pb2.Duration):
|
|
1157
|
+
Optional. (MySQL and PostgreSQL only) Cloud
|
|
1158
|
+
SQL instance operations timeout, which is a sum
|
|
1159
|
+
of all database operations. Default value is 10
|
|
1160
|
+
minutes and can be modified to a maximum value
|
|
1161
|
+
of 24 hours.
|
|
1162
|
+
"""
|
|
1163
|
+
|
|
1164
|
+
instance: str = proto.Field(
|
|
1165
|
+
proto.STRING,
|
|
1166
|
+
number=1,
|
|
1167
|
+
)
|
|
1168
|
+
project: str = proto.Field(
|
|
1169
|
+
proto.STRING,
|
|
1170
|
+
number=2,
|
|
1171
|
+
)
|
|
1172
|
+
db_timeout: duration_pb2.Duration = proto.Field(
|
|
1173
|
+
proto.MESSAGE,
|
|
1174
|
+
number=3,
|
|
1175
|
+
message=duration_pb2.Duration,
|
|
1176
|
+
)
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
class SqlInstancesResetSslConfigRequest(proto.Message):
|
|
1180
|
+
r"""
|
|
1181
|
+
|
|
1182
|
+
Attributes:
|
|
1183
|
+
instance (str):
|
|
1184
|
+
Cloud SQL instance ID. This does not include
|
|
1185
|
+
the project ID.
|
|
1186
|
+
project (str):
|
|
1187
|
+
Project ID of the project that contains the
|
|
1188
|
+
instance.
|
|
1189
|
+
mode (google.cloud.sqladmin_v1beta4.types.SqlInstancesResetSslConfigRequest.ResetSslMode):
|
|
1190
|
+
Optional. Reset SSL mode to use.
|
|
1191
|
+
"""
|
|
1192
|
+
|
|
1193
|
+
class ResetSslMode(proto.Enum):
|
|
1194
|
+
r"""Reset SSL mode to selectively refresh the SSL materials.
|
|
1195
|
+
|
|
1196
|
+
Values:
|
|
1197
|
+
RESET_SSL_MODE_UNSPECIFIED (0):
|
|
1198
|
+
Reset SSL mode is not specified.
|
|
1199
|
+
ALL (1):
|
|
1200
|
+
Refresh all TLS configs. This is the default
|
|
1201
|
+
behaviour.
|
|
1202
|
+
SYNC_FROM_PRIMARY (2):
|
|
1203
|
+
Refreshes the replication-related TLS
|
|
1204
|
+
configuration settings provided by the primary
|
|
1205
|
+
instance. Not applicable to on-premises
|
|
1206
|
+
replication instances.
|
|
1207
|
+
"""
|
|
1208
|
+
|
|
1209
|
+
RESET_SSL_MODE_UNSPECIFIED = 0
|
|
1210
|
+
ALL = 1
|
|
1211
|
+
SYNC_FROM_PRIMARY = 2
|
|
1212
|
+
|
|
1213
|
+
instance: str = proto.Field(
|
|
1214
|
+
proto.STRING,
|
|
1215
|
+
number=1,
|
|
1216
|
+
)
|
|
1217
|
+
project: str = proto.Field(
|
|
1218
|
+
proto.STRING,
|
|
1219
|
+
number=2,
|
|
1220
|
+
)
|
|
1221
|
+
mode: ResetSslMode = proto.Field(
|
|
1222
|
+
proto.ENUM,
|
|
1223
|
+
number=3,
|
|
1224
|
+
enum=ResetSslMode,
|
|
1225
|
+
)
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
class SqlInstancesRestartRequest(proto.Message):
|
|
1229
|
+
r"""
|
|
1230
|
+
|
|
1231
|
+
Attributes:
|
|
1232
|
+
instance (str):
|
|
1233
|
+
Cloud SQL instance ID. This does not include
|
|
1234
|
+
the project ID.
|
|
1235
|
+
project (str):
|
|
1236
|
+
Project ID of the project that contains the
|
|
1237
|
+
instance to be restarted.
|
|
1238
|
+
"""
|
|
1239
|
+
|
|
1240
|
+
instance: str = proto.Field(
|
|
1241
|
+
proto.STRING,
|
|
1242
|
+
number=1,
|
|
1243
|
+
)
|
|
1244
|
+
project: str = proto.Field(
|
|
1245
|
+
proto.STRING,
|
|
1246
|
+
number=2,
|
|
1247
|
+
)
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
class SqlInstancesRestoreBackupRequest(proto.Message):
|
|
1251
|
+
r"""
|
|
1252
|
+
|
|
1253
|
+
Attributes:
|
|
1254
|
+
instance (str):
|
|
1255
|
+
Cloud SQL instance ID. This does not include
|
|
1256
|
+
the project ID.
|
|
1257
|
+
project (str):
|
|
1258
|
+
Project ID of the project that contains the
|
|
1259
|
+
instance.
|
|
1260
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesRestoreBackupRequest):
|
|
1261
|
+
|
|
1262
|
+
"""
|
|
1263
|
+
|
|
1264
|
+
instance: str = proto.Field(
|
|
1265
|
+
proto.STRING,
|
|
1266
|
+
number=1,
|
|
1267
|
+
)
|
|
1268
|
+
project: str = proto.Field(
|
|
1269
|
+
proto.STRING,
|
|
1270
|
+
number=2,
|
|
1271
|
+
)
|
|
1272
|
+
body: cloud_sql_resources.InstancesRestoreBackupRequest = proto.Field(
|
|
1273
|
+
proto.MESSAGE,
|
|
1274
|
+
number=100,
|
|
1275
|
+
message=cloud_sql_resources.InstancesRestoreBackupRequest,
|
|
1276
|
+
)
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
class SqlInstancesRotateServerCaRequest(proto.Message):
|
|
1280
|
+
r"""
|
|
1281
|
+
|
|
1282
|
+
Attributes:
|
|
1283
|
+
instance (str):
|
|
1284
|
+
Cloud SQL instance ID. This does not include
|
|
1285
|
+
the project ID.
|
|
1286
|
+
project (str):
|
|
1287
|
+
Project ID of the project that contains the
|
|
1288
|
+
instance.
|
|
1289
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesRotateServerCaRequest):
|
|
1290
|
+
|
|
1291
|
+
"""
|
|
1292
|
+
|
|
1293
|
+
instance: str = proto.Field(
|
|
1294
|
+
proto.STRING,
|
|
1295
|
+
number=1,
|
|
1296
|
+
)
|
|
1297
|
+
project: str = proto.Field(
|
|
1298
|
+
proto.STRING,
|
|
1299
|
+
number=2,
|
|
1300
|
+
)
|
|
1301
|
+
body: cloud_sql_resources.InstancesRotateServerCaRequest = proto.Field(
|
|
1302
|
+
proto.MESSAGE,
|
|
1303
|
+
number=100,
|
|
1304
|
+
message=cloud_sql_resources.InstancesRotateServerCaRequest,
|
|
1305
|
+
)
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
class SqlInstancesRotateServerCertificateRequest(proto.Message):
|
|
1309
|
+
r"""
|
|
1310
|
+
|
|
1311
|
+
Attributes:
|
|
1312
|
+
instance (str):
|
|
1313
|
+
Required. Cloud SQL instance ID. This does
|
|
1314
|
+
not include the project ID.
|
|
1315
|
+
project (str):
|
|
1316
|
+
Required. Project ID of the project that
|
|
1317
|
+
contains the instance.
|
|
1318
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesRotateServerCertificateRequest):
|
|
1319
|
+
Required. Rotate server certificate request
|
|
1320
|
+
body.
|
|
1321
|
+
"""
|
|
1322
|
+
|
|
1323
|
+
instance: str = proto.Field(
|
|
1324
|
+
proto.STRING,
|
|
1325
|
+
number=1,
|
|
1326
|
+
)
|
|
1327
|
+
project: str = proto.Field(
|
|
1328
|
+
proto.STRING,
|
|
1329
|
+
number=2,
|
|
1330
|
+
)
|
|
1331
|
+
body: cloud_sql_resources.InstancesRotateServerCertificateRequest = proto.Field(
|
|
1332
|
+
proto.MESSAGE,
|
|
1333
|
+
number=100,
|
|
1334
|
+
message=cloud_sql_resources.InstancesRotateServerCertificateRequest,
|
|
1335
|
+
)
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
class SqlInstancesRotateEntraIdCertificateRequest(proto.Message):
|
|
1339
|
+
r"""Request message for
|
|
1340
|
+
SqlInstancesService.RotateEntraIdCertificate.
|
|
1341
|
+
|
|
1342
|
+
Attributes:
|
|
1343
|
+
instance (str):
|
|
1344
|
+
Required. Cloud SQL instance ID. This does
|
|
1345
|
+
not include the project ID.
|
|
1346
|
+
project (str):
|
|
1347
|
+
Required. Project ID of the project that
|
|
1348
|
+
contains the instance.
|
|
1349
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesRotateEntraIdCertificateRequest):
|
|
1350
|
+
Required. Rotate Entra ID certificate request
|
|
1351
|
+
body.
|
|
1352
|
+
"""
|
|
1353
|
+
|
|
1354
|
+
instance: str = proto.Field(
|
|
1355
|
+
proto.STRING,
|
|
1356
|
+
number=1,
|
|
1357
|
+
)
|
|
1358
|
+
project: str = proto.Field(
|
|
1359
|
+
proto.STRING,
|
|
1360
|
+
number=2,
|
|
1361
|
+
)
|
|
1362
|
+
body: cloud_sql_resources.InstancesRotateEntraIdCertificateRequest = proto.Field(
|
|
1363
|
+
proto.MESSAGE,
|
|
1364
|
+
number=100,
|
|
1365
|
+
message=cloud_sql_resources.InstancesRotateEntraIdCertificateRequest,
|
|
1366
|
+
)
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
class SqlInstancesStartReplicaRequest(proto.Message):
|
|
1370
|
+
r"""
|
|
1371
|
+
|
|
1372
|
+
Attributes:
|
|
1373
|
+
instance (str):
|
|
1374
|
+
Cloud SQL read replica instance name.
|
|
1375
|
+
project (str):
|
|
1376
|
+
ID of the project that contains the read
|
|
1377
|
+
replica.
|
|
1378
|
+
"""
|
|
1379
|
+
|
|
1380
|
+
instance: str = proto.Field(
|
|
1381
|
+
proto.STRING,
|
|
1382
|
+
number=1,
|
|
1383
|
+
)
|
|
1384
|
+
project: str = proto.Field(
|
|
1385
|
+
proto.STRING,
|
|
1386
|
+
number=2,
|
|
1387
|
+
)
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
class SqlInstancesStopReplicaRequest(proto.Message):
|
|
1391
|
+
r"""
|
|
1392
|
+
|
|
1393
|
+
Attributes:
|
|
1394
|
+
instance (str):
|
|
1395
|
+
Cloud SQL read replica instance name.
|
|
1396
|
+
project (str):
|
|
1397
|
+
ID of the project that contains the read
|
|
1398
|
+
replica.
|
|
1399
|
+
"""
|
|
1400
|
+
|
|
1401
|
+
instance: str = proto.Field(
|
|
1402
|
+
proto.STRING,
|
|
1403
|
+
number=1,
|
|
1404
|
+
)
|
|
1405
|
+
project: str = proto.Field(
|
|
1406
|
+
proto.STRING,
|
|
1407
|
+
number=2,
|
|
1408
|
+
)
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
class SqlInstancesTruncateLogRequest(proto.Message):
|
|
1412
|
+
r"""
|
|
1413
|
+
|
|
1414
|
+
Attributes:
|
|
1415
|
+
instance (str):
|
|
1416
|
+
Cloud SQL instance ID. This does not include
|
|
1417
|
+
the project ID.
|
|
1418
|
+
project (str):
|
|
1419
|
+
Project ID of the Cloud SQL project.
|
|
1420
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesTruncateLogRequest):
|
|
1421
|
+
|
|
1422
|
+
"""
|
|
1423
|
+
|
|
1424
|
+
instance: str = proto.Field(
|
|
1425
|
+
proto.STRING,
|
|
1426
|
+
number=1,
|
|
1427
|
+
)
|
|
1428
|
+
project: str = proto.Field(
|
|
1429
|
+
proto.STRING,
|
|
1430
|
+
number=2,
|
|
1431
|
+
)
|
|
1432
|
+
body: cloud_sql_resources.InstancesTruncateLogRequest = proto.Field(
|
|
1433
|
+
proto.MESSAGE,
|
|
1434
|
+
number=100,
|
|
1435
|
+
message=cloud_sql_resources.InstancesTruncateLogRequest,
|
|
1436
|
+
)
|
|
1437
|
+
|
|
1438
|
+
|
|
1439
|
+
class SqlInstancesUpdateRequest(proto.Message):
|
|
1440
|
+
r"""
|
|
1441
|
+
|
|
1442
|
+
Attributes:
|
|
1443
|
+
instance (str):
|
|
1444
|
+
Cloud SQL instance ID. This does not include
|
|
1445
|
+
the project ID.
|
|
1446
|
+
project (str):
|
|
1447
|
+
Project ID of the project that contains the
|
|
1448
|
+
instance.
|
|
1449
|
+
body (google.cloud.sqladmin_v1beta4.types.DatabaseInstance):
|
|
1450
|
+
|
|
1451
|
+
"""
|
|
1452
|
+
|
|
1453
|
+
instance: str = proto.Field(
|
|
1454
|
+
proto.STRING,
|
|
1455
|
+
number=1,
|
|
1456
|
+
)
|
|
1457
|
+
project: str = proto.Field(
|
|
1458
|
+
proto.STRING,
|
|
1459
|
+
number=2,
|
|
1460
|
+
)
|
|
1461
|
+
body: cloud_sql_resources.DatabaseInstance = proto.Field(
|
|
1462
|
+
proto.MESSAGE,
|
|
1463
|
+
number=100,
|
|
1464
|
+
message=cloud_sql_resources.DatabaseInstance,
|
|
1465
|
+
)
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
class SqlInstancesReencryptRequest(proto.Message):
|
|
1469
|
+
r"""Instance reencrypt request.
|
|
1470
|
+
|
|
1471
|
+
Attributes:
|
|
1472
|
+
instance (str):
|
|
1473
|
+
Cloud SQL instance ID. This does not include
|
|
1474
|
+
the project ID.
|
|
1475
|
+
project (str):
|
|
1476
|
+
ID of the project that contains the instance.
|
|
1477
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesReencryptRequest):
|
|
1478
|
+
Reencrypt body that users request
|
|
1479
|
+
"""
|
|
1480
|
+
|
|
1481
|
+
instance: str = proto.Field(
|
|
1482
|
+
proto.STRING,
|
|
1483
|
+
number=1,
|
|
1484
|
+
)
|
|
1485
|
+
project: str = proto.Field(
|
|
1486
|
+
proto.STRING,
|
|
1487
|
+
number=2,
|
|
1488
|
+
)
|
|
1489
|
+
body: "InstancesReencryptRequest" = proto.Field(
|
|
1490
|
+
proto.MESSAGE,
|
|
1491
|
+
number=3,
|
|
1492
|
+
message="InstancesReencryptRequest",
|
|
1493
|
+
)
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
class InstancesReencryptRequest(proto.Message):
|
|
1497
|
+
r"""Database Instance reencrypt request.
|
|
1498
|
+
|
|
1499
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
1500
|
+
|
|
1501
|
+
Attributes:
|
|
1502
|
+
backup_reencryption_config (google.cloud.sqladmin_v1beta4.types.BackupReencryptionConfig):
|
|
1503
|
+
Configuration specific to backup
|
|
1504
|
+
re-encryption
|
|
1505
|
+
|
|
1506
|
+
This field is a member of `oneof`_ ``_backup_reencryption_config``.
|
|
1507
|
+
"""
|
|
1508
|
+
|
|
1509
|
+
backup_reencryption_config: "BackupReencryptionConfig" = proto.Field(
|
|
1510
|
+
proto.MESSAGE,
|
|
1511
|
+
number=1,
|
|
1512
|
+
optional=True,
|
|
1513
|
+
message="BackupReencryptionConfig",
|
|
1514
|
+
)
|
|
1515
|
+
|
|
1516
|
+
|
|
1517
|
+
class BackupReencryptionConfig(proto.Message):
|
|
1518
|
+
r"""Backup Reencryption Config
|
|
1519
|
+
|
|
1520
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
1521
|
+
|
|
1522
|
+
Attributes:
|
|
1523
|
+
backup_limit (int):
|
|
1524
|
+
Backup re-encryption limit
|
|
1525
|
+
|
|
1526
|
+
This field is a member of `oneof`_ ``_backup_limit``.
|
|
1527
|
+
backup_type (google.cloud.sqladmin_v1beta4.types.BackupReencryptionConfig.BackupType):
|
|
1528
|
+
Type of backups users want to re-encrypt.
|
|
1529
|
+
|
|
1530
|
+
This field is a member of `oneof`_ ``_backup_type``.
|
|
1531
|
+
"""
|
|
1532
|
+
|
|
1533
|
+
class BackupType(proto.Enum):
|
|
1534
|
+
r"""Backup type for re-encryption
|
|
1535
|
+
|
|
1536
|
+
Values:
|
|
1537
|
+
BACKUP_TYPE_UNSPECIFIED (0):
|
|
1538
|
+
Unknown backup type, will be defaulted to
|
|
1539
|
+
AUTOMATIC backup type
|
|
1540
|
+
AUTOMATED (1):
|
|
1541
|
+
Reencrypt automatic backups
|
|
1542
|
+
ON_DEMAND (2):
|
|
1543
|
+
Reencrypt on-demand backups
|
|
1544
|
+
"""
|
|
1545
|
+
|
|
1546
|
+
BACKUP_TYPE_UNSPECIFIED = 0
|
|
1547
|
+
AUTOMATED = 1
|
|
1548
|
+
ON_DEMAND = 2
|
|
1549
|
+
|
|
1550
|
+
backup_limit: int = proto.Field(
|
|
1551
|
+
proto.INT32,
|
|
1552
|
+
number=1,
|
|
1553
|
+
optional=True,
|
|
1554
|
+
)
|
|
1555
|
+
backup_type: BackupType = proto.Field(
|
|
1556
|
+
proto.ENUM,
|
|
1557
|
+
number=2,
|
|
1558
|
+
optional=True,
|
|
1559
|
+
enum=BackupType,
|
|
1560
|
+
)
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
class SqlInstancesRescheduleMaintenanceRequest(proto.Message):
|
|
1564
|
+
r"""
|
|
1565
|
+
|
|
1566
|
+
Attributes:
|
|
1567
|
+
instance (str):
|
|
1568
|
+
Cloud SQL instance ID. This does not include
|
|
1569
|
+
the project ID.
|
|
1570
|
+
project (str):
|
|
1571
|
+
ID of the project that contains the instance.
|
|
1572
|
+
body (google.cloud.sqladmin_v1beta4.types.SqlInstancesRescheduleMaintenanceRequestBody):
|
|
1573
|
+
|
|
1574
|
+
"""
|
|
1575
|
+
|
|
1576
|
+
instance: str = proto.Field(
|
|
1577
|
+
proto.STRING,
|
|
1578
|
+
number=1,
|
|
1579
|
+
)
|
|
1580
|
+
project: str = proto.Field(
|
|
1581
|
+
proto.STRING,
|
|
1582
|
+
number=2,
|
|
1583
|
+
)
|
|
1584
|
+
body: cloud_sql_resources.SqlInstancesRescheduleMaintenanceRequestBody = (
|
|
1585
|
+
proto.Field(
|
|
1586
|
+
proto.MESSAGE,
|
|
1587
|
+
number=100,
|
|
1588
|
+
message=cloud_sql_resources.SqlInstancesRescheduleMaintenanceRequestBody,
|
|
1589
|
+
)
|
|
1590
|
+
)
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
class SqlInstancesPerformDiskShrinkRequest(proto.Message):
|
|
1594
|
+
r"""Instance perform disk shrink request.
|
|
1595
|
+
|
|
1596
|
+
Attributes:
|
|
1597
|
+
instance (str):
|
|
1598
|
+
Cloud SQL instance ID. This does not include
|
|
1599
|
+
the project ID.
|
|
1600
|
+
project (str):
|
|
1601
|
+
Project ID of the project that contains the
|
|
1602
|
+
instance.
|
|
1603
|
+
body (google.cloud.sqladmin_v1beta4.types.PerformDiskShrinkContext):
|
|
1604
|
+
Perform disk shrink context.
|
|
1605
|
+
"""
|
|
1606
|
+
|
|
1607
|
+
instance: str = proto.Field(
|
|
1608
|
+
proto.STRING,
|
|
1609
|
+
number=1,
|
|
1610
|
+
)
|
|
1611
|
+
project: str = proto.Field(
|
|
1612
|
+
proto.STRING,
|
|
1613
|
+
number=2,
|
|
1614
|
+
)
|
|
1615
|
+
body: cloud_sql_resources.PerformDiskShrinkContext = proto.Field(
|
|
1616
|
+
proto.MESSAGE,
|
|
1617
|
+
number=100,
|
|
1618
|
+
message=cloud_sql_resources.PerformDiskShrinkContext,
|
|
1619
|
+
)
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
class ExternalSyncSelectedObject(proto.Message):
|
|
1623
|
+
r"""The selected object that Cloud SQL migrates.
|
|
1624
|
+
|
|
1625
|
+
Attributes:
|
|
1626
|
+
database (str):
|
|
1627
|
+
The name of the database that Cloud SQL
|
|
1628
|
+
migrates.
|
|
1629
|
+
"""
|
|
1630
|
+
|
|
1631
|
+
database: str = proto.Field(
|
|
1632
|
+
proto.STRING,
|
|
1633
|
+
number=1,
|
|
1634
|
+
)
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
class SqlInstancesVerifyExternalSyncSettingsRequest(proto.Message):
|
|
1638
|
+
r"""
|
|
1639
|
+
|
|
1640
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
1641
|
+
|
|
1642
|
+
Attributes:
|
|
1643
|
+
instance (str):
|
|
1644
|
+
Cloud SQL instance ID. This does not include
|
|
1645
|
+
the project ID.
|
|
1646
|
+
project (str):
|
|
1647
|
+
Project ID of the project that contains the
|
|
1648
|
+
instance.
|
|
1649
|
+
verify_connection_only (bool):
|
|
1650
|
+
Flag to enable verifying connection only
|
|
1651
|
+
sync_mode (google.cloud.sqladmin_v1beta4.types.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode):
|
|
1652
|
+
External sync mode
|
|
1653
|
+
verify_replication_only (bool):
|
|
1654
|
+
Optional. Flag to verify settings required by
|
|
1655
|
+
replication setup only
|
|
1656
|
+
mysql_sync_config (google.cloud.sqladmin_v1beta4.types.MySqlSyncConfig):
|
|
1657
|
+
Optional. MySQL-specific settings for start
|
|
1658
|
+
external sync.
|
|
1659
|
+
|
|
1660
|
+
This field is a member of `oneof`_ ``sync_config``.
|
|
1661
|
+
migration_type (google.cloud.sqladmin_v1beta4.types.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType):
|
|
1662
|
+
Optional. MigrationType configures the migration to use
|
|
1663
|
+
physical files or logical dump files. If not set, then the
|
|
1664
|
+
logical dump file configuration is used. Valid values are
|
|
1665
|
+
``LOGICAL`` or ``PHYSICAL``. Only applicable to MySQL.
|
|
1666
|
+
sync_parallel_level (google.cloud.sqladmin_v1beta4.types.ExternalSyncParallelLevel):
|
|
1667
|
+
Optional. Parallel level for initial data
|
|
1668
|
+
sync. Only applicable for PostgreSQL.
|
|
1669
|
+
selected_objects (MutableSequence[google.cloud.sqladmin_v1beta4.types.ExternalSyncSelectedObject]):
|
|
1670
|
+
Optional. Migrate only the specified objects
|
|
1671
|
+
from the source instance. If this field is
|
|
1672
|
+
empty, then migrate all objects.
|
|
1673
|
+
"""
|
|
1674
|
+
|
|
1675
|
+
class ExternalSyncMode(proto.Enum):
|
|
1676
|
+
r"""
|
|
1677
|
+
|
|
1678
|
+
Values:
|
|
1679
|
+
EXTERNAL_SYNC_MODE_UNSPECIFIED (0):
|
|
1680
|
+
Unknown external sync mode, will be defaulted
|
|
1681
|
+
to ONLINE mode
|
|
1682
|
+
ONLINE (1):
|
|
1683
|
+
Online external sync will set up replication
|
|
1684
|
+
after initial data external sync
|
|
1685
|
+
OFFLINE (2):
|
|
1686
|
+
Offline external sync only dumps and loads a
|
|
1687
|
+
one-time snapshot of the primary instance's data
|
|
1688
|
+
"""
|
|
1689
|
+
|
|
1690
|
+
EXTERNAL_SYNC_MODE_UNSPECIFIED = 0
|
|
1691
|
+
ONLINE = 1
|
|
1692
|
+
OFFLINE = 2
|
|
1693
|
+
|
|
1694
|
+
class MigrationType(proto.Enum):
|
|
1695
|
+
r"""MigrationType determines whether the migration is a physical
|
|
1696
|
+
file-based migration or a logical dump file-based migration.
|
|
1697
|
+
|
|
1698
|
+
Values:
|
|
1699
|
+
MIGRATION_TYPE_UNSPECIFIED (0):
|
|
1700
|
+
Default value is a logical dump file-based
|
|
1701
|
+
migration
|
|
1702
|
+
LOGICAL (1):
|
|
1703
|
+
Logical dump file-based migration
|
|
1704
|
+
PHYSICAL (2):
|
|
1705
|
+
Physical file-based migration
|
|
1706
|
+
"""
|
|
1707
|
+
|
|
1708
|
+
MIGRATION_TYPE_UNSPECIFIED = 0
|
|
1709
|
+
LOGICAL = 1
|
|
1710
|
+
PHYSICAL = 2
|
|
1711
|
+
|
|
1712
|
+
instance: str = proto.Field(
|
|
1713
|
+
proto.STRING,
|
|
1714
|
+
number=1,
|
|
1715
|
+
)
|
|
1716
|
+
project: str = proto.Field(
|
|
1717
|
+
proto.STRING,
|
|
1718
|
+
number=2,
|
|
1719
|
+
)
|
|
1720
|
+
verify_connection_only: bool = proto.Field(
|
|
1721
|
+
proto.BOOL,
|
|
1722
|
+
number=3,
|
|
1723
|
+
)
|
|
1724
|
+
sync_mode: ExternalSyncMode = proto.Field(
|
|
1725
|
+
proto.ENUM,
|
|
1726
|
+
number=4,
|
|
1727
|
+
enum=ExternalSyncMode,
|
|
1728
|
+
)
|
|
1729
|
+
verify_replication_only: bool = proto.Field(
|
|
1730
|
+
proto.BOOL,
|
|
1731
|
+
number=5,
|
|
1732
|
+
)
|
|
1733
|
+
mysql_sync_config: cloud_sql_resources.MySqlSyncConfig = proto.Field(
|
|
1734
|
+
proto.MESSAGE,
|
|
1735
|
+
number=6,
|
|
1736
|
+
oneof="sync_config",
|
|
1737
|
+
message=cloud_sql_resources.MySqlSyncConfig,
|
|
1738
|
+
)
|
|
1739
|
+
migration_type: MigrationType = proto.Field(
|
|
1740
|
+
proto.ENUM,
|
|
1741
|
+
number=7,
|
|
1742
|
+
enum=MigrationType,
|
|
1743
|
+
)
|
|
1744
|
+
sync_parallel_level: "ExternalSyncParallelLevel" = proto.Field(
|
|
1745
|
+
proto.ENUM,
|
|
1746
|
+
number=8,
|
|
1747
|
+
enum="ExternalSyncParallelLevel",
|
|
1748
|
+
)
|
|
1749
|
+
selected_objects: MutableSequence["ExternalSyncSelectedObject"] = (
|
|
1750
|
+
proto.RepeatedField(
|
|
1751
|
+
proto.MESSAGE,
|
|
1752
|
+
number=9,
|
|
1753
|
+
message="ExternalSyncSelectedObject",
|
|
1754
|
+
)
|
|
1755
|
+
)
|
|
1756
|
+
|
|
1757
|
+
|
|
1758
|
+
class SqlInstancesStartExternalSyncRequest(proto.Message):
|
|
1759
|
+
r"""
|
|
1760
|
+
|
|
1761
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
1762
|
+
|
|
1763
|
+
Attributes:
|
|
1764
|
+
instance (str):
|
|
1765
|
+
Cloud SQL instance ID. This does not include
|
|
1766
|
+
the project ID.
|
|
1767
|
+
project (str):
|
|
1768
|
+
ID of the project that contains the instance.
|
|
1769
|
+
sync_mode (google.cloud.sqladmin_v1beta4.types.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode):
|
|
1770
|
+
External sync mode.
|
|
1771
|
+
skip_verification (bool):
|
|
1772
|
+
Whether to skip the verification step (VESS).
|
|
1773
|
+
mysql_sync_config (google.cloud.sqladmin_v1beta4.types.MySqlSyncConfig):
|
|
1774
|
+
MySQL-specific settings for start external
|
|
1775
|
+
sync.
|
|
1776
|
+
|
|
1777
|
+
This field is a member of `oneof`_ ``sync_config``.
|
|
1778
|
+
sync_parallel_level (google.cloud.sqladmin_v1beta4.types.ExternalSyncParallelLevel):
|
|
1779
|
+
Optional. Parallel level for initial data
|
|
1780
|
+
sync. Currently only applicable for MySQL.
|
|
1781
|
+
migration_type (google.cloud.sqladmin_v1beta4.types.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType):
|
|
1782
|
+
Optional. MigrationType configures the migration to use
|
|
1783
|
+
physical files or logical dump files. If not set, then the
|
|
1784
|
+
logical dump file configuration is used. Valid values are
|
|
1785
|
+
``LOGICAL`` or ``PHYSICAL``. Only applicable to MySQL.
|
|
1786
|
+
replica_overwrite_enabled (bool):
|
|
1787
|
+
Optional. MySQL only. True if end-user has confirmed that
|
|
1788
|
+
this SES call will wipe replica databases overlapping with
|
|
1789
|
+
the proposed selected_objects. If this field is not set and
|
|
1790
|
+
there are both overlapping and additional databases
|
|
1791
|
+
proposed, an error will be returned.
|
|
1792
|
+
"""
|
|
1793
|
+
|
|
1794
|
+
instance: str = proto.Field(
|
|
1795
|
+
proto.STRING,
|
|
1796
|
+
number=1,
|
|
1797
|
+
)
|
|
1798
|
+
project: str = proto.Field(
|
|
1799
|
+
proto.STRING,
|
|
1800
|
+
number=2,
|
|
1801
|
+
)
|
|
1802
|
+
sync_mode: "SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode" = (
|
|
1803
|
+
proto.Field(
|
|
1804
|
+
proto.ENUM,
|
|
1805
|
+
number=3,
|
|
1806
|
+
enum="SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode",
|
|
1807
|
+
)
|
|
1808
|
+
)
|
|
1809
|
+
skip_verification: bool = proto.Field(
|
|
1810
|
+
proto.BOOL,
|
|
1811
|
+
number=4,
|
|
1812
|
+
)
|
|
1813
|
+
mysql_sync_config: cloud_sql_resources.MySqlSyncConfig = proto.Field(
|
|
1814
|
+
proto.MESSAGE,
|
|
1815
|
+
number=6,
|
|
1816
|
+
oneof="sync_config",
|
|
1817
|
+
message=cloud_sql_resources.MySqlSyncConfig,
|
|
1818
|
+
)
|
|
1819
|
+
sync_parallel_level: "ExternalSyncParallelLevel" = proto.Field(
|
|
1820
|
+
proto.ENUM,
|
|
1821
|
+
number=7,
|
|
1822
|
+
enum="ExternalSyncParallelLevel",
|
|
1823
|
+
)
|
|
1824
|
+
migration_type: "SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType" = (
|
|
1825
|
+
proto.Field(
|
|
1826
|
+
proto.ENUM,
|
|
1827
|
+
number=8,
|
|
1828
|
+
enum="SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType",
|
|
1829
|
+
)
|
|
1830
|
+
)
|
|
1831
|
+
replica_overwrite_enabled: bool = proto.Field(
|
|
1832
|
+
proto.BOOL,
|
|
1833
|
+
number=9,
|
|
1834
|
+
)
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
class SqlInstancesResetReplicaSizeRequest(proto.Message):
|
|
1838
|
+
r"""Instance reset replica size request.
|
|
1839
|
+
|
|
1840
|
+
Attributes:
|
|
1841
|
+
instance (str):
|
|
1842
|
+
Cloud SQL read replica instance name.
|
|
1843
|
+
project (str):
|
|
1844
|
+
ID of the project that contains the read
|
|
1845
|
+
replica.
|
|
1846
|
+
"""
|
|
1847
|
+
|
|
1848
|
+
instance: str = proto.Field(
|
|
1849
|
+
proto.STRING,
|
|
1850
|
+
number=1,
|
|
1851
|
+
)
|
|
1852
|
+
project: str = proto.Field(
|
|
1853
|
+
proto.STRING,
|
|
1854
|
+
number=2,
|
|
1855
|
+
)
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
class SqlOperationsGetRequest(proto.Message):
|
|
1859
|
+
r"""
|
|
1860
|
+
|
|
1861
|
+
Attributes:
|
|
1862
|
+
operation (str):
|
|
1863
|
+
Instance operation ID.
|
|
1864
|
+
project (str):
|
|
1865
|
+
Project ID of the project that contains the
|
|
1866
|
+
instance.
|
|
1867
|
+
location (str):
|
|
1868
|
+
Optional. Region of the Cloud SQL instance.
|
|
1869
|
+
"""
|
|
1870
|
+
|
|
1871
|
+
operation: str = proto.Field(
|
|
1872
|
+
proto.STRING,
|
|
1873
|
+
number=1,
|
|
1874
|
+
)
|
|
1875
|
+
project: str = proto.Field(
|
|
1876
|
+
proto.STRING,
|
|
1877
|
+
number=2,
|
|
1878
|
+
)
|
|
1879
|
+
location: str = proto.Field(
|
|
1880
|
+
proto.STRING,
|
|
1881
|
+
number=4,
|
|
1882
|
+
)
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
class SqlOperationsListRequest(proto.Message):
|
|
1886
|
+
r"""
|
|
1887
|
+
|
|
1888
|
+
Attributes:
|
|
1889
|
+
instance (str):
|
|
1890
|
+
Cloud SQL instance ID. This does not include
|
|
1891
|
+
the project ID.
|
|
1892
|
+
max_results (int):
|
|
1893
|
+
Maximum number of operations per response.
|
|
1894
|
+
page_token (str):
|
|
1895
|
+
A previously-returned page token representing
|
|
1896
|
+
part of the larger set of results to view.
|
|
1897
|
+
project (str):
|
|
1898
|
+
Project ID of the project that contains the
|
|
1899
|
+
instance.
|
|
1900
|
+
location (str):
|
|
1901
|
+
Optional. Region of the Cloud SQL instance.
|
|
1902
|
+
"""
|
|
1903
|
+
|
|
1904
|
+
instance: str = proto.Field(
|
|
1905
|
+
proto.STRING,
|
|
1906
|
+
number=1,
|
|
1907
|
+
)
|
|
1908
|
+
max_results: int = proto.Field(
|
|
1909
|
+
proto.UINT32,
|
|
1910
|
+
number=2,
|
|
1911
|
+
)
|
|
1912
|
+
page_token: str = proto.Field(
|
|
1913
|
+
proto.STRING,
|
|
1914
|
+
number=3,
|
|
1915
|
+
)
|
|
1916
|
+
project: str = proto.Field(
|
|
1917
|
+
proto.STRING,
|
|
1918
|
+
number=4,
|
|
1919
|
+
)
|
|
1920
|
+
location: str = proto.Field(
|
|
1921
|
+
proto.STRING,
|
|
1922
|
+
number=6,
|
|
1923
|
+
)
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
class SqlOperationsCancelRequest(proto.Message):
|
|
1927
|
+
r"""The request payload to cancel an operation.
|
|
1928
|
+
|
|
1929
|
+
Attributes:
|
|
1930
|
+
operation (str):
|
|
1931
|
+
Instance operation ID.
|
|
1932
|
+
project (str):
|
|
1933
|
+
Project ID of the project that contains the
|
|
1934
|
+
instance.
|
|
1935
|
+
location (str):
|
|
1936
|
+
Optional. Region of the Cloud SQL instance.
|
|
1937
|
+
"""
|
|
1938
|
+
|
|
1939
|
+
operation: str = proto.Field(
|
|
1940
|
+
proto.STRING,
|
|
1941
|
+
number=1,
|
|
1942
|
+
)
|
|
1943
|
+
project: str = proto.Field(
|
|
1944
|
+
proto.STRING,
|
|
1945
|
+
number=2,
|
|
1946
|
+
)
|
|
1947
|
+
location: str = proto.Field(
|
|
1948
|
+
proto.STRING,
|
|
1949
|
+
number=3,
|
|
1950
|
+
)
|
|
1951
|
+
|
|
1952
|
+
|
|
1953
|
+
class SqlInstancesCreateEphemeralCertRequest(proto.Message):
|
|
1954
|
+
r"""
|
|
1955
|
+
|
|
1956
|
+
Attributes:
|
|
1957
|
+
instance (str):
|
|
1958
|
+
Cloud SQL instance ID. This does not include
|
|
1959
|
+
the project ID.
|
|
1960
|
+
project (str):
|
|
1961
|
+
Project ID of the Cloud SQL project.
|
|
1962
|
+
body (google.cloud.sqladmin_v1beta4.types.SslCertsCreateEphemeralRequest):
|
|
1963
|
+
|
|
1964
|
+
"""
|
|
1965
|
+
|
|
1966
|
+
instance: str = proto.Field(
|
|
1967
|
+
proto.STRING,
|
|
1968
|
+
number=1,
|
|
1969
|
+
)
|
|
1970
|
+
project: str = proto.Field(
|
|
1971
|
+
proto.STRING,
|
|
1972
|
+
number=2,
|
|
1973
|
+
)
|
|
1974
|
+
body: cloud_sql_resources.SslCertsCreateEphemeralRequest = proto.Field(
|
|
1975
|
+
proto.MESSAGE,
|
|
1976
|
+
number=100,
|
|
1977
|
+
message=cloud_sql_resources.SslCertsCreateEphemeralRequest,
|
|
1978
|
+
)
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
class SqlSslCertsDeleteRequest(proto.Message):
|
|
1982
|
+
r"""
|
|
1983
|
+
|
|
1984
|
+
Attributes:
|
|
1985
|
+
instance (str):
|
|
1986
|
+
Cloud SQL instance ID. This does not include
|
|
1987
|
+
the project ID.
|
|
1988
|
+
project (str):
|
|
1989
|
+
Project ID of the project that contains the
|
|
1990
|
+
instance.
|
|
1991
|
+
sha1_fingerprint (str):
|
|
1992
|
+
Sha1 FingerPrint.
|
|
1993
|
+
"""
|
|
1994
|
+
|
|
1995
|
+
instance: str = proto.Field(
|
|
1996
|
+
proto.STRING,
|
|
1997
|
+
number=1,
|
|
1998
|
+
)
|
|
1999
|
+
project: str = proto.Field(
|
|
2000
|
+
proto.STRING,
|
|
2001
|
+
number=2,
|
|
2002
|
+
)
|
|
2003
|
+
sha1_fingerprint: str = proto.Field(
|
|
2004
|
+
proto.STRING,
|
|
2005
|
+
number=3,
|
|
2006
|
+
)
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
class SqlSslCertsGetRequest(proto.Message):
|
|
2010
|
+
r"""
|
|
2011
|
+
|
|
2012
|
+
Attributes:
|
|
2013
|
+
instance (str):
|
|
2014
|
+
Cloud SQL instance ID. This does not include
|
|
2015
|
+
the project ID.
|
|
2016
|
+
project (str):
|
|
2017
|
+
Project ID of the project that contains the
|
|
2018
|
+
instance.
|
|
2019
|
+
sha1_fingerprint (str):
|
|
2020
|
+
Sha1 FingerPrint.
|
|
2021
|
+
"""
|
|
2022
|
+
|
|
2023
|
+
instance: str = proto.Field(
|
|
2024
|
+
proto.STRING,
|
|
2025
|
+
number=1,
|
|
2026
|
+
)
|
|
2027
|
+
project: str = proto.Field(
|
|
2028
|
+
proto.STRING,
|
|
2029
|
+
number=2,
|
|
2030
|
+
)
|
|
2031
|
+
sha1_fingerprint: str = proto.Field(
|
|
2032
|
+
proto.STRING,
|
|
2033
|
+
number=3,
|
|
2034
|
+
)
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
class SqlSslCertsInsertRequest(proto.Message):
|
|
2038
|
+
r"""
|
|
2039
|
+
|
|
2040
|
+
Attributes:
|
|
2041
|
+
instance (str):
|
|
2042
|
+
Cloud SQL instance ID. This does not include
|
|
2043
|
+
the project ID.
|
|
2044
|
+
project (str):
|
|
2045
|
+
Project ID of the project that contains the
|
|
2046
|
+
instance.
|
|
2047
|
+
body (google.cloud.sqladmin_v1beta4.types.SslCertsInsertRequest):
|
|
2048
|
+
|
|
2049
|
+
"""
|
|
2050
|
+
|
|
2051
|
+
instance: str = proto.Field(
|
|
2052
|
+
proto.STRING,
|
|
2053
|
+
number=1,
|
|
2054
|
+
)
|
|
2055
|
+
project: str = proto.Field(
|
|
2056
|
+
proto.STRING,
|
|
2057
|
+
number=2,
|
|
2058
|
+
)
|
|
2059
|
+
body: cloud_sql_resources.SslCertsInsertRequest = proto.Field(
|
|
2060
|
+
proto.MESSAGE,
|
|
2061
|
+
number=100,
|
|
2062
|
+
message=cloud_sql_resources.SslCertsInsertRequest,
|
|
2063
|
+
)
|
|
2064
|
+
|
|
2065
|
+
|
|
2066
|
+
class SqlSslCertsListRequest(proto.Message):
|
|
2067
|
+
r"""
|
|
2068
|
+
|
|
2069
|
+
Attributes:
|
|
2070
|
+
instance (str):
|
|
2071
|
+
Cloud SQL instance ID. This does not include
|
|
2072
|
+
the project ID.
|
|
2073
|
+
project (str):
|
|
2074
|
+
Project ID of the project that contains the
|
|
2075
|
+
instance.
|
|
2076
|
+
"""
|
|
2077
|
+
|
|
2078
|
+
instance: str = proto.Field(
|
|
2079
|
+
proto.STRING,
|
|
2080
|
+
number=1,
|
|
2081
|
+
)
|
|
2082
|
+
project: str = proto.Field(
|
|
2083
|
+
proto.STRING,
|
|
2084
|
+
number=2,
|
|
2085
|
+
)
|
|
2086
|
+
|
|
2087
|
+
|
|
2088
|
+
class SqlInstancesGetDiskShrinkConfigRequest(proto.Message):
|
|
2089
|
+
r"""Instance get disk shrink config request.
|
|
2090
|
+
|
|
2091
|
+
Attributes:
|
|
2092
|
+
instance (str):
|
|
2093
|
+
Cloud SQL instance ID. This does not include
|
|
2094
|
+
the project ID.
|
|
2095
|
+
project (str):
|
|
2096
|
+
Project ID of the project that contains the
|
|
2097
|
+
instance.
|
|
2098
|
+
"""
|
|
2099
|
+
|
|
2100
|
+
instance: str = proto.Field(
|
|
2101
|
+
proto.STRING,
|
|
2102
|
+
number=1,
|
|
2103
|
+
)
|
|
2104
|
+
project: str = proto.Field(
|
|
2105
|
+
proto.STRING,
|
|
2106
|
+
number=2,
|
|
2107
|
+
)
|
|
2108
|
+
|
|
2109
|
+
|
|
2110
|
+
class SqlInstancesGetLatestRecoveryTimeRequest(proto.Message):
|
|
2111
|
+
r"""Instance get latest recovery time request.
|
|
2112
|
+
|
|
2113
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
2114
|
+
|
|
2115
|
+
Attributes:
|
|
2116
|
+
instance (str):
|
|
2117
|
+
Cloud SQL instance ID. This does not include
|
|
2118
|
+
the project ID.
|
|
2119
|
+
project (str):
|
|
2120
|
+
Project ID of the project that contains the
|
|
2121
|
+
instance.
|
|
2122
|
+
source_instance_deletion_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
2123
|
+
The timestamp used to identify the time when
|
|
2124
|
+
the source instance is deleted. If this instance
|
|
2125
|
+
is deleted, then you must set the timestamp.
|
|
2126
|
+
|
|
2127
|
+
This field is a member of `oneof`_ ``_source_instance_deletion_time``.
|
|
2128
|
+
"""
|
|
2129
|
+
|
|
2130
|
+
instance: str = proto.Field(
|
|
2131
|
+
proto.STRING,
|
|
2132
|
+
number=1,
|
|
2133
|
+
)
|
|
2134
|
+
project: str = proto.Field(
|
|
2135
|
+
proto.STRING,
|
|
2136
|
+
number=2,
|
|
2137
|
+
)
|
|
2138
|
+
source_instance_deletion_time: timestamp_pb2.Timestamp = proto.Field(
|
|
2139
|
+
proto.MESSAGE,
|
|
2140
|
+
number=3,
|
|
2141
|
+
optional=True,
|
|
2142
|
+
message=timestamp_pb2.Timestamp,
|
|
2143
|
+
)
|
|
2144
|
+
|
|
2145
|
+
|
|
2146
|
+
class SqlInstancesGetLatestRecoveryTimeResponse(proto.Message):
|
|
2147
|
+
r"""Instance get latest recovery time response.
|
|
2148
|
+
|
|
2149
|
+
Attributes:
|
|
2150
|
+
kind (str):
|
|
2151
|
+
This is always ``sql#getLatestRecoveryTime``.
|
|
2152
|
+
latest_recovery_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
2153
|
+
Timestamp, identifies the latest recovery
|
|
2154
|
+
time of the source instance.
|
|
2155
|
+
earliest_recovery_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
2156
|
+
Timestamp, identifies the earliest recovery
|
|
2157
|
+
time of the source instance.
|
|
2158
|
+
"""
|
|
2159
|
+
|
|
2160
|
+
kind: str = proto.Field(
|
|
2161
|
+
proto.STRING,
|
|
2162
|
+
number=1,
|
|
2163
|
+
)
|
|
2164
|
+
latest_recovery_time: timestamp_pb2.Timestamp = proto.Field(
|
|
2165
|
+
proto.MESSAGE,
|
|
2166
|
+
number=2,
|
|
2167
|
+
message=timestamp_pb2.Timestamp,
|
|
2168
|
+
)
|
|
2169
|
+
earliest_recovery_time: timestamp_pb2.Timestamp = proto.Field(
|
|
2170
|
+
proto.MESSAGE,
|
|
2171
|
+
number=3,
|
|
2172
|
+
message=timestamp_pb2.Timestamp,
|
|
2173
|
+
)
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
class SqlInstancesExecuteSqlRequest(proto.Message):
|
|
2177
|
+
r"""Execute SQL statements request.
|
|
2178
|
+
|
|
2179
|
+
Attributes:
|
|
2180
|
+
instance (str):
|
|
2181
|
+
Required. Database instance ID. This does not
|
|
2182
|
+
include the project ID.
|
|
2183
|
+
project (str):
|
|
2184
|
+
Required. Project ID of the project that
|
|
2185
|
+
contains the instance.
|
|
2186
|
+
body (google.cloud.sqladmin_v1beta4.types.ExecuteSqlPayload):
|
|
2187
|
+
The request body.
|
|
2188
|
+
"""
|
|
2189
|
+
|
|
2190
|
+
instance: str = proto.Field(
|
|
2191
|
+
proto.STRING,
|
|
2192
|
+
number=1,
|
|
2193
|
+
)
|
|
2194
|
+
project: str = proto.Field(
|
|
2195
|
+
proto.STRING,
|
|
2196
|
+
number=2,
|
|
2197
|
+
)
|
|
2198
|
+
body: "ExecuteSqlPayload" = proto.Field(
|
|
2199
|
+
proto.MESSAGE,
|
|
2200
|
+
number=100,
|
|
2201
|
+
message="ExecuteSqlPayload",
|
|
2202
|
+
)
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
class SqlInstancesReleaseSsrsLeaseRequest(proto.Message):
|
|
2206
|
+
r"""Request to release a lease for SSRS.
|
|
2207
|
+
|
|
2208
|
+
Attributes:
|
|
2209
|
+
instance (str):
|
|
2210
|
+
Required. The Cloud SQL instance ID. This
|
|
2211
|
+
doesn't include the project ID. It's composed of
|
|
2212
|
+
lowercase letters, numbers, and hyphens, and it
|
|
2213
|
+
must start with a letter. The total length must
|
|
2214
|
+
be 98 characters or less (Example:
|
|
2215
|
+
|
|
2216
|
+
instance-id).
|
|
2217
|
+
project (str):
|
|
2218
|
+
Required. The ID of the project that contains
|
|
2219
|
+
the instance (Example: project-id).
|
|
2220
|
+
"""
|
|
2221
|
+
|
|
2222
|
+
instance: str = proto.Field(
|
|
2223
|
+
proto.STRING,
|
|
2224
|
+
number=1,
|
|
2225
|
+
)
|
|
2226
|
+
project: str = proto.Field(
|
|
2227
|
+
proto.STRING,
|
|
2228
|
+
number=2,
|
|
2229
|
+
)
|
|
2230
|
+
|
|
2231
|
+
|
|
2232
|
+
class SqlInstancesReleaseSsrsLeaseResponse(proto.Message):
|
|
2233
|
+
r"""The response for the release of the SSRS lease.
|
|
2234
|
+
|
|
2235
|
+
Attributes:
|
|
2236
|
+
operation_id (str):
|
|
2237
|
+
The operation ID.
|
|
2238
|
+
"""
|
|
2239
|
+
|
|
2240
|
+
operation_id: str = proto.Field(
|
|
2241
|
+
proto.STRING,
|
|
2242
|
+
number=1,
|
|
2243
|
+
)
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
class ExecuteSqlPayload(proto.Message):
|
|
2247
|
+
r"""The request payload used to execute SQL statements.
|
|
2248
|
+
|
|
2249
|
+
This message has `oneof`_ fields (mutually exclusive fields).
|
|
2250
|
+
For each oneof, at most one member field can be set at the same time.
|
|
2251
|
+
Setting any member of the oneof automatically clears all other
|
|
2252
|
+
members.
|
|
2253
|
+
|
|
2254
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
2255
|
+
|
|
2256
|
+
Attributes:
|
|
2257
|
+
user (str):
|
|
2258
|
+
Optional. The name of an existing database user to connect
|
|
2259
|
+
to the database. When ``auto_iam_authn`` is set to true,
|
|
2260
|
+
this field is ignored and the API caller's IAM user is used.
|
|
2261
|
+
sql_statement (str):
|
|
2262
|
+
Required. SQL statements to run on the
|
|
2263
|
+
database. It can be a single statement or a
|
|
2264
|
+
sequence of statements separated by semicolons.
|
|
2265
|
+
database (str):
|
|
2266
|
+
Optional. Name of the database on which the
|
|
2267
|
+
statement will be executed.
|
|
2268
|
+
password_secret_version (str):
|
|
2269
|
+
Optional. The resource name of the Secret Manager secret
|
|
2270
|
+
holding the password for the user to log into the database.
|
|
2271
|
+
The secret should be created using the regional endpoint
|
|
2272
|
+
(for API) or from the Regional Secrets page (for UI), and
|
|
2273
|
+
stored in the same region as the Cloud SQL instance. The
|
|
2274
|
+
expected resource name format is
|
|
2275
|
+
``projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}``.
|
|
2276
|
+
This field is used together with the ``user`` field. The
|
|
2277
|
+
secret resource name will not be stored.
|
|
2278
|
+
|
|
2279
|
+
This field is a member of `oneof`_ ``user_password``.
|
|
2280
|
+
auto_iam_authn (bool):
|
|
2281
|
+
Optional. When set to true, the API caller
|
|
2282
|
+
identity associated with the request is used for
|
|
2283
|
+
database authentication. The API caller must be
|
|
2284
|
+
an IAM user in the database.
|
|
2285
|
+
|
|
2286
|
+
This field is a member of `oneof`_ ``user_password``.
|
|
2287
|
+
row_limit (int):
|
|
2288
|
+
Optional. The maximum number of rows returned
|
|
2289
|
+
per SQL statement.
|
|
2290
|
+
partial_result_mode (google.cloud.sqladmin_v1beta4.types.ExecuteSqlPayload.PartialResultMode):
|
|
2291
|
+
Optional. Controls how the API should respond
|
|
2292
|
+
when the SQL execution result is incomplete due
|
|
2293
|
+
to the size limit or another error. The default
|
|
2294
|
+
mode is to throw an error.
|
|
2295
|
+
application (str):
|
|
2296
|
+
Optional. Specifies the name of the
|
|
2297
|
+
application that is making the request. This
|
|
2298
|
+
field is used for telemetry. Only alphanumeric
|
|
2299
|
+
characters, dashes, and underscores are allowed.
|
|
2300
|
+
The maximum length is 32 characters.
|
|
2301
|
+
"""
|
|
2302
|
+
|
|
2303
|
+
class PartialResultMode(proto.Enum):
|
|
2304
|
+
r"""Controls how the API should respond when the SQL execution
|
|
2305
|
+
result exceeds 10 MB.
|
|
2306
|
+
|
|
2307
|
+
Values:
|
|
2308
|
+
PARTIAL_RESULT_MODE_UNSPECIFIED (0):
|
|
2309
|
+
Unspecified mode, effectively the same as
|
|
2310
|
+
``FAIL_PARTIAL_RESULT``.
|
|
2311
|
+
FAIL_PARTIAL_RESULT (1):
|
|
2312
|
+
Throw an error if the result exceeds 10 MB or
|
|
2313
|
+
if only a partial result can be retrieved. Don't
|
|
2314
|
+
return the result.
|
|
2315
|
+
ALLOW_PARTIAL_RESULT (2):
|
|
2316
|
+
Return a truncated result and set ``partial_result`` to true
|
|
2317
|
+
if the result exceeds 10 MB or if only a partial result can
|
|
2318
|
+
be retrieved due to error. Don't throw an error.
|
|
2319
|
+
"""
|
|
2320
|
+
|
|
2321
|
+
PARTIAL_RESULT_MODE_UNSPECIFIED = 0
|
|
2322
|
+
FAIL_PARTIAL_RESULT = 1
|
|
2323
|
+
ALLOW_PARTIAL_RESULT = 2
|
|
2324
|
+
|
|
2325
|
+
user: str = proto.Field(
|
|
2326
|
+
proto.STRING,
|
|
2327
|
+
number=1,
|
|
2328
|
+
)
|
|
2329
|
+
sql_statement: str = proto.Field(
|
|
2330
|
+
proto.STRING,
|
|
2331
|
+
number=2,
|
|
2332
|
+
)
|
|
2333
|
+
database: str = proto.Field(
|
|
2334
|
+
proto.STRING,
|
|
2335
|
+
number=3,
|
|
2336
|
+
)
|
|
2337
|
+
password_secret_version: str = proto.Field(
|
|
2338
|
+
proto.STRING,
|
|
2339
|
+
number=5,
|
|
2340
|
+
oneof="user_password",
|
|
2341
|
+
)
|
|
2342
|
+
auto_iam_authn: bool = proto.Field(
|
|
2343
|
+
proto.BOOL,
|
|
2344
|
+
number=11,
|
|
2345
|
+
oneof="user_password",
|
|
2346
|
+
)
|
|
2347
|
+
row_limit: int = proto.Field(
|
|
2348
|
+
proto.INT64,
|
|
2349
|
+
number=10,
|
|
2350
|
+
)
|
|
2351
|
+
partial_result_mode: PartialResultMode = proto.Field(
|
|
2352
|
+
proto.ENUM,
|
|
2353
|
+
number=13,
|
|
2354
|
+
enum=PartialResultMode,
|
|
2355
|
+
)
|
|
2356
|
+
application: str = proto.Field(
|
|
2357
|
+
proto.STRING,
|
|
2358
|
+
number=16,
|
|
2359
|
+
)
|
|
2360
|
+
|
|
2361
|
+
|
|
2362
|
+
class SqlInstancesExecuteSqlResponse(proto.Message):
|
|
2363
|
+
r"""Execute SQL statements response.
|
|
2364
|
+
|
|
2365
|
+
Attributes:
|
|
2366
|
+
messages (MutableSequence[google.cloud.sqladmin_v1beta4.types.SqlInstancesExecuteSqlResponse.Message]):
|
|
2367
|
+
A list of notices and warnings generated during query
|
|
2368
|
+
execution. For PostgreSQL, this includes all notices and
|
|
2369
|
+
warnings. For MySQL, this includes warnings generated by the
|
|
2370
|
+
last executed statement. To retrieve all warnings for a
|
|
2371
|
+
multi-statement query, ``SHOW WARNINGS`` must be executed
|
|
2372
|
+
after each statement.
|
|
2373
|
+
metadata (google.cloud.sqladmin_v1beta4.types.Metadata):
|
|
2374
|
+
The additional metadata information regarding
|
|
2375
|
+
the execution of the SQL statements.
|
|
2376
|
+
results (MutableSequence[google.cloud.sqladmin_v1beta4.types.QueryResult]):
|
|
2377
|
+
The list of results after executing all the
|
|
2378
|
+
SQL statements.
|
|
2379
|
+
status (google.rpc.status_pb2.Status):
|
|
2380
|
+
Contains the error from the database if the
|
|
2381
|
+
SQL execution failed.
|
|
2382
|
+
"""
|
|
2383
|
+
|
|
2384
|
+
class Message(proto.Message):
|
|
2385
|
+
r"""Represents a notice or warning message from the database.
|
|
2386
|
+
|
|
2387
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
2388
|
+
|
|
2389
|
+
Attributes:
|
|
2390
|
+
message (str):
|
|
2391
|
+
The full message string.
|
|
2392
|
+
For PostgreSQL, this is a formatted string that
|
|
2393
|
+
may include severity, code, and the
|
|
2394
|
+
notice/warning message.
|
|
2395
|
+
For MySQL, this contains the warning message.
|
|
2396
|
+
|
|
2397
|
+
This field is a member of `oneof`_ ``_message``.
|
|
2398
|
+
severity (str):
|
|
2399
|
+
The severity of the message (e.g., "NOTICE"
|
|
2400
|
+
for PostgreSQL, "WARNING" for MySQL).
|
|
2401
|
+
|
|
2402
|
+
This field is a member of `oneof`_ ``_severity``.
|
|
2403
|
+
"""
|
|
2404
|
+
|
|
2405
|
+
message: str = proto.Field(
|
|
2406
|
+
proto.STRING,
|
|
2407
|
+
number=1,
|
|
2408
|
+
optional=True,
|
|
2409
|
+
)
|
|
2410
|
+
severity: str = proto.Field(
|
|
2411
|
+
proto.STRING,
|
|
2412
|
+
number=2,
|
|
2413
|
+
optional=True,
|
|
2414
|
+
)
|
|
2415
|
+
|
|
2416
|
+
messages: MutableSequence[Message] = proto.RepeatedField(
|
|
2417
|
+
proto.MESSAGE,
|
|
2418
|
+
number=9,
|
|
2419
|
+
message=Message,
|
|
2420
|
+
)
|
|
2421
|
+
metadata: "Metadata" = proto.Field(
|
|
2422
|
+
proto.MESSAGE,
|
|
2423
|
+
number=6,
|
|
2424
|
+
message="Metadata",
|
|
2425
|
+
)
|
|
2426
|
+
results: MutableSequence["QueryResult"] = proto.RepeatedField(
|
|
2427
|
+
proto.MESSAGE,
|
|
2428
|
+
number=7,
|
|
2429
|
+
message="QueryResult",
|
|
2430
|
+
)
|
|
2431
|
+
status: status_pb2.Status = proto.Field(
|
|
2432
|
+
proto.MESSAGE,
|
|
2433
|
+
number=8,
|
|
2434
|
+
message=status_pb2.Status,
|
|
2435
|
+
)
|
|
2436
|
+
|
|
2437
|
+
|
|
2438
|
+
class QueryResult(proto.Message):
|
|
2439
|
+
r"""QueryResult contains the result of executing a single SQL
|
|
2440
|
+
statement.
|
|
2441
|
+
|
|
2442
|
+
Attributes:
|
|
2443
|
+
columns (MutableSequence[google.cloud.sqladmin_v1beta4.types.Column]):
|
|
2444
|
+
List of columns included in the result. This
|
|
2445
|
+
also includes the data type of the column.
|
|
2446
|
+
rows (MutableSequence[google.cloud.sqladmin_v1beta4.types.Row]):
|
|
2447
|
+
Rows returned by the SQL statement.
|
|
2448
|
+
message (str):
|
|
2449
|
+
Message related to the SQL execution result.
|
|
2450
|
+
partial_result (bool):
|
|
2451
|
+
Set to true if the SQL execution's result is
|
|
2452
|
+
truncated due to size limits or an error
|
|
2453
|
+
retrieving results.
|
|
2454
|
+
status (google.rpc.status_pb2.Status):
|
|
2455
|
+
If results were truncated due to an error,
|
|
2456
|
+
details of that error.
|
|
2457
|
+
"""
|
|
2458
|
+
|
|
2459
|
+
columns: MutableSequence["Column"] = proto.RepeatedField(
|
|
2460
|
+
proto.MESSAGE,
|
|
2461
|
+
number=1,
|
|
2462
|
+
message="Column",
|
|
2463
|
+
)
|
|
2464
|
+
rows: MutableSequence["Row"] = proto.RepeatedField(
|
|
2465
|
+
proto.MESSAGE,
|
|
2466
|
+
number=2,
|
|
2467
|
+
message="Row",
|
|
2468
|
+
)
|
|
2469
|
+
message: str = proto.Field(
|
|
2470
|
+
proto.STRING,
|
|
2471
|
+
number=3,
|
|
2472
|
+
)
|
|
2473
|
+
partial_result: bool = proto.Field(
|
|
2474
|
+
proto.BOOL,
|
|
2475
|
+
number=4,
|
|
2476
|
+
)
|
|
2477
|
+
status: status_pb2.Status = proto.Field(
|
|
2478
|
+
proto.MESSAGE,
|
|
2479
|
+
number=8,
|
|
2480
|
+
message=status_pb2.Status,
|
|
2481
|
+
)
|
|
2482
|
+
|
|
2483
|
+
|
|
2484
|
+
class Column(proto.Message):
|
|
2485
|
+
r"""Contains the name and datatype of a column.
|
|
2486
|
+
|
|
2487
|
+
Attributes:
|
|
2488
|
+
name (str):
|
|
2489
|
+
Name of the column.
|
|
2490
|
+
type_ (str):
|
|
2491
|
+
Datatype of the column.
|
|
2492
|
+
"""
|
|
2493
|
+
|
|
2494
|
+
name: str = proto.Field(
|
|
2495
|
+
proto.STRING,
|
|
2496
|
+
number=1,
|
|
2497
|
+
)
|
|
2498
|
+
type_: str = proto.Field(
|
|
2499
|
+
proto.STRING,
|
|
2500
|
+
number=2,
|
|
2501
|
+
)
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
class Row(proto.Message):
|
|
2505
|
+
r"""Contains the values for a row.
|
|
2506
|
+
|
|
2507
|
+
Attributes:
|
|
2508
|
+
values (MutableSequence[google.cloud.sqladmin_v1beta4.types.Value]):
|
|
2509
|
+
The values for the row.
|
|
2510
|
+
"""
|
|
2511
|
+
|
|
2512
|
+
values: MutableSequence["Value"] = proto.RepeatedField(
|
|
2513
|
+
proto.MESSAGE,
|
|
2514
|
+
number=1,
|
|
2515
|
+
message="Value",
|
|
2516
|
+
)
|
|
2517
|
+
|
|
2518
|
+
|
|
2519
|
+
class Value(proto.Message):
|
|
2520
|
+
r"""The cell value of the table.
|
|
2521
|
+
|
|
2522
|
+
Attributes:
|
|
2523
|
+
value (str):
|
|
2524
|
+
The cell value represented in string format.
|
|
2525
|
+
null_value (bool):
|
|
2526
|
+
If cell value is null, then this flag will be
|
|
2527
|
+
set to true.
|
|
2528
|
+
"""
|
|
2529
|
+
|
|
2530
|
+
value: str = proto.Field(
|
|
2531
|
+
proto.STRING,
|
|
2532
|
+
number=1,
|
|
2533
|
+
)
|
|
2534
|
+
null_value: bool = proto.Field(
|
|
2535
|
+
proto.BOOL,
|
|
2536
|
+
number=2,
|
|
2537
|
+
)
|
|
2538
|
+
|
|
2539
|
+
|
|
2540
|
+
class Metadata(proto.Message):
|
|
2541
|
+
r"""The additional metadata information regarding the execution
|
|
2542
|
+
of the SQL statements.
|
|
2543
|
+
|
|
2544
|
+
Attributes:
|
|
2545
|
+
sql_statement_execution_time (google.protobuf.duration_pb2.Duration):
|
|
2546
|
+
The time taken to execute the SQL statements.
|
|
2547
|
+
"""
|
|
2548
|
+
|
|
2549
|
+
sql_statement_execution_time: duration_pb2.Duration = proto.Field(
|
|
2550
|
+
proto.MESSAGE,
|
|
2551
|
+
number=1,
|
|
2552
|
+
message=duration_pb2.Duration,
|
|
2553
|
+
)
|
|
2554
|
+
|
|
2555
|
+
|
|
2556
|
+
class SqlInstancesAcquireSsrsLeaseRequest(proto.Message):
|
|
2557
|
+
r"""Request to acquire a lease for SSRS.
|
|
2558
|
+
|
|
2559
|
+
Attributes:
|
|
2560
|
+
instance (str):
|
|
2561
|
+
Required. Cloud SQL instance ID. This doesn't
|
|
2562
|
+
include the project ID. It's composed of
|
|
2563
|
+
lowercase letters, numbers, and hyphens, and it
|
|
2564
|
+
must start with a letter. The total length must
|
|
2565
|
+
be 98 characters or less (Example:
|
|
2566
|
+
|
|
2567
|
+
instance-id).
|
|
2568
|
+
project (str):
|
|
2569
|
+
Required. ID of the project that contains the
|
|
2570
|
+
instance (Example: project-id).
|
|
2571
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesAcquireSsrsLeaseRequest):
|
|
2572
|
+
The body for request to acquire an SSRS
|
|
2573
|
+
lease.
|
|
2574
|
+
"""
|
|
2575
|
+
|
|
2576
|
+
instance: str = proto.Field(
|
|
2577
|
+
proto.STRING,
|
|
2578
|
+
number=1,
|
|
2579
|
+
)
|
|
2580
|
+
project: str = proto.Field(
|
|
2581
|
+
proto.STRING,
|
|
2582
|
+
number=2,
|
|
2583
|
+
)
|
|
2584
|
+
body: cloud_sql_resources.InstancesAcquireSsrsLeaseRequest = proto.Field(
|
|
2585
|
+
proto.MESSAGE,
|
|
2586
|
+
number=100,
|
|
2587
|
+
message=cloud_sql_resources.InstancesAcquireSsrsLeaseRequest,
|
|
2588
|
+
)
|
|
2589
|
+
|
|
2590
|
+
|
|
2591
|
+
class SqlInstancesPreCheckMajorVersionUpgradeRequest(proto.Message):
|
|
2592
|
+
r"""Request for Pre-checks for MVU
|
|
2593
|
+
|
|
2594
|
+
Attributes:
|
|
2595
|
+
instance (str):
|
|
2596
|
+
Required. Cloud SQL instance ID. This does
|
|
2597
|
+
not include the project ID.
|
|
2598
|
+
project (str):
|
|
2599
|
+
Required. Project ID of the project that
|
|
2600
|
+
contains the instance.
|
|
2601
|
+
body (google.cloud.sqladmin_v1beta4.types.InstancesPreCheckMajorVersionUpgradeRequest):
|
|
2602
|
+
Required. The context for request to perform
|
|
2603
|
+
the pre-check major version upgrade operation.
|
|
2604
|
+
"""
|
|
2605
|
+
|
|
2606
|
+
instance: str = proto.Field(
|
|
2607
|
+
proto.STRING,
|
|
2608
|
+
number=1,
|
|
2609
|
+
)
|
|
2610
|
+
project: str = proto.Field(
|
|
2611
|
+
proto.STRING,
|
|
2612
|
+
number=2,
|
|
2613
|
+
)
|
|
2614
|
+
body: cloud_sql_resources.InstancesPreCheckMajorVersionUpgradeRequest = proto.Field(
|
|
2615
|
+
proto.MESSAGE,
|
|
2616
|
+
number=3,
|
|
2617
|
+
message=cloud_sql_resources.InstancesPreCheckMajorVersionUpgradeRequest,
|
|
2618
|
+
)
|
|
2619
|
+
|
|
2620
|
+
|
|
2621
|
+
class SqlInstancesAcquireSsrsLeaseResponse(proto.Message):
|
|
2622
|
+
r"""Acquire SSRS lease response.
|
|
2623
|
+
|
|
2624
|
+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
|
|
2625
|
+
|
|
2626
|
+
Attributes:
|
|
2627
|
+
operation_id (str):
|
|
2628
|
+
The unique identifier for this operation.
|
|
2629
|
+
|
|
2630
|
+
This field is a member of `oneof`_ ``_operation_id``.
|
|
2631
|
+
"""
|
|
2632
|
+
|
|
2633
|
+
operation_id: str = proto.Field(
|
|
2634
|
+
proto.STRING,
|
|
2635
|
+
number=1,
|
|
2636
|
+
optional=True,
|
|
2637
|
+
)
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
class SqlInstancesPointInTimeRestoreRequest(proto.Message):
|
|
2641
|
+
r"""Request to perform a point in time restore on a Google Cloud
|
|
2642
|
+
Backup and Disaster Recovery managed instance.
|
|
2643
|
+
|
|
2644
|
+
Attributes:
|
|
2645
|
+
parent (str):
|
|
2646
|
+
Required. The parent resource where you
|
|
2647
|
+
created this instance. Format:
|
|
2648
|
+
projects/{project}
|
|
2649
|
+
context (google.cloud.sqladmin_v1beta4.types.PointInTimeRestoreContext):
|
|
2650
|
+
Required. The context for request to perform
|
|
2651
|
+
a PITR on a Google Cloud Backup and Disaster
|
|
2652
|
+
Recovery managed instance.
|
|
2653
|
+
"""
|
|
2654
|
+
|
|
2655
|
+
parent: str = proto.Field(
|
|
2656
|
+
proto.STRING,
|
|
2657
|
+
number=1,
|
|
2658
|
+
)
|
|
2659
|
+
context: cloud_sql_resources.PointInTimeRestoreContext = proto.Field(
|
|
2660
|
+
proto.MESSAGE,
|
|
2661
|
+
number=100,
|
|
2662
|
+
message=cloud_sql_resources.PointInTimeRestoreContext,
|
|
2663
|
+
)
|
|
2664
|
+
|
|
2665
|
+
|
|
2666
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|