com.pulumi.gcp.cloudbuild.kotlin.inputs.TriggerBuildArtifactsNpmPackageArgs.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.cloudbuild.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsNpmPackageArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property packagePath Path to the package.json. e.g. workspace/path/to/package
* @property repository Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"
* Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
*/
public data class TriggerBuildArtifactsNpmPackageArgs(
public val packagePath: Output? = null,
public val repository: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsNpmPackageArgs =
com.pulumi.gcp.cloudbuild.inputs.TriggerBuildArtifactsNpmPackageArgs.builder()
.packagePath(packagePath?.applyValue({ args0 -> args0 }))
.repository(repository?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerBuildArtifactsNpmPackageArgs].
*/
@PulumiTagMarker
public class TriggerBuildArtifactsNpmPackageArgsBuilder internal constructor() {
private var packagePath: Output? = null
private var repository: Output? = null
/**
* @param value Path to the package.json. e.g. workspace/path/to/package
*/
@JvmName("ebkfkrpdpjxesfbj")
public suspend fun packagePath(`value`: Output) {
this.packagePath = value
}
/**
* @param value Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"
* Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
*/
@JvmName("rhemoceymlyvritc")
public suspend fun repository(`value`: Output) {
this.repository = value
}
/**
* @param value Path to the package.json. e.g. workspace/path/to/package
*/
@JvmName("astcvextsnsayjrm")
public suspend fun packagePath(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.packagePath = mapped
}
/**
* @param value Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY"
* Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
*/
@JvmName("qonlmqmddmikldwf")
public suspend fun repository(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.repository = mapped
}
internal fun build(): TriggerBuildArtifactsNpmPackageArgs = TriggerBuildArtifactsNpmPackageArgs(
packagePath = packagePath,
repository = repository,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy