oci 2.153.0__py3-none-any.whl → 2.154.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.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/addons/adk/agent.py +14 -11
- oci/addons/adk/run/response.py +79 -5
- oci/addons/adk/run/types.py +72 -0
- oci/addons/adk/util.py +1 -6
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +28 -28
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +12 -12
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +56 -56
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +88 -88
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/capacity_management/demand_signal_client.py +13 -13
- oci/capacity_management/internal_demand_signal_client.py +12 -12
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +46 -46
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +125 -125
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +258 -258
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +45 -45
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +317 -317
- oci/data_science/data_science_client.py +145 -145
- oci/database/database_client.py +604 -419
- oci/database/database_client_composite_operations.py +2 -2
- oci/database/models/__init__.py +12 -0
- oci/database/models/autonomous_container_database_backup.py +691 -0
- oci/database/models/autonomous_container_database_backup_collection.py +70 -0
- oci/database/models/autonomous_container_database_backup_summary.py +696 -0
- oci/database/models/autonomous_database_in_backup.py +105 -0
- oci/database/models/backup_destination_configuration_summary.py +74 -2
- oci/database/models/backup_destination_details.py +74 -2
- oci/database/models/backup_destination_details_summary.py +74 -2
- oci/database/models/create_autonomous_container_database_base.py +1400 -0
- oci/database/models/create_autonomous_container_database_details.py +14 -1032
- oci/database/models/create_autonomous_container_database_from_backup_details.py +349 -0
- oci/database_management/db_management_client.py +229 -229
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +1286 -274
- oci/database_management/managed_my_sql_databases_client_composite_operations.py +42 -0
- oci/database_management/models/__init__.py +44 -0
- oci/database_management/models/change_mysql_database_management_type_details.py +121 -0
- oci/database_management/models/managed_my_sql_database.py +47 -0
- oci/database_management/models/managed_my_sql_database_binary_log_information.py +225 -0
- oci/database_management/models/managed_my_sql_database_general_replication_information.py +586 -0
- oci/database_management/models/managed_my_sql_database_high_availability_member_collection.py +345 -0
- oci/database_management/models/managed_my_sql_database_high_availability_member_summary.py +194 -0
- oci/database_management/models/managed_my_sql_database_inbound_replication_collection.py +225 -0
- oci/database_management/models/managed_my_sql_database_inbound_replication_summary.py +620 -0
- oci/database_management/models/managed_my_sql_database_outbound_replication_collection.py +101 -0
- oci/database_management/models/managed_my_sql_database_outbound_replication_summary.py +163 -0
- oci/database_management/models/managed_my_sql_database_summary.py +33 -2
- oci/database_management/models/my_sql_apply_error.py +163 -0
- oci/database_management/models/my_sql_apply_error_worker.py +132 -0
- oci/database_management/models/my_sql_channel_apply_error.py +97 -0
- oci/database_management/models/my_sql_channel_fetch_error.py +97 -0
- oci/database_management/models/my_sql_database_usage_metrics.py +31 -0
- oci/database_management/models/my_sql_digest_error_summary.py +97 -0
- oci/database_management/models/my_sql_digest_errors_collection.py +70 -0
- oci/database_management/models/my_sql_fetch_error.py +132 -0
- oci/database_management/models/my_sql_high_availability_status_summary.py +101 -0
- oci/database_management/models/my_sql_query_details.py +124 -0
- oci/database_management/models/my_sql_query_explain_plan.py +117 -0
- oci/database_management/models/my_sql_query_message.py +152 -0
- oci/database_management/models/my_sql_query_sample_details.py +256 -0
- oci/database_management/models/my_sql_replication_applier_filter.py +101 -0
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_migration/models/create_data_pump_parameters.py +7 -3
- oci/database_migration/models/create_oracle_migration_details.py +31 -0
- oci/database_migration/models/data_pump_parameters.py +7 -3
- oci/database_migration/models/oracle_clone_migration_details.py +33 -2
- oci/database_migration/models/oracle_migration.py +31 -0
- oci/database_migration/models/oracle_migration_summary.py +33 -2
- oci/database_migration/models/update_data_pump_parameters.py +7 -3
- oci/database_migration/models/update_oracle_migration_details.py +33 -2
- oci/database_tools/database_tools_client.py +23 -23
- oci/dblm/db_life_cycle_management_client.py +14 -14
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +31 -31
- oci/distributed_database/distributed_autonomous_db_service_client.py +18 -18
- oci/distributed_database/distributed_db_private_endpoint_service_client.py +7 -7
- oci/distributed_database/distributed_db_service_client.py +19 -19
- oci/distributed_database/distributed_db_work_request_service_client.py +4 -4
- oci/dns/dns_client.py +54 -54
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +74 -74
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +27 -27
- oci/fleet_apps_management/fleet_apps_management_catalog_client.py +7 -7
- oci/fleet_apps_management/fleet_apps_management_client.py +32 -32
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +29 -29
- oci/fleet_apps_management/fleet_apps_management_provision_client.py +6 -6
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +19 -19
- oci/fleet_apps_management/fleet_apps_management_work_request_client.py +4 -4
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +38 -38
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
- oci/generative_ai_agent_runtime/models/__init__.py +19 -1
- oci/generative_ai_agent_runtime/models/error_trace.py +62 -3
- oci/generative_ai_agent_runtime/models/execution_trace.py +146 -0
- oci/generative_ai_agent_runtime/models/generation_trace.py +93 -3
- oci/generative_ai_agent_runtime/models/human_approval_required_action.py +135 -0
- oci/generative_ai_agent_runtime/models/model_details.py +128 -0
- oci/generative_ai_agent_runtime/models/model_params.py +225 -0
- oci/generative_ai_agent_runtime/models/planning_trace.py +177 -0
- oci/generative_ai_agent_runtime/models/required_action.py +4 -0
- oci/generative_ai_agent_runtime/models/retrieval_trace.py +62 -3
- oci/generative_ai_agent_runtime/models/source_details.py +101 -0
- oci/generative_ai_agent_runtime/models/tool_invocation_trace.py +190 -0
- oci/generative_ai_agent_runtime/models/trace.py +147 -3
- oci/generative_ai_agent_runtime/models/usage.py +93 -0
- oci/generative_ai_agent_runtime/models/usage_details.py +163 -0
- oci/generative_ai_inference/generative_ai_inference_client.py +6 -6
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +122 -102
- oci/golden_gate/models/__init__.py +88 -0
- oci/golden_gate/models/amazon_kinesis_connection.py +1 -1
- oci/golden_gate/models/amazon_kinesis_connection_summary.py +1 -1
- oci/golden_gate/models/amazon_redshift_connection.py +1 -1
- oci/golden_gate/models/amazon_redshift_connection_summary.py +1 -1
- oci/golden_gate/models/amazon_s3_connection.py +67 -3
- oci/golden_gate/models/amazon_s3_connection_summary.py +67 -3
- oci/golden_gate/models/amazon_s3_iceberg_storage.py +260 -0
- oci/golden_gate/models/amazon_s3_iceberg_storage_summary.py +243 -0
- oci/golden_gate/models/azure_data_lake_storage_connection.py +1 -1
- oci/golden_gate/models/azure_data_lake_storage_connection_summary.py +1 -1
- oci/golden_gate/models/azure_data_lake_storage_iceberg_storage.py +179 -0
- oci/golden_gate/models/azure_data_lake_storage_iceberg_storage_summary.py +179 -0
- oci/golden_gate/models/azure_synapse_connection.py +1 -1
- oci/golden_gate/models/azure_synapse_connection_summary.py +1 -1
- oci/golden_gate/models/connection.py +11 -3
- oci/golden_gate/models/connection_summary.py +11 -3
- oci/golden_gate/models/create_amazon_kinesis_connection_details.py +1 -1
- oci/golden_gate/models/create_amazon_redshift_connection_details.py +1 -1
- oci/golden_gate/models/create_amazon_s3_connection_details.py +67 -3
- oci/golden_gate/models/create_amazon_s3_iceberg_storage_details.py +243 -0
- oci/golden_gate/models/create_azure_data_lake_storage_connection_details.py +1 -1
- oci/golden_gate/models/create_azure_data_lake_storage_iceberg_storage_details.py +179 -0
- oci/golden_gate/models/create_azure_synapse_connection_details.py +1 -1
- oci/golden_gate/models/create_connection_details.py +11 -3
- oci/golden_gate/models/create_databricks_connection_details.py +1 -1
- oci/golden_gate/models/create_db2_connection_details.py +3 -1
- oci/golden_gate/models/create_deployment_details.py +7 -3
- oci/golden_gate/models/create_elasticsearch_connection_details.py +1 -1
- oci/golden_gate/models/create_generic_connection_details.py +1 -1
- oci/golden_gate/models/create_glue_iceberg_catalog_details.py +80 -0
- oci/golden_gate/models/create_golden_gate_connection_details.py +1 -1
- oci/golden_gate/models/create_google_big_query_connection_details.py +3 -3
- oci/golden_gate/models/create_google_cloud_storage_connection_details.py +3 -3
- oci/golden_gate/models/create_google_cloud_storage_iceberg_storage_details.py +148 -0
- oci/golden_gate/models/create_google_pub_sub_connection_details.py +3 -3
- oci/golden_gate/models/create_hadoop_iceberg_catalog_details.py +49 -0
- oci/golden_gate/models/create_hdfs_connection_details.py +3 -1
- oci/golden_gate/models/create_iceberg_catalog_details.py +131 -0
- oci/golden_gate/models/create_iceberg_connection_details.py +219 -0
- oci/golden_gate/models/create_iceberg_storage_details.py +115 -0
- oci/golden_gate/models/create_java_message_service_connection_details.py +1 -1
- oci/golden_gate/models/create_kafka_connection_details.py +1 -1
- oci/golden_gate/models/create_kafka_schema_registry_connection_details.py +1 -1
- oci/golden_gate/models/create_microsoft_fabric_connection_details.py +1 -1
- oci/golden_gate/models/create_microsoft_sqlserver_connection_details.py +3 -3
- oci/golden_gate/models/create_mongo_db_connection_details.py +3 -1
- oci/golden_gate/models/create_mysql_connection_details.py +11 -5
- oci/golden_gate/models/create_nessie_iceberg_catalog_details.py +113 -0
- oci/golden_gate/models/create_oci_object_storage_connection_details.py +1 -1
- oci/golden_gate/models/create_oracle_connection_details.py +1 -1
- oci/golden_gate/models/create_oracle_nosql_connection_details.py +1 -1
- oci/golden_gate/models/create_polaris_iceberg_catalog_details.py +210 -0
- oci/golden_gate/models/create_postgresql_connection_details.py +7 -1
- oci/golden_gate/models/create_redis_connection_details.py +1 -1
- oci/golden_gate/models/create_rest_iceberg_catalog_details.py +121 -0
- oci/golden_gate/models/create_snowflake_connection_details.py +2 -2
- oci/golden_gate/models/databricks_connection.py +1 -1
- oci/golden_gate/models/databricks_connection_summary.py +1 -1
- oci/golden_gate/models/db2_connection.py +43 -6
- oci/golden_gate/models/db2_connection_summary.py +1 -1
- oci/golden_gate/models/deployment.py +7 -3
- oci/golden_gate/models/deployment_backup.py +7 -3
- oci/golden_gate/models/deployment_backup_summary.py +7 -3
- oci/golden_gate/models/deployment_summary.py +7 -3
- oci/golden_gate/models/deployment_type_summary.py +24 -16
- oci/golden_gate/models/deployment_version_summary.py +7 -3
- oci/golden_gate/models/elasticsearch_connection.py +36 -3
- oci/golden_gate/models/elasticsearch_connection_summary.py +1 -1
- oci/golden_gate/models/generic_connection.py +1 -1
- oci/golden_gate/models/generic_connection_summary.py +1 -1
- oci/golden_gate/models/glue_iceberg_catalog.py +80 -0
- oci/golden_gate/models/glue_iceberg_catalog_summary.py +80 -0
- oci/golden_gate/models/golden_gate_connection.py +1 -1
- oci/golden_gate/models/golden_gate_connection_summary.py +1 -1
- oci/golden_gate/models/google_big_query_connection.py +3 -3
- oci/golden_gate/models/google_big_query_connection_summary.py +3 -3
- oci/golden_gate/models/google_cloud_storage_connection.py +3 -3
- oci/golden_gate/models/google_cloud_storage_connection_summary.py +3 -3
- oci/golden_gate/models/google_cloud_storage_iceberg_storage.py +148 -0
- oci/golden_gate/models/google_cloud_storage_iceberg_storage_summary.py +148 -0
- oci/golden_gate/models/google_pub_sub_connection.py +3 -3
- oci/golden_gate/models/google_pub_sub_connection_summary.py +3 -3
- oci/golden_gate/models/hadoop_iceberg_catalog.py +49 -0
- oci/golden_gate/models/hadoop_iceberg_catalog_summary.py +49 -0
- oci/golden_gate/models/hdfs_connection.py +36 -3
- oci/golden_gate/models/hdfs_connection_summary.py +1 -1
- oci/golden_gate/models/iceberg_catalog.py +131 -0
- oci/golden_gate/models/iceberg_catalog_summary.py +131 -0
- oci/golden_gate/models/iceberg_connection.py +284 -0
- oci/golden_gate/models/iceberg_connection_summary.py +268 -0
- oci/golden_gate/models/iceberg_storage.py +115 -0
- oci/golden_gate/models/iceberg_storage_summary.py +115 -0
- oci/golden_gate/models/java_message_service_connection.py +1 -1
- oci/golden_gate/models/java_message_service_connection_summary.py +1 -1
- oci/golden_gate/models/kafka_connection.py +1 -1
- oci/golden_gate/models/kafka_connection_summary.py +1 -1
- oci/golden_gate/models/kafka_schema_registry_connection.py +1 -1
- oci/golden_gate/models/kafka_schema_registry_connection_summary.py +1 -1
- oci/golden_gate/models/microsoft_fabric_connection.py +1 -1
- oci/golden_gate/models/microsoft_fabric_connection_summary.py +1 -1
- oci/golden_gate/models/microsoft_sqlserver_connection.py +3 -3
- oci/golden_gate/models/microsoft_sqlserver_connection_summary.py +3 -3
- oci/golden_gate/models/mongo_db_connection.py +43 -6
- oci/golden_gate/models/mongo_db_connection_summary.py +1 -1
- oci/golden_gate/models/mysql_connection.py +106 -1
- oci/golden_gate/models/mysql_connection_summary.py +1 -1
- oci/golden_gate/models/nessie_iceberg_catalog.py +113 -0
- oci/golden_gate/models/nessie_iceberg_catalog_summary.py +113 -0
- oci/golden_gate/models/oci_object_storage_connection.py +1 -1
- oci/golden_gate/models/oci_object_storage_connection_summary.py +1 -1
- oci/golden_gate/models/oracle_connection.py +1 -1
- oci/golden_gate/models/oracle_connection_summary.py +1 -1
- oci/golden_gate/models/oracle_nosql_connection.py +35 -2
- oci/golden_gate/models/oracle_nosql_connection_summary.py +2 -2
- oci/golden_gate/models/polaris_iceberg_catalog.py +210 -0
- oci/golden_gate/models/polaris_iceberg_catalog_summary.py +210 -0
- oci/golden_gate/models/postgresql_connection.py +104 -3
- oci/golden_gate/models/postgresql_connection_summary.py +1 -1
- oci/golden_gate/models/redis_connection.py +1 -1
- oci/golden_gate/models/redis_connection_summary.py +1 -1
- oci/golden_gate/models/rest_iceberg_catalog.py +121 -0
- oci/golden_gate/models/rest_iceberg_catalog_summary.py +121 -0
- oci/golden_gate/models/snowflake_connection.py +2 -2
- oci/golden_gate/models/snowflake_connection_summary.py +2 -2
- oci/golden_gate/models/update_amazon_kinesis_connection_details.py +1 -1
- oci/golden_gate/models/update_amazon_redshift_connection_details.py +1 -1
- oci/golden_gate/models/update_amazon_s3_connection_details.py +67 -3
- oci/golden_gate/models/update_amazon_s3_iceberg_storage_details.py +243 -0
- oci/golden_gate/models/update_azure_data_lake_storage_connection_details.py +1 -1
- oci/golden_gate/models/update_azure_data_lake_storage_iceberg_storage_details.py +179 -0
- oci/golden_gate/models/update_azure_synapse_connection_details.py +1 -1
- oci/golden_gate/models/update_connection_details.py +11 -3
- oci/golden_gate/models/update_databricks_connection_details.py +1 -1
- oci/golden_gate/models/update_db2_connection_details.py +3 -1
- oci/golden_gate/models/update_elasticsearch_connection_details.py +1 -1
- oci/golden_gate/models/update_generic_connection_details.py +1 -1
- oci/golden_gate/models/update_glue_iceberg_catalog_details.py +80 -0
- oci/golden_gate/models/update_golden_gate_connection_details.py +1 -1
- oci/golden_gate/models/update_google_big_query_connection_details.py +3 -3
- oci/golden_gate/models/update_google_cloud_storage_connection_details.py +3 -3
- oci/golden_gate/models/update_google_cloud_storage_iceberg_storage_details.py +148 -0
- oci/golden_gate/models/update_google_pub_sub_connection_details.py +3 -3
- oci/golden_gate/models/update_hadoop_iceberg_catalog_details.py +49 -0
- oci/golden_gate/models/update_hdfs_connection_details.py +3 -1
- oci/golden_gate/models/update_iceberg_catalog_details.py +131 -0
- oci/golden_gate/models/update_iceberg_connection_details.py +174 -0
- oci/golden_gate/models/update_iceberg_storage_details.py +115 -0
- oci/golden_gate/models/update_java_message_service_connection_details.py +1 -1
- oci/golden_gate/models/update_kafka_connection_details.py +1 -1
- oci/golden_gate/models/update_kafka_schema_registry_connection_details.py +1 -1
- oci/golden_gate/models/update_microsoft_fabric_connection_details.py +1 -1
- oci/golden_gate/models/update_microsoft_sqlserver_connection_details.py +3 -3
- oci/golden_gate/models/update_mongo_db_connection_details.py +3 -1
- oci/golden_gate/models/update_mysql_connection_details.py +11 -5
- oci/golden_gate/models/update_nessie_iceberg_catalog_details.py +113 -0
- oci/golden_gate/models/update_oci_object_storage_connection_details.py +1 -1
- oci/golden_gate/models/update_oracle_connection_details.py +1 -1
- oci/golden_gate/models/update_oracle_nosql_connection_details.py +1 -1
- oci/golden_gate/models/update_polaris_iceberg_catalog_details.py +210 -0
- oci/golden_gate/models/update_postgresql_connection_details.py +7 -1
- oci/golden_gate/models/update_redis_connection_details.py +1 -1
- oci/golden_gate/models/update_rest_iceberg_catalog_details.py +121 -0
- oci/golden_gate/models/update_snowflake_connection_details.py +1 -1
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +79 -79
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +200 -200
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/lustre_file_storage/lustre_file_storage_client.py +11 -11
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +18 -18
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/mngdmac/mac_device_client.py +3 -3
- oci/mngdmac/mac_order_client.py +11 -11
- oci/model_deployment/model_deployment_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +141 -9
- oci/mysql/db_backups_client_composite_operations.py +39 -0
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/backup.py +56 -3
- oci/mysql/models/backup_policy.py +49 -0
- oci/mysql/models/backup_summary.py +80 -0
- oci/mysql/models/create_backup_details.py +49 -0
- oci/mysql/models/create_backup_policy_details.py +49 -0
- oci/mysql/models/update_backup_details.py +49 -0
- oci/mysql/models/update_backup_policy_details.py +49 -0
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +92 -92
- oci/network_load_balancer/network_load_balancer_client.py +35 -35
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +17 -17
- oci/opensearch/opensearch_cluster_pipeline_client.py +5 -5
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +181 -181
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +13 -13
- oci/os_management_hub/managed_instance_client.py +33 -33
- oci/os_management_hub/managed_instance_group_client.py +26 -26
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +13 -13
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +33 -33
- oci/os_management_hub/work_request_client.py +5 -5
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +34 -34
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/redis_cluster_client.py +12 -12
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +14 -14
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +87 -87
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +14 -14
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.153.0.dist-info → oci-2.154.1.dist-info}/METADATA +1 -1
- {oci-2.153.0.dist-info → oci-2.154.1.dist-info}/RECORD +511 -430
- {oci-2.153.0.dist-info → oci-2.154.1.dist-info}/LICENSE.txt +0 -0
- {oci-2.153.0.dist-info → oci-2.154.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.153.0.dist-info → oci-2.154.1.dist-info}/WHEEL +0 -0
- {oci-2.153.0.dist-info → oci-2.154.1.dist-info}/top_level.txt +0 -0
@@ -118,45 +118,142 @@ class ManagedMySqlDatabasesClient(object):
|
|
118
118
|
self.retry_strategy = kwargs.get('retry_strategy')
|
119
119
|
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
120
120
|
|
121
|
-
def
|
121
|
+
def change_mysql_database_management_type(self, managed_my_sql_database_id, change_mysql_database_management_type_details, **kwargs):
|
122
122
|
"""
|
123
|
-
|
123
|
+
Changes the management type for a HeatWave MySQL instance, from BASIC to FULL and vice versa.
|
124
|
+
It can also be used to enable or disable database management.
|
124
125
|
|
125
126
|
|
126
|
-
:param str
|
127
|
-
The
|
127
|
+
:param str managed_my_sql_database_id: (required)
|
128
|
+
The OCID of the Managed MySQL Database.
|
128
129
|
|
129
|
-
|
130
|
+
:param oci.database_management.models.ChangeMysqlDatabaseManagementTypeDetails change_mysql_database_management_type_details: (required)
|
131
|
+
The details required to change the management type of a MySQL managed database.
|
130
132
|
|
131
|
-
:param str
|
132
|
-
|
133
|
-
|
133
|
+
:param str opc_retry_token: (optional)
|
134
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
135
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
136
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
137
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
138
|
+
might be rejected.
|
134
139
|
|
135
|
-
:param str
|
136
|
-
|
137
|
-
|
140
|
+
:param str if_match: (optional)
|
141
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
142
|
+
for a resource, set the `if-match` parameter to the value of the
|
143
|
+
etag from a previous GET or POST response for that resource.
|
144
|
+
The resource will be updated or deleted only if the etag you
|
145
|
+
provide matches the resource's current etag value.
|
138
146
|
|
139
147
|
:param str opc_request_id: (optional)
|
140
148
|
The client request ID for tracing.
|
141
149
|
|
142
|
-
:param
|
143
|
-
|
150
|
+
:param obj retry_strategy: (optional)
|
151
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
144
152
|
|
145
|
-
|
146
|
-
The
|
153
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
154
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
147
155
|
|
148
|
-
|
156
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
149
157
|
|
150
|
-
:param
|
151
|
-
|
158
|
+
:param bool allow_control_chars: (optional)
|
159
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
160
|
+
By default, the response will not allow control characters in strings
|
152
161
|
|
153
|
-
:
|
154
|
-
|
162
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
163
|
+
:rtype: :class:`~oci.response.Response`
|
164
|
+
|
165
|
+
:example:
|
166
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/change_mysql_database_management_type.py.html>`__ to see an example of how to use change_mysql_database_management_type API.
|
167
|
+
"""
|
168
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
169
|
+
required_arguments = ['managedMySqlDatabaseId']
|
170
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/actions/changeManagementType"
|
171
|
+
method = "POST"
|
172
|
+
operation_name = "change_mysql_database_management_type"
|
173
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/ChangeMysqlDatabaseManagementType"
|
174
|
+
|
175
|
+
# Don't accept unknown kwargs
|
176
|
+
expected_kwargs = [
|
177
|
+
"allow_control_chars",
|
178
|
+
"retry_strategy",
|
179
|
+
"opc_retry_token",
|
180
|
+
"if_match",
|
181
|
+
"opc_request_id"
|
182
|
+
]
|
183
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
184
|
+
if extra_kwargs:
|
185
|
+
raise ValueError(
|
186
|
+
f"change_mysql_database_management_type got unknown kwargs: {extra_kwargs!r}")
|
187
|
+
|
188
|
+
path_params = {
|
189
|
+
"managedMySqlDatabaseId": managed_my_sql_database_id
|
190
|
+
}
|
191
|
+
|
192
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
193
|
+
|
194
|
+
for (k, v) in six.iteritems(path_params):
|
195
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
196
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
197
|
+
|
198
|
+
header_params = {
|
199
|
+
"accept": "application/json",
|
200
|
+
"content-type": "application/json",
|
201
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
202
|
+
"if-match": kwargs.get("if_match", missing),
|
203
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
204
|
+
}
|
205
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
206
|
+
|
207
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
208
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
209
|
+
client_retry_strategy=self.retry_strategy
|
210
|
+
)
|
211
|
+
if retry_strategy is None:
|
212
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
213
|
+
|
214
|
+
if retry_strategy:
|
215
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
216
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
217
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
218
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
219
|
+
return retry_strategy.make_retrying_call(
|
220
|
+
self.base_client.call_api,
|
221
|
+
resource_path=resource_path,
|
222
|
+
method=method,
|
223
|
+
path_params=path_params,
|
224
|
+
header_params=header_params,
|
225
|
+
body=change_mysql_database_management_type_details,
|
226
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
227
|
+
operation_name=operation_name,
|
228
|
+
api_reference_link=api_reference_link,
|
229
|
+
required_arguments=required_arguments)
|
230
|
+
else:
|
231
|
+
return self.base_client.call_api(
|
232
|
+
resource_path=resource_path,
|
233
|
+
method=method,
|
234
|
+
path_params=path_params,
|
235
|
+
header_params=header_params,
|
236
|
+
body=change_mysql_database_management_type_details,
|
237
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
238
|
+
operation_name=operation_name,
|
239
|
+
api_reference_link=api_reference_link,
|
240
|
+
required_arguments=required_arguments)
|
241
|
+
|
242
|
+
def get_binary_log_information(self, managed_my_sql_database_id, **kwargs):
|
243
|
+
"""
|
244
|
+
Retrieves information pertaining to binary log of a specific MySQL server.
|
245
|
+
|
246
|
+
|
247
|
+
:param str managed_my_sql_database_id: (required)
|
248
|
+
The OCID of the Managed MySQL Database.
|
249
|
+
|
250
|
+
:param str opc_request_id: (optional)
|
251
|
+
The client request ID for tracing.
|
155
252
|
|
156
253
|
:param obj retry_strategy: (optional)
|
157
254
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
158
255
|
|
159
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
256
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
160
257
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
161
258
|
|
162
259
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -165,51 +262,39 @@ class ManagedMySqlDatabasesClient(object):
|
|
165
262
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
166
263
|
By default, the response will not allow control characters in strings
|
167
264
|
|
168
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.
|
265
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ManagedMySqlDatabaseBinaryLogInformation`
|
169
266
|
:rtype: :class:`~oci.response.Response`
|
170
267
|
|
171
268
|
:example:
|
172
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
269
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/get_binary_log_information.py.html>`__ to see an example of how to use get_binary_log_information API.
|
173
270
|
"""
|
174
271
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
175
|
-
required_arguments = ['
|
176
|
-
resource_path = "/
|
272
|
+
required_arguments = ['managedMySqlDatabaseId']
|
273
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/binaryLogInformation"
|
177
274
|
method = "GET"
|
178
|
-
operation_name = "
|
179
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/
|
275
|
+
operation_name = "get_binary_log_information"
|
276
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/GetBinaryLogInformation"
|
180
277
|
|
181
278
|
# Don't accept unknown kwargs
|
182
279
|
expected_kwargs = [
|
183
280
|
"allow_control_chars",
|
184
281
|
"retry_strategy",
|
185
|
-
"opc_request_id"
|
186
|
-
"filter_by_metric_names",
|
187
|
-
"filter_by_heat_wave_status",
|
188
|
-
"filter_by_heat_wave_shape",
|
189
|
-
"is_heat_wave_lakehouse_enabled"
|
282
|
+
"opc_request_id"
|
190
283
|
]
|
191
284
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
192
285
|
if extra_kwargs:
|
193
286
|
raise ValueError(
|
194
|
-
f"
|
195
|
-
|
196
|
-
if 'filter_by_heat_wave_status' in kwargs:
|
197
|
-
filter_by_heat_wave_status_allowed_values = ["UP", "DOWN", "UNKNOWN"]
|
198
|
-
if kwargs['filter_by_heat_wave_status'] not in filter_by_heat_wave_status_allowed_values:
|
199
|
-
raise ValueError(
|
200
|
-
f"Invalid value for `filter_by_heat_wave_status`, must be one of { filter_by_heat_wave_status_allowed_values }"
|
201
|
-
)
|
287
|
+
f"get_binary_log_information got unknown kwargs: {extra_kwargs!r}")
|
202
288
|
|
203
|
-
|
204
|
-
"
|
205
|
-
"filterByMetricNames": kwargs.get("filter_by_metric_names", missing),
|
206
|
-
"startTime": start_time,
|
207
|
-
"endTime": end_time,
|
208
|
-
"filterByHeatWaveStatus": kwargs.get("filter_by_heat_wave_status", missing),
|
209
|
-
"filterByHeatWaveShape": kwargs.get("filter_by_heat_wave_shape", missing),
|
210
|
-
"isHeatWaveLakehouseEnabled": kwargs.get("is_heat_wave_lakehouse_enabled", missing)
|
289
|
+
path_params = {
|
290
|
+
"managedMySqlDatabaseId": managed_my_sql_database_id
|
211
291
|
}
|
212
|
-
|
292
|
+
|
293
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
294
|
+
|
295
|
+
for (k, v) in six.iteritems(path_params):
|
296
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
297
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
213
298
|
|
214
299
|
header_params = {
|
215
300
|
"accept": "application/json",
|
@@ -222,6 +307,8 @@ class ManagedMySqlDatabasesClient(object):
|
|
222
307
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
223
308
|
client_retry_strategy=self.retry_strategy
|
224
309
|
)
|
310
|
+
if retry_strategy is None:
|
311
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
225
312
|
|
226
313
|
if retry_strategy:
|
227
314
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -231,9 +318,9 @@ class ManagedMySqlDatabasesClient(object):
|
|
231
318
|
self.base_client.call_api,
|
232
319
|
resource_path=resource_path,
|
233
320
|
method=method,
|
234
|
-
|
321
|
+
path_params=path_params,
|
235
322
|
header_params=header_params,
|
236
|
-
response_type="
|
323
|
+
response_type="ManagedMySqlDatabaseBinaryLogInformation",
|
237
324
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
238
325
|
operation_name=operation_name,
|
239
326
|
api_reference_link=api_reference_link,
|
@@ -242,17 +329,17 @@ class ManagedMySqlDatabasesClient(object):
|
|
242
329
|
return self.base_client.call_api(
|
243
330
|
resource_path=resource_path,
|
244
331
|
method=method,
|
245
|
-
|
332
|
+
path_params=path_params,
|
246
333
|
header_params=header_params,
|
247
|
-
response_type="
|
334
|
+
response_type="ManagedMySqlDatabaseBinaryLogInformation",
|
248
335
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
249
336
|
operation_name=operation_name,
|
250
337
|
api_reference_link=api_reference_link,
|
251
338
|
required_arguments=required_arguments)
|
252
339
|
|
253
|
-
def
|
340
|
+
def get_general_replication_information(self, managed_my_sql_database_id, **kwargs):
|
254
341
|
"""
|
255
|
-
Retrieves
|
342
|
+
Retrieves general information regarding replication of a specific MySQL server.
|
256
343
|
|
257
344
|
|
258
345
|
:param str managed_my_sql_database_id: (required)
|
@@ -264,7 +351,7 @@ class ManagedMySqlDatabasesClient(object):
|
|
264
351
|
:param obj retry_strategy: (optional)
|
265
352
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
266
353
|
|
267
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
354
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
268
355
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
269
356
|
|
270
357
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -273,18 +360,18 @@ class ManagedMySqlDatabasesClient(object):
|
|
273
360
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
274
361
|
By default, the response will not allow control characters in strings
|
275
362
|
|
276
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.
|
363
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ManagedMySqlDatabaseGeneralReplicationInformation`
|
277
364
|
:rtype: :class:`~oci.response.Response`
|
278
365
|
|
279
366
|
:example:
|
280
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
367
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/get_general_replication_information.py.html>`__ to see an example of how to use get_general_replication_information API.
|
281
368
|
"""
|
282
369
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
283
370
|
required_arguments = ['managedMySqlDatabaseId']
|
284
|
-
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}"
|
371
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/generalReplicationInformation"
|
285
372
|
method = "GET"
|
286
|
-
operation_name = "
|
287
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/
|
373
|
+
operation_name = "get_general_replication_information"
|
374
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/GetGeneralReplicationInformation"
|
288
375
|
|
289
376
|
# Don't accept unknown kwargs
|
290
377
|
expected_kwargs = [
|
@@ -295,7 +382,7 @@ class ManagedMySqlDatabasesClient(object):
|
|
295
382
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
296
383
|
if extra_kwargs:
|
297
384
|
raise ValueError(
|
298
|
-
f"
|
385
|
+
f"get_general_replication_information got unknown kwargs: {extra_kwargs!r}")
|
299
386
|
|
300
387
|
path_params = {
|
301
388
|
"managedMySqlDatabaseId": managed_my_sql_database_id
|
@@ -318,6 +405,8 @@ class ManagedMySqlDatabasesClient(object):
|
|
318
405
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
319
406
|
client_retry_strategy=self.retry_strategy
|
320
407
|
)
|
408
|
+
if retry_strategy is None:
|
409
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
321
410
|
|
322
411
|
if retry_strategy:
|
323
412
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -329,7 +418,7 @@ class ManagedMySqlDatabasesClient(object):
|
|
329
418
|
method=method,
|
330
419
|
path_params=path_params,
|
331
420
|
header_params=header_params,
|
332
|
-
response_type="
|
421
|
+
response_type="ManagedMySqlDatabaseGeneralReplicationInformation",
|
333
422
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
334
423
|
operation_name=operation_name,
|
335
424
|
api_reference_link=api_reference_link,
|
@@ -340,15 +429,15 @@ class ManagedMySqlDatabasesClient(object):
|
|
340
429
|
method=method,
|
341
430
|
path_params=path_params,
|
342
431
|
header_params=header_params,
|
343
|
-
response_type="
|
432
|
+
response_type="ManagedMySqlDatabaseGeneralReplicationInformation",
|
344
433
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
345
434
|
operation_name=operation_name,
|
346
435
|
api_reference_link=api_reference_link,
|
347
436
|
required_arguments=required_arguments)
|
348
437
|
|
349
|
-
def
|
438
|
+
def get_heat_wave_fleet_metric(self, compartment_id, start_time, end_time, **kwargs):
|
350
439
|
"""
|
351
|
-
Gets the health metrics for a fleet of
|
440
|
+
Gets the health metrics for a fleet of HeatWave clusters in a compartment.
|
352
441
|
|
353
442
|
|
354
443
|
:param str compartment_id: (required)
|
@@ -370,31 +459,16 @@ class ManagedMySqlDatabasesClient(object):
|
|
370
459
|
:param str filter_by_metric_names: (optional)
|
371
460
|
The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics.
|
372
461
|
|
373
|
-
:param str
|
374
|
-
The parameter to filter by
|
375
|
-
|
376
|
-
Allowed values are: "ONPREMISE", "MDS"
|
377
|
-
|
378
|
-
:param str filter_by_mds_deployment_type: (optional)
|
379
|
-
The parameter to filter by MySQL Database System type.
|
380
|
-
|
381
|
-
Allowed values are: "HA", "HEATWAVE", "STANDALONE"
|
382
|
-
|
383
|
-
:param str filter_by_my_sql_database_type_param: (optional)
|
384
|
-
The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS.
|
385
|
-
|
386
|
-
Allowed values are: "EXTERNAL", "MDS"
|
387
|
-
|
388
|
-
:param str filter_by_my_sql_status: (optional)
|
389
|
-
The parameter to filter by MySQL Database status.
|
462
|
+
:param str filter_by_heat_wave_status: (optional)
|
463
|
+
The parameter to filter by HeatWave cluster status.
|
390
464
|
|
391
465
|
Allowed values are: "UP", "DOWN", "UNKNOWN"
|
392
466
|
|
393
|
-
:param str
|
394
|
-
The parameter to filter by
|
467
|
+
:param str filter_by_heat_wave_shape: (optional)
|
468
|
+
The parameter to filter by HeatWave node shape.
|
395
469
|
|
396
|
-
:param bool
|
397
|
-
The parameter to filter based on whether HeatWave is enabled for the
|
470
|
+
:param bool is_heat_wave_lakehouse_enabled: (optional)
|
471
|
+
The parameter to filter based on whether HeatWave Lakehouse is enabled for the cluster.
|
398
472
|
|
399
473
|
:param obj retry_strategy: (optional)
|
400
474
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -408,18 +482,18 @@ class ManagedMySqlDatabasesClient(object):
|
|
408
482
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
409
483
|
By default, the response will not allow control characters in strings
|
410
484
|
|
411
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.
|
485
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.HeatWaveFleetMetrics`
|
412
486
|
:rtype: :class:`~oci.response.Response`
|
413
487
|
|
414
488
|
:example:
|
415
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
489
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/get_heat_wave_fleet_metric.py.html>`__ to see an example of how to use get_heat_wave_fleet_metric API.
|
416
490
|
"""
|
417
491
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
418
492
|
required_arguments = ['compartmentId', 'startTime', 'endTime']
|
419
|
-
resource_path = "/
|
493
|
+
resource_path = "/heatWaveFleetMetrics"
|
420
494
|
method = "GET"
|
421
|
-
operation_name = "
|
422
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/
|
495
|
+
operation_name = "get_heat_wave_fleet_metric"
|
496
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/HeatWaveFleetMetrics/GetHeatWaveFleetMetric"
|
423
497
|
|
424
498
|
# Don't accept unknown kwargs
|
425
499
|
expected_kwargs = [
|
@@ -427,57 +501,1015 @@ class ManagedMySqlDatabasesClient(object):
|
|
427
501
|
"retry_strategy",
|
428
502
|
"opc_request_id",
|
429
503
|
"filter_by_metric_names",
|
430
|
-
"
|
431
|
-
"
|
432
|
-
"
|
433
|
-
"filter_by_my_sql_status",
|
434
|
-
"filter_by_my_sql_database_version",
|
435
|
-
"is_heat_wave_enabled"
|
504
|
+
"filter_by_heat_wave_status",
|
505
|
+
"filter_by_heat_wave_shape",
|
506
|
+
"is_heat_wave_lakehouse_enabled"
|
436
507
|
]
|
437
508
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
438
509
|
if extra_kwargs:
|
439
510
|
raise ValueError(
|
440
|
-
f"
|
511
|
+
f"get_heat_wave_fleet_metric got unknown kwargs: {extra_kwargs!r}")
|
441
512
|
|
442
|
-
if '
|
443
|
-
|
444
|
-
if kwargs['
|
513
|
+
if 'filter_by_heat_wave_status' in kwargs:
|
514
|
+
filter_by_heat_wave_status_allowed_values = ["UP", "DOWN", "UNKNOWN"]
|
515
|
+
if kwargs['filter_by_heat_wave_status'] not in filter_by_heat_wave_status_allowed_values:
|
445
516
|
raise ValueError(
|
446
|
-
f"Invalid value for `
|
517
|
+
f"Invalid value for `filter_by_heat_wave_status`, must be one of { filter_by_heat_wave_status_allowed_values }"
|
447
518
|
)
|
448
519
|
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
520
|
+
query_params = {
|
521
|
+
"compartmentId": compartment_id,
|
522
|
+
"filterByMetricNames": kwargs.get("filter_by_metric_names", missing),
|
523
|
+
"startTime": start_time,
|
524
|
+
"endTime": end_time,
|
525
|
+
"filterByHeatWaveStatus": kwargs.get("filter_by_heat_wave_status", missing),
|
526
|
+
"filterByHeatWaveShape": kwargs.get("filter_by_heat_wave_shape", missing),
|
527
|
+
"isHeatWaveLakehouseEnabled": kwargs.get("is_heat_wave_lakehouse_enabled", missing)
|
528
|
+
}
|
529
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
455
530
|
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
531
|
+
header_params = {
|
532
|
+
"accept": "application/json",
|
533
|
+
"content-type": "application/json",
|
534
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
535
|
+
}
|
536
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
537
|
+
|
538
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
539
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
540
|
+
client_retry_strategy=self.retry_strategy
|
541
|
+
)
|
542
|
+
|
543
|
+
if retry_strategy:
|
544
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
545
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
546
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
547
|
+
return retry_strategy.make_retrying_call(
|
548
|
+
self.base_client.call_api,
|
549
|
+
resource_path=resource_path,
|
550
|
+
method=method,
|
551
|
+
query_params=query_params,
|
552
|
+
header_params=header_params,
|
553
|
+
response_type="HeatWaveFleetMetrics",
|
554
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
555
|
+
operation_name=operation_name,
|
556
|
+
api_reference_link=api_reference_link,
|
557
|
+
required_arguments=required_arguments)
|
558
|
+
else:
|
559
|
+
return self.base_client.call_api(
|
560
|
+
resource_path=resource_path,
|
561
|
+
method=method,
|
562
|
+
query_params=query_params,
|
563
|
+
header_params=header_params,
|
564
|
+
response_type="HeatWaveFleetMetrics",
|
565
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
566
|
+
operation_name=operation_name,
|
567
|
+
api_reference_link=api_reference_link,
|
568
|
+
required_arguments=required_arguments)
|
569
|
+
|
570
|
+
def get_managed_my_sql_database(self, managed_my_sql_database_id, **kwargs):
|
571
|
+
"""
|
572
|
+
Retrieves the general information for a specific MySQL Database.
|
573
|
+
|
574
|
+
|
575
|
+
:param str managed_my_sql_database_id: (required)
|
576
|
+
The OCID of the Managed MySQL Database.
|
577
|
+
|
578
|
+
:param str opc_request_id: (optional)
|
579
|
+
The client request ID for tracing.
|
580
|
+
|
581
|
+
:param obj retry_strategy: (optional)
|
582
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
583
|
+
|
584
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
585
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
586
|
+
|
587
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
588
|
+
|
589
|
+
:param bool allow_control_chars: (optional)
|
590
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
591
|
+
By default, the response will not allow control characters in strings
|
592
|
+
|
593
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ManagedMySqlDatabase`
|
594
|
+
:rtype: :class:`~oci.response.Response`
|
595
|
+
|
596
|
+
:example:
|
597
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/get_managed_my_sql_database.py.html>`__ to see an example of how to use get_managed_my_sql_database API.
|
598
|
+
"""
|
599
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
600
|
+
required_arguments = ['managedMySqlDatabaseId']
|
601
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}"
|
602
|
+
method = "GET"
|
603
|
+
operation_name = "get_managed_my_sql_database"
|
604
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/GetManagedMySqlDatabase"
|
605
|
+
|
606
|
+
# Don't accept unknown kwargs
|
607
|
+
expected_kwargs = [
|
608
|
+
"allow_control_chars",
|
609
|
+
"retry_strategy",
|
610
|
+
"opc_request_id"
|
611
|
+
]
|
612
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
613
|
+
if extra_kwargs:
|
614
|
+
raise ValueError(
|
615
|
+
f"get_managed_my_sql_database got unknown kwargs: {extra_kwargs!r}")
|
616
|
+
|
617
|
+
path_params = {
|
618
|
+
"managedMySqlDatabaseId": managed_my_sql_database_id
|
619
|
+
}
|
620
|
+
|
621
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
622
|
+
|
623
|
+
for (k, v) in six.iteritems(path_params):
|
624
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
625
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
626
|
+
|
627
|
+
header_params = {
|
628
|
+
"accept": "application/json",
|
629
|
+
"content-type": "application/json",
|
630
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
631
|
+
}
|
632
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
633
|
+
|
634
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
635
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
636
|
+
client_retry_strategy=self.retry_strategy
|
637
|
+
)
|
638
|
+
|
639
|
+
if retry_strategy:
|
640
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
641
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
642
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
643
|
+
return retry_strategy.make_retrying_call(
|
644
|
+
self.base_client.call_api,
|
645
|
+
resource_path=resource_path,
|
646
|
+
method=method,
|
647
|
+
path_params=path_params,
|
648
|
+
header_params=header_params,
|
649
|
+
response_type="ManagedMySqlDatabase",
|
650
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
651
|
+
operation_name=operation_name,
|
652
|
+
api_reference_link=api_reference_link,
|
653
|
+
required_arguments=required_arguments)
|
654
|
+
else:
|
655
|
+
return self.base_client.call_api(
|
656
|
+
resource_path=resource_path,
|
657
|
+
method=method,
|
658
|
+
path_params=path_params,
|
659
|
+
header_params=header_params,
|
660
|
+
response_type="ManagedMySqlDatabase",
|
661
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
662
|
+
operation_name=operation_name,
|
663
|
+
api_reference_link=api_reference_link,
|
664
|
+
required_arguments=required_arguments)
|
665
|
+
|
666
|
+
def get_my_sql_fleet_metric(self, compartment_id, start_time, end_time, **kwargs):
|
667
|
+
"""
|
668
|
+
Gets the health metrics for a fleet of MySQL Databases in a compartment.
|
669
|
+
|
670
|
+
|
671
|
+
:param str compartment_id: (required)
|
672
|
+
The `OCID`__ of the compartment.
|
673
|
+
|
674
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
675
|
+
|
676
|
+
:param str start_time: (required)
|
677
|
+
The start time of the time range to retrieve the health metrics of a Managed Database
|
678
|
+
in UTC in ISO-8601 format, which is \"yyyy-MM-dd'T'hh:mm:ss.sss'Z'\".
|
679
|
+
|
680
|
+
:param str end_time: (required)
|
681
|
+
The end time of the time range to retrieve the health metrics of a Managed Database
|
682
|
+
in UTC in ISO-8601 format, which is \"yyyy-MM-dd'T'hh:mm:ss.sss'Z'\".
|
683
|
+
|
684
|
+
:param str opc_request_id: (optional)
|
685
|
+
The client request ID for tracing.
|
686
|
+
|
687
|
+
:param str filter_by_metric_names: (optional)
|
688
|
+
The filter used to retrieve a specific set of metrics by passing the desired metric names with a comma separator. Note that, by default, the service returns all supported metrics.
|
689
|
+
|
690
|
+
:param str filter_by_my_sql_deployment_type_param: (optional)
|
691
|
+
The parameter to filter by MySQL deployment type.
|
692
|
+
|
693
|
+
Allowed values are: "ONPREMISE", "MDS"
|
694
|
+
|
695
|
+
:param str filter_by_mds_deployment_type: (optional)
|
696
|
+
The parameter to filter by MySQL Database System type.
|
697
|
+
|
698
|
+
Allowed values are: "HA", "HEATWAVE", "STANDALONE"
|
699
|
+
|
700
|
+
:param str filter_by_my_sql_database_type_param: (optional)
|
701
|
+
The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS.
|
702
|
+
|
703
|
+
Allowed values are: "EXTERNAL", "MDS"
|
704
|
+
|
705
|
+
:param str filter_by_my_sql_status: (optional)
|
706
|
+
The parameter to filter by MySQL Database status.
|
707
|
+
|
708
|
+
Allowed values are: "UP", "DOWN", "UNKNOWN"
|
709
|
+
|
710
|
+
:param str filter_by_my_sql_database_version: (optional)
|
711
|
+
The parameter to filter by MySQL database version.
|
712
|
+
|
713
|
+
:param bool is_heat_wave_enabled: (optional)
|
714
|
+
The parameter to filter based on whether HeatWave is enabled for the database.
|
715
|
+
|
716
|
+
:param obj retry_strategy: (optional)
|
717
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
718
|
+
|
719
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
720
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
721
|
+
|
722
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
723
|
+
|
724
|
+
:param bool allow_control_chars: (optional)
|
725
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
726
|
+
By default, the response will not allow control characters in strings
|
727
|
+
|
728
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.MySqlFleetMetrics`
|
729
|
+
:rtype: :class:`~oci.response.Response`
|
730
|
+
|
731
|
+
:example:
|
732
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/get_my_sql_fleet_metric.py.html>`__ to see an example of how to use get_my_sql_fleet_metric API.
|
733
|
+
"""
|
734
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
735
|
+
required_arguments = ['compartmentId', 'startTime', 'endTime']
|
736
|
+
resource_path = "/mysqlFleetMetrics"
|
737
|
+
method = "GET"
|
738
|
+
operation_name = "get_my_sql_fleet_metric"
|
739
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/MySqlFleetMetrics/GetMySqlFleetMetric"
|
740
|
+
|
741
|
+
# Don't accept unknown kwargs
|
742
|
+
expected_kwargs = [
|
743
|
+
"allow_control_chars",
|
744
|
+
"retry_strategy",
|
745
|
+
"opc_request_id",
|
746
|
+
"filter_by_metric_names",
|
747
|
+
"filter_by_my_sql_deployment_type_param",
|
748
|
+
"filter_by_mds_deployment_type",
|
749
|
+
"filter_by_my_sql_database_type_param",
|
750
|
+
"filter_by_my_sql_status",
|
751
|
+
"filter_by_my_sql_database_version",
|
752
|
+
"is_heat_wave_enabled"
|
753
|
+
]
|
754
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
755
|
+
if extra_kwargs:
|
756
|
+
raise ValueError(
|
757
|
+
f"get_my_sql_fleet_metric got unknown kwargs: {extra_kwargs!r}")
|
758
|
+
|
759
|
+
if 'filter_by_my_sql_deployment_type_param' in kwargs:
|
760
|
+
filter_by_my_sql_deployment_type_param_allowed_values = ["ONPREMISE", "MDS"]
|
761
|
+
if kwargs['filter_by_my_sql_deployment_type_param'] not in filter_by_my_sql_deployment_type_param_allowed_values:
|
762
|
+
raise ValueError(
|
763
|
+
f"Invalid value for `filter_by_my_sql_deployment_type_param`, must be one of { filter_by_my_sql_deployment_type_param_allowed_values }"
|
764
|
+
)
|
765
|
+
|
766
|
+
if 'filter_by_mds_deployment_type' in kwargs:
|
767
|
+
filter_by_mds_deployment_type_allowed_values = ["HA", "HEATWAVE", "STANDALONE"]
|
768
|
+
if kwargs['filter_by_mds_deployment_type'] not in filter_by_mds_deployment_type_allowed_values:
|
769
|
+
raise ValueError(
|
770
|
+
f"Invalid value for `filter_by_mds_deployment_type`, must be one of { filter_by_mds_deployment_type_allowed_values }"
|
771
|
+
)
|
772
|
+
|
773
|
+
if 'filter_by_my_sql_database_type_param' in kwargs:
|
774
|
+
filter_by_my_sql_database_type_param_allowed_values = ["EXTERNAL", "MDS"]
|
775
|
+
if kwargs['filter_by_my_sql_database_type_param'] not in filter_by_my_sql_database_type_param_allowed_values:
|
776
|
+
raise ValueError(
|
777
|
+
f"Invalid value for `filter_by_my_sql_database_type_param`, must be one of { filter_by_my_sql_database_type_param_allowed_values }"
|
778
|
+
)
|
779
|
+
|
780
|
+
if 'filter_by_my_sql_status' in kwargs:
|
781
|
+
filter_by_my_sql_status_allowed_values = ["UP", "DOWN", "UNKNOWN"]
|
782
|
+
if kwargs['filter_by_my_sql_status'] not in filter_by_my_sql_status_allowed_values:
|
783
|
+
raise ValueError(
|
784
|
+
f"Invalid value for `filter_by_my_sql_status`, must be one of { filter_by_my_sql_status_allowed_values }"
|
785
|
+
)
|
786
|
+
|
787
|
+
query_params = {
|
788
|
+
"compartmentId": compartment_id,
|
789
|
+
"filterByMetricNames": kwargs.get("filter_by_metric_names", missing),
|
790
|
+
"startTime": start_time,
|
791
|
+
"endTime": end_time,
|
792
|
+
"filterByMySqlDeploymentTypeParam": kwargs.get("filter_by_my_sql_deployment_type_param", missing),
|
793
|
+
"filterByMdsDeploymentType": kwargs.get("filter_by_mds_deployment_type", missing),
|
794
|
+
"filterByMySqlDatabaseTypeParam": kwargs.get("filter_by_my_sql_database_type_param", missing),
|
795
|
+
"filterByMySqlStatus": kwargs.get("filter_by_my_sql_status", missing),
|
796
|
+
"filterByMySqlDatabaseVersion": kwargs.get("filter_by_my_sql_database_version", missing),
|
797
|
+
"isHeatWaveEnabled": kwargs.get("is_heat_wave_enabled", missing)
|
798
|
+
}
|
799
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
800
|
+
|
801
|
+
header_params = {
|
802
|
+
"accept": "application/json",
|
803
|
+
"content-type": "application/json",
|
804
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
805
|
+
}
|
806
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
807
|
+
|
808
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
809
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
810
|
+
client_retry_strategy=self.retry_strategy
|
811
|
+
)
|
812
|
+
|
813
|
+
if retry_strategy:
|
814
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
815
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
816
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
817
|
+
return retry_strategy.make_retrying_call(
|
818
|
+
self.base_client.call_api,
|
819
|
+
resource_path=resource_path,
|
820
|
+
method=method,
|
821
|
+
query_params=query_params,
|
822
|
+
header_params=header_params,
|
823
|
+
response_type="MySqlFleetMetrics",
|
824
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
825
|
+
operation_name=operation_name,
|
826
|
+
api_reference_link=api_reference_link,
|
827
|
+
required_arguments=required_arguments)
|
828
|
+
else:
|
829
|
+
return self.base_client.call_api(
|
830
|
+
resource_path=resource_path,
|
831
|
+
method=method,
|
832
|
+
query_params=query_params,
|
833
|
+
header_params=header_params,
|
834
|
+
response_type="MySqlFleetMetrics",
|
835
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
836
|
+
operation_name=operation_name,
|
837
|
+
api_reference_link=api_reference_link,
|
838
|
+
required_arguments=required_arguments)
|
839
|
+
|
840
|
+
def get_my_sql_query_details(self, managed_my_sql_database_id, digest, **kwargs):
|
841
|
+
"""
|
842
|
+
Retrieves query sample details, explain plan and potential warnings for a given digest.
|
843
|
+
|
844
|
+
|
845
|
+
:param str managed_my_sql_database_id: (required)
|
846
|
+
The OCID of the Managed MySQL Database.
|
847
|
+
|
848
|
+
:param str digest: (required)
|
849
|
+
The digest of a MySQL normalized query.
|
850
|
+
|
851
|
+
:param str opc_request_id: (optional)
|
852
|
+
The client request ID for tracing.
|
853
|
+
|
854
|
+
:param obj retry_strategy: (optional)
|
855
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
856
|
+
|
857
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
858
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
859
|
+
|
860
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
861
|
+
|
862
|
+
:param bool allow_control_chars: (optional)
|
863
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
864
|
+
By default, the response will not allow control characters in strings
|
865
|
+
|
866
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.MySqlQueryDetails`
|
867
|
+
:rtype: :class:`~oci.response.Response`
|
868
|
+
|
869
|
+
:example:
|
870
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/get_my_sql_query_details.py.html>`__ to see an example of how to use get_my_sql_query_details API.
|
871
|
+
"""
|
872
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
873
|
+
required_arguments = ['managedMySqlDatabaseId', 'digest']
|
874
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/queryDetails"
|
875
|
+
method = "GET"
|
876
|
+
operation_name = "get_my_sql_query_details"
|
877
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/GetMySqlQueryDetails"
|
878
|
+
|
879
|
+
# Don't accept unknown kwargs
|
880
|
+
expected_kwargs = [
|
881
|
+
"allow_control_chars",
|
882
|
+
"retry_strategy",
|
883
|
+
"opc_request_id"
|
884
|
+
]
|
885
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
886
|
+
if extra_kwargs:
|
887
|
+
raise ValueError(
|
888
|
+
f"get_my_sql_query_details got unknown kwargs: {extra_kwargs!r}")
|
889
|
+
|
890
|
+
path_params = {
|
891
|
+
"managedMySqlDatabaseId": managed_my_sql_database_id
|
892
|
+
}
|
893
|
+
|
894
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
895
|
+
|
896
|
+
for (k, v) in six.iteritems(path_params):
|
897
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
898
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
899
|
+
|
900
|
+
query_params = {
|
901
|
+
"digest": digest
|
902
|
+
}
|
903
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
904
|
+
|
905
|
+
header_params = {
|
906
|
+
"accept": "application/json",
|
907
|
+
"content-type": "application/json",
|
908
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
909
|
+
}
|
910
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
911
|
+
|
912
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
913
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
914
|
+
client_retry_strategy=self.retry_strategy
|
915
|
+
)
|
916
|
+
if retry_strategy is None:
|
917
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
918
|
+
|
919
|
+
if retry_strategy:
|
920
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
921
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
922
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
923
|
+
return retry_strategy.make_retrying_call(
|
924
|
+
self.base_client.call_api,
|
925
|
+
resource_path=resource_path,
|
926
|
+
method=method,
|
927
|
+
path_params=path_params,
|
928
|
+
query_params=query_params,
|
929
|
+
header_params=header_params,
|
930
|
+
response_type="MySqlQueryDetails",
|
931
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
932
|
+
operation_name=operation_name,
|
933
|
+
api_reference_link=api_reference_link,
|
934
|
+
required_arguments=required_arguments)
|
935
|
+
else:
|
936
|
+
return self.base_client.call_api(
|
937
|
+
resource_path=resource_path,
|
938
|
+
method=method,
|
939
|
+
path_params=path_params,
|
940
|
+
query_params=query_params,
|
941
|
+
header_params=header_params,
|
942
|
+
response_type="MySqlQueryDetails",
|
943
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
944
|
+
operation_name=operation_name,
|
945
|
+
api_reference_link=api_reference_link,
|
946
|
+
required_arguments=required_arguments)
|
947
|
+
|
948
|
+
def list_high_availability_members(self, managed_my_sql_database_id, **kwargs):
|
949
|
+
"""
|
950
|
+
Information about high availability members of a specific MySQL server's replication group.
|
951
|
+
|
952
|
+
|
953
|
+
:param str managed_my_sql_database_id: (required)
|
954
|
+
The OCID of the Managed MySQL Database.
|
955
|
+
|
956
|
+
:param str opc_request_id: (optional)
|
957
|
+
The client request ID for tracing.
|
958
|
+
|
959
|
+
:param int limit: (optional)
|
960
|
+
The maximum number of records returned in the paginated response.
|
961
|
+
|
962
|
+
:param str page: (optional)
|
963
|
+
The page token representing the page from where the next set of paginated results
|
964
|
+
are retrieved. This is usually retrieved from a previous list call.
|
965
|
+
|
966
|
+
:param str sort_order: (optional)
|
967
|
+
The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the default order.
|
968
|
+
|
969
|
+
Allowed values are: "ASC", "DESC"
|
970
|
+
|
971
|
+
:param str sort_by: (optional)
|
972
|
+
The field to sort information by. Only one sortOrder can be used.
|
973
|
+
The default sort by field is \u2018memberHost\u2019.
|
974
|
+
The default sort order for \u2018memberHost\u2019 is ascending.
|
975
|
+
The \u2018memberHost\u2019 sort order is case-sensitive.
|
976
|
+
|
977
|
+
Allowed values are: "memberHost"
|
978
|
+
|
979
|
+
:param obj retry_strategy: (optional)
|
980
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
981
|
+
|
982
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
983
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
984
|
+
|
985
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
986
|
+
|
987
|
+
:param bool allow_control_chars: (optional)
|
988
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
989
|
+
By default, the response will not allow control characters in strings
|
990
|
+
|
991
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ManagedMySqlDatabaseHighAvailabilityMemberCollection`
|
992
|
+
:rtype: :class:`~oci.response.Response`
|
993
|
+
|
994
|
+
:example:
|
995
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/list_high_availability_members.py.html>`__ to see an example of how to use list_high_availability_members API.
|
996
|
+
"""
|
997
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
998
|
+
required_arguments = ['managedMySqlDatabaseId']
|
999
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/highAvailabilityMembers"
|
1000
|
+
method = "GET"
|
1001
|
+
operation_name = "list_high_availability_members"
|
1002
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/ListHighAvailabilityMembers"
|
1003
|
+
|
1004
|
+
# Don't accept unknown kwargs
|
1005
|
+
expected_kwargs = [
|
1006
|
+
"allow_control_chars",
|
1007
|
+
"retry_strategy",
|
1008
|
+
"opc_request_id",
|
1009
|
+
"limit",
|
1010
|
+
"page",
|
1011
|
+
"sort_order",
|
1012
|
+
"sort_by"
|
1013
|
+
]
|
1014
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1015
|
+
if extra_kwargs:
|
1016
|
+
raise ValueError(
|
1017
|
+
f"list_high_availability_members got unknown kwargs: {extra_kwargs!r}")
|
1018
|
+
|
1019
|
+
path_params = {
|
1020
|
+
"managedMySqlDatabaseId": managed_my_sql_database_id
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1024
|
+
|
1025
|
+
for (k, v) in six.iteritems(path_params):
|
1026
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1027
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1028
|
+
|
1029
|
+
if 'sort_order' in kwargs:
|
1030
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1031
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1032
|
+
raise ValueError(
|
1033
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1034
|
+
)
|
1035
|
+
|
1036
|
+
if 'sort_by' in kwargs:
|
1037
|
+
sort_by_allowed_values = ["memberHost"]
|
1038
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1039
|
+
raise ValueError(
|
1040
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1041
|
+
)
|
1042
|
+
|
1043
|
+
query_params = {
|
1044
|
+
"limit": kwargs.get("limit", missing),
|
1045
|
+
"page": kwargs.get("page", missing),
|
1046
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1047
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1048
|
+
}
|
1049
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1050
|
+
|
1051
|
+
header_params = {
|
1052
|
+
"accept": "application/json",
|
1053
|
+
"content-type": "application/json",
|
1054
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1055
|
+
}
|
1056
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1057
|
+
|
1058
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1059
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1060
|
+
client_retry_strategy=self.retry_strategy
|
1061
|
+
)
|
1062
|
+
if retry_strategy is None:
|
1063
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1064
|
+
|
1065
|
+
if retry_strategy:
|
1066
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1067
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1068
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1069
|
+
return retry_strategy.make_retrying_call(
|
1070
|
+
self.base_client.call_api,
|
1071
|
+
resource_path=resource_path,
|
1072
|
+
method=method,
|
1073
|
+
path_params=path_params,
|
1074
|
+
query_params=query_params,
|
1075
|
+
header_params=header_params,
|
1076
|
+
response_type="ManagedMySqlDatabaseHighAvailabilityMemberCollection",
|
1077
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1078
|
+
operation_name=operation_name,
|
1079
|
+
api_reference_link=api_reference_link,
|
1080
|
+
required_arguments=required_arguments)
|
1081
|
+
else:
|
1082
|
+
return self.base_client.call_api(
|
1083
|
+
resource_path=resource_path,
|
1084
|
+
method=method,
|
1085
|
+
path_params=path_params,
|
1086
|
+
query_params=query_params,
|
1087
|
+
header_params=header_params,
|
1088
|
+
response_type="ManagedMySqlDatabaseHighAvailabilityMemberCollection",
|
1089
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1090
|
+
operation_name=operation_name,
|
1091
|
+
api_reference_link=api_reference_link,
|
1092
|
+
required_arguments=required_arguments)
|
1093
|
+
|
1094
|
+
def list_inbound_replications(self, managed_my_sql_database_id, **kwargs):
|
1095
|
+
"""
|
1096
|
+
Retrieves information about the inbound replications of a specific MySQL server.
|
1097
|
+
|
1098
|
+
|
1099
|
+
:param str managed_my_sql_database_id: (required)
|
1100
|
+
The OCID of the Managed MySQL Database.
|
1101
|
+
|
1102
|
+
:param str opc_request_id: (optional)
|
1103
|
+
The client request ID for tracing.
|
1104
|
+
|
1105
|
+
:param int limit: (optional)
|
1106
|
+
The maximum number of records returned in the paginated response.
|
1107
|
+
|
1108
|
+
:param str page: (optional)
|
1109
|
+
The page token representing the page from where the next set of paginated results
|
1110
|
+
are retrieved. This is usually retrieved from a previous list call.
|
1111
|
+
|
1112
|
+
:param str sort_order: (optional)
|
1113
|
+
The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the default order.
|
1114
|
+
|
1115
|
+
Allowed values are: "ASC", "DESC"
|
1116
|
+
|
1117
|
+
:param str sort_by: (optional)
|
1118
|
+
The field to sort information by. Only one sortOrder can be used.
|
1119
|
+
The default sort by field is \u2018sourceHost\u2019.
|
1120
|
+
The default sort order for \u2018sourceHost\u2019 is ascending.
|
1121
|
+
The \u2018sourceHost\u2019 sort order is case-sensitive.
|
1122
|
+
|
1123
|
+
Allowed values are: "sourceHost"
|
1124
|
+
|
1125
|
+
:param obj retry_strategy: (optional)
|
1126
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1127
|
+
|
1128
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1129
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1130
|
+
|
1131
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1132
|
+
|
1133
|
+
:param bool allow_control_chars: (optional)
|
1134
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1135
|
+
By default, the response will not allow control characters in strings
|
1136
|
+
|
1137
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ManagedMySqlDatabaseInboundReplicationCollection`
|
1138
|
+
:rtype: :class:`~oci.response.Response`
|
1139
|
+
|
1140
|
+
:example:
|
1141
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/list_inbound_replications.py.html>`__ to see an example of how to use list_inbound_replications API.
|
1142
|
+
"""
|
1143
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1144
|
+
required_arguments = ['managedMySqlDatabaseId']
|
1145
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/inboundReplications"
|
1146
|
+
method = "GET"
|
1147
|
+
operation_name = "list_inbound_replications"
|
1148
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/ListInboundReplications"
|
1149
|
+
|
1150
|
+
# Don't accept unknown kwargs
|
1151
|
+
expected_kwargs = [
|
1152
|
+
"allow_control_chars",
|
1153
|
+
"retry_strategy",
|
1154
|
+
"opc_request_id",
|
1155
|
+
"limit",
|
1156
|
+
"page",
|
1157
|
+
"sort_order",
|
1158
|
+
"sort_by"
|
1159
|
+
]
|
1160
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1161
|
+
if extra_kwargs:
|
1162
|
+
raise ValueError(
|
1163
|
+
f"list_inbound_replications got unknown kwargs: {extra_kwargs!r}")
|
1164
|
+
|
1165
|
+
path_params = {
|
1166
|
+
"managedMySqlDatabaseId": managed_my_sql_database_id
|
1167
|
+
}
|
1168
|
+
|
1169
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1170
|
+
|
1171
|
+
for (k, v) in six.iteritems(path_params):
|
1172
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1173
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1174
|
+
|
1175
|
+
if 'sort_order' in kwargs:
|
1176
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1177
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1178
|
+
raise ValueError(
|
1179
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1180
|
+
)
|
1181
|
+
|
1182
|
+
if 'sort_by' in kwargs:
|
1183
|
+
sort_by_allowed_values = ["sourceHost"]
|
1184
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1185
|
+
raise ValueError(
|
1186
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1187
|
+
)
|
1188
|
+
|
1189
|
+
query_params = {
|
1190
|
+
"limit": kwargs.get("limit", missing),
|
1191
|
+
"page": kwargs.get("page", missing),
|
1192
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1193
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1194
|
+
}
|
1195
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1196
|
+
|
1197
|
+
header_params = {
|
1198
|
+
"accept": "application/json",
|
1199
|
+
"content-type": "application/json",
|
1200
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1201
|
+
}
|
1202
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1203
|
+
|
1204
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1205
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1206
|
+
client_retry_strategy=self.retry_strategy
|
1207
|
+
)
|
1208
|
+
if retry_strategy is None:
|
1209
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1210
|
+
|
1211
|
+
if retry_strategy:
|
1212
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1213
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1214
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1215
|
+
return retry_strategy.make_retrying_call(
|
1216
|
+
self.base_client.call_api,
|
1217
|
+
resource_path=resource_path,
|
1218
|
+
method=method,
|
1219
|
+
path_params=path_params,
|
1220
|
+
query_params=query_params,
|
1221
|
+
header_params=header_params,
|
1222
|
+
response_type="ManagedMySqlDatabaseInboundReplicationCollection",
|
1223
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1224
|
+
operation_name=operation_name,
|
1225
|
+
api_reference_link=api_reference_link,
|
1226
|
+
required_arguments=required_arguments)
|
1227
|
+
else:
|
1228
|
+
return self.base_client.call_api(
|
1229
|
+
resource_path=resource_path,
|
1230
|
+
method=method,
|
1231
|
+
path_params=path_params,
|
1232
|
+
query_params=query_params,
|
1233
|
+
header_params=header_params,
|
1234
|
+
response_type="ManagedMySqlDatabaseInboundReplicationCollection",
|
1235
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1236
|
+
operation_name=operation_name,
|
1237
|
+
api_reference_link=api_reference_link,
|
1238
|
+
required_arguments=required_arguments)
|
1239
|
+
|
1240
|
+
def list_managed_my_sql_database_configuration_data(self, managed_my_sql_database_id, **kwargs):
|
1241
|
+
"""
|
1242
|
+
Retrieves configuration data for a specific MySQL database.
|
1243
|
+
|
1244
|
+
|
1245
|
+
:param str managed_my_sql_database_id: (required)
|
1246
|
+
The OCID of the Managed MySQL Database.
|
1247
|
+
|
1248
|
+
:param str opc_request_id: (optional)
|
1249
|
+
The client request ID for tracing.
|
1250
|
+
|
1251
|
+
:param int limit: (optional)
|
1252
|
+
The maximum number of records returned in the paginated response.
|
1253
|
+
|
1254
|
+
:param str page: (optional)
|
1255
|
+
The page token representing the page from where the next set of paginated results
|
1256
|
+
are retrieved. This is usually retrieved from a previous list call.
|
1257
|
+
|
1258
|
+
:param str sort_order: (optional)
|
1259
|
+
The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the default order.
|
1260
|
+
|
1261
|
+
Allowed values are: "ASC", "DESC"
|
1262
|
+
|
1263
|
+
:param str sort_by: (optional)
|
1264
|
+
The field to sort information by. Only one sortOrder can be used. The default sort order
|
1265
|
+
for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending.
|
1266
|
+
The \u2018NAME\u2019 sort order is case-sensitive.
|
1267
|
+
|
1268
|
+
Allowed values are: "TIMECREATED", "NAME"
|
1269
|
+
|
1270
|
+
:param obj retry_strategy: (optional)
|
1271
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1272
|
+
|
1273
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1274
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1275
|
+
|
1276
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1277
|
+
|
1278
|
+
:param bool allow_control_chars: (optional)
|
1279
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1280
|
+
By default, the response will not allow control characters in strings
|
1281
|
+
|
1282
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.MySqlConfigurationDataCollection`
|
1283
|
+
:rtype: :class:`~oci.response.Response`
|
1284
|
+
|
1285
|
+
:example:
|
1286
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/list_managed_my_sql_database_configuration_data.py.html>`__ to see an example of how to use list_managed_my_sql_database_configuration_data API.
|
1287
|
+
"""
|
1288
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1289
|
+
required_arguments = ['managedMySqlDatabaseId']
|
1290
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/configurationData"
|
1291
|
+
method = "GET"
|
1292
|
+
operation_name = "list_managed_my_sql_database_configuration_data"
|
1293
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/ListManagedMySqlDatabaseConfigurationData"
|
1294
|
+
|
1295
|
+
# Don't accept unknown kwargs
|
1296
|
+
expected_kwargs = [
|
1297
|
+
"allow_control_chars",
|
1298
|
+
"retry_strategy",
|
1299
|
+
"opc_request_id",
|
1300
|
+
"limit",
|
1301
|
+
"page",
|
1302
|
+
"sort_order",
|
1303
|
+
"sort_by"
|
1304
|
+
]
|
1305
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1306
|
+
if extra_kwargs:
|
1307
|
+
raise ValueError(
|
1308
|
+
f"list_managed_my_sql_database_configuration_data got unknown kwargs: {extra_kwargs!r}")
|
1309
|
+
|
1310
|
+
path_params = {
|
1311
|
+
"managedMySqlDatabaseId": managed_my_sql_database_id
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1315
|
+
|
1316
|
+
for (k, v) in six.iteritems(path_params):
|
1317
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1318
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1319
|
+
|
1320
|
+
if 'sort_order' in kwargs:
|
1321
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1322
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1323
|
+
raise ValueError(
|
1324
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1325
|
+
)
|
1326
|
+
|
1327
|
+
if 'sort_by' in kwargs:
|
1328
|
+
sort_by_allowed_values = ["TIMECREATED", "NAME"]
|
1329
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1330
|
+
raise ValueError(
|
1331
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1332
|
+
)
|
1333
|
+
|
1334
|
+
query_params = {
|
1335
|
+
"limit": kwargs.get("limit", missing),
|
1336
|
+
"page": kwargs.get("page", missing),
|
1337
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1338
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1339
|
+
}
|
1340
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1341
|
+
|
1342
|
+
header_params = {
|
1343
|
+
"accept": "application/json",
|
1344
|
+
"content-type": "application/json",
|
1345
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1346
|
+
}
|
1347
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1348
|
+
|
1349
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1350
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1351
|
+
client_retry_strategy=self.retry_strategy
|
1352
|
+
)
|
1353
|
+
if retry_strategy is None:
|
1354
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1355
|
+
|
1356
|
+
if retry_strategy:
|
1357
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1358
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1359
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1360
|
+
return retry_strategy.make_retrying_call(
|
1361
|
+
self.base_client.call_api,
|
1362
|
+
resource_path=resource_path,
|
1363
|
+
method=method,
|
1364
|
+
path_params=path_params,
|
1365
|
+
query_params=query_params,
|
1366
|
+
header_params=header_params,
|
1367
|
+
response_type="MySqlConfigurationDataCollection",
|
1368
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1369
|
+
operation_name=operation_name,
|
1370
|
+
api_reference_link=api_reference_link,
|
1371
|
+
required_arguments=required_arguments)
|
1372
|
+
else:
|
1373
|
+
return self.base_client.call_api(
|
1374
|
+
resource_path=resource_path,
|
1375
|
+
method=method,
|
1376
|
+
path_params=path_params,
|
1377
|
+
query_params=query_params,
|
1378
|
+
header_params=header_params,
|
1379
|
+
response_type="MySqlConfigurationDataCollection",
|
1380
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1381
|
+
operation_name=operation_name,
|
1382
|
+
api_reference_link=api_reference_link,
|
1383
|
+
required_arguments=required_arguments)
|
1384
|
+
|
1385
|
+
def list_managed_my_sql_database_sql_data(self, managed_my_sql_database_id, start_time, end_time, **kwargs):
|
1386
|
+
"""
|
1387
|
+
Retrieves the SQL performance data for a specific MySQL database.
|
1388
|
+
|
1389
|
+
|
1390
|
+
:param str managed_my_sql_database_id: (required)
|
1391
|
+
The OCID of the Managed MySQL Database.
|
1392
|
+
|
1393
|
+
:param str start_time: (required)
|
1394
|
+
The start time of the time range to retrieve the health metrics of a Managed Database
|
1395
|
+
in UTC in ISO-8601 format, which is \"yyyy-MM-dd'T'hh:mm:ss.sss'Z'\".
|
1396
|
+
|
1397
|
+
:param str end_time: (required)
|
1398
|
+
The end time of the time range to retrieve the health metrics of a Managed Database
|
1399
|
+
in UTC in ISO-8601 format, which is \"yyyy-MM-dd'T'hh:mm:ss.sss'Z'\".
|
1400
|
+
|
1401
|
+
:param str filter_column: (optional)
|
1402
|
+
The parameter to filter results by key criteria which include :
|
1403
|
+
- AVG_TIMER_WAIT
|
1404
|
+
- SUM_TIMER_WAIT
|
1405
|
+
- COUNT_STAR
|
1406
|
+
- SUM_ERRORS
|
1407
|
+
- SUM_ROWS_AFFECTED
|
1408
|
+
- SUM_ROWS_SENT
|
1409
|
+
- SUM_ROWS_EXAMINED
|
1410
|
+
- SUM_CREATED_TMP_TABLES
|
1411
|
+
- SUM_NO_INDEX_USED
|
1412
|
+
- SUM_NO_GOOD_INDEX_USED
|
1413
|
+
- FIRST_SEEN
|
1414
|
+
- LAST_SEEN
|
1415
|
+
- HEATWAVE_OFFLOADED
|
1416
|
+
- HEATWAVE_OUT_OF_MEMORY
|
1417
|
+
|
1418
|
+
:param str opc_request_id: (optional)
|
1419
|
+
The client request ID for tracing.
|
1420
|
+
|
1421
|
+
:param int limit: (optional)
|
1422
|
+
The maximum number of records returned in the paginated response.
|
1423
|
+
|
1424
|
+
:param str page: (optional)
|
1425
|
+
The page token representing the page from where the next set of paginated results
|
1426
|
+
are retrieved. This is usually retrieved from a previous list call.
|
1427
|
+
|
1428
|
+
:param str sort_by: (optional)
|
1429
|
+
The field to sort information by. Only one sortOrder can be used. The default sort order
|
1430
|
+
for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending.
|
1431
|
+
The \u2018NAME\u2019 sort order is case-sensitive.
|
1432
|
+
|
1433
|
+
Allowed values are: "TIMECREATED", "NAME"
|
1434
|
+
|
1435
|
+
:param str sort_order: (optional)
|
1436
|
+
The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the default order.
|
1437
|
+
|
1438
|
+
Allowed values are: "ASC", "DESC"
|
1439
|
+
|
1440
|
+
:param obj retry_strategy: (optional)
|
1441
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1442
|
+
|
1443
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1444
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1445
|
+
|
1446
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1447
|
+
|
1448
|
+
:param bool allow_control_chars: (optional)
|
1449
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1450
|
+
By default, the response will not allow control characters in strings
|
1451
|
+
|
1452
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.MySqlDataCollection`
|
1453
|
+
:rtype: :class:`~oci.response.Response`
|
1454
|
+
|
1455
|
+
:example:
|
1456
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/list_managed_my_sql_database_sql_data.py.html>`__ to see an example of how to use list_managed_my_sql_database_sql_data API.
|
1457
|
+
"""
|
1458
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1459
|
+
required_arguments = ['managedMySqlDatabaseId', 'startTime', 'endTime']
|
1460
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/sqlData"
|
1461
|
+
method = "GET"
|
1462
|
+
operation_name = "list_managed_my_sql_database_sql_data"
|
1463
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/ListManagedMySqlDatabaseSqlData"
|
1464
|
+
|
1465
|
+
# Don't accept unknown kwargs
|
1466
|
+
expected_kwargs = [
|
1467
|
+
"allow_control_chars",
|
1468
|
+
"retry_strategy",
|
1469
|
+
"filter_column",
|
1470
|
+
"opc_request_id",
|
1471
|
+
"limit",
|
1472
|
+
"page",
|
1473
|
+
"sort_by",
|
1474
|
+
"sort_order"
|
1475
|
+
]
|
1476
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1477
|
+
if extra_kwargs:
|
1478
|
+
raise ValueError(
|
1479
|
+
f"list_managed_my_sql_database_sql_data got unknown kwargs: {extra_kwargs!r}")
|
1480
|
+
|
1481
|
+
path_params = {
|
1482
|
+
"managedMySqlDatabaseId": managed_my_sql_database_id
|
1483
|
+
}
|
1484
|
+
|
1485
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1486
|
+
|
1487
|
+
for (k, v) in six.iteritems(path_params):
|
1488
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1489
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1490
|
+
|
1491
|
+
if 'sort_by' in kwargs:
|
1492
|
+
sort_by_allowed_values = ["TIMECREATED", "NAME"]
|
1493
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1494
|
+
raise ValueError(
|
1495
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
461
1496
|
)
|
462
1497
|
|
463
|
-
if '
|
464
|
-
|
465
|
-
if kwargs['
|
1498
|
+
if 'sort_order' in kwargs:
|
1499
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1500
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
466
1501
|
raise ValueError(
|
467
|
-
f"Invalid value for `
|
1502
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
468
1503
|
)
|
469
1504
|
|
470
1505
|
query_params = {
|
471
|
-
"
|
472
|
-
"
|
1506
|
+
"filterColumn": kwargs.get("filter_column", missing),
|
1507
|
+
"limit": kwargs.get("limit", missing),
|
1508
|
+
"page": kwargs.get("page", missing),
|
473
1509
|
"startTime": start_time,
|
474
1510
|
"endTime": end_time,
|
475
|
-
"
|
476
|
-
"
|
477
|
-
"filterByMySqlDatabaseTypeParam": kwargs.get("filter_by_my_sql_database_type_param", missing),
|
478
|
-
"filterByMySqlStatus": kwargs.get("filter_by_my_sql_status", missing),
|
479
|
-
"filterByMySqlDatabaseVersion": kwargs.get("filter_by_my_sql_database_version", missing),
|
480
|
-
"isHeatWaveEnabled": kwargs.get("is_heat_wave_enabled", missing)
|
1511
|
+
"sortBy": kwargs.get("sort_by", missing),
|
1512
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
481
1513
|
}
|
482
1514
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
483
1515
|
|
@@ -492,6 +1524,8 @@ class ManagedMySqlDatabasesClient(object):
|
|
492
1524
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
493
1525
|
client_retry_strategy=self.retry_strategy
|
494
1526
|
)
|
1527
|
+
if retry_strategy is None:
|
1528
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
495
1529
|
|
496
1530
|
if retry_strategy:
|
497
1531
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -501,9 +1535,10 @@ class ManagedMySqlDatabasesClient(object):
|
|
501
1535
|
self.base_client.call_api,
|
502
1536
|
resource_path=resource_path,
|
503
1537
|
method=method,
|
1538
|
+
path_params=path_params,
|
504
1539
|
query_params=query_params,
|
505
1540
|
header_params=header_params,
|
506
|
-
response_type="
|
1541
|
+
response_type="MySqlDataCollection",
|
507
1542
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
508
1543
|
operation_name=operation_name,
|
509
1544
|
api_reference_link=api_reference_link,
|
@@ -512,36 +1547,39 @@ class ManagedMySqlDatabasesClient(object):
|
|
512
1547
|
return self.base_client.call_api(
|
513
1548
|
resource_path=resource_path,
|
514
1549
|
method=method,
|
1550
|
+
path_params=path_params,
|
515
1551
|
query_params=query_params,
|
516
1552
|
header_params=header_params,
|
517
|
-
response_type="
|
1553
|
+
response_type="MySqlDataCollection",
|
518
1554
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
519
1555
|
operation_name=operation_name,
|
520
1556
|
api_reference_link=api_reference_link,
|
521
1557
|
required_arguments=required_arguments)
|
522
1558
|
|
523
|
-
def
|
1559
|
+
def list_managed_my_sql_databases(self, compartment_id, **kwargs):
|
524
1560
|
"""
|
525
|
-
|
1561
|
+
Gets the list of Managed MySQL Databases in a specific compartment.
|
526
1562
|
|
527
1563
|
|
528
|
-
:param str
|
529
|
-
The OCID of the
|
1564
|
+
:param str compartment_id: (required)
|
1565
|
+
The `OCID`__ of the compartment.
|
1566
|
+
|
1567
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
530
1568
|
|
531
1569
|
:param str opc_request_id: (optional)
|
532
1570
|
The client request ID for tracing.
|
533
1571
|
|
534
|
-
:param int limit: (optional)
|
535
|
-
The maximum number of records returned in the paginated response.
|
536
|
-
|
537
1572
|
:param str page: (optional)
|
538
1573
|
The page token representing the page from where the next set of paginated results
|
539
1574
|
are retrieved. This is usually retrieved from a previous list call.
|
540
1575
|
|
541
|
-
:param
|
542
|
-
The
|
1576
|
+
:param int limit: (optional)
|
1577
|
+
The maximum number of records returned in the paginated response.
|
543
1578
|
|
544
|
-
|
1579
|
+
:param str filter_by_my_sql_database_type_param: (optional)
|
1580
|
+
The parameter to filter by MySQL database type. Allowed values are EXTERNAL or MDS.
|
1581
|
+
|
1582
|
+
Allowed values are: "EXTERNAL", "MDS"
|
545
1583
|
|
546
1584
|
:param str sort_by: (optional)
|
547
1585
|
The field to sort information by. Only one sortOrder can be used. The default sort order
|
@@ -550,10 +1588,15 @@ class ManagedMySqlDatabasesClient(object):
|
|
550
1588
|
|
551
1589
|
Allowed values are: "TIMECREATED", "NAME"
|
552
1590
|
|
1591
|
+
:param str sort_order: (optional)
|
1592
|
+
The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the default order.
|
1593
|
+
|
1594
|
+
Allowed values are: "ASC", "DESC"
|
1595
|
+
|
553
1596
|
:param obj retry_strategy: (optional)
|
554
1597
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
555
1598
|
|
556
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
1599
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
557
1600
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
558
1601
|
|
559
1602
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -562,49 +1605,40 @@ class ManagedMySqlDatabasesClient(object):
|
|
562
1605
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
563
1606
|
By default, the response will not allow control characters in strings
|
564
1607
|
|
565
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.
|
1608
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ManagedMySqlDatabaseCollection`
|
566
1609
|
:rtype: :class:`~oci.response.Response`
|
567
1610
|
|
568
1611
|
:example:
|
569
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1612
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/list_managed_my_sql_databases.py.html>`__ to see an example of how to use list_managed_my_sql_databases API.
|
570
1613
|
"""
|
571
1614
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
572
|
-
required_arguments = ['
|
573
|
-
resource_path = "/managedMySqlDatabases
|
1615
|
+
required_arguments = ['compartmentId']
|
1616
|
+
resource_path = "/managedMySqlDatabases"
|
574
1617
|
method = "GET"
|
575
|
-
operation_name = "
|
576
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/
|
1618
|
+
operation_name = "list_managed_my_sql_databases"
|
1619
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabaseCollection/ListManagedMySqlDatabases"
|
577
1620
|
|
578
1621
|
# Don't accept unknown kwargs
|
579
1622
|
expected_kwargs = [
|
580
1623
|
"allow_control_chars",
|
581
1624
|
"retry_strategy",
|
582
1625
|
"opc_request_id",
|
583
|
-
"limit",
|
584
1626
|
"page",
|
585
|
-
"
|
586
|
-
"
|
1627
|
+
"limit",
|
1628
|
+
"filter_by_my_sql_database_type_param",
|
1629
|
+
"sort_by",
|
1630
|
+
"sort_order"
|
587
1631
|
]
|
588
1632
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
589
1633
|
if extra_kwargs:
|
590
1634
|
raise ValueError(
|
591
|
-
f"
|
592
|
-
|
593
|
-
path_params = {
|
594
|
-
"managedMySqlDatabaseId": managed_my_sql_database_id
|
595
|
-
}
|
596
|
-
|
597
|
-
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
598
|
-
|
599
|
-
for (k, v) in six.iteritems(path_params):
|
600
|
-
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
601
|
-
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1635
|
+
f"list_managed_my_sql_databases got unknown kwargs: {extra_kwargs!r}")
|
602
1636
|
|
603
|
-
if '
|
604
|
-
|
605
|
-
if kwargs['
|
1637
|
+
if 'filter_by_my_sql_database_type_param' in kwargs:
|
1638
|
+
filter_by_my_sql_database_type_param_allowed_values = ["EXTERNAL", "MDS"]
|
1639
|
+
if kwargs['filter_by_my_sql_database_type_param'] not in filter_by_my_sql_database_type_param_allowed_values:
|
606
1640
|
raise ValueError(
|
607
|
-
f"Invalid value for `
|
1641
|
+
f"Invalid value for `filter_by_my_sql_database_type_param`, must be one of { filter_by_my_sql_database_type_param_allowed_values }"
|
608
1642
|
)
|
609
1643
|
|
610
1644
|
if 'sort_by' in kwargs:
|
@@ -614,11 +1648,20 @@ class ManagedMySqlDatabasesClient(object):
|
|
614
1648
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
615
1649
|
)
|
616
1650
|
|
1651
|
+
if 'sort_order' in kwargs:
|
1652
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1653
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1654
|
+
raise ValueError(
|
1655
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1656
|
+
)
|
1657
|
+
|
617
1658
|
query_params = {
|
618
|
-
"
|
1659
|
+
"compartmentId": compartment_id,
|
619
1660
|
"page": kwargs.get("page", missing),
|
620
|
-
"
|
621
|
-
"
|
1661
|
+
"limit": kwargs.get("limit", missing),
|
1662
|
+
"filterByMySqlDatabaseTypeParam": kwargs.get("filter_by_my_sql_database_type_param", missing),
|
1663
|
+
"sortBy": kwargs.get("sort_by", missing),
|
1664
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
622
1665
|
}
|
623
1666
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
624
1667
|
|
@@ -633,8 +1676,6 @@ class ManagedMySqlDatabasesClient(object):
|
|
633
1676
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
634
1677
|
client_retry_strategy=self.retry_strategy
|
635
1678
|
)
|
636
|
-
if retry_strategy is None:
|
637
|
-
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
638
1679
|
|
639
1680
|
if retry_strategy:
|
640
1681
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -644,10 +1685,9 @@ class ManagedMySqlDatabasesClient(object):
|
|
644
1685
|
self.base_client.call_api,
|
645
1686
|
resource_path=resource_path,
|
646
1687
|
method=method,
|
647
|
-
path_params=path_params,
|
648
1688
|
query_params=query_params,
|
649
1689
|
header_params=header_params,
|
650
|
-
response_type="
|
1690
|
+
response_type="ManagedMySqlDatabaseCollection",
|
651
1691
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
652
1692
|
operation_name=operation_name,
|
653
1693
|
api_reference_link=api_reference_link,
|
@@ -656,64 +1696,41 @@ class ManagedMySqlDatabasesClient(object):
|
|
656
1696
|
return self.base_client.call_api(
|
657
1697
|
resource_path=resource_path,
|
658
1698
|
method=method,
|
659
|
-
path_params=path_params,
|
660
1699
|
query_params=query_params,
|
661
1700
|
header_params=header_params,
|
662
|
-
response_type="
|
1701
|
+
response_type="ManagedMySqlDatabaseCollection",
|
663
1702
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
664
1703
|
operation_name=operation_name,
|
665
1704
|
api_reference_link=api_reference_link,
|
666
1705
|
required_arguments=required_arguments)
|
667
1706
|
|
668
|
-
def
|
1707
|
+
def list_my_sql_digest_errors(self, managed_my_sql_database_id, digest, **kwargs):
|
669
1708
|
"""
|
670
|
-
Retrieves
|
1709
|
+
Retrieves any potential errors for a given digest.
|
671
1710
|
|
672
1711
|
|
673
1712
|
:param str managed_my_sql_database_id: (required)
|
674
1713
|
The OCID of the Managed MySQL Database.
|
675
1714
|
|
676
|
-
:param str
|
677
|
-
The
|
678
|
-
in UTC in ISO-8601 format, which is \"yyyy-MM-dd'T'hh:mm:ss.sss'Z'\".
|
679
|
-
|
680
|
-
:param str end_time: (required)
|
681
|
-
The end time of the time range to retrieve the health metrics of a Managed Database
|
682
|
-
in UTC in ISO-8601 format, which is \"yyyy-MM-dd'T'hh:mm:ss.sss'Z'\".
|
683
|
-
|
684
|
-
:param str filter_column: (optional)
|
685
|
-
The parameter to filter results by key criteria which include :
|
686
|
-
- AVG_TIMER_WAIT
|
687
|
-
- SUM_TIMER_WAIT
|
688
|
-
- COUNT_STAR
|
689
|
-
- SUM_ERRORS
|
690
|
-
- SUM_ROWS_AFFECTED
|
691
|
-
- SUM_ROWS_SENT
|
692
|
-
- SUM_ROWS_EXAMINED
|
693
|
-
- SUM_CREATED_TMP_TABLES
|
694
|
-
- SUM_NO_INDEX_USED
|
695
|
-
- SUM_NO_GOOD_INDEX_USED
|
696
|
-
- FIRST_SEEN
|
697
|
-
- LAST_SEEN
|
698
|
-
- HEATWAVE_OFFLOADED
|
699
|
-
- HEATWAVE_OUT_OF_MEMORY
|
1715
|
+
:param str digest: (required)
|
1716
|
+
The digest of a MySQL normalized query.
|
700
1717
|
|
701
1718
|
:param str opc_request_id: (optional)
|
702
1719
|
The client request ID for tracing.
|
703
1720
|
|
704
|
-
:param int limit: (optional)
|
705
|
-
The maximum number of records returned in the paginated response.
|
706
|
-
|
707
1721
|
:param str page: (optional)
|
708
1722
|
The page token representing the page from where the next set of paginated results
|
709
1723
|
are retrieved. This is usually retrieved from a previous list call.
|
710
1724
|
|
1725
|
+
:param int limit: (optional)
|
1726
|
+
The maximum number of records returned in the paginated response.
|
1727
|
+
|
711
1728
|
:param str sort_by: (optional)
|
712
|
-
The field to sort information by. Only one sortOrder can be used.
|
713
|
-
|
714
|
-
The
|
1729
|
+
The field to sort information by. Only one sortOrder can be used.
|
1730
|
+
The default sort by field is \u2018occurrenceCount\u2019.
|
1731
|
+
The default sort order for \u2018occurrenceCount\u2019 is descending.
|
715
1732
|
|
716
|
-
Allowed values are: "
|
1733
|
+
Allowed values are: "occurrenceCount"
|
717
1734
|
|
718
1735
|
:param str sort_order: (optional)
|
719
1736
|
The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the default order.
|
@@ -732,34 +1749,33 @@ class ManagedMySqlDatabasesClient(object):
|
|
732
1749
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
733
1750
|
By default, the response will not allow control characters in strings
|
734
1751
|
|
735
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.
|
1752
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.MySqlDigestErrorsCollection`
|
736
1753
|
:rtype: :class:`~oci.response.Response`
|
737
1754
|
|
738
1755
|
:example:
|
739
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1756
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/list_my_sql_digest_errors.py.html>`__ to see an example of how to use list_my_sql_digest_errors API.
|
740
1757
|
"""
|
741
1758
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
742
|
-
required_arguments = ['managedMySqlDatabaseId', '
|
743
|
-
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/
|
1759
|
+
required_arguments = ['managedMySqlDatabaseId', 'digest']
|
1760
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/digestErrors"
|
744
1761
|
method = "GET"
|
745
|
-
operation_name = "
|
746
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/
|
1762
|
+
operation_name = "list_my_sql_digest_errors"
|
1763
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/ListMySqlDigestErrors"
|
747
1764
|
|
748
1765
|
# Don't accept unknown kwargs
|
749
1766
|
expected_kwargs = [
|
750
1767
|
"allow_control_chars",
|
751
1768
|
"retry_strategy",
|
752
|
-
"filter_column",
|
753
1769
|
"opc_request_id",
|
754
|
-
"limit",
|
755
1770
|
"page",
|
1771
|
+
"limit",
|
756
1772
|
"sort_by",
|
757
1773
|
"sort_order"
|
758
1774
|
]
|
759
1775
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
760
1776
|
if extra_kwargs:
|
761
1777
|
raise ValueError(
|
762
|
-
f"
|
1778
|
+
f"list_my_sql_digest_errors got unknown kwargs: {extra_kwargs!r}")
|
763
1779
|
|
764
1780
|
path_params = {
|
765
1781
|
"managedMySqlDatabaseId": managed_my_sql_database_id
|
@@ -772,7 +1788,7 @@ class ManagedMySqlDatabasesClient(object):
|
|
772
1788
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
773
1789
|
|
774
1790
|
if 'sort_by' in kwargs:
|
775
|
-
sort_by_allowed_values = ["
|
1791
|
+
sort_by_allowed_values = ["occurrenceCount"]
|
776
1792
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
777
1793
|
raise ValueError(
|
778
1794
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
@@ -786,11 +1802,9 @@ class ManagedMySqlDatabasesClient(object):
|
|
786
1802
|
)
|
787
1803
|
|
788
1804
|
query_params = {
|
789
|
-
"
|
790
|
-
"limit": kwargs.get("limit", missing),
|
1805
|
+
"digest": digest,
|
791
1806
|
"page": kwargs.get("page", missing),
|
792
|
-
"
|
793
|
-
"endTime": end_time,
|
1807
|
+
"limit": kwargs.get("limit", missing),
|
794
1808
|
"sortBy": kwargs.get("sort_by", missing),
|
795
1809
|
"sortOrder": kwargs.get("sort_order", missing)
|
796
1810
|
}
|
@@ -821,7 +1835,7 @@ class ManagedMySqlDatabasesClient(object):
|
|
821
1835
|
path_params=path_params,
|
822
1836
|
query_params=query_params,
|
823
1837
|
header_params=header_params,
|
824
|
-
response_type="
|
1838
|
+
response_type="MySqlDigestErrorsCollection",
|
825
1839
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
826
1840
|
operation_name=operation_name,
|
827
1841
|
api_reference_link=api_reference_link,
|
@@ -833,53 +1847,47 @@ class ManagedMySqlDatabasesClient(object):
|
|
833
1847
|
path_params=path_params,
|
834
1848
|
query_params=query_params,
|
835
1849
|
header_params=header_params,
|
836
|
-
response_type="
|
1850
|
+
response_type="MySqlDigestErrorsCollection",
|
837
1851
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
838
1852
|
operation_name=operation_name,
|
839
1853
|
api_reference_link=api_reference_link,
|
840
1854
|
required_arguments=required_arguments)
|
841
1855
|
|
842
|
-
def
|
1856
|
+
def list_outbound_replications(self, managed_my_sql_database_id, **kwargs):
|
843
1857
|
"""
|
844
|
-
|
845
|
-
|
1858
|
+
Retrieves information pertaining to outbound replications of a specific MySQL server.
|
846
1859
|
|
847
|
-
:param str compartment_id: (required)
|
848
|
-
The `OCID`__ of the compartment.
|
849
1860
|
|
850
|
-
|
1861
|
+
:param str managed_my_sql_database_id: (required)
|
1862
|
+
The OCID of the Managed MySQL Database.
|
851
1863
|
|
852
1864
|
:param str opc_request_id: (optional)
|
853
1865
|
The client request ID for tracing.
|
854
1866
|
|
855
|
-
:param str page: (optional)
|
856
|
-
The page token representing the page from where the next set of paginated results
|
857
|
-
are retrieved. This is usually retrieved from a previous list call.
|
858
|
-
|
859
1867
|
:param int limit: (optional)
|
860
1868
|
The maximum number of records returned in the paginated response.
|
861
1869
|
|
862
|
-
:param str
|
863
|
-
The
|
864
|
-
|
865
|
-
Allowed values are: "EXTERNAL", "MDS"
|
866
|
-
|
867
|
-
:param str sort_by: (optional)
|
868
|
-
The field to sort information by. Only one sortOrder can be used. The default sort order
|
869
|
-
for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending.
|
870
|
-
The \u2018NAME\u2019 sort order is case-sensitive.
|
871
|
-
|
872
|
-
Allowed values are: "TIMECREATED", "NAME"
|
1870
|
+
:param str page: (optional)
|
1871
|
+
The page token representing the page from where the next set of paginated results
|
1872
|
+
are retrieved. This is usually retrieved from a previous list call.
|
873
1873
|
|
874
1874
|
:param str sort_order: (optional)
|
875
1875
|
The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the default order.
|
876
1876
|
|
877
1877
|
Allowed values are: "ASC", "DESC"
|
878
1878
|
|
1879
|
+
:param str sort_by: (optional)
|
1880
|
+
The field to sort information by. Only one sortOrder can be used.
|
1881
|
+
The default sort by field is \u2018replicaHost\u2019.
|
1882
|
+
The default sort order for \u2018replicaHost\u2019 is ascending.
|
1883
|
+
The \u2018replicaHost\u2019 sort order is case-sensitive.
|
1884
|
+
|
1885
|
+
Allowed values are: "replicaHost"
|
1886
|
+
|
879
1887
|
:param obj retry_strategy: (optional)
|
880
1888
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
881
1889
|
|
882
|
-
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation
|
1890
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
883
1891
|
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
884
1892
|
|
885
1893
|
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -888,48 +1896,43 @@ class ManagedMySqlDatabasesClient(object):
|
|
888
1896
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
889
1897
|
By default, the response will not allow control characters in strings
|
890
1898
|
|
891
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.
|
1899
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ManagedMySqlDatabaseOutboundReplicationCollection`
|
892
1900
|
:rtype: :class:`~oci.response.Response`
|
893
1901
|
|
894
1902
|
:example:
|
895
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1903
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/list_outbound_replications.py.html>`__ to see an example of how to use list_outbound_replications API.
|
896
1904
|
"""
|
897
1905
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
898
|
-
required_arguments = ['
|
899
|
-
resource_path = "/managedMySqlDatabases"
|
1906
|
+
required_arguments = ['managedMySqlDatabaseId']
|
1907
|
+
resource_path = "/managedMySqlDatabases/{managedMySqlDatabaseId}/outboundReplications"
|
900
1908
|
method = "GET"
|
901
|
-
operation_name = "
|
902
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/
|
1909
|
+
operation_name = "list_outbound_replications"
|
1910
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedMySqlDatabase/ListOutboundReplications"
|
903
1911
|
|
904
1912
|
# Don't accept unknown kwargs
|
905
1913
|
expected_kwargs = [
|
906
1914
|
"allow_control_chars",
|
907
1915
|
"retry_strategy",
|
908
1916
|
"opc_request_id",
|
909
|
-
"page",
|
910
1917
|
"limit",
|
911
|
-
"
|
912
|
-
"
|
913
|
-
"
|
1918
|
+
"page",
|
1919
|
+
"sort_order",
|
1920
|
+
"sort_by"
|
914
1921
|
]
|
915
1922
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
916
1923
|
if extra_kwargs:
|
917
1924
|
raise ValueError(
|
918
|
-
f"
|
1925
|
+
f"list_outbound_replications got unknown kwargs: {extra_kwargs!r}")
|
919
1926
|
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
raise ValueError(
|
924
|
-
f"Invalid value for `filter_by_my_sql_database_type_param`, must be one of { filter_by_my_sql_database_type_param_allowed_values }"
|
925
|
-
)
|
1927
|
+
path_params = {
|
1928
|
+
"managedMySqlDatabaseId": managed_my_sql_database_id
|
1929
|
+
}
|
926
1930
|
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
)
|
1931
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1932
|
+
|
1933
|
+
for (k, v) in six.iteritems(path_params):
|
1934
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1935
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
933
1936
|
|
934
1937
|
if 'sort_order' in kwargs:
|
935
1938
|
sort_order_allowed_values = ["ASC", "DESC"]
|
@@ -938,13 +1941,18 @@ class ManagedMySqlDatabasesClient(object):
|
|
938
1941
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
939
1942
|
)
|
940
1943
|
|
1944
|
+
if 'sort_by' in kwargs:
|
1945
|
+
sort_by_allowed_values = ["replicaHost"]
|
1946
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1947
|
+
raise ValueError(
|
1948
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1949
|
+
)
|
1950
|
+
|
941
1951
|
query_params = {
|
942
|
-
"compartmentId": compartment_id,
|
943
|
-
"page": kwargs.get("page", missing),
|
944
1952
|
"limit": kwargs.get("limit", missing),
|
945
|
-
"
|
946
|
-
"
|
947
|
-
"
|
1953
|
+
"page": kwargs.get("page", missing),
|
1954
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1955
|
+
"sortBy": kwargs.get("sort_by", missing)
|
948
1956
|
}
|
949
1957
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
950
1958
|
|
@@ -959,6 +1967,8 @@ class ManagedMySqlDatabasesClient(object):
|
|
959
1967
|
operation_retry_strategy=kwargs.get('retry_strategy'),
|
960
1968
|
client_retry_strategy=self.retry_strategy
|
961
1969
|
)
|
1970
|
+
if retry_strategy is None:
|
1971
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
962
1972
|
|
963
1973
|
if retry_strategy:
|
964
1974
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -968,9 +1978,10 @@ class ManagedMySqlDatabasesClient(object):
|
|
968
1978
|
self.base_client.call_api,
|
969
1979
|
resource_path=resource_path,
|
970
1980
|
method=method,
|
1981
|
+
path_params=path_params,
|
971
1982
|
query_params=query_params,
|
972
1983
|
header_params=header_params,
|
973
|
-
response_type="
|
1984
|
+
response_type="ManagedMySqlDatabaseOutboundReplicationCollection",
|
974
1985
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
975
1986
|
operation_name=operation_name,
|
976
1987
|
api_reference_link=api_reference_link,
|
@@ -979,9 +1990,10 @@ class ManagedMySqlDatabasesClient(object):
|
|
979
1990
|
return self.base_client.call_api(
|
980
1991
|
resource_path=resource_path,
|
981
1992
|
method=method,
|
1993
|
+
path_params=path_params,
|
982
1994
|
query_params=query_params,
|
983
1995
|
header_params=header_params,
|
984
|
-
response_type="
|
1996
|
+
response_type="ManagedMySqlDatabaseOutboundReplicationCollection",
|
985
1997
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
986
1998
|
operation_name=operation_name,
|
987
1999
|
api_reference_link=api_reference_link,
|
@@ -1029,7 +2041,7 @@ class ManagedMySqlDatabasesClient(object):
|
|
1029
2041
|
:rtype: :class:`~oci.response.Response`
|
1030
2042
|
|
1031
2043
|
:example:
|
1032
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2044
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.154.1/databasemanagement/summarize_managed_my_sql_database_availability_metrics.py.html>`__ to see an example of how to use summarize_managed_my_sql_database_availability_metrics API.
|
1033
2045
|
"""
|
1034
2046
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1035
2047
|
required_arguments = ['managedMySqlDatabaseId', 'startTime', 'endTime']
|