# 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=False,
            character_set_server="BIG5",
            collation_server="EUCJPMS_BIN",
            connection_memory_chunk_size=464974186,
            connection_memory_limit=1338415578731080448,
            default_authentication_plugin="caching_sha2_password",
            global_connection_memory_limit=7775558976996281344,
            global_connection_memory_tracking=True,
            transaction_isolation="READ-UNCOMMITTED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=True,
            foreign_key_checks=True,
            group_replication_consistency="EVENTUAL",
            group_concat_max_len=8785845130536525828,
            innodb_ft_enable_stopword=True,
            innodb_log_writer_threads=False,
            local_infile=False,
            mysql_firewall_mode=False,
            mysqlx_enable_hello_notice=True,
            sql_require_primary_key=True,
            sql_warnings=False,
            binlog_expire_logs_seconds=41,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=False,
            innodb_buffer_pool_size=2800094090158372352,
            innodb_ft_result_cache_limit=510999846,
            max_binlog_cache_size=28263666586299,
            max_connect_errors=9127000671463753729,
            max_heap_table_size=4332742711994510848,
            max_connections=51852,
            max_prepared_stmt_count=718087,
            connect_timeout=28775530,
            cte_max_recursion_depth=1286642626,
            generated_random_password_length=127,
            information_schema_stats_expiry=27964227,
            innodb_buffer_pool_dump_pct=33,
            innodb_buffer_pool_instances=61,
            innodb_ddl_buffer_size=1951464158,
            innodb_ddl_threads=25,
            innodb_ft_max_token_size=65,
            innodb_ft_min_token_size=11,
            innodb_ft_num_word_optimize=521,
            innodb_lock_wait_timeout=572796345,
            innodb_max_purge_lag=425302799,
            innodb_max_purge_lag_delay=58073,
            interactive_timeout=17871504,
            innodb_stats_persistent_sample_pages=4551318416136148993,
            innodb_stats_transient_sample_pages=1917430014204189697,
            innodb_strict_mode=True,
            max_allowed_packet=471430924,
            max_execution_time=9141822980585952256,
            mysqlx_connect_timeout=799727065,
            mysqlx_document_id_unique_prefix=41341,
            mysqlx_idle_worker_thread_timeout=2429,
            mysqlx_interactive_timeout=421588,
            mysqlx_max_allowed_packet=246516873,
            mysqlx_min_worker_threads=88,
            mysqlx_read_timeout=147571,
            mysqlx_wait_timeout=551627,
            mysqlx_write_timeout=1527011,
            net_read_timeout=29970538,
            net_write_timeout=23138403,
            parser_max_mem_size=8300968959735319168,
            query_alloc_block_size=1806817831,
            query_prealloc_size=7106258769532402688,
            regexp_time_limit=831729358,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=811503479041006464,
            mysqlx_deflate_default_compression_level=8,
            mysqlx_deflate_max_client_compression_level=7,
            mysqlx_lz4_max_client_compression_level=9,
            mysqlx_lz4_default_compression_level=4,
            mysqlx_zstd_max_client_compression_level=1,
            mysqlx_zstd_default_compression_level=12,
            mysql_zstd_default_compression_level=11,
            sort_buffer_size=6839110961461090304,
            wait_timeout=165306,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=15183,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=940339,
            binlog_group_commit_sync_no_delay_count=27944,
            replica_net_timeout=10987202,
            require_secure_transport=False,
            innodb_redo_log_capacity=42508032961,
            thread_pool_transaction_delay=256943,
            thread_pool_query_threads_per_group=105,
            explain_format="JSON",
            explicit_defaults_for_timestamp=True,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=5575441081427990528,
            innodb_change_buffering="INSERTS",
            innodb_adaptive_hash_index=False,
            innodb_undo_log_truncate=True,
            table_definition_cache=36018,
            table_open_cache=441468,
            relay_log_space_limit=3121251211412317184,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=881,
            skip_name_resolve=False,
            max_user_connections=3211966383,
            join_buffer_size=6084731917409550464,
            max_seeks_for_key=2216769764534960129,
            range_optimizer_max_mem_size=2912967957214215168,
            auto_increment_increment=47229,
            auto_increment_offset=4421,
            innodb_autoinc_lock_mode=571,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=6103417425677424640,
            innodb_sort_buffer_size=52876833,
            innodb_numa_interleave=False,
            thread_pool_size=333,
            long_query_time=4886162),
        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_ryJDx': 'EXAMPLE_VALUE_rWa5K0mqt4Y5gkvOP1Zy'},
        defined_tags={
            'EXAMPLE_KEY_UVoPk': {
                'EXAMPLE_KEY_Wnudz': 'EXAMPLE--Value'}}),
    opc_request_id="Y9OXINMZ8MK1JXHUWIW1<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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