# 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_SENSITIVE"),
        variables=oci.mysql.models.ConfigurationVariables(
            completion_type="RELEASE",
            big_tables=True,
            character_set_server="DEC8",
            collation_server="CP932_BIN",
            connection_memory_chunk_size=54085428,
            connection_memory_limit=676512066638355200,
            default_authentication_plugin="sha256_password",
            global_connection_memory_limit=5126741569050607616,
            global_connection_memory_tracking=False,
            transaction_isolation="REPEATABLE-READ",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=False,
            foreign_key_checks=False,
            group_replication_consistency="BEFORE_AND_AFTER",
            group_concat_max_len=5013622625276106756,
            innodb_ft_enable_stopword=True,
            innodb_log_writer_threads=False,
            local_infile=False,
            mysql_firewall_mode=False,
            mysqlx_enable_hello_notice=True,
            sql_require_primary_key=False,
            sql_warnings=False,
            binlog_expire_logs_seconds=52,
            binlog_row_metadata="MINIMAL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=False,
            innodb_buffer_pool_size=1572487791460700160,
            innodb_ft_result_cache_limit=1444145289,
            max_binlog_cache_size=34603105963647,
            max_connect_errors=251336147113594881,
            max_heap_table_size=2304151386947578880,
            max_connections=69250,
            max_prepared_stmt_count=1124551,
            connect_timeout=1963790,
            cte_max_recursion_depth=890769516,
            generated_random_password_length=47,
            information_schema_stats_expiry=1499659,
            innodb_buffer_pool_dump_pct=78,
            innodb_buffer_pool_instances=12,
            innodb_ddl_buffer_size=427701599,
            innodb_ddl_threads=62,
            innodb_ft_max_token_size=59,
            innodb_ft_min_token_size=8,
            innodb_ft_num_word_optimize=780,
            innodb_lock_wait_timeout=1053541431,
            innodb_max_purge_lag=215238284,
            innodb_max_purge_lag_delay=684220,
            interactive_timeout=29544010,
            innodb_stats_persistent_sample_pages=4555377970318279681,
            innodb_stats_transient_sample_pages=3248579204273369089,
            innodb_strict_mode=False,
            max_allowed_packet=79733045,
            max_execution_time=4203363226501953536,
            mysqlx_connect_timeout=716733974,
            mysqlx_document_id_unique_prefix=20013,
            mysqlx_idle_worker_thread_timeout=3588,
            mysqlx_interactive_timeout=869307,
            mysqlx_max_allowed_packet=293259496,
            mysqlx_min_worker_threads=12,
            mysqlx_read_timeout=2082270,
            mysqlx_wait_timeout=222311,
            mysqlx_write_timeout=1365427,
            net_read_timeout=27376881,
            net_write_timeout=13602144,
            parser_max_mem_size=548664934344480448,
            query_alloc_block_size=2122168777,
            query_prealloc_size=3736895013223536640,
            regexp_time_limit=922417311,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=3740967326138142208,
            mysqlx_deflate_default_compression_level=6,
            mysqlx_deflate_max_client_compression_level=7,
            mysqlx_lz4_max_client_compression_level=9,
            mysqlx_lz4_default_compression_level=6,
            mysqlx_zstd_max_client_compression_level=14,
            mysqlx_zstd_default_compression_level=9,
            mysql_zstd_default_compression_level=3,
            sort_buffer_size=1606185406794249728,
            wait_timeout=248194,
            thread_pool_dedicated_listeners=False,
            thread_pool_max_transactions_limit=14011,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=289075,
            binlog_group_commit_sync_no_delay_count=6820,
            replica_net_timeout=22966504,
            require_secure_transport=True,
            innodb_redo_log_capacity=40376846334,
            thread_pool_transaction_delay=287540,
            thread_pool_query_threads_per_group=381,
            explain_format="TREE",
            explicit_defaults_for_timestamp=True,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=6479089032751753216,
            innodb_change_buffering="DELETES",
            innodb_adaptive_hash_index=False,
            innodb_undo_log_truncate=False,
            table_definition_cache=516715,
            table_open_cache=177061,
            relay_log_space_limit=7420685828326978560,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=572,
            skip_name_resolve=True,
            max_user_connections=1175728527,
            join_buffer_size=5728214151445104768,
            max_seeks_for_key=4131506752140008449,
            range_optimizer_max_mem_size=3527672155915153408,
            auto_increment_increment=14524,
            auto_increment_offset=40318,
            innodb_autoinc_lock_mode=4,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=7746589699295638528,
            innodb_sort_buffer_size=2310297,
            innodb_numa_interleave=False,
            thread_pool_size=208,
            long_query_time=31516827),
        options=[
            oci.mysql.models.Option(
                name="EXAMPLE-name-Value",
                value="EXAMPLE-value-Value")],
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_te3Ln': 'EXAMPLE_VALUE_2qHbmD2buXo1EITuhUpq'},
        defined_tags={
            'EXAMPLE_KEY_4yC9C': {
                'EXAMPLE_KEY_jAb5i': 'EXAMPLE--Value'}}),
    opc_request_id="Z2EJWSKYFEBYZVQY0ABX<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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