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

com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceTemplateSpecContainerResource.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.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 GetServiceTemplateSpecContainerResource(
    public val limits: Map,
    public val requests: Map,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceTemplateSpecContainerResource): GetServiceTemplateSpecContainerResource = GetServiceTemplateSpecContainerResource(
            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