# This is an automatically generated code sample.
# To make this code sample work in your Oracle Cloud tenancy,
# please replace the values for any parameters whose current values do not fit
# your use case (such as resource IDs, strings containing ‘EXAMPLE’ or ‘unique_id’, and
# boolean, number, and enum parameters with values not fitting your use case).

import oci

# Create a default config using DEFAULT profile in default location
# Refer to
# https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File
# for more info
config = oci.config.from_file()


# Initialize service client with default config file
mysql_client = oci.mysql.MysqlaasClient(config)


# Send the request to service, some parameters are not required, see API
# doc for more info
create_configuration_response = mysql_client.create_configuration(
    create_configuration_details=oci.mysql.models.CreateConfigurationDetails(
        compartment_id="ocid1.test.oc1..<unique_ID>EXAMPLE-compartmentId-Value",
        shape_name="EXAMPLE-shapeName-Value",
        description="EXAMPLE-description-Value",
        display_name="EXAMPLE-displayName-Value",
        init_variables=oci.mysql.models.InitializationVariables(
            lower_case_table_names="CASE_INSENSITIVE_LOWERCASE"),
        variables=oci.mysql.models.ConfigurationVariables(
            completion_type="NO_CHAIN",
            big_tables=False,
            character_set_server="TIS620",
            collation_server="UTF32_HUNGARIAN_CI",
            connection_memory_chunk_size=304324116,
            connection_memory_limit=4090745158529748480,
            default_authentication_plugin="caching_sha2_password",
            global_connection_memory_limit=6576373655305147392,
            global_connection_memory_tracking=False,
            transaction_isolation="READ-UNCOMMITTED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=True,
            foreign_key_checks=True,
            group_replication_consistency="BEFORE_ON_PRIMARY_FAILOVER",
            group_concat_max_len=7664407665506114564,
            innodb_ft_enable_stopword=True,
            innodb_log_writer_threads=True,
            local_infile=True,
            mysql_firewall_mode=False,
            mysqlx_enable_hello_notice=False,
            sql_require_primary_key=True,
            sql_warnings=False,
            binlog_expire_logs_seconds=281,
            binlog_row_metadata="MINIMAL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=False,
            innodb_buffer_pool_size=3316361258151261184,
            innodb_ft_result_cache_limit=474601545,
            max_binlog_cache_size=12339514314787,
            max_connect_errors=450585851720170497,
            max_heap_table_size=3472019393803857920,
            max_connections=86654,
            max_prepared_stmt_count=1719780,
            connect_timeout=22886545,
            cte_max_recursion_depth=72076094,
            generated_random_password_length=135,
            information_schema_stats_expiry=31143031,
            innodb_buffer_pool_dump_pct=77,
            innodb_buffer_pool_instances=33,
            innodb_ddl_buffer_size=3834742727,
            innodb_ddl_threads=44,
            innodb_ft_max_token_size=67,
            innodb_ft_min_token_size=9,
            innodb_ft_num_word_optimize=965,
            innodb_lock_wait_timeout=276383728,
            innodb_max_purge_lag=1997599926,
            innodb_max_purge_lag_delay=133078,
            interactive_timeout=14292230,
            innodb_stats_persistent_sample_pages=6493196105289483265,
            innodb_stats_transient_sample_pages=4179431143681355777,
            innodb_strict_mode=False,
            max_allowed_packet=663164371,
            max_execution_time=8238584095732027392,
            mysqlx_connect_timeout=180427079,
            mysqlx_document_id_unique_prefix=36306,
            mysqlx_idle_worker_thread_timeout=1977,
            mysqlx_interactive_timeout=1742120,
            mysqlx_max_allowed_packet=401388117,
            mysqlx_min_worker_threads=27,
            mysqlx_read_timeout=1672547,
            mysqlx_wait_timeout=1725790,
            mysqlx_write_timeout=811588,
            net_read_timeout=4718180,
            net_write_timeout=21717767,
            parser_max_mem_size=8633231096411045504,
            query_alloc_block_size=3276394772,
            query_prealloc_size=1577020334333725440,
            regexp_time_limit=729054176,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=8243646169611312128,
            mysqlx_deflate_default_compression_level=4,
            mysqlx_deflate_max_client_compression_level=6,
            mysqlx_lz4_max_client_compression_level=8,
            mysqlx_lz4_default_compression_level=10,
            mysqlx_zstd_max_client_compression_level=10,
            mysqlx_zstd_default_compression_level=12,
            mysql_zstd_default_compression_level=16,
            sort_buffer_size=6388568887567814656,
            wait_timeout=721521,
            thread_pool_dedicated_listeners=False,
            thread_pool_max_transactions_limit=59624,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=108868,
            binlog_group_commit_sync_no_delay_count=31540,
            replica_net_timeout=17627575,
            require_secure_transport=True,
            innodb_redo_log_capacity=11497302601,
            thread_pool_transaction_delay=287144,
            thread_pool_query_threads_per_group=1651,
            explain_format="TREE",
            explicit_defaults_for_timestamp=False,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=55624801247468184,
            innodb_change_buffering="CHANGES",
            innodb_adaptive_hash_index=False,
            innodb_undo_log_truncate=False,
            table_definition_cache=428120,
            table_open_cache=312132,
            relay_log_space_limit=6358600315262232576,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=502,
            skip_name_resolve=False,
            max_user_connections=1533674438,
            join_buffer_size=2668598268027902080,
            max_seeks_for_key=8815374034191472641,
            range_optimizer_max_mem_size=5590887032828563456,
            auto_increment_increment=49981,
            auto_increment_offset=22536,
            innodb_autoinc_lock_mode=860,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=3679933370871799296,
            innodb_sort_buffer_size=61769424,
            innodb_numa_interleave=False,
            thread_pool_size=425,
            long_query_time=15903600),
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_4R6mC': 'EXAMPLE_VALUE_7piZGLY1wYQrXz1M4RMk'},
        defined_tags={
            'EXAMPLE_KEY_4Fmzz': {
                'EXAMPLE_KEY_4VZrM': 'EXAMPLE--Value'}}),
    opc_request_id="4MGHQZ5RZHRIAYPKCLUS<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

# Get the data from response
print(create_configuration_response.data)