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

com.pulumi.gcp.apphub.kotlin.outputs.GetDiscoveredWorkloadResult.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.apphub.kotlin.outputs

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

/**
 * A collection of values returned by getDiscoveredWorkload.
 * @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 Workload. Format: "projects/{host-project-id}/locations/{location}/applications/{application-id}/workloads/{workload-id}".
 * @property project
 * @property workloadProperties Properties of an underlying compute resource that can comprise a Workload. Structure is documented below
 * @property workloadReferences Reference to an underlying networking resource that can comprise a Workload. Structure is documented below
 * @property workloadUri
 */
public data class GetDiscoveredWorkloadResult(
    public val id: String,
    public val location: String,
    public val name: String,
    public val project: String? = null,
    public val workloadProperties: List,
    public val workloadReferences: List,
    public val workloadUri: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.apphub.outputs.GetDiscoveredWorkloadResult): GetDiscoveredWorkloadResult = GetDiscoveredWorkloadResult(
            id = javaType.id(),
            location = javaType.location(),
            name = javaType.name(),
            project = javaType.project().map({ args0 -> args0 }).orElse(null),
            workloadProperties = javaType.workloadProperties().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.apphub.kotlin.outputs.GetDiscoveredWorkloadWorkloadProperty.Companion.toKotlin(args0)
                })
            }),
            workloadReferences = javaType.workloadReferences().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.apphub.kotlin.outputs.GetDiscoveredWorkloadWorkloadReference.Companion.toKotlin(args0)
                })
            }),
            workloadUri = javaType.workloadUri(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy