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

com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplate.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrun.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property metadata Optional metadata for this Revision, including labels and annotations.
 * Name will be generated by the Configuration. To set minimum instances
 * for this revision, use the "autoscaling.knative.dev/minScale" annotation
 * key. To set maximum instances for this revision, use the
 * "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL
 * connections for the revision, use the "run.googleapis.com/cloudsql-instances"
 * annotation key.
 * Structure is documented below.
 * @property spec RevisionSpec holds the desired state of the Revision (from the client).
 * Structure is documented below.
 */
public data class ServiceTemplate(
    public val metadata: ServiceTemplateMetadata? = null,
    public val spec: ServiceTemplateSpec? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.ServiceTemplate): ServiceTemplate = ServiceTemplate(
            metadata = javaType.metadata().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateMetadata.Companion.toKotlin(args0)
                })
            }).orElse(null),
            spec = javaType.spec().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateSpec.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy