/
pulumiEnums.go
2309 lines (1804 loc) · 109 KB
/
pulumiEnums.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
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// 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 v2beta
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
)
type ControlSearchSolutionUseCaseItem string
const (
// The value when it's unspecified. In this case, server behavior defaults to SEARCH_SOLUTION_USE_CASE_SEARCH.
ControlSearchSolutionUseCaseItemSearchSolutionUseCaseUnspecified = ControlSearchSolutionUseCaseItem("SEARCH_SOLUTION_USE_CASE_UNSPECIFIED")
// Search use case. Expects the traffic has a non-empty query.
ControlSearchSolutionUseCaseItemSearchSolutionUseCaseSearch = ControlSearchSolutionUseCaseItem("SEARCH_SOLUTION_USE_CASE_SEARCH")
// Browse use case. Expects the traffic has an empty query.
ControlSearchSolutionUseCaseItemSearchSolutionUseCaseBrowse = ControlSearchSolutionUseCaseItem("SEARCH_SOLUTION_USE_CASE_BROWSE")
)
func (ControlSearchSolutionUseCaseItem) ElementType() reflect.Type {
return reflect.TypeOf((*ControlSearchSolutionUseCaseItem)(nil)).Elem()
}
func (e ControlSearchSolutionUseCaseItem) ToControlSearchSolutionUseCaseItemOutput() ControlSearchSolutionUseCaseItemOutput {
return pulumi.ToOutput(e).(ControlSearchSolutionUseCaseItemOutput)
}
func (e ControlSearchSolutionUseCaseItem) ToControlSearchSolutionUseCaseItemOutputWithContext(ctx context.Context) ControlSearchSolutionUseCaseItemOutput {
return pulumi.ToOutputWithContext(ctx, e).(ControlSearchSolutionUseCaseItemOutput)
}
func (e ControlSearchSolutionUseCaseItem) ToControlSearchSolutionUseCaseItemPtrOutput() ControlSearchSolutionUseCaseItemPtrOutput {
return e.ToControlSearchSolutionUseCaseItemPtrOutputWithContext(context.Background())
}
func (e ControlSearchSolutionUseCaseItem) ToControlSearchSolutionUseCaseItemPtrOutputWithContext(ctx context.Context) ControlSearchSolutionUseCaseItemPtrOutput {
return ControlSearchSolutionUseCaseItem(e).ToControlSearchSolutionUseCaseItemOutputWithContext(ctx).ToControlSearchSolutionUseCaseItemPtrOutputWithContext(ctx)
}
func (e ControlSearchSolutionUseCaseItem) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e ControlSearchSolutionUseCaseItem) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e ControlSearchSolutionUseCaseItem) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e ControlSearchSolutionUseCaseItem) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type ControlSearchSolutionUseCaseItemOutput struct{ *pulumi.OutputState }
func (ControlSearchSolutionUseCaseItemOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ControlSearchSolutionUseCaseItem)(nil)).Elem()
}
func (o ControlSearchSolutionUseCaseItemOutput) ToControlSearchSolutionUseCaseItemOutput() ControlSearchSolutionUseCaseItemOutput {
return o
}
func (o ControlSearchSolutionUseCaseItemOutput) ToControlSearchSolutionUseCaseItemOutputWithContext(ctx context.Context) ControlSearchSolutionUseCaseItemOutput {
return o
}
func (o ControlSearchSolutionUseCaseItemOutput) ToControlSearchSolutionUseCaseItemPtrOutput() ControlSearchSolutionUseCaseItemPtrOutput {
return o.ToControlSearchSolutionUseCaseItemPtrOutputWithContext(context.Background())
}
func (o ControlSearchSolutionUseCaseItemOutput) ToControlSearchSolutionUseCaseItemPtrOutputWithContext(ctx context.Context) ControlSearchSolutionUseCaseItemPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ControlSearchSolutionUseCaseItem) *ControlSearchSolutionUseCaseItem {
return &v
}).(ControlSearchSolutionUseCaseItemPtrOutput)
}
func (o ControlSearchSolutionUseCaseItemOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o ControlSearchSolutionUseCaseItemOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e ControlSearchSolutionUseCaseItem) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o ControlSearchSolutionUseCaseItemOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o ControlSearchSolutionUseCaseItemOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e ControlSearchSolutionUseCaseItem) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type ControlSearchSolutionUseCaseItemPtrOutput struct{ *pulumi.OutputState }
func (ControlSearchSolutionUseCaseItemPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ControlSearchSolutionUseCaseItem)(nil)).Elem()
}
func (o ControlSearchSolutionUseCaseItemPtrOutput) ToControlSearchSolutionUseCaseItemPtrOutput() ControlSearchSolutionUseCaseItemPtrOutput {
return o
}
func (o ControlSearchSolutionUseCaseItemPtrOutput) ToControlSearchSolutionUseCaseItemPtrOutputWithContext(ctx context.Context) ControlSearchSolutionUseCaseItemPtrOutput {
return o
}
func (o ControlSearchSolutionUseCaseItemPtrOutput) Elem() ControlSearchSolutionUseCaseItemOutput {
return o.ApplyT(func(v *ControlSearchSolutionUseCaseItem) ControlSearchSolutionUseCaseItem {
if v != nil {
return *v
}
var ret ControlSearchSolutionUseCaseItem
return ret
}).(ControlSearchSolutionUseCaseItemOutput)
}
func (o ControlSearchSolutionUseCaseItemPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o ControlSearchSolutionUseCaseItemPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *ControlSearchSolutionUseCaseItem) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// ControlSearchSolutionUseCaseItemInput is an input type that accepts ControlSearchSolutionUseCaseItemArgs and ControlSearchSolutionUseCaseItemOutput values.
// You can construct a concrete instance of `ControlSearchSolutionUseCaseItemInput` via:
//
// ControlSearchSolutionUseCaseItemArgs{...}
type ControlSearchSolutionUseCaseItemInput interface {
pulumi.Input
ToControlSearchSolutionUseCaseItemOutput() ControlSearchSolutionUseCaseItemOutput
ToControlSearchSolutionUseCaseItemOutputWithContext(context.Context) ControlSearchSolutionUseCaseItemOutput
}
var controlSearchSolutionUseCaseItemPtrType = reflect.TypeOf((**ControlSearchSolutionUseCaseItem)(nil)).Elem()
type ControlSearchSolutionUseCaseItemPtrInput interface {
pulumi.Input
ToControlSearchSolutionUseCaseItemPtrOutput() ControlSearchSolutionUseCaseItemPtrOutput
ToControlSearchSolutionUseCaseItemPtrOutputWithContext(context.Context) ControlSearchSolutionUseCaseItemPtrOutput
}
type controlSearchSolutionUseCaseItemPtr string
func ControlSearchSolutionUseCaseItemPtr(v string) ControlSearchSolutionUseCaseItemPtrInput {
return (*controlSearchSolutionUseCaseItemPtr)(&v)
}
func (*controlSearchSolutionUseCaseItemPtr) ElementType() reflect.Type {
return controlSearchSolutionUseCaseItemPtrType
}
func (in *controlSearchSolutionUseCaseItemPtr) ToControlSearchSolutionUseCaseItemPtrOutput() ControlSearchSolutionUseCaseItemPtrOutput {
return pulumi.ToOutput(in).(ControlSearchSolutionUseCaseItemPtrOutput)
}
func (in *controlSearchSolutionUseCaseItemPtr) ToControlSearchSolutionUseCaseItemPtrOutputWithContext(ctx context.Context) ControlSearchSolutionUseCaseItemPtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(ControlSearchSolutionUseCaseItemPtrOutput)
}
func (in *controlSearchSolutionUseCaseItemPtr) ToOutput(ctx context.Context) pulumix.Output[*ControlSearchSolutionUseCaseItem] {
return pulumix.Output[*ControlSearchSolutionUseCaseItem]{
OutputState: in.ToControlSearchSolutionUseCaseItemPtrOutputWithContext(ctx).OutputState,
}
}
// ControlSearchSolutionUseCaseItemArrayInput is an input type that accepts ControlSearchSolutionUseCaseItemArray and ControlSearchSolutionUseCaseItemArrayOutput values.
// You can construct a concrete instance of `ControlSearchSolutionUseCaseItemArrayInput` via:
//
// ControlSearchSolutionUseCaseItemArray{ ControlSearchSolutionUseCaseItemArgs{...} }
type ControlSearchSolutionUseCaseItemArrayInput interface {
pulumi.Input
ToControlSearchSolutionUseCaseItemArrayOutput() ControlSearchSolutionUseCaseItemArrayOutput
ToControlSearchSolutionUseCaseItemArrayOutputWithContext(context.Context) ControlSearchSolutionUseCaseItemArrayOutput
}
type ControlSearchSolutionUseCaseItemArray []ControlSearchSolutionUseCaseItem
func (ControlSearchSolutionUseCaseItemArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ControlSearchSolutionUseCaseItem)(nil)).Elem()
}
func (i ControlSearchSolutionUseCaseItemArray) ToControlSearchSolutionUseCaseItemArrayOutput() ControlSearchSolutionUseCaseItemArrayOutput {
return i.ToControlSearchSolutionUseCaseItemArrayOutputWithContext(context.Background())
}
func (i ControlSearchSolutionUseCaseItemArray) ToControlSearchSolutionUseCaseItemArrayOutputWithContext(ctx context.Context) ControlSearchSolutionUseCaseItemArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ControlSearchSolutionUseCaseItemArrayOutput)
}
type ControlSearchSolutionUseCaseItemArrayOutput struct{ *pulumi.OutputState }
func (ControlSearchSolutionUseCaseItemArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ControlSearchSolutionUseCaseItem)(nil)).Elem()
}
func (o ControlSearchSolutionUseCaseItemArrayOutput) ToControlSearchSolutionUseCaseItemArrayOutput() ControlSearchSolutionUseCaseItemArrayOutput {
return o
}
func (o ControlSearchSolutionUseCaseItemArrayOutput) ToControlSearchSolutionUseCaseItemArrayOutputWithContext(ctx context.Context) ControlSearchSolutionUseCaseItemArrayOutput {
return o
}
func (o ControlSearchSolutionUseCaseItemArrayOutput) Index(i pulumi.IntInput) ControlSearchSolutionUseCaseItemOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ControlSearchSolutionUseCaseItem {
return vs[0].([]ControlSearchSolutionUseCaseItem)[vs[1].(int)]
}).(ControlSearchSolutionUseCaseItemOutput)
}
type ControlSolutionTypesItem string
const (
// Default value.
ControlSolutionTypesItemSolutionTypeUnspecified = ControlSolutionTypesItem("SOLUTION_TYPE_UNSPECIFIED")
// Used for Recommendations AI.
ControlSolutionTypesItemSolutionTypeRecommendation = ControlSolutionTypesItem("SOLUTION_TYPE_RECOMMENDATION")
// Used for Retail Search.
ControlSolutionTypesItemSolutionTypeSearch = ControlSolutionTypesItem("SOLUTION_TYPE_SEARCH")
)
func (ControlSolutionTypesItem) ElementType() reflect.Type {
return reflect.TypeOf((*ControlSolutionTypesItem)(nil)).Elem()
}
func (e ControlSolutionTypesItem) ToControlSolutionTypesItemOutput() ControlSolutionTypesItemOutput {
return pulumi.ToOutput(e).(ControlSolutionTypesItemOutput)
}
func (e ControlSolutionTypesItem) ToControlSolutionTypesItemOutputWithContext(ctx context.Context) ControlSolutionTypesItemOutput {
return pulumi.ToOutputWithContext(ctx, e).(ControlSolutionTypesItemOutput)
}
func (e ControlSolutionTypesItem) ToControlSolutionTypesItemPtrOutput() ControlSolutionTypesItemPtrOutput {
return e.ToControlSolutionTypesItemPtrOutputWithContext(context.Background())
}
func (e ControlSolutionTypesItem) ToControlSolutionTypesItemPtrOutputWithContext(ctx context.Context) ControlSolutionTypesItemPtrOutput {
return ControlSolutionTypesItem(e).ToControlSolutionTypesItemOutputWithContext(ctx).ToControlSolutionTypesItemPtrOutputWithContext(ctx)
}
func (e ControlSolutionTypesItem) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e ControlSolutionTypesItem) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e ControlSolutionTypesItem) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e ControlSolutionTypesItem) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type ControlSolutionTypesItemOutput struct{ *pulumi.OutputState }
func (ControlSolutionTypesItemOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ControlSolutionTypesItem)(nil)).Elem()
}
func (o ControlSolutionTypesItemOutput) ToControlSolutionTypesItemOutput() ControlSolutionTypesItemOutput {
return o
}
func (o ControlSolutionTypesItemOutput) ToControlSolutionTypesItemOutputWithContext(ctx context.Context) ControlSolutionTypesItemOutput {
return o
}
func (o ControlSolutionTypesItemOutput) ToControlSolutionTypesItemPtrOutput() ControlSolutionTypesItemPtrOutput {
return o.ToControlSolutionTypesItemPtrOutputWithContext(context.Background())
}
func (o ControlSolutionTypesItemOutput) ToControlSolutionTypesItemPtrOutputWithContext(ctx context.Context) ControlSolutionTypesItemPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ControlSolutionTypesItem) *ControlSolutionTypesItem {
return &v
}).(ControlSolutionTypesItemPtrOutput)
}
func (o ControlSolutionTypesItemOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o ControlSolutionTypesItemOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e ControlSolutionTypesItem) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o ControlSolutionTypesItemOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o ControlSolutionTypesItemOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e ControlSolutionTypesItem) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type ControlSolutionTypesItemPtrOutput struct{ *pulumi.OutputState }
func (ControlSolutionTypesItemPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ControlSolutionTypesItem)(nil)).Elem()
}
func (o ControlSolutionTypesItemPtrOutput) ToControlSolutionTypesItemPtrOutput() ControlSolutionTypesItemPtrOutput {
return o
}
func (o ControlSolutionTypesItemPtrOutput) ToControlSolutionTypesItemPtrOutputWithContext(ctx context.Context) ControlSolutionTypesItemPtrOutput {
return o
}
func (o ControlSolutionTypesItemPtrOutput) Elem() ControlSolutionTypesItemOutput {
return o.ApplyT(func(v *ControlSolutionTypesItem) ControlSolutionTypesItem {
if v != nil {
return *v
}
var ret ControlSolutionTypesItem
return ret
}).(ControlSolutionTypesItemOutput)
}
func (o ControlSolutionTypesItemPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o ControlSolutionTypesItemPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *ControlSolutionTypesItem) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// ControlSolutionTypesItemInput is an input type that accepts ControlSolutionTypesItemArgs and ControlSolutionTypesItemOutput values.
// You can construct a concrete instance of `ControlSolutionTypesItemInput` via:
//
// ControlSolutionTypesItemArgs{...}
type ControlSolutionTypesItemInput interface {
pulumi.Input
ToControlSolutionTypesItemOutput() ControlSolutionTypesItemOutput
ToControlSolutionTypesItemOutputWithContext(context.Context) ControlSolutionTypesItemOutput
}
var controlSolutionTypesItemPtrType = reflect.TypeOf((**ControlSolutionTypesItem)(nil)).Elem()
type ControlSolutionTypesItemPtrInput interface {
pulumi.Input
ToControlSolutionTypesItemPtrOutput() ControlSolutionTypesItemPtrOutput
ToControlSolutionTypesItemPtrOutputWithContext(context.Context) ControlSolutionTypesItemPtrOutput
}
type controlSolutionTypesItemPtr string
func ControlSolutionTypesItemPtr(v string) ControlSolutionTypesItemPtrInput {
return (*controlSolutionTypesItemPtr)(&v)
}
func (*controlSolutionTypesItemPtr) ElementType() reflect.Type {
return controlSolutionTypesItemPtrType
}
func (in *controlSolutionTypesItemPtr) ToControlSolutionTypesItemPtrOutput() ControlSolutionTypesItemPtrOutput {
return pulumi.ToOutput(in).(ControlSolutionTypesItemPtrOutput)
}
func (in *controlSolutionTypesItemPtr) ToControlSolutionTypesItemPtrOutputWithContext(ctx context.Context) ControlSolutionTypesItemPtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(ControlSolutionTypesItemPtrOutput)
}
func (in *controlSolutionTypesItemPtr) ToOutput(ctx context.Context) pulumix.Output[*ControlSolutionTypesItem] {
return pulumix.Output[*ControlSolutionTypesItem]{
OutputState: in.ToControlSolutionTypesItemPtrOutputWithContext(ctx).OutputState,
}
}
// ControlSolutionTypesItemArrayInput is an input type that accepts ControlSolutionTypesItemArray and ControlSolutionTypesItemArrayOutput values.
// You can construct a concrete instance of `ControlSolutionTypesItemArrayInput` via:
//
// ControlSolutionTypesItemArray{ ControlSolutionTypesItemArgs{...} }
type ControlSolutionTypesItemArrayInput interface {
pulumi.Input
ToControlSolutionTypesItemArrayOutput() ControlSolutionTypesItemArrayOutput
ToControlSolutionTypesItemArrayOutputWithContext(context.Context) ControlSolutionTypesItemArrayOutput
}
type ControlSolutionTypesItemArray []ControlSolutionTypesItem
func (ControlSolutionTypesItemArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ControlSolutionTypesItem)(nil)).Elem()
}
func (i ControlSolutionTypesItemArray) ToControlSolutionTypesItemArrayOutput() ControlSolutionTypesItemArrayOutput {
return i.ToControlSolutionTypesItemArrayOutputWithContext(context.Background())
}
func (i ControlSolutionTypesItemArray) ToControlSolutionTypesItemArrayOutputWithContext(ctx context.Context) ControlSolutionTypesItemArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ControlSolutionTypesItemArrayOutput)
}
type ControlSolutionTypesItemArrayOutput struct{ *pulumi.OutputState }
func (ControlSolutionTypesItemArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ControlSolutionTypesItem)(nil)).Elem()
}
func (o ControlSolutionTypesItemArrayOutput) ToControlSolutionTypesItemArrayOutput() ControlSolutionTypesItemArrayOutput {
return o
}
func (o ControlSolutionTypesItemArrayOutput) ToControlSolutionTypesItemArrayOutputWithContext(ctx context.Context) ControlSolutionTypesItemArrayOutput {
return o
}
func (o ControlSolutionTypesItemArrayOutput) Index(i pulumi.IntInput) ControlSolutionTypesItemOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ControlSolutionTypesItem {
return vs[0].([]ControlSolutionTypesItem)[vs[1].(int)]
}).(ControlSolutionTypesItemOutput)
}
// Optional. Specifies the context of the model when it is used in predict requests. Can only be set for the `frequently-bought-together` type. If it isn't specified, it defaults to MULTIPLE_CONTEXT_PRODUCTS.
type GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType string
const (
// Unspecified default value, should never be explicitly set. Defaults to MULTIPLE_CONTEXT_PRODUCTS.
GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeContextProductsTypeUnspecified = GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType("CONTEXT_PRODUCTS_TYPE_UNSPECIFIED")
// Use only a single product as context for the recommendation. Typically used on pages like add-to-cart or product details.
GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeSingleContextProduct = GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType("SINGLE_CONTEXT_PRODUCT")
// Use one or multiple products as context for the recommendation. Typically used on shopping cart pages.
GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeMultipleContextProducts = GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType("MULTIPLE_CONTEXT_PRODUCTS")
)
func (GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType)(nil)).Elem()
}
func (e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput() GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput {
return pulumi.ToOutput(e).(GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput)
}
func (e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput {
return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput)
}
func (e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput() GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput {
return e.ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutputWithContext(context.Background())
}
func (e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput {
return GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType(e).ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutputWithContext(ctx).ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutputWithContext(ctx)
}
func (e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput struct{ *pulumi.OutputState }
func (GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType)(nil)).Elem()
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput() GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput {
return o
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput {
return o
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput() GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput {
return o.ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) *GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType {
return &v
}).(GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput)
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput struct{ *pulumi.OutputState }
func (GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType)(nil)).Elem()
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput() GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput {
return o
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput {
return o
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput) Elem() GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput {
return o.ApplyT(func(v *GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType {
if v != nil {
return *v
}
var ret GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType
return ret
}).(GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput)
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeInput is an input type that accepts GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeArgs and GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput values.
// You can construct a concrete instance of `GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeInput` via:
//
// GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeArgs{...}
type GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeInput interface {
pulumi.Input
ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput() GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput
ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutputWithContext(context.Context) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypeOutput
}
var googleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrType = reflect.TypeOf((**GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType)(nil)).Elem()
type GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrInput interface {
pulumi.Input
ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput() GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput
ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutputWithContext(context.Context) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput
}
type googleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtr string
func GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtr(v string) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrInput {
return (*googleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtr)(&v)
}
func (*googleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtr) ElementType() reflect.Type {
return googleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrType
}
func (in *googleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtr) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput() GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput {
return pulumi.ToOutput(in).(GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput)
}
func (in *googleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtr) ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutput)
}
func (in *googleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType] {
return pulumix.Output[*GoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsType]{
OutputState: in.ToGoogleCloudRetailV2betaModelFrequentlyBoughtTogetherFeaturesConfigContextProductsTypePtrOutputWithContext(ctx).OutputState,
}
}
// Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.
type GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode string
const (
// Default value.
GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeModeUnspecified = GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode("MODE_UNSPECIFIED")
// Disable Dynamic Facet.
GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeDisabled = GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode("DISABLED")
// Automatic mode built by Google Retail Search.
GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeEnabled = GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode("ENABLED")
)
func (GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode)(nil)).Elem()
}
func (e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput() GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput {
return pulumi.ToOutput(e).(GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput)
}
func (e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput {
return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput)
}
func (e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput {
return e.ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutputWithContext(context.Background())
}
func (e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput {
return GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode(e).ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutputWithContext(ctx).ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutputWithContext(ctx)
}
func (e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput struct{ *pulumi.OutputState }
func (GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode)(nil)).Elem()
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput() GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput {
return o
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput {
return o
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput {
return o.ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) *GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode {
return &v
}).(GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput)
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput struct{ *pulumi.OutputState }
func (GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode)(nil)).Elem()
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput {
return o
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput {
return o
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput) Elem() GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput {
return o.ApplyT(func(v *GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode {
if v != nil {
return *v
}
var ret GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode
return ret
}).(GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput)
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeInput is an input type that accepts GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeArgs and GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput values.
// You can construct a concrete instance of `GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeInput` via:
//
// GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeArgs{...}
type GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeInput interface {
pulumi.Input
ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput() GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput
ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutputWithContext(context.Context) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModeOutput
}
var googleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrType = reflect.TypeOf((**GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode)(nil)).Elem()
type GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrInput interface {
pulumi.Input
ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput
ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutputWithContext(context.Context) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput
}
type googleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtr string
func GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtr(v string) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrInput {
return (*googleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtr)(&v)
}
func (*googleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtr) ElementType() reflect.Type {
return googleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrType
}
func (in *googleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtr) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput {
return pulumi.ToOutput(in).(GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput)
}
func (in *googleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtr) ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutput)
}
func (in *googleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode] {
return pulumix.Output[*GoogleCloudRetailV2betaSearchRequestDynamicFacetSpecMode]{
OutputState: in.ToGoogleCloudRetailV2betaSearchRequestDynamicFacetSpecModePtrOutputWithContext(ctx).OutputState,
}
}
// Defaults to Mode.AUTO.
type GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode string
const (
// Default value. In this case, server behavior defaults to Mode.AUTO.
GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeModeUnspecified = GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode("MODE_UNSPECIFIED")
// Let CRS decide whether to use personalization based on quality of user event data.
GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeAuto = GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode("AUTO")
// Disable personalization.
GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeDisabled = GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode("DISABLED")
)
func (GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode)(nil)).Elem()
}
func (e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput() GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput {
return pulumi.ToOutput(e).(GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput)
}
func (e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput {
return pulumi.ToOutputWithContext(ctx, e).(GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput)
}
func (e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput {
return e.ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutputWithContext(context.Background())
}
func (e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput {
return GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode(e).ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutputWithContext(ctx).ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutputWithContext(ctx)
}
func (e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput struct{ *pulumi.OutputState }
func (GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode)(nil)).Elem()
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput() GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput {
return o
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput {
return o
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput {
return o.ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) *GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode {
return &v
}).(GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput)
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput struct{ *pulumi.OutputState }
func (GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode)(nil)).Elem()
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput {
return o
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput {
return o
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput) Elem() GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput {
return o.ApplyT(func(v *GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode {
if v != nil {
return *v
}
var ret GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode
return ret
}).(GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput)
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeInput is an input type that accepts GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeArgs and GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput values.
// You can construct a concrete instance of `GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeInput` via:
//
// GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeArgs{...}
type GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeInput interface {
pulumi.Input
ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput() GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput
ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutputWithContext(context.Context) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModeOutput
}
var googleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrType = reflect.TypeOf((**GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode)(nil)).Elem()
type GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrInput interface {
pulumi.Input
ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput
ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutputWithContext(context.Context) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput
}
type googleCloudRetailV2betaSearchRequestPersonalizationSpecModePtr string
func GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtr(v string) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrInput {
return (*googleCloudRetailV2betaSearchRequestPersonalizationSpecModePtr)(&v)
}
func (*googleCloudRetailV2betaSearchRequestPersonalizationSpecModePtr) ElementType() reflect.Type {
return googleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrType
}
func (in *googleCloudRetailV2betaSearchRequestPersonalizationSpecModePtr) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput() GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput {
return pulumi.ToOutput(in).(GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput)
}
func (in *googleCloudRetailV2betaSearchRequestPersonalizationSpecModePtr) ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutputWithContext(ctx context.Context) GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(GoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutput)
}
func (in *googleCloudRetailV2betaSearchRequestPersonalizationSpecModePtr) ToOutput(ctx context.Context) pulumix.Output[*GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode] {
return pulumix.Output[*GoogleCloudRetailV2betaSearchRequestPersonalizationSpecMode]{
OutputState: in.ToGoogleCloudRetailV2betaSearchRequestPersonalizationSpecModePtrOutputWithContext(ctx).OutputState,
}
}
// Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by attributes is enabled for the model.
type ModelFilteringOption string
const (
// Value used when unset. In this case, server behavior defaults to RECOMMENDATIONS_FILTERING_DISABLED.
ModelFilteringOptionRecommendationsFilteringOptionUnspecified = ModelFilteringOption("RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED")
// Recommendation filtering is disabled.
ModelFilteringOptionRecommendationsFilteringDisabled = ModelFilteringOption("RECOMMENDATIONS_FILTERING_DISABLED")
// Recommendation filtering is enabled.
ModelFilteringOptionRecommendationsFilteringEnabled = ModelFilteringOption("RECOMMENDATIONS_FILTERING_ENABLED")
)
func (ModelFilteringOption) ElementType() reflect.Type {
return reflect.TypeOf((*ModelFilteringOption)(nil)).Elem()
}
func (e ModelFilteringOption) ToModelFilteringOptionOutput() ModelFilteringOptionOutput {
return pulumi.ToOutput(e).(ModelFilteringOptionOutput)
}
func (e ModelFilteringOption) ToModelFilteringOptionOutputWithContext(ctx context.Context) ModelFilteringOptionOutput {
return pulumi.ToOutputWithContext(ctx, e).(ModelFilteringOptionOutput)
}