-
Notifications
You must be signed in to change notification settings - Fork 50
/
integrationAccountSchema.go
361 lines (309 loc) · 16.4 KB
/
integrationAccountSchema.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
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package logicapps
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a Logic App Integration Account Schema.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/logicapps"
// "github.com/pulumi/pulumi-std/sdk/go/std"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
// Name: pulumi.String("example-resources"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{
// Name: pulumi.String("example-ia"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// SkuName: pulumi.String("Basic"),
// })
// if err != nil {
// return err
// }
// invokeFile, err := std.File(ctx, &std.FileArgs{
// Input: "testdata/integration_account_schema_content.xsd",
// }, nil)
// if err != nil {
// return err
// }
// _, err = logicapps.NewIntegrationAccountSchema(ctx, "example", &logicapps.IntegrationAccountSchemaArgs{
// Name: pulumi.String("example-ias"),
// ResourceGroupName: example.Name,
// IntegrationAccountName: exampleIntegrationAccount.Name,
// Content: invokeFile.Result,
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Logic App Integration Account Schemas can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:logicapps/integrationAccountSchema:IntegrationAccountSchema example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/schemas/schema1
// ```
type IntegrationAccountSchema struct {
pulumi.CustomResourceState
// The content of the Logic App Integration Account Schema.
Content pulumi.StringOutput `pulumi:"content"`
// The file name of the Logic App Integration Account Schema.
FileName pulumi.StringPtrOutput `pulumi:"fileName"`
// The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created.
IntegrationAccountName pulumi.StringOutput `pulumi:"integrationAccountName"`
// The metadata of the Logic App Integration Account Schema.
Metadata pulumi.StringPtrOutput `pulumi:"metadata"`
// The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created.
Name pulumi.StringOutput `pulumi:"name"`
// The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
}
// NewIntegrationAccountSchema registers a new resource with the given unique name, arguments, and options.
func NewIntegrationAccountSchema(ctx *pulumi.Context,
name string, args *IntegrationAccountSchemaArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountSchema, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Content == nil {
return nil, errors.New("invalid value for required argument 'Content'")
}
if args.IntegrationAccountName == nil {
return nil, errors.New("invalid value for required argument 'IntegrationAccountName'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource IntegrationAccountSchema
err := ctx.RegisterResource("azure:logicapps/integrationAccountSchema:IntegrationAccountSchema", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetIntegrationAccountSchema gets an existing IntegrationAccountSchema resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetIntegrationAccountSchema(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *IntegrationAccountSchemaState, opts ...pulumi.ResourceOption) (*IntegrationAccountSchema, error) {
var resource IntegrationAccountSchema
err := ctx.ReadResource("azure:logicapps/integrationAccountSchema:IntegrationAccountSchema", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering IntegrationAccountSchema resources.
type integrationAccountSchemaState struct {
// The content of the Logic App Integration Account Schema.
Content *string `pulumi:"content"`
// The file name of the Logic App Integration Account Schema.
FileName *string `pulumi:"fileName"`
// The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created.
IntegrationAccountName *string `pulumi:"integrationAccountName"`
// The metadata of the Logic App Integration Account Schema.
Metadata *string `pulumi:"metadata"`
// The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created.
Name *string `pulumi:"name"`
// The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
}
type IntegrationAccountSchemaState struct {
// The content of the Logic App Integration Account Schema.
Content pulumi.StringPtrInput
// The file name of the Logic App Integration Account Schema.
FileName pulumi.StringPtrInput
// The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created.
IntegrationAccountName pulumi.StringPtrInput
// The metadata of the Logic App Integration Account Schema.
Metadata pulumi.StringPtrInput
// The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created.
Name pulumi.StringPtrInput
// The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created.
ResourceGroupName pulumi.StringPtrInput
}
func (IntegrationAccountSchemaState) ElementType() reflect.Type {
return reflect.TypeOf((*integrationAccountSchemaState)(nil)).Elem()
}
type integrationAccountSchemaArgs struct {
// The content of the Logic App Integration Account Schema.
Content string `pulumi:"content"`
// The file name of the Logic App Integration Account Schema.
FileName *string `pulumi:"fileName"`
// The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created.
IntegrationAccountName string `pulumi:"integrationAccountName"`
// The metadata of the Logic App Integration Account Schema.
Metadata *string `pulumi:"metadata"`
// The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created.
Name *string `pulumi:"name"`
// The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// The set of arguments for constructing a IntegrationAccountSchema resource.
type IntegrationAccountSchemaArgs struct {
// The content of the Logic App Integration Account Schema.
Content pulumi.StringInput
// The file name of the Logic App Integration Account Schema.
FileName pulumi.StringPtrInput
// The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created.
IntegrationAccountName pulumi.StringInput
// The metadata of the Logic App Integration Account Schema.
Metadata pulumi.StringPtrInput
// The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created.
Name pulumi.StringPtrInput
// The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created.
ResourceGroupName pulumi.StringInput
}
func (IntegrationAccountSchemaArgs) ElementType() reflect.Type {
return reflect.TypeOf((*integrationAccountSchemaArgs)(nil)).Elem()
}
type IntegrationAccountSchemaInput interface {
pulumi.Input
ToIntegrationAccountSchemaOutput() IntegrationAccountSchemaOutput
ToIntegrationAccountSchemaOutputWithContext(ctx context.Context) IntegrationAccountSchemaOutput
}
func (*IntegrationAccountSchema) ElementType() reflect.Type {
return reflect.TypeOf((**IntegrationAccountSchema)(nil)).Elem()
}
func (i *IntegrationAccountSchema) ToIntegrationAccountSchemaOutput() IntegrationAccountSchemaOutput {
return i.ToIntegrationAccountSchemaOutputWithContext(context.Background())
}
func (i *IntegrationAccountSchema) ToIntegrationAccountSchemaOutputWithContext(ctx context.Context) IntegrationAccountSchemaOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSchemaOutput)
}
// IntegrationAccountSchemaArrayInput is an input type that accepts IntegrationAccountSchemaArray and IntegrationAccountSchemaArrayOutput values.
// You can construct a concrete instance of `IntegrationAccountSchemaArrayInput` via:
//
// IntegrationAccountSchemaArray{ IntegrationAccountSchemaArgs{...} }
type IntegrationAccountSchemaArrayInput interface {
pulumi.Input
ToIntegrationAccountSchemaArrayOutput() IntegrationAccountSchemaArrayOutput
ToIntegrationAccountSchemaArrayOutputWithContext(context.Context) IntegrationAccountSchemaArrayOutput
}
type IntegrationAccountSchemaArray []IntegrationAccountSchemaInput
func (IntegrationAccountSchemaArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*IntegrationAccountSchema)(nil)).Elem()
}
func (i IntegrationAccountSchemaArray) ToIntegrationAccountSchemaArrayOutput() IntegrationAccountSchemaArrayOutput {
return i.ToIntegrationAccountSchemaArrayOutputWithContext(context.Background())
}
func (i IntegrationAccountSchemaArray) ToIntegrationAccountSchemaArrayOutputWithContext(ctx context.Context) IntegrationAccountSchemaArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSchemaArrayOutput)
}
// IntegrationAccountSchemaMapInput is an input type that accepts IntegrationAccountSchemaMap and IntegrationAccountSchemaMapOutput values.
// You can construct a concrete instance of `IntegrationAccountSchemaMapInput` via:
//
// IntegrationAccountSchemaMap{ "key": IntegrationAccountSchemaArgs{...} }
type IntegrationAccountSchemaMapInput interface {
pulumi.Input
ToIntegrationAccountSchemaMapOutput() IntegrationAccountSchemaMapOutput
ToIntegrationAccountSchemaMapOutputWithContext(context.Context) IntegrationAccountSchemaMapOutput
}
type IntegrationAccountSchemaMap map[string]IntegrationAccountSchemaInput
func (IntegrationAccountSchemaMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*IntegrationAccountSchema)(nil)).Elem()
}
func (i IntegrationAccountSchemaMap) ToIntegrationAccountSchemaMapOutput() IntegrationAccountSchemaMapOutput {
return i.ToIntegrationAccountSchemaMapOutputWithContext(context.Background())
}
func (i IntegrationAccountSchemaMap) ToIntegrationAccountSchemaMapOutputWithContext(ctx context.Context) IntegrationAccountSchemaMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSchemaMapOutput)
}
type IntegrationAccountSchemaOutput struct{ *pulumi.OutputState }
func (IntegrationAccountSchemaOutput) ElementType() reflect.Type {
return reflect.TypeOf((**IntegrationAccountSchema)(nil)).Elem()
}
func (o IntegrationAccountSchemaOutput) ToIntegrationAccountSchemaOutput() IntegrationAccountSchemaOutput {
return o
}
func (o IntegrationAccountSchemaOutput) ToIntegrationAccountSchemaOutputWithContext(ctx context.Context) IntegrationAccountSchemaOutput {
return o
}
// The content of the Logic App Integration Account Schema.
func (o IntegrationAccountSchemaOutput) Content() pulumi.StringOutput {
return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringOutput { return v.Content }).(pulumi.StringOutput)
}
// The file name of the Logic App Integration Account Schema.
func (o IntegrationAccountSchemaOutput) FileName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringPtrOutput { return v.FileName }).(pulumi.StringPtrOutput)
}
// The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created.
func (o IntegrationAccountSchemaOutput) IntegrationAccountName() pulumi.StringOutput {
return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringOutput { return v.IntegrationAccountName }).(pulumi.StringOutput)
}
// The metadata of the Logic App Integration Account Schema.
func (o IntegrationAccountSchemaOutput) Metadata() pulumi.StringPtrOutput {
return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringPtrOutput { return v.Metadata }).(pulumi.StringPtrOutput)
}
// The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created.
func (o IntegrationAccountSchemaOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created.
func (o IntegrationAccountSchemaOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *IntegrationAccountSchema) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
type IntegrationAccountSchemaArrayOutput struct{ *pulumi.OutputState }
func (IntegrationAccountSchemaArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*IntegrationAccountSchema)(nil)).Elem()
}
func (o IntegrationAccountSchemaArrayOutput) ToIntegrationAccountSchemaArrayOutput() IntegrationAccountSchemaArrayOutput {
return o
}
func (o IntegrationAccountSchemaArrayOutput) ToIntegrationAccountSchemaArrayOutputWithContext(ctx context.Context) IntegrationAccountSchemaArrayOutput {
return o
}
func (o IntegrationAccountSchemaArrayOutput) Index(i pulumi.IntInput) IntegrationAccountSchemaOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *IntegrationAccountSchema {
return vs[0].([]*IntegrationAccountSchema)[vs[1].(int)]
}).(IntegrationAccountSchemaOutput)
}
type IntegrationAccountSchemaMapOutput struct{ *pulumi.OutputState }
func (IntegrationAccountSchemaMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*IntegrationAccountSchema)(nil)).Elem()
}
func (o IntegrationAccountSchemaMapOutput) ToIntegrationAccountSchemaMapOutput() IntegrationAccountSchemaMapOutput {
return o
}
func (o IntegrationAccountSchemaMapOutput) ToIntegrationAccountSchemaMapOutputWithContext(ctx context.Context) IntegrationAccountSchemaMapOutput {
return o
}
func (o IntegrationAccountSchemaMapOutput) MapIndex(k pulumi.StringInput) IntegrationAccountSchemaOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *IntegrationAccountSchema {
return vs[0].(map[string]*IntegrationAccountSchema)[vs[1].(string)]
}).(IntegrationAccountSchemaOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountSchemaInput)(nil)).Elem(), &IntegrationAccountSchema{})
pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountSchemaArrayInput)(nil)).Elem(), IntegrationAccountSchemaArray{})
pulumi.RegisterInputType(reflect.TypeOf((*IntegrationAccountSchemaMapInput)(nil)).Elem(), IntegrationAccountSchemaMap{})
pulumi.RegisterOutputType(IntegrationAccountSchemaOutput{})
pulumi.RegisterOutputType(IntegrationAccountSchemaArrayOutput{})
pulumi.RegisterOutputType(IntegrationAccountSchemaMapOutput{})
}