-
Notifications
You must be signed in to change notification settings - Fork 8
/
pulumiTypes.go
380 lines (303 loc) · 15.9 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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package identity
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
type ApplicationCredentialAccessRule struct {
// The ID of the existing access rule. The access rule ID of
// another application credential can be provided.
Id *string `pulumi:"id"`
// The request method that the application credential is
// permitted to use for a given API endpoint. Allowed values: `POST`, `GET`,
// `HEAD`, `PATCH`, `PUT` and `DELETE`.
Method string `pulumi:"method"`
// The API path that the application credential is permitted
// to access. May use named wildcards such as **{tag}** or the unnamed wildcard
// **\*** to match against any string in the path up to a **/**, or the recursive
// wildcard **\*\*** to include **/** in the matched path.
Path string `pulumi:"path"`
// The service type identifier for the service that the
// application credential is granted to access. Must be a service type that is
// listed in the service catalog and not a code name for a service. E.g.
// **identity**, **compute**, **volumev3**, **image**, **network**,
// **object-store**, **sharev2**, **dns**, **key-manager**, **monitoring**, etc.
Service string `pulumi:"service"`
}
// ApplicationCredentialAccessRuleInput is an input type that accepts ApplicationCredentialAccessRuleArgs and ApplicationCredentialAccessRuleOutput values.
// You can construct a concrete instance of `ApplicationCredentialAccessRuleInput` via:
//
// ApplicationCredentialAccessRuleArgs{...}
type ApplicationCredentialAccessRuleInput interface {
pulumi.Input
ToApplicationCredentialAccessRuleOutput() ApplicationCredentialAccessRuleOutput
ToApplicationCredentialAccessRuleOutputWithContext(context.Context) ApplicationCredentialAccessRuleOutput
}
type ApplicationCredentialAccessRuleArgs struct {
// The ID of the existing access rule. The access rule ID of
// another application credential can be provided.
Id pulumi.StringPtrInput `pulumi:"id"`
// The request method that the application credential is
// permitted to use for a given API endpoint. Allowed values: `POST`, `GET`,
// `HEAD`, `PATCH`, `PUT` and `DELETE`.
Method pulumi.StringInput `pulumi:"method"`
// The API path that the application credential is permitted
// to access. May use named wildcards such as **{tag}** or the unnamed wildcard
// **\*** to match against any string in the path up to a **/**, or the recursive
// wildcard **\*\*** to include **/** in the matched path.
Path pulumi.StringInput `pulumi:"path"`
// The service type identifier for the service that the
// application credential is granted to access. Must be a service type that is
// listed in the service catalog and not a code name for a service. E.g.
// **identity**, **compute**, **volumev3**, **image**, **network**,
// **object-store**, **sharev2**, **dns**, **key-manager**, **monitoring**, etc.
Service pulumi.StringInput `pulumi:"service"`
}
func (ApplicationCredentialAccessRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationCredentialAccessRule)(nil)).Elem()
}
func (i ApplicationCredentialAccessRuleArgs) ToApplicationCredentialAccessRuleOutput() ApplicationCredentialAccessRuleOutput {
return i.ToApplicationCredentialAccessRuleOutputWithContext(context.Background())
}
func (i ApplicationCredentialAccessRuleArgs) ToApplicationCredentialAccessRuleOutputWithContext(ctx context.Context) ApplicationCredentialAccessRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationCredentialAccessRuleOutput)
}
// ApplicationCredentialAccessRuleArrayInput is an input type that accepts ApplicationCredentialAccessRuleArray and ApplicationCredentialAccessRuleArrayOutput values.
// You can construct a concrete instance of `ApplicationCredentialAccessRuleArrayInput` via:
//
// ApplicationCredentialAccessRuleArray{ ApplicationCredentialAccessRuleArgs{...} }
type ApplicationCredentialAccessRuleArrayInput interface {
pulumi.Input
ToApplicationCredentialAccessRuleArrayOutput() ApplicationCredentialAccessRuleArrayOutput
ToApplicationCredentialAccessRuleArrayOutputWithContext(context.Context) ApplicationCredentialAccessRuleArrayOutput
}
type ApplicationCredentialAccessRuleArray []ApplicationCredentialAccessRuleInput
func (ApplicationCredentialAccessRuleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ApplicationCredentialAccessRule)(nil)).Elem()
}
func (i ApplicationCredentialAccessRuleArray) ToApplicationCredentialAccessRuleArrayOutput() ApplicationCredentialAccessRuleArrayOutput {
return i.ToApplicationCredentialAccessRuleArrayOutputWithContext(context.Background())
}
func (i ApplicationCredentialAccessRuleArray) ToApplicationCredentialAccessRuleArrayOutputWithContext(ctx context.Context) ApplicationCredentialAccessRuleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ApplicationCredentialAccessRuleArrayOutput)
}
type ApplicationCredentialAccessRuleOutput struct{ *pulumi.OutputState }
func (ApplicationCredentialAccessRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ApplicationCredentialAccessRule)(nil)).Elem()
}
func (o ApplicationCredentialAccessRuleOutput) ToApplicationCredentialAccessRuleOutput() ApplicationCredentialAccessRuleOutput {
return o
}
func (o ApplicationCredentialAccessRuleOutput) ToApplicationCredentialAccessRuleOutputWithContext(ctx context.Context) ApplicationCredentialAccessRuleOutput {
return o
}
// The ID of the existing access rule. The access rule ID of
// another application credential can be provided.
func (o ApplicationCredentialAccessRuleOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v ApplicationCredentialAccessRule) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// The request method that the application credential is
// permitted to use for a given API endpoint. Allowed values: `POST`, `GET`,
// `HEAD`, `PATCH`, `PUT` and `DELETE`.
func (o ApplicationCredentialAccessRuleOutput) Method() pulumi.StringOutput {
return o.ApplyT(func(v ApplicationCredentialAccessRule) string { return v.Method }).(pulumi.StringOutput)
}
// The API path that the application credential is permitted
// to access. May use named wildcards such as **{tag}** or the unnamed wildcard
// **\*** to match against any string in the path up to a **/**, or the recursive
// wildcard **\*\*** to include **/** in the matched path.
func (o ApplicationCredentialAccessRuleOutput) Path() pulumi.StringOutput {
return o.ApplyT(func(v ApplicationCredentialAccessRule) string { return v.Path }).(pulumi.StringOutput)
}
// The service type identifier for the service that the
// application credential is granted to access. Must be a service type that is
// listed in the service catalog and not a code name for a service. E.g.
// **identity**, **compute**, **volumev3**, **image**, **network**,
// **object-store**, **sharev2**, **dns**, **key-manager**, **monitoring**, etc.
func (o ApplicationCredentialAccessRuleOutput) Service() pulumi.StringOutput {
return o.ApplyT(func(v ApplicationCredentialAccessRule) string { return v.Service }).(pulumi.StringOutput)
}
type ApplicationCredentialAccessRuleArrayOutput struct{ *pulumi.OutputState }
func (ApplicationCredentialAccessRuleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ApplicationCredentialAccessRule)(nil)).Elem()
}
func (o ApplicationCredentialAccessRuleArrayOutput) ToApplicationCredentialAccessRuleArrayOutput() ApplicationCredentialAccessRuleArrayOutput {
return o
}
func (o ApplicationCredentialAccessRuleArrayOutput) ToApplicationCredentialAccessRuleArrayOutputWithContext(ctx context.Context) ApplicationCredentialAccessRuleArrayOutput {
return o
}
func (o ApplicationCredentialAccessRuleArrayOutput) Index(i pulumi.IntInput) ApplicationCredentialAccessRuleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ApplicationCredentialAccessRule {
return vs[0].([]ApplicationCredentialAccessRule)[vs[1].(int)]
}).(ApplicationCredentialAccessRuleOutput)
}
type UserMultiFactorAuthRule struct {
// A list of authentication plugins that the user must
// authenticate with.
Rules []string `pulumi:"rules"`
}
// UserMultiFactorAuthRuleInput is an input type that accepts UserMultiFactorAuthRuleArgs and UserMultiFactorAuthRuleOutput values.
// You can construct a concrete instance of `UserMultiFactorAuthRuleInput` via:
//
// UserMultiFactorAuthRuleArgs{...}
type UserMultiFactorAuthRuleInput interface {
pulumi.Input
ToUserMultiFactorAuthRuleOutput() UserMultiFactorAuthRuleOutput
ToUserMultiFactorAuthRuleOutputWithContext(context.Context) UserMultiFactorAuthRuleOutput
}
type UserMultiFactorAuthRuleArgs struct {
// A list of authentication plugins that the user must
// authenticate with.
Rules pulumi.StringArrayInput `pulumi:"rules"`
}
func (UserMultiFactorAuthRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*UserMultiFactorAuthRule)(nil)).Elem()
}
func (i UserMultiFactorAuthRuleArgs) ToUserMultiFactorAuthRuleOutput() UserMultiFactorAuthRuleOutput {
return i.ToUserMultiFactorAuthRuleOutputWithContext(context.Background())
}
func (i UserMultiFactorAuthRuleArgs) ToUserMultiFactorAuthRuleOutputWithContext(ctx context.Context) UserMultiFactorAuthRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserMultiFactorAuthRuleOutput)
}
// UserMultiFactorAuthRuleArrayInput is an input type that accepts UserMultiFactorAuthRuleArray and UserMultiFactorAuthRuleArrayOutput values.
// You can construct a concrete instance of `UserMultiFactorAuthRuleArrayInput` via:
//
// UserMultiFactorAuthRuleArray{ UserMultiFactorAuthRuleArgs{...} }
type UserMultiFactorAuthRuleArrayInput interface {
pulumi.Input
ToUserMultiFactorAuthRuleArrayOutput() UserMultiFactorAuthRuleArrayOutput
ToUserMultiFactorAuthRuleArrayOutputWithContext(context.Context) UserMultiFactorAuthRuleArrayOutput
}
type UserMultiFactorAuthRuleArray []UserMultiFactorAuthRuleInput
func (UserMultiFactorAuthRuleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]UserMultiFactorAuthRule)(nil)).Elem()
}
func (i UserMultiFactorAuthRuleArray) ToUserMultiFactorAuthRuleArrayOutput() UserMultiFactorAuthRuleArrayOutput {
return i.ToUserMultiFactorAuthRuleArrayOutputWithContext(context.Background())
}
func (i UserMultiFactorAuthRuleArray) ToUserMultiFactorAuthRuleArrayOutputWithContext(ctx context.Context) UserMultiFactorAuthRuleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(UserMultiFactorAuthRuleArrayOutput)
}
type UserMultiFactorAuthRuleOutput struct{ *pulumi.OutputState }
func (UserMultiFactorAuthRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*UserMultiFactorAuthRule)(nil)).Elem()
}
func (o UserMultiFactorAuthRuleOutput) ToUserMultiFactorAuthRuleOutput() UserMultiFactorAuthRuleOutput {
return o
}
func (o UserMultiFactorAuthRuleOutput) ToUserMultiFactorAuthRuleOutputWithContext(ctx context.Context) UserMultiFactorAuthRuleOutput {
return o
}
// A list of authentication plugins that the user must
// authenticate with.
func (o UserMultiFactorAuthRuleOutput) Rules() pulumi.StringArrayOutput {
return o.ApplyT(func(v UserMultiFactorAuthRule) []string { return v.Rules }).(pulumi.StringArrayOutput)
}
type UserMultiFactorAuthRuleArrayOutput struct{ *pulumi.OutputState }
func (UserMultiFactorAuthRuleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]UserMultiFactorAuthRule)(nil)).Elem()
}
func (o UserMultiFactorAuthRuleArrayOutput) ToUserMultiFactorAuthRuleArrayOutput() UserMultiFactorAuthRuleArrayOutput {
return o
}
func (o UserMultiFactorAuthRuleArrayOutput) ToUserMultiFactorAuthRuleArrayOutputWithContext(ctx context.Context) UserMultiFactorAuthRuleArrayOutput {
return o
}
func (o UserMultiFactorAuthRuleArrayOutput) Index(i pulumi.IntInput) UserMultiFactorAuthRuleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) UserMultiFactorAuthRule {
return vs[0].([]UserMultiFactorAuthRule)[vs[1].(int)]
}).(UserMultiFactorAuthRuleOutput)
}
type GetAuthScopeRole struct {
// The ID of the role.
RoleId string `pulumi:"roleId"`
// The name of the role.
RoleName string `pulumi:"roleName"`
}
// GetAuthScopeRoleInput is an input type that accepts GetAuthScopeRoleArgs and GetAuthScopeRoleOutput values.
// You can construct a concrete instance of `GetAuthScopeRoleInput` via:
//
// GetAuthScopeRoleArgs{...}
type GetAuthScopeRoleInput interface {
pulumi.Input
ToGetAuthScopeRoleOutput() GetAuthScopeRoleOutput
ToGetAuthScopeRoleOutputWithContext(context.Context) GetAuthScopeRoleOutput
}
type GetAuthScopeRoleArgs struct {
// The ID of the role.
RoleId pulumi.StringInput `pulumi:"roleId"`
// The name of the role.
RoleName pulumi.StringInput `pulumi:"roleName"`
}
func (GetAuthScopeRoleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetAuthScopeRole)(nil)).Elem()
}
func (i GetAuthScopeRoleArgs) ToGetAuthScopeRoleOutput() GetAuthScopeRoleOutput {
return i.ToGetAuthScopeRoleOutputWithContext(context.Background())
}
func (i GetAuthScopeRoleArgs) ToGetAuthScopeRoleOutputWithContext(ctx context.Context) GetAuthScopeRoleOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAuthScopeRoleOutput)
}
// GetAuthScopeRoleArrayInput is an input type that accepts GetAuthScopeRoleArray and GetAuthScopeRoleArrayOutput values.
// You can construct a concrete instance of `GetAuthScopeRoleArrayInput` via:
//
// GetAuthScopeRoleArray{ GetAuthScopeRoleArgs{...} }
type GetAuthScopeRoleArrayInput interface {
pulumi.Input
ToGetAuthScopeRoleArrayOutput() GetAuthScopeRoleArrayOutput
ToGetAuthScopeRoleArrayOutputWithContext(context.Context) GetAuthScopeRoleArrayOutput
}
type GetAuthScopeRoleArray []GetAuthScopeRoleInput
func (GetAuthScopeRoleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAuthScopeRole)(nil)).Elem()
}
func (i GetAuthScopeRoleArray) ToGetAuthScopeRoleArrayOutput() GetAuthScopeRoleArrayOutput {
return i.ToGetAuthScopeRoleArrayOutputWithContext(context.Background())
}
func (i GetAuthScopeRoleArray) ToGetAuthScopeRoleArrayOutputWithContext(ctx context.Context) GetAuthScopeRoleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAuthScopeRoleArrayOutput)
}
type GetAuthScopeRoleOutput struct{ *pulumi.OutputState }
func (GetAuthScopeRoleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetAuthScopeRole)(nil)).Elem()
}
func (o GetAuthScopeRoleOutput) ToGetAuthScopeRoleOutput() GetAuthScopeRoleOutput {
return o
}
func (o GetAuthScopeRoleOutput) ToGetAuthScopeRoleOutputWithContext(ctx context.Context) GetAuthScopeRoleOutput {
return o
}
// The ID of the role.
func (o GetAuthScopeRoleOutput) RoleId() pulumi.StringOutput {
return o.ApplyT(func(v GetAuthScopeRole) string { return v.RoleId }).(pulumi.StringOutput)
}
// The name of the role.
func (o GetAuthScopeRoleOutput) RoleName() pulumi.StringOutput {
return o.ApplyT(func(v GetAuthScopeRole) string { return v.RoleName }).(pulumi.StringOutput)
}
type GetAuthScopeRoleArrayOutput struct{ *pulumi.OutputState }
func (GetAuthScopeRoleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAuthScopeRole)(nil)).Elem()
}
func (o GetAuthScopeRoleArrayOutput) ToGetAuthScopeRoleArrayOutput() GetAuthScopeRoleArrayOutput {
return o
}
func (o GetAuthScopeRoleArrayOutput) ToGetAuthScopeRoleArrayOutputWithContext(ctx context.Context) GetAuthScopeRoleArrayOutput {
return o
}
func (o GetAuthScopeRoleArrayOutput) Index(i pulumi.IntInput) GetAuthScopeRoleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetAuthScopeRole {
return vs[0].([]GetAuthScopeRole)[vs[1].(int)]
}).(GetAuthScopeRoleOutput)
}
func init() {
pulumi.RegisterOutputType(ApplicationCredentialAccessRuleOutput{})
pulumi.RegisterOutputType(ApplicationCredentialAccessRuleArrayOutput{})
pulumi.RegisterOutputType(UserMultiFactorAuthRuleOutput{})
pulumi.RegisterOutputType(UserMultiFactorAuthRuleArrayOutput{})
pulumi.RegisterOutputType(GetAuthScopeRoleOutput{})
pulumi.RegisterOutputType(GetAuthScopeRoleArrayOutput{})
}