/
pulumiTypes.go
337 lines (262 loc) · 20.2 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
// 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"
)
var _ = internal.GetEnvOrDefault
// An item of the class.
type ClassItem struct {
// The class item's value.
Value *string `pulumi:"value"`
}
// ClassItemInput is an input type that accepts ClassItemArgs and ClassItemOutput values.
// You can construct a concrete instance of `ClassItemInput` via:
//
// ClassItemArgs{...}
type ClassItemInput interface {
pulumi.Input
ToClassItemOutput() ClassItemOutput
ToClassItemOutputWithContext(context.Context) ClassItemOutput
}
// An item of the class.
type ClassItemArgs struct {
// The class item's value.
Value pulumi.StringPtrInput `pulumi:"value"`
}
func (ClassItemArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClassItem)(nil)).Elem()
}
func (i ClassItemArgs) ToClassItemOutput() ClassItemOutput {
return i.ToClassItemOutputWithContext(context.Background())
}
func (i ClassItemArgs) ToClassItemOutputWithContext(ctx context.Context) ClassItemOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClassItemOutput)
}
// ClassItemArrayInput is an input type that accepts ClassItemArray and ClassItemArrayOutput values.
// You can construct a concrete instance of `ClassItemArrayInput` via:
//
// ClassItemArray{ ClassItemArgs{...} }
type ClassItemArrayInput interface {
pulumi.Input
ToClassItemArrayOutput() ClassItemArrayOutput
ToClassItemArrayOutputWithContext(context.Context) ClassItemArrayOutput
}
type ClassItemArray []ClassItemInput
func (ClassItemArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClassItem)(nil)).Elem()
}
func (i ClassItemArray) ToClassItemArrayOutput() ClassItemArrayOutput {
return i.ToClassItemArrayOutputWithContext(context.Background())
}
func (i ClassItemArray) ToClassItemArrayOutputWithContext(ctx context.Context) ClassItemArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClassItemArrayOutput)
}
// An item of the class.
type ClassItemOutput struct{ *pulumi.OutputState }
func (ClassItemOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClassItem)(nil)).Elem()
}
func (o ClassItemOutput) ToClassItemOutput() ClassItemOutput {
return o
}
func (o ClassItemOutput) ToClassItemOutputWithContext(ctx context.Context) ClassItemOutput {
return o
}
// The class item's value.
func (o ClassItemOutput) Value() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClassItem) *string { return v.Value }).(pulumi.StringPtrOutput)
}
type ClassItemArrayOutput struct{ *pulumi.OutputState }
func (ClassItemArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClassItem)(nil)).Elem()
}
func (o ClassItemArrayOutput) ToClassItemArrayOutput() ClassItemArrayOutput {
return o
}
func (o ClassItemArrayOutput) ToClassItemArrayOutputWithContext(ctx context.Context) ClassItemArrayOutput {
return o
}
func (o ClassItemArrayOutput) Index(i pulumi.IntInput) ClassItemOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClassItem {
return vs[0].([]ClassItem)[vs[1].(int)]
}).(ClassItemOutput)
}
// An item of the class.
type ClassItemResponse struct {
// The class item's value.
Value string `pulumi:"value"`
}
// An item of the class.
type ClassItemResponseOutput struct{ *pulumi.OutputState }
func (ClassItemResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClassItemResponse)(nil)).Elem()
}
func (o ClassItemResponseOutput) ToClassItemResponseOutput() ClassItemResponseOutput {
return o
}
func (o ClassItemResponseOutput) ToClassItemResponseOutputWithContext(ctx context.Context) ClassItemResponseOutput {
return o
}
// The class item's value.
func (o ClassItemResponseOutput) Value() pulumi.StringOutput {
return o.ApplyT(func(v ClassItemResponse) string { return v.Value }).(pulumi.StringOutput)
}
type ClassItemResponseArrayOutput struct{ *pulumi.OutputState }
func (ClassItemResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClassItemResponse)(nil)).Elem()
}
func (o ClassItemResponseArrayOutput) ToClassItemResponseArrayOutput() ClassItemResponseArrayOutput {
return o
}
func (o ClassItemResponseArrayOutput) ToClassItemResponseArrayOutputWithContext(ctx context.Context) ClassItemResponseArrayOutput {
return o
}
func (o ClassItemResponseArrayOutput) Index(i pulumi.IntInput) ClassItemResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClassItemResponse {
return vs[0].([]ClassItemResponse)[vs[1].(int)]
}).(ClassItemResponseOutput)
}
// A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
type Phrase struct {
// Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.
Boost *float64 `pulumi:"boost"`
// The phrase itself.
Value *string `pulumi:"value"`
}
// PhraseInput is an input type that accepts PhraseArgs and PhraseOutput values.
// You can construct a concrete instance of `PhraseInput` via:
//
// PhraseArgs{...}
type PhraseInput interface {
pulumi.Input
ToPhraseOutput() PhraseOutput
ToPhraseOutputWithContext(context.Context) PhraseOutput
}
// A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
type PhraseArgs struct {
// Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.
Boost pulumi.Float64PtrInput `pulumi:"boost"`
// The phrase itself.
Value pulumi.StringPtrInput `pulumi:"value"`
}
func (PhraseArgs) ElementType() reflect.Type {
return reflect.TypeOf((*Phrase)(nil)).Elem()
}
func (i PhraseArgs) ToPhraseOutput() PhraseOutput {
return i.ToPhraseOutputWithContext(context.Background())
}
func (i PhraseArgs) ToPhraseOutputWithContext(ctx context.Context) PhraseOutput {
return pulumi.ToOutputWithContext(ctx, i).(PhraseOutput)
}
// PhraseArrayInput is an input type that accepts PhraseArray and PhraseArrayOutput values.
// You can construct a concrete instance of `PhraseArrayInput` via:
//
// PhraseArray{ PhraseArgs{...} }
type PhraseArrayInput interface {
pulumi.Input
ToPhraseArrayOutput() PhraseArrayOutput
ToPhraseArrayOutputWithContext(context.Context) PhraseArrayOutput
}
type PhraseArray []PhraseInput
func (PhraseArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]Phrase)(nil)).Elem()
}
func (i PhraseArray) ToPhraseArrayOutput() PhraseArrayOutput {
return i.ToPhraseArrayOutputWithContext(context.Background())
}
func (i PhraseArray) ToPhraseArrayOutputWithContext(ctx context.Context) PhraseArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PhraseArrayOutput)
}
// A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
type PhraseOutput struct{ *pulumi.OutputState }
func (PhraseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*Phrase)(nil)).Elem()
}
func (o PhraseOutput) ToPhraseOutput() PhraseOutput {
return o
}
func (o PhraseOutput) ToPhraseOutputWithContext(ctx context.Context) PhraseOutput {
return o
}
// Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.
func (o PhraseOutput) Boost() pulumi.Float64PtrOutput {
return o.ApplyT(func(v Phrase) *float64 { return v.Boost }).(pulumi.Float64PtrOutput)
}
// The phrase itself.
func (o PhraseOutput) Value() pulumi.StringPtrOutput {
return o.ApplyT(func(v Phrase) *string { return v.Value }).(pulumi.StringPtrOutput)
}
type PhraseArrayOutput struct{ *pulumi.OutputState }
func (PhraseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]Phrase)(nil)).Elem()
}
func (o PhraseArrayOutput) ToPhraseArrayOutput() PhraseArrayOutput {
return o
}
func (o PhraseArrayOutput) ToPhraseArrayOutputWithContext(ctx context.Context) PhraseArrayOutput {
return o
}
func (o PhraseArrayOutput) Index(i pulumi.IntInput) PhraseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) Phrase {
return vs[0].([]Phrase)[vs[1].(int)]
}).(PhraseOutput)
}
// A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
type PhraseResponse struct {
// Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.
Boost float64 `pulumi:"boost"`
// The phrase itself.
Value string `pulumi:"value"`
}
// A phrases containing words and phrase "hints" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. See [usage limits](https://cloud.google.com/speech-to-text/quotas#content). List items can also include pre-built or custom classes containing groups of words that represent common concepts that occur in natural language. For example, rather than providing a phrase hint for every month of the year (e.g. "i was born in january", "i was born in febuary", ...), use the pre-built `$MONTH` class improves the likelihood of correctly transcribing audio that includes months (e.g. "i was born in $month"). To refer to pre-built classes, use the class' symbol prepended with `$` e.g. `$MONTH`. To refer to custom classes that were defined inline in the request, set the class's `custom_class_id` to a string unique to all class resources and inline classes. Then use the class' id wrapped in $`{...}` e.g. "${my-months}". To refer to custom classes resources, use the class' id wrapped in `${}` (e.g. `${my-months}`). Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value.
type PhraseResponseOutput struct{ *pulumi.OutputState }
func (PhraseResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PhraseResponse)(nil)).Elem()
}
func (o PhraseResponseOutput) ToPhraseResponseOutput() PhraseResponseOutput {
return o
}
func (o PhraseResponseOutput) ToPhraseResponseOutputWithContext(ctx context.Context) PhraseResponseOutput {
return o
}
// Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost will simply be ignored. Though `boost` can accept a wide range of positive values, most use cases are best served with values between 0 and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests.
func (o PhraseResponseOutput) Boost() pulumi.Float64Output {
return o.ApplyT(func(v PhraseResponse) float64 { return v.Boost }).(pulumi.Float64Output)
}
// The phrase itself.
func (o PhraseResponseOutput) Value() pulumi.StringOutput {
return o.ApplyT(func(v PhraseResponse) string { return v.Value }).(pulumi.StringOutput)
}
type PhraseResponseArrayOutput struct{ *pulumi.OutputState }
func (PhraseResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]PhraseResponse)(nil)).Elem()
}
func (o PhraseResponseArrayOutput) ToPhraseResponseArrayOutput() PhraseResponseArrayOutput {
return o
}
func (o PhraseResponseArrayOutput) ToPhraseResponseArrayOutputWithContext(ctx context.Context) PhraseResponseArrayOutput {
return o
}
func (o PhraseResponseArrayOutput) Index(i pulumi.IntInput) PhraseResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) PhraseResponse {
return vs[0].([]PhraseResponse)[vs[1].(int)]
}).(PhraseResponseOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ClassItemInput)(nil)).Elem(), ClassItemArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ClassItemArrayInput)(nil)).Elem(), ClassItemArray{})
pulumi.RegisterInputType(reflect.TypeOf((*PhraseInput)(nil)).Elem(), PhraseArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*PhraseArrayInput)(nil)).Elem(), PhraseArray{})
pulumi.RegisterOutputType(ClassItemOutput{})
pulumi.RegisterOutputType(ClassItemArrayOutput{})
pulumi.RegisterOutputType(ClassItemResponseOutput{})
pulumi.RegisterOutputType(ClassItemResponseArrayOutput{})
pulumi.RegisterOutputType(PhraseOutput{})
pulumi.RegisterOutputType(PhraseArrayOutput{})
pulumi.RegisterOutputType(PhraseResponseOutput{})
pulumi.RegisterOutputType(PhraseResponseArrayOutput{})
}