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

com.pulumi.gcp.workflows.kotlin.WorkflowArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.workflows.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.workflows.WorkflowArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Workflow program to be executed by Workflows.
 * To get more information about Workflow, see:
 * * [API documentation](https://cloud.google.com/workflows/docs/reference/rest/v1/projects.locations.workflows)
 * * How-to Guides
 *     * [Managing Workflows](https://cloud.google.com/workflows/docs/creating-updating-workflow)
 * ## Example Usage
 * ### Workflow Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const testAccount = new gcp.serviceaccount.Account("test_account", {
 *     accountId: "my-account",
 *     displayName: "Test Service Account",
 * });
 * const example = new gcp.workflows.Workflow("example", {
 *     name: "workflow",
 *     region: "us-central1",
 *     description: "Magic",
 *     serviceAccount: testAccount.id,
 *     callLogLevel: "LOG_ERRORS_ONLY",
 *     labels: {
 *         env: "test",
 *     },
 *     userEnvVars: {
 *         url: "https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam",
 *     },
 *     sourceContents: `# This is a sample workflow. You can replace it with your source code.
 * # This workflow does the following:
 * # - reads current time and date information from an external API and stores
 * #   the response in currentTime variable
 * # - retrieves a list of Wikipedia articles related to the day of the week
 * #   from currentTime
 * # - returns the list of articles as an output of the workflow
 * # Note: In Terraform you need to escape the  or it will cause errors.
 * - getCurrentTime:
 *     call: http.get
 *     args:
 *         url: \${sys.get_env("url")}
 *     result: currentTime
 * - readWikipedia:
 *     call: http.get
 *     args:
 *         url: https://en.wikipedia.org/w/api.php
 *         query:
 *             action: opensearch
 *             search: \${currentTime.body.dayOfWeek}
 *     result: wikiResult
 * - returnOutput:
 *     return: \${wikiResult.body[1]}
 * `,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * test_account = gcp.serviceaccount.Account("test_account",
 *     account_id="my-account",
 *     display_name="Test Service Account")
 * example = gcp.workflows.Workflow("example",
 *     name="workflow",
 *     region="us-central1",
 *     description="Magic",
 *     service_account=test_account.id,
 *     call_log_level="LOG_ERRORS_ONLY",
 *     labels={
 *         "env": "test",
 *     },
 *     user_env_vars={
 *         "url": "https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam",
 *     },
 *     source_contents="""# This is a sample workflow. You can replace it with your source code.
 * # This workflow does the following:
 * # - reads current time and date information from an external API and stores
 * #   the response in currentTime variable
 * # - retrieves a list of Wikipedia articles related to the day of the week
 * #   from currentTime
 * # - returns the list of articles as an output of the workflow
 * # Note: In Terraform you need to escape the $$ or it will cause errors.
 * - getCurrentTime:
 *     call: http.get
 *     args:
 *         url: ${sys.get_env("url")}
 *     result: currentTime
 * - readWikipedia:
 *     call: http.get
 *     args:
 *         url: https://en.wikipedia.org/w/api.php
 *         query:
 *             action: opensearch
 *             search: ${currentTime.body.dayOfWeek}
 *     result: wikiResult
 * - returnOutput:
 *     return: ${wikiResult.body[1]}
 * """)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var testAccount = new Gcp.ServiceAccount.Account("test_account", new()
 *     {
 *         AccountId = "my-account",
 *         DisplayName = "Test Service Account",
 *     });
 *     var example = new Gcp.Workflows.Workflow("example", new()
 *     {
 *         Name = "workflow",
 *         Region = "us-central1",
 *         Description = "Magic",
 *         ServiceAccount = testAccount.Id,
 *         CallLogLevel = "LOG_ERRORS_ONLY",
 *         Labels =
 *         {
 *             { "env", "test" },
 *         },
 *         UserEnvVars =
 *         {
 *             { "url", "https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam" },
 *         },
 *         SourceContents = @"# This is a sample workflow. You can replace it with your source code.
 * # This workflow does the following:
 * # - reads current time and date information from an external API and stores
 * #   the response in currentTime variable
 * # - retrieves a list of Wikipedia articles related to the day of the week
 * #   from currentTime
 * # - returns the list of articles as an output of the workflow
 * # Note: In Terraform you need to escape the $$ or it will cause errors.
 * - getCurrentTime:
 *     call: http.get
 *     args:
 *         url: ${sys.get_env(""url"")}
 *     result: currentTime
 * - readWikipedia:
 *     call: http.get
 *     args:
 *         url: https://en.wikipedia.org/w/api.php
 *         query:
 *             action: opensearch
 *             search: ${currentTime.body.dayOfWeek}
 *     result: wikiResult
 * - returnOutput:
 *     return: ${wikiResult.body[1]}
 * ",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/serviceaccount"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/workflows"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		testAccount, err := serviceaccount.NewAccount(ctx, "test_account", &serviceaccount.AccountArgs{
 * 			AccountId:   pulumi.String("my-account"),
 * 			DisplayName: pulumi.String("Test Service Account"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = workflows.NewWorkflow(ctx, "example", &workflows.WorkflowArgs{
 * 			Name:           pulumi.String("workflow"),
 * 			Region:         pulumi.String("us-central1"),
 * 			Description:    pulumi.String("Magic"),
 * 			ServiceAccount: testAccount.ID(),
 * 			CallLogLevel:   pulumi.String("LOG_ERRORS_ONLY"),
 * 			Labels: pulumi.StringMap{
 * 				"env": pulumi.String("test"),
 * 			},
 * 			UserEnvVars: pulumi.StringMap{
 * 				"url": pulumi.String("https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam"),
 * 			},
 * 			SourceContents: pulumi.String(`# This is a sample workflow. You can replace it with your source code.
 * # This workflow does the following:
 * # - reads current time and date information from an external API and stores
 * #   the response in currentTime variable
 * # - retrieves a list of Wikipedia articles related to the day of the week
 * #   from currentTime
 * # - returns the list of articles as an output of the workflow
 * # Note: In Terraform you need to escape the $$ or it will cause errors.
 * - getCurrentTime:
 *     call: http.get
 *     args:
 *         url: ${sys.get_env("url")}
 *     result: currentTime
 * - readWikipedia:
 *     call: http.get
 *     args:
 *         url: https://en.wikipedia.org/w/api.php
 *         query:
 *             action: opensearch
 *             search: ${currentTime.body.dayOfWeek}
 *     result: wikiResult
 * - returnOutput:
 *     return: ${wikiResult.body[1]}
 * `),
 * 		})
 * 		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.serviceaccount.Account;
 * import com.pulumi.gcp.serviceaccount.AccountArgs;
 * import com.pulumi.gcp.workflows.Workflow;
 * import com.pulumi.gcp.workflows.WorkflowArgs;
 * 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 testAccount = new Account("testAccount", AccountArgs.builder()
 *             .accountId("my-account")
 *             .displayName("Test Service Account")
 *             .build());
 *         var example = new Workflow("example", WorkflowArgs.builder()
 *             .name("workflow")
 *             .region("us-central1")
 *             .description("Magic")
 *             .serviceAccount(testAccount.id())
 *             .callLogLevel("LOG_ERRORS_ONLY")
 *             .labels(Map.of("env", "test"))
 *             .userEnvVars(Map.of("url", "https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam"))
 *             .sourceContents("""
 * # This is a sample workflow. You can replace it with your source code.
 * # This workflow does the following:
 * # - reads current time and date information from an external API and stores
 * #   the response in currentTime variable
 * # - retrieves a list of Wikipedia articles related to the day of the week
 * #   from currentTime
 * # - returns the list of articles as an output of the workflow
 * # Note: In Terraform you need to escape the $$ or it will cause errors.
 * - getCurrentTime:
 *     call: http.get
 *     args:
 *         url: ${sys.get_env("url")}
 *     result: currentTime
 * - readWikipedia:
 *     call: http.get
 *     args:
 *         url: https://en.wikipedia.org/w/api.php
 *         query:
 *             action: opensearch
 *             search: ${currentTime.body.dayOfWeek}
 *     result: wikiResult
 * - returnOutput:
 *     return: ${wikiResult.body[1]}
 *             """)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   testAccount:
 *     type: gcp:serviceaccount:Account
 *     name: test_account
 *     properties:
 *       accountId: my-account
 *       displayName: Test Service Account
 *   example:
 *     type: gcp:workflows:Workflow
 *     properties:
 *       name: workflow
 *       region: us-central1
 *       description: Magic
 *       serviceAccount: ${testAccount.id}
 *       callLogLevel: LOG_ERRORS_ONLY
 *       labels:
 *         env: test
 *       userEnvVars:
 *         url: https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam
 *       sourceContents: |
 *         # This is a sample workflow. You can replace it with your source code.
 *         # This workflow does the following:
 *         # - reads current time and date information from an external API and stores
 *         #   the response in currentTime variable
 *         # - retrieves a list of Wikipedia articles related to the day of the week
 *         #   from currentTime
 *         # - returns the list of articles as an output of the workflow
 *         # Note: In Terraform you need to escape the $$ or it will cause errors.
 *         - getCurrentTime:
 *             call: http.get
 *             args:
 *                 url: ${sys.get_env("url")}
 *             result: currentTime
 *         - readWikipedia:
 *             call: http.get
 *             args:
 *                 url: https://en.wikipedia.org/w/api.php
 *                 query:
 *                     action: opensearch
 *                     search: ${currentTime.body.dayOfWeek}
 *             result: wikiResult
 *         - returnOutput:
 *             return: ${wikiResult.body[1]}
 * ```
 * 
 * ## Import
 * This resource does not support import.
 * @property callLogLevel Describes the level of platform logging to apply to calls and call responses during
 * executions of this workflow. If both the workflow and the execution specify a logging level,
 * the execution level takes precedence.
 * Possible values are: `CALL_LOG_LEVEL_UNSPECIFIED`, `LOG_ALL_CALLS`, `LOG_ERRORS_ONLY`, `LOG_NONE`.
 * @property cryptoKeyName The KMS key used to encrypt workflow and execution data.
 * Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
 * @property description Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
 * @property labels A set of key/value label pairs to assign to this Workflow.
 * **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 Name of the Workflow.
 * @property namePrefix Creates a unique name beginning with the
 * specified prefix. If this and name are unspecified, a random value is chosen for the name.
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the provider project is used.
 * @property region The region of the workflow.
 * @property serviceAccount Name of the service account associated with the latest workflow version. This service
 * account represents the identity of the workflow and determines what permissions the workflow has.
 * Format: projects/{project}/serviceAccounts/{account} or {account}.
 * Using - as a wildcard for the {project} or not providing one at all will infer the project from the account.
 * The {account} value can be the email address or the unique_id of the service account.
 * If not provided, workflow will use the project's default service account.
 * Modifying this field for an existing workflow results in a new workflow revision.
 * @property sourceContents Workflow code to be executed. The size limit is 128KB.
 * @property userEnvVars User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
 */
public data class WorkflowArgs(
    public val callLogLevel: Output? = null,
    public val cryptoKeyName: Output? = null,
    public val description: Output? = null,
    public val labels: Output>? = null,
    public val name: Output? = null,
    public val namePrefix: Output? = null,
    public val project: Output? = null,
    public val region: Output? = null,
    public val serviceAccount: Output? = null,
    public val sourceContents: Output? = null,
    public val userEnvVars: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.workflows.WorkflowArgs =
        com.pulumi.gcp.workflows.WorkflowArgs.builder()
            .callLogLevel(callLogLevel?.applyValue({ args0 -> args0 }))
            .cryptoKeyName(cryptoKeyName?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .name(name?.applyValue({ args0 -> args0 }))
            .namePrefix(namePrefix?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .region(region?.applyValue({ args0 -> args0 }))
            .serviceAccount(serviceAccount?.applyValue({ args0 -> args0 }))
            .sourceContents(sourceContents?.applyValue({ args0 -> args0 }))
            .userEnvVars(
                userEnvVars?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [WorkflowArgs].
 */
@PulumiTagMarker
public class WorkflowArgsBuilder internal constructor() {
    private var callLogLevel: Output? = null

    private var cryptoKeyName: Output? = null

    private var description: Output? = null

    private var labels: Output>? = null

    private var name: Output? = null

    private var namePrefix: Output? = null

    private var project: Output? = null

    private var region: Output? = null

    private var serviceAccount: Output? = null

    private var sourceContents: Output? = null

    private var userEnvVars: Output>? = null

    /**
     * @param value Describes the level of platform logging to apply to calls and call responses during
     * executions of this workflow. If both the workflow and the execution specify a logging level,
     * the execution level takes precedence.
     * Possible values are: `CALL_LOG_LEVEL_UNSPECIFIED`, `LOG_ALL_CALLS`, `LOG_ERRORS_ONLY`, `LOG_NONE`.
     */
    @JvmName("nggfxtftuqtbmjco")
    public suspend fun callLogLevel(`value`: Output) {
        this.callLogLevel = value
    }

    /**
     * @param value The KMS key used to encrypt workflow and execution data.
     * Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
     */
    @JvmName("mmkswjfpsuarwhql")
    public suspend fun cryptoKeyName(`value`: Output) {
        this.cryptoKeyName = value
    }

    /**
     * @param value Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
     */
    @JvmName("vxhghqwpnwxbmwam")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value A set of key/value label pairs to assign to this Workflow.
     * **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("alcbsknfwdfdduvc")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value Name of the Workflow.
     */
    @JvmName("prmcyjvpwelsjyuy")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Creates a unique name beginning with the
     * specified prefix. If this and name are unspecified, a random value is chosen for the name.
     */
    @JvmName("oddpikqlfilamyhe")
    public suspend fun namePrefix(`value`: Output) {
        this.namePrefix = value
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("obxpxjtsrwovuteo")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value The region of the workflow.
     */
    @JvmName("xclpuscrxkhfhinx")
    public suspend fun region(`value`: Output) {
        this.region = value
    }

    /**
     * @param value Name of the service account associated with the latest workflow version. This service
     * account represents the identity of the workflow and determines what permissions the workflow has.
     * Format: projects/{project}/serviceAccounts/{account} or {account}.
     * Using - as a wildcard for the {project} or not providing one at all will infer the project from the account.
     * The {account} value can be the email address or the unique_id of the service account.
     * If not provided, workflow will use the project's default service account.
     * Modifying this field for an existing workflow results in a new workflow revision.
     */
    @JvmName("eigawqgepqyiwnqp")
    public suspend fun serviceAccount(`value`: Output) {
        this.serviceAccount = value
    }

    /**
     * @param value Workflow code to be executed. The size limit is 128KB.
     */
    @JvmName("nrcishvfavmjhvbm")
    public suspend fun sourceContents(`value`: Output) {
        this.sourceContents = value
    }

    /**
     * @param value User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
     */
    @JvmName("fyiaseloclmxbisv")
    public suspend fun userEnvVars(`value`: Output>) {
        this.userEnvVars = value
    }

    /**
     * @param value Describes the level of platform logging to apply to calls and call responses during
     * executions of this workflow. If both the workflow and the execution specify a logging level,
     * the execution level takes precedence.
     * Possible values are: `CALL_LOG_LEVEL_UNSPECIFIED`, `LOG_ALL_CALLS`, `LOG_ERRORS_ONLY`, `LOG_NONE`.
     */
    @JvmName("entwrohapydpcegb")
    public suspend fun callLogLevel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.callLogLevel = mapped
    }

    /**
     * @param value The KMS key used to encrypt workflow and execution data.
     * Format: projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{cryptoKey}
     */
    @JvmName("oyoguuckdxabgtbx")
    public suspend fun cryptoKeyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cryptoKeyName = mapped
    }

    /**
     * @param value Description of the workflow provided by the user. Must be at most 1000 unicode characters long.
     */
    @JvmName("hqassotuqysbqfir")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value A set of key/value label pairs to assign to this Workflow.
     * **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("vwndkaqeqnikkjca")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values A set of key/value label pairs to assign to this Workflow.
     * **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("inqdicshnofmifqq")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Name of the Workflow.
     */
    @JvmName("frebarcufjhtrtfl")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Creates a unique name beginning with the
     * specified prefix. If this and name are unspecified, a random value is chosen for the name.
     */
    @JvmName("balopllsamabckip")
    public suspend fun namePrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.namePrefix = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     */
    @JvmName("iapndskymrvomlbp")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value The region of the workflow.
     */
    @JvmName("hrvgkpywvefojorq")
    public suspend fun region(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.region = mapped
    }

    /**
     * @param value Name of the service account associated with the latest workflow version. This service
     * account represents the identity of the workflow and determines what permissions the workflow has.
     * Format: projects/{project}/serviceAccounts/{account} or {account}.
     * Using - as a wildcard for the {project} or not providing one at all will infer the project from the account.
     * The {account} value can be the email address or the unique_id of the service account.
     * If not provided, workflow will use the project's default service account.
     * Modifying this field for an existing workflow results in a new workflow revision.
     */
    @JvmName("brwjuiohoolmmeab")
    public suspend fun serviceAccount(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serviceAccount = mapped
    }

    /**
     * @param value Workflow code to be executed. The size limit is 128KB.
     */
    @JvmName("ywrdklwjneuttyid")
    public suspend fun sourceContents(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceContents = mapped
    }

    /**
     * @param value User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
     */
    @JvmName("xgmleqolmjlugbqx")
    public suspend fun userEnvVars(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userEnvVars = mapped
    }

    /**
     * @param values User-defined environment variables associated with this workflow revision. This map has a maximum length of 20. Each string can take up to 4KiB. Keys cannot be empty strings and cannot start with “GOOGLE” or “WORKFLOWS".
     */
    @JvmName("hjddbsgwgscymdgp")
    public fun userEnvVars(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userEnvVars = mapped
    }

    internal fun build(): WorkflowArgs = WorkflowArgs(
        callLogLevel = callLogLevel,
        cryptoKeyName = cryptoKeyName,
        description = description,
        labels = labels,
        name = name,
        namePrefix = namePrefix,
        project = project,
        region = region,
        serviceAccount = serviceAccount,
        sourceContents = sourceContents,
        userEnvVars = userEnvVars,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy