All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.batch.v1beta1.kotlin.outputs.JobTemplateSpecPatch.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 4.18.2.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.batch.v1beta1.kotlin.outputs

import com.pulumi.kubernetes.batch.v1.kotlin.outputs.JobSpecPatch
import com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMetaPatch
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 JobTemplateSpecPatch(
    public val metadata: ObjectMetaPatch? = null,
    public val spec: JobSpecPatch? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.batch.v1beta1.outputs.JobTemplateSpecPatch): JobTemplateSpecPatch = JobTemplateSpecPatch(
            metadata = javaType.metadata().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.meta.v1.kotlin.outputs.ObjectMetaPatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
            spec = javaType.spec().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.kubernetes.batch.v1.kotlin.outputs.JobSpecPatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy