# 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="MACCE",
            collation_server="LATIN2_GENERAL_CI",
            connection_memory_chunk_size=429420925,
            connection_memory_limit=5387107749281496064,
            default_authentication_plugin="mysql_native_password",
            global_connection_memory_limit=3573228688504504832,
            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=214316368432921604,
            innodb_ft_enable_stopword=True,
            innodb_log_writer_threads=True,
            local_infile=True,
            mysql_firewall_mode=True,
            mysqlx_enable_hello_notice=False,
            sql_require_primary_key=False,
            sql_warnings=False,
            binlog_expire_logs_seconds=407,
            binlog_row_metadata="MINIMAL",
            binlog_row_value_options="EXAMPLE-binlogRowValueOptions-Value",
            binlog_transaction_compression=True,
            innodb_buffer_pool_size=3174132868167438336,
            innodb_ft_result_cache_limit=300077234,
            max_binlog_cache_size=31552135774037,
            max_connect_errors=3205963881355237377,
            max_heap_table_size=2494121986676069888,
            max_connections=63520,
            max_prepared_stmt_count=2469864,
            connect_timeout=20339211,
            cte_max_recursion_depth=4071098232,
            generated_random_password_length=26,
            information_schema_stats_expiry=3732081,
            innodb_buffer_pool_dump_pct=88,
            innodb_buffer_pool_instances=33,
            innodb_ddl_buffer_size=2437768880,
            innodb_ddl_threads=33,
            innodb_ft_max_token_size=55,
            innodb_ft_min_token_size=5,
            innodb_ft_num_word_optimize=724,
            innodb_lock_wait_timeout=670765906,
            innodb_max_purge_lag=2487730623,
            innodb_max_purge_lag_delay=135071,
            interactive_timeout=15362033,
            innodb_stats_persistent_sample_pages=7811646694857264129,
            innodb_stats_transient_sample_pages=7167122275510558721,
            innodb_strict_mode=False,
            max_allowed_packet=195970597,
            max_execution_time=6409423365646904320,
            mysqlx_connect_timeout=662430539,
            mysqlx_document_id_unique_prefix=7558,
            mysqlx_idle_worker_thread_timeout=394,
            mysqlx_interactive_timeout=1432054,
            mysqlx_max_allowed_packet=221533692,
            mysqlx_min_worker_threads=89,
            mysqlx_read_timeout=576816,
            mysqlx_wait_timeout=1284936,
            mysqlx_write_timeout=359716,
            net_read_timeout=1579535,
            net_write_timeout=13233284,
            parser_max_mem_size=2172273014025127552,
            query_alloc_block_size=3082401746,
            query_prealloc_size=915032830077246720,
            regexp_time_limit=1455796116,
            sql_mode="EXAMPLE-sqlMode-Value",
            tmp_table_size=254790064919373792,
            mysqlx_deflate_default_compression_level=8,
            mysqlx_deflate_max_client_compression_level=3,
            mysqlx_lz4_max_client_compression_level=8,
            mysqlx_lz4_default_compression_level=4,
            mysqlx_zstd_max_client_compression_level=8,
            mysqlx_zstd_default_compression_level=11,
            mysql_zstd_default_compression_level=17,
            sort_buffer_size=8651082206008408064,
            wait_timeout=567806,
            thread_pool_dedicated_listeners=False,
            thread_pool_max_transactions_limit=25039,
            time_zone="EXAMPLE-timeZone-Value",
            block_encryption_mode="EXAMPLE-blockEncryptionMode-Value",
            binlog_group_commit_sync_delay=731798,
            binlog_group_commit_sync_no_delay_count=22776,
            replica_net_timeout=29517416,
            require_secure_transport=True,
            innodb_redo_log_capacity=10144384855,
            thread_pool_transaction_delay=182058,
            thread_pool_query_threads_per_group=665,
            explain_format="JSON",
            explicit_defaults_for_timestamp=False,
            sql_generate_invisible_primary_key=False,
            temptable_max_ram=6576858479152584704,
            innodb_change_buffering="NONE",
            innodb_adaptive_hash_index=False,
            innodb_undo_log_truncate=False,
            table_definition_cache=294270,
            table_open_cache=243864,
            relay_log_space_limit=6599589017754653696,
            optimizer_switch="EXAMPLE-optimizerSwitch-Value",
            replica_type_conversions="EXAMPLE-replicaTypeConversions-Value",
            replica_parallel_workers=686,
            skip_name_resolve=False,
            max_user_connections=2911177115,
            join_buffer_size=4247378757855561856,
            max_seeks_for_key=3678487622524351489,
            range_optimizer_max_mem_size=803252476249455616,
            auto_increment_increment=43549,
            auto_increment_offset=505,
            innodb_autoinc_lock_mode=257,
            innodb_rollback_on_timeout=False,
            innodb_online_alter_log_max_size=4702258975674607616,
            innodb_sort_buffer_size=23683559,
            innodb_numa_interleave=True,
            thread_pool_size=146,
            long_query_time=20189043),
        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_3zR2M': 'EXAMPLE_VALUE_dULDuaZEGufIOnlmKcBZ'},
        defined_tags={
            'EXAMPLE_KEY_LPih8': {
                'EXAMPLE_KEY_On05A': 'EXAMPLE--Value'}}),
    opc_request_id="N3SWAJMSHPDKPCFFHWBQ<unique_ID>",
    opc_retry_token="EXAMPLE-opcRetryToken-Value")

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