# 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="KEYBCS2",
            collation_server="UTF8MB4_IS_0900_AI_CI",
            connection_memory_chunk_size=489277745,
            connection_memory_limit=6135251302412605440,
            default_authentication_plugin="caching_sha2_password",
            global_connection_memory_limit=8829961440840990720,
            global_connection_memory_tracking=True,
            transaction_isolation="READ-COMMITTED",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=False,
            foreign_key_checks=True,
            group_replication_consistency="BEFORE_AND_AFTER",
            group_concat_max_len=796379433686134788,
            innodb_ft_enable_stopword=True,
            innodb_log_writer_threads=False,
            local_infile=False,
            mysql_firewall_mode=False,
            mysqlx_enable_hello_notice=False,
            sql_require_primary_key=False,
            sql_warnings=True,
            binlog_expire_logs_seconds=84,
            binlog_row_metadata="MINIMAL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=7300032020207425536,
            innodb_ft_result_cache_limit=885808993,
            max_binlog_cache_size=29062061414559,
            max_connect_errors=7770865787760455681,
            max_heap_table_size=2232420813808388352,
            max_connections=80594,
            max_prepared_stmt_count=1861926,
            connect_timeout=3738115,
            cte_max_recursion_depth=2057680766,
            generated_random_password_length=25,
            information_schema_stats_expiry=6573312,
            innodb_buffer_pool_dump_pct=91,
            innodb_buffer_pool_instances=51,
            innodb_ddl_buffer_size=2537599613,
            innodb_ddl_threads=11,
            innodb_ft_max_token_size=29,
            innodb_ft_min_token_size=0,
            innodb_ft_num_word_optimize=797,
            innodb_lock_wait_timeout=79636679,
            innodb_max_purge_lag=297124892,
            innodb_max_purge_lag_delay=977548,
            interactive_timeout=17401062,
            innodb_stats_persistent_sample_pages=6217904505247121409,
            innodb_stats_transient_sample_pages=8368164017302545409,
            innodb_strict_mode=False,
            max_allowed_packet=412606750,
            max_execution_time=1225989409109328896,
            mysqlx_connect_timeout=804301662,
            mysqlx_document_id_unique_prefix=48128,
            mysqlx_idle_worker_thread_timeout=2924,
            mysqlx_interactive_timeout=1653824,
            mysqlx_max_allowed_packet=729040380,
            mysqlx_min_worker_threads=43,
            mysqlx_read_timeout=1221368,
            mysqlx_wait_timeout=1540123,
            mysqlx_write_timeout=1013270,
            net_read_timeout=20552922,
            net_write_timeout=14379645,
            parser_max_mem_size=8112262856399438464,
            query_alloc_block_size=2028759613,
            query_prealloc_size=5778156647122296832,
            regexp_time_limit=1774108263,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=4099982152311813632,
            mysqlx_deflate_default_compression_level=3,
            mysqlx_deflate_max_client_compression_level=4,
            mysqlx_lz4_max_client_compression_level=1,
            mysqlx_lz4_default_compression_level=13,
            mysqlx_zstd_max_client_compression_level=15,
            mysqlx_zstd_default_compression_level=8,
            mysql_zstd_default_compression_level=13,
            sort_buffer_size=1174037233670595584,
            wait_timeout=923536,
            thread_pool_dedicated_listeners=False,
            thread_pool_max_transactions_limit=66719,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=239639,
            binlog_group_commit_sync_no_delay_count=75965,
            replica_net_timeout=1264054,
            require_secure_transport=False,
            innodb_redo_log_capacity=7368933067,
            thread_pool_transaction_delay=263374,
            thread_pool_query_threads_per_group=3486,
            explain_format="TREE",
            explicit_defaults_for_timestamp=False,
            sql_generate_invisible_primary_key=True,
            temptable_max_ram=6318207244651564032,
            innodb_change_buffering="INSERTS",
            innodb_adaptive_hash_index=True,
            innodb_undo_log_truncate=False,
            table_definition_cache=315901,
            table_open_cache=481040,
            relay_log_space_limit=9098507082589718528,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=73,
            skip_name_resolve=True,
            max_user_connections=119879485,
            join_buffer_size=2214819791519432832,
            max_seeks_for_key=5375723660833624065,
            range_optimizer_max_mem_size=440739442138521600,
            auto_increment_increment=8318,
            auto_increment_offset=54077,
            innodb_autoinc_lock_mode=848,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=5309161084084321280,
            innodb_sort_buffer_size=52291738,
            innodb_numa_interleave=True,
            thread_pool_size=442,
            long_query_time=31398828),
        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_k5pF3': 'EXAMPLE_VALUE_3Jm04NpZ6yw17FH44xtg'},
        defined_tags={
            'EXAMPLE_KEY_2Uzgv': {
                'EXAMPLE_KEY_cwKWU': 'EXAMPLE--Value'}}),
    opc_request_id="86LKLXK8HN9J8GGFM50Q<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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