forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 2
/
models.go
5768 lines (5196 loc) · 248 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
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package datamigration
// 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 (
"context"
"encoding/json"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/date"
"github.com/Azure/go-autorest/autorest/to"
"github.com/Azure/go-autorest/tracing"
"net/http"
)
// The package's fully qualified name.
const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/datamigration/mgmt/2018-03-31-preview/datamigration"
// AuthenticationType enumerates the values for authentication type.
type AuthenticationType string
const (
// ActiveDirectoryIntegrated ...
ActiveDirectoryIntegrated AuthenticationType = "ActiveDirectoryIntegrated"
// ActiveDirectoryPassword ...
ActiveDirectoryPassword AuthenticationType = "ActiveDirectoryPassword"
// None ...
None AuthenticationType = "None"
// SQLAuthentication ...
SQLAuthentication AuthenticationType = "SqlAuthentication"
// WindowsAuthentication ...
WindowsAuthentication AuthenticationType = "WindowsAuthentication"
)
// PossibleAuthenticationTypeValues returns an array of possible values for the AuthenticationType const type.
func PossibleAuthenticationTypeValues() []AuthenticationType {
return []AuthenticationType{ActiveDirectoryIntegrated, ActiveDirectoryPassword, None, SQLAuthentication, WindowsAuthentication}
}
// DatabaseCompatLevel enumerates the values for database compat level.
type DatabaseCompatLevel string
const (
// CompatLevel100 ...
CompatLevel100 DatabaseCompatLevel = "CompatLevel100"
// CompatLevel110 ...
CompatLevel110 DatabaseCompatLevel = "CompatLevel110"
// CompatLevel120 ...
CompatLevel120 DatabaseCompatLevel = "CompatLevel120"
// CompatLevel130 ...
CompatLevel130 DatabaseCompatLevel = "CompatLevel130"
// CompatLevel140 ...
CompatLevel140 DatabaseCompatLevel = "CompatLevel140"
// CompatLevel80 ...
CompatLevel80 DatabaseCompatLevel = "CompatLevel80"
// CompatLevel90 ...
CompatLevel90 DatabaseCompatLevel = "CompatLevel90"
)
// PossibleDatabaseCompatLevelValues returns an array of possible values for the DatabaseCompatLevel const type.
func PossibleDatabaseCompatLevelValues() []DatabaseCompatLevel {
return []DatabaseCompatLevel{CompatLevel100, CompatLevel110, CompatLevel120, CompatLevel130, CompatLevel140, CompatLevel80, CompatLevel90}
}
// DatabaseFileType enumerates the values for database file type.
type DatabaseFileType string
const (
// Filestream ...
Filestream DatabaseFileType = "Filestream"
// Fulltext ...
Fulltext DatabaseFileType = "Fulltext"
// Log ...
Log DatabaseFileType = "Log"
// NotSupported ...
NotSupported DatabaseFileType = "NotSupported"
// Rows ...
Rows DatabaseFileType = "Rows"
)
// PossibleDatabaseFileTypeValues returns an array of possible values for the DatabaseFileType const type.
func PossibleDatabaseFileTypeValues() []DatabaseFileType {
return []DatabaseFileType{Filestream, Fulltext, Log, NotSupported, Rows}
}
// DatabaseMigrationStage enumerates the values for database migration stage.
type DatabaseMigrationStage string
const (
// DatabaseMigrationStageBackup ...
DatabaseMigrationStageBackup DatabaseMigrationStage = "Backup"
// DatabaseMigrationStageCompleted ...
DatabaseMigrationStageCompleted DatabaseMigrationStage = "Completed"
// DatabaseMigrationStageFileCopy ...
DatabaseMigrationStageFileCopy DatabaseMigrationStage = "FileCopy"
// DatabaseMigrationStageInitialize ...
DatabaseMigrationStageInitialize DatabaseMigrationStage = "Initialize"
// DatabaseMigrationStageNone ...
DatabaseMigrationStageNone DatabaseMigrationStage = "None"
// DatabaseMigrationStageRestore ...
DatabaseMigrationStageRestore DatabaseMigrationStage = "Restore"
)
// PossibleDatabaseMigrationStageValues returns an array of possible values for the DatabaseMigrationStage const type.
func PossibleDatabaseMigrationStageValues() []DatabaseMigrationStage {
return []DatabaseMigrationStage{DatabaseMigrationStageBackup, DatabaseMigrationStageCompleted, DatabaseMigrationStageFileCopy, DatabaseMigrationStageInitialize, DatabaseMigrationStageNone, DatabaseMigrationStageRestore}
}
// DatabaseState enumerates the values for database state.
type DatabaseState string
const (
// Copying ...
Copying DatabaseState = "Copying"
// Emergency ...
Emergency DatabaseState = "Emergency"
// Offline ...
Offline DatabaseState = "Offline"
// OfflineSecondary ...
OfflineSecondary DatabaseState = "OfflineSecondary"
// Online ...
Online DatabaseState = "Online"
// Recovering ...
Recovering DatabaseState = "Recovering"
// RecoveryPending ...
RecoveryPending DatabaseState = "RecoveryPending"
// Restoring ...
Restoring DatabaseState = "Restoring"
// Suspect ...
Suspect DatabaseState = "Suspect"
)
// PossibleDatabaseStateValues returns an array of possible values for the DatabaseState const type.
func PossibleDatabaseStateValues() []DatabaseState {
return []DatabaseState{Copying, Emergency, Offline, OfflineSecondary, Online, Recovering, RecoveryPending, Restoring, Suspect}
}
// ErrorType enumerates the values for error type.
type ErrorType string
const (
// ErrorTypeDefault ...
ErrorTypeDefault ErrorType = "Default"
// ErrorTypeError ...
ErrorTypeError ErrorType = "Error"
// ErrorTypeWarning ...
ErrorTypeWarning ErrorType = "Warning"
)
// PossibleErrorTypeValues returns an array of possible values for the ErrorType const type.
func PossibleErrorTypeValues() []ErrorType {
return []ErrorType{ErrorTypeDefault, ErrorTypeError, ErrorTypeWarning}
}
// LoginMigrationStage enumerates the values for login migration stage.
type LoginMigrationStage string
const (
// LoginMigrationStageAssignRoleMembership ...
LoginMigrationStageAssignRoleMembership LoginMigrationStage = "AssignRoleMembership"
// LoginMigrationStageAssignRoleOwnership ...
LoginMigrationStageAssignRoleOwnership LoginMigrationStage = "AssignRoleOwnership"
// LoginMigrationStageCompleted ...
LoginMigrationStageCompleted LoginMigrationStage = "Completed"
// LoginMigrationStageEstablishObjectPermissions ...
LoginMigrationStageEstablishObjectPermissions LoginMigrationStage = "EstablishObjectPermissions"
// LoginMigrationStageEstablishServerPermissions ...
LoginMigrationStageEstablishServerPermissions LoginMigrationStage = "EstablishServerPermissions"
// LoginMigrationStageEstablishUserMapping ...
LoginMigrationStageEstablishUserMapping LoginMigrationStage = "EstablishUserMapping"
// LoginMigrationStageInitialize ...
LoginMigrationStageInitialize LoginMigrationStage = "Initialize"
// LoginMigrationStageLoginMigration ...
LoginMigrationStageLoginMigration LoginMigrationStage = "LoginMigration"
// LoginMigrationStageNone ...
LoginMigrationStageNone LoginMigrationStage = "None"
)
// PossibleLoginMigrationStageValues returns an array of possible values for the LoginMigrationStage const type.
func PossibleLoginMigrationStageValues() []LoginMigrationStage {
return []LoginMigrationStage{LoginMigrationStageAssignRoleMembership, LoginMigrationStageAssignRoleOwnership, LoginMigrationStageCompleted, LoginMigrationStageEstablishObjectPermissions, LoginMigrationStageEstablishServerPermissions, LoginMigrationStageEstablishUserMapping, LoginMigrationStageInitialize, LoginMigrationStageLoginMigration, LoginMigrationStageNone}
}
// LoginType enumerates the values for login type.
type LoginType string
const (
// AsymmetricKey ...
AsymmetricKey LoginType = "AsymmetricKey"
// Certificate ...
Certificate LoginType = "Certificate"
// ExternalGroup ...
ExternalGroup LoginType = "ExternalGroup"
// ExternalUser ...
ExternalUser LoginType = "ExternalUser"
// SQLLogin ...
SQLLogin LoginType = "SqlLogin"
// WindowsGroup ...
WindowsGroup LoginType = "WindowsGroup"
// WindowsUser ...
WindowsUser LoginType = "WindowsUser"
)
// PossibleLoginTypeValues returns an array of possible values for the LoginType const type.
func PossibleLoginTypeValues() []LoginType {
return []LoginType{AsymmetricKey, Certificate, ExternalGroup, ExternalUser, SQLLogin, WindowsGroup, WindowsUser}
}
// MigrationState enumerates the values for migration state.
type MigrationState string
const (
// MigrationStateCompleted ...
MigrationStateCompleted MigrationState = "Completed"
// MigrationStateFailed ...
MigrationStateFailed MigrationState = "Failed"
// MigrationStateInProgress ...
MigrationStateInProgress MigrationState = "InProgress"
// MigrationStateNone ...
MigrationStateNone MigrationState = "None"
// MigrationStateSkipped ...
MigrationStateSkipped MigrationState = "Skipped"
// MigrationStateStopped ...
MigrationStateStopped MigrationState = "Stopped"
// MigrationStateWarning ...
MigrationStateWarning MigrationState = "Warning"
)
// PossibleMigrationStateValues returns an array of possible values for the MigrationState const type.
func PossibleMigrationStateValues() []MigrationState {
return []MigrationState{MigrationStateCompleted, MigrationStateFailed, MigrationStateInProgress, MigrationStateNone, MigrationStateSkipped, MigrationStateStopped, MigrationStateWarning}
}
// MigrationStatus enumerates the values for migration status.
type MigrationStatus string
const (
// MigrationStatusCompleted ...
MigrationStatusCompleted MigrationStatus = "Completed"
// MigrationStatusCompletedWithWarnings ...
MigrationStatusCompletedWithWarnings MigrationStatus = "CompletedWithWarnings"
// MigrationStatusConfigured ...
MigrationStatusConfigured MigrationStatus = "Configured"
// MigrationStatusConnecting ...
MigrationStatusConnecting MigrationStatus = "Connecting"
// MigrationStatusDefault ...
MigrationStatusDefault MigrationStatus = "Default"
// MigrationStatusError ...
MigrationStatusError MigrationStatus = "Error"
// MigrationStatusRunning ...
MigrationStatusRunning MigrationStatus = "Running"
// MigrationStatusSelectLogins ...
MigrationStatusSelectLogins MigrationStatus = "SelectLogins"
// MigrationStatusSourceAndTargetSelected ...
MigrationStatusSourceAndTargetSelected MigrationStatus = "SourceAndTargetSelected"
// MigrationStatusStopped ...
MigrationStatusStopped MigrationStatus = "Stopped"
)
// PossibleMigrationStatusValues returns an array of possible values for the MigrationStatus const type.
func PossibleMigrationStatusValues() []MigrationStatus {
return []MigrationStatus{MigrationStatusCompleted, MigrationStatusCompletedWithWarnings, MigrationStatusConfigured, MigrationStatusConnecting, MigrationStatusDefault, MigrationStatusError, MigrationStatusRunning, MigrationStatusSelectLogins, MigrationStatusSourceAndTargetSelected, MigrationStatusStopped}
}
// NameCheckFailureReason enumerates the values for name check failure reason.
type NameCheckFailureReason string
const (
// AlreadyExists ...
AlreadyExists NameCheckFailureReason = "AlreadyExists"
// Invalid ...
Invalid NameCheckFailureReason = "Invalid"
)
// PossibleNameCheckFailureReasonValues returns an array of possible values for the NameCheckFailureReason const type.
func PossibleNameCheckFailureReasonValues() []NameCheckFailureReason {
return []NameCheckFailureReason{AlreadyExists, Invalid}
}
// ObjectType enumerates the values for object type.
type ObjectType string
const (
// Function ...
Function ObjectType = "Function"
// StoredProcedures ...
StoredProcedures ObjectType = "StoredProcedures"
// Table ...
Table ObjectType = "Table"
// User ...
User ObjectType = "User"
// View ...
View ObjectType = "View"
)
// PossibleObjectTypeValues returns an array of possible values for the ObjectType const type.
func PossibleObjectTypeValues() []ObjectType {
return []ObjectType{Function, StoredProcedures, Table, User, View}
}
// ProjectProvisioningState enumerates the values for project provisioning state.
type ProjectProvisioningState string
const (
// Deleting ...
Deleting ProjectProvisioningState = "Deleting"
// Succeeded ...
Succeeded ProjectProvisioningState = "Succeeded"
)
// PossibleProjectProvisioningStateValues returns an array of possible values for the ProjectProvisioningState const type.
func PossibleProjectProvisioningStateValues() []ProjectProvisioningState {
return []ProjectProvisioningState{Deleting, Succeeded}
}
// ProjectSourcePlatform enumerates the values for project source platform.
type ProjectSourcePlatform string
const (
// SQL ...
SQL ProjectSourcePlatform = "SQL"
// Unknown ...
Unknown ProjectSourcePlatform = "Unknown"
)
// PossibleProjectSourcePlatformValues returns an array of possible values for the ProjectSourcePlatform const type.
func PossibleProjectSourcePlatformValues() []ProjectSourcePlatform {
return []ProjectSourcePlatform{SQL, Unknown}
}
// ProjectTargetPlatform enumerates the values for project target platform.
type ProjectTargetPlatform string
const (
// ProjectTargetPlatformSQLDB ...
ProjectTargetPlatformSQLDB ProjectTargetPlatform = "SQLDB"
// ProjectTargetPlatformSQLMI ...
ProjectTargetPlatformSQLMI ProjectTargetPlatform = "SQLMI"
// ProjectTargetPlatformUnknown ...
ProjectTargetPlatformUnknown ProjectTargetPlatform = "Unknown"
)
// PossibleProjectTargetPlatformValues returns an array of possible values for the ProjectTargetPlatform const type.
func PossibleProjectTargetPlatformValues() []ProjectTargetPlatform {
return []ProjectTargetPlatform{ProjectTargetPlatformSQLDB, ProjectTargetPlatformSQLMI, ProjectTargetPlatformUnknown}
}
// ResourceSkuCapacityScaleType enumerates the values for resource sku capacity scale type.
type ResourceSkuCapacityScaleType string
const (
// ResourceSkuCapacityScaleTypeAutomatic ...
ResourceSkuCapacityScaleTypeAutomatic ResourceSkuCapacityScaleType = "Automatic"
// ResourceSkuCapacityScaleTypeManual ...
ResourceSkuCapacityScaleTypeManual ResourceSkuCapacityScaleType = "Manual"
// ResourceSkuCapacityScaleTypeNone ...
ResourceSkuCapacityScaleTypeNone ResourceSkuCapacityScaleType = "None"
)
// PossibleResourceSkuCapacityScaleTypeValues returns an array of possible values for the ResourceSkuCapacityScaleType const type.
func PossibleResourceSkuCapacityScaleTypeValues() []ResourceSkuCapacityScaleType {
return []ResourceSkuCapacityScaleType{ResourceSkuCapacityScaleTypeAutomatic, ResourceSkuCapacityScaleTypeManual, ResourceSkuCapacityScaleTypeNone}
}
// ResourceSkuRestrictionsReasonCode enumerates the values for resource sku restrictions reason code.
type ResourceSkuRestrictionsReasonCode string
const (
// NotAvailableForSubscription ...
NotAvailableForSubscription ResourceSkuRestrictionsReasonCode = "NotAvailableForSubscription"
// QuotaID ...
QuotaID ResourceSkuRestrictionsReasonCode = "QuotaId"
)
// PossibleResourceSkuRestrictionsReasonCodeValues returns an array of possible values for the ResourceSkuRestrictionsReasonCode const type.
func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictionsReasonCode {
return []ResourceSkuRestrictionsReasonCode{NotAvailableForSubscription, QuotaID}
}
// ResourceSkuRestrictionsType enumerates the values for resource sku restrictions type.
type ResourceSkuRestrictionsType string
const (
// Location ...
Location ResourceSkuRestrictionsType = "location"
)
// PossibleResourceSkuRestrictionsTypeValues returns an array of possible values for the ResourceSkuRestrictionsType const type.
func PossibleResourceSkuRestrictionsTypeValues() []ResourceSkuRestrictionsType {
return []ResourceSkuRestrictionsType{Location}
}
// ResultType enumerates the values for result type.
type ResultType string
const (
// ResultTypeDatabaseLevelOutput ...
ResultTypeDatabaseLevelOutput ResultType = "DatabaseLevelOutput"
// ResultTypeErrorOutput ...
ResultTypeErrorOutput ResultType = "ErrorOutput"
// ResultTypeMigrateSQLServerSQLDbTaskOutput ...
ResultTypeMigrateSQLServerSQLDbTaskOutput ResultType = "MigrateSqlServerSqlDbTaskOutput"
// ResultTypeMigrationLevelOutput ...
ResultTypeMigrationLevelOutput ResultType = "MigrationLevelOutput"
// ResultTypeTableLevelOutput ...
ResultTypeTableLevelOutput ResultType = "TableLevelOutput"
)
// PossibleResultTypeValues returns an array of possible values for the ResultType const type.
func PossibleResultTypeValues() []ResultType {
return []ResultType{ResultTypeDatabaseLevelOutput, ResultTypeErrorOutput, ResultTypeMigrateSQLServerSQLDbTaskOutput, ResultTypeMigrationLevelOutput, ResultTypeTableLevelOutput}
}
// ResultTypeBasicConnectToSourceSQLServerTaskOutput enumerates the values for result type basic connect to
// source sql server task output.
type ResultTypeBasicConnectToSourceSQLServerTaskOutput string
const (
// ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeAgentJobLevelOutput ...
ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeAgentJobLevelOutput ResultTypeBasicConnectToSourceSQLServerTaskOutput = "AgentJobLevelOutput"
// ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeConnectToSourceSQLServerTaskOutput ...
ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeConnectToSourceSQLServerTaskOutput ResultTypeBasicConnectToSourceSQLServerTaskOutput = "ConnectToSourceSqlServerTaskOutput"
// ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeDatabaseLevelOutput ...
ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeDatabaseLevelOutput ResultTypeBasicConnectToSourceSQLServerTaskOutput = "DatabaseLevelOutput"
// ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeLoginLevelOutput ...
ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeLoginLevelOutput ResultTypeBasicConnectToSourceSQLServerTaskOutput = "LoginLevelOutput"
// ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeTaskLevelOutput ...
ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeTaskLevelOutput ResultTypeBasicConnectToSourceSQLServerTaskOutput = "TaskLevelOutput"
)
// PossibleResultTypeBasicConnectToSourceSQLServerTaskOutputValues returns an array of possible values for the ResultTypeBasicConnectToSourceSQLServerTaskOutput const type.
func PossibleResultTypeBasicConnectToSourceSQLServerTaskOutputValues() []ResultTypeBasicConnectToSourceSQLServerTaskOutput {
return []ResultTypeBasicConnectToSourceSQLServerTaskOutput{ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeAgentJobLevelOutput, ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeConnectToSourceSQLServerTaskOutput, ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeDatabaseLevelOutput, ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeLoginLevelOutput, ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeTaskLevelOutput}
}
// ResultTypeBasicMigrateSQLServerSQLMITaskOutput enumerates the values for result type basic migrate sql
// server sqlmi task output.
type ResultTypeBasicMigrateSQLServerSQLMITaskOutput string
const (
// ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeAgentJobLevelOutput ...
ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeAgentJobLevelOutput ResultTypeBasicMigrateSQLServerSQLMITaskOutput = "AgentJobLevelOutput"
// ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeDatabaseLevelOutput ...
ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeDatabaseLevelOutput ResultTypeBasicMigrateSQLServerSQLMITaskOutput = "DatabaseLevelOutput"
// ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeErrorOutput ...
ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeErrorOutput ResultTypeBasicMigrateSQLServerSQLMITaskOutput = "ErrorOutput"
// ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeLoginLevelOutput ...
ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeLoginLevelOutput ResultTypeBasicMigrateSQLServerSQLMITaskOutput = "LoginLevelOutput"
// ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeMigrateSQLServerSQLMITaskOutput ...
ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeMigrateSQLServerSQLMITaskOutput ResultTypeBasicMigrateSQLServerSQLMITaskOutput = "MigrateSqlServerSqlMITaskOutput"
// ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeMigrationLevelOutput ...
ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeMigrationLevelOutput ResultTypeBasicMigrateSQLServerSQLMITaskOutput = "MigrationLevelOutput"
)
// PossibleResultTypeBasicMigrateSQLServerSQLMITaskOutputValues returns an array of possible values for the ResultTypeBasicMigrateSQLServerSQLMITaskOutput const type.
func PossibleResultTypeBasicMigrateSQLServerSQLMITaskOutputValues() []ResultTypeBasicMigrateSQLServerSQLMITaskOutput {
return []ResultTypeBasicMigrateSQLServerSQLMITaskOutput{ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeAgentJobLevelOutput, ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeDatabaseLevelOutput, ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeErrorOutput, ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeLoginLevelOutput, ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeMigrateSQLServerSQLMITaskOutput, ResultTypeBasicMigrateSQLServerSQLMITaskOutputResultTypeMigrationLevelOutput}
}
// ServerLevelPermissionsGroup enumerates the values for server level permissions group.
type ServerLevelPermissionsGroup string
const (
// Default ...
Default ServerLevelPermissionsGroup = "Default"
// MigrationFromSQLServerToAzureDB ...
MigrationFromSQLServerToAzureDB ServerLevelPermissionsGroup = "MigrationFromSqlServerToAzureDB"
)
// PossibleServerLevelPermissionsGroupValues returns an array of possible values for the ServerLevelPermissionsGroup const type.
func PossibleServerLevelPermissionsGroupValues() []ServerLevelPermissionsGroup {
return []ServerLevelPermissionsGroup{Default, MigrationFromSQLServerToAzureDB}
}
// ServiceProvisioningState enumerates the values for service provisioning state.
type ServiceProvisioningState string
const (
// ServiceProvisioningStateAccepted ...
ServiceProvisioningStateAccepted ServiceProvisioningState = "Accepted"
// ServiceProvisioningStateDeleting ...
ServiceProvisioningStateDeleting ServiceProvisioningState = "Deleting"
// ServiceProvisioningStateDeploying ...
ServiceProvisioningStateDeploying ServiceProvisioningState = "Deploying"
// ServiceProvisioningStateFailed ...
ServiceProvisioningStateFailed ServiceProvisioningState = "Failed"
// ServiceProvisioningStateFailedToStart ...
ServiceProvisioningStateFailedToStart ServiceProvisioningState = "FailedToStart"
// ServiceProvisioningStateFailedToStop ...
ServiceProvisioningStateFailedToStop ServiceProvisioningState = "FailedToStop"
// ServiceProvisioningStateStarting ...
ServiceProvisioningStateStarting ServiceProvisioningState = "Starting"
// ServiceProvisioningStateStopped ...
ServiceProvisioningStateStopped ServiceProvisioningState = "Stopped"
// ServiceProvisioningStateStopping ...
ServiceProvisioningStateStopping ServiceProvisioningState = "Stopping"
// ServiceProvisioningStateSucceeded ...
ServiceProvisioningStateSucceeded ServiceProvisioningState = "Succeeded"
)
// PossibleServiceProvisioningStateValues returns an array of possible values for the ServiceProvisioningState const type.
func PossibleServiceProvisioningStateValues() []ServiceProvisioningState {
return []ServiceProvisioningState{ServiceProvisioningStateAccepted, ServiceProvisioningStateDeleting, ServiceProvisioningStateDeploying, ServiceProvisioningStateFailed, ServiceProvisioningStateFailedToStart, ServiceProvisioningStateFailedToStop, ServiceProvisioningStateStarting, ServiceProvisioningStateStopped, ServiceProvisioningStateStopping, ServiceProvisioningStateSucceeded}
}
// ServiceScalability enumerates the values for service scalability.
type ServiceScalability string
const (
// ServiceScalabilityAutomatic ...
ServiceScalabilityAutomatic ServiceScalability = "automatic"
// ServiceScalabilityManual ...
ServiceScalabilityManual ServiceScalability = "manual"
// ServiceScalabilityNone ...
ServiceScalabilityNone ServiceScalability = "none"
)
// PossibleServiceScalabilityValues returns an array of possible values for the ServiceScalability const type.
func PossibleServiceScalabilityValues() []ServiceScalability {
return []ServiceScalability{ServiceScalabilityAutomatic, ServiceScalabilityManual, ServiceScalabilityNone}
}
// Severity enumerates the values for severity.
type Severity string
const (
// SeverityError ...
SeverityError Severity = "Error"
// SeverityMessage ...
SeverityMessage Severity = "Message"
// SeverityWarning ...
SeverityWarning Severity = "Warning"
)
// PossibleSeverityValues returns an array of possible values for the Severity const type.
func PossibleSeverityValues() []Severity {
return []Severity{SeverityError, SeverityMessage, SeverityWarning}
}
// TaskState enumerates the values for task state.
type TaskState string
const (
// TaskStateCanceled ...
TaskStateCanceled TaskState = "Canceled"
// TaskStateFailed ...
TaskStateFailed TaskState = "Failed"
// TaskStateFailedInputValidation ...
TaskStateFailedInputValidation TaskState = "FailedInputValidation"
// TaskStateFaulted ...
TaskStateFaulted TaskState = "Faulted"
// TaskStateQueued ...
TaskStateQueued TaskState = "Queued"
// TaskStateRunning ...
TaskStateRunning TaskState = "Running"
// TaskStateSucceeded ...
TaskStateSucceeded TaskState = "Succeeded"
// TaskStateUnknown ...
TaskStateUnknown TaskState = "Unknown"
)
// PossibleTaskStateValues returns an array of possible values for the TaskState const type.
func PossibleTaskStateValues() []TaskState {
return []TaskState{TaskStateCanceled, TaskStateFailed, TaskStateFailedInputValidation, TaskStateFaulted, TaskStateQueued, TaskStateRunning, TaskStateSucceeded, TaskStateUnknown}
}
// TaskType enumerates the values for task type.
type TaskType string
const (
// TaskTypeConnectToSourceSQLServer ...
TaskTypeConnectToSourceSQLServer TaskType = "ConnectToSource.SqlServer"
// TaskTypeConnectToTargetAzureSQLDbMI ...
TaskTypeConnectToTargetAzureSQLDbMI TaskType = "ConnectToTarget.AzureSqlDbMI"
// TaskTypeConnectToTargetSQLDb ...
TaskTypeConnectToTargetSQLDb TaskType = "ConnectToTarget.SqlDb"
// TaskTypeGetUserTablesSQL ...
TaskTypeGetUserTablesSQL TaskType = "GetUserTables.Sql"
// TaskTypeMigrateSQLServerAzureSQLDbMI ...
TaskTypeMigrateSQLServerAzureSQLDbMI TaskType = "Migrate.SqlServer.AzureSqlDbMI"
// TaskTypeMigrateSQLServerSQLDb ...
TaskTypeMigrateSQLServerSQLDb TaskType = "Migrate.SqlServer.SqlDb"
// TaskTypeUnknown ...
TaskTypeUnknown TaskType = "Unknown"
// TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI ...
TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI TaskType = "ValidateMigrationInput.SqlServer.AzureSqlDbMI"
)
// PossibleTaskTypeValues returns an array of possible values for the TaskType const type.
func PossibleTaskTypeValues() []TaskType {
return []TaskType{TaskTypeConnectToSourceSQLServer, TaskTypeConnectToTargetAzureSQLDbMI, TaskTypeConnectToTargetSQLDb, TaskTypeGetUserTablesSQL, TaskTypeMigrateSQLServerAzureSQLDbMI, TaskTypeMigrateSQLServerSQLDb, TaskTypeUnknown, TaskTypeValidateMigrationInputSQLServerAzureSQLDbMI}
}
// Type enumerates the values for type.
type Type string
const (
// TypeSQLConnectionInfo ...
TypeSQLConnectionInfo Type = "SqlConnectionInfo"
// TypeUnknown ...
TypeUnknown Type = "Unknown"
)
// PossibleTypeValues returns an array of possible values for the Type const type.
func PossibleTypeValues() []Type {
return []Type{TypeSQLConnectionInfo, TypeUnknown}
}
// UpdateActionType enumerates the values for update action type.
type UpdateActionType string
const (
// AddedOnTarget ...
AddedOnTarget UpdateActionType = "AddedOnTarget"
// ChangedOnTarget ...
ChangedOnTarget UpdateActionType = "ChangedOnTarget"
// DeletedOnTarget ...
DeletedOnTarget UpdateActionType = "DeletedOnTarget"
)
// PossibleUpdateActionTypeValues returns an array of possible values for the UpdateActionType const type.
func PossibleUpdateActionTypeValues() []UpdateActionType {
return []UpdateActionType{AddedOnTarget, ChangedOnTarget, DeletedOnTarget}
}
// ValidationStatus enumerates the values for validation status.
type ValidationStatus string
const (
// ValidationStatusCompleted ...
ValidationStatusCompleted ValidationStatus = "Completed"
// ValidationStatusCompletedWithIssues ...
ValidationStatusCompletedWithIssues ValidationStatus = "CompletedWithIssues"
// ValidationStatusDefault ...
ValidationStatusDefault ValidationStatus = "Default"
// ValidationStatusFailed ...
ValidationStatusFailed ValidationStatus = "Failed"
// ValidationStatusInitialized ...
ValidationStatusInitialized ValidationStatus = "Initialized"
// ValidationStatusInProgress ...
ValidationStatusInProgress ValidationStatus = "InProgress"
// ValidationStatusNotStarted ...
ValidationStatusNotStarted ValidationStatus = "NotStarted"
// ValidationStatusStopped ...
ValidationStatusStopped ValidationStatus = "Stopped"
)
// PossibleValidationStatusValues returns an array of possible values for the ValidationStatus const type.
func PossibleValidationStatusValues() []ValidationStatus {
return []ValidationStatus{ValidationStatusCompleted, ValidationStatusCompletedWithIssues, ValidationStatusDefault, ValidationStatusFailed, ValidationStatusInitialized, ValidationStatusInProgress, ValidationStatusNotStarted, ValidationStatusStopped}
}
// APIError error information.
type APIError struct {
// Error - Error information in OData format
Error *ODataError `json:"error,omitempty"`
}
// AvailableServiceSku describes the available service SKU.
type AvailableServiceSku struct {
// ResourceType - The resource type, including the provider namespace
ResourceType *string `json:"resourceType,omitempty"`
// Sku - SKU name, tier, etc.
Sku *AvailableServiceSkuSku `json:"sku,omitempty"`
// Capacity - A description of the scaling capacities of the SKU
Capacity *AvailableServiceSkuCapacity `json:"capacity,omitempty"`
}
// AvailableServiceSkuCapacity a description of the scaling capacities of the SKU
type AvailableServiceSkuCapacity struct {
// Minimum - The minimum capacity, usually 0 or 1.
Minimum *int32 `json:"minimum,omitempty"`
// Maximum - The maximum capacity
Maximum *int32 `json:"maximum,omitempty"`
// Default - The default capacity
Default *int32 `json:"default,omitempty"`
// ScaleType - The scalability approach. Possible values include: 'ServiceScalabilityNone', 'ServiceScalabilityManual', 'ServiceScalabilityAutomatic'
ScaleType ServiceScalability `json:"scaleType,omitempty"`
}
// AvailableServiceSkuSku SKU name, tier, etc.
type AvailableServiceSkuSku struct {
// Name - The name of the SKU
Name *string `json:"name,omitempty"`
// Family - SKU family
Family *string `json:"family,omitempty"`
// Size - SKU size
Size *string `json:"size,omitempty"`
// Tier - The tier of the SKU, such as "Free", "Basic", "Standard", or "Premium"
Tier *string `json:"tier,omitempty"`
}
// BlobShare blob container storage information.
type BlobShare struct {
// SasURI - SAS URI of Azure Storage Account Container.
SasURI *string `json:"sasUri,omitempty"`
}
// BasicConnectionInfo defines the connection properties of a server
type BasicConnectionInfo interface {
AsSQLConnectionInfo() (*SQLConnectionInfo, bool)
AsConnectionInfo() (*ConnectionInfo, bool)
}
// ConnectionInfo defines the connection properties of a server
type ConnectionInfo struct {
// UserName - User name
UserName *string `json:"userName,omitempty"`
// Password - Password credential.
Password *string `json:"password,omitempty"`
// Type - Possible values include: 'TypeUnknown', 'TypeSQLConnectionInfo'
Type Type `json:"type,omitempty"`
}
func unmarshalBasicConnectionInfo(body []byte) (BasicConnectionInfo, error) {
var m map[string]interface{}
err := json.Unmarshal(body, &m)
if err != nil {
return nil, err
}
switch m["type"] {
case string(TypeSQLConnectionInfo):
var sci SQLConnectionInfo
err := json.Unmarshal(body, &sci)
return sci, err
default:
var ci ConnectionInfo
err := json.Unmarshal(body, &ci)
return ci, err
}
}
func unmarshalBasicConnectionInfoArray(body []byte) ([]BasicConnectionInfo, error) {
var rawMessages []*json.RawMessage
err := json.Unmarshal(body, &rawMessages)
if err != nil {
return nil, err
}
ciArray := make([]BasicConnectionInfo, len(rawMessages))
for index, rawMessage := range rawMessages {
ci, err := unmarshalBasicConnectionInfo(*rawMessage)
if err != nil {
return nil, err
}
ciArray[index] = ci
}
return ciArray, nil
}
// MarshalJSON is the custom marshaler for ConnectionInfo.
func (ci ConnectionInfo) MarshalJSON() ([]byte, error) {
ci.Type = TypeUnknown
objectMap := make(map[string]interface{})
if ci.UserName != nil {
objectMap["userName"] = ci.UserName
}
if ci.Password != nil {
objectMap["password"] = ci.Password
}
if ci.Type != "" {
objectMap["type"] = ci.Type
}
return json.Marshal(objectMap)
}
// AsSQLConnectionInfo is the BasicConnectionInfo implementation for ConnectionInfo.
func (ci ConnectionInfo) AsSQLConnectionInfo() (*SQLConnectionInfo, bool) {
return nil, false
}
// AsConnectionInfo is the BasicConnectionInfo implementation for ConnectionInfo.
func (ci ConnectionInfo) AsConnectionInfo() (*ConnectionInfo, bool) {
return &ci, true
}
// AsBasicConnectionInfo is the BasicConnectionInfo implementation for ConnectionInfo.
func (ci ConnectionInfo) AsBasicConnectionInfo() (BasicConnectionInfo, bool) {
return &ci, true
}
// ConnectToSourceSQLServerTaskInput input for the task that validates connection to SQL Server and also
// validates source server requirements
type ConnectToSourceSQLServerTaskInput struct {
// SourceConnectionInfo - Connection information for Source SQL Server
SourceConnectionInfo *SQLConnectionInfo `json:"sourceConnectionInfo,omitempty"`
// CheckPermissionsGroup - Permission group for validations. Possible values include: 'Default', 'MigrationFromSQLServerToAzureDB'
CheckPermissionsGroup ServerLevelPermissionsGroup `json:"checkPermissionsGroup,omitempty"`
// CollectLogins - Flag for whether to collect logins from source server.
CollectLogins *bool `json:"CollectLogins,omitempty"`
// CollectAgentJobs - Flag for whether to collect agent jobs from source server.
CollectAgentJobs *bool `json:"CollectAgentJobs,omitempty"`
}
// BasicConnectToSourceSQLServerTaskOutput output for the task that validates connection to SQL Server and also
// validates source server requirements
type BasicConnectToSourceSQLServerTaskOutput interface {
AsConnectToSourceSQLServerTaskOutputAgentJobLevel() (*ConnectToSourceSQLServerTaskOutputAgentJobLevel, bool)
AsConnectToSourceSQLServerTaskOutputLoginLevel() (*ConnectToSourceSQLServerTaskOutputLoginLevel, bool)
AsConnectToSourceSQLServerTaskOutputDatabaseLevel() (*ConnectToSourceSQLServerTaskOutputDatabaseLevel, bool)
AsConnectToSourceSQLServerTaskOutputTaskLevel() (*ConnectToSourceSQLServerTaskOutputTaskLevel, bool)
AsConnectToSourceSQLServerTaskOutput() (*ConnectToSourceSQLServerTaskOutput, bool)
}
// ConnectToSourceSQLServerTaskOutput output for the task that validates connection to SQL Server and also
// validates source server requirements
type ConnectToSourceSQLServerTaskOutput struct {
// ID - Result identifier
ID *string `json:"id,omitempty"`
// ResultType - Possible values include: 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeConnectToSourceSQLServerTaskOutput', 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeAgentJobLevelOutput', 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeLoginLevelOutput', 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeDatabaseLevelOutput', 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeTaskLevelOutput'
ResultType ResultTypeBasicConnectToSourceSQLServerTaskOutput `json:"resultType,omitempty"`
}
func unmarshalBasicConnectToSourceSQLServerTaskOutput(body []byte) (BasicConnectToSourceSQLServerTaskOutput, error) {
var m map[string]interface{}
err := json.Unmarshal(body, &m)
if err != nil {
return nil, err
}
switch m["resultType"] {
case string(ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeAgentJobLevelOutput):
var ctssstoajl ConnectToSourceSQLServerTaskOutputAgentJobLevel
err := json.Unmarshal(body, &ctssstoajl)
return ctssstoajl, err
case string(ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeLoginLevelOutput):
var ctssstoll ConnectToSourceSQLServerTaskOutputLoginLevel
err := json.Unmarshal(body, &ctssstoll)
return ctssstoll, err
case string(ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeDatabaseLevelOutput):
var ctssstodl ConnectToSourceSQLServerTaskOutputDatabaseLevel
err := json.Unmarshal(body, &ctssstodl)
return ctssstodl, err
case string(ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeTaskLevelOutput):
var ctssstotl ConnectToSourceSQLServerTaskOutputTaskLevel
err := json.Unmarshal(body, &ctssstotl)
return ctssstotl, err
default:
var ctsssto ConnectToSourceSQLServerTaskOutput
err := json.Unmarshal(body, &ctsssto)
return ctsssto, err
}
}
func unmarshalBasicConnectToSourceSQLServerTaskOutputArray(body []byte) ([]BasicConnectToSourceSQLServerTaskOutput, error) {
var rawMessages []*json.RawMessage
err := json.Unmarshal(body, &rawMessages)
if err != nil {
return nil, err
}
ctssstoArray := make([]BasicConnectToSourceSQLServerTaskOutput, len(rawMessages))
for index, rawMessage := range rawMessages {
ctsssto, err := unmarshalBasicConnectToSourceSQLServerTaskOutput(*rawMessage)
if err != nil {
return nil, err
}
ctssstoArray[index] = ctsssto
}
return ctssstoArray, nil
}
// MarshalJSON is the custom marshaler for ConnectToSourceSQLServerTaskOutput.
func (ctsssto ConnectToSourceSQLServerTaskOutput) MarshalJSON() ([]byte, error) {
ctsssto.ResultType = ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeConnectToSourceSQLServerTaskOutput
objectMap := make(map[string]interface{})
if ctsssto.ID != nil {
objectMap["id"] = ctsssto.ID
}
if ctsssto.ResultType != "" {
objectMap["resultType"] = ctsssto.ResultType
}
return json.Marshal(objectMap)
}
// AsConnectToSourceSQLServerTaskOutputAgentJobLevel is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutput.
func (ctsssto ConnectToSourceSQLServerTaskOutput) AsConnectToSourceSQLServerTaskOutputAgentJobLevel() (*ConnectToSourceSQLServerTaskOutputAgentJobLevel, bool) {
return nil, false
}
// AsConnectToSourceSQLServerTaskOutputLoginLevel is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutput.
func (ctsssto ConnectToSourceSQLServerTaskOutput) AsConnectToSourceSQLServerTaskOutputLoginLevel() (*ConnectToSourceSQLServerTaskOutputLoginLevel, bool) {
return nil, false
}
// AsConnectToSourceSQLServerTaskOutputDatabaseLevel is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutput.
func (ctsssto ConnectToSourceSQLServerTaskOutput) AsConnectToSourceSQLServerTaskOutputDatabaseLevel() (*ConnectToSourceSQLServerTaskOutputDatabaseLevel, bool) {
return nil, false
}
// AsConnectToSourceSQLServerTaskOutputTaskLevel is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutput.
func (ctsssto ConnectToSourceSQLServerTaskOutput) AsConnectToSourceSQLServerTaskOutputTaskLevel() (*ConnectToSourceSQLServerTaskOutputTaskLevel, bool) {
return nil, false
}
// AsConnectToSourceSQLServerTaskOutput is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutput.
func (ctsssto ConnectToSourceSQLServerTaskOutput) AsConnectToSourceSQLServerTaskOutput() (*ConnectToSourceSQLServerTaskOutput, bool) {
return &ctsssto, true
}
// AsBasicConnectToSourceSQLServerTaskOutput is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutput.
func (ctsssto ConnectToSourceSQLServerTaskOutput) AsBasicConnectToSourceSQLServerTaskOutput() (BasicConnectToSourceSQLServerTaskOutput, bool) {
return &ctsssto, true
}
// ConnectToSourceSQLServerTaskOutputAgentJobLevel agentJob level output for the task that validates
// connection to SQL Server and also validates source server requirements
type ConnectToSourceSQLServerTaskOutputAgentJobLevel struct {
// Name - AgentJob name
Name *string `json:"name,omitempty"`
// JobCategory - The type of AgentJob.
JobCategory *string `json:"jobCategory,omitempty"`
// IsEnabled - The state of the original AgentJob.
IsEnabled *bool `json:"isEnabled,omitempty"`
// JobOwner - The owner of the AgentJob
JobOwner *string `json:"jobOwner,omitempty"`
// LastExecutedOn - UTC Date and time when the AgentJob was last executed.
LastExecutedOn *date.Time `json:"lastExecutedOn,omitempty"`
// MigrationEligibility - Information about eligibility of agent job for migration.
MigrationEligibility *MigrationEligibilityInfo `json:"migrationEligibility,omitempty"`
// ID - Result identifier
ID *string `json:"id,omitempty"`
// ResultType - Possible values include: 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeConnectToSourceSQLServerTaskOutput', 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeAgentJobLevelOutput', 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeLoginLevelOutput', 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeDatabaseLevelOutput', 'ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeTaskLevelOutput'
ResultType ResultTypeBasicConnectToSourceSQLServerTaskOutput `json:"resultType,omitempty"`
}
// MarshalJSON is the custom marshaler for ConnectToSourceSQLServerTaskOutputAgentJobLevel.
func (ctssstoajl ConnectToSourceSQLServerTaskOutputAgentJobLevel) MarshalJSON() ([]byte, error) {
ctssstoajl.ResultType = ResultTypeBasicConnectToSourceSQLServerTaskOutputResultTypeAgentJobLevelOutput
objectMap := make(map[string]interface{})
if ctssstoajl.Name != nil {
objectMap["name"] = ctssstoajl.Name
}
if ctssstoajl.JobCategory != nil {
objectMap["jobCategory"] = ctssstoajl.JobCategory
}
if ctssstoajl.IsEnabled != nil {
objectMap["isEnabled"] = ctssstoajl.IsEnabled
}
if ctssstoajl.JobOwner != nil {
objectMap["jobOwner"] = ctssstoajl.JobOwner
}
if ctssstoajl.LastExecutedOn != nil {
objectMap["lastExecutedOn"] = ctssstoajl.LastExecutedOn
}
if ctssstoajl.MigrationEligibility != nil {
objectMap["migrationEligibility"] = ctssstoajl.MigrationEligibility
}
if ctssstoajl.ID != nil {
objectMap["id"] = ctssstoajl.ID
}
if ctssstoajl.ResultType != "" {
objectMap["resultType"] = ctssstoajl.ResultType
}
return json.Marshal(objectMap)
}
// AsConnectToSourceSQLServerTaskOutputAgentJobLevel is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutputAgentJobLevel.
func (ctssstoajl ConnectToSourceSQLServerTaskOutputAgentJobLevel) AsConnectToSourceSQLServerTaskOutputAgentJobLevel() (*ConnectToSourceSQLServerTaskOutputAgentJobLevel, bool) {
return &ctssstoajl, true
}
// AsConnectToSourceSQLServerTaskOutputLoginLevel is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutputAgentJobLevel.
func (ctssstoajl ConnectToSourceSQLServerTaskOutputAgentJobLevel) AsConnectToSourceSQLServerTaskOutputLoginLevel() (*ConnectToSourceSQLServerTaskOutputLoginLevel, bool) {
return nil, false
}
// AsConnectToSourceSQLServerTaskOutputDatabaseLevel is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutputAgentJobLevel.
func (ctssstoajl ConnectToSourceSQLServerTaskOutputAgentJobLevel) AsConnectToSourceSQLServerTaskOutputDatabaseLevel() (*ConnectToSourceSQLServerTaskOutputDatabaseLevel, bool) {
return nil, false
}
// AsConnectToSourceSQLServerTaskOutputTaskLevel is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutputAgentJobLevel.
func (ctssstoajl ConnectToSourceSQLServerTaskOutputAgentJobLevel) AsConnectToSourceSQLServerTaskOutputTaskLevel() (*ConnectToSourceSQLServerTaskOutputTaskLevel, bool) {
return nil, false
}
// AsConnectToSourceSQLServerTaskOutput is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutputAgentJobLevel.
func (ctssstoajl ConnectToSourceSQLServerTaskOutputAgentJobLevel) AsConnectToSourceSQLServerTaskOutput() (*ConnectToSourceSQLServerTaskOutput, bool) {
return nil, false
}
// AsBasicConnectToSourceSQLServerTaskOutput is the BasicConnectToSourceSQLServerTaskOutput implementation for ConnectToSourceSQLServerTaskOutputAgentJobLevel.
func (ctssstoajl ConnectToSourceSQLServerTaskOutputAgentJobLevel) AsBasicConnectToSourceSQLServerTaskOutput() (BasicConnectToSourceSQLServerTaskOutput, bool) {