forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
models.go
831 lines (739 loc) · 42.9 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
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
package sql
// 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/satori/go.uuid"
)
// AuthenticationType enumerates the values for authentication type.
type AuthenticationType string
const (
// ADPassword specifies the ad password state for authentication type.
ADPassword AuthenticationType = "ADPassword"
// SQL specifies the sql state for authentication type.
SQL AuthenticationType = "SQL"
)
// CheckNameAvailabilityReason enumerates the values for check name availability reason.
type CheckNameAvailabilityReason string
const (
// AlreadyExists specifies the already exists state for check name availability reason.
AlreadyExists CheckNameAvailabilityReason = "AlreadyExists"
// Invalid specifies the invalid state for check name availability reason.
Invalid CheckNameAvailabilityReason = "Invalid"
)
// CreateMode enumerates the values for create mode.
type CreateMode string
const (
// Copy specifies the copy state for create mode.
Copy CreateMode = "Copy"
// Default specifies the default state for create mode.
Default CreateMode = "Default"
// NonReadableSecondary specifies the non readable secondary state for create mode.
NonReadableSecondary CreateMode = "NonReadableSecondary"
// OnlineSecondary specifies the online secondary state for create mode.
OnlineSecondary CreateMode = "OnlineSecondary"
// PointInTimeRestore specifies the point in time restore state for create mode.
PointInTimeRestore CreateMode = "PointInTimeRestore"
// Recovery specifies the recovery state for create mode.
Recovery CreateMode = "Recovery"
// Restore specifies the restore state for create mode.
Restore CreateMode = "Restore"
// RestoreLongTermRetentionBackup specifies the restore long term retention backup state for create mode.
RestoreLongTermRetentionBackup CreateMode = "RestoreLongTermRetentionBackup"
)
// DatabaseEdition enumerates the values for database edition.
type DatabaseEdition string
const (
// Basic specifies the basic state for database edition.
Basic DatabaseEdition = "Basic"
// Business specifies the business state for database edition.
Business DatabaseEdition = "Business"
// DataWarehouse specifies the data warehouse state for database edition.
DataWarehouse DatabaseEdition = "DataWarehouse"
// Free specifies the free state for database edition.
Free DatabaseEdition = "Free"
// Premium specifies the premium state for database edition.
Premium DatabaseEdition = "Premium"
// Standard specifies the standard state for database edition.
Standard DatabaseEdition = "Standard"
// Stretch specifies the stretch state for database edition.
Stretch DatabaseEdition = "Stretch"
// System specifies the system state for database edition.
System DatabaseEdition = "System"
// System2 specifies the system 2 state for database edition.
System2 DatabaseEdition = "System2"
// Web specifies the web state for database edition.
Web DatabaseEdition = "Web"
)
// ElasticPoolEdition enumerates the values for elastic pool edition.
type ElasticPoolEdition string
const (
// ElasticPoolEditionBasic specifies the elastic pool edition basic state for elastic pool edition.
ElasticPoolEditionBasic ElasticPoolEdition = "Basic"
// ElasticPoolEditionPremium specifies the elastic pool edition premium state for elastic pool edition.
ElasticPoolEditionPremium ElasticPoolEdition = "Premium"
// ElasticPoolEditionStandard specifies the elastic pool edition standard state for elastic pool edition.
ElasticPoolEditionStandard ElasticPoolEdition = "Standard"
)
// ElasticPoolState enumerates the values for elastic pool state.
type ElasticPoolState string
const (
// Creating specifies the creating state for elastic pool state.
Creating ElasticPoolState = "Creating"
// Disabled specifies the disabled state for elastic pool state.
Disabled ElasticPoolState = "Disabled"
// Ready specifies the ready state for elastic pool state.
Ready ElasticPoolState = "Ready"
)
// ReadScale enumerates the values for read scale.
type ReadScale string
const (
// ReadScaleDisabled specifies the read scale disabled state for read scale.
ReadScaleDisabled ReadScale = "Disabled"
// ReadScaleEnabled specifies the read scale enabled state for read scale.
ReadScaleEnabled ReadScale = "Enabled"
)
// RecommendedIndexAction enumerates the values for recommended index action.
type RecommendedIndexAction string
const (
// Create specifies the create state for recommended index action.
Create RecommendedIndexAction = "Create"
// Drop specifies the drop state for recommended index action.
Drop RecommendedIndexAction = "Drop"
// Rebuild specifies the rebuild state for recommended index action.
Rebuild RecommendedIndexAction = "Rebuild"
)
// RecommendedIndexState enumerates the values for recommended index state.
type RecommendedIndexState string
const (
// Active specifies the active state for recommended index state.
Active RecommendedIndexState = "Active"
// Blocked specifies the blocked state for recommended index state.
Blocked RecommendedIndexState = "Blocked"
// Executing specifies the executing state for recommended index state.
Executing RecommendedIndexState = "Executing"
// Expired specifies the expired state for recommended index state.
Expired RecommendedIndexState = "Expired"
// Ignored specifies the ignored state for recommended index state.
Ignored RecommendedIndexState = "Ignored"
// Pending specifies the pending state for recommended index state.
Pending RecommendedIndexState = "Pending"
// PendingRevert specifies the pending revert state for recommended index state.
PendingRevert RecommendedIndexState = "Pending Revert"
// Reverted specifies the reverted state for recommended index state.
Reverted RecommendedIndexState = "Reverted"
// Reverting specifies the reverting state for recommended index state.
Reverting RecommendedIndexState = "Reverting"
// Success specifies the success state for recommended index state.
Success RecommendedIndexState = "Success"
// Verifying specifies the verifying state for recommended index state.
Verifying RecommendedIndexState = "Verifying"
)
// RecommendedIndexType enumerates the values for recommended index type.
type RecommendedIndexType string
const (
// CLUSTERED specifies the clustered state for recommended index type.
CLUSTERED RecommendedIndexType = "CLUSTERED"
// CLUSTEREDCOLUMNSTORE specifies the clusteredcolumnstore state for recommended index type.
CLUSTEREDCOLUMNSTORE RecommendedIndexType = "CLUSTERED COLUMNSTORE"
// COLUMNSTORE specifies the columnstore state for recommended index type.
COLUMNSTORE RecommendedIndexType = "COLUMNSTORE"
// NONCLUSTERED specifies the nonclustered state for recommended index type.
NONCLUSTERED RecommendedIndexType = "NONCLUSTERED"
)
// ReplicationRole enumerates the values for replication role.
type ReplicationRole string
const (
// ReplicationRoleCopy specifies the replication role copy state for replication role.
ReplicationRoleCopy ReplicationRole = "Copy"
// ReplicationRoleNonReadableSecondary specifies the replication role non readable secondary state for replication
// role.
ReplicationRoleNonReadableSecondary ReplicationRole = "NonReadableSecondary"
// ReplicationRolePrimary specifies the replication role primary state for replication role.
ReplicationRolePrimary ReplicationRole = "Primary"
// ReplicationRoleSecondary specifies the replication role secondary state for replication role.
ReplicationRoleSecondary ReplicationRole = "Secondary"
// ReplicationRoleSource specifies the replication role source state for replication role.
ReplicationRoleSource ReplicationRole = "Source"
)
// ReplicationState enumerates the values for replication state.
type ReplicationState string
const (
// CATCHUP specifies the catchup state for replication state.
CATCHUP ReplicationState = "CATCH_UP"
// PENDING specifies the pending state for replication state.
PENDING ReplicationState = "PENDING"
// SEEDING specifies the seeding state for replication state.
SEEDING ReplicationState = "SEEDING"
// SUSPENDED specifies the suspended state for replication state.
SUSPENDED ReplicationState = "SUSPENDED"
)
// SampleName enumerates the values for sample name.
type SampleName string
const (
// AdventureWorksLT specifies the adventure works lt state for sample name.
AdventureWorksLT SampleName = "AdventureWorksLT"
)
// SecurityAlertPolicyEmailAccountAdmins enumerates the values for security alert policy email account admins.
type SecurityAlertPolicyEmailAccountAdmins string
const (
// SecurityAlertPolicyEmailAccountAdminsDisabled specifies the security alert policy email account admins disabled
// state for security alert policy email account admins.
SecurityAlertPolicyEmailAccountAdminsDisabled SecurityAlertPolicyEmailAccountAdmins = "Disabled"
// SecurityAlertPolicyEmailAccountAdminsEnabled specifies the security alert policy email account admins enabled state
// for security alert policy email account admins.
SecurityAlertPolicyEmailAccountAdminsEnabled SecurityAlertPolicyEmailAccountAdmins = "Enabled"
)
// SecurityAlertPolicyState enumerates the values for security alert policy state.
type SecurityAlertPolicyState string
const (
// SecurityAlertPolicyStateDisabled specifies the security alert policy state disabled state for security alert policy
// state.
SecurityAlertPolicyStateDisabled SecurityAlertPolicyState = "Disabled"
// SecurityAlertPolicyStateEnabled specifies the security alert policy state enabled state for security alert policy
// state.
SecurityAlertPolicyStateEnabled SecurityAlertPolicyState = "Enabled"
// SecurityAlertPolicyStateNew specifies the security alert policy state new state for security alert policy state.
SecurityAlertPolicyStateNew SecurityAlertPolicyState = "New"
)
// SecurityAlertPolicyUseServerDefault enumerates the values for security alert policy use server default.
type SecurityAlertPolicyUseServerDefault string
const (
// SecurityAlertPolicyUseServerDefaultDisabled specifies the security alert policy use server default disabled state
// for security alert policy use server default.
SecurityAlertPolicyUseServerDefaultDisabled SecurityAlertPolicyUseServerDefault = "Disabled"
// SecurityAlertPolicyUseServerDefaultEnabled specifies the security alert policy use server default enabled state for
// security alert policy use server default.
SecurityAlertPolicyUseServerDefaultEnabled SecurityAlertPolicyUseServerDefault = "Enabled"
)
// ServiceObjectiveName enumerates the values for service objective name.
type ServiceObjectiveName string
const (
// ServiceObjectiveNameBasic specifies the service objective name basic state for service objective name.
ServiceObjectiveNameBasic ServiceObjectiveName = "Basic"
// ServiceObjectiveNameElasticPool specifies the service objective name elastic pool state for service objective name.
ServiceObjectiveNameElasticPool ServiceObjectiveName = "ElasticPool"
// ServiceObjectiveNameP1 specifies the service objective name p1 state for service objective name.
ServiceObjectiveNameP1 ServiceObjectiveName = "P1"
// ServiceObjectiveNameP11 specifies the service objective name p11 state for service objective name.
ServiceObjectiveNameP11 ServiceObjectiveName = "P11"
// ServiceObjectiveNameP15 specifies the service objective name p15 state for service objective name.
ServiceObjectiveNameP15 ServiceObjectiveName = "P15"
// ServiceObjectiveNameP2 specifies the service objective name p2 state for service objective name.
ServiceObjectiveNameP2 ServiceObjectiveName = "P2"
// ServiceObjectiveNameP3 specifies the service objective name p3 state for service objective name.
ServiceObjectiveNameP3 ServiceObjectiveName = "P3"
// ServiceObjectiveNameP4 specifies the service objective name p4 state for service objective name.
ServiceObjectiveNameP4 ServiceObjectiveName = "P4"
// ServiceObjectiveNameP6 specifies the service objective name p6 state for service objective name.
ServiceObjectiveNameP6 ServiceObjectiveName = "P6"
// ServiceObjectiveNameS0 specifies the service objective name s0 state for service objective name.
ServiceObjectiveNameS0 ServiceObjectiveName = "S0"
// ServiceObjectiveNameS1 specifies the service objective name s1 state for service objective name.
ServiceObjectiveNameS1 ServiceObjectiveName = "S1"
// ServiceObjectiveNameS2 specifies the service objective name s2 state for service objective name.
ServiceObjectiveNameS2 ServiceObjectiveName = "S2"
// ServiceObjectiveNameS3 specifies the service objective name s3 state for service objective name.
ServiceObjectiveNameS3 ServiceObjectiveName = "S3"
// ServiceObjectiveNameSystem specifies the service objective name system state for service objective name.
ServiceObjectiveNameSystem ServiceObjectiveName = "System"
// ServiceObjectiveNameSystem2 specifies the service objective name system 2 state for service objective name.
ServiceObjectiveNameSystem2 ServiceObjectiveName = "System2"
)
// StorageKeyType enumerates the values for storage key type.
type StorageKeyType string
const (
// SharedAccessKey specifies the shared access key state for storage key type.
SharedAccessKey StorageKeyType = "SharedAccessKey"
// StorageAccessKey specifies the storage access key state for storage key type.
StorageAccessKey StorageKeyType = "StorageAccessKey"
)
// TransparentDataEncryptionActivityStatus enumerates the values for transparent data encryption activity status.
type TransparentDataEncryptionActivityStatus string
const (
// Decrypting specifies the decrypting state for transparent data encryption activity status.
Decrypting TransparentDataEncryptionActivityStatus = "Decrypting"
// Encrypting specifies the encrypting state for transparent data encryption activity status.
Encrypting TransparentDataEncryptionActivityStatus = "Encrypting"
)
// TransparentDataEncryptionStatus enumerates the values for transparent data encryption status.
type TransparentDataEncryptionStatus string
const (
// TransparentDataEncryptionStatusDisabled specifies the transparent data encryption status disabled state for
// transparent data encryption status.
TransparentDataEncryptionStatusDisabled TransparentDataEncryptionStatus = "Disabled"
// TransparentDataEncryptionStatusEnabled specifies the transparent data encryption status enabled state for
// transparent data encryption status.
TransparentDataEncryptionStatusEnabled TransparentDataEncryptionStatus = "Enabled"
)
// CheckNameAvailabilityRequest is a request to check whether the specified name for a resource is available.
type CheckNameAvailabilityRequest struct {
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
}
// CheckNameAvailabilityResponse is a response indicating whether the specified name for a resource is available.
type CheckNameAvailabilityResponse struct {
autorest.Response `json:"-"`
Available *bool `json:"available,omitempty"`
Message *string `json:"message,omitempty"`
Name *string `json:"name,omitempty"`
Reason CheckNameAvailabilityReason `json:"reason,omitempty"`
}
// Database is represents a database.
type Database struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
Location *string `json:"location,omitempty"`
Kind *string `json:"kind,omitempty"`
*DatabaseProperties `json:"properties,omitempty"`
}
// DatabaseListResult is represents the response to a list database request.
type DatabaseListResult struct {
autorest.Response `json:"-"`
Value *[]Database `json:"value,omitempty"`
}
// DatabaseProperties is represents the properties of a database.
type DatabaseProperties struct {
Collation *string `json:"collation,omitempty"`
CreationDate *date.Time `json:"creationDate,omitempty"`
ContainmentState *int64 `json:"containmentState,omitempty"`
CurrentServiceObjectiveID *uuid.UUID `json:"currentServiceObjectiveId,omitempty"`
DatabaseID *uuid.UUID `json:"databaseId,omitempty"`
EarliestRestoreDate *date.Time `json:"earliestRestoreDate,omitempty"`
CreateMode CreateMode `json:"createMode,omitempty"`
SourceDatabaseID *string `json:"sourceDatabaseId,omitempty"`
SourceDatabaseDeletionDate *date.Time `json:"sourceDatabaseDeletionDate,omitempty"`
RestorePointInTime *date.Time `json:"restorePointInTime,omitempty"`
RecoveryServicesRecoveryPointResourceID *string `json:"recoveryServicesRecoveryPointResourceId,omitempty"`
Edition DatabaseEdition `json:"edition,omitempty"`
MaxSizeBytes *string `json:"maxSizeBytes,omitempty"`
RequestedServiceObjectiveID *uuid.UUID `json:"requestedServiceObjectiveId,omitempty"`
RequestedServiceObjectiveName ServiceObjectiveName `json:"requestedServiceObjectiveName,omitempty"`
ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"`
Status *string `json:"status,omitempty"`
ElasticPoolName *string `json:"elasticPoolName,omitempty"`
DefaultSecondaryLocation *string `json:"defaultSecondaryLocation,omitempty"`
ServiceTierAdvisors *[]ServiceTierAdvisor `json:"serviceTierAdvisors,omitempty"`
TransparentDataEncryption *[]TransparentDataEncryption `json:"transparentDataEncryption,omitempty"`
RecommendedIndex *[]RecommendedIndex `json:"recommendedIndex,omitempty"`
FailoverGroupID *string `json:"failoverGroupId,omitempty"`
ReadScale ReadScale `json:"readScale,omitempty"`
SampleName SampleName `json:"sampleName,omitempty"`
ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
}
// DatabaseSecurityAlertPolicy is contains information about a database Threat Detection policy.
type DatabaseSecurityAlertPolicy struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
Kind *string `json:"kind,omitempty"`
*DatabaseSecurityAlertPolicyProperties `json:"properties,omitempty"`
}
// DatabaseSecurityAlertPolicyProperties is properties for a database Threat Detection policy.
type DatabaseSecurityAlertPolicyProperties struct {
State SecurityAlertPolicyState `json:"state,omitempty"`
DisabledAlerts *string `json:"disabledAlerts,omitempty"`
EmailAddresses *string `json:"emailAddresses,omitempty"`
EmailAccountAdmins SecurityAlertPolicyEmailAccountAdmins `json:"emailAccountAdmins,omitempty"`
StorageEndpoint *string `json:"storageEndpoint,omitempty"`
StorageAccountAccessKey *string `json:"storageAccountAccessKey,omitempty"`
RetentionDays *int32 `json:"retentionDays,omitempty"`
UseServerDefault SecurityAlertPolicyUseServerDefault `json:"useServerDefault,omitempty"`
}
// DatabaseUpdate is represents a database update.
type DatabaseUpdate struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*DatabaseProperties `json:"properties,omitempty"`
}
// ElasticPool is represents a database elastic pool.
type ElasticPool struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
Location *string `json:"location,omitempty"`
*ElasticPoolProperties `json:"properties,omitempty"`
Kind *string `json:"kind,omitempty"`
}
// ElasticPoolActivity is represents the activity on an elastic pool.
type ElasticPoolActivity struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
*ElasticPoolActivityProperties `json:"properties,omitempty"`
}
// ElasticPoolActivityListResult is represents the response to a list elastic pool activity request.
type ElasticPoolActivityListResult struct {
autorest.Response `json:"-"`
Value *[]ElasticPoolActivity `json:"value,omitempty"`
}
// ElasticPoolActivityProperties is represents the properties of an elastic pool.
type ElasticPoolActivityProperties struct {
EndTime *date.Time `json:"endTime,omitempty"`
ErrorCode *int32 `json:"errorCode,omitempty"`
ErrorMessage *string `json:"errorMessage,omitempty"`
ErrorSeverity *int32 `json:"errorSeverity,omitempty"`
Operation *string `json:"operation,omitempty"`
OperationID *uuid.UUID `json:"operationId,omitempty"`
PercentComplete *int32 `json:"percentComplete,omitempty"`
RequestedDatabaseDtuMax *int32 `json:"requestedDatabaseDtuMax,omitempty"`
RequestedDatabaseDtuMin *int32 `json:"requestedDatabaseDtuMin,omitempty"`
RequestedDtu *int32 `json:"requestedDtu,omitempty"`
RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"`
RequestedStorageLimitInGB *int64 `json:"requestedStorageLimitInGB,omitempty"`
ElasticPoolName *string `json:"elasticPoolName,omitempty"`
ServerName *string `json:"serverName,omitempty"`
StartTime *date.Time `json:"startTime,omitempty"`
State *string `json:"state,omitempty"`
RequestedStorageLimitInMB *int32 `json:"requestedStorageLimitInMB,omitempty"`
RequestedDatabaseDtuGuarantee *int32 `json:"requestedDatabaseDtuGuarantee,omitempty"`
RequestedDatabaseDtuCap *int32 `json:"requestedDatabaseDtuCap,omitempty"`
RequestedDtuGuarantee *int32 `json:"requestedDtuGuarantee,omitempty"`
}
// ElasticPoolDatabaseActivity is represents the activity on an elastic pool.
type ElasticPoolDatabaseActivity struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
*ElasticPoolDatabaseActivityProperties `json:"properties,omitempty"`
}
// ElasticPoolDatabaseActivityListResult is represents the response to a list elastic pool database activity request.
type ElasticPoolDatabaseActivityListResult struct {
autorest.Response `json:"-"`
Value *[]ElasticPoolDatabaseActivity `json:"value,omitempty"`
}
// ElasticPoolDatabaseActivityProperties is represents the properties of an elastic pool database activity.
type ElasticPoolDatabaseActivityProperties struct {
DatabaseName *string `json:"databaseName,omitempty"`
EndTime *date.Time `json:"endTime,omitempty"`
ErrorCode *int32 `json:"errorCode,omitempty"`
ErrorMessage *string `json:"errorMessage,omitempty"`
ErrorSeverity *int32 `json:"errorSeverity,omitempty"`
Operation *string `json:"operation,omitempty"`
OperationID *uuid.UUID `json:"operationId,omitempty"`
PercentComplete *int32 `json:"percentComplete,omitempty"`
RequestedElasticPoolName *string `json:"requestedElasticPoolName,omitempty"`
CurrentElasticPoolName *string `json:"currentElasticPoolName,omitempty"`
CurrentServiceObjective *string `json:"currentServiceObjective,omitempty"`
RequestedServiceObjective *string `json:"requestedServiceObjective,omitempty"`
ServerName *string `json:"serverName,omitempty"`
StartTime *date.Time `json:"startTime,omitempty"`
State *string `json:"state,omitempty"`
}
// ElasticPoolListResult is represents the response to a list elastic pool request.
type ElasticPoolListResult struct {
autorest.Response `json:"-"`
Value *[]ElasticPool `json:"value,omitempty"`
}
// ElasticPoolProperties is represents the properties of an elastic pool.
type ElasticPoolProperties struct {
CreationDate *date.Time `json:"creationDate,omitempty"`
State ElasticPoolState `json:"state,omitempty"`
Edition ElasticPoolEdition `json:"edition,omitempty"`
Dtu *int32 `json:"dtu,omitempty"`
DatabaseDtuMax *int32 `json:"databaseDtuMax,omitempty"`
DatabaseDtuMin *int32 `json:"databaseDtuMin,omitempty"`
StorageMB *int32 `json:"storageMB,omitempty"`
ZoneRedundant *bool `json:"zoneRedundant,omitempty"`
}
// ElasticPoolUpdate is represents an elastic pool update.
type ElasticPoolUpdate struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
*ElasticPoolProperties `json:"properties,omitempty"`
}
// ExportRequest is export database parameters.
type ExportRequest struct {
StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
StorageKey *string `json:"storageKey,omitempty"`
StorageURI *string `json:"storageUri,omitempty"`
AdministratorLogin *string `json:"administratorLogin,omitempty"`
AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
}
// FirewallRule is represents a server firewall rule.
type FirewallRule struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Kind *string `json:"kind,omitempty"`
Location *string `json:"location,omitempty"`
*FirewallRuleProperties `json:"properties,omitempty"`
}
// FirewallRuleListResult is represents the response to a List Firewall Rules request.
type FirewallRuleListResult struct {
autorest.Response `json:"-"`
Value *[]FirewallRule `json:"value,omitempty"`
}
// FirewallRuleProperties is represents the properties of a server firewall rule.
type FirewallRuleProperties struct {
StartIPAddress *string `json:"startIpAddress,omitempty"`
EndIPAddress *string `json:"endIpAddress,omitempty"`
}
// ImportExportResponse is response for Import/Export Get operation.
type ImportExportResponse struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
*ImportExportResponseProperties `json:"properties,omitempty"`
}
// ImportExportResponseProperties is response for Import/Export Status operation.
type ImportExportResponseProperties struct {
RequestType *string `json:"requestType,omitempty"`
RequestID *uuid.UUID `json:"requestId,omitempty"`
ServerName *string `json:"serverName,omitempty"`
DatabaseName *string `json:"databaseName,omitempty"`
Status *string `json:"status,omitempty"`
LastModifiedTime *string `json:"lastModifiedTime,omitempty"`
QueuedTime *string `json:"queuedTime,omitempty"`
BlobURI *string `json:"blobUri,omitempty"`
ErrorMessage *string `json:"errorMessage,omitempty"`
}
// ImportExtensionProperties is represents the properties for an import operation
type ImportExtensionProperties struct {
StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
StorageKey *string `json:"storageKey,omitempty"`
StorageURI *string `json:"storageUri,omitempty"`
AdministratorLogin *string `json:"administratorLogin,omitempty"`
AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
OperationMode *string `json:"operationMode,omitempty"`
}
// ImportExtensionRequest is import database parameters.
type ImportExtensionRequest struct {
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
*ImportExtensionProperties `json:"properties,omitempty"`
}
// ImportRequest is import database parameters.
type ImportRequest struct {
StorageKeyType StorageKeyType `json:"storageKeyType,omitempty"`
StorageKey *string `json:"storageKey,omitempty"`
StorageURI *string `json:"storageUri,omitempty"`
AdministratorLogin *string `json:"administratorLogin,omitempty"`
AdministratorLoginPassword *string `json:"administratorLoginPassword,omitempty"`
AuthenticationType AuthenticationType `json:"authenticationType,omitempty"`
DatabaseName *string `json:"databaseName,omitempty"`
Edition DatabaseEdition `json:"edition,omitempty"`
ServiceObjectiveName ServiceObjectiveName `json:"serviceObjectiveName,omitempty"`
MaxSizeBytes *string `json:"maxSizeBytes,omitempty"`
}
// OperationImpact is the impact of an operation, both in absolute and relative terms.
type OperationImpact struct {
Name *string `json:"name,omitempty"`
Unit *string `json:"unit,omitempty"`
ChangeValueAbsolute *float64 `json:"changeValueAbsolute,omitempty"`
ChangeValueRelative *float64 `json:"changeValueRelative,omitempty"`
}
// ProxyResource is ARM proxy resource.
type ProxyResource struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
}
// RecommendedElasticPool is represents a recommented elastic pool.
type RecommendedElasticPool struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
*RecommendedElasticPoolProperties `json:"properties,omitempty"`
}
// RecommendedElasticPoolListMetricsResult is represents the response to a list recommended elastic pool metrics
// request.
type RecommendedElasticPoolListMetricsResult struct {
autorest.Response `json:"-"`
Value *[]RecommendedElasticPoolMetric `json:"value,omitempty"`
}
// RecommendedElasticPoolListResult is represents the response to a list recommended elastic pool request.
type RecommendedElasticPoolListResult struct {
autorest.Response `json:"-"`
Value *[]RecommendedElasticPool `json:"value,omitempty"`
}
// RecommendedElasticPoolMetric is represents recommended elastic pool metric.
type RecommendedElasticPoolMetric struct {
DateTime *date.Time `json:"dateTime,omitempty"`
Dtu *float64 `json:"dtu,omitempty"`
SizeGB *float64 `json:"sizeGB,omitempty"`
}
// RecommendedElasticPoolProperties is represents the properties of a recommented elastic pool.
type RecommendedElasticPoolProperties struct {
DatabaseEdition ElasticPoolEdition `json:"databaseEdition,omitempty"`
Dtu *float64 `json:"dtu,omitempty"`
DatabaseDtuMin *float64 `json:"databaseDtuMin,omitempty"`
DatabaseDtuMax *float64 `json:"databaseDtuMax,omitempty"`
StorageMB *float64 `json:"storageMB,omitempty"`
ObservationPeriodStart *date.Time `json:"observationPeriodStart,omitempty"`
ObservationPeriodEnd *date.Time `json:"observationPeriodEnd,omitempty"`
MaxObservedDtu *float64 `json:"maxObservedDtu,omitempty"`
MaxObservedStorageMB *float64 `json:"maxObservedStorageMB,omitempty"`
Databases *[]Database `json:"databases,omitempty"`
Metrics *[]RecommendedElasticPoolMetric `json:"metrics,omitempty"`
}
// RecommendedIndex is represents a database recommended index.
type RecommendedIndex struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
*RecommendedIndexProperties `json:"properties,omitempty"`
}
// RecommendedIndexProperties is represents the properties of a database recommended index.
type RecommendedIndexProperties struct {
Action RecommendedIndexAction `json:"action,omitempty"`
State RecommendedIndexState `json:"state,omitempty"`
Created *date.Time `json:"created,omitempty"`
LastModified *date.Time `json:"lastModified,omitempty"`
IndexType RecommendedIndexType `json:"indexType,omitempty"`
Schema *string `json:"schema,omitempty"`
Table *string `json:"table,omitempty"`
Columns *[]string `json:"columns,omitempty"`
IncludedColumns *[]string `json:"includedColumns,omitempty"`
IndexScript *string `json:"indexScript,omitempty"`
EstimatedImpact *[]OperationImpact `json:"estimatedImpact,omitempty"`
ReportedImpact *[]OperationImpact `json:"reportedImpact,omitempty"`
}
// ReplicationLink is represents a database replication link.
type ReplicationLink struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
*ReplicationLinkProperties `json:"properties,omitempty"`
}
// ReplicationLinkListResult is represents the response to a List database replication link request.
type ReplicationLinkListResult struct {
autorest.Response `json:"-"`
Value *[]ReplicationLink `json:"value,omitempty"`
}
// ReplicationLinkProperties is represents the properties of a database replication link.
type ReplicationLinkProperties struct {
IsTerminationAllowed *bool `json:"isTerminationAllowed,omitempty"`
ReplicationMode *string `json:"replicationMode,omitempty"`
PartnerServer *string `json:"partnerServer,omitempty"`
PartnerDatabase *string `json:"partnerDatabase,omitempty"`
PartnerLocation *string `json:"partnerLocation,omitempty"`
Role ReplicationRole `json:"role,omitempty"`
PartnerRole ReplicationRole `json:"partnerRole,omitempty"`
StartTime *date.Time `json:"startTime,omitempty"`
PercentComplete *int32 `json:"percentComplete,omitempty"`
ReplicationState ReplicationState `json:"replicationState,omitempty"`
}
// Resource is ARM resource.
type Resource struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
}
// ServiceTierAdvisor is represents a Service Tier Advisor.
type ServiceTierAdvisor struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
*ServiceTierAdvisorProperties `json:"properties,omitempty"`
}
// ServiceTierAdvisorListResult is represents the response to a list service tier advisor request.
type ServiceTierAdvisorListResult struct {
autorest.Response `json:"-"`
Value *[]ServiceTierAdvisor `json:"value,omitempty"`
}
// ServiceTierAdvisorProperties is represents the properties of a Service Tier Advisor.
type ServiceTierAdvisorProperties struct {
ObservationPeriodStart *date.Time `json:"observationPeriodStart,omitempty"`
ObservationPeriodEnd *date.Time `json:"observationPeriodEnd,omitempty"`
ActiveTimeRatio *float64 `json:"activeTimeRatio,omitempty"`
MinDtu *float64 `json:"minDtu,omitempty"`
AvgDtu *float64 `json:"avgDtu,omitempty"`
MaxDtu *float64 `json:"maxDtu,omitempty"`
MaxSizeInGB *float64 `json:"maxSizeInGB,omitempty"`
ServiceLevelObjectiveUsageMetrics *[]SloUsageMetric `json:"serviceLevelObjectiveUsageMetrics,omitempty"`
CurrentServiceLevelObjective *string `json:"currentServiceLevelObjective,omitempty"`
CurrentServiceLevelObjectiveID *uuid.UUID `json:"currentServiceLevelObjectiveId,omitempty"`
UsageBasedRecommendationServiceLevelObjective *string `json:"usageBasedRecommendationServiceLevelObjective,omitempty"`
UsageBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"usageBasedRecommendationServiceLevelObjectiveId,omitempty"`
DatabaseSizeBasedRecommendationServiceLevelObjective *string `json:"databaseSizeBasedRecommendationServiceLevelObjective,omitempty"`
DatabaseSizeBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"databaseSizeBasedRecommendationServiceLevelObjectiveId,omitempty"`
DisasterPlanBasedRecommendationServiceLevelObjective *string `json:"disasterPlanBasedRecommendationServiceLevelObjective,omitempty"`
DisasterPlanBasedRecommendationServiceLevelObjectiveID *uuid.UUID `json:"disasterPlanBasedRecommendationServiceLevelObjectiveId,omitempty"`
OverallRecommendationServiceLevelObjective *string `json:"overallRecommendationServiceLevelObjective,omitempty"`
OverallRecommendationServiceLevelObjectiveID *uuid.UUID `json:"overallRecommendationServiceLevelObjectiveId,omitempty"`
Confidence *float64 `json:"confidence,omitempty"`
}
// SloUsageMetric is a Slo Usage Metric.
type SloUsageMetric struct {
ServiceLevelObjective ServiceObjectiveName `json:"serviceLevelObjective,omitempty"`
ServiceLevelObjectiveID *uuid.UUID `json:"serviceLevelObjectiveId,omitempty"`
InRangeTimeRatio *float64 `json:"inRangeTimeRatio,omitempty"`
}
// TrackedResource is ARM tracked top level resource.
type TrackedResource struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Tags *map[string]*string `json:"tags,omitempty"`
Location *string `json:"location,omitempty"`
}
// TransparentDataEncryption is represents a database transparent data encryption configuration.
type TransparentDataEncryption struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
*TransparentDataEncryptionProperties `json:"properties,omitempty"`
}
// TransparentDataEncryptionActivity is represents a database transparent data encryption Scan.
type TransparentDataEncryptionActivity struct {
ID *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Type *string `json:"type,omitempty"`
Location *string `json:"location,omitempty"`
*TransparentDataEncryptionActivityProperties `json:"properties,omitempty"`
}
// TransparentDataEncryptionActivityListResult is represents the response to a list database transparent data
// encryption activity request.
type TransparentDataEncryptionActivityListResult struct {
autorest.Response `json:"-"`
Value *[]TransparentDataEncryptionActivity `json:"value,omitempty"`
}
// TransparentDataEncryptionActivityProperties is represents the properties of a database transparent data encryption
// Scan.
type TransparentDataEncryptionActivityProperties struct {
Status TransparentDataEncryptionActivityStatus `json:"status,omitempty"`
PercentComplete *float64 `json:"percentComplete,omitempty"`
}
// TransparentDataEncryptionProperties is represents the properties of a database transparent data encryption.
type TransparentDataEncryptionProperties struct {
Status TransparentDataEncryptionStatus `json:"status,omitempty"`
}