# 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="CHAIN",
            big_tables=True,
            character_set_server="EUCKR",
            collation_server="ASCII_GENERAL_CI",
            connection_memory_chunk_size=87261798,
            connection_memory_limit=1932801108004870912,
            default_authentication_plugin="sha256_password",
            global_connection_memory_limit=494173860064989440,
            global_connection_memory_tracking=True,
            transaction_isolation="READ-UNCOMMITTED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=False,
            foreign_key_checks=False,
            group_replication_consistency="BEFORE_ON_PRIMARY_FAILOVER",
            group_concat_max_len=3903833319819856900,
            innodb_ft_enable_stopword=True,
            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=768,
            binlog_row_metadata="MINIMAL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=False,
            innodb_buffer_pool_size=3676233692406546944,
            innodb_ft_result_cache_limit=3639429162,
            max_binlog_cache_size=51481848296393,
            max_connect_errors=8672498424024824833,
            max_heap_table_size=3382851277397868544,
            max_connections=2918,
            max_prepared_stmt_count=231291,
            connect_timeout=22377170,
            cte_max_recursion_depth=2611081655,
            generated_random_password_length=66,
            information_schema_stats_expiry=27981141,
            innodb_buffer_pool_dump_pct=84,
            innodb_buffer_pool_instances=49,
            innodb_ddl_buffer_size=566087480,
            innodb_ddl_threads=13,
            innodb_ft_max_token_size=41,
            innodb_ft_min_token_size=9,
            innodb_ft_num_word_optimize=345,
            innodb_lock_wait_timeout=100235161,
            innodb_max_purge_lag=785432488,
            innodb_max_purge_lag_delay=885373,
            interactive_timeout=7220113,
            innodb_stats_persistent_sample_pages=910120605103012865,
            innodb_stats_transient_sample_pages=7641082173292475393,
            innodb_strict_mode=False,
            max_allowed_packet=260483075,
            max_execution_time=6195808908934055936,
            mysqlx_connect_timeout=31918390,
            mysqlx_document_id_unique_prefix=57207,
            mysqlx_idle_worker_thread_timeout=1309,
            mysqlx_interactive_timeout=1126191,
            mysqlx_max_allowed_packet=559877847,
            mysqlx_min_worker_threads=91,
            mysqlx_read_timeout=393022,
            mysqlx_wait_timeout=1822680,
            mysqlx_write_timeout=1730046,
            net_read_timeout=26794104,
            net_write_timeout=29498679,
            parser_max_mem_size=3636849456643575424,
            query_alloc_block_size=2589144632,
            query_prealloc_size=6873554584261805056,
            regexp_time_limit=663114037,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=2919256167499840000,
            mysqlx_deflate_default_compression_level=3,
            mysqlx_deflate_max_client_compression_level=8,
            mysqlx_lz4_max_client_compression_level=4,
            mysqlx_lz4_default_compression_level=0,
            mysqlx_zstd_max_client_compression_level=15,
            mysqlx_zstd_default_compression_level=3,
            mysql_zstd_default_compression_level=9,
            sort_buffer_size=4849259473234892800,
            wait_timeout=2027510,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=10105,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=2820,
            binlog_group_commit_sync_no_delay_count=83343,
            replica_net_timeout=21661702,
            require_secure_transport=True,
            innodb_redo_log_capacity=51026080641,
            thread_pool_transaction_delay=65163,
            thread_pool_query_threads_per_group=2745,
            explain_format="TREE",
            explicit_defaults_for_timestamp=True,
            sql_generate_invisible_primary_key=True,
            temptable_max_ram=4985207712472980480,
            innodb_change_buffering="ALL",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=False,
            table_definition_cache=492297,
            table_open_cache=280750,
            relay_log_space_limit=7463342514277026816,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=306,
            skip_name_resolve=True,
            max_user_connections=2755196105,
            join_buffer_size=7292030851123040384,
            max_seeks_for_key=8549464953309394945,
            range_optimizer_max_mem_size=4731541210126781440,
            auto_increment_increment=15473,
            auto_increment_offset=27392,
            innodb_autoinc_lock_mode=491,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=3175643978326785024,
            innodb_sort_buffer_size=36506069,
            innodb_numa_interleave=False,
            thread_pool_size=15,
            long_query_time=31319616),
        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_ZKhfx': 'EXAMPLE_VALUE_6MVoN4LRiczWmgyuddMA'},
        defined_tags={
            'EXAMPLE_KEY_vBoik': {
                'EXAMPLE_KEY_ShKpm': 'EXAMPLE--Value'}}),
    opc_request_id="ERPV4ZVPPP3SZIYJ1UCQ<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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