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

com.pulumi.gcp.apphub.kotlin.outputs.GetDiscoveredServiceResult.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.20.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.apphub.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * A collection of values returned by getDiscoveredService.
 * @property id The provider-assigned unique ID for this managed resource.
 * @property location The location that the underlying resource resides in.
 * @property name Resource name of a Service. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}".
 * @property project
 * @property serviceProperties Properties of an underlying compute resource that can comprise a Service. Structure is documented below
 * @property serviceReferences Reference to an underlying networking resource that can comprise a Service. Structure is documented below
 * @property serviceUri
 */
public data class GetDiscoveredServiceResult(
    public val id: String,
    public val location: String,
    public val name: String,
    public val project: String? = null,
    public val serviceProperties: List,
    public val serviceReferences: List,
    public val serviceUri: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.apphub.outputs.GetDiscoveredServiceResult): GetDiscoveredServiceResult = GetDiscoveredServiceResult(
            id = javaType.id(),
            location = javaType.location(),
            name = javaType.name(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            serviceProperties = javaType.serviceProperties().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.apphub.kotlin.outputs.GetDiscoveredServiceServiceProperty.Companion.toKotlin(args0)
                })
            }),
            serviceReferences = javaType.serviceReferences().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.apphub.kotlin.outputs.GetDiscoveredServiceServiceReference.Companion.toKotlin(args0)
                })
            }),
            serviceUri = javaType.serviceUri(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy