com.pulumi.gcp.cloudrun.kotlin.outputs.ServiceTemplateSpecContainerResources.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.String
import kotlin.Suppress
import kotlin.collections.Map
/**
*
* @property limits Limits describes the maximum amount of compute resources allowed.
* The values of the map is string form of the 'quantity' k8s type:
* https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
* @property requests Requests describes the minimum amount of compute resources required.
* If Requests is omitted for a container, it defaults to Limits if that is
* explicitly specified, otherwise to an implementation-defined value.
* The values of the map is string form of the 'quantity' k8s type:
* https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
*/
public data class ServiceTemplateSpecContainerResources(
public val limits: Map? = null,
public val requests: Map? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.ServiceTemplateSpecContainerResources): ServiceTemplateSpecContainerResources = ServiceTemplateSpecContainerResources(
limits = javaType.limits().map({ args0 -> args0.key.to(args0.value) }).toMap(),
requests = javaType.requests().map({ args0 -> args0.key.to(args0.value) }).toMap(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy