# 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="CHAIN",
            big_tables=False,
            character_set_server="GREEK",
            collation_server="KOI8R_GENERAL_CI",
            connection_memory_chunk_size=155587256,
            connection_memory_limit=1010913139382900224,
            default_authentication_plugin="mysql_native_password",
            global_connection_memory_limit=5576825818880092160,
            global_connection_memory_tracking=True,
            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=694278274605225988,
            innodb_ft_enable_stopword=False,
            innodb_log_writer_threads=True,
            local_infile=False,
            mysql_firewall_mode=True,
            mysqlx_enable_hello_notice=True,
            sql_require_primary_key=False,
            sql_warnings=True,
            binlog_expire_logs_seconds=230,
            binlog_row_metadata="MINIMAL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=7652005598453521408,
            innodb_ft_result_cache_limit=1167584162,
            max_binlog_cache_size=58532038242775,
            max_connect_errors=8737900424138652673,
            max_heap_table_size=6756216397491087360,
            max_connections=78931,
            max_prepared_stmt_count=3240994,
            connect_timeout=18179975,
            cte_max_recursion_depth=1100459801,
            generated_random_password_length=126,
            information_schema_stats_expiry=27195254,
            innodb_buffer_pool_dump_pct=31,
            innodb_buffer_pool_instances=48,
            innodb_ddl_buffer_size=1266170961,
            innodb_ddl_threads=36,
            innodb_ft_max_token_size=71,
            innodb_ft_min_token_size=13,
            innodb_ft_num_word_optimize=840,
            innodb_lock_wait_timeout=1018327348,
            innodb_max_purge_lag=1464471547,
            innodb_max_purge_lag_delay=462620,
            interactive_timeout=11425440,
            innodb_stats_persistent_sample_pages=2773084887133524993,
            innodb_stats_transient_sample_pages=4509648343962838017,
            innodb_strict_mode=True,
            max_allowed_packet=681308034,
            max_execution_time=8434732970849599488,
            mysqlx_connect_timeout=308246748,
            mysqlx_document_id_unique_prefix=62186,
            mysqlx_idle_worker_thread_timeout=2464,
            mysqlx_interactive_timeout=775779,
            mysqlx_max_allowed_packet=984201637,
            mysqlx_min_worker_threads=79,
            mysqlx_read_timeout=1818803,
            mysqlx_wait_timeout=1900148,
            mysqlx_write_timeout=753578,
            net_read_timeout=3634663,
            net_write_timeout=20015970,
            parser_max_mem_size=5510306916160672384,
            query_alloc_block_size=4241561787,
            query_prealloc_size=6152717556700739584,
            regexp_time_limit=97263987,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=6029654210432235520,
            mysqlx_deflate_default_compression_level=5,
            mysqlx_deflate_max_client_compression_level=8,
            mysqlx_lz4_max_client_compression_level=13,
            mysqlx_lz4_default_compression_level=12,
            mysqlx_zstd_max_client_compression_level=10,
            mysqlx_zstd_default_compression_level=3,
            mysql_zstd_default_compression_level=10,
            sort_buffer_size=1438247181402431488,
            wait_timeout=2093257,
            thread_pool_dedicated_listeners=False,
            thread_pool_max_transactions_limit=75913,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=560700,
            binlog_group_commit_sync_no_delay_count=79859,
            replica_net_timeout=20438916,
            require_secure_transport=True,
            innodb_redo_log_capacity=113450800337,
            thread_pool_transaction_delay=117899,
            thread_pool_query_threads_per_group=968,
            explain_format="TRADITIONAL",
            explicit_defaults_for_timestamp=True,
            sql_generate_invisible_primary_key=True,
            temptable_max_ram=3651067211040596480,
            innodb_change_buffering="INSERTS",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=True,
            table_definition_cache=80992,
            table_open_cache=388640,
            relay_log_space_limit=8139164391184299008,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=718,
            skip_name_resolve=True,
            max_user_connections=3788784130,
            join_buffer_size=5404115377216538752,
            max_seeks_for_key=3442381487526021121,
            range_optimizer_max_mem_size=3069672618682009600,
            auto_increment_increment=28995,
            auto_increment_offset=1176,
            innodb_autoinc_lock_mode=901,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=8969711164800224256,
            innodb_sort_buffer_size=53970829,
            innodb_numa_interleave=False,
            thread_pool_size=47,
            long_query_time=12496061),
        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_p3zDk': 'EXAMPLE_VALUE_pu5Z94qaExTvFtgRooYj'},
        defined_tags={
            'EXAMPLE_KEY_y8InL': {
                'EXAMPLE_KEY_hPpIu': 'EXAMPLE--Value'}}),
    opc_request_id="EEJMMFY6Z5Z9JVLHGJOY<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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