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

com.pulumi.googlenative.cloudbuild.v1.kotlin.outputs.SourceProvenanceResponse.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.cloudbuild.v1.kotlin.outputs

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

/**
 * Provenance of the source. Ways to find the original source, or verify that some source was used for this build.
 * @property fileHashes Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that `FileHashes` will only be populated if `BuildOptions` has requested a `SourceProvenanceHash`. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (`.tar.gz`), the `FileHash` will be for the single path to that file.
 * @property resolvedRepoSource A copy of the build's `source.repo_source`, if exists, with any revisions resolved.
 * @property resolvedStorageSource A copy of the build's `source.storage_source`, if exists, with any generations resolved.
 * @property resolvedStorageSourceManifest A copy of the build's `source.storage_source_manifest`, if exists, with any revisions resolved. This feature is in Preview.
 */
public data class SourceProvenanceResponse(
    public val fileHashes: Map,
    public val resolvedRepoSource: RepoSourceResponse,
    public val resolvedStorageSource: StorageSourceResponse,
    public val resolvedStorageSourceManifest: StorageSourceManifestResponse,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.cloudbuild.v1.outputs.SourceProvenanceResponse): SourceProvenanceResponse = SourceProvenanceResponse(
            fileHashes = javaType.fileHashes().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            resolvedRepoSource = javaType.resolvedRepoSource().let({ args0 ->
                com.pulumi.googlenative.cloudbuild.v1.kotlin.outputs.RepoSourceResponse.Companion.toKotlin(args0)
            }),
            resolvedStorageSource = javaType.resolvedStorageSource().let({ args0 ->
                com.pulumi.googlenative.cloudbuild.v1.kotlin.outputs.StorageSourceResponse.Companion.toKotlin(args0)
            }),
            resolvedStorageSourceManifest = javaType.resolvedStorageSourceManifest().let({ args0 ->
                com.pulumi.googlenative.cloudbuild.v1.kotlin.outputs.StorageSourceManifestResponse.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy