com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateSpec.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.cloudrun.kotlin.outputs
import kotlin.Deprecated
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:
* @property containers Containers defines the unit of execution for this Revision.
* Structure is documented below.
* @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 (Output, Deprecated)
* 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.
* > **Warning:** `serving_state` is deprecated and will be removed in a future major release. This field is not supported by the Cloud Run API.
* @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.
* Structure is documented below.
*/
public data class ServiceTemplateSpec(
public val containerConcurrency: Int? = null,
public val containers: List? = null,
public val serviceAccountName: String? = null,
@Deprecated(
message = """
`serving_state` is deprecated and will be removed in a future major release. This field is not
supported by the Cloud Run API.
""",
)
public val servingState: String? = null,
public val timeoutSeconds: Int? = null,
public val volumes: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.ServiceTemplateSpec): ServiceTemplateSpec = ServiceTemplateSpec(
containerConcurrency = javaType.containerConcurrency().map({ args0 -> args0 }).orElse(null),
containers = javaType.containers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateSpecContainer.Companion.toKotlin(args0)
})
}),
serviceAccountName = javaType.serviceAccountName().map({ args0 -> args0 }).orElse(null),
servingState = javaType.servingState().map({ args0 -> args0 }).orElse(null),
timeoutSeconds = javaType.timeoutSeconds().map({ args0 -> args0 }).orElse(null),
volumes = javaType.volumes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateSpecVolume.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy