# 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="CHAIN",
            big_tables=False,
            character_set_server="CP850",
            collation_server="UTF8_LATVIAN_CI",
            connection_memory_chunk_size=463086993,
            connection_memory_limit=6415733117196989440,
            default_authentication_plugin="mysql_native_password",
            global_connection_memory_limit=4769580953694196736,
            global_connection_memory_tracking=True,
            transaction_isolation="SERIALIZABLE",
            innodb_ft_server_stopword_table="EXAMPLE-innodbFtServerStopwordTable-Value",
            mandatory_roles="EXAMPLE-mandatoryRoles-Value",
            autocommit=False,
            foreign_key_checks=False,
            group_replication_consistency="AFTER",
            group_concat_max_len=6845512445532319748,
            innodb_ft_enable_stopword=False,
            innodb_log_writer_threads=False,
            local_infile=False,
            mysql_firewall_mode=False,
            mysqlx_enable_hello_notice=False,
            sql_require_primary_key=True,
            sql_warnings=True,
            binlog_expire_logs_seconds=939,
            binlog_row_metadata="MINIMAL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=False,
            innodb_buffer_pool_size=6903110900563980288,
            innodb_ft_result_cache_limit=361148444,
            max_binlog_cache_size=38659359960436,
            max_connect_errors=833942590592193537,
            max_heap_table_size=8529152172255246336,
            max_connections=1816,
            max_prepared_stmt_count=4002951,
            connect_timeout=16102774,
            cte_max_recursion_depth=3924403556,
            generated_random_password_length=209,
            information_schema_stats_expiry=9090918,
            innodb_buffer_pool_dump_pct=70,
            innodb_buffer_pool_instances=8,
            innodb_ddl_buffer_size=3893504584,
            innodb_ddl_threads=1,
            innodb_ft_max_token_size=32,
            innodb_ft_min_token_size=9,
            innodb_ft_num_word_optimize=125,
            innodb_lock_wait_timeout=341748714,
            innodb_max_purge_lag=724339957,
            innodb_max_purge_lag_delay=459362,
            interactive_timeout=4932433,
            innodb_stats_persistent_sample_pages=730793502536333313,
            innodb_stats_transient_sample_pages=8316331458820272129,
            innodb_strict_mode=False,
            max_allowed_packet=777913529,
            max_execution_time=467627863671370752,
            mysqlx_connect_timeout=851993111,
            mysqlx_document_id_unique_prefix=39194,
            mysqlx_idle_worker_thread_timeout=28,
            mysqlx_interactive_timeout=1824057,
            mysqlx_max_allowed_packet=933917644,
            mysqlx_min_worker_threads=63,
            mysqlx_read_timeout=217738,
            mysqlx_wait_timeout=595794,
            mysqlx_write_timeout=667980,
            net_read_timeout=18134312,
            net_write_timeout=2011430,
            parser_max_mem_size=5033382133085994624,
            query_alloc_block_size=3844383336,
            query_prealloc_size=8606463812513799168,
            regexp_time_limit=336185688,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=6476384317416946688,
            mysqlx_deflate_default_compression_level=2,
            mysqlx_deflate_max_client_compression_level=1,
            mysqlx_lz4_max_client_compression_level=15,
            mysqlx_lz4_default_compression_level=10,
            mysqlx_zstd_max_client_compression_level=2,
            mysqlx_zstd_default_compression_level=1,
            mysql_zstd_default_compression_level=3,
            sort_buffer_size=6623572353101258752,
            wait_timeout=20934,
            thread_pool_dedicated_listeners=True,
            thread_pool_max_transactions_limit=57426,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=897475,
            binlog_group_commit_sync_no_delay_count=76237,
            replica_net_timeout=10060325,
            require_secure_transport=True,
            innodb_redo_log_capacity=77749157199,
            thread_pool_transaction_delay=6646,
            thread_pool_query_threads_per_group=3317,
            explain_format="TRADITIONAL",
            explicit_defaults_for_timestamp=True,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=1181900323220315648,
            innodb_change_buffering="DELETES",
            innodb_adaptive_hash_index=False,
            innodb_undo_log_truncate=True,
            table_definition_cache=181205,
            table_open_cache=48448,
            relay_log_space_limit=238381257219408896,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=17,
            skip_name_resolve=False,
            max_user_connections=1314203190,
            join_buffer_size=7832647155947784320,
            max_seeks_for_key=8674122111764927489,
            range_optimizer_max_mem_size=6347547133863245824,
            auto_increment_increment=58276,
            auto_increment_offset=61531,
            innodb_autoinc_lock_mode=649,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=4592445279013983232,
            innodb_sort_buffer_size=59154082,
            innodb_numa_interleave=False,
            thread_pool_size=74,
            long_query_time=24428901),
        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_SaTdC': 'EXAMPLE_VALUE_2mmRN6ORl5TUOM0BmGPk'},
        defined_tags={
            'EXAMPLE_KEY_2UfKY': {
                'EXAMPLE_KEY_uuHmT': 'EXAMPLE--Value'}}),
    opc_request_id="FIXE4PQNU4UTHUNVMXOI<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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