/
pulumiTypes.go
553 lines (439 loc) · 25 KB
/
pulumiTypes.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
// 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 v3beta1
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
// The Google Cloud Storage location for the input content.
type GcsSource struct {
// Source data URI. For example, `gs://my_bucket/my_object`.
InputUri string `pulumi:"inputUri"`
}
// GcsSourceInput is an input type that accepts GcsSourceArgs and GcsSourceOutput values.
// You can construct a concrete instance of `GcsSourceInput` via:
//
// GcsSourceArgs{...}
type GcsSourceInput interface {
pulumi.Input
ToGcsSourceOutput() GcsSourceOutput
ToGcsSourceOutputWithContext(context.Context) GcsSourceOutput
}
// The Google Cloud Storage location for the input content.
type GcsSourceArgs struct {
// Source data URI. For example, `gs://my_bucket/my_object`.
InputUri pulumi.StringInput `pulumi:"inputUri"`
}
func (GcsSourceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GcsSource)(nil)).Elem()
}
func (i GcsSourceArgs) ToGcsSourceOutput() GcsSourceOutput {
return i.ToGcsSourceOutputWithContext(context.Background())
}
func (i GcsSourceArgs) ToGcsSourceOutputWithContext(ctx context.Context) GcsSourceOutput {
return pulumi.ToOutputWithContext(ctx, i).(GcsSourceOutput)
}
// The Google Cloud Storage location for the input content.
type GcsSourceOutput struct{ *pulumi.OutputState }
func (GcsSourceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GcsSource)(nil)).Elem()
}
func (o GcsSourceOutput) ToGcsSourceOutput() GcsSourceOutput {
return o
}
func (o GcsSourceOutput) ToGcsSourceOutputWithContext(ctx context.Context) GcsSourceOutput {
return o
}
// Source data URI. For example, `gs://my_bucket/my_object`.
func (o GcsSourceOutput) InputUri() pulumi.StringOutput {
return o.ApplyT(func(v GcsSource) string { return v.InputUri }).(pulumi.StringOutput)
}
// The Google Cloud Storage location for the input content.
type GcsSourceResponse struct {
// Source data URI. For example, `gs://my_bucket/my_object`.
InputUri string `pulumi:"inputUri"`
}
// The Google Cloud Storage location for the input content.
type GcsSourceResponseOutput struct{ *pulumi.OutputState }
func (GcsSourceResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GcsSourceResponse)(nil)).Elem()
}
func (o GcsSourceResponseOutput) ToGcsSourceResponseOutput() GcsSourceResponseOutput {
return o
}
func (o GcsSourceResponseOutput) ToGcsSourceResponseOutputWithContext(ctx context.Context) GcsSourceResponseOutput {
return o
}
// Source data URI. For example, `gs://my_bucket/my_object`.
func (o GcsSourceResponseOutput) InputUri() pulumi.StringOutput {
return o.ApplyT(func(v GcsSourceResponse) string { return v.InputUri }).(pulumi.StringOutput)
}
// Input configuration for glossaries.
type GlossaryInputConfig struct {
// Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (`.tsv`/`.csv`): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (`.tmx`): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
GcsSource GcsSource `pulumi:"gcsSource"`
}
// GlossaryInputConfigInput is an input type that accepts GlossaryInputConfigArgs and GlossaryInputConfigOutput values.
// You can construct a concrete instance of `GlossaryInputConfigInput` via:
//
// GlossaryInputConfigArgs{...}
type GlossaryInputConfigInput interface {
pulumi.Input
ToGlossaryInputConfigOutput() GlossaryInputConfigOutput
ToGlossaryInputConfigOutputWithContext(context.Context) GlossaryInputConfigOutput
}
// Input configuration for glossaries.
type GlossaryInputConfigArgs struct {
// Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (`.tsv`/`.csv`): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (`.tmx`): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
GcsSource GcsSourceInput `pulumi:"gcsSource"`
}
func (GlossaryInputConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GlossaryInputConfig)(nil)).Elem()
}
func (i GlossaryInputConfigArgs) ToGlossaryInputConfigOutput() GlossaryInputConfigOutput {
return i.ToGlossaryInputConfigOutputWithContext(context.Background())
}
func (i GlossaryInputConfigArgs) ToGlossaryInputConfigOutputWithContext(ctx context.Context) GlossaryInputConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(GlossaryInputConfigOutput)
}
// Input configuration for glossaries.
type GlossaryInputConfigOutput struct{ *pulumi.OutputState }
func (GlossaryInputConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GlossaryInputConfig)(nil)).Elem()
}
func (o GlossaryInputConfigOutput) ToGlossaryInputConfigOutput() GlossaryInputConfigOutput {
return o
}
func (o GlossaryInputConfigOutput) ToGlossaryInputConfigOutputWithContext(ctx context.Context) GlossaryInputConfigOutput {
return o
}
// Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (`.tsv`/`.csv`): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (`.tmx`): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
func (o GlossaryInputConfigOutput) GcsSource() GcsSourceOutput {
return o.ApplyT(func(v GlossaryInputConfig) GcsSource { return v.GcsSource }).(GcsSourceOutput)
}
// Input configuration for glossaries.
type GlossaryInputConfigResponse struct {
// Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (`.tsv`/`.csv`): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (`.tmx`): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
GcsSource GcsSourceResponse `pulumi:"gcsSource"`
}
// Input configuration for glossaries.
type GlossaryInputConfigResponseOutput struct{ *pulumi.OutputState }
func (GlossaryInputConfigResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GlossaryInputConfigResponse)(nil)).Elem()
}
func (o GlossaryInputConfigResponseOutput) ToGlossaryInputConfigResponseOutput() GlossaryInputConfigResponseOutput {
return o
}
func (o GlossaryInputConfigResponseOutput) ToGlossaryInputConfigResponseOutputWithContext(ctx context.Context) GlossaryInputConfigResponseOutput {
return o
}
// Google Cloud Storage location of glossary data. File format is determined based on the filename extension. API returns [google.rpc.Code.INVALID_ARGUMENT] for unsupported URI-s and file formats. Wildcards are not allowed. This must be a single file in one of the following formats: For unidirectional glossaries: - TSV/CSV (`.tsv`/`.csv`): 2 column file, tab- or comma-separated. The first column is source text. The second column is target text. The file must not contain headers. That is, the first row is data, not column names. - TMX (`.tmx`): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (`.csv`): Multi-column CSV file defining equivalent glossary terms in multiple languages. See documentation for more information - [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
func (o GlossaryInputConfigResponseOutput) GcsSource() GcsSourceResponseOutput {
return o.ApplyT(func(v GlossaryInputConfigResponse) GcsSourceResponse { return v.GcsSource }).(GcsSourceResponseOutput)
}
// Used with unidirectional glossaries.
type LanguageCodePair struct {
// The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
SourceLanguageCode string `pulumi:"sourceLanguageCode"`
// The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
TargetLanguageCode string `pulumi:"targetLanguageCode"`
}
// LanguageCodePairInput is an input type that accepts LanguageCodePairArgs and LanguageCodePairOutput values.
// You can construct a concrete instance of `LanguageCodePairInput` via:
//
// LanguageCodePairArgs{...}
type LanguageCodePairInput interface {
pulumi.Input
ToLanguageCodePairOutput() LanguageCodePairOutput
ToLanguageCodePairOutputWithContext(context.Context) LanguageCodePairOutput
}
// Used with unidirectional glossaries.
type LanguageCodePairArgs struct {
// The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
SourceLanguageCode pulumi.StringInput `pulumi:"sourceLanguageCode"`
// The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
TargetLanguageCode pulumi.StringInput `pulumi:"targetLanguageCode"`
}
func (LanguageCodePairArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LanguageCodePair)(nil)).Elem()
}
func (i LanguageCodePairArgs) ToLanguageCodePairOutput() LanguageCodePairOutput {
return i.ToLanguageCodePairOutputWithContext(context.Background())
}
func (i LanguageCodePairArgs) ToLanguageCodePairOutputWithContext(ctx context.Context) LanguageCodePairOutput {
return pulumi.ToOutputWithContext(ctx, i).(LanguageCodePairOutput)
}
func (i LanguageCodePairArgs) ToLanguageCodePairPtrOutput() LanguageCodePairPtrOutput {
return i.ToLanguageCodePairPtrOutputWithContext(context.Background())
}
func (i LanguageCodePairArgs) ToLanguageCodePairPtrOutputWithContext(ctx context.Context) LanguageCodePairPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(LanguageCodePairOutput).ToLanguageCodePairPtrOutputWithContext(ctx)
}
// LanguageCodePairPtrInput is an input type that accepts LanguageCodePairArgs, LanguageCodePairPtr and LanguageCodePairPtrOutput values.
// You can construct a concrete instance of `LanguageCodePairPtrInput` via:
//
// LanguageCodePairArgs{...}
//
// or:
//
// nil
type LanguageCodePairPtrInput interface {
pulumi.Input
ToLanguageCodePairPtrOutput() LanguageCodePairPtrOutput
ToLanguageCodePairPtrOutputWithContext(context.Context) LanguageCodePairPtrOutput
}
type languageCodePairPtrType LanguageCodePairArgs
func LanguageCodePairPtr(v *LanguageCodePairArgs) LanguageCodePairPtrInput {
return (*languageCodePairPtrType)(v)
}
func (*languageCodePairPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**LanguageCodePair)(nil)).Elem()
}
func (i *languageCodePairPtrType) ToLanguageCodePairPtrOutput() LanguageCodePairPtrOutput {
return i.ToLanguageCodePairPtrOutputWithContext(context.Background())
}
func (i *languageCodePairPtrType) ToLanguageCodePairPtrOutputWithContext(ctx context.Context) LanguageCodePairPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(LanguageCodePairPtrOutput)
}
// Used with unidirectional glossaries.
type LanguageCodePairOutput struct{ *pulumi.OutputState }
func (LanguageCodePairOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LanguageCodePair)(nil)).Elem()
}
func (o LanguageCodePairOutput) ToLanguageCodePairOutput() LanguageCodePairOutput {
return o
}
func (o LanguageCodePairOutput) ToLanguageCodePairOutputWithContext(ctx context.Context) LanguageCodePairOutput {
return o
}
func (o LanguageCodePairOutput) ToLanguageCodePairPtrOutput() LanguageCodePairPtrOutput {
return o.ToLanguageCodePairPtrOutputWithContext(context.Background())
}
func (o LanguageCodePairOutput) ToLanguageCodePairPtrOutputWithContext(ctx context.Context) LanguageCodePairPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v LanguageCodePair) *LanguageCodePair {
return &v
}).(LanguageCodePairPtrOutput)
}
// The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
func (o LanguageCodePairOutput) SourceLanguageCode() pulumi.StringOutput {
return o.ApplyT(func(v LanguageCodePair) string { return v.SourceLanguageCode }).(pulumi.StringOutput)
}
// The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
func (o LanguageCodePairOutput) TargetLanguageCode() pulumi.StringOutput {
return o.ApplyT(func(v LanguageCodePair) string { return v.TargetLanguageCode }).(pulumi.StringOutput)
}
type LanguageCodePairPtrOutput struct{ *pulumi.OutputState }
func (LanguageCodePairPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**LanguageCodePair)(nil)).Elem()
}
func (o LanguageCodePairPtrOutput) ToLanguageCodePairPtrOutput() LanguageCodePairPtrOutput {
return o
}
func (o LanguageCodePairPtrOutput) ToLanguageCodePairPtrOutputWithContext(ctx context.Context) LanguageCodePairPtrOutput {
return o
}
func (o LanguageCodePairPtrOutput) Elem() LanguageCodePairOutput {
return o.ApplyT(func(v *LanguageCodePair) LanguageCodePair {
if v != nil {
return *v
}
var ret LanguageCodePair
return ret
}).(LanguageCodePairOutput)
}
// The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
func (o LanguageCodePairPtrOutput) SourceLanguageCode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LanguageCodePair) *string {
if v == nil {
return nil
}
return &v.SourceLanguageCode
}).(pulumi.StringPtrOutput)
}
// The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
func (o LanguageCodePairPtrOutput) TargetLanguageCode() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LanguageCodePair) *string {
if v == nil {
return nil
}
return &v.TargetLanguageCode
}).(pulumi.StringPtrOutput)
}
// Used with unidirectional glossaries.
type LanguageCodePairResponse struct {
// The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
SourceLanguageCode string `pulumi:"sourceLanguageCode"`
// The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
TargetLanguageCode string `pulumi:"targetLanguageCode"`
}
// Used with unidirectional glossaries.
type LanguageCodePairResponseOutput struct{ *pulumi.OutputState }
func (LanguageCodePairResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LanguageCodePairResponse)(nil)).Elem()
}
func (o LanguageCodePairResponseOutput) ToLanguageCodePairResponseOutput() LanguageCodePairResponseOutput {
return o
}
func (o LanguageCodePairResponseOutput) ToLanguageCodePairResponseOutputWithContext(ctx context.Context) LanguageCodePairResponseOutput {
return o
}
// The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code.
func (o LanguageCodePairResponseOutput) SourceLanguageCode() pulumi.StringOutput {
return o.ApplyT(func(v LanguageCodePairResponse) string { return v.SourceLanguageCode }).(pulumi.StringOutput)
}
// The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code.
func (o LanguageCodePairResponseOutput) TargetLanguageCode() pulumi.StringOutput {
return o.ApplyT(func(v LanguageCodePairResponse) string { return v.TargetLanguageCode }).(pulumi.StringOutput)
}
// Used with equivalent term set glossaries.
type LanguageCodesSet struct {
// The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
LanguageCodes []string `pulumi:"languageCodes"`
}
// LanguageCodesSetInput is an input type that accepts LanguageCodesSetArgs and LanguageCodesSetOutput values.
// You can construct a concrete instance of `LanguageCodesSetInput` via:
//
// LanguageCodesSetArgs{...}
type LanguageCodesSetInput interface {
pulumi.Input
ToLanguageCodesSetOutput() LanguageCodesSetOutput
ToLanguageCodesSetOutputWithContext(context.Context) LanguageCodesSetOutput
}
// Used with equivalent term set glossaries.
type LanguageCodesSetArgs struct {
// The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
LanguageCodes pulumi.StringArrayInput `pulumi:"languageCodes"`
}
func (LanguageCodesSetArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LanguageCodesSet)(nil)).Elem()
}
func (i LanguageCodesSetArgs) ToLanguageCodesSetOutput() LanguageCodesSetOutput {
return i.ToLanguageCodesSetOutputWithContext(context.Background())
}
func (i LanguageCodesSetArgs) ToLanguageCodesSetOutputWithContext(ctx context.Context) LanguageCodesSetOutput {
return pulumi.ToOutputWithContext(ctx, i).(LanguageCodesSetOutput)
}
func (i LanguageCodesSetArgs) ToLanguageCodesSetPtrOutput() LanguageCodesSetPtrOutput {
return i.ToLanguageCodesSetPtrOutputWithContext(context.Background())
}
func (i LanguageCodesSetArgs) ToLanguageCodesSetPtrOutputWithContext(ctx context.Context) LanguageCodesSetPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(LanguageCodesSetOutput).ToLanguageCodesSetPtrOutputWithContext(ctx)
}
// LanguageCodesSetPtrInput is an input type that accepts LanguageCodesSetArgs, LanguageCodesSetPtr and LanguageCodesSetPtrOutput values.
// You can construct a concrete instance of `LanguageCodesSetPtrInput` via:
//
// LanguageCodesSetArgs{...}
//
// or:
//
// nil
type LanguageCodesSetPtrInput interface {
pulumi.Input
ToLanguageCodesSetPtrOutput() LanguageCodesSetPtrOutput
ToLanguageCodesSetPtrOutputWithContext(context.Context) LanguageCodesSetPtrOutput
}
type languageCodesSetPtrType LanguageCodesSetArgs
func LanguageCodesSetPtr(v *LanguageCodesSetArgs) LanguageCodesSetPtrInput {
return (*languageCodesSetPtrType)(v)
}
func (*languageCodesSetPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**LanguageCodesSet)(nil)).Elem()
}
func (i *languageCodesSetPtrType) ToLanguageCodesSetPtrOutput() LanguageCodesSetPtrOutput {
return i.ToLanguageCodesSetPtrOutputWithContext(context.Background())
}
func (i *languageCodesSetPtrType) ToLanguageCodesSetPtrOutputWithContext(ctx context.Context) LanguageCodesSetPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(LanguageCodesSetPtrOutput)
}
// Used with equivalent term set glossaries.
type LanguageCodesSetOutput struct{ *pulumi.OutputState }
func (LanguageCodesSetOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LanguageCodesSet)(nil)).Elem()
}
func (o LanguageCodesSetOutput) ToLanguageCodesSetOutput() LanguageCodesSetOutput {
return o
}
func (o LanguageCodesSetOutput) ToLanguageCodesSetOutputWithContext(ctx context.Context) LanguageCodesSetOutput {
return o
}
func (o LanguageCodesSetOutput) ToLanguageCodesSetPtrOutput() LanguageCodesSetPtrOutput {
return o.ToLanguageCodesSetPtrOutputWithContext(context.Background())
}
func (o LanguageCodesSetOutput) ToLanguageCodesSetPtrOutputWithContext(ctx context.Context) LanguageCodesSetPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v LanguageCodesSet) *LanguageCodesSet {
return &v
}).(LanguageCodesSetPtrOutput)
}
// The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
func (o LanguageCodesSetOutput) LanguageCodes() pulumi.StringArrayOutput {
return o.ApplyT(func(v LanguageCodesSet) []string { return v.LanguageCodes }).(pulumi.StringArrayOutput)
}
type LanguageCodesSetPtrOutput struct{ *pulumi.OutputState }
func (LanguageCodesSetPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**LanguageCodesSet)(nil)).Elem()
}
func (o LanguageCodesSetPtrOutput) ToLanguageCodesSetPtrOutput() LanguageCodesSetPtrOutput {
return o
}
func (o LanguageCodesSetPtrOutput) ToLanguageCodesSetPtrOutputWithContext(ctx context.Context) LanguageCodesSetPtrOutput {
return o
}
func (o LanguageCodesSetPtrOutput) Elem() LanguageCodesSetOutput {
return o.ApplyT(func(v *LanguageCodesSet) LanguageCodesSet {
if v != nil {
return *v
}
var ret LanguageCodesSet
return ret
}).(LanguageCodesSetOutput)
}
// The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
func (o LanguageCodesSetPtrOutput) LanguageCodes() pulumi.StringArrayOutput {
return o.ApplyT(func(v *LanguageCodesSet) []string {
if v == nil {
return nil
}
return v.LanguageCodes
}).(pulumi.StringArrayOutput)
}
// Used with equivalent term set glossaries.
type LanguageCodesSetResponse struct {
// The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
LanguageCodes []string `pulumi:"languageCodes"`
}
// Used with equivalent term set glossaries.
type LanguageCodesSetResponseOutput struct{ *pulumi.OutputState }
func (LanguageCodesSetResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LanguageCodesSetResponse)(nil)).Elem()
}
func (o LanguageCodesSetResponseOutput) ToLanguageCodesSetResponseOutput() LanguageCodesSetResponseOutput {
return o
}
func (o LanguageCodesSetResponseOutput) ToLanguageCodesSetResponseOutputWithContext(ctx context.Context) LanguageCodesSetResponseOutput {
return o
}
// The BCP-47 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for GlossaryTerm.language_code.
func (o LanguageCodesSetResponseOutput) LanguageCodes() pulumi.StringArrayOutput {
return o.ApplyT(func(v LanguageCodesSetResponse) []string { return v.LanguageCodes }).(pulumi.StringArrayOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GcsSourceInput)(nil)).Elem(), GcsSourceArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GlossaryInputConfigInput)(nil)).Elem(), GlossaryInputConfigArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*LanguageCodePairInput)(nil)).Elem(), LanguageCodePairArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*LanguageCodePairPtrInput)(nil)).Elem(), LanguageCodePairArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*LanguageCodesSetInput)(nil)).Elem(), LanguageCodesSetArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*LanguageCodesSetPtrInput)(nil)).Elem(), LanguageCodesSetArgs{})
pulumi.RegisterOutputType(GcsSourceOutput{})
pulumi.RegisterOutputType(GcsSourceResponseOutput{})
pulumi.RegisterOutputType(GlossaryInputConfigOutput{})
pulumi.RegisterOutputType(GlossaryInputConfigResponseOutput{})
pulumi.RegisterOutputType(LanguageCodePairOutput{})
pulumi.RegisterOutputType(LanguageCodePairPtrOutput{})
pulumi.RegisterOutputType(LanguageCodePairResponseOutput{})
pulumi.RegisterOutputType(LanguageCodesSetOutput{})
pulumi.RegisterOutputType(LanguageCodesSetPtrOutput{})
pulumi.RegisterOutputType(LanguageCodesSetResponseOutput{})
}