# 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="RELEASE",
            big_tables=True,
            character_set_server="HEBREW",
            collation_server="UTF8MB4_0900_AS_CI",
            connection_memory_chunk_size=205640900,
            connection_memory_limit=5495980066140237824,
            default_authentication_plugin="mysql_native_password",
            global_connection_memory_limit=5571280866509940736,
            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_AND_AFTER",
            group_concat_max_len=57575700187137028,
            innodb_ft_enable_stopword=False,
            innodb_log_writer_threads=True,
            local_infile=False,
            mysql_firewall_mode=False,
            mysqlx_enable_hello_notice=False,
            sql_require_primary_key=True,
            sql_warnings=False,
            binlog_expire_logs_seconds=761,
            binlog_row_metadata="MINIMAL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=False,
            innodb_buffer_pool_size=7878578587203717120,
            innodb_ft_result_cache_limit=2956988220,
            max_binlog_cache_size=52500485627400,
            max_connect_errors=8873152081760340993,
            max_heap_table_size=6212377538744352768,
            max_connections=40657,
            max_prepared_stmt_count=2394493,
            connect_timeout=3208893,
            cte_max_recursion_depth=238419353,
            generated_random_password_length=115,
            information_schema_stats_expiry=25678360,
            innodb_buffer_pool_dump_pct=21,
            innodb_buffer_pool_instances=21,
            innodb_ddl_buffer_size=3887947488,
            innodb_ddl_threads=59,
            innodb_ft_max_token_size=35,
            innodb_ft_min_token_size=1,
            innodb_ft_num_word_optimize=841,
            innodb_lock_wait_timeout=125549497,
            innodb_max_purge_lag=3000513004,
            innodb_max_purge_lag_delay=896394,
            interactive_timeout=3920303,
            innodb_stats_persistent_sample_pages=3258591420174354433,
            innodb_stats_transient_sample_pages=7471290226872162305,
            innodb_strict_mode=True,
            max_allowed_packet=668263415,
            max_execution_time=4106071778321775616,
            mysqlx_connect_timeout=329121237,
            mysqlx_document_id_unique_prefix=51416,
            mysqlx_idle_worker_thread_timeout=3198,
            mysqlx_interactive_timeout=1503643,
            mysqlx_max_allowed_packet=1067486995,
            mysqlx_min_worker_threads=67,
            mysqlx_read_timeout=1041552,
            mysqlx_wait_timeout=1410140,
            mysqlx_write_timeout=311639,
            net_read_timeout=30810764,
            net_write_timeout=3713735,
            parser_max_mem_size=2057237479381918080,
            query_alloc_block_size=3913996424,
            query_prealloc_size=314216977725352704,
            regexp_time_limit=1515886728,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=5173256803895928832,
            mysqlx_deflate_default_compression_level=6,
            mysqlx_deflate_max_client_compression_level=1,
            mysqlx_lz4_max_client_compression_level=8,
            mysqlx_lz4_default_compression_level=0,
            mysqlx_zstd_max_client_compression_level=7,
            mysqlx_zstd_default_compression_level=8,
            mysql_zstd_default_compression_level=11,
            sort_buffer_size=3897001390699998720,
            wait_timeout=338501,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=95862,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=227727,
            binlog_group_commit_sync_no_delay_count=94045,
            replica_net_timeout=11583293,
            require_secure_transport=True,
            innodb_redo_log_capacity=124883978163,
            thread_pool_transaction_delay=184512,
            thread_pool_query_threads_per_group=3650,
            explain_format="TREE",
            explicit_defaults_for_timestamp=True,
            sql_generate_invisible_primary_key=True,
            temptable_max_ram=3312584333507836416,
            innodb_change_buffering="INSERTS",
            innodb_adaptive_hash_index=False,
            innodb_undo_log_truncate=False,
            table_definition_cache=120564,
            table_open_cache=254132,
            relay_log_space_limit=3992177523295965184,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=445,
            skip_name_resolve=True,
            max_user_connections=1433414443,
            join_buffer_size=141001743303871616,
            max_seeks_for_key=3075928014036059137,
            range_optimizer_max_mem_size=1020184390546017280,
            auto_increment_increment=22010,
            auto_increment_offset=275,
            innodb_autoinc_lock_mode=824,
            innodb_rollback_on_timeout=True,
            innodb_online_alter_log_max_size=6317958354127431680,
            innodb_sort_buffer_size=25769596,
            innodb_numa_interleave=True,
            thread_pool_size=127,
            long_query_time=440119),
        parent_configuration_id="ocid1.test.oc1..<unique_ID>EXAMPLE-parentConfigurationId-Value",
        freeform_tags={
            'EXAMPLE_KEY_pZvMY': 'EXAMPLE_VALUE_BMdABb9rNUSwG5IZsNLm'},
        defined_tags={
            'EXAMPLE_KEY_kN1yJ': {
                'EXAMPLE_KEY_M5If6': 'EXAMPLE--Value'}}),
    opc_request_id="IZKIYB15CIVB0HHAE7M3<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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