/
models.go
402 lines (301 loc) · 11.6 KB
/
models.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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armblockchain
import "time"
// APIKey - API key payload which is exposed in the request/response of the resource provider.
type APIKey struct {
// Gets or sets the API key name.
KeyName *string
// Gets or sets the API key value.
Value *string
}
// APIKeyCollection - Collection of the API key payload which is exposed in the response of the resource provider.
type APIKeyCollection struct {
// Gets or sets the collection of API key.
Keys []*APIKey
}
// Consortium payload
type Consortium struct {
// Gets or sets the blockchain member name.
Name *string
// Gets or sets the protocol for the consortium.
Protocol *BlockchainProtocol
}
// ConsortiumCollection - Collection of the consortium payload.
type ConsortiumCollection struct {
// Gets or sets the collection of consortiums.
Value []*Consortium
}
// ConsortiumMember - Consortium approval
type ConsortiumMember struct {
// Gets the consortium member modified date.
DateModified *time.Time
// Gets the consortium member display name.
DisplayName *string
// Gets the consortium member join date.
JoinDate *time.Time
// Gets the consortium member name.
Name *string
// Gets the consortium member role.
Role *string
// Gets the consortium member status.
Status *string
// Gets the consortium member subscription id.
SubscriptionID *string
}
// ConsortiumMemberCollection - Collection of consortium payload.
type ConsortiumMemberCollection struct {
// Gets or sets the URL, that the client should use to fetch the next page (per server side paging). It's null for now, added
// for future use.
NextLink *string
// Gets or sets the collection of consortiums.
Value []*ConsortiumMember
}
// FirewallRule - Ip range for firewall rules
type FirewallRule struct {
// Gets or sets the end IP address of the firewall rule range.
EndIPAddress *string
// Gets or sets the name of the firewall rules.
RuleName *string
// Gets or sets the start IP address of the firewall rule range.
StartIPAddress *string
}
// Member - Payload of the blockchain member which is exposed in the request/response of the resource provider.
type Member struct {
// The GEO location of the blockchain service.
Location *string
// Gets or sets the blockchain member properties.
Properties *MemberProperties
// Gets or sets the blockchain member Sku.
SKU *SKU
// Tags of the service which is a list of key value pairs that describes the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified resource Id of the resource.
ID *string
// READ-ONLY; The name of the resource.
Name *string
// READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain"
Type *string
}
// MemberCollection - Collection of the blockchain member payload which is exposed in the request/response of the resource
// provider.
type MemberCollection struct {
// Gets or sets the URL, that the client should use to fetch the next page (per server side paging). It's null for now, added
// for future use.
NextLink *string
// Gets or sets the collection of blockchain members.
Value []*Member
}
// MemberNodesSKU - Payload of the blockchain member nodes Sku for a blockchain member.
type MemberNodesSKU struct {
// Gets or sets the nodes capacity.
Capacity *int32
}
// MemberProperties - Payload of the blockchain member properties for a blockchain member.
type MemberProperties struct {
// Gets or sets the consortium for the blockchain member.
Consortium *string
// Sets the managed consortium management account password.
ConsortiumManagementAccountPassword *string
// Gets the display name of the member in the consortium.
ConsortiumMemberDisplayName *string
// Gets the role of the member in the consortium.
ConsortiumRole *string
// Gets or sets firewall rules
FirewallRules []*FirewallRule
// Sets the basic auth password of the blockchain member.
Password *string
// Gets or sets the blockchain protocol.
Protocol *BlockchainProtocol
// Gets or sets the blockchain validator nodes Sku.
ValidatorNodesSKU *MemberNodesSKU
// READ-ONLY; Gets the managed consortium management account address.
ConsortiumManagementAccountAddress *string
// READ-ONLY; Gets the dns endpoint of the blockchain member.
DNS *string
// READ-ONLY; Gets or sets the blockchain member provision state.
ProvisioningState *BlockchainMemberProvisioningState
// READ-ONLY; Gets the public key of the blockchain member (default transaction node).
PublicKey *string
// READ-ONLY; Gets the Ethereum root contract address of the blockchain.
RootContractAddress *string
// READ-ONLY; Gets the auth user name of the blockchain member.
UserName *string
}
// MemberPropertiesUpdate - Update the payload of the blockchain member properties for a blockchain member.
type MemberPropertiesUpdate struct {
// Sets the managed consortium management account password.
ConsortiumManagementAccountPassword *string
// Gets or sets the firewall rules.
FirewallRules []*FirewallRule
// Sets the transaction node dns endpoint basic auth password.
Password *string
}
// MemberUpdate - Update the payload of the blockchain member which is exposed in the request/response of the resource provider.
type MemberUpdate struct {
// Gets or sets the blockchain member update properties.
Properties *MemberPropertiesUpdate
// Tags of the service which is a list of key value pairs that describes the resource.
Tags map[string]*string
}
// NameAvailability - Name availability payload which is exposed in the response of the resource provider.
type NameAvailability struct {
// Gets or sets the message.
Message *string
// Gets or sets the value indicating whether the name is available.
NameAvailable *bool
// Gets or sets the name availability reason.
Reason *NameAvailabilityReason
}
// NameAvailabilityRequest - Name availability request payload which is exposed in the request of the resource provider.
type NameAvailabilityRequest struct {
// Gets or sets the name to check.
Name *string
// Gets or sets the type of the resource to check.
Type *string
}
// OperationResult - Operation result payload which is exposed in the response of the resource provider.
type OperationResult struct {
// Gets or sets the operation end time.
EndTime *time.Time
// Gets or sets the operation name.
Name *string
// Gets or sets the operation start time.
StartTime *time.Time
}
// Resource - The core properties of the resources.
type Resource struct {
// READ-ONLY; Fully qualified resource Id of the resource.
ID *string
// READ-ONLY; The name of the resource.
Name *string
// READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain"
Type *string
}
// ResourceProviderOperation - Operation payload which is exposed in the response of the resource provider.
type ResourceProviderOperation struct {
// Gets or sets operation display
Display *ResourceProviderOperationDisplay
// Gets or sets a value indicating whether the operation is a data action or not.
IsDataAction *bool
// Gets or sets the operation name.
Name *string
// Gets or sets the origin.
Origin *string
}
// ResourceProviderOperationCollection - Collection of operation payload which is exposed in the response of the resource
// provider.
type ResourceProviderOperationCollection struct {
// Gets or sets the URL, that the client should use to fetch the next page (per server side paging). It's null for now, added
// for future use.
NextLink *string
// Gets or sets the collection of operations.
Value []*ResourceProviderOperation
}
// ResourceProviderOperationDisplay - Operation display payload which is exposed in the response of the resource provider.
type ResourceProviderOperationDisplay struct {
// Gets or sets the description of the provider for display purposes.
Description *string
// Gets or sets the name of the operation for display purposes.
Operation *string
// Gets or sets the name of the provider for display purposes.
Provider *string
// Gets or sets the name of the resource type for display purposes.
Resource *string
}
// ResourceTypeSKU - Resource type Sku.
type ResourceTypeSKU struct {
// Gets or sets the resource type
ResourceType *string
// Gets or sets the Skus
SKUs []*SKUSetting
}
// ResourceTypeSKUCollection - Collection of the resource type Sku.
type ResourceTypeSKUCollection struct {
// Gets or sets the collection of resource type Sku.
Value []*ResourceTypeSKU
}
// SKU - Blockchain member Sku in payload
type SKU struct {
// Gets or sets Sku name
Name *string
// Gets or sets Sku tier
Tier *string
}
// SKUSetting - Sku Setting.
type SKUSetting struct {
// Gets or sets the locations.
Locations []*string
// Gets or sets the Sku name.
Name *string
// Gets or sets the required features.
RequiredFeatures []*string
// Gets or sets the Sku tier.
Tier *string
}
// TrackedResource - The resource model definition for a top level resource.
type TrackedResource struct {
// The GEO location of the blockchain service.
Location *string
// Tags of the service which is a list of key value pairs that describes the resource.
Tags map[string]*string
// READ-ONLY; Fully qualified resource Id of the resource.
ID *string
// READ-ONLY; The name of the resource.
Name *string
// READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain"
Type *string
}
// TransactionNode - Payload of the transaction node which is the request/response of the resource provider.
type TransactionNode struct {
// Gets or sets the transaction node location.
Location *string
// Gets or sets the blockchain member properties.
Properties *TransactionNodeProperties
// READ-ONLY; Fully qualified resource Id of the resource.
ID *string
// READ-ONLY; The name of the resource.
Name *string
// READ-ONLY; The type of the service - e.g. "Microsoft.Blockchain"
Type *string
}
// TransactionNodeCollection - Collection of transaction node payload which is exposed in the request/response of the resource
// provider.
type TransactionNodeCollection struct {
// Gets or sets the URL, that the client should use to fetch the next page (per server side paging). It's null for now, added
// for future use.
NextLink *string
// Gets or sets the collection of transaction nodes.
Value []*TransactionNode
}
// TransactionNodeProperties - Payload of transaction node properties payload in the transaction node payload.
type TransactionNodeProperties struct {
// Gets or sets the firewall rules.
FirewallRules []*FirewallRule
// Sets the transaction node dns endpoint basic auth password.
Password *string
// READ-ONLY; Gets or sets the transaction node dns endpoint.
DNS *string
// READ-ONLY; Gets or sets the blockchain member provision state.
ProvisioningState *NodeProvisioningState
// READ-ONLY; Gets or sets the transaction node public key.
PublicKey *string
// READ-ONLY; Gets or sets the transaction node dns endpoint basic auth user name.
UserName *string
}
// TransactionNodePropertiesUpdate - Update the payload of the transaction node properties in the transaction node payload.
type TransactionNodePropertiesUpdate struct {
// Gets or sets the firewall rules.
FirewallRules []*FirewallRule
// Sets the transaction node dns endpoint basic auth password.
Password *string
}
// TransactionNodeUpdate - Update the transaction node payload which is exposed in the request/response of the resource provider.
type TransactionNodeUpdate struct {
// Gets or sets the transaction node update properties.
Properties *TransactionNodePropertiesUpdate
}