Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.gcp.dataform.kotlin.RepositoryArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.dataform.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataform.RepositoryArgs.builder
import com.pulumi.gcp.dataform.kotlin.inputs.RepositoryGitRemoteSettingsArgs
import com.pulumi.gcp.dataform.kotlin.inputs.RepositoryGitRemoteSettingsArgsBuilder
import com.pulumi.gcp.dataform.kotlin.inputs.RepositoryWorkspaceCompilationOverridesArgs
import com.pulumi.gcp.dataform.kotlin.inputs.RepositoryWorkspaceCompilationOverridesArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* ## Example Usage
* ### Dataform Repository
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const secret = new gcp.secretmanager.Secret("secret", {
* secretId: "my-secret",
* replication: {
* auto: {},
* },
* });
* const secretVersion = new gcp.secretmanager.SecretVersion("secret_version", {
* secret: secret.id,
* secretData: "secret-data",
* });
* const keyring = new gcp.kms.KeyRing("keyring", {
* name: "example-key-ring",
* location: "us-central1",
* });
* const exampleKey = new gcp.kms.CryptoKey("example_key", {
* name: "example-crypto-key-name",
* keyRing: keyring.id,
* });
* const cryptoKeyBinding = new gcp.kms.CryptoKeyIAMBinding("crypto_key_binding", {
* cryptoKeyId: exampleKey.id,
* role: "roles/cloudkms.cryptoKeyEncrypterDecrypter",
* members: [`serviceAccount:service-${project.number}@gcp-sa-dataform.iam.gserviceaccount.com`],
* });
* const dataformRepository = new gcp.dataform.Repository("dataform_repository", {
* name: "dataform_repository",
* displayName: "dataform_repository",
* npmrcEnvironmentVariablesSecretVersion: secretVersion.id,
* kmsKeyName: exampleKey.id,
* labels: {
* label_foo1: "label-bar1",
* },
* gitRemoteSettings: {
* url: "https://github.com/OWNER/REPOSITORY.git",
* defaultBranch: "main",
* authenticationTokenSecretVersion: secretVersion.id,
* },
* workspaceCompilationOverrides: {
* defaultDatabase: "database",
* schemaSuffix: "_suffix",
* tablePrefix: "prefix_",
* },
* }, {
* dependsOn: [cryptoKeyBinding],
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* secret = gcp.secretmanager.Secret("secret",
* secret_id="my-secret",
* replication={
* "auto": {},
* })
* secret_version = gcp.secretmanager.SecretVersion("secret_version",
* secret=secret.id,
* secret_data="secret-data")
* keyring = gcp.kms.KeyRing("keyring",
* name="example-key-ring",
* location="us-central1")
* example_key = gcp.kms.CryptoKey("example_key",
* name="example-crypto-key-name",
* key_ring=keyring.id)
* crypto_key_binding = gcp.kms.CryptoKeyIAMBinding("crypto_key_binding",
* crypto_key_id=example_key.id,
* role="roles/cloudkms.cryptoKeyEncrypterDecrypter",
* members=[f"serviceAccount:service-{project['number']}@gcp-sa-dataform.iam.gserviceaccount.com"])
* dataform_repository = gcp.dataform.Repository("dataform_repository",
* name="dataform_repository",
* display_name="dataform_repository",
* npmrc_environment_variables_secret_version=secret_version.id,
* kms_key_name=example_key.id,
* labels={
* "label_foo1": "label-bar1",
* },
* git_remote_settings={
* "url": "https://github.com/OWNER/REPOSITORY.git",
* "default_branch": "main",
* "authentication_token_secret_version": secret_version.id,
* },
* workspace_compilation_overrides={
* "default_database": "database",
* "schema_suffix": "_suffix",
* "table_prefix": "prefix_",
* },
* opts = pulumi.ResourceOptions(depends_on=[crypto_key_binding]))
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var secret = new Gcp.SecretManager.Secret("secret", new()
* {
* SecretId = "my-secret",
* Replication = new Gcp.SecretManager.Inputs.SecretReplicationArgs
* {
* Auto = null,
* },
* });
* var secretVersion = new Gcp.SecretManager.SecretVersion("secret_version", new()
* {
* Secret = secret.Id,
* SecretData = "secret-data",
* });
* var keyring = new Gcp.Kms.KeyRing("keyring", new()
* {
* Name = "example-key-ring",
* Location = "us-central1",
* });
* var exampleKey = new Gcp.Kms.CryptoKey("example_key", new()
* {
* Name = "example-crypto-key-name",
* KeyRing = keyring.Id,
* });
* var cryptoKeyBinding = new Gcp.Kms.CryptoKeyIAMBinding("crypto_key_binding", new()
* {
* CryptoKeyId = exampleKey.Id,
* Role = "roles/cloudkms.cryptoKeyEncrypterDecrypter",
* Members = new[]
* {
* $"serviceAccount:service-{project.Number}@gcp-sa-dataform.iam.gserviceaccount.com",
* },
* });
* var dataformRepository = new Gcp.Dataform.Repository("dataform_repository", new()
* {
* Name = "dataform_repository",
* DisplayName = "dataform_repository",
* NpmrcEnvironmentVariablesSecretVersion = secretVersion.Id,
* KmsKeyName = exampleKey.Id,
* Labels =
* {
* { "label_foo1", "label-bar1" },
* },
* GitRemoteSettings = new Gcp.Dataform.Inputs.RepositoryGitRemoteSettingsArgs
* {
* Url = "https://github.com/OWNER/REPOSITORY.git",
* DefaultBranch = "main",
* AuthenticationTokenSecretVersion = secretVersion.Id,
* },
* WorkspaceCompilationOverrides = new Gcp.Dataform.Inputs.RepositoryWorkspaceCompilationOverridesArgs
* {
* DefaultDatabase = "database",
* SchemaSuffix = "_suffix",
* TablePrefix = "prefix_",
* },
* }, new CustomResourceOptions
* {
* DependsOn =
* {
* cryptoKeyBinding,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "fmt"
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/dataform"
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/kms"
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/secretmanager"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* secret, err := secretmanager.NewSecret(ctx, "secret", &secretmanager.SecretArgs{
* SecretId: pulumi.String("my-secret"),
* Replication: &secretmanager.SecretReplicationArgs{
* Auto: nil,
* },
* })
* if err != nil {
* return err
* }
* secretVersion, err := secretmanager.NewSecretVersion(ctx, "secret_version", &secretmanager.SecretVersionArgs{
* Secret: secret.ID(),
* SecretData: pulumi.String("secret-data"),
* })
* if err != nil {
* return err
* }
* keyring, err := kms.NewKeyRing(ctx, "keyring", &kms.KeyRingArgs{
* Name: pulumi.String("example-key-ring"),
* Location: pulumi.String("us-central1"),
* })
* if err != nil {
* return err
* }
* exampleKey, err := kms.NewCryptoKey(ctx, "example_key", &kms.CryptoKeyArgs{
* Name: pulumi.String("example-crypto-key-name"),
* KeyRing: keyring.ID(),
* })
* if err != nil {
* return err
* }
* cryptoKeyBinding, err := kms.NewCryptoKeyIAMBinding(ctx, "crypto_key_binding", &kms.CryptoKeyIAMBindingArgs{
* CryptoKeyId: exampleKey.ID(),
* Role: pulumi.String("roles/cloudkms.cryptoKeyEncrypterDecrypter"),
* Members: pulumi.StringArray{
* pulumi.Sprintf("serviceAccount:service-%[email protected] ", project.Number),
* },
* })
* if err != nil {
* return err
* }
* _, err = dataform.NewRepository(ctx, "dataform_repository", &dataform.RepositoryArgs{
* Name: pulumi.String("dataform_repository"),
* DisplayName: pulumi.String("dataform_repository"),
* NpmrcEnvironmentVariablesSecretVersion: secretVersion.ID(),
* KmsKeyName: exampleKey.ID(),
* Labels: pulumi.StringMap{
* "label_foo1": pulumi.String("label-bar1"),
* },
* GitRemoteSettings: &dataform.RepositoryGitRemoteSettingsArgs{
* Url: pulumi.String("https://github.com/OWNER/REPOSITORY.git"),
* DefaultBranch: pulumi.String("main"),
* AuthenticationTokenSecretVersion: secretVersion.ID(),
* },
* WorkspaceCompilationOverrides: &dataform.RepositoryWorkspaceCompilationOverridesArgs{
* DefaultDatabase: pulumi.String("database"),
* SchemaSuffix: pulumi.String("_suffix"),
* TablePrefix: pulumi.String("prefix_"),
* },
* }, pulumi.DependsOn([]pulumi.Resource{
* cryptoKeyBinding,
* }))
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.secretmanager.Secret;
* import com.pulumi.gcp.secretmanager.SecretArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationArgs;
* import com.pulumi.gcp.secretmanager.inputs.SecretReplicationAutoArgs;
* import com.pulumi.gcp.secretmanager.SecretVersion;
* import com.pulumi.gcp.secretmanager.SecretVersionArgs;
* import com.pulumi.gcp.kms.KeyRing;
* import com.pulumi.gcp.kms.KeyRingArgs;
* import com.pulumi.gcp.kms.CryptoKey;
* import com.pulumi.gcp.kms.CryptoKeyArgs;
* import com.pulumi.gcp.kms.CryptoKeyIAMBinding;
* import com.pulumi.gcp.kms.CryptoKeyIAMBindingArgs;
* import com.pulumi.gcp.dataform.Repository;
* import com.pulumi.gcp.dataform.RepositoryArgs;
* import com.pulumi.gcp.dataform.inputs.RepositoryGitRemoteSettingsArgs;
* import com.pulumi.gcp.dataform.inputs.RepositoryWorkspaceCompilationOverridesArgs;
* import com.pulumi.resources.CustomResourceOptions;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var secret = new Secret("secret", SecretArgs.builder()
* .secretId("my-secret")
* .replication(SecretReplicationArgs.builder()
* .auto()
* .build())
* .build());
* var secretVersion = new SecretVersion("secretVersion", SecretVersionArgs.builder()
* .secret(secret.id())
* .secretData("secret-data")
* .build());
* var keyring = new KeyRing("keyring", KeyRingArgs.builder()
* .name("example-key-ring")
* .location("us-central1")
* .build());
* var exampleKey = new CryptoKey("exampleKey", CryptoKeyArgs.builder()
* .name("example-crypto-key-name")
* .keyRing(keyring.id())
* .build());
* var cryptoKeyBinding = new CryptoKeyIAMBinding("cryptoKeyBinding", CryptoKeyIAMBindingArgs.builder()
* .cryptoKeyId(exampleKey.id())
* .role("roles/cloudkms.cryptoKeyEncrypterDecrypter")
* .members(String.format("serviceAccount:service-%[email protected] ", project.number()))
* .build());
* var dataformRepository = new Repository("dataformRepository", RepositoryArgs.builder()
* .name("dataform_repository")
* .displayName("dataform_repository")
* .npmrcEnvironmentVariablesSecretVersion(secretVersion.id())
* .kmsKeyName(exampleKey.id())
* .labels(Map.of("label_foo1", "label-bar1"))
* .gitRemoteSettings(RepositoryGitRemoteSettingsArgs.builder()
* .url("https://github.com/OWNER/REPOSITORY.git")
* .defaultBranch("main")
* .authenticationTokenSecretVersion(secretVersion.id())
* .build())
* .workspaceCompilationOverrides(RepositoryWorkspaceCompilationOverridesArgs.builder()
* .defaultDatabase("database")
* .schemaSuffix("_suffix")
* .tablePrefix("prefix_")
* .build())
* .build(), CustomResourceOptions.builder()
* .dependsOn(cryptoKeyBinding)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* secret:
* type: gcp:secretmanager:Secret
* properties:
* secretId: my-secret
* replication:
* auto: {}
* secretVersion:
* type: gcp:secretmanager:SecretVersion
* name: secret_version
* properties:
* secret: ${secret.id}
* secretData: secret-data
* keyring:
* type: gcp:kms:KeyRing
* properties:
* name: example-key-ring
* location: us-central1
* exampleKey:
* type: gcp:kms:CryptoKey
* name: example_key
* properties:
* name: example-crypto-key-name
* keyRing: ${keyring.id}
* cryptoKeyBinding:
* type: gcp:kms:CryptoKeyIAMBinding
* name: crypto_key_binding
* properties:
* cryptoKeyId: ${exampleKey.id}
* role: roles/cloudkms.cryptoKeyEncrypterDecrypter
* members:
* - serviceAccount:service-${project.number}@gcp-sa-dataform.iam.gserviceaccount.com
* dataformRepository:
* type: gcp:dataform:Repository
* name: dataform_repository
* properties:
* name: dataform_repository
* displayName: dataform_repository
* npmrcEnvironmentVariablesSecretVersion: ${secretVersion.id}
* kmsKeyName: ${exampleKey.id}
* labels:
* label_foo1: label-bar1
* gitRemoteSettings:
* url: https://github.com/OWNER/REPOSITORY.git
* defaultBranch: main
* authenticationTokenSecretVersion: ${secretVersion.id}
* workspaceCompilationOverrides:
* defaultDatabase: database
* schemaSuffix: _suffix
* tablePrefix: prefix_
* options:
* dependson:
* - ${cryptoKeyBinding}
* ```
*
* ## Import
* Repository can be imported using any of these accepted formats:
* * `projects/{{project}}/locations/{{region}}/repositories/{{name}}`
* * `{{project}}/{{region}}/{{name}}`
* * `{{region}}/{{name}}`
* * `{{name}}`
* When using the `pulumi import` command, Repository can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:dataform/repository:Repository default projects/{{project}}/locations/{{region}}/repositories/{{name}}
* ```
* ```sh
* $ pulumi import gcp:dataform/repository:Repository default {{project}}/{{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:dataform/repository:Repository default {{region}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:dataform/repository:Repository default {{name}}
* ```
* @property displayName Optional. The repository's user-friendly name.
* @property gitRemoteSettings Optional. If set, configures this repository to be linked to a Git remote.
* Structure is documented below.
* @property kmsKeyName Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources.
* It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
* @property labels Optional. Repository user labels.
* An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effective_labels` for all of the labels present on the resource.
* @property name The repository's name.
* - - -
* @property npmrcEnvironmentVariablesSecretVersion Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property region A reference to the region
* @property serviceAccount The service account to run workflow invocations under.
* @property workspaceCompilationOverrides If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results.
* Structure is documented below.
* */*/*/
*/
public data class RepositoryArgs(
public val displayName: Output? = null,
public val gitRemoteSettings: Output? = null,
public val kmsKeyName: Output? = null,
public val labels: Output>? = null,
public val name: Output? = null,
public val npmrcEnvironmentVariablesSecretVersion: Output? = null,
public val project: Output? = null,
public val region: Output? = null,
public val serviceAccount: Output? = null,
public val workspaceCompilationOverrides: Output? =
null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.dataform.RepositoryArgs =
com.pulumi.gcp.dataform.RepositoryArgs.builder()
.displayName(displayName?.applyValue({ args0 -> args0 }))
.gitRemoteSettings(gitRemoteSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.kmsKeyName(kmsKeyName?.applyValue({ args0 -> args0 }))
.labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.name(name?.applyValue({ args0 -> args0 }))
.npmrcEnvironmentVariablesSecretVersion(
npmrcEnvironmentVariablesSecretVersion?.applyValue({ args0 ->
args0
}),
)
.project(project?.applyValue({ args0 -> args0 }))
.region(region?.applyValue({ args0 -> args0 }))
.serviceAccount(serviceAccount?.applyValue({ args0 -> args0 }))
.workspaceCompilationOverrides(
workspaceCompilationOverrides?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
).build()
}
/**
* Builder for [RepositoryArgs].
*/
@PulumiTagMarker
public class RepositoryArgsBuilder internal constructor() {
private var displayName: Output? = null
private var gitRemoteSettings: Output? = null
private var kmsKeyName: Output? = null
private var labels: Output>? = null
private var name: Output? = null
private var npmrcEnvironmentVariablesSecretVersion: Output? = null
private var project: Output? = null
private var region: Output? = null
private var serviceAccount: Output? = null
private var workspaceCompilationOverrides: Output? =
null
/**
* @param value Optional. The repository's user-friendly name.
*/
@JvmName("scrqdtlrjsoxcjsm")
public suspend fun displayName(`value`: Output) {
this.displayName = value
}
/**
* @param value Optional. If set, configures this repository to be linked to a Git remote.
* Structure is documented below.
*/
@JvmName("bjcgjtaxqhnsvgpu")
public suspend fun gitRemoteSettings(`value`: Output) {
this.gitRemoteSettings = value
}
/**
* @param value Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources.
* It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
*/
@JvmName("rkfmeycuwgfdgcaa")
public suspend fun kmsKeyName(`value`: Output) {
this.kmsKeyName = value
}
/**
* @param value Optional. Repository user labels.
* An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effective_labels` for all of the labels present on the resource.
*/
@JvmName("tmeacspgxuugppeb")
public suspend fun labels(`value`: Output>) {
this.labels = value
}
/**
* @param value The repository's name.
* - - -
*/
@JvmName("mjlowishqiqonrtg")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.
* */*/*/
*/
@JvmName("qjvsmskgrvaxstdc")
public suspend fun npmrcEnvironmentVariablesSecretVersion(`value`: Output) {
this.npmrcEnvironmentVariablesSecretVersion = value
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("uwjhwlayginxnmru")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value A reference to the region
*/
@JvmName("enfeultqqqlohwqj")
public suspend fun region(`value`: Output) {
this.region = value
}
/**
* @param value The service account to run workflow invocations under.
*/
@JvmName("wksndeclyrnisdor")
public suspend fun serviceAccount(`value`: Output) {
this.serviceAccount = value
}
/**
* @param value If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results.
* Structure is documented below.
*/
@JvmName("rkbgedcolqkgcjdx")
public suspend fun workspaceCompilationOverrides(`value`: Output) {
this.workspaceCompilationOverrides = value
}
/**
* @param value Optional. The repository's user-friendly name.
*/
@JvmName("emundlvgofhhlvwk")
public suspend fun displayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.displayName = mapped
}
/**
* @param value Optional. If set, configures this repository to be linked to a Git remote.
* Structure is documented below.
*/
@JvmName("hrcjknnuiakdoknx")
public suspend fun gitRemoteSettings(`value`: RepositoryGitRemoteSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gitRemoteSettings = mapped
}
/**
* @param argument Optional. If set, configures this repository to be linked to a Git remote.
* Structure is documented below.
*/
@JvmName("aqqsbyepcjfraidg")
public suspend fun gitRemoteSettings(argument: suspend RepositoryGitRemoteSettingsArgsBuilder.() -> Unit) {
val toBeMapped = RepositoryGitRemoteSettingsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.gitRemoteSettings = mapped
}
/**
* @param value Optional. The reference to a KMS encryption key. If provided, it will be used to encrypt user data in the repository and all child resources.
* It is not possible to add or update the encryption key after the repository is created. Example projects/[kms_project_id]/locations/[region]/keyRings/[key_region]/cryptoKeys/[key]
*/
@JvmName("dyodlsynxqkkfjug")
public suspend fun kmsKeyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kmsKeyName = mapped
}
/**
* @param value Optional. Repository user labels.
* An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effective_labels` for all of the labels present on the resource.
*/
@JvmName("ammgmtkarddsaspv")
public suspend fun labels(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param values Optional. Repository user labels.
* An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effective_labels` for all of the labels present on the resource.
*/
@JvmName("okwnbmqxtbvbhiuk")
public fun labels(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param value The repository's name.
* - - -
*/
@JvmName("lcnaejbpwbifeqsl")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Optional. The name of the Secret Manager secret version to be used to interpolate variables into the .npmrc file for package installation operations. Must be in the format projects/*/secrets/*/versions/*. The file itself must be in a JSON format.
* */*/*/
*/
@JvmName("whieqbhdxbunknxh")
public suspend fun npmrcEnvironmentVariablesSecretVersion(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.npmrcEnvironmentVariablesSecretVersion = mapped
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("pbnnnxrujjuuwoiw")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value A reference to the region
*/
@JvmName("hdgjvrynahaljgmt")
public suspend fun region(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.region = mapped
}
/**
* @param value The service account to run workflow invocations under.
*/
@JvmName("hcsrxvnixcramrkr")
public suspend fun serviceAccount(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceAccount = mapped
}
/**
* @param value If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results.
* Structure is documented below.
*/
@JvmName("nuxoveamhmdcbnmy")
public suspend fun workspaceCompilationOverrides(`value`: RepositoryWorkspaceCompilationOverridesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workspaceCompilationOverrides = mapped
}
/**
* @param argument If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results.
* Structure is documented below.
*/
@JvmName("hjrsgwlfiktgrhnp")
public suspend fun workspaceCompilationOverrides(argument: suspend RepositoryWorkspaceCompilationOverridesArgsBuilder.() -> Unit) {
val toBeMapped = RepositoryWorkspaceCompilationOverridesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.workspaceCompilationOverrides = mapped
}
internal fun build(): RepositoryArgs = RepositoryArgs(
displayName = displayName,
gitRemoteSettings = gitRemoteSettings,
kmsKeyName = kmsKeyName,
labels = labels,
name = name,
npmrcEnvironmentVariablesSecretVersion = npmrcEnvironmentVariablesSecretVersion,
project = project,
region = region,
serviceAccount = serviceAccount,
workspaceCompilationOverrides = workspaceCompilationOverrides,
)
}