forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
452 lines (394 loc) · 20.3 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
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
package account
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"github.com/satori/go.uuid"
"net/http"
)
// DataLakeStoreAccountState enumerates the values for data lake store account state.
type DataLakeStoreAccountState string
const (
// Active specifies the active state for data lake store account state.
Active DataLakeStoreAccountState = "Active"
// Suspended specifies the suspended state for data lake store account state.
Suspended DataLakeStoreAccountState = "Suspended"
)
// DataLakeStoreAccountStatus enumerates the values for data lake store account status.
type DataLakeStoreAccountStatus string
const (
// Canceled specifies the canceled state for data lake store account status.
Canceled DataLakeStoreAccountStatus = "Canceled"
// Creating specifies the creating state for data lake store account status.
Creating DataLakeStoreAccountStatus = "Creating"
// Deleted specifies the deleted state for data lake store account status.
Deleted DataLakeStoreAccountStatus = "Deleted"
// Deleting specifies the deleting state for data lake store account status.
Deleting DataLakeStoreAccountStatus = "Deleting"
// Failed specifies the failed state for data lake store account status.
Failed DataLakeStoreAccountStatus = "Failed"
// Patching specifies the patching state for data lake store account status.
Patching DataLakeStoreAccountStatus = "Patching"
// Resuming specifies the resuming state for data lake store account status.
Resuming DataLakeStoreAccountStatus = "Resuming"
// Running specifies the running state for data lake store account status.
Running DataLakeStoreAccountStatus = "Running"
// Succeeded specifies the succeeded state for data lake store account status.
Succeeded DataLakeStoreAccountStatus = "Succeeded"
// Suspending specifies the suspending state for data lake store account status.
Suspending DataLakeStoreAccountStatus = "Suspending"
// Undeleting specifies the undeleting state for data lake store account status.
Undeleting DataLakeStoreAccountStatus = "Undeleting"
)
// EncryptionConfigType enumerates the values for encryption config type.
type EncryptionConfigType string
const (
// ServiceManaged specifies the service managed state for encryption config type.
ServiceManaged EncryptionConfigType = "ServiceManaged"
// UserManaged specifies the user managed state for encryption config type.
UserManaged EncryptionConfigType = "UserManaged"
)
// EncryptionProvisioningState enumerates the values for encryption provisioning state.
type EncryptionProvisioningState string
const (
// EncryptionProvisioningStateCreating specifies the encryption provisioning state creating state for encryption
// provisioning state.
EncryptionProvisioningStateCreating EncryptionProvisioningState = "Creating"
// EncryptionProvisioningStateSucceeded specifies the encryption provisioning state succeeded state for encryption
// provisioning state.
EncryptionProvisioningStateSucceeded EncryptionProvisioningState = "Succeeded"
)
// EncryptionState enumerates the values for encryption state.
type EncryptionState string
const (
// Disabled specifies the disabled state for encryption state.
Disabled EncryptionState = "Disabled"
// Enabled specifies the enabled state for encryption state.
Enabled EncryptionState = "Enabled"
)
// FirewallAllowAzureIpsState enumerates the values for firewall allow azure ips state.
type FirewallAllowAzureIpsState string
const (
// FirewallAllowAzureIpsStateDisabled specifies the firewall allow azure ips state disabled state for firewall allow
// azure ips state.
FirewallAllowAzureIpsStateDisabled FirewallAllowAzureIpsState = "Disabled"
// FirewallAllowAzureIpsStateEnabled specifies the firewall allow azure ips state enabled state for firewall allow
// azure ips state.
FirewallAllowAzureIpsStateEnabled FirewallAllowAzureIpsState = "Enabled"
)
// FirewallState enumerates the values for firewall state.
type FirewallState string
const (
// FirewallStateDisabled specifies the firewall state disabled state for firewall state.
FirewallStateDisabled FirewallState = "Disabled"
// FirewallStateEnabled specifies the firewall state enabled state for firewall state.
FirewallStateEnabled FirewallState = "Enabled"
)
// OperationOrigin enumerates the values for operation origin.
type OperationOrigin string
const (
// System specifies the system state for operation origin.
System OperationOrigin = "system"
// User specifies the user state for operation origin.
User OperationOrigin = "user"
// Usersystem specifies the usersystem state for operation origin.
Usersystem OperationOrigin = "user,system"
)
// SubscriptionState enumerates the values for subscription state.
type SubscriptionState string
const (
// SubscriptionStateDeleted specifies the subscription state deleted state for subscription state.
SubscriptionStateDeleted SubscriptionState = "Deleted"
// SubscriptionStateRegistered specifies the subscription state registered state for subscription state.
SubscriptionStateRegistered SubscriptionState = "Registered"
// SubscriptionStateSuspended specifies the subscription state suspended state for subscription state.
SubscriptionStateSuspended SubscriptionState = "Suspended"
// SubscriptionStateUnregistered specifies the subscription state unregistered state for subscription state.
SubscriptionStateUnregistered SubscriptionState = "Unregistered"
// SubscriptionStateWarned specifies the subscription state warned state for subscription state.
SubscriptionStateWarned SubscriptionState = "Warned"
)
// TierType enumerates the values for tier type.
type TierType string
const (
// Commitment100TB specifies the commitment 100tb state for tier type.
Commitment100TB TierType = "Commitment_100TB"
// Commitment10TB specifies the commitment 10tb state for tier type.
Commitment10TB TierType = "Commitment_10TB"
// Commitment1PB specifies the commitment 1pb state for tier type.
Commitment1PB TierType = "Commitment_1PB"
// Commitment1TB specifies the commitment 1tb state for tier type.
Commitment1TB TierType = "Commitment_1TB"
// Commitment500TB specifies the commitment 500tb state for tier type.
Commitment500TB TierType = "Commitment_500TB"
// Commitment5PB specifies the commitment 5pb state for tier type.
Commitment5PB TierType = "Commitment_5PB"
// Consumption specifies the consumption state for tier type.
Consumption TierType = "Consumption"
)
// TrustedIDProviderState enumerates the values for trusted id provider state.
type TrustedIDProviderState string
const (
// TrustedIDProviderStateDisabled specifies the trusted id provider state disabled state for trusted id provider state.
TrustedIDProviderStateDisabled TrustedIDProviderState = "Disabled"
// TrustedIDProviderStateEnabled specifies the trusted id provider state enabled state for trusted id provider state.
TrustedIDProviderStateEnabled TrustedIDProviderState = "Enabled"
)
// CapabilityInformation is subscription-level properties and limits for Data Lake Store
type CapabilityInformation struct {
autorest.Response `json:"-"`
SubscriptionID *uuid.UUID `json:"subscriptionId,omitempty"`
State SubscriptionState `json:"state,omitempty"`
MaxAccountCount *int32 `json:"maxAccountCount,omitempty"`
AccountCount *int32 `json:"accountCount,omitempty"`
MigrationState *bool `json:"migrationState,omitempty"`
}
// CheckNameAvailabilityParameters is data Lake Store account name availability check parameters
type CheckNameAvailabilityParameters struct {
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
}
// DataLakeStoreAccount is data Lake Store account information
type DataLakeStoreAccount struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
Identity *EncryptionIdentity `json:"identity,omitempty"`
*DataLakeStoreAccountProperties `json:"properties,omitempty"`
}
// DataLakeStoreAccountBasic is basic Data Lake Store account information, returned on list calls.
type DataLakeStoreAccountBasic struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*DataLakeStoreAccountPropertiesBasic `json:"properties,omitempty"`
}
// DataLakeStoreAccountListResult is data Lake Store account list information response.
type DataLakeStoreAccountListResult struct {
autorest.Response `json:"-"`
Value *[]DataLakeStoreAccountBasic `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// DataLakeStoreAccountListResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client DataLakeStoreAccountListResult) DataLakeStoreAccountListResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// DataLakeStoreAccountProperties is data Lake Store account properties information
type DataLakeStoreAccountProperties struct {
ProvisioningState DataLakeStoreAccountStatus `json:"provisioningState,omitempty"`
State DataLakeStoreAccountState `json:"state,omitempty"`
CreationTime *date.Time `json:"creationTime,omitempty"`
LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
Endpoint *string `json:"endpoint,omitempty"`
AccountID *uuid.UUID `json:"accountId,omitempty"`
EncryptionState EncryptionState `json:"encryptionState,omitempty"`
EncryptionProvisioningState EncryptionProvisioningState `json:"encryptionProvisioningState,omitempty"`
EncryptionConfig *EncryptionConfig `json:"encryptionConfig,omitempty"`
FirewallState FirewallState `json:"firewallState,omitempty"`
FirewallRules *[]FirewallRule `json:"firewallRules,omitempty"`
TrustedIDProviderState TrustedIDProviderState `json:"trustedIdProviderState,omitempty"`
TrustedIDProviders *[]TrustedIDProvider `json:"trustedIdProviders,omitempty"`
DefaultGroup *string `json:"defaultGroup,omitempty"`
NewTier TierType `json:"newTier,omitempty"`
CurrentTier TierType `json:"currentTier,omitempty"`
FirewallAllowAzureIps FirewallAllowAzureIpsState `json:"firewallAllowAzureIps,omitempty"`
}
// DataLakeStoreAccountPropertiesBasic is the basic account specific properties that are associated with an underlying
// Data Lake Store account.
type DataLakeStoreAccountPropertiesBasic struct {
ProvisioningState DataLakeStoreAccountStatus `json:"provisioningState,omitempty"`
State DataLakeStoreAccountState `json:"state,omitempty"`
CreationTime *date.Time `json:"creationTime,omitempty"`
LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
Endpoint *string `json:"endpoint,omitempty"`
AccountID *uuid.UUID `json:"accountId,omitempty"`
}
// DataLakeStoreAccountUpdateParameters is data Lake Store account information to update
type DataLakeStoreAccountUpdateParameters struct {
Tags *map[string]*string `json:"tags,omitempty"`
*UpdateDataLakeStoreAccountProperties `json:"properties,omitempty"`
}
// DataLakeStoreFirewallRuleListResult is data Lake Store firewall rule list information.
type DataLakeStoreFirewallRuleListResult struct {
autorest.Response `json:"-"`
Value *[]FirewallRule `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// DataLakeStoreFirewallRuleListResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client DataLakeStoreFirewallRuleListResult) DataLakeStoreFirewallRuleListResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// DataLakeStoreTrustedIDProviderListResult is data Lake Store trusted identity provider list information.
type DataLakeStoreTrustedIDProviderListResult struct {
autorest.Response `json:"-"`
Value *[]TrustedIDProvider `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// DataLakeStoreTrustedIDProviderListResultPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client DataLakeStoreTrustedIDProviderListResult) DataLakeStoreTrustedIDProviderListResultPreparer() (*http.Request, error) {
if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
return nil, nil
}
return autorest.Prepare(&http.Request{},
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(client.NextLink)))
}
// EncryptionConfig is the encryption configuration for the account.
type EncryptionConfig struct {
Type EncryptionConfigType `json:"type,omitempty"`
KeyVaultMetaInfo *KeyVaultMetaInfo `json:"keyVaultMetaInfo,omitempty"`
}
// EncryptionIdentity is the encryption identity properties.
type EncryptionIdentity struct {
Type *string `json:"type,omitempty"`
PrincipalID *uuid.UUID `json:"principalId,omitempty"`
TenantID *uuid.UUID `json:"tenantId,omitempty"`
}
// ErrorDetails is data Lake Store error details information
type ErrorDetails struct {
Code *string `json:"code,omitempty"`
Message *string `json:"message,omitempty"`
Target *string `json:"target,omitempty"`
}
// FirewallRule is data Lake Store firewall rule information
type FirewallRule struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
*FirewallRuleProperties `json:"properties,omitempty"`
}
// FirewallRuleProperties is data Lake Store firewall rule properties information
type FirewallRuleProperties struct {
StartIPAddress *string `json:"startIpAddress,omitempty"`
EndIPAddress *string `json:"endIpAddress,omitempty"`
}
// KeyVaultMetaInfo is metadata information used by account encryption.
type KeyVaultMetaInfo struct {
KeyVaultResourceID *string `json:"keyVaultResourceId,omitempty"`
EncryptionKeyName *string `json:"encryptionKeyName,omitempty"`
EncryptionKeyVersion *string `json:"encryptionKeyVersion,omitempty"`
}
// NameAvailabilityInformation is data Lake Store account name availability result information
type NameAvailabilityInformation struct {
autorest.Response `json:"-"`
NameAvailable *bool `json:"nameAvailable,omitempty"`
Reason *string `json:"reason,omitempty"`
Message *string `json:"message,omitempty"`
}
// Operation is an available operation for Data Lake Store
type Operation struct {
Name *string `json:"name,omitempty"`
Display *OperationDisplay `json:"display,omitempty"`
Origin OperationOrigin `json:"origin,omitempty"`
}
// OperationDisplay is the display information for a particular operation
type OperationDisplay struct {
Provider *string `json:"provider,omitempty"`
Resource *string `json:"resource,omitempty"`
Operation *string `json:"operation,omitempty"`
Description *string `json:"description,omitempty"`
}
// OperationListResult is the list of available operations for Data Lake Store
type OperationListResult struct {
autorest.Response `json:"-"`
Value *[]Operation `json:"value,omitempty"`
NextLink *string `json:"nextLink,omitempty"`
}
// Resource is the Resource model definition.
type Resource struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
}
// SubResource is the Resource model definition for a nested resource.
type SubResource struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
}
// TrustedIDProvider is data Lake Store Trusted Identity Provider information
type TrustedIDProvider struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
*TrustedIDProviderProperties `json:"properties,omitempty"`
}
// TrustedIDProviderProperties is data Lake Store trusted identity provider properties information
type TrustedIDProviderProperties struct {
IDProvider *string `json:"idProvider,omitempty"`
}
// UpdateDataLakeStoreAccountProperties is data Lake Store account properties information to be updated.
type UpdateDataLakeStoreAccountProperties struct {
FirewallState FirewallState `json:"firewallState,omitempty"`
TrustedIDProviderState TrustedIDProviderState `json:"trustedIdProviderState,omitempty"`
DefaultGroup *string `json:"defaultGroup,omitempty"`
NewTier TierType `json:"newTier,omitempty"`
FirewallAllowAzureIps FirewallAllowAzureIpsState `json:"firewallAllowAzureIps,omitempty"`
EncryptionConfig *UpdateEncryptionConfig `json:"encryptionConfig,omitempty"`
}
// UpdateEncryptionConfig is the encryption configuration used to update a user managed Key Vault key.
type UpdateEncryptionConfig struct {
KeyVaultMetaInfo *UpdateKeyVaultMetaInfo `json:"keyVaultMetaInfo,omitempty"`
}
// UpdateFirewallRuleParameters is data Lake Store firewall rule update parameters
type UpdateFirewallRuleParameters struct {
*UpdateFirewallRuleProperties `json:"properties,omitempty"`
}
// UpdateFirewallRuleProperties is data Lake Store firewall rule properties information
type UpdateFirewallRuleProperties struct {
StartIPAddress *string `json:"startIpAddress,omitempty"`
EndIPAddress *string `json:"endIpAddress,omitempty"`
}
// UpdateKeyVaultMetaInfo is the Key Vault update information used for user managed key rotation.
type UpdateKeyVaultMetaInfo struct {
EncryptionKeyVersion *string `json:"encryptionKeyVersion,omitempty"`
}
// UpdateTrustedIDProviderParameters is data Lake Store Trusted Identity Provider update parameters
type UpdateTrustedIDProviderParameters struct {
*UpdateTrustedIDProviderProperties `json:"properties,omitempty"`
}
// UpdateTrustedIDProviderProperties is data Lake Store trusted identity provider property update information
type UpdateTrustedIDProviderProperties struct {
IDProvider *string `json:"idProvider,omitempty"`
}