This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
integrationAccountSchema.go
265 lines (241 loc) · 8.6 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
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20190501
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// The integration account schema.
type IntegrationAccountSchema struct {
pulumi.CustomResourceState
// The changed time.
ChangedTime pulumi.StringOutput `pulumi:"changedTime"`
// The content.
Content pulumi.StringPtrOutput `pulumi:"content"`
// The content link.
ContentLink ContentLinkResponseOutput `pulumi:"contentLink"`
// The content type.
ContentType pulumi.StringPtrOutput `pulumi:"contentType"`
// The created time.
CreatedTime pulumi.StringOutput `pulumi:"createdTime"`
// The document name.
DocumentName pulumi.StringPtrOutput `pulumi:"documentName"`
// The file name.
FileName pulumi.StringPtrOutput `pulumi:"fileName"`
// The resource location.
Location pulumi.StringPtrOutput `pulumi:"location"`
// The metadata.
Metadata pulumi.AnyOutput `pulumi:"metadata"`
// Gets the resource name.
Name pulumi.StringOutput `pulumi:"name"`
// The schema type.
SchemaType pulumi.StringOutput `pulumi:"schemaType"`
// The resource tags.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// The target namespace of the schema.
TargetNamespace pulumi.StringPtrOutput `pulumi:"targetNamespace"`
// Gets the resource type.
Type pulumi.StringOutput `pulumi:"type"`
}
// 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.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'")
}
if args.SchemaName == nil {
return nil, errors.New("invalid value for required argument 'SchemaName'")
}
if args.SchemaType == nil {
return nil, errors.New("invalid value for required argument 'SchemaType'")
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure-nextgen:logic/latest:IntegrationAccountSchema"),
},
{
Type: pulumi.String("azure-nextgen:logic/v20150801preview:IntegrationAccountSchema"),
},
{
Type: pulumi.String("azure-nextgen:logic/v20160601:IntegrationAccountSchema"),
},
{
Type: pulumi.String("azure-nextgen:logic/v20180701preview:IntegrationAccountSchema"),
},
})
opts = append(opts, aliases)
var resource IntegrationAccountSchema
err := ctx.RegisterResource("azure-nextgen:logic/v20190501: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-nextgen:logic/v20190501: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 changed time.
ChangedTime *string `pulumi:"changedTime"`
// The content.
Content *string `pulumi:"content"`
// The content link.
ContentLink *ContentLinkResponse `pulumi:"contentLink"`
// The content type.
ContentType *string `pulumi:"contentType"`
// The created time.
CreatedTime *string `pulumi:"createdTime"`
// The document name.
DocumentName *string `pulumi:"documentName"`
// The file name.
FileName *string `pulumi:"fileName"`
// The resource location.
Location *string `pulumi:"location"`
// The metadata.
Metadata interface{} `pulumi:"metadata"`
// Gets the resource name.
Name *string `pulumi:"name"`
// The schema type.
SchemaType *string `pulumi:"schemaType"`
// The resource tags.
Tags map[string]string `pulumi:"tags"`
// The target namespace of the schema.
TargetNamespace *string `pulumi:"targetNamespace"`
// Gets the resource type.
Type *string `pulumi:"type"`
}
type IntegrationAccountSchemaState struct {
// The changed time.
ChangedTime pulumi.StringPtrInput
// The content.
Content pulumi.StringPtrInput
// The content link.
ContentLink ContentLinkResponsePtrInput
// The content type.
ContentType pulumi.StringPtrInput
// The created time.
CreatedTime pulumi.StringPtrInput
// The document name.
DocumentName pulumi.StringPtrInput
// The file name.
FileName pulumi.StringPtrInput
// The resource location.
Location pulumi.StringPtrInput
// The metadata.
Metadata pulumi.Input
// Gets the resource name.
Name pulumi.StringPtrInput
// The schema type.
SchemaType pulumi.StringPtrInput
// The resource tags.
Tags pulumi.StringMapInput
// The target namespace of the schema.
TargetNamespace pulumi.StringPtrInput
// Gets the resource type.
Type pulumi.StringPtrInput
}
func (IntegrationAccountSchemaState) ElementType() reflect.Type {
return reflect.TypeOf((*integrationAccountSchemaState)(nil)).Elem()
}
type integrationAccountSchemaArgs struct {
// The content.
Content *string `pulumi:"content"`
// The content type.
ContentType *string `pulumi:"contentType"`
// The document name.
DocumentName *string `pulumi:"documentName"`
// The file name.
FileName *string `pulumi:"fileName"`
// The integration account name.
IntegrationAccountName string `pulumi:"integrationAccountName"`
// The resource location.
Location *string `pulumi:"location"`
// The metadata.
Metadata interface{} `pulumi:"metadata"`
// The resource group name.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The integration account schema name.
SchemaName string `pulumi:"schemaName"`
// The schema type.
SchemaType string `pulumi:"schemaType"`
// The resource tags.
Tags map[string]string `pulumi:"tags"`
// The target namespace of the schema.
TargetNamespace *string `pulumi:"targetNamespace"`
}
// The set of arguments for constructing a IntegrationAccountSchema resource.
type IntegrationAccountSchemaArgs struct {
// The content.
Content pulumi.StringPtrInput
// The content type.
ContentType pulumi.StringPtrInput
// The document name.
DocumentName pulumi.StringPtrInput
// The file name.
FileName pulumi.StringPtrInput
// The integration account name.
IntegrationAccountName pulumi.StringInput
// The resource location.
Location pulumi.StringPtrInput
// The metadata.
Metadata pulumi.Input
// The resource group name.
ResourceGroupName pulumi.StringInput
// The integration account schema name.
SchemaName pulumi.StringInput
// The schema type.
SchemaType pulumi.StringInput
// The resource tags.
Tags pulumi.StringMapInput
// The target namespace of the schema.
TargetNamespace pulumi.StringPtrInput
}
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))
}
func (i *IntegrationAccountSchema) ToIntegrationAccountSchemaOutput() IntegrationAccountSchemaOutput {
return i.ToIntegrationAccountSchemaOutputWithContext(context.Background())
}
func (i *IntegrationAccountSchema) ToIntegrationAccountSchemaOutputWithContext(ctx context.Context) IntegrationAccountSchemaOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountSchemaOutput)
}
type IntegrationAccountSchemaOutput struct {
*pulumi.OutputState
}
func (IntegrationAccountSchemaOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IntegrationAccountSchema)(nil))
}
func (o IntegrationAccountSchemaOutput) ToIntegrationAccountSchemaOutput() IntegrationAccountSchemaOutput {
return o
}
func (o IntegrationAccountSchemaOutput) ToIntegrationAccountSchemaOutputWithContext(ctx context.Context) IntegrationAccountSchemaOutput {
return o
}
func init() {
pulumi.RegisterOutputType(IntegrationAccountSchemaOutput{})
}