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

com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpec.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property containerConcurrency ContainerConcurrency specifies the maximum allowed in-flight (concurrent)
 * requests per container of the Revision. Values are:
 * - '0' thread-safe, the system should manage the max concurrency. This is
 *     the default value.
 * - '1' not-thread-safe. Single concurrency
 * - '2-N' thread-safe, max concurrency of N
 * @property containers Containers defines the unit of execution for this Revision.
 * @property serviceAccountName Email address of the IAM service account associated with the revision of the
 * service. The service account represents the identity of the running revision,
 * and determines what permissions the revision has. If not provided, the revision
 * will use the project's default service account.
 * @property servingState ServingState holds a value describing the state the resources
 * are in for this Revision.
 * It is expected
 * that the system will manipulate this based on routability and load.
 * @property timeoutSeconds TimeoutSeconds holds the max duration the instance is allowed for responding to a request.
 * @property volumes Volume represents a named volume in a container.
 */
public data class GetServiceTemplateSpec(
    public val containerConcurrency: Int,
    public val containers: List,
    public val serviceAccountName: String,
    public val servingState: String,
    public val timeoutSeconds: Int,
    public val volumes: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceTemplateSpec): GetServiceTemplateSpec = GetServiceTemplateSpec(
            containerConcurrency = javaType.containerConcurrency(),
            containers = javaType.containers().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainer.Companion.toKotlin(args0)
                })
            }),
            serviceAccountName = javaType.serviceAccountName(),
            servingState = javaType.servingState(),
            timeoutSeconds = javaType.timeoutSeconds(),
            volumes = javaType.volumes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecVolume.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy