
com.pulumi.azurenative.datamigration.kotlin.outputs.GetUserTablesSqlTaskPropertiesResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datamigration.kotlin.outputs
import com.pulumi.core.Either
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* Properties for the task that collects user tables for the given list of databases
* @property clientData Key value pairs of client data to attach meta data information to task
* @property commands Array of command properties.
* @property errors Array of errors. This is ignored if submitted.
* @property input Task input
* @property output Task output. This is ignored if submitted.
* @property state The state of the task. This is ignored if submitted.
* @property taskType Task type.
* Expected value is 'GetUserTables.Sql'.
*/
public data class GetUserTablesSqlTaskPropertiesResponse(
public val clientData: Map? = null,
public val commands: List>,
public val errors: List,
public val input: GetUserTablesSqlTaskInputResponse? = null,
public val output: List,
public val state: String,
public val taskType: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.datamigration.outputs.GetUserTablesSqlTaskPropertiesResponse): GetUserTablesSqlTaskPropertiesResponse = GetUserTablesSqlTaskPropertiesResponse(
clientData = javaType.clientData().map({ args0 -> args0.key.to(args0.value) }).toMap(),
commands = javaType.commands().map({ args0 ->
args0.transform(
{ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.datamigration.kotlin.outputs.MigrateMISyncCompleteCommandPropertiesResponse.Companion.toKotlin(args0)
})
},
{ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.datamigration.kotlin.outputs.MigrateSyncCompleteCommandPropertiesResponse.Companion.toKotlin(args0)
})
},
)
}),
errors = javaType.errors().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.datamigration.kotlin.outputs.ODataErrorResponse.Companion.toKotlin(args0)
})
}),
input = javaType.input().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.datamigration.kotlin.outputs.GetUserTablesSqlTaskInputResponse.Companion.toKotlin(args0)
})
}).orElse(null),
output = javaType.output().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.datamigration.kotlin.outputs.GetUserTablesSqlTaskOutputResponse.Companion.toKotlin(args0)
})
}),
state = javaType.state(),
taskType = javaType.taskType(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy