forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
7551 lines (6837 loc) · 293 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 backup
// 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/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/recoveryservices/mgmt/2016-06-01/backup"
// DataSourceType enumerates the values for data source type.
type DataSourceType string
const (
// AzureSQLDb ...
AzureSQLDb DataSourceType = "AzureSqlDb"
// DPMUnknown ...
DPMUnknown DataSourceType = "DPMUnknown"
// Exchange ...
Exchange DataSourceType = "Exchange"
// FileFolder ...
FileFolder DataSourceType = "FileFolder"
// Invalid ...
Invalid DataSourceType = "Invalid"
// Sharepoint ...
Sharepoint DataSourceType = "Sharepoint"
// SQLDB ...
SQLDB DataSourceType = "SQLDB"
// VM ...
VM DataSourceType = "VM"
)
// PossibleDataSourceTypeValues returns an array of possible values for the DataSourceType const type.
func PossibleDataSourceTypeValues() []DataSourceType {
return []DataSourceType{AzureSQLDb, DPMUnknown, Exchange, FileFolder, Invalid, Sharepoint, SQLDB, VM}
}
// DayOfWeek enumerates the values for day of week.
type DayOfWeek string
const (
// Friday ...
Friday DayOfWeek = "Friday"
// Monday ...
Monday DayOfWeek = "Monday"
// Saturday ...
Saturday DayOfWeek = "Saturday"
// Sunday ...
Sunday DayOfWeek = "Sunday"
// Thursday ...
Thursday DayOfWeek = "Thursday"
// Tuesday ...
Tuesday DayOfWeek = "Tuesday"
// Wednesday ...
Wednesday DayOfWeek = "Wednesday"
)
// PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type.
func PossibleDayOfWeekValues() []DayOfWeek {
return []DayOfWeek{Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday}
}
// EngineType enumerates the values for engine type.
type EngineType string
const (
// BackupEngineTypeAzureBackupServerEngine ...
BackupEngineTypeAzureBackupServerEngine EngineType = "AzureBackupServerEngine"
// BackupEngineTypeBackupEngineBase ...
BackupEngineTypeBackupEngineBase EngineType = "BackupEngineBase"
// BackupEngineTypeDpmBackupEngine ...
BackupEngineTypeDpmBackupEngine EngineType = "DpmBackupEngine"
)
// PossibleEngineTypeValues returns an array of possible values for the EngineType const type.
func PossibleEngineTypeValues() []EngineType {
return []EngineType{BackupEngineTypeAzureBackupServerEngine, BackupEngineTypeBackupEngineBase, BackupEngineTypeDpmBackupEngine}
}
// HTTPStatusCode enumerates the values for http status code.
type HTTPStatusCode string
const (
// Accepted ...
Accepted HTTPStatusCode = "Accepted"
// Ambiguous ...
Ambiguous HTTPStatusCode = "Ambiguous"
// BadGateway ...
BadGateway HTTPStatusCode = "BadGateway"
// BadRequest ...
BadRequest HTTPStatusCode = "BadRequest"
// Conflict ...
Conflict HTTPStatusCode = "Conflict"
// Continue ...
Continue HTTPStatusCode = "Continue"
// Created ...
Created HTTPStatusCode = "Created"
// ExpectationFailed ...
ExpectationFailed HTTPStatusCode = "ExpectationFailed"
// Forbidden ...
Forbidden HTTPStatusCode = "Forbidden"
// Found ...
Found HTTPStatusCode = "Found"
// GatewayTimeout ...
GatewayTimeout HTTPStatusCode = "GatewayTimeout"
// Gone ...
Gone HTTPStatusCode = "Gone"
// HTTPVersionNotSupported ...
HTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported"
// InternalServerError ...
InternalServerError HTTPStatusCode = "InternalServerError"
// LengthRequired ...
LengthRequired HTTPStatusCode = "LengthRequired"
// MethodNotAllowed ...
MethodNotAllowed HTTPStatusCode = "MethodNotAllowed"
// Moved ...
Moved HTTPStatusCode = "Moved"
// MovedPermanently ...
MovedPermanently HTTPStatusCode = "MovedPermanently"
// MultipleChoices ...
MultipleChoices HTTPStatusCode = "MultipleChoices"
// NoContent ...
NoContent HTTPStatusCode = "NoContent"
// NonAuthoritativeInformation ...
NonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation"
// NotAcceptable ...
NotAcceptable HTTPStatusCode = "NotAcceptable"
// NotFound ...
NotFound HTTPStatusCode = "NotFound"
// NotImplemented ...
NotImplemented HTTPStatusCode = "NotImplemented"
// NotModified ...
NotModified HTTPStatusCode = "NotModified"
// OK ...
OK HTTPStatusCode = "OK"
// PartialContent ...
PartialContent HTTPStatusCode = "PartialContent"
// PaymentRequired ...
PaymentRequired HTTPStatusCode = "PaymentRequired"
// PreconditionFailed ...
PreconditionFailed HTTPStatusCode = "PreconditionFailed"
// ProxyAuthenticationRequired ...
ProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired"
// Redirect ...
Redirect HTTPStatusCode = "Redirect"
// RedirectKeepVerb ...
RedirectKeepVerb HTTPStatusCode = "RedirectKeepVerb"
// RedirectMethod ...
RedirectMethod HTTPStatusCode = "RedirectMethod"
// RequestedRangeNotSatisfiable ...
RequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable"
// RequestEntityTooLarge ...
RequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge"
// RequestTimeout ...
RequestTimeout HTTPStatusCode = "RequestTimeout"
// RequestURITooLong ...
RequestURITooLong HTTPStatusCode = "RequestUriTooLong"
// ResetContent ...
ResetContent HTTPStatusCode = "ResetContent"
// SeeOther ...
SeeOther HTTPStatusCode = "SeeOther"
// ServiceUnavailable ...
ServiceUnavailable HTTPStatusCode = "ServiceUnavailable"
// SwitchingProtocols ...
SwitchingProtocols HTTPStatusCode = "SwitchingProtocols"
// TemporaryRedirect ...
TemporaryRedirect HTTPStatusCode = "TemporaryRedirect"
// Unauthorized ...
Unauthorized HTTPStatusCode = "Unauthorized"
// UnsupportedMediaType ...
UnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType"
// Unused ...
Unused HTTPStatusCode = "Unused"
// UpgradeRequired ...
UpgradeRequired HTTPStatusCode = "UpgradeRequired"
// UseProxy ...
UseProxy HTTPStatusCode = "UseProxy"
)
// PossibleHTTPStatusCodeValues returns an array of possible values for the HTTPStatusCode const type.
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
return []HTTPStatusCode{Accepted, Ambiguous, BadGateway, BadRequest, Conflict, Continue, Created, ExpectationFailed, Forbidden, Found, GatewayTimeout, Gone, HTTPVersionNotSupported, InternalServerError, LengthRequired, MethodNotAllowed, Moved, MovedPermanently, MultipleChoices, NoContent, NonAuthoritativeInformation, NotAcceptable, NotFound, NotImplemented, NotModified, OK, PartialContent, PaymentRequired, PreconditionFailed, ProxyAuthenticationRequired, Redirect, RedirectKeepVerb, RedirectMethod, RequestedRangeNotSatisfiable, RequestEntityTooLarge, RequestTimeout, RequestURITooLong, ResetContent, SeeOther, ServiceUnavailable, SwitchingProtocols, TemporaryRedirect, Unauthorized, UnsupportedMediaType, Unused, UpgradeRequired, UseProxy}
}
// ItemType enumerates the values for item type.
type ItemType string
const (
// ItemTypeAzureSQLDb ...
ItemTypeAzureSQLDb ItemType = "AzureSqlDb"
// ItemTypeDPMUnknown ...
ItemTypeDPMUnknown ItemType = "DPMUnknown"
// ItemTypeExchange ...
ItemTypeExchange ItemType = "Exchange"
// ItemTypeFileFolder ...
ItemTypeFileFolder ItemType = "FileFolder"
// ItemTypeInvalid ...
ItemTypeInvalid ItemType = "Invalid"
// ItemTypeSharepoint ...
ItemTypeSharepoint ItemType = "Sharepoint"
// ItemTypeSQLDB ...
ItemTypeSQLDB ItemType = "SQLDB"
// ItemTypeVM ...
ItemTypeVM ItemType = "VM"
)
// PossibleItemTypeValues returns an array of possible values for the ItemType const type.
func PossibleItemTypeValues() []ItemType {
return []ItemType{ItemTypeAzureSQLDb, ItemTypeDPMUnknown, ItemTypeExchange, ItemTypeFileFolder, ItemTypeInvalid, ItemTypeSharepoint, ItemTypeSQLDB, ItemTypeVM}
}
// JobOperationType enumerates the values for job operation type.
type JobOperationType string
const (
// JobOperationTypeBackup ...
JobOperationTypeBackup JobOperationType = "Backup"
// JobOperationTypeConfigureBackup ...
JobOperationTypeConfigureBackup JobOperationType = "ConfigureBackup"
// JobOperationTypeDeleteBackupData ...
JobOperationTypeDeleteBackupData JobOperationType = "DeleteBackupData"
// JobOperationTypeDisableBackup ...
JobOperationTypeDisableBackup JobOperationType = "DisableBackup"
// JobOperationTypeInvalid ...
JobOperationTypeInvalid JobOperationType = "Invalid"
// JobOperationTypeRestore ...
JobOperationTypeRestore JobOperationType = "Restore"
)
// PossibleJobOperationTypeValues returns an array of possible values for the JobOperationType const type.
func PossibleJobOperationTypeValues() []JobOperationType {
return []JobOperationType{JobOperationTypeBackup, JobOperationTypeConfigureBackup, JobOperationTypeDeleteBackupData, JobOperationTypeDisableBackup, JobOperationTypeInvalid, JobOperationTypeRestore}
}
// JobStatus enumerates the values for job status.
type JobStatus string
const (
// JobStatusCancelled ...
JobStatusCancelled JobStatus = "Cancelled"
// JobStatusCancelling ...
JobStatusCancelling JobStatus = "Cancelling"
// JobStatusCompleted ...
JobStatusCompleted JobStatus = "Completed"
// JobStatusCompletedWithWarnings ...
JobStatusCompletedWithWarnings JobStatus = "CompletedWithWarnings"
// JobStatusFailed ...
JobStatusFailed JobStatus = "Failed"
// JobStatusInProgress ...
JobStatusInProgress JobStatus = "InProgress"
// JobStatusInvalid ...
JobStatusInvalid JobStatus = "Invalid"
)
// PossibleJobStatusValues returns an array of possible values for the JobStatus const type.
func PossibleJobStatusValues() []JobStatus {
return []JobStatus{JobStatusCancelled, JobStatusCancelling, JobStatusCompleted, JobStatusCompletedWithWarnings, JobStatusFailed, JobStatusInProgress, JobStatusInvalid}
}
// JobSupportedAction enumerates the values for job supported action.
type JobSupportedAction string
const (
// JobSupportedActionCancellable ...
JobSupportedActionCancellable JobSupportedAction = "Cancellable"
// JobSupportedActionInvalid ...
JobSupportedActionInvalid JobSupportedAction = "Invalid"
// JobSupportedActionRetriable ...
JobSupportedActionRetriable JobSupportedAction = "Retriable"
)
// PossibleJobSupportedActionValues returns an array of possible values for the JobSupportedAction const type.
func PossibleJobSupportedActionValues() []JobSupportedAction {
return []JobSupportedAction{JobSupportedActionCancellable, JobSupportedActionInvalid, JobSupportedActionRetriable}
}
// JobType enumerates the values for job type.
type JobType string
const (
// JobTypeAzureIaaSVMJob ...
JobTypeAzureIaaSVMJob JobType = "AzureIaaSVMJob"
// JobTypeDpmJob ...
JobTypeDpmJob JobType = "DpmJob"
// JobTypeJob ...
JobTypeJob JobType = "Job"
// JobTypeMabJob ...
JobTypeMabJob JobType = "MabJob"
)
// PossibleJobTypeValues returns an array of possible values for the JobType const type.
func PossibleJobTypeValues() []JobType {
return []JobType{JobTypeAzureIaaSVMJob, JobTypeDpmJob, JobTypeJob, JobTypeMabJob}
}
// MabServerType enumerates the values for mab server type.
type MabServerType string
const (
// MabServerTypeAzureSQLContainer ...
MabServerTypeAzureSQLContainer MabServerType = "AzureSqlContainer"
// MabServerTypeClusterResource ...
MabServerTypeClusterResource MabServerType = "ClusterResource"
// MabServerTypeDPMContainer ...
MabServerTypeDPMContainer MabServerType = "DPMContainer"
// MabServerTypeDPMVenusContainer ...
MabServerTypeDPMVenusContainer MabServerType = "DPMVenusContainer"
// MabServerTypeIaasVMContainer ...
MabServerTypeIaasVMContainer MabServerType = "IaasVMContainer"
// MabServerTypeIaasVMServiceContainer ...
MabServerTypeIaasVMServiceContainer MabServerType = "IaasVMServiceContainer"
// MabServerTypeInvalid ...
MabServerTypeInvalid MabServerType = "Invalid"
// MabServerTypeMABContainer ...
MabServerTypeMABContainer MabServerType = "MABContainer"
// MabServerTypeUnknown ...
MabServerTypeUnknown MabServerType = "Unknown"
// MabServerTypeWindows ...
MabServerTypeWindows MabServerType = "Windows"
// MabServerTypeWindowsServer ...
MabServerTypeWindowsServer MabServerType = "WindowsServer"
)
// PossibleMabServerTypeValues returns an array of possible values for the MabServerType const type.
func PossibleMabServerTypeValues() []MabServerType {
return []MabServerType{MabServerTypeAzureSQLContainer, MabServerTypeClusterResource, MabServerTypeDPMContainer, MabServerTypeDPMVenusContainer, MabServerTypeIaasVMContainer, MabServerTypeIaasVMServiceContainer, MabServerTypeInvalid, MabServerTypeMABContainer, MabServerTypeUnknown, MabServerTypeWindows, MabServerTypeWindowsServer}
}
// ManagementType enumerates the values for management type.
type ManagementType string
const (
// ManagementTypeAzureBackupServer ...
ManagementTypeAzureBackupServer ManagementType = "AzureBackupServer"
// ManagementTypeAzureIaasVM ...
ManagementTypeAzureIaasVM ManagementType = "AzureIaasVM"
// ManagementTypeAzureSQL ...
ManagementTypeAzureSQL ManagementType = "AzureSql"
// ManagementTypeDPM ...
ManagementTypeDPM ManagementType = "DPM"
// ManagementTypeInvalid ...
ManagementTypeInvalid ManagementType = "Invalid"
// ManagementTypeMAB ...
ManagementTypeMAB ManagementType = "MAB"
)
// PossibleManagementTypeValues returns an array of possible values for the ManagementType const type.
func PossibleManagementTypeValues() []ManagementType {
return []ManagementType{ManagementTypeAzureBackupServer, ManagementTypeAzureIaasVM, ManagementTypeAzureSQL, ManagementTypeDPM, ManagementTypeInvalid, ManagementTypeMAB}
}
// ManagementTypeBasicProtectionPolicy enumerates the values for management type basic protection policy.
type ManagementTypeBasicProtectionPolicy string
const (
// BackupManagementTypeAzureIaasVM ...
BackupManagementTypeAzureIaasVM ManagementTypeBasicProtectionPolicy = "AzureIaasVM"
// BackupManagementTypeAzureSQL ...
BackupManagementTypeAzureSQL ManagementTypeBasicProtectionPolicy = "AzureSql"
// BackupManagementTypeMAB ...
BackupManagementTypeMAB ManagementTypeBasicProtectionPolicy = "MAB"
// BackupManagementTypeProtectionPolicy ...
BackupManagementTypeProtectionPolicy ManagementTypeBasicProtectionPolicy = "ProtectionPolicy"
)
// PossibleManagementTypeBasicProtectionPolicyValues returns an array of possible values for the ManagementTypeBasicProtectionPolicy const type.
func PossibleManagementTypeBasicProtectionPolicyValues() []ManagementTypeBasicProtectionPolicy {
return []ManagementTypeBasicProtectionPolicy{BackupManagementTypeAzureIaasVM, BackupManagementTypeAzureSQL, BackupManagementTypeMAB, BackupManagementTypeProtectionPolicy}
}
// MonthOfYear enumerates the values for month of year.
type MonthOfYear string
const (
// MonthOfYearApril ...
MonthOfYearApril MonthOfYear = "April"
// MonthOfYearAugust ...
MonthOfYearAugust MonthOfYear = "August"
// MonthOfYearDecember ...
MonthOfYearDecember MonthOfYear = "December"
// MonthOfYearFebruary ...
MonthOfYearFebruary MonthOfYear = "February"
// MonthOfYearInvalid ...
MonthOfYearInvalid MonthOfYear = "Invalid"
// MonthOfYearJanuary ...
MonthOfYearJanuary MonthOfYear = "January"
// MonthOfYearJuly ...
MonthOfYearJuly MonthOfYear = "July"
// MonthOfYearJune ...
MonthOfYearJune MonthOfYear = "June"
// MonthOfYearMarch ...
MonthOfYearMarch MonthOfYear = "March"
// MonthOfYearMay ...
MonthOfYearMay MonthOfYear = "May"
// MonthOfYearNovember ...
MonthOfYearNovember MonthOfYear = "November"
// MonthOfYearOctober ...
MonthOfYearOctober MonthOfYear = "October"
// MonthOfYearSeptember ...
MonthOfYearSeptember MonthOfYear = "September"
)
// PossibleMonthOfYearValues returns an array of possible values for the MonthOfYear const type.
func PossibleMonthOfYearValues() []MonthOfYear {
return []MonthOfYear{MonthOfYearApril, MonthOfYearAugust, MonthOfYearDecember, MonthOfYearFebruary, MonthOfYearInvalid, MonthOfYearJanuary, MonthOfYearJuly, MonthOfYearJune, MonthOfYearMarch, MonthOfYearMay, MonthOfYearNovember, MonthOfYearOctober, MonthOfYearSeptember}
}
// ObjectType enumerates the values for object type.
type ObjectType string
const (
// ObjectTypeOperationStatusExtendedInfo ...
ObjectTypeOperationStatusExtendedInfo ObjectType = "OperationStatusExtendedInfo"
// ObjectTypeOperationStatusJobExtendedInfo ...
ObjectTypeOperationStatusJobExtendedInfo ObjectType = "OperationStatusJobExtendedInfo"
// ObjectTypeOperationStatusJobsExtendedInfo ...
ObjectTypeOperationStatusJobsExtendedInfo ObjectType = "OperationStatusJobsExtendedInfo"
// ObjectTypeOperationStatusProvisionILRExtendedInfo ...
ObjectTypeOperationStatusProvisionILRExtendedInfo ObjectType = "OperationStatusProvisionILRExtendedInfo"
)
// PossibleObjectTypeValues returns an array of possible values for the ObjectType const type.
func PossibleObjectTypeValues() []ObjectType {
return []ObjectType{ObjectTypeOperationStatusExtendedInfo, ObjectTypeOperationStatusJobExtendedInfo, ObjectTypeOperationStatusJobsExtendedInfo, ObjectTypeOperationStatusProvisionILRExtendedInfo}
}
// ObjectTypeBasicILRRequest enumerates the values for object type basic ilr request.
type ObjectTypeBasicILRRequest string
const (
// ObjectTypeIaasVMILRRegistrationRequest ...
ObjectTypeIaasVMILRRegistrationRequest ObjectTypeBasicILRRequest = "IaasVMILRRegistrationRequest"
// ObjectTypeILRRequest ...
ObjectTypeILRRequest ObjectTypeBasicILRRequest = "ILRRequest"
)
// PossibleObjectTypeBasicILRRequestValues returns an array of possible values for the ObjectTypeBasicILRRequest const type.
func PossibleObjectTypeBasicILRRequestValues() []ObjectTypeBasicILRRequest {
return []ObjectTypeBasicILRRequest{ObjectTypeIaasVMILRRegistrationRequest, ObjectTypeILRRequest}
}
// ObjectTypeBasicOperationResultInfoBase enumerates the values for object type basic operation result info
// base.
type ObjectTypeBasicOperationResultInfoBase string
const (
// ObjectTypeExportJobsOperationResultInfo ...
ObjectTypeExportJobsOperationResultInfo ObjectTypeBasicOperationResultInfoBase = "ExportJobsOperationResultInfo"
// ObjectTypeOperationResultInfo ...
ObjectTypeOperationResultInfo ObjectTypeBasicOperationResultInfoBase = "OperationResultInfo"
// ObjectTypeOperationResultInfoBase ...
ObjectTypeOperationResultInfoBase ObjectTypeBasicOperationResultInfoBase = "OperationResultInfoBase"
)
// PossibleObjectTypeBasicOperationResultInfoBaseValues returns an array of possible values for the ObjectTypeBasicOperationResultInfoBase const type.
func PossibleObjectTypeBasicOperationResultInfoBaseValues() []ObjectTypeBasicOperationResultInfoBase {
return []ObjectTypeBasicOperationResultInfoBase{ObjectTypeExportJobsOperationResultInfo, ObjectTypeOperationResultInfo, ObjectTypeOperationResultInfoBase}
}
// ObjectTypeBasicRecoveryPoint enumerates the values for object type basic recovery point.
type ObjectTypeBasicRecoveryPoint string
const (
// ObjectTypeGenericRecoveryPoint ...
ObjectTypeGenericRecoveryPoint ObjectTypeBasicRecoveryPoint = "GenericRecoveryPoint"
// ObjectTypeIaasVMRecoveryPoint ...
ObjectTypeIaasVMRecoveryPoint ObjectTypeBasicRecoveryPoint = "IaasVMRecoveryPoint"
// ObjectTypeRecoveryPoint ...
ObjectTypeRecoveryPoint ObjectTypeBasicRecoveryPoint = "RecoveryPoint"
)
// PossibleObjectTypeBasicRecoveryPointValues returns an array of possible values for the ObjectTypeBasicRecoveryPoint const type.
func PossibleObjectTypeBasicRecoveryPointValues() []ObjectTypeBasicRecoveryPoint {
return []ObjectTypeBasicRecoveryPoint{ObjectTypeGenericRecoveryPoint, ObjectTypeIaasVMRecoveryPoint, ObjectTypeRecoveryPoint}
}
// ObjectTypeBasicRequest enumerates the values for object type basic request.
type ObjectTypeBasicRequest string
const (
// ObjectTypeBackupRequest ...
ObjectTypeBackupRequest ObjectTypeBasicRequest = "BackupRequest"
// ObjectTypeIaasVMBackupRequest ...
ObjectTypeIaasVMBackupRequest ObjectTypeBasicRequest = "IaasVMBackupRequest"
)
// PossibleObjectTypeBasicRequestValues returns an array of possible values for the ObjectTypeBasicRequest const type.
func PossibleObjectTypeBasicRequestValues() []ObjectTypeBasicRequest {
return []ObjectTypeBasicRequest{ObjectTypeBackupRequest, ObjectTypeIaasVMBackupRequest}
}
// ObjectTypeBasicRestoreRequest enumerates the values for object type basic restore request.
type ObjectTypeBasicRestoreRequest string
const (
// ObjectTypeIaasVMRestoreRequest ...
ObjectTypeIaasVMRestoreRequest ObjectTypeBasicRestoreRequest = "IaasVMRestoreRequest"
// ObjectTypeRestoreRequest ...
ObjectTypeRestoreRequest ObjectTypeBasicRestoreRequest = "RestoreRequest"
)
// PossibleObjectTypeBasicRestoreRequestValues returns an array of possible values for the ObjectTypeBasicRestoreRequest const type.
func PossibleObjectTypeBasicRestoreRequestValues() []ObjectTypeBasicRestoreRequest {
return []ObjectTypeBasicRestoreRequest{ObjectTypeIaasVMRestoreRequest, ObjectTypeRestoreRequest}
}
// OperationStatusValues enumerates the values for operation status values.
type OperationStatusValues string
const (
// OperationStatusValuesCanceled ...
OperationStatusValuesCanceled OperationStatusValues = "Canceled"
// OperationStatusValuesFailed ...
OperationStatusValuesFailed OperationStatusValues = "Failed"
// OperationStatusValuesInProgress ...
OperationStatusValuesInProgress OperationStatusValues = "InProgress"
// OperationStatusValuesInvalid ...
OperationStatusValuesInvalid OperationStatusValues = "Invalid"
// OperationStatusValuesSucceeded ...
OperationStatusValuesSucceeded OperationStatusValues = "Succeeded"
)
// PossibleOperationStatusValuesValues returns an array of possible values for the OperationStatusValues const type.
func PossibleOperationStatusValuesValues() []OperationStatusValues {
return []OperationStatusValues{OperationStatusValuesCanceled, OperationStatusValuesFailed, OperationStatusValuesInProgress, OperationStatusValuesInvalid, OperationStatusValuesSucceeded}
}
// ProtectableItemType enumerates the values for protectable item type.
type ProtectableItemType string
const (
// ProtectableItemTypeIaaSVMProtectableItem ...
ProtectableItemTypeIaaSVMProtectableItem ProtectableItemType = "IaaSVMProtectableItem"
// ProtectableItemTypeMicrosoftClassicComputevirtualMachines ...
ProtectableItemTypeMicrosoftClassicComputevirtualMachines ProtectableItemType = "Microsoft.ClassicCompute/virtualMachines"
// ProtectableItemTypeMicrosoftComputevirtualMachines ...
ProtectableItemTypeMicrosoftComputevirtualMachines ProtectableItemType = "Microsoft.Compute/virtualMachines"
// ProtectableItemTypeWorkloadProtectableItem ...
ProtectableItemTypeWorkloadProtectableItem ProtectableItemType = "WorkloadProtectableItem"
)
// PossibleProtectableItemTypeValues returns an array of possible values for the ProtectableItemType const type.
func PossibleProtectableItemTypeValues() []ProtectableItemType {
return []ProtectableItemType{ProtectableItemTypeIaaSVMProtectableItem, ProtectableItemTypeMicrosoftClassicComputevirtualMachines, ProtectableItemTypeMicrosoftComputevirtualMachines, ProtectableItemTypeWorkloadProtectableItem}
}
// ProtectableObjectType enumerates the values for protectable object type.
type ProtectableObjectType string
const (
// ProtectableObjectTypeAzureSQLContainer ...
ProtectableObjectTypeAzureSQLContainer ProtectableObjectType = "AzureSqlContainer"
// ProtectableObjectTypeIaaSVMContainer ...
ProtectableObjectTypeIaaSVMContainer ProtectableObjectType = "IaaSVMContainer"
// ProtectableObjectTypeMABWindowsContainer ...
ProtectableObjectTypeMABWindowsContainer ProtectableObjectType = "MABWindowsContainer"
// ProtectableObjectTypeMicrosoftClassicComputevirtualMachines ...
ProtectableObjectTypeMicrosoftClassicComputevirtualMachines ProtectableObjectType = "Microsoft.ClassicCompute/virtualMachines"
// ProtectableObjectTypeMicrosoftComputevirtualMachines ...
ProtectableObjectTypeMicrosoftComputevirtualMachines ProtectableObjectType = "Microsoft.Compute/virtualMachines"
// ProtectableObjectTypeProtectionContainer ...
ProtectableObjectTypeProtectionContainer ProtectableObjectType = "ProtectionContainer"
)
// PossibleProtectableObjectTypeValues returns an array of possible values for the ProtectableObjectType const type.
func PossibleProtectableObjectTypeValues() []ProtectableObjectType {
return []ProtectableObjectType{ProtectableObjectTypeAzureSQLContainer, ProtectableObjectTypeIaaSVMContainer, ProtectableObjectTypeMABWindowsContainer, ProtectableObjectTypeMicrosoftClassicComputevirtualMachines, ProtectableObjectTypeMicrosoftComputevirtualMachines, ProtectableObjectTypeProtectionContainer}
}
// ProtectedItemState enumerates the values for protected item state.
type ProtectedItemState string
const (
// ProtectedItemStateInvalid ...
ProtectedItemStateInvalid ProtectedItemState = "Invalid"
// ProtectedItemStateIRPending ...
ProtectedItemStateIRPending ProtectedItemState = "IRPending"
// ProtectedItemStateProtected ...
ProtectedItemStateProtected ProtectedItemState = "Protected"
// ProtectedItemStateProtectionError ...
ProtectedItemStateProtectionError ProtectedItemState = "ProtectionError"
// ProtectedItemStateProtectionPaused ...
ProtectedItemStateProtectionPaused ProtectedItemState = "ProtectionPaused"
// ProtectedItemStateProtectionStopped ...
ProtectedItemStateProtectionStopped ProtectedItemState = "ProtectionStopped"
)
// PossibleProtectedItemStateValues returns an array of possible values for the ProtectedItemState const type.
func PossibleProtectedItemStateValues() []ProtectedItemState {
return []ProtectedItemState{ProtectedItemStateInvalid, ProtectedItemStateIRPending, ProtectedItemStateProtected, ProtectedItemStateProtectionError, ProtectedItemStateProtectionPaused, ProtectedItemStateProtectionStopped}
}
// ProtectedItemType enumerates the values for protected item type.
type ProtectedItemType string
const (
// ProtectedItemTypeAzureIaaSVMProtectedItem ...
ProtectedItemTypeAzureIaaSVMProtectedItem ProtectedItemType = "AzureIaaSVMProtectedItem"
// ProtectedItemTypeMabFileFolderProtectedItem ...
ProtectedItemTypeMabFileFolderProtectedItem ProtectedItemType = "MabFileFolderProtectedItem"
// ProtectedItemTypeMicrosoftClassicComputevirtualMachines ...
ProtectedItemTypeMicrosoftClassicComputevirtualMachines ProtectedItemType = "Microsoft.ClassicCompute/virtualMachines"
// ProtectedItemTypeMicrosoftComputevirtualMachines ...
ProtectedItemTypeMicrosoftComputevirtualMachines ProtectedItemType = "Microsoft.Compute/virtualMachines"
// ProtectedItemTypeMicrosoftSqlserversdatabases ...
ProtectedItemTypeMicrosoftSqlserversdatabases ProtectedItemType = "Microsoft.Sql/servers/databases"
// ProtectedItemTypeProtectedItem ...
ProtectedItemTypeProtectedItem ProtectedItemType = "ProtectedItem"
)
// PossibleProtectedItemTypeValues returns an array of possible values for the ProtectedItemType const type.
func PossibleProtectedItemTypeValues() []ProtectedItemType {
return []ProtectedItemType{ProtectedItemTypeAzureIaaSVMProtectedItem, ProtectedItemTypeMabFileFolderProtectedItem, ProtectedItemTypeMicrosoftClassicComputevirtualMachines, ProtectedItemTypeMicrosoftComputevirtualMachines, ProtectedItemTypeMicrosoftSqlserversdatabases, ProtectedItemTypeProtectedItem}
}
// ProtectionState enumerates the values for protection state.
type ProtectionState string
const (
// ProtectionStateInvalid ...
ProtectionStateInvalid ProtectionState = "Invalid"
// ProtectionStateIRPending ...
ProtectionStateIRPending ProtectionState = "IRPending"
// ProtectionStateProtected ...
ProtectionStateProtected ProtectionState = "Protected"
// ProtectionStateProtectionError ...
ProtectionStateProtectionError ProtectionState = "ProtectionError"
// ProtectionStateProtectionPaused ...
ProtectionStateProtectionPaused ProtectionState = "ProtectionPaused"
// ProtectionStateProtectionStopped ...
ProtectionStateProtectionStopped ProtectionState = "ProtectionStopped"
)
// PossibleProtectionStateValues returns an array of possible values for the ProtectionState const type.
func PossibleProtectionStateValues() []ProtectionState {
return []ProtectionState{ProtectionStateInvalid, ProtectionStateIRPending, ProtectionStateProtected, ProtectionStateProtectionError, ProtectionStateProtectionPaused, ProtectionStateProtectionStopped}
}
// ProtectionStatus enumerates the values for protection status.
type ProtectionStatus string
const (
// ProtectionStatusInvalid ...
ProtectionStatusInvalid ProtectionStatus = "Invalid"
// ProtectionStatusNotProtected ...
ProtectionStatusNotProtected ProtectionStatus = "NotProtected"
// ProtectionStatusProtected ...
ProtectionStatusProtected ProtectionStatus = "Protected"
// ProtectionStatusProtecting ...
ProtectionStatusProtecting ProtectionStatus = "Protecting"
)
// PossibleProtectionStatusValues returns an array of possible values for the ProtectionStatus const type.
func PossibleProtectionStatusValues() []ProtectionStatus {
return []ProtectionStatus{ProtectionStatusInvalid, ProtectionStatusNotProtected, ProtectionStatusProtected, ProtectionStatusProtecting}
}
// RecoveryType enumerates the values for recovery type.
type RecoveryType string
const (
// RecoveryTypeAlternateLocation ...
RecoveryTypeAlternateLocation RecoveryType = "AlternateLocation"
// RecoveryTypeInvalid ...
RecoveryTypeInvalid RecoveryType = "Invalid"
// RecoveryTypeOriginalLocation ...
RecoveryTypeOriginalLocation RecoveryType = "OriginalLocation"
// RecoveryTypeRestoreDisks ...
RecoveryTypeRestoreDisks RecoveryType = "RestoreDisks"
)
// PossibleRecoveryTypeValues returns an array of possible values for the RecoveryType const type.
func PossibleRecoveryTypeValues() []RecoveryType {
return []RecoveryType{RecoveryTypeAlternateLocation, RecoveryTypeInvalid, RecoveryTypeOriginalLocation, RecoveryTypeRestoreDisks}
}
// RetentionDurationType enumerates the values for retention duration type.
type RetentionDurationType string
const (
// RetentionDurationTypeDays ...
RetentionDurationTypeDays RetentionDurationType = "Days"
// RetentionDurationTypeInvalid ...
RetentionDurationTypeInvalid RetentionDurationType = "Invalid"
// RetentionDurationTypeMonths ...
RetentionDurationTypeMonths RetentionDurationType = "Months"
// RetentionDurationTypeWeeks ...
RetentionDurationTypeWeeks RetentionDurationType = "Weeks"
// RetentionDurationTypeYears ...
RetentionDurationTypeYears RetentionDurationType = "Years"
)
// PossibleRetentionDurationTypeValues returns an array of possible values for the RetentionDurationType const type.
func PossibleRetentionDurationTypeValues() []RetentionDurationType {
return []RetentionDurationType{RetentionDurationTypeDays, RetentionDurationTypeInvalid, RetentionDurationTypeMonths, RetentionDurationTypeWeeks, RetentionDurationTypeYears}
}
// RetentionPolicyType enumerates the values for retention policy type.
type RetentionPolicyType string
const (
// RetentionPolicyTypeLongTermRetentionPolicy ...
RetentionPolicyTypeLongTermRetentionPolicy RetentionPolicyType = "LongTermRetentionPolicy"
// RetentionPolicyTypeRetentionPolicy ...
RetentionPolicyTypeRetentionPolicy RetentionPolicyType = "RetentionPolicy"
// RetentionPolicyTypeSimpleRetentionPolicy ...
RetentionPolicyTypeSimpleRetentionPolicy RetentionPolicyType = "SimpleRetentionPolicy"
)
// PossibleRetentionPolicyTypeValues returns an array of possible values for the RetentionPolicyType const type.
func PossibleRetentionPolicyTypeValues() []RetentionPolicyType {
return []RetentionPolicyType{RetentionPolicyTypeLongTermRetentionPolicy, RetentionPolicyTypeRetentionPolicy, RetentionPolicyTypeSimpleRetentionPolicy}
}
// RetentionScheduleFormat enumerates the values for retention schedule format.
type RetentionScheduleFormat string
const (
// RetentionScheduleFormatDaily ...
RetentionScheduleFormatDaily RetentionScheduleFormat = "Daily"
// RetentionScheduleFormatInvalid ...
RetentionScheduleFormatInvalid RetentionScheduleFormat = "Invalid"
// RetentionScheduleFormatWeekly ...
RetentionScheduleFormatWeekly RetentionScheduleFormat = "Weekly"
)
// PossibleRetentionScheduleFormatValues returns an array of possible values for the RetentionScheduleFormat const type.
func PossibleRetentionScheduleFormatValues() []RetentionScheduleFormat {
return []RetentionScheduleFormat{RetentionScheduleFormatDaily, RetentionScheduleFormatInvalid, RetentionScheduleFormatWeekly}
}
// SchedulePolicyType enumerates the values for schedule policy type.
type SchedulePolicyType string
const (
// SchedulePolicyTypeLongTermSchedulePolicy ...
SchedulePolicyTypeLongTermSchedulePolicy SchedulePolicyType = "LongTermSchedulePolicy"
// SchedulePolicyTypeSchedulePolicy ...
SchedulePolicyTypeSchedulePolicy SchedulePolicyType = "SchedulePolicy"
// SchedulePolicyTypeSimpleSchedulePolicy ...
SchedulePolicyTypeSimpleSchedulePolicy SchedulePolicyType = "SimpleSchedulePolicy"
)
// PossibleSchedulePolicyTypeValues returns an array of possible values for the SchedulePolicyType const type.
func PossibleSchedulePolicyTypeValues() []SchedulePolicyType {
return []SchedulePolicyType{SchedulePolicyTypeLongTermSchedulePolicy, SchedulePolicyTypeSchedulePolicy, SchedulePolicyTypeSimpleSchedulePolicy}
}
// ScheduleRunType enumerates the values for schedule run type.
type ScheduleRunType string
const (
// ScheduleRunTypeDaily ...
ScheduleRunTypeDaily ScheduleRunType = "Daily"
// ScheduleRunTypeInvalid ...
ScheduleRunTypeInvalid ScheduleRunType = "Invalid"
// ScheduleRunTypeWeekly ...
ScheduleRunTypeWeekly ScheduleRunType = "Weekly"
)
// PossibleScheduleRunTypeValues returns an array of possible values for the ScheduleRunType const type.
func PossibleScheduleRunTypeValues() []ScheduleRunType {
return []ScheduleRunType{ScheduleRunTypeDaily, ScheduleRunTypeInvalid, ScheduleRunTypeWeekly}
}
// WeekOfMonth enumerates the values for week of month.
type WeekOfMonth string
const (
// First ...
First WeekOfMonth = "First"
// Fourth ...
Fourth WeekOfMonth = "Fourth"
// Last ...
Last WeekOfMonth = "Last"
// Second ...
Second WeekOfMonth = "Second"
// Third ...
Third WeekOfMonth = "Third"
)
// PossibleWeekOfMonthValues returns an array of possible values for the WeekOfMonth const type.
func PossibleWeekOfMonthValues() []WeekOfMonth {
return []WeekOfMonth{First, Fourth, Last, Second, Third}
}
// WorkloadType enumerates the values for workload type.
type WorkloadType string
const (
// WorkloadTypeAzureSQLDb ...
WorkloadTypeAzureSQLDb WorkloadType = "AzureSqlDb"
// WorkloadTypeDPMUnknown ...
WorkloadTypeDPMUnknown WorkloadType = "DPMUnknown"
// WorkloadTypeExchange ...
WorkloadTypeExchange WorkloadType = "Exchange"
// WorkloadTypeFileFolder ...
WorkloadTypeFileFolder WorkloadType = "FileFolder"
// WorkloadTypeInvalid ...
WorkloadTypeInvalid WorkloadType = "Invalid"
// WorkloadTypeSharepoint ...
WorkloadTypeSharepoint WorkloadType = "Sharepoint"
// WorkloadTypeSQLDB ...
WorkloadTypeSQLDB WorkloadType = "SQLDB"
// WorkloadTypeVM ...
WorkloadTypeVM WorkloadType = "VM"
)
// PossibleWorkloadTypeValues returns an array of possible values for the WorkloadType const type.
func PossibleWorkloadTypeValues() []WorkloadType {
return []WorkloadType{WorkloadTypeAzureSQLDb, WorkloadTypeDPMUnknown, WorkloadTypeExchange, WorkloadTypeFileFolder, WorkloadTypeInvalid, WorkloadTypeSharepoint, WorkloadTypeSQLDB, WorkloadTypeVM}
}
// AzureBackupServerEngine the backup engine type when Azure Backup Server is used to manage the backups.
type AzureBackupServerEngine struct {
// FriendlyName - The friendly name of the backup engine.
FriendlyName *string `json:"friendlyName,omitempty"`
// BackupManagementType - The type of backup management associated with the backup engine. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
// RegistrationStatus - The status of the backup engine registration with the Recovery Services vault.
RegistrationStatus *string `json:"registrationStatus,omitempty"`
// HealthStatus - The backup status of the backup engine.
HealthStatus *string `json:"healthStatus,omitempty"`
// CanReRegister - The flag indicating whether the backup engine be registered again, once the engine has been initially registered.
CanReRegister *bool `json:"canReRegister,omitempty"`
// BackupEngineID - The ID of the backup engine.
BackupEngineID *string `json:"backupEngineId,omitempty"`
// BackupEngineType - Possible values include: 'BackupEngineTypeBackupEngineBase', 'BackupEngineTypeAzureBackupServerEngine', 'BackupEngineTypeDpmBackupEngine'
BackupEngineType EngineType `json:"backupEngineType,omitempty"`
}
// MarshalJSON is the custom marshaler for AzureBackupServerEngine.
func (abse AzureBackupServerEngine) MarshalJSON() ([]byte, error) {
abse.BackupEngineType = BackupEngineTypeAzureBackupServerEngine
objectMap := make(map[string]interface{})
if abse.FriendlyName != nil {
objectMap["friendlyName"] = abse.FriendlyName
}
if abse.BackupManagementType != "" {
objectMap["backupManagementType"] = abse.BackupManagementType
}
if abse.RegistrationStatus != nil {
objectMap["registrationStatus"] = abse.RegistrationStatus
}
if abse.HealthStatus != nil {
objectMap["healthStatus"] = abse.HealthStatus
}
if abse.CanReRegister != nil {
objectMap["canReRegister"] = abse.CanReRegister
}
if abse.BackupEngineID != nil {
objectMap["backupEngineId"] = abse.BackupEngineID
}
if abse.BackupEngineType != "" {
objectMap["backupEngineType"] = abse.BackupEngineType
}
return json.Marshal(objectMap)
}
// AsAzureBackupServerEngine is the BasicEngineBase implementation for AzureBackupServerEngine.
func (abse AzureBackupServerEngine) AsAzureBackupServerEngine() (*AzureBackupServerEngine, bool) {
return &abse, true
}
// AsDpmBackupEngine is the BasicEngineBase implementation for AzureBackupServerEngine.
func (abse AzureBackupServerEngine) AsDpmBackupEngine() (*DpmBackupEngine, bool) {
return nil, false
}
// AsEngineBase is the BasicEngineBase implementation for AzureBackupServerEngine.
func (abse AzureBackupServerEngine) AsEngineBase() (*EngineBase, bool) {
return nil, false
}
// AsBasicEngineBase is the BasicEngineBase implementation for AzureBackupServerEngine.
func (abse AzureBackupServerEngine) AsBasicEngineBase() (BasicEngineBase, bool) {
return &abse, true
}
// AzureIaaSClassicComputeVMContainer iaaS VM workload-specific backup item representing a classic-deployed
// virtual machine.
type AzureIaaSClassicComputeVMContainer struct {
// VirtualMachineID - The fully qualified Resource Manager URL of the virtual machine represented by this Azure IaaS VM container.
VirtualMachineID *string `json:"virtualMachineId,omitempty"`
// VirtualMachineVersion - Specifies whether the container represents a classic or a Resource Manager-deployed virtual machine.
VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"`
// ResourceGroup - The resource group name associated with the Recovery Services vault.
ResourceGroup *string `json:"resourceGroup,omitempty"`
// FriendlyName - Friendly name of the container.
FriendlyName *string `json:"friendlyName,omitempty"`
// BackupManagementType - The backup management type for the container. Possible values include: 'ManagementTypeInvalid', 'ManagementTypeAzureIaasVM', 'ManagementTypeMAB', 'ManagementTypeDPM', 'ManagementTypeAzureBackupServer', 'ManagementTypeAzureSQL'
BackupManagementType ManagementType `json:"backupManagementType,omitempty"`
// RegistrationStatus - The container's registration status with the Recovery Services vault.
RegistrationStatus *string `json:"registrationStatus,omitempty"`
// HealthStatus - The status of the container's health.
HealthStatus *string `json:"healthStatus,omitempty"`
// ContainerType - READ-ONLY; The type assigned to the container. The values to use for each of these properties are:<br/> 1. Compute Azure VM is Microsoft.Compute/virtualMachines<br/> 2. Classic Compute Azure VM is Microsoft.ClassicCompute/virtualMachines<br/> 3. Windows machines (like Azure Backup Server and DPM) is Windows<br/> 4. Azure SQL instance is AzureSqlContainer.
ContainerType *string `json:"containerType,omitempty"`
// ProtectableObjectType - Possible values include: 'ProtectableObjectTypeProtectionContainer', 'ProtectableObjectTypeAzureSQLContainer', 'ProtectableObjectTypeIaaSVMContainer', 'ProtectableObjectTypeMABWindowsContainer', 'ProtectableObjectTypeMicrosoftComputevirtualMachines', 'ProtectableObjectTypeMicrosoftClassicComputevirtualMachines'
ProtectableObjectType ProtectableObjectType `json:"protectableObjectType,omitempty"`
}
// MarshalJSON is the custom marshaler for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) MarshalJSON() ([]byte, error) {
aisccvc.ProtectableObjectType = ProtectableObjectTypeMicrosoftClassicComputevirtualMachines
objectMap := make(map[string]interface{})
if aisccvc.VirtualMachineID != nil {
objectMap["virtualMachineId"] = aisccvc.VirtualMachineID
}
if aisccvc.VirtualMachineVersion != nil {
objectMap["virtualMachineVersion"] = aisccvc.VirtualMachineVersion
}
if aisccvc.ResourceGroup != nil {
objectMap["resourceGroup"] = aisccvc.ResourceGroup
}
if aisccvc.FriendlyName != nil {
objectMap["friendlyName"] = aisccvc.FriendlyName
}
if aisccvc.BackupManagementType != "" {
objectMap["backupManagementType"] = aisccvc.BackupManagementType
}
if aisccvc.RegistrationStatus != nil {
objectMap["registrationStatus"] = aisccvc.RegistrationStatus
}
if aisccvc.HealthStatus != nil {
objectMap["healthStatus"] = aisccvc.HealthStatus
}
if aisccvc.ProtectableObjectType != "" {
objectMap["protectableObjectType"] = aisccvc.ProtectableObjectType
}
return json.Marshal(objectMap)
}
// AsAzureSQLContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureSQLContainer() (*AzureSQLContainer, bool) {
return nil, false
}
// AsIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsIaaSVMContainer() (*IaaSVMContainer, bool) {
return nil, false
}
// AsBasicIaaSVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicIaaSVMContainer() (BasicIaaSVMContainer, bool) {
return &aisccvc, true
}
// AsMabContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsMabContainer() (*MabContainer, bool) {
return nil, false
}
// AsAzureIaaSComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureIaaSComputeVMContainer() (*AzureIaaSComputeVMContainer, bool) {
return nil, false
}
// AsAzureIaaSClassicComputeVMContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsAzureIaaSClassicComputeVMContainer() (*AzureIaaSClassicComputeVMContainer, bool) {
return &aisccvc, true
}
// AsProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsProtectionContainer() (*ProtectionContainer, bool) {
return nil, false
}
// AsBasicProtectionContainer is the BasicProtectionContainer implementation for AzureIaaSClassicComputeVMContainer.
func (aisccvc AzureIaaSClassicComputeVMContainer) AsBasicProtectionContainer() (BasicProtectionContainer, bool) {
return &aisccvc, true
}
// AzureIaaSClassicComputeVMProtectableItem iaaS VM workload-specific backup item representing a classic
// VM.
type AzureIaaSClassicComputeVMProtectableItem struct {
// VirtualMachineID - The fully qualified Resource Manager ID of the virtual machine.
VirtualMachineID *string `json:"virtualMachineId,omitempty"`