This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
/
integrationAccountAgreement.go
267 lines (243 loc) · 8.89 KB
/
integrationAccountAgreement.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
// *** 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 v20150801preview
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
type IntegrationAccountAgreement struct {
pulumi.CustomResourceState
// The agreement type.
AgreementType pulumi.StringPtrOutput `pulumi:"agreementType"`
// The changed time.
ChangedTime pulumi.StringOutput `pulumi:"changedTime"`
// The agreement content.
Content AgreementContentResponsePtrOutput `pulumi:"content"`
// The created time.
CreatedTime pulumi.StringOutput `pulumi:"createdTime"`
// The guest identity.
GuestIdentity BusinessIdentityResponsePtrOutput `pulumi:"guestIdentity"`
// The guest partner.
GuestPartner pulumi.StringPtrOutput `pulumi:"guestPartner"`
// The host identity.
HostIdentity BusinessIdentityResponsePtrOutput `pulumi:"hostIdentity"`
// The host partner.
HostPartner pulumi.StringPtrOutput `pulumi:"hostPartner"`
// The resource location.
Location pulumi.StringPtrOutput `pulumi:"location"`
// The metadata.
Metadata pulumi.AnyOutput `pulumi:"metadata"`
// The resource name.
Name pulumi.StringPtrOutput `pulumi:"name"`
// The resource tags.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// The resource type.
Type pulumi.StringPtrOutput `pulumi:"type"`
}
// NewIntegrationAccountAgreement registers a new resource with the given unique name, arguments, and options.
func NewIntegrationAccountAgreement(ctx *pulumi.Context,
name string, args *IntegrationAccountAgreementArgs, opts ...pulumi.ResourceOption) (*IntegrationAccountAgreement, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AgreementName == nil {
return nil, errors.New("invalid value for required argument 'AgreementName'")
}
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'")
}
aliases := pulumi.Aliases([]pulumi.Alias{
{
Type: pulumi.String("azure-nextgen:logic/latest:IntegrationAccountAgreement"),
},
{
Type: pulumi.String("azure-nextgen:logic/v20160601:IntegrationAccountAgreement"),
},
{
Type: pulumi.String("azure-nextgen:logic/v20180701preview:IntegrationAccountAgreement"),
},
{
Type: pulumi.String("azure-nextgen:logic/v20190501:IntegrationAccountAgreement"),
},
})
opts = append(opts, aliases)
var resource IntegrationAccountAgreement
err := ctx.RegisterResource("azure-nextgen:logic/v20150801preview:IntegrationAccountAgreement", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetIntegrationAccountAgreement gets an existing IntegrationAccountAgreement 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 GetIntegrationAccountAgreement(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *IntegrationAccountAgreementState, opts ...pulumi.ResourceOption) (*IntegrationAccountAgreement, error) {
var resource IntegrationAccountAgreement
err := ctx.ReadResource("azure-nextgen:logic/v20150801preview:IntegrationAccountAgreement", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering IntegrationAccountAgreement resources.
type integrationAccountAgreementState struct {
// The agreement type.
AgreementType *string `pulumi:"agreementType"`
// The changed time.
ChangedTime *string `pulumi:"changedTime"`
// The agreement content.
Content *AgreementContentResponse `pulumi:"content"`
// The created time.
CreatedTime *string `pulumi:"createdTime"`
// The guest identity.
GuestIdentity *BusinessIdentityResponse `pulumi:"guestIdentity"`
// The guest partner.
GuestPartner *string `pulumi:"guestPartner"`
// The host identity.
HostIdentity *BusinessIdentityResponse `pulumi:"hostIdentity"`
// The host partner.
HostPartner *string `pulumi:"hostPartner"`
// The resource location.
Location *string `pulumi:"location"`
// The metadata.
Metadata interface{} `pulumi:"metadata"`
// The resource name.
Name *string `pulumi:"name"`
// The resource tags.
Tags map[string]string `pulumi:"tags"`
// The resource type.
Type *string `pulumi:"type"`
}
type IntegrationAccountAgreementState struct {
// The agreement type.
AgreementType pulumi.StringPtrInput
// The changed time.
ChangedTime pulumi.StringPtrInput
// The agreement content.
Content AgreementContentResponsePtrInput
// The created time.
CreatedTime pulumi.StringPtrInput
// The guest identity.
GuestIdentity BusinessIdentityResponsePtrInput
// The guest partner.
GuestPartner pulumi.StringPtrInput
// The host identity.
HostIdentity BusinessIdentityResponsePtrInput
// The host partner.
HostPartner pulumi.StringPtrInput
// The resource location.
Location pulumi.StringPtrInput
// The metadata.
Metadata pulumi.Input
// The resource name.
Name pulumi.StringPtrInput
// The resource tags.
Tags pulumi.StringMapInput
// The resource type.
Type pulumi.StringPtrInput
}
func (IntegrationAccountAgreementState) ElementType() reflect.Type {
return reflect.TypeOf((*integrationAccountAgreementState)(nil)).Elem()
}
type integrationAccountAgreementArgs struct {
// The integration account agreement name.
AgreementName string `pulumi:"agreementName"`
// The agreement type.
AgreementType *string `pulumi:"agreementType"`
// The agreement content.
Content *AgreementContent `pulumi:"content"`
// The guest identity.
GuestIdentity *BusinessIdentity `pulumi:"guestIdentity"`
// The guest partner.
GuestPartner *string `pulumi:"guestPartner"`
// The host identity.
HostIdentity *BusinessIdentity `pulumi:"hostIdentity"`
// The host partner.
HostPartner *string `pulumi:"hostPartner"`
// The resource id.
Id *string `pulumi:"id"`
// The integration account name.
IntegrationAccountName string `pulumi:"integrationAccountName"`
// The resource location.
Location *string `pulumi:"location"`
// The metadata.
Metadata interface{} `pulumi:"metadata"`
// The resource name.
Name *string `pulumi:"name"`
// The resource group name.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The resource tags.
Tags map[string]string `pulumi:"tags"`
// The resource type.
Type *string `pulumi:"type"`
}
// The set of arguments for constructing a IntegrationAccountAgreement resource.
type IntegrationAccountAgreementArgs struct {
// The integration account agreement name.
AgreementName pulumi.StringInput
// The agreement type.
AgreementType *AgreementType
// The agreement content.
Content AgreementContentPtrInput
// The guest identity.
GuestIdentity BusinessIdentityPtrInput
// The guest partner.
GuestPartner pulumi.StringPtrInput
// The host identity.
HostIdentity BusinessIdentityPtrInput
// The host partner.
HostPartner pulumi.StringPtrInput
// The resource id.
Id pulumi.StringPtrInput
// The integration account name.
IntegrationAccountName pulumi.StringInput
// The resource location.
Location pulumi.StringPtrInput
// The metadata.
Metadata pulumi.Input
// The resource name.
Name pulumi.StringPtrInput
// The resource group name.
ResourceGroupName pulumi.StringInput
// The resource tags.
Tags pulumi.StringMapInput
// The resource type.
Type pulumi.StringPtrInput
}
func (IntegrationAccountAgreementArgs) ElementType() reflect.Type {
return reflect.TypeOf((*integrationAccountAgreementArgs)(nil)).Elem()
}
type IntegrationAccountAgreementInput interface {
pulumi.Input
ToIntegrationAccountAgreementOutput() IntegrationAccountAgreementOutput
ToIntegrationAccountAgreementOutputWithContext(ctx context.Context) IntegrationAccountAgreementOutput
}
func (*IntegrationAccountAgreement) ElementType() reflect.Type {
return reflect.TypeOf((*IntegrationAccountAgreement)(nil))
}
func (i *IntegrationAccountAgreement) ToIntegrationAccountAgreementOutput() IntegrationAccountAgreementOutput {
return i.ToIntegrationAccountAgreementOutputWithContext(context.Background())
}
func (i *IntegrationAccountAgreement) ToIntegrationAccountAgreementOutputWithContext(ctx context.Context) IntegrationAccountAgreementOutput {
return pulumi.ToOutputWithContext(ctx, i).(IntegrationAccountAgreementOutput)
}
type IntegrationAccountAgreementOutput struct {
*pulumi.OutputState
}
func (IntegrationAccountAgreementOutput) ElementType() reflect.Type {
return reflect.TypeOf((*IntegrationAccountAgreement)(nil))
}
func (o IntegrationAccountAgreementOutput) ToIntegrationAccountAgreementOutput() IntegrationAccountAgreementOutput {
return o
}
func (o IntegrationAccountAgreementOutput) ToIntegrationAccountAgreementOutputWithContext(ctx context.Context) IntegrationAccountAgreementOutput {
return o
}
func init() {
pulumi.RegisterOutputType(IntegrationAccountAgreementOutput{})
}