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

com.pulumi.gcp.cloudquota.kotlin.outputs.SQuotaPreferenceQuotaConfig.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.cloudquota.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @property annotations The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations.
 * An object containing a list of "key: value" pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
 * @property grantedValue (Output)
 * Granted quota value.
 * @property preferredValue The preferred value. Must be greater than or equal to -1. If set to -1, it means the value is "unlimited".
 * @property requestOrigin (Output)
 * The origin of the quota preference request.
 * - - -
 * @property stateDetail (Output)
 * Optional details about the state of this quota preference.
 * @property traceId (Output)
 * The trace id that the Google Cloud uses to provision the requested quota. This trace id may be used by the client to contact Cloud support to track the state of a quota preference request. The trace id is only produced for increase requests and is unique for each request. The quota decrease requests do not have a trace id.
 */
public data class SQuotaPreferenceQuotaConfig(
    public val annotations: Map? = null,
    public val grantedValue: String? = null,
    public val preferredValue: String,
    public val requestOrigin: String? = null,
    public val stateDetail: String? = null,
    public val traceId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudquota.outputs.SQuotaPreferenceQuotaConfig): SQuotaPreferenceQuotaConfig = SQuotaPreferenceQuotaConfig(
            annotations = javaType.annotations().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            grantedValue = javaType.grantedValue().map({ args0 -> args0 }).orElse(null),
            preferredValue = javaType.preferredValue(),
            requestOrigin = javaType.requestOrigin().map({ args0 -> args0 }).orElse(null),
            stateDetail = javaType.stateDetail().map({ args0 -> args0 }).orElse(null),
            traceId = javaType.traceId().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy