# 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="NO_CHAIN",
            big_tables=False,
            character_set_server="UJIS",
            collation_server="UTF32_POLISH_CI",
            connection_memory_chunk_size=307185482,
            connection_memory_limit=2046011199303706368,
            default_authentication_plugin="caching_sha2_password",
            global_connection_memory_limit=6748082111363980288,
            global_connection_memory_tracking=False,
            transaction_isolation="REPEATABLE-READ",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=False,
            foreign_key_checks=True,
            group_replication_consistency="EVENTUAL",
            group_concat_max_len=5953856887816669188,
            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=True,
            sql_warnings=False,
            binlog_expire_logs_seconds=84,
            binlog_row_metadata="MINIMAL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=7183156333984080896,
            innodb_ft_result_cache_limit=1938084997,
            max_binlog_cache_size=43778505808386,
            max_connect_errors=2288514140786934785,
            max_heap_table_size=831216894471838208,
            max_connections=43424,
            max_prepared_stmt_count=1562533,
            connect_timeout=915204,
            cte_max_recursion_depth=2411508995,
            generated_random_password_length=143,
            information_schema_stats_expiry=22479,
            innodb_buffer_pool_dump_pct=8,
            innodb_buffer_pool_instances=20,
            innodb_ddl_buffer_size=822073634,
            innodb_ddl_threads=46,
            innodb_ft_max_token_size=28,
            innodb_ft_min_token_size=0,
            innodb_ft_num_word_optimize=859,
            innodb_lock_wait_timeout=8773407,
            innodb_max_purge_lag=2652687762,
            innodb_max_purge_lag_delay=75938,
            interactive_timeout=1240061,
            innodb_stats_persistent_sample_pages=1226350822896606209,
            innodb_stats_transient_sample_pages=6322809100831723521,
            innodb_strict_mode=False,
            max_allowed_packet=267115238,
            max_execution_time=9015866900402334720,
            mysqlx_connect_timeout=131696375,
            mysqlx_document_id_unique_prefix=40349,
            mysqlx_idle_worker_thread_timeout=2368,
            mysqlx_interactive_timeout=229216,
            mysqlx_max_allowed_packet=423322615,
            mysqlx_min_worker_threads=29,
            mysqlx_read_timeout=1369114,
            mysqlx_wait_timeout=1813915,
            mysqlx_write_timeout=888198,
            net_read_timeout=17051315,
            net_write_timeout=10436326,
            parser_max_mem_size=3859177903979301504,
            query_alloc_block_size=3805563735,
            query_prealloc_size=215195854591947584,
            regexp_time_limit=1467320499,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=1675241133465245440,
            mysqlx_deflate_default_compression_level=5,
            mysqlx_deflate_max_client_compression_level=5,
            mysqlx_lz4_max_client_compression_level=9,
            mysqlx_lz4_default_compression_level=14,
            mysqlx_zstd_max_client_compression_level=7,
            mysqlx_zstd_default_compression_level=4,
            mysql_zstd_default_compression_level=1,
            sort_buffer_size=7362290741165677568,
            wait_timeout=294751,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=40633,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=149594,
            binlog_group_commit_sync_no_delay_count=66375,
            replica_net_timeout=30674998,
            require_secure_transport=True,
            innodb_redo_log_capacity=55231992459,
            thread_pool_transaction_delay=299000,
            thread_pool_query_threads_per_group=2222,
            explain_format="TREE",
            explicit_defaults_for_timestamp=False,
            sql_generate_invisible_primary_key=True,
            temptable_max_ram=3271653105650763264,
            innodb_change_buffering="ALL",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=False,
            table_definition_cache=408369,
            table_open_cache=417704,
            relay_log_space_limit=8435305465340900352,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=907,
            skip_name_resolve=False,
            max_user_connections=1064669248,
            join_buffer_size=6481249710548789376,
            max_seeks_for_key=1434470426033871873,
            range_optimizer_max_mem_size=5426675777379410944,
            auto_increment_increment=26971,
            auto_increment_offset=26780,
            innodb_autoinc_lock_mode=213,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=1128296672056319104,
            innodb_sort_buffer_size=53991511,
            innodb_numa_interleave=True,
            thread_pool_size=394,
            long_query_time=20936218),
        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_GGwpM': 'EXAMPLE_VALUE_8gZk8PAP0T5o7Tji00G0'},
        defined_tags={
            'EXAMPLE_KEY_LfQS6': {
                'EXAMPLE_KEY_vz1TA': 'EXAMPLE--Value'}}),
    opc_request_id="LXO986RDEYTVNDUNIIEY<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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