# 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="RELEASE",
            big_tables=True,
            character_set_server="SWE7",
            collation_server="UTF8_ESPERANTO_CI",
            connection_memory_chunk_size=219920395,
            connection_memory_limit=2182387358731128320,
            default_authentication_plugin="caching_sha2_password",
            global_connection_memory_limit=8448951054188495872,
            global_connection_memory_tracking=True,
            transaction_isolation="SERIALIZABLE",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=True,
            foreign_key_checks=False,
            group_replication_consistency="BEFORE_ON_PRIMARY_FAILOVER",
            group_concat_max_len=1693175951252305924,
            innodb_ft_enable_stopword=False,
            innodb_log_writer_threads=True,
            local_infile=False,
            mysql_firewall_mode=False,
            mysqlx_enable_hello_notice=True,
            sql_require_primary_key=True,
            sql_warnings=False,
            binlog_expire_logs_seconds=44,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=4714032263909184512,
            innodb_ft_result_cache_limit=1118311213,
            max_binlog_cache_size=36192358353381,
            max_connect_errors=1406357572795000833,
            max_heap_table_size=5734571848697218048,
            max_connections=94352,
            max_prepared_stmt_count=745466,
            connect_timeout=2521923,
            cte_max_recursion_depth=4112531887,
            generated_random_password_length=67,
            information_schema_stats_expiry=4950659,
            innodb_buffer_pool_dump_pct=2,
            innodb_buffer_pool_instances=62,
            innodb_ddl_buffer_size=3789701395,
            innodb_ddl_threads=10,
            innodb_ft_max_token_size=62,
            innodb_ft_min_token_size=10,
            innodb_ft_num_word_optimize=293,
            innodb_lock_wait_timeout=164036122,
            innodb_max_purge_lag=897103344,
            innodb_max_purge_lag_delay=980555,
            interactive_timeout=16100719,
            innodb_stats_persistent_sample_pages=5854583991726573569,
            innodb_stats_transient_sample_pages=3692378259907697665,
            innodb_strict_mode=False,
            max_allowed_packet=156209489,
            max_execution_time=4786060085919400960,
            mysqlx_connect_timeout=779143505,
            mysqlx_document_id_unique_prefix=33192,
            mysqlx_idle_worker_thread_timeout=3485,
            mysqlx_interactive_timeout=1883227,
            mysqlx_max_allowed_packet=948311453,
            mysqlx_min_worker_threads=81,
            mysqlx_read_timeout=1589152,
            mysqlx_wait_timeout=515164,
            mysqlx_write_timeout=467372,
            net_read_timeout=14358249,
            net_write_timeout=11249210,
            parser_max_mem_size=4842283656152700544,
            query_alloc_block_size=2652950188,
            query_prealloc_size=2654420907012981248,
            regexp_time_limit=1563720779,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=6426790210845746176,
            mysqlx_deflate_default_compression_level=8,
            mysqlx_deflate_max_client_compression_level=5,
            mysqlx_lz4_max_client_compression_level=10,
            mysqlx_lz4_default_compression_level=5,
            mysqlx_zstd_max_client_compression_level=6,
            mysqlx_zstd_default_compression_level=2,
            mysql_zstd_default_compression_level=9,
            sort_buffer_size=8364678541954804736,
            wait_timeout=1477805,
            thread_pool_dedicated_listeners=False,
            thread_pool_max_transactions_limit=54418,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=191981,
            binlog_group_commit_sync_no_delay_count=91322,
            replica_net_timeout=22454661,
            require_secure_transport=True,
            innodb_redo_log_capacity=39562156045,
            thread_pool_transaction_delay=140089,
            thread_pool_query_threads_per_group=3487,
            explain_format="TRADITIONAL",
            explicit_defaults_for_timestamp=False,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=8967734561040175104,
            innodb_change_buffering="CHANGES",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=True,
            table_definition_cache=441556,
            table_open_cache=404755,
            relay_log_space_limit=3354290618909987840,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=44,
            skip_name_resolve=True,
            max_user_connections=1390797452,
            join_buffer_size=8982756207191828608,
            max_seeks_for_key=2800724850082927617,
            range_optimizer_max_mem_size=2429107011837929472,
            auto_increment_increment=16978,
            auto_increment_offset=62022,
            innodb_autoinc_lock_mode=770,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=4836937245287925760,
            innodb_sort_buffer_size=11885344,
            innodb_numa_interleave=False,
            thread_pool_size=218,
            long_query_time=5854899),
        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_EobSt': 'EXAMPLE_VALUE_A9GtRevT80JxrMUvYRN5'},
        defined_tags={
            'EXAMPLE_KEY_gqQDR': {
                'EXAMPLE_KEY_d8oOP': 'EXAMPLE--Value'}}),
    opc_request_id="HNULHGWT3D7JPUGV9VUN<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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