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

com.pulumi.gcp.healthcare.kotlin.DicomStoreArgs.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.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.healthcare.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.healthcare.DicomStoreArgs.builder
import com.pulumi.gcp.healthcare.kotlin.inputs.DicomStoreNotificationConfigArgs
import com.pulumi.gcp.healthcare.kotlin.inputs.DicomStoreNotificationConfigArgsBuilder
import com.pulumi.gcp.healthcare.kotlin.inputs.DicomStoreStreamConfigArgs
import com.pulumi.gcp.healthcare.kotlin.inputs.DicomStoreStreamConfigArgsBuilder
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.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A DicomStore is a datastore inside a Healthcare dataset that conforms to the DICOM
 * (https://www.dicomstandard.org/about/) standard for Healthcare information exchange
 * To get more information about DicomStore, see:
 * * [API documentation](https://cloud.google.com/healthcare/docs/reference/rest/v1/projects.locations.datasets.dicomStores)
 * * How-to Guides
 *     * [Creating a DICOM store](https://cloud.google.com/healthcare/docs/how-tos/dicom)
 * ## Example Usage
 * ### Healthcare Dicom Store Basic
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const topic = new gcp.pubsub.Topic("topic", {name: "dicom-notifications"});
 * const dataset = new gcp.healthcare.Dataset("dataset", {
 *     name: "example-dataset",
 *     location: "us-central1",
 * });
 * const _default = new gcp.healthcare.DicomStore("default", {
 *     name: "example-dicom-store",
 *     dataset: dataset.id,
 *     notificationConfig: {
 *         pubsubTopic: topic.id,
 *     },
 *     labels: {
 *         label1: "labelvalue1",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * topic = gcp.pubsub.Topic("topic", name="dicom-notifications")
 * dataset = gcp.healthcare.Dataset("dataset",
 *     name="example-dataset",
 *     location="us-central1")
 * default = gcp.healthcare.DicomStore("default",
 *     name="example-dicom-store",
 *     dataset=dataset.id,
 *     notification_config=gcp.healthcare.DicomStoreNotificationConfigArgs(
 *         pubsub_topic=topic.id,
 *     ),
 *     labels={
 *         "label1": "labelvalue1",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var topic = new Gcp.PubSub.Topic("topic", new()
 *     {
 *         Name = "dicom-notifications",
 *     });
 *     var dataset = new Gcp.Healthcare.Dataset("dataset", new()
 *     {
 *         Name = "example-dataset",
 *         Location = "us-central1",
 *     });
 *     var @default = new Gcp.Healthcare.DicomStore("default", new()
 *     {
 *         Name = "example-dicom-store",
 *         Dataset = dataset.Id,
 *         NotificationConfig = new Gcp.Healthcare.Inputs.DicomStoreNotificationConfigArgs
 *         {
 *             PubsubTopic = topic.Id,
 *         },
 *         Labels =
 *         {
 *             { "label1", "labelvalue1" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/healthcare"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/pubsub"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		topic, err := pubsub.NewTopic(ctx, "topic", &pubsub.TopicArgs{
 * 			Name: pulumi.String("dicom-notifications"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		dataset, err := healthcare.NewDataset(ctx, "dataset", &healthcare.DatasetArgs{
 * 			Name:     pulumi.String("example-dataset"),
 * 			Location: pulumi.String("us-central1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = healthcare.NewDicomStore(ctx, "default", &healthcare.DicomStoreArgs{
 * 			Name:    pulumi.String("example-dicom-store"),
 * 			Dataset: dataset.ID(),
 * 			NotificationConfig: &healthcare.DicomStoreNotificationConfigArgs{
 * 				PubsubTopic: topic.ID(),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"label1": pulumi.String("labelvalue1"),
 * 			},
 * 		})
 * 		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.pubsub.Topic;
 * import com.pulumi.gcp.pubsub.TopicArgs;
 * import com.pulumi.gcp.healthcare.Dataset;
 * import com.pulumi.gcp.healthcare.DatasetArgs;
 * import com.pulumi.gcp.healthcare.DicomStore;
 * import com.pulumi.gcp.healthcare.DicomStoreArgs;
 * import com.pulumi.gcp.healthcare.inputs.DicomStoreNotificationConfigArgs;
 * 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 topic = new Topic("topic", TopicArgs.builder()
 *             .name("dicom-notifications")
 *             .build());
 *         var dataset = new Dataset("dataset", DatasetArgs.builder()
 *             .name("example-dataset")
 *             .location("us-central1")
 *             .build());
 *         var default_ = new DicomStore("default", DicomStoreArgs.builder()
 *             .name("example-dicom-store")
 *             .dataset(dataset.id())
 *             .notificationConfig(DicomStoreNotificationConfigArgs.builder()
 *                 .pubsubTopic(topic.id())
 *                 .build())
 *             .labels(Map.of("label1", "labelvalue1"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   default:
 *     type: gcp:healthcare:DicomStore
 *     properties:
 *       name: example-dicom-store
 *       dataset: ${dataset.id}
 *       notificationConfig:
 *         pubsubTopic: ${topic.id}
 *       labels:
 *         label1: labelvalue1
 *   topic:
 *     type: gcp:pubsub:Topic
 *     properties:
 *       name: dicom-notifications
 *   dataset:
 *     type: gcp:healthcare:Dataset
 *     properties:
 *       name: example-dataset
 *       location: us-central1
 * ```
 * 
 * ### Healthcare Dicom Store Bq Stream
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as gcp from "@pulumi/gcp";
 * const topic = new gcp.pubsub.Topic("topic", {name: "dicom-notifications"});
 * const dataset = new gcp.healthcare.Dataset("dataset", {
 *     name: "example-dataset",
 *     location: "us-central1",
 * });
 * const bqDataset = new gcp.bigquery.Dataset("bq_dataset", {
 *     datasetId: "dicom_bq_ds",
 *     friendlyName: "test",
 *     description: "This is a test description",
 *     location: "US",
 *     deleteContentsOnDestroy: true,
 * });
 * const bqTable = new gcp.bigquery.Table("bq_table", {
 *     deletionProtection: false,
 *     datasetId: bqDataset.datasetId,
 *     tableId: "dicom_bq_tb",
 * });
 * const _default = new gcp.healthcare.DicomStore("default", {
 *     name: "example-dicom-store",
 *     dataset: dataset.id,
 *     notificationConfig: {
 *         pubsubTopic: topic.id,
 *     },
 *     labels: {
 *         label1: "labelvalue1",
 *     },
 *     streamConfigs: [{
 *         bigqueryDestination: {
 *             tableUri: pulumi.interpolate`bq://${bqDataset.project}.${bqDataset.datasetId}.${bqTable.tableId}`,
 *         },
 *     }],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_gcp as gcp
 * topic = gcp.pubsub.Topic("topic", name="dicom-notifications")
 * dataset = gcp.healthcare.Dataset("dataset",
 *     name="example-dataset",
 *     location="us-central1")
 * bq_dataset = gcp.bigquery.Dataset("bq_dataset",
 *     dataset_id="dicom_bq_ds",
 *     friendly_name="test",
 *     description="This is a test description",
 *     location="US",
 *     delete_contents_on_destroy=True)
 * bq_table = gcp.bigquery.Table("bq_table",
 *     deletion_protection=False,
 *     dataset_id=bq_dataset.dataset_id,
 *     table_id="dicom_bq_tb")
 * default = gcp.healthcare.DicomStore("default",
 *     name="example-dicom-store",
 *     dataset=dataset.id,
 *     notification_config=gcp.healthcare.DicomStoreNotificationConfigArgs(
 *         pubsub_topic=topic.id,
 *     ),
 *     labels={
 *         "label1": "labelvalue1",
 *     },
 *     stream_configs=[gcp.healthcare.DicomStoreStreamConfigArgs(
 *         bigquery_destination=gcp.healthcare.DicomStoreStreamConfigBigqueryDestinationArgs(
 *             table_uri=pulumi.Output.all(bq_dataset.project, bq_dataset.dataset_id, bq_table.table_id).apply(lambda project, dataset_id, table_id: f"bq://{project}.{dataset_id}.{table_id}"),
 *         ),
 *     )])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Gcp = Pulumi.Gcp;
 * return await Deployment.RunAsync(() =>
 * {
 *     var topic = new Gcp.PubSub.Topic("topic", new()
 *     {
 *         Name = "dicom-notifications",
 *     });
 *     var dataset = new Gcp.Healthcare.Dataset("dataset", new()
 *     {
 *         Name = "example-dataset",
 *         Location = "us-central1",
 *     });
 *     var bqDataset = new Gcp.BigQuery.Dataset("bq_dataset", new()
 *     {
 *         DatasetId = "dicom_bq_ds",
 *         FriendlyName = "test",
 *         Description = "This is a test description",
 *         Location = "US",
 *         DeleteContentsOnDestroy = true,
 *     });
 *     var bqTable = new Gcp.BigQuery.Table("bq_table", new()
 *     {
 *         DeletionProtection = false,
 *         DatasetId = bqDataset.DatasetId,
 *         TableId = "dicom_bq_tb",
 *     });
 *     var @default = new Gcp.Healthcare.DicomStore("default", new()
 *     {
 *         Name = "example-dicom-store",
 *         Dataset = dataset.Id,
 *         NotificationConfig = new Gcp.Healthcare.Inputs.DicomStoreNotificationConfigArgs
 *         {
 *             PubsubTopic = topic.Id,
 *         },
 *         Labels =
 *         {
 *             { "label1", "labelvalue1" },
 *         },
 *         StreamConfigs = new[]
 *         {
 *             new Gcp.Healthcare.Inputs.DicomStoreStreamConfigArgs
 *             {
 *                 BigqueryDestination = new Gcp.Healthcare.Inputs.DicomStoreStreamConfigBigqueryDestinationArgs
 *                 {
 *                     TableUri = Output.Tuple(bqDataset.Project, bqDataset.DatasetId, bqTable.TableId).Apply(values =>
 *                     {
 *                         var project = values.Item1;
 *                         var datasetId = values.Item2;
 *                         var tableId = values.Item3;
 *                         return $"bq://{project}.{datasetId}.{tableId}";
 *                     }),
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"fmt"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/bigquery"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/healthcare"
 * 	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/pubsub"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		topic, err := pubsub.NewTopic(ctx, "topic", &pubsub.TopicArgs{
 * 			Name: pulumi.String("dicom-notifications"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		dataset, err := healthcare.NewDataset(ctx, "dataset", &healthcare.DatasetArgs{
 * 			Name:     pulumi.String("example-dataset"),
 * 			Location: pulumi.String("us-central1"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		bqDataset, err := bigquery.NewDataset(ctx, "bq_dataset", &bigquery.DatasetArgs{
 * 			DatasetId:               pulumi.String("dicom_bq_ds"),
 * 			FriendlyName:            pulumi.String("test"),
 * 			Description:             pulumi.String("This is a test description"),
 * 			Location:                pulumi.String("US"),
 * 			DeleteContentsOnDestroy: pulumi.Bool(true),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		bqTable, err := bigquery.NewTable(ctx, "bq_table", &bigquery.TableArgs{
 * 			DeletionProtection: pulumi.Bool(false),
 * 			DatasetId:          bqDataset.DatasetId,
 * 			TableId:            pulumi.String("dicom_bq_tb"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = healthcare.NewDicomStore(ctx, "default", &healthcare.DicomStoreArgs{
 * 			Name:    pulumi.String("example-dicom-store"),
 * 			Dataset: dataset.ID(),
 * 			NotificationConfig: &healthcare.DicomStoreNotificationConfigArgs{
 * 				PubsubTopic: topic.ID(),
 * 			},
 * 			Labels: pulumi.StringMap{
 * 				"label1": pulumi.String("labelvalue1"),
 * 			},
 * 			StreamConfigs: healthcare.DicomStoreStreamConfigArray{
 * 				&healthcare.DicomStoreStreamConfigArgs{
 * 					BigqueryDestination: &healthcare.DicomStoreStreamConfigBigqueryDestinationArgs{
 * 						TableUri: pulumi.All(bqDataset.Project, bqDataset.DatasetId, bqTable.TableId).ApplyT(func(_args []interface{}) (string, error) {
 * 							project := _args[0].(string)
 * 							datasetId := _args[1].(string)
 * 							tableId := _args[2].(string)
 * 							return fmt.Sprintf("bq://%v.%v.%v", project, datasetId, tableId), nil
 * 						}).(pulumi.StringOutput),
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.pubsub.Topic;
 * import com.pulumi.gcp.pubsub.TopicArgs;
 * import com.pulumi.gcp.healthcare.Dataset;
 * import com.pulumi.gcp.healthcare.DatasetArgs;
 * import com.pulumi.gcp.bigquery.Dataset;
 * import com.pulumi.gcp.bigquery.DatasetArgs;
 * import com.pulumi.gcp.bigquery.Table;
 * import com.pulumi.gcp.bigquery.TableArgs;
 * import com.pulumi.gcp.healthcare.DicomStore;
 * import com.pulumi.gcp.healthcare.DicomStoreArgs;
 * import com.pulumi.gcp.healthcare.inputs.DicomStoreNotificationConfigArgs;
 * import com.pulumi.gcp.healthcare.inputs.DicomStoreStreamConfigArgs;
 * import com.pulumi.gcp.healthcare.inputs.DicomStoreStreamConfigBigqueryDestinationArgs;
 * 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 topic = new Topic("topic", TopicArgs.builder()
 *             .name("dicom-notifications")
 *             .build());
 *         var dataset = new Dataset("dataset", DatasetArgs.builder()
 *             .name("example-dataset")
 *             .location("us-central1")
 *             .build());
 *         var bqDataset = new Dataset("bqDataset", DatasetArgs.builder()
 *             .datasetId("dicom_bq_ds")
 *             .friendlyName("test")
 *             .description("This is a test description")
 *             .location("US")
 *             .deleteContentsOnDestroy(true)
 *             .build());
 *         var bqTable = new Table("bqTable", TableArgs.builder()
 *             .deletionProtection(false)
 *             .datasetId(bqDataset.datasetId())
 *             .tableId("dicom_bq_tb")
 *             .build());
 *         var default_ = new DicomStore("default", DicomStoreArgs.builder()
 *             .name("example-dicom-store")
 *             .dataset(dataset.id())
 *             .notificationConfig(DicomStoreNotificationConfigArgs.builder()
 *                 .pubsubTopic(topic.id())
 *                 .build())
 *             .labels(Map.of("label1", "labelvalue1"))
 *             .streamConfigs(DicomStoreStreamConfigArgs.builder()
 *                 .bigqueryDestination(DicomStoreStreamConfigBigqueryDestinationArgs.builder()
 *                     .tableUri(Output.tuple(bqDataset.project(), bqDataset.datasetId(), bqTable.tableId()).applyValue(values -> {
 *                         var project = values.t1;
 *                         var datasetId = values.t2;
 *                         var tableId = values.t3;
 *                         return String.format("bq://%s.%s.%s", project,datasetId,tableId);
 *                     }))
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   default:
 *     type: gcp:healthcare:DicomStore
 *     properties:
 *       name: example-dicom-store
 *       dataset: ${dataset.id}
 *       notificationConfig:
 *         pubsubTopic: ${topic.id}
 *       labels:
 *         label1: labelvalue1
 *       streamConfigs:
 *         - bigqueryDestination:
 *             tableUri: bq://${bqDataset.project}.${bqDataset.datasetId}.${bqTable.tableId}
 *   topic:
 *     type: gcp:pubsub:Topic
 *     properties:
 *       name: dicom-notifications
 *   dataset:
 *     type: gcp:healthcare:Dataset
 *     properties:
 *       name: example-dataset
 *       location: us-central1
 *   bqDataset:
 *     type: gcp:bigquery:Dataset
 *     name: bq_dataset
 *     properties:
 *       datasetId: dicom_bq_ds
 *       friendlyName: test
 *       description: This is a test description
 *       location: US
 *       deleteContentsOnDestroy: true
 *   bqTable:
 *     type: gcp:bigquery:Table
 *     name: bq_table
 *     properties:
 *       deletionProtection: false
 *       datasetId: ${bqDataset.datasetId}
 *       tableId: dicom_bq_tb
 * ```
 * 
 * ## Import
 * DicomStore can be imported using any of these accepted formats:
 * * `{{dataset}}/dicomStores/{{name}}`
 * * `{{dataset}}/{{name}}`
 * When using the `pulumi import` command, DicomStore can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:healthcare/dicomStore:DicomStore default {{dataset}}/dicomStores/{{name}}
 * ```
 * ```sh
 * $ pulumi import gcp:healthcare/dicomStore:DicomStore default {{dataset}}/{{name}}
 * ```
 * @property dataset Identifies the dataset addressed by this request. Must be in the format
 * 'projects/{project}/locations/{location}/datasets/{dataset}'
 * - - -
 * @property labels User-supplied key-value pairs used to organize DICOM stores.
 * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
 * conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
 * Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
 * bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
 * No more than 64 labels can be associated with a given store.
 * 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 resource name for the DicomStore.
 * ** Changing this property may recreate the Dicom store (removing all data) **
 * @property notificationConfig A nested object resource
 * Structure is documented below.
 * @property streamConfigs To enable streaming to BigQuery, configure the streamConfigs object in your DICOM store.
 * streamConfigs is an array, so you can specify multiple BigQuery destinations. You can stream metadata from a single DICOM store to up to five BigQuery tables in a BigQuery dataset.
 * Structure is documented below.
 */
public data class DicomStoreArgs(
    public val dataset: Output? = null,
    public val labels: Output>? = null,
    public val name: Output? = null,
    public val notificationConfig: Output? = null,
    public val streamConfigs: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.healthcare.DicomStoreArgs =
        com.pulumi.gcp.healthcare.DicomStoreArgs.builder()
            .dataset(dataset?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .name(name?.applyValue({ args0 -> args0 }))
            .notificationConfig(
                notificationConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .streamConfigs(
                streamConfigs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DicomStoreArgs].
 */
@PulumiTagMarker
public class DicomStoreArgsBuilder internal constructor() {
    private var dataset: Output? = null

    private var labels: Output>? = null

    private var name: Output? = null

    private var notificationConfig: Output? = null

    private var streamConfigs: Output>? = null

    /**
     * @param value Identifies the dataset addressed by this request. Must be in the format
     * 'projects/{project}/locations/{location}/datasets/{dataset}'
     * - - -
     */
    @JvmName("aujvcrgklaugabpu")
    public suspend fun dataset(`value`: Output) {
        this.dataset = value
    }

    /**
     * @param value User-supplied key-value pairs used to organize DICOM stores.
     * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
     * conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
     * Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
     * bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
     * No more than 64 labels can be associated with a given store.
     * 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("jdesbvbpwerptikm")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value The resource name for the DicomStore.
     * ** Changing this property may recreate the Dicom store (removing all data) **
     */
    @JvmName("dmbtpjxbjyxqdfal")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A nested object resource
     * Structure is documented below.
     */
    @JvmName("lqouwevabjjwxfjp")
    public suspend fun notificationConfig(`value`: Output) {
        this.notificationConfig = value
    }

    /**
     * @param value To enable streaming to BigQuery, configure the streamConfigs object in your DICOM store.
     * streamConfigs is an array, so you can specify multiple BigQuery destinations. You can stream metadata from a single DICOM store to up to five BigQuery tables in a BigQuery dataset.
     * Structure is documented below.
     */
    @JvmName("fjmmmkkvmbxnlses")
    public suspend fun streamConfigs(`value`: Output>) {
        this.streamConfigs = value
    }

    @JvmName("bjmvumfabynmgtng")
    public suspend fun streamConfigs(vararg values: Output) {
        this.streamConfigs = Output.all(values.asList())
    }

    /**
     * @param values To enable streaming to BigQuery, configure the streamConfigs object in your DICOM store.
     * streamConfigs is an array, so you can specify multiple BigQuery destinations. You can stream metadata from a single DICOM store to up to five BigQuery tables in a BigQuery dataset.
     * Structure is documented below.
     */
    @JvmName("wxwmxfexxaoseicv")
    public suspend fun streamConfigs(values: List>) {
        this.streamConfigs = Output.all(values)
    }

    /**
     * @param value Identifies the dataset addressed by this request. Must be in the format
     * 'projects/{project}/locations/{location}/datasets/{dataset}'
     * - - -
     */
    @JvmName("utpxrykcuytdchrn")
    public suspend fun dataset(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dataset = mapped
    }

    /**
     * @param value User-supplied key-value pairs used to organize DICOM stores.
     * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
     * conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
     * Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
     * bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
     * No more than 64 labels can be associated with a given store.
     * 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("pduckdcanyoxdmxr")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values User-supplied key-value pairs used to organize DICOM stores.
     * Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must
     * conform to the following PCRE regular expression: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}
     * Label values are optional, must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128
     * bytes, and must conform to the following PCRE regular expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63}
     * No more than 64 labels can be associated with a given store.
     * 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("vggetlnnlkdeclpe")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value The resource name for the DicomStore.
     * ** Changing this property may recreate the Dicom store (removing all data) **
     */
    @JvmName("tynvnfvhsgmuijnl")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A nested object resource
     * Structure is documented below.
     */
    @JvmName("dosygdwaoevxkjnp")
    public suspend fun notificationConfig(`value`: DicomStoreNotificationConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.notificationConfig = mapped
    }

    /**
     * @param argument A nested object resource
     * Structure is documented below.
     */
    @JvmName("cngkkfjdkpvpjqpt")
    public suspend fun notificationConfig(argument: suspend DicomStoreNotificationConfigArgsBuilder.() -> Unit) {
        val toBeMapped = DicomStoreNotificationConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.notificationConfig = mapped
    }

    /**
     * @param value To enable streaming to BigQuery, configure the streamConfigs object in your DICOM store.
     * streamConfigs is an array, so you can specify multiple BigQuery destinations. You can stream metadata from a single DICOM store to up to five BigQuery tables in a BigQuery dataset.
     * Structure is documented below.
     */
    @JvmName("vgohpjjccthhmwvf")
    public suspend fun streamConfigs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.streamConfigs = mapped
    }

    /**
     * @param argument To enable streaming to BigQuery, configure the streamConfigs object in your DICOM store.
     * streamConfigs is an array, so you can specify multiple BigQuery destinations. You can stream metadata from a single DICOM store to up to five BigQuery tables in a BigQuery dataset.
     * Structure is documented below.
     */
    @JvmName("vujrisuervkubkqv")
    public suspend fun streamConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DicomStoreStreamConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.streamConfigs = mapped
    }

    /**
     * @param argument To enable streaming to BigQuery, configure the streamConfigs object in your DICOM store.
     * streamConfigs is an array, so you can specify multiple BigQuery destinations. You can stream metadata from a single DICOM store to up to five BigQuery tables in a BigQuery dataset.
     * Structure is documented below.
     */
    @JvmName("vmpgljohgbfndpda")
    public suspend fun streamConfigs(vararg argument: suspend DicomStoreStreamConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DicomStoreStreamConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.streamConfigs = mapped
    }

    /**
     * @param argument To enable streaming to BigQuery, configure the streamConfigs object in your DICOM store.
     * streamConfigs is an array, so you can specify multiple BigQuery destinations. You can stream metadata from a single DICOM store to up to five BigQuery tables in a BigQuery dataset.
     * Structure is documented below.
     */
    @JvmName("fgpoxadanqcwmkvk")
    public suspend fun streamConfigs(argument: suspend DicomStoreStreamConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DicomStoreStreamConfigArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.streamConfigs = mapped
    }

    /**
     * @param values To enable streaming to BigQuery, configure the streamConfigs object in your DICOM store.
     * streamConfigs is an array, so you can specify multiple BigQuery destinations. You can stream metadata from a single DICOM store to up to five BigQuery tables in a BigQuery dataset.
     * Structure is documented below.
     */
    @JvmName("kjlewcjvwvprwomv")
    public suspend fun streamConfigs(vararg values: DicomStoreStreamConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.streamConfigs = mapped
    }

    internal fun build(): DicomStoreArgs = DicomStoreArgs(
        dataset = dataset,
        labels = labels,
        name = name,
        notificationConfig = notificationConfig,
        streamConfigs = streamConfigs,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy