com.pulumi.googlenative.artifactregistry.v1beta2.kotlin.Repository.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.artifactregistry.v1beta2.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.artifactregistry.v1beta2.kotlin.outputs.MavenRepositoryConfigResponse
import com.pulumi.googlenative.artifactregistry.v1beta2.kotlin.outputs.MavenRepositoryConfigResponse.Companion.toKotlin
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
/**
* Builder for [Repository].
*/
@PulumiTagMarker
public class RepositoryResourceBuilder internal constructor() {
public var name: String? = null
public var args: RepositoryArgs = RepositoryArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend RepositoryArgsBuilder.() -> Unit) {
val builder = RepositoryArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Repository {
val builtJavaResource =
com.pulumi.googlenative.artifactregistry.v1beta2.Repository(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Repository(builtJavaResource)
}
}
/**
* Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.
*/
public class Repository internal constructor(
override val javaResource: com.pulumi.googlenative.artifactregistry.v1beta2.Repository,
) : KotlinCustomResource(javaResource, RepositoryMapper) {
/**
* The time when the repository was created.
*/
public val createTime: Output
get() = javaResource.createTime().applyValue({ args0 -> args0 })
/**
* The user-provided description of the repository.
*/
public val description: Output
get() = javaResource.description().applyValue({ args0 -> args0 })
/**
* The format of packages that are stored in the repository.
*/
public val format: Output
get() = javaResource.format().applyValue({ args0 -> args0 })
/**
* The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created.
*/
public val kmsKeyName: Output
get() = javaResource.kmsKeyName().applyValue({ args0 -> args0 })
/**
* Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.
*/
public val labels: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy