def get_migrate_mysql_to_azuredbformysql_sync_input(database_options_json,
                                                    source_connection_info,
                                                    target_connection_info):
    database_options = []

    for d in database_options_json:
        def_migration_setting_input = {
            "fullLoadSubTasks": "5",
            "inlineLobMaxSize": "0",
            "limitLOBSize": "true",
            "lobChunkSize": "64",
            "lobMaxSize": "32"
        }
        database_options.append(
            MigrateMySqlAzureDbForMySqlSyncDatabaseInput(
                name=d.get('name', None),
                target_database_name=d.get('target_database_name', None),
                migration_setting=d.get('migrationSetting',
                                        def_migration_setting_input),
                source_setting=d.get('sourceSetting', None),
                target_setting=d.get('targetSetting', None)))

    return MigrateMySqlAzureDbForMySqlSyncTaskInput(
        source_connection_info=source_connection_info,
        target_connection_info=target_connection_info,
        selected_databases=database_options)
def get_migrate_mysql_to_azuredbformysql_sync_input(database_options_json,
                                                    source_connection_info,
                                                    target_connection_info):
    database_options = []

    for d in database_options_json:
        database_options.append(
            MigrateMySqlAzureDbForMySqlSyncDatabaseInput(
                name=d.get('name', None),
                target_database_name=d.get('target_database_name', None)))

    return MigrateMySqlAzureDbForMySqlSyncTaskInput(
        source_connection_info=source_connection_info,
        target_connection_info=target_connection_info,
        selected_databases=database_options)