com.pulumi.kubernetes.batch.v2alpha1.kotlin.outputs.JobTemplateSpec.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.batch.v2alpha1.kotlin.outputs
import com.pulumi.kubernetes.batch.v1.kotlin.outputs.JobSpec
import com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMeta
import kotlin.Suppress
/**
* JobTemplateSpec describes the data a Job should have when created from a template
* @property metadata Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
* @property spec Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
*/
public data class JobTemplateSpec(
public val metadata: ObjectMeta? = null,
public val spec: JobSpec? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.batch.v2alpha1.outputs.JobTemplateSpec): JobTemplateSpec = JobTemplateSpec(
metadata = javaType.metadata().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMeta.Companion.toKotlin(args0)
})
}).orElse(null),
spec = javaType.spec().map({ args0 ->
args0.let({ args0 ->
com.pulumi.kubernetes.batch.v1.kotlin.outputs.JobSpec.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy