# 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="KOI8R",
            collation_server="UTF32_UNICODE_CI",
            connection_memory_chunk_size=485431073,
            connection_memory_limit=2678450733316852224,
            default_authentication_plugin="sha256_password",
            global_connection_memory_limit=7284076417811347456,
            global_connection_memory_tracking=False,
            transaction_isolation="SERIALIZABLE",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=True,
            foreign_key_checks=False,
            group_replication_consistency="AFTER",
            group_concat_max_len=3479188431666648068,
            innodb_ft_enable_stopword=False,
            innodb_log_writer_threads=False,
            local_infile=False,
            mysql_firewall_mode=True,
            mysqlx_enable_hello_notice=True,
            sql_require_primary_key=False,
            sql_warnings=True,
            binlog_expire_logs_seconds=885,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=False,
            innodb_buffer_pool_size=7900504491274998784,
            innodb_ft_result_cache_limit=3410465013,
            max_binlog_cache_size=41441707423122,
            max_connect_errors=5916738585489895425,
            max_heap_table_size=7292030851123043328,
            max_connections=87774,
            max_prepared_stmt_count=2618192,
            connect_timeout=29423852,
            cte_max_recursion_depth=1265488962,
            generated_random_password_length=60,
            information_schema_stats_expiry=14770491,
            innodb_buffer_pool_dump_pct=98,
            innodb_buffer_pool_instances=34,
            innodb_ddl_buffer_size=1478817434,
            innodb_ddl_threads=62,
            innodb_ft_max_token_size=10,
            innodb_ft_min_token_size=5,
            innodb_ft_num_word_optimize=986,
            innodb_lock_wait_timeout=693575617,
            innodb_max_purge_lag=3101456610,
            innodb_max_purge_lag_delay=488239,
            interactive_timeout=26171140,
            innodb_stats_persistent_sample_pages=4555282974739858433,
            innodb_stats_transient_sample_pages=6061077907819778049,
            innodb_strict_mode=False,
            max_allowed_packet=368061508,
            max_execution_time=2906434813604791296,
            mysqlx_connect_timeout=229913741,
            mysqlx_document_id_unique_prefix=47710,
            mysqlx_idle_worker_thread_timeout=2013,
            mysqlx_interactive_timeout=1394775,
            mysqlx_max_allowed_packet=424002980,
            mysqlx_min_worker_threads=84,
            mysqlx_read_timeout=354334,
            mysqlx_wait_timeout=1358175,
            mysqlx_write_timeout=399614,
            net_read_timeout=20219036,
            net_write_timeout=8495389,
            parser_max_mem_size=4847519941923652224,
            query_alloc_block_size=1110811759,
            query_prealloc_size=7556449467627691008,
            regexp_time_limit=1370260099,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=5995037896297911296,
            mysqlx_deflate_default_compression_level=5,
            mysqlx_deflate_max_client_compression_level=1,
            mysqlx_lz4_max_client_compression_level=12,
            mysqlx_lz4_default_compression_level=3,
            mysqlx_zstd_max_client_compression_level=17,
            mysqlx_zstd_default_compression_level=14,
            mysql_zstd_default_compression_level=3,
            sort_buffer_size=4959405696023328768,
            wait_timeout=381230,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=66953,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=787546,
            binlog_group_commit_sync_no_delay_count=15845,
            replica_net_timeout=23887692,
            require_secure_transport=True,
            innodb_redo_log_capacity=33482949043,
            thread_pool_transaction_delay=29802,
            thread_pool_query_threads_per_group=3289,
            explain_format="TREE",
            explicit_defaults_for_timestamp=False,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=209231690029577760,
            innodb_change_buffering="DELETES",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=True,
            table_definition_cache=470896,
            table_open_cache=138099,
            relay_log_space_limit=676728232412911616,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=140,
            skip_name_resolve=True,
            max_user_connections=3207690758,
            join_buffer_size=3271153152317301888,
            max_seeks_for_key=7324760241179744257,
            range_optimizer_max_mem_size=6551538849877114880,
            auto_increment_increment=52690,
            auto_increment_offset=7691,
            innodb_autoinc_lock_mode=73,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=1627480866881545984,
            innodb_sort_buffer_size=8572074,
            innodb_numa_interleave=False,
            thread_pool_size=188,
            long_query_time=16700124),
        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_ltrZ0': 'EXAMPLE_VALUE_kEL6M0LgKnWakMgIR8Ek'},
        defined_tags={
            'EXAMPLE_KEY_onp9B': {
                'EXAMPLE_KEY_Ws4hX': 'EXAMPLE--Value'}}),
    opc_request_id="JDEUDHLOWPAFOXLQRIHU<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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