# 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="GB2312",
            collation_server="TIS620_THAI_CI",
            connection_memory_chunk_size=36881597,
            connection_memory_limit=8029317824441387008,
            default_authentication_plugin="caching_sha2_password",
            global_connection_memory_limit=2076999910260821760,
            global_connection_memory_tracking=False,
            transaction_isolation="READ-COMMITED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=False,
            foreign_key_checks=True,
            group_replication_consistency="BEFORE",
            group_concat_max_len=4246632767550654468,
            innodb_ft_enable_stopword=True,
            innodb_log_writer_threads=True,
            local_infile=False,
            mysql_firewall_mode=True,
            mysqlx_enable_hello_notice=False,
            sql_require_primary_key=True,
            sql_warnings=True,
            binlog_expire_logs_seconds=781,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=7695051886928831488,
            innodb_ft_result_cache_limit=1540179228,
            max_binlog_cache_size=22954837482867,
            max_connect_errors=93668658726316033,
            max_heap_table_size=6597831097333496832,
            max_connections=27809,
            max_prepared_stmt_count=3287918,
            connect_timeout=26180880,
            cte_max_recursion_depth=1018490920,
            generated_random_password_length=135,
            information_schema_stats_expiry=16035741,
            innodb_buffer_pool_dump_pct=52,
            innodb_buffer_pool_instances=20,
            innodb_ddl_buffer_size=2860470699,
            innodb_ddl_threads=37,
            innodb_ft_max_token_size=37,
            innodb_ft_min_token_size=2,
            innodb_ft_num_word_optimize=106,
            innodb_lock_wait_timeout=85379216,
            innodb_max_purge_lag=1310028006,
            innodb_max_purge_lag_delay=251704,
            interactive_timeout=16104561,
            innodb_stats_persistent_sample_pages=6248000654268616705,
            innodb_stats_transient_sample_pages=8821421618552895489,
            innodb_strict_mode=False,
            max_allowed_packet=391571978,
            max_execution_time=8517009763873467392,
            mysqlx_connect_timeout=368255825,
            mysqlx_document_id_unique_prefix=60745,
            mysqlx_idle_worker_thread_timeout=243,
            mysqlx_interactive_timeout=904093,
            mysqlx_max_allowed_packet=626487754,
            mysqlx_min_worker_threads=10,
            mysqlx_read_timeout=134732,
            mysqlx_wait_timeout=2026556,
            mysqlx_write_timeout=2116039,
            net_read_timeout=28264542,
            net_write_timeout=19273196,
            parser_max_mem_size=7771838754230603392,
            query_alloc_block_size=948501806,
            query_prealloc_size=3320993280551985152,
            regexp_time_limit=1137164756,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=3395005870561972736,
            mysqlx_deflate_default_compression_level=2,
            mysqlx_deflate_max_client_compression_level=2,
            mysqlx_lz4_max_client_compression_level=1,
            mysqlx_lz4_default_compression_level=14,
            mysqlx_zstd_max_client_compression_level=3,
            mysqlx_zstd_default_compression_level=15,
            mysql_zstd_default_compression_level=9,
            sort_buffer_size=7615073827395145728,
            wait_timeout=1567862,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=12119,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=570598,
            binlog_group_commit_sync_no_delay_count=53282,
            replica_net_timeout=17269341,
            require_secure_transport=False,
            innodb_redo_log_capacity=32519559630,
            thread_pool_transaction_delay=140435,
            thread_pool_query_threads_per_group=340,
            explain_format="JSON",
            explicit_defaults_for_timestamp=True,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=8363906330034977792,
            innodb_change_buffering="NONE",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=True,
            table_definition_cache=501816,
            table_open_cache=30565,
            relay_log_space_limit=569274590421012480,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=725,
            skip_name_resolve=False,
            max_user_connections=291264833,
            join_buffer_size=5862063719092583552,
            max_seeks_for_key=6202411587545294849,
            range_optimizer_max_mem_size=1745370512382770176,
            auto_increment_increment=48915,
            auto_increment_offset=54696,
            innodb_autoinc_lock_mode=151,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=188675480829684416,
            innodb_sort_buffer_size=39752317,
            innodb_numa_interleave=True,
            thread_pool_size=114,
            long_query_time=11584670),
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_oGyyv': 'EXAMPLE_VALUE_bxkF16GohsErWyG7EfR5'},
        defined_tags={
            'EXAMPLE_KEY_JSRoK': {
                'EXAMPLE_KEY_kqdPj': 'EXAMPLE--Value'}}),
    opc_request_id="KKOTWXXGOKUVHIM7TX9A<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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