# 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=True,
            character_set_server="GEOSTD8",
            collation_server="CP852_BIN",
            connection_memory_chunk_size=281600798,
            connection_memory_limit=6011738433163516928,
            default_authentication_plugin="caching_sha2_password",
            global_connection_memory_limit=2304151386949139968,
            global_connection_memory_tracking=False,
            transaction_isolation="READ-COMMITED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=True,
            foreign_key_checks=True,
            group_replication_consistency="BEFORE",
            group_concat_max_len=7590169435829819396,
            innodb_ft_enable_stopword=True,
            innodb_log_writer_threads=True,
            local_infile=True,
            mysql_firewall_mode=False,
            mysqlx_enable_hello_notice=True,
            sql_require_primary_key=False,
            sql_warnings=True,
            binlog_expire_logs_seconds=923,
            binlog_row_metadata="FULL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=False,
            innodb_buffer_pool_size=6207749100368669696,
            innodb_ft_result_cache_limit=2467072078,
            max_binlog_cache_size=12033362272632,
            max_connect_errors=6178770100217242625,
            max_heap_table_size=8578684187076666368,
            max_connections=37656,
            max_prepared_stmt_count=827285,
            connect_timeout=1602022,
            cte_max_recursion_depth=3464366750,
            generated_random_password_length=27,
            information_schema_stats_expiry=18591656,
            innodb_buffer_pool_dump_pct=76,
            innodb_buffer_pool_instances=40,
            innodb_ddl_buffer_size=1742062615,
            innodb_ddl_threads=58,
            innodb_ft_max_token_size=41,
            innodb_ft_min_token_size=9,
            innodb_ft_num_word_optimize=83,
            innodb_lock_wait_timeout=184538924,
            innodb_max_purge_lag=3041542029,
            innodb_max_purge_lag_delay=969163,
            interactive_timeout=1092478,
            innodb_stats_persistent_sample_pages=4548184915912740865,
            innodb_stats_transient_sample_pages=4428244537098810369,
            innodb_strict_mode=False,
            max_allowed_packet=817922352,
            max_execution_time=2515809402232956928,
            mysqlx_connect_timeout=630795672,
            mysqlx_document_id_unique_prefix=33429,
            mysqlx_idle_worker_thread_timeout=740,
            mysqlx_interactive_timeout=407984,
            mysqlx_max_allowed_packet=266973087,
            mysqlx_min_worker_threads=85,
            mysqlx_read_timeout=1857964,
            mysqlx_wait_timeout=763372,
            mysqlx_write_timeout=1637095,
            net_read_timeout=26338513,
            net_write_timeout=9871521,
            parser_max_mem_size=430749321457333824,
            query_alloc_block_size=1431722280,
            query_prealloc_size=2276736361330535424,
            regexp_time_limit=1361750399,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=7420685828326978560,
            mysqlx_deflate_default_compression_level=5,
            mysqlx_deflate_max_client_compression_level=6,
            mysqlx_lz4_max_client_compression_level=10,
            mysqlx_lz4_default_compression_level=4,
            mysqlx_zstd_max_client_compression_level=17,
            mysqlx_zstd_default_compression_level=13,
            mysql_zstd_default_compression_level=6,
            sort_buffer_size=4131506752140026368,
            wait_timeout=1012066,
            thread_pool_dedicated_listeners=False,
            thread_pool_max_transactions_limit=13193,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=247004,
            binlog_group_commit_sync_no_delay_count=8606,
            replica_net_timeout=10658491,
            require_secure_transport=False,
            innodb_redo_log_capacity=103124310447,
            thread_pool_transaction_delay=7849,
            thread_pool_query_threads_per_group=1370,
            explain_format="TRADITIONAL",
            explicit_defaults_for_timestamp=False,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=6042935619977159680,
            innodb_change_buffering="PURGES",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=False,
            table_definition_cache=180882,
            table_open_cache=470054,
            relay_log_space_limit=4332040366787604480,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=570,
            skip_name_resolve=True,
            max_user_connections=2190805421,
            join_buffer_size=205506804319571072,
            max_seeks_for_key=4780470942100386817,
            range_optimizer_max_mem_size=1766529747711411200,
            auto_increment_increment=33755,
            auto_increment_offset=56174,
            innodb_autoinc_lock_mode=621,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=8941577504901864448,
            innodb_sort_buffer_size=57049549,
            innodb_numa_interleave=True,
            thread_pool_size=358,
            long_query_time=4612292),
        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_Jwsky': 'EXAMPLE_VALUE_FebYZvqy0aBxL6Sdiz9j'},
        defined_tags={
            'EXAMPLE_KEY_zPzPe': {
                'EXAMPLE_KEY_STxUP': 'EXAMPLE--Value'}}),
    opc_request_id="EWZZGXYXBRGEGCY0NDGO<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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