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

com.pulumi.gcp.cloudrun.kotlin.outputs.GetServiceMetadata.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.12.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.Map

/**
 *
 * @property annotations
 * @property effectiveAnnotations
 * @property effectiveLabels
 * @property generation A sequence number representing a specific generation of the desired state.
 * @property labels Map of string keys and values that can be used to organize and categorize
 * (scope and select) objects. May match selectors of replication controllers
 * and routes.
 * **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
 * Please refer to the field 'effective_labels' for all of the labels present on the resource.
 * @property namespace In Cloud Run the namespace must be equal to either the
 * project ID or project number.
 * @property pulumiLabels The combination of labels configured directly on the resource
 *  and default labels configured on the provider.
 * @property resourceVersion An opaque value that represents the internal version of this object that
 * can be used by clients to determine when objects have changed. May be used
 * for optimistic concurrency, change detection, and the watch operation on a
 * resource or set of resources. They may only be valid for a
 * particular resource or set of resources.
 * @property selfLink SelfLink is a URL representing this object.
 * @property uid UID is a unique id generated by the server on successful creation of a resource and is not
 * allowed to change on PUT operations.
 */
public data class GetServiceMetadata(
    public val annotations: Map,
    public val effectiveAnnotations: Map,
    public val effectiveLabels: Map,
    public val generation: Int,
    public val labels: Map,
    public val namespace: String,
    public val pulumiLabels: Map,
    public val resourceVersion: String,
    public val selfLink: String,
    public val uid: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrun.outputs.GetServiceMetadata): GetServiceMetadata = GetServiceMetadata(
            annotations = javaType.annotations().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            effectiveAnnotations = javaType.effectiveAnnotations().map({ args0 ->
                args0.key.to(args0.value)
            }).toMap(),
            effectiveLabels = javaType.effectiveLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            generation = javaType.generation(),
            labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            namespace = javaType.namespace(),
            pulumiLabels = javaType.pulumiLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            resourceVersion = javaType.resourceVersion(),
            selfLink = javaType.selfLink(),
            uid = javaType.uid(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy