/
getDicomStore.go
105 lines (87 loc) · 5.63 KB
/
getDicomStore.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v1
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Gets the specified DICOM store.
func LookupDicomStore(ctx *pulumi.Context, args *LookupDicomStoreArgs, opts ...pulumi.InvokeOption) (*LookupDicomStoreResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupDicomStoreResult
err := ctx.Invoke("google-native:healthcare/v1:getDicomStore", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupDicomStoreArgs struct {
DatasetId string `pulumi:"datasetId"`
DicomStoreId string `pulumi:"dicomStoreId"`
Location string `pulumi:"location"`
Project *string `pulumi:"project"`
}
type LookupDicomStoreResult struct {
// 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}{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.
Labels map[string]string `pulumi:"labels"`
// Resource name of the DICOM store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`.
Name string `pulumi:"name"`
// Notification destination for new DICOM instances. Supplied by the client.
NotificationConfig NotificationConfigResponse `pulumi:"notificationConfig"`
// Optional. A list of streaming configs used to configure the destination of streaming exports for every DICOM instance insertion in this DICOM store. After a new config is added to `stream_configs`, DICOM instance insertions are streamed to the new destination. When a config is removed from `stream_configs`, the server stops streaming to that destination. Each config must contain a unique destination.
StreamConfigs []GoogleCloudHealthcareV1DicomStreamConfigResponse `pulumi:"streamConfigs"`
}
func LookupDicomStoreOutput(ctx *pulumi.Context, args LookupDicomStoreOutputArgs, opts ...pulumi.InvokeOption) LookupDicomStoreResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupDicomStoreResult, error) {
args := v.(LookupDicomStoreArgs)
r, err := LookupDicomStore(ctx, &args, opts...)
var s LookupDicomStoreResult
if r != nil {
s = *r
}
return s, err
}).(LookupDicomStoreResultOutput)
}
type LookupDicomStoreOutputArgs struct {
DatasetId pulumi.StringInput `pulumi:"datasetId"`
DicomStoreId pulumi.StringInput `pulumi:"dicomStoreId"`
Location pulumi.StringInput `pulumi:"location"`
Project pulumi.StringPtrInput `pulumi:"project"`
}
func (LookupDicomStoreOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupDicomStoreArgs)(nil)).Elem()
}
type LookupDicomStoreResultOutput struct{ *pulumi.OutputState }
func (LookupDicomStoreResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupDicomStoreResult)(nil)).Elem()
}
func (o LookupDicomStoreResultOutput) ToLookupDicomStoreResultOutput() LookupDicomStoreResultOutput {
return o
}
func (o LookupDicomStoreResultOutput) ToLookupDicomStoreResultOutputWithContext(ctx context.Context) LookupDicomStoreResultOutput {
return o
}
// 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}{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.
func (o LookupDicomStoreResultOutput) Labels() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupDicomStoreResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput)
}
// Resource name of the DICOM store, of the form `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`.
func (o LookupDicomStoreResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupDicomStoreResult) string { return v.Name }).(pulumi.StringOutput)
}
// Notification destination for new DICOM instances. Supplied by the client.
func (o LookupDicomStoreResultOutput) NotificationConfig() NotificationConfigResponseOutput {
return o.ApplyT(func(v LookupDicomStoreResult) NotificationConfigResponse { return v.NotificationConfig }).(NotificationConfigResponseOutput)
}
// Optional. A list of streaming configs used to configure the destination of streaming exports for every DICOM instance insertion in this DICOM store. After a new config is added to `stream_configs`, DICOM instance insertions are streamed to the new destination. When a config is removed from `stream_configs`, the server stops streaming to that destination. Each config must contain a unique destination.
func (o LookupDicomStoreResultOutput) StreamConfigs() GoogleCloudHealthcareV1DicomStreamConfigResponseArrayOutput {
return o.ApplyT(func(v LookupDicomStoreResult) []GoogleCloudHealthcareV1DicomStreamConfigResponse {
return v.StreamConfigs
}).(GoogleCloudHealthcareV1DicomStreamConfigResponseArrayOutput)
}
func init() {
pulumi.RegisterOutputType(LookupDicomStoreResultOutput{})
}