com.pulumi.gcp.cloudasset.kotlin.outputs.GetSearchAllResourcesResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.cloudasset.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property assetType The type of this resource.
* @property createTime The create timestamp of this resource, at which the resource was created.
* @property description One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes.
* @property displayName The display name of this resource.
* @property folders The folder(s) that this resource belongs to, in the form of `folders/{FOLDER_NUMBER}`. This field is available when the resource belongs to one or more folders.
* @property kmsKeys The Cloud KMS CryptoKey names or CryptoKeyVersion names. This field is available only when the resource's Protobuf contains it.
* @property labels Labels associated with this resource.
* @property location Location can be `global`, regional like `us-east1`, or zonal like `us-west1-b`.
* @property name The full resource name of this resource.. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information.
* @property networkTags Network tags associated with this resource.
* @property organization The organization that this resource belongs to, in the form of `organizations/{ORGANIZATION_NUMBER}`. This field is available when the resource belongs to an organization.
* @property parentAssetType The type of this resource's immediate parent, if there is one.
* @property parentFullResourceName The full resource name of this resource's parent, if it has one.
* @property project The project that this resource belongs to, in the form of `projects/{project_number}`.
* @property state The state of this resource.
* @property updateTime The last update timestamp of this resource, at which the resource was last modified or deleted.
*/
public data class GetSearchAllResourcesResult(
public val assetType: String,
public val createTime: String,
public val description: String,
public val displayName: String,
public val folders: List,
public val kmsKeys: List,
public val labels: Map,
public val location: String,
public val name: String,
public val networkTags: List,
public val organization: String,
public val parentAssetType: String,
public val parentFullResourceName: String,
public val project: String,
public val state: String,
public val updateTime: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudasset.outputs.GetSearchAllResourcesResult): GetSearchAllResourcesResult = GetSearchAllResourcesResult(
assetType = javaType.assetType(),
createTime = javaType.createTime(),
description = javaType.description(),
displayName = javaType.displayName(),
folders = javaType.folders().map({ args0 -> args0 }),
kmsKeys = javaType.kmsKeys().map({ args0 -> args0 }),
labels = javaType.labels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
location = javaType.location(),
name = javaType.name(),
networkTags = javaType.networkTags().map({ args0 -> args0 }),
organization = javaType.organization(),
parentAssetType = javaType.parentAssetType(),
parentFullResourceName = javaType.parentFullResourceName(),
project = javaType.project(),
state = javaType.state(),
updateTime = javaType.updateTime(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy