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

com.pulumi.googlenative.containeranalysis.v1alpha1.kotlin.outputs.SourceResponse.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.containeranalysis.v1alpha1.kotlin.outputs

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

/**
 * Source describes the location of the source used for the build.
 * @property additionalContexts If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
 * @property artifactStorageSource If provided, the input binary artifacts for the build came from this location.
 * @property context If provided, the source code used for the build came from this location.
 * @property fileHashes Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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 repoSource If provided, get source from this location in a Cloud Repo.
 * @property storageSource If provided, get the source from this location in Google Cloud Storage.
 */
public data class SourceResponse(
    public val additionalContexts: List,
    public val artifactStorageSource: StorageSourceResponse,
    public val context: GoogleDevtoolsContaineranalysisV1alpha1SourceContextResponse,
    public val fileHashes: Map,
    public val repoSource: RepoSourceResponse,
    public val storageSource: StorageSourceResponse,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.googlenative.containeranalysis.v1alpha1.outputs.SourceResponse): SourceResponse = SourceResponse(
            additionalContexts = javaType.additionalContexts().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.googlenative.containeranalysis.v1alpha1.kotlin.outputs.GoogleDevtoolsContaineranalysisV1alpha1SourceContextResponse.Companion.toKotlin(args0)
                })
            }),
            artifactStorageSource = javaType.artifactStorageSource().let({ args0 ->
                com.pulumi.googlenative.containeranalysis.v1alpha1.kotlin.outputs.StorageSourceResponse.Companion.toKotlin(args0)
            }),
            context = javaType.context().let({ args0 ->
                com.pulumi.googlenative.containeranalysis.v1alpha1.kotlin.outputs.GoogleDevtoolsContaineranalysisV1alpha1SourceContextResponse.Companion.toKotlin(args0)
            }),
            fileHashes = javaType.fileHashes().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            repoSource = javaType.repoSource().let({ args0 ->
                com.pulumi.googlenative.containeranalysis.v1alpha1.kotlin.outputs.RepoSourceResponse.Companion.toKotlin(args0)
            }),
            storageSource = javaType.storageSource().let({ args0 ->
                com.pulumi.googlenative.containeranalysis.v1alpha1.kotlin.outputs.StorageSourceResponse.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy