# 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="NO_CHAIN",
            big_tables=False,
            character_set_server="DEC8",
            collation_server="UCS2_VIETNAMESE_CI",
            connection_memory_chunk_size=174936091,
            connection_memory_limit=4465825212423819776,
            default_authentication_plugin="sha256_password",
            global_connection_memory_limit=7073238716687945728,
            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=False,
            group_replication_consistency="EVENTUAL",
            group_concat_max_len=4191855702071976964,
            innodb_ft_enable_stopword=False,
            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=569,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=8463318788393084928,
            innodb_ft_result_cache_limit=2684628391,
            max_binlog_cache_size=12758588972299,
            max_connect_errors=2743269724541079553,
            max_heap_table_size=8864078741645090816,
            max_connections=72764,
            max_prepared_stmt_count=2288286,
            connect_timeout=22444693,
            cte_max_recursion_depth=2087700737,
            generated_random_password_length=64,
            information_schema_stats_expiry=9309487,
            innodb_buffer_pool_dump_pct=56,
            innodb_buffer_pool_instances=23,
            innodb_ddl_buffer_size=1785593116,
            innodb_ddl_threads=29,
            innodb_ft_max_token_size=66,
            innodb_ft_min_token_size=13,
            innodb_ft_num_word_optimize=485,
            innodb_lock_wait_timeout=580473278,
            innodb_max_purge_lag=2847219615,
            innodb_max_purge_lag_delay=845650,
            interactive_timeout=15131941,
            innodb_stats_persistent_sample_pages=3692453201089927169,
            innodb_stats_transient_sample_pages=4616235441035966465,
            innodb_strict_mode=True,
            max_allowed_packet=737126673,
            max_execution_time=3731183291691927552,
            mysqlx_connect_timeout=870988057,
            mysqlx_document_id_unique_prefix=41833,
            mysqlx_idle_worker_thread_timeout=1819,
            mysqlx_interactive_timeout=528222,
            mysqlx_max_allowed_packet=86166833,
            mysqlx_min_worker_threads=18,
            mysqlx_read_timeout=630618,
            mysqlx_wait_timeout=1143007,
            mysqlx_write_timeout=442188,
            net_read_timeout=31145249,
            net_write_timeout=23624193,
            parser_max_mem_size=6420386920239555200,
            query_alloc_block_size=3793809429,
            query_prealloc_size=2216137523496872960,
            regexp_time_limit=1254575187,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=1631703103957530368,
            mysqlx_deflate_default_compression_level=7,
            mysqlx_deflate_max_client_compression_level=2,
            mysqlx_lz4_max_client_compression_level=8,
            mysqlx_lz4_default_compression_level=2,
            mysqlx_zstd_max_client_compression_level=8,
            mysqlx_zstd_default_compression_level=14,
            mysql_zstd_default_compression_level=9,
            sort_buffer_size=8699583181090371584,
            wait_timeout=1405774,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=14797,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=902561,
            binlog_group_commit_sync_no_delay_count=97336,
            replica_net_timeout=7381176,
            require_secure_transport=True,
            innodb_redo_log_capacity=49709382099,
            thread_pool_transaction_delay=25762,
            thread_pool_query_threads_per_group=61,
            explain_format="TREE",
            explicit_defaults_for_timestamp=True,
            sql_generate_invisible_primary_key=True,
            temptable_max_ram=1354552550334229760,
            innodb_change_buffering="INSERTS",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=True,
            table_definition_cache=253533,
            table_open_cache=300961,
            relay_log_space_limit=2191938950194480128,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=731,
            skip_name_resolve=True,
            max_user_connections=955947070,
            join_buffer_size=3616258186621166720,
            max_seeks_for_key=7878427718801646593,
            range_optimizer_max_mem_size=6303629407266466816,
            auto_increment_increment=17380,
            auto_increment_offset=64969,
            innodb_autoinc_lock_mode=206,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=956134885744559488,
            innodb_sort_buffer_size=37512538,
            innodb_numa_interleave=False,
            thread_pool_size=285,
            long_query_time=7683810),
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_rcdDV': 'EXAMPLE_VALUE_8rE3lFXdMLzQdC2JCjCy'},
        defined_tags={
            'EXAMPLE_KEY_pHGeM': {
                'EXAMPLE_KEY_n2QeM': 'EXAMPLE--Value'}}),
    opc_request_id="0BFCMRDR2PSU0NNBPI4S<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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