
com.pulumi.azurenative.streamanalytics.kotlin.outputs.ScalarFunctionPropertiesResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.streamanalytics.kotlin.outputs
import com.pulumi.core.Either
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* The properties that are associated with a scalar function.
* @property binding The physical binding of the function. For example, in the Azure Machine Learning web service’s case, this describes the endpoint.
* @property etag The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
* @property inputs
* @property output Describes the output of a function.
* @property type Indicates the type of function.
* Expected value is 'Scalar'.
*/
public data class ScalarFunctionPropertiesResponse(
public val binding: Either? =
null,
public val etag: String,
public val inputs: List? = null,
public val output: FunctionOutputResponse? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.streamanalytics.outputs.ScalarFunctionPropertiesResponse): ScalarFunctionPropertiesResponse = ScalarFunctionPropertiesResponse(
binding = javaType.binding().map({ args0 ->
args0.transform(
{ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.streamanalytics.kotlin.outputs.AzureMachineLearningWebServiceFunctionBindingResponse.Companion.toKotlin(args0)
})
},
{ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.streamanalytics.kotlin.outputs.JavaScriptFunctionBindingResponse.Companion.toKotlin(args0)
})
},
)
}).orElse(null),
etag = javaType.etag(),
inputs = javaType.inputs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.streamanalytics.kotlin.outputs.FunctionInputResponse.Companion.toKotlin(args0)
})
}),
output = javaType.output().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.streamanalytics.kotlin.outputs.FunctionOutputResponse.Companion.toKotlin(args0)
})
}).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy