File: models.go

package info (click to toggle)
golang-github-azure-azure-sdk-for-go 10.3.0~beta-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, experimental
  • size: 15,936 kB
  • ctags: 22,331
  • sloc: sh: 33; makefile: 8
file content (2113 lines) | stat: -rwxr-xr-x 102,892 bytes parent folder | download
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
package recoveryservicesbackup

// 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 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

import (
	"github.com/Azure/go-autorest/autorest"
	"github.com/Azure/go-autorest/autorest/date"
	"github.com/Azure/go-autorest/autorest/to"
	"net/http"
)

// BackupItemType enumerates the values for backup item type.
type BackupItemType string

const (
	// AzureSQLDb specifies the azure sql db state for backup item type.
	AzureSQLDb BackupItemType = "AzureSqlDb"
	// Client specifies the client state for backup item type.
	Client BackupItemType = "Client"
	// Exchange specifies the exchange state for backup item type.
	Exchange BackupItemType = "Exchange"
	// FileFolder specifies the file folder state for backup item type.
	FileFolder BackupItemType = "FileFolder"
	// GenericDataSource specifies the generic data source state for backup
	// item type.
	GenericDataSource BackupItemType = "GenericDataSource"
	// Invalid specifies the invalid state for backup item type.
	Invalid BackupItemType = "Invalid"
	// Sharepoint specifies the sharepoint state for backup item type.
	Sharepoint BackupItemType = "Sharepoint"
	// SQLDB specifies the sqldb state for backup item type.
	SQLDB BackupItemType = "SQLDB"
	// SystemState specifies the system state state for backup item type.
	SystemState BackupItemType = "SystemState"
	// VM specifies the vm state for backup item type.
	VM BackupItemType = "VM"
	// VMwareVM specifies the v mware vm state for backup item type.
	VMwareVM BackupItemType = "VMwareVM"
)

// BackupManagementType enumerates the values for backup management type.
type BackupManagementType string

const (
	// BackupManagementTypeAzureBackupServer specifies the backup management
	// type azure backup server state for backup management type.
	BackupManagementTypeAzureBackupServer BackupManagementType = "AzureBackupServer"
	// BackupManagementTypeAzureIaasVM specifies the backup management type
	// azure iaas vm state for backup management type.
	BackupManagementTypeAzureIaasVM BackupManagementType = "AzureIaasVM"
	// BackupManagementTypeAzureSQL specifies the backup management type azure
	// sql state for backup management type.
	BackupManagementTypeAzureSQL BackupManagementType = "AzureSql"
	// BackupManagementTypeDPM specifies the backup management type dpm state
	// for backup management type.
	BackupManagementTypeDPM BackupManagementType = "DPM"
	// BackupManagementTypeInvalid specifies the backup management type invalid
	// state for backup management type.
	BackupManagementTypeInvalid BackupManagementType = "Invalid"
	// BackupManagementTypeMAB specifies the backup management type mab state
	// for backup management type.
	BackupManagementTypeMAB BackupManagementType = "MAB"
)

// ContainerType enumerates the values for container type.
type ContainerType string

const (
	// ContainerTypeAzureBackupServerContainer specifies the container type
	// azure backup server container state for container type.
	ContainerTypeAzureBackupServerContainer ContainerType = "AzureBackupServerContainer"
	// ContainerTypeAzureSQLContainer specifies the container type azure sql
	// container state for container type.
	ContainerTypeAzureSQLContainer ContainerType = "AzureSqlContainer"
	// ContainerTypeCluster specifies the container type cluster state for
	// container type.
	ContainerTypeCluster ContainerType = "Cluster"
	// ContainerTypeDPMContainer specifies the container type dpm container
	// state for container type.
	ContainerTypeDPMContainer ContainerType = "DPMContainer"
	// ContainerTypeIaasVMContainer specifies the container type iaas vm
	// container state for container type.
	ContainerTypeIaasVMContainer ContainerType = "IaasVMContainer"
	// ContainerTypeIaasVMServiceContainer specifies the container type iaas vm
	// service container state for container type.
	ContainerTypeIaasVMServiceContainer ContainerType = "IaasVMServiceContainer"
	// ContainerTypeInvalid specifies the container type invalid state for
	// container type.
	ContainerTypeInvalid ContainerType = "Invalid"
	// ContainerTypeMABContainer specifies the container type mab container
	// state for container type.
	ContainerTypeMABContainer ContainerType = "MABContainer"
	// ContainerTypeUnknown specifies the container type unknown state for
	// container type.
	ContainerTypeUnknown ContainerType = "Unknown"
	// ContainerTypeVCenter specifies the container type v center state for
	// container type.
	ContainerTypeVCenter ContainerType = "VCenter"
	// ContainerTypeWindows specifies the container type windows state for
	// container type.
	ContainerTypeWindows ContainerType = "Windows"
)

// DataSourceType enumerates the values for data source type.
type DataSourceType string

const (
	// DataSourceTypeAzureSQLDb specifies the data source type azure sql db
	// state for data source type.
	DataSourceTypeAzureSQLDb DataSourceType = "AzureSqlDb"
	// DataSourceTypeClient specifies the data source type client state for
	// data source type.
	DataSourceTypeClient DataSourceType = "Client"
	// DataSourceTypeExchange specifies the data source type exchange state for
	// data source type.
	DataSourceTypeExchange DataSourceType = "Exchange"
	// DataSourceTypeFileFolder specifies the data source type file folder
	// state for data source type.
	DataSourceTypeFileFolder DataSourceType = "FileFolder"
	// DataSourceTypeGenericDataSource specifies the data source type generic
	// data source state for data source type.
	DataSourceTypeGenericDataSource DataSourceType = "GenericDataSource"
	// DataSourceTypeInvalid specifies the data source type invalid state for
	// data source type.
	DataSourceTypeInvalid DataSourceType = "Invalid"
	// DataSourceTypeSharepoint specifies the data source type sharepoint state
	// for data source type.
	DataSourceTypeSharepoint DataSourceType = "Sharepoint"
	// DataSourceTypeSQLDB specifies the data source type sqldb state for data
	// source type.
	DataSourceTypeSQLDB DataSourceType = "SQLDB"
	// DataSourceTypeSystemState specifies the data source type system state
	// state for data source type.
	DataSourceTypeSystemState DataSourceType = "SystemState"
	// DataSourceTypeVM specifies the data source type vm state for data source
	// type.
	DataSourceTypeVM DataSourceType = "VM"
	// DataSourceTypeVMwareVM specifies the data source type v mware vm state
	// for data source type.
	DataSourceTypeVMwareVM DataSourceType = "VMwareVM"
)

// DayOfWeek enumerates the values for day of week.
type DayOfWeek string

const (
	// Friday specifies the friday state for day of week.
	Friday DayOfWeek = "Friday"
	// Monday specifies the monday state for day of week.
	Monday DayOfWeek = "Monday"
	// Saturday specifies the saturday state for day of week.
	Saturday DayOfWeek = "Saturday"
	// Sunday specifies the sunday state for day of week.
	Sunday DayOfWeek = "Sunday"
	// Thursday specifies the thursday state for day of week.
	Thursday DayOfWeek = "Thursday"
	// Tuesday specifies the tuesday state for day of week.
	Tuesday DayOfWeek = "Tuesday"
	// Wednesday specifies the wednesday state for day of week.
	Wednesday DayOfWeek = "Wednesday"
)

// EnhancedSecurityState enumerates the values for enhanced security state.
type EnhancedSecurityState string

const (
	// EnhancedSecurityStateDisabled specifies the enhanced security state
	// disabled state for enhanced security state.
	EnhancedSecurityStateDisabled EnhancedSecurityState = "Disabled"
	// EnhancedSecurityStateEnabled specifies the enhanced security state
	// enabled state for enhanced security state.
	EnhancedSecurityStateEnabled EnhancedSecurityState = "Enabled"
	// EnhancedSecurityStateInvalid specifies the enhanced security state
	// invalid state for enhanced security state.
	EnhancedSecurityStateInvalid EnhancedSecurityState = "Invalid"
)

// HealthState enumerates the values for health state.
type HealthState string

const (
	// HealthStateActionRequired specifies the health state action required
	// state for health state.
	HealthStateActionRequired HealthState = "ActionRequired"
	// HealthStateActionSuggested specifies the health state action suggested
	// state for health state.
	HealthStateActionSuggested HealthState = "ActionSuggested"
	// HealthStateInvalid specifies the health state invalid state for health
	// state.
	HealthStateInvalid HealthState = "Invalid"
	// HealthStatePassed specifies the health state passed state for health
	// state.
	HealthStatePassed HealthState = "Passed"
)

// HealthStatus enumerates the values for health status.
type HealthStatus string

const (
	// HealthStatusActionRequired specifies the health status action required
	// state for health status.
	HealthStatusActionRequired HealthStatus = "ActionRequired"
	// HealthStatusActionSuggested specifies the health status action suggested
	// state for health status.
	HealthStatusActionSuggested HealthStatus = "ActionSuggested"
	// HealthStatusInvalid specifies the health status invalid state for health
	// status.
	HealthStatusInvalid HealthStatus = "Invalid"
	// HealthStatusPassed specifies the health status passed state for health
	// status.
	HealthStatusPassed HealthStatus = "Passed"
)

// HTTPStatusCode enumerates the values for http status code.
type HTTPStatusCode string

const (
	// Accepted specifies the accepted state for http status code.
	Accepted HTTPStatusCode = "Accepted"
	// Ambiguous specifies the ambiguous state for http status code.
	Ambiguous HTTPStatusCode = "Ambiguous"
	// BadGateway specifies the bad gateway state for http status code.
	BadGateway HTTPStatusCode = "BadGateway"
	// BadRequest specifies the bad request state for http status code.
	BadRequest HTTPStatusCode = "BadRequest"
	// Conflict specifies the conflict state for http status code.
	Conflict HTTPStatusCode = "Conflict"
	// Continue specifies the continue state for http status code.
	Continue HTTPStatusCode = "Continue"
	// Created specifies the created state for http status code.
	Created HTTPStatusCode = "Created"
	// ExpectationFailed specifies the expectation failed state for http status
	// code.
	ExpectationFailed HTTPStatusCode = "ExpectationFailed"
	// Forbidden specifies the forbidden state for http status code.
	Forbidden HTTPStatusCode = "Forbidden"
	// Found specifies the found state for http status code.
	Found HTTPStatusCode = "Found"
	// GatewayTimeout specifies the gateway timeout state for http status code.
	GatewayTimeout HTTPStatusCode = "GatewayTimeout"
	// Gone specifies the gone state for http status code.
	Gone HTTPStatusCode = "Gone"
	// HTTPVersionNotSupported specifies the http version not supported state
	// for http status code.
	HTTPVersionNotSupported HTTPStatusCode = "HttpVersionNotSupported"
	// InternalServerError specifies the internal server error state for http
	// status code.
	InternalServerError HTTPStatusCode = "InternalServerError"
	// LengthRequired specifies the length required state for http status code.
	LengthRequired HTTPStatusCode = "LengthRequired"
	// MethodNotAllowed specifies the method not allowed state for http status
	// code.
	MethodNotAllowed HTTPStatusCode = "MethodNotAllowed"
	// Moved specifies the moved state for http status code.
	Moved HTTPStatusCode = "Moved"
	// MovedPermanently specifies the moved permanently state for http status
	// code.
	MovedPermanently HTTPStatusCode = "MovedPermanently"
	// MultipleChoices specifies the multiple choices state for http status
	// code.
	MultipleChoices HTTPStatusCode = "MultipleChoices"
	// NoContent specifies the no content state for http status code.
	NoContent HTTPStatusCode = "NoContent"
	// NonAuthoritativeInformation specifies the non authoritative information
	// state for http status code.
	NonAuthoritativeInformation HTTPStatusCode = "NonAuthoritativeInformation"
	// NotAcceptable specifies the not acceptable state for http status code.
	NotAcceptable HTTPStatusCode = "NotAcceptable"
	// NotFound specifies the not found state for http status code.
	NotFound HTTPStatusCode = "NotFound"
	// NotImplemented specifies the not implemented state for http status code.
	NotImplemented HTTPStatusCode = "NotImplemented"
	// NotModified specifies the not modified state for http status code.
	NotModified HTTPStatusCode = "NotModified"
	// OK specifies the ok state for http status code.
	OK HTTPStatusCode = "OK"
	// PartialContent specifies the partial content state for http status code.
	PartialContent HTTPStatusCode = "PartialContent"
	// PaymentRequired specifies the payment required state for http status
	// code.
	PaymentRequired HTTPStatusCode = "PaymentRequired"
	// PreconditionFailed specifies the precondition failed state for http
	// status code.
	PreconditionFailed HTTPStatusCode = "PreconditionFailed"
	// ProxyAuthenticationRequired specifies the proxy authentication required
	// state for http status code.
	ProxyAuthenticationRequired HTTPStatusCode = "ProxyAuthenticationRequired"
	// Redirect specifies the redirect state for http status code.
	Redirect HTTPStatusCode = "Redirect"
	// RedirectKeepVerb specifies the redirect keep verb state for http status
	// code.
	RedirectKeepVerb HTTPStatusCode = "RedirectKeepVerb"
	// RedirectMethod specifies the redirect method state for http status code.
	RedirectMethod HTTPStatusCode = "RedirectMethod"
	// RequestedRangeNotSatisfiable specifies the requested range not
	// satisfiable state for http status code.
	RequestedRangeNotSatisfiable HTTPStatusCode = "RequestedRangeNotSatisfiable"
	// RequestEntityTooLarge specifies the request entity too large state for
	// http status code.
	RequestEntityTooLarge HTTPStatusCode = "RequestEntityTooLarge"
	// RequestTimeout specifies the request timeout state for http status code.
	RequestTimeout HTTPStatusCode = "RequestTimeout"
	// RequestURITooLong specifies the request uri too long state for http
	// status code.
	RequestURITooLong HTTPStatusCode = "RequestUriTooLong"
	// ResetContent specifies the reset content state for http status code.
	ResetContent HTTPStatusCode = "ResetContent"
	// SeeOther specifies the see other state for http status code.
	SeeOther HTTPStatusCode = "SeeOther"
	// ServiceUnavailable specifies the service unavailable state for http
	// status code.
	ServiceUnavailable HTTPStatusCode = "ServiceUnavailable"
	// SwitchingProtocols specifies the switching protocols state for http
	// status code.
	SwitchingProtocols HTTPStatusCode = "SwitchingProtocols"
	// TemporaryRedirect specifies the temporary redirect state for http status
	// code.
	TemporaryRedirect HTTPStatusCode = "TemporaryRedirect"
	// Unauthorized specifies the unauthorized state for http status code.
	Unauthorized HTTPStatusCode = "Unauthorized"
	// UnsupportedMediaType specifies the unsupported media type state for http
	// status code.
	UnsupportedMediaType HTTPStatusCode = "UnsupportedMediaType"
	// Unused specifies the unused state for http status code.
	Unused HTTPStatusCode = "Unused"
	// UpgradeRequired specifies the upgrade required state for http status
	// code.
	UpgradeRequired HTTPStatusCode = "UpgradeRequired"
	// UseProxy specifies the use proxy state for http status code.
	UseProxy HTTPStatusCode = "UseProxy"
)

// JobOperationType enumerates the values for job operation type.
type JobOperationType string

const (
	// JobOperationTypeBackup specifies the job operation type backup state for
	// job operation type.
	JobOperationTypeBackup JobOperationType = "Backup"
	// JobOperationTypeConfigureBackup specifies the job operation type
	// configure backup state for job operation type.
	JobOperationTypeConfigureBackup JobOperationType = "ConfigureBackup"
	// JobOperationTypeDeleteBackupData specifies the job operation type delete
	// backup data state for job operation type.
	JobOperationTypeDeleteBackupData JobOperationType = "DeleteBackupData"
	// JobOperationTypeDisableBackup specifies the job operation type disable
	// backup state for job operation type.
	JobOperationTypeDisableBackup JobOperationType = "DisableBackup"
	// JobOperationTypeInvalid specifies the job operation type invalid state
	// for job operation type.
	JobOperationTypeInvalid JobOperationType = "Invalid"
	// JobOperationTypeRegister specifies the job operation type register state
	// for job operation type.
	JobOperationTypeRegister JobOperationType = "Register"
	// JobOperationTypeRestore specifies the job operation type restore state
	// for job operation type.
	JobOperationTypeRestore JobOperationType = "Restore"
	// JobOperationTypeUnRegister specifies the job operation type un register
	// state for job operation type.
	JobOperationTypeUnRegister JobOperationType = "UnRegister"
)

// JobStatus enumerates the values for job status.
type JobStatus string

const (
	// JobStatusCancelled specifies the job status cancelled state for job
	// status.
	JobStatusCancelled JobStatus = "Cancelled"
	// JobStatusCancelling specifies the job status cancelling state for job
	// status.
	JobStatusCancelling JobStatus = "Cancelling"
	// JobStatusCompleted specifies the job status completed state for job
	// status.
	JobStatusCompleted JobStatus = "Completed"
	// JobStatusCompletedWithWarnings specifies the job status completed with
	// warnings state for job status.
	JobStatusCompletedWithWarnings JobStatus = "CompletedWithWarnings"
	// JobStatusFailed specifies the job status failed state for job status.
	JobStatusFailed JobStatus = "Failed"
	// JobStatusInProgress specifies the job status in progress state for job
	// status.
	JobStatusInProgress JobStatus = "InProgress"
	// JobStatusInvalid specifies the job status invalid state for job status.
	JobStatusInvalid JobStatus = "Invalid"
)

// JobSupportedAction enumerates the values for job supported action.
type JobSupportedAction string

const (
	// JobSupportedActionCancellable specifies the job supported action
	// cancellable state for job supported action.
	JobSupportedActionCancellable JobSupportedAction = "Cancellable"
	// JobSupportedActionInvalid specifies the job supported action invalid
	// state for job supported action.
	JobSupportedActionInvalid JobSupportedAction = "Invalid"
	// JobSupportedActionRetriable specifies the job supported action retriable
	// state for job supported action.
	JobSupportedActionRetriable JobSupportedAction = "Retriable"
)

// MabServerType enumerates the values for mab server type.
type MabServerType string

const (
	// MabServerTypeAzureBackupServerContainer specifies the mab server type
	// azure backup server container state for mab server type.
	MabServerTypeAzureBackupServerContainer MabServerType = "AzureBackupServerContainer"
	// MabServerTypeAzureSQLContainer specifies the mab server type azure sql
	// container state for mab server type.
	MabServerTypeAzureSQLContainer MabServerType = "AzureSqlContainer"
	// MabServerTypeCluster specifies the mab server type cluster state for mab
	// server type.
	MabServerTypeCluster MabServerType = "Cluster"
	// MabServerTypeDPMContainer specifies the mab server type dpm container
	// state for mab server type.
	MabServerTypeDPMContainer MabServerType = "DPMContainer"
	// MabServerTypeIaasVMContainer specifies the mab server type iaas vm
	// container state for mab server type.
	MabServerTypeIaasVMContainer MabServerType = "IaasVMContainer"
	// MabServerTypeIaasVMServiceContainer specifies the mab server type iaas
	// vm service container state for mab server type.
	MabServerTypeIaasVMServiceContainer MabServerType = "IaasVMServiceContainer"
	// MabServerTypeInvalid specifies the mab server type invalid state for mab
	// server type.
	MabServerTypeInvalid MabServerType = "Invalid"
	// MabServerTypeMABContainer specifies the mab server type mab container
	// state for mab server type.
	MabServerTypeMABContainer MabServerType = "MABContainer"
	// MabServerTypeUnknown specifies the mab server type unknown state for mab
	// server type.
	MabServerTypeUnknown MabServerType = "Unknown"
	// MabServerTypeVCenter specifies the mab server type v center state for
	// mab server type.
	MabServerTypeVCenter MabServerType = "VCenter"
	// MabServerTypeWindows specifies the mab server type windows state for mab
	// server type.
	MabServerTypeWindows MabServerType = "Windows"
)

// MonthOfYear enumerates the values for month of year.
type MonthOfYear string

const (
	// MonthOfYearApril specifies the month of year april state for month of
	// year.
	MonthOfYearApril MonthOfYear = "April"
	// MonthOfYearAugust specifies the month of year august state for month of
	// year.
	MonthOfYearAugust MonthOfYear = "August"
	// MonthOfYearDecember specifies the month of year december state for month
	// of year.
	MonthOfYearDecember MonthOfYear = "December"
	// MonthOfYearFebruary specifies the month of year february state for month
	// of year.
	MonthOfYearFebruary MonthOfYear = "February"
	// MonthOfYearInvalid specifies the month of year invalid state for month
	// of year.
	MonthOfYearInvalid MonthOfYear = "Invalid"
	// MonthOfYearJanuary specifies the month of year january state for month
	// of year.
	MonthOfYearJanuary MonthOfYear = "January"
	// MonthOfYearJuly specifies the month of year july state for month of
	// year.
	MonthOfYearJuly MonthOfYear = "July"
	// MonthOfYearJune specifies the month of year june state for month of
	// year.
	MonthOfYearJune MonthOfYear = "June"
	// MonthOfYearMarch specifies the month of year march state for month of
	// year.
	MonthOfYearMarch MonthOfYear = "March"
	// MonthOfYearMay specifies the month of year may state for month of year.
	MonthOfYearMay MonthOfYear = "May"
	// MonthOfYearNovember specifies the month of year november state for month
	// of year.
	MonthOfYearNovember MonthOfYear = "November"
	// MonthOfYearOctober specifies the month of year october state for month
	// of year.
	MonthOfYearOctober MonthOfYear = "October"
	// MonthOfYearSeptember specifies the month of year september state for
	// month of year.
	MonthOfYearSeptember MonthOfYear = "September"
)

// OperationStatusValues enumerates the values for operation status values.
type OperationStatusValues string

const (
	// OperationStatusValuesCanceled specifies the operation status values
	// canceled state for operation status values.
	OperationStatusValuesCanceled OperationStatusValues = "Canceled"
	// OperationStatusValuesFailed specifies the operation status values failed
	// state for operation status values.
	OperationStatusValuesFailed OperationStatusValues = "Failed"
	// OperationStatusValuesInProgress specifies the operation status values in
	// progress state for operation status values.
	OperationStatusValuesInProgress OperationStatusValues = "InProgress"
	// OperationStatusValuesInvalid specifies the operation status values
	// invalid state for operation status values.
	OperationStatusValuesInvalid OperationStatusValues = "Invalid"
	// OperationStatusValuesSucceeded specifies the operation status values
	// succeeded state for operation status values.
	OperationStatusValuesSucceeded OperationStatusValues = "Succeeded"
)

// ProtectedItemState enumerates the values for protected item state.
type ProtectedItemState string

const (
	// ProtectedItemStateInvalid specifies the protected item state invalid
	// state for protected item state.
	ProtectedItemStateInvalid ProtectedItemState = "Invalid"
	// ProtectedItemStateIRPending specifies the protected item state ir
	// pending state for protected item state.
	ProtectedItemStateIRPending ProtectedItemState = "IRPending"
	// ProtectedItemStateProtected specifies the protected item state protected
	// state for protected item state.
	ProtectedItemStateProtected ProtectedItemState = "Protected"
	// ProtectedItemStateProtectionError specifies the protected item state
	// protection error state for protected item state.
	ProtectedItemStateProtectionError ProtectedItemState = "ProtectionError"
	// ProtectedItemStateProtectionPaused specifies the protected item state
	// protection paused state for protected item state.
	ProtectedItemStateProtectionPaused ProtectedItemState = "ProtectionPaused"
	// ProtectedItemStateProtectionStopped specifies the protected item state
	// protection stopped state for protected item state.
	ProtectedItemStateProtectionStopped ProtectedItemState = "ProtectionStopped"
)

// ProtectionState enumerates the values for protection state.
type ProtectionState string

const (
	// ProtectionStateInvalid specifies the protection state invalid state for
	// protection state.
	ProtectionStateInvalid ProtectionState = "Invalid"
	// ProtectionStateIRPending specifies the protection state ir pending state
	// for protection state.
	ProtectionStateIRPending ProtectionState = "IRPending"
	// ProtectionStateProtected specifies the protection state protected state
	// for protection state.
	ProtectionStateProtected ProtectionState = "Protected"
	// ProtectionStateProtectionError specifies the protection state protection
	// error state for protection state.
	ProtectionStateProtectionError ProtectionState = "ProtectionError"
	// ProtectionStateProtectionPaused specifies the protection state
	// protection paused state for protection state.
	ProtectionStateProtectionPaused ProtectionState = "ProtectionPaused"
	// ProtectionStateProtectionStopped specifies the protection state
	// protection stopped state for protection state.
	ProtectionStateProtectionStopped ProtectionState = "ProtectionStopped"
)

// ProtectionStatus enumerates the values for protection status.
type ProtectionStatus string

const (
	// ProtectionStatusInvalid specifies the protection status invalid state
	// for protection status.
	ProtectionStatusInvalid ProtectionStatus = "Invalid"
	// ProtectionStatusNotProtected specifies the protection status not
	// protected state for protection status.
	ProtectionStatusNotProtected ProtectionStatus = "NotProtected"
	// ProtectionStatusProtected specifies the protection status protected
	// state for protection status.
	ProtectionStatusProtected ProtectionStatus = "Protected"
	// ProtectionStatusProtecting specifies the protection status protecting
	// state for protection status.
	ProtectionStatusProtecting ProtectionStatus = "Protecting"
)

// RecoveryPointTierStatus enumerates the values for recovery point tier
// status.
type RecoveryPointTierStatus string

const (
	// RecoveryPointTierStatusDeleted specifies the recovery point tier status
	// deleted state for recovery point tier status.
	RecoveryPointTierStatusDeleted RecoveryPointTierStatus = "Deleted"
	// RecoveryPointTierStatusDisabled specifies the recovery point tier status
	// disabled state for recovery point tier status.
	RecoveryPointTierStatusDisabled RecoveryPointTierStatus = "Disabled"
	// RecoveryPointTierStatusInvalid specifies the recovery point tier status
	// invalid state for recovery point tier status.
	RecoveryPointTierStatusInvalid RecoveryPointTierStatus = "Invalid"
	// RecoveryPointTierStatusValid specifies the recovery point tier status
	// valid state for recovery point tier status.
	RecoveryPointTierStatusValid RecoveryPointTierStatus = "Valid"
)

// RecoveryPointTierType enumerates the values for recovery point tier type.
type RecoveryPointTierType string

const (
	// RecoveryPointTierTypeHardenedRP specifies the recovery point tier type
	// hardened rp state for recovery point tier type.
	RecoveryPointTierTypeHardenedRP RecoveryPointTierType = "HardenedRP"
	// RecoveryPointTierTypeInstantRP specifies the recovery point tier type
	// instant rp state for recovery point tier type.
	RecoveryPointTierTypeInstantRP RecoveryPointTierType = "InstantRP"
	// RecoveryPointTierTypeInvalid specifies the recovery point tier type
	// invalid state for recovery point tier type.
	RecoveryPointTierTypeInvalid RecoveryPointTierType = "Invalid"
)

// RecoveryType enumerates the values for recovery type.
type RecoveryType string

const (
	// RecoveryTypeAlternateLocation specifies the recovery type alternate
	// location state for recovery type.
	RecoveryTypeAlternateLocation RecoveryType = "AlternateLocation"
	// RecoveryTypeInvalid specifies the recovery type invalid state for
	// recovery type.
	RecoveryTypeInvalid RecoveryType = "Invalid"
	// RecoveryTypeOriginalLocation specifies the recovery type original
	// location state for recovery type.
	RecoveryTypeOriginalLocation RecoveryType = "OriginalLocation"
	// RecoveryTypeRestoreDisks specifies the recovery type restore disks state
	// for recovery type.
	RecoveryTypeRestoreDisks RecoveryType = "RestoreDisks"
)

// RetentionDurationType enumerates the values for retention duration type.
type RetentionDurationType string

const (
	// RetentionDurationTypeDays specifies the retention duration type days
	// state for retention duration type.
	RetentionDurationTypeDays RetentionDurationType = "Days"
	// RetentionDurationTypeInvalid specifies the retention duration type
	// invalid state for retention duration type.
	RetentionDurationTypeInvalid RetentionDurationType = "Invalid"
	// RetentionDurationTypeMonths specifies the retention duration type months
	// state for retention duration type.
	RetentionDurationTypeMonths RetentionDurationType = "Months"
	// RetentionDurationTypeWeeks specifies the retention duration type weeks
	// state for retention duration type.
	RetentionDurationTypeWeeks RetentionDurationType = "Weeks"
	// RetentionDurationTypeYears specifies the retention duration type years
	// state for retention duration type.
	RetentionDurationTypeYears RetentionDurationType = "Years"
)

// RetentionScheduleFormat enumerates the values for retention schedule format.
type RetentionScheduleFormat string

const (
	// RetentionScheduleFormatDaily specifies the retention schedule format
	// daily state for retention schedule format.
	RetentionScheduleFormatDaily RetentionScheduleFormat = "Daily"
	// RetentionScheduleFormatInvalid specifies the retention schedule format
	// invalid state for retention schedule format.
	RetentionScheduleFormatInvalid RetentionScheduleFormat = "Invalid"
	// RetentionScheduleFormatWeekly specifies the retention schedule format
	// weekly state for retention schedule format.
	RetentionScheduleFormatWeekly RetentionScheduleFormat = "Weekly"
)

// ScheduleRunType enumerates the values for schedule run type.
type ScheduleRunType string

const (
	// ScheduleRunTypeDaily specifies the schedule run type daily state for
	// schedule run type.
	ScheduleRunTypeDaily ScheduleRunType = "Daily"
	// ScheduleRunTypeInvalid specifies the schedule run type invalid state for
	// schedule run type.
	ScheduleRunTypeInvalid ScheduleRunType = "Invalid"
	// ScheduleRunTypeWeekly specifies the schedule run type weekly state for
	// schedule run type.
	ScheduleRunTypeWeekly ScheduleRunType = "Weekly"
)

// StorageType enumerates the values for storage type.
type StorageType string

const (
	// StorageTypeGeoRedundant specifies the storage type geo redundant state
	// for storage type.
	StorageTypeGeoRedundant StorageType = "GeoRedundant"
	// StorageTypeInvalid specifies the storage type invalid state for storage
	// type.
	StorageTypeInvalid StorageType = "Invalid"
	// StorageTypeLocallyRedundant specifies the storage type locally redundant
	// state for storage type.
	StorageTypeLocallyRedundant StorageType = "LocallyRedundant"
)

// StorageTypeState enumerates the values for storage type state.
type StorageTypeState string

const (
	// StorageTypeStateInvalid specifies the storage type state invalid state
	// for storage type state.
	StorageTypeStateInvalid StorageTypeState = "Invalid"
	// StorageTypeStateLocked specifies the storage type state locked state for
	// storage type state.
	StorageTypeStateLocked StorageTypeState = "Locked"
	// StorageTypeStateUnlocked specifies the storage type state unlocked state
	// for storage type state.
	StorageTypeStateUnlocked StorageTypeState = "Unlocked"
)

// Type enumerates the values for type.
type Type string

const (
	// TypeBackupProtectedItemCountSummary specifies the type backup protected
	// item count summary state for type.
	TypeBackupProtectedItemCountSummary Type = "BackupProtectedItemCountSummary"
	// TypeBackupProtectionContainerCountSummary specifies the type backup
	// protection container count summary state for type.
	TypeBackupProtectionContainerCountSummary Type = "BackupProtectionContainerCountSummary"
	// TypeInvalid specifies the type invalid state for type.
	TypeInvalid Type = "Invalid"
)

// UsagesUnit enumerates the values for usages unit.
type UsagesUnit string

const (
	// Bytes specifies the bytes state for usages unit.
	Bytes UsagesUnit = "Bytes"
	// BytesPerSecond specifies the bytes per second state for usages unit.
	BytesPerSecond UsagesUnit = "BytesPerSecond"
	// Count specifies the count state for usages unit.
	Count UsagesUnit = "Count"
	// CountPerSecond specifies the count per second state for usages unit.
	CountPerSecond UsagesUnit = "CountPerSecond"
	// Percent specifies the percent state for usages unit.
	Percent UsagesUnit = "Percent"
	// Seconds specifies the seconds state for usages unit.
	Seconds UsagesUnit = "Seconds"
)

// WeekOfMonth enumerates the values for week of month.
type WeekOfMonth string

const (
	// First specifies the first state for week of month.
	First WeekOfMonth = "First"
	// Fourth specifies the fourth state for week of month.
	Fourth WeekOfMonth = "Fourth"
	// Last specifies the last state for week of month.
	Last WeekOfMonth = "Last"
	// Second specifies the second state for week of month.
	Second WeekOfMonth = "Second"
	// Third specifies the third state for week of month.
	Third WeekOfMonth = "Third"
)

// WorkloadType enumerates the values for workload type.
type WorkloadType string

const (
	// WorkloadTypeAzureSQLDb specifies the workload type azure sql db state
	// for workload type.
	WorkloadTypeAzureSQLDb WorkloadType = "AzureSqlDb"
	// WorkloadTypeClient specifies the workload type client state for workload
	// type.
	WorkloadTypeClient WorkloadType = "Client"
	// WorkloadTypeExchange specifies the workload type exchange state for
	// workload type.
	WorkloadTypeExchange WorkloadType = "Exchange"
	// WorkloadTypeFileFolder specifies the workload type file folder state for
	// workload type.
	WorkloadTypeFileFolder WorkloadType = "FileFolder"
	// WorkloadTypeGenericDataSource specifies the workload type generic data
	// source state for workload type.
	WorkloadTypeGenericDataSource WorkloadType = "GenericDataSource"
	// WorkloadTypeInvalid specifies the workload type invalid state for
	// workload type.
	WorkloadTypeInvalid WorkloadType = "Invalid"
	// WorkloadTypeSharepoint specifies the workload type sharepoint state for
	// workload type.
	WorkloadTypeSharepoint WorkloadType = "Sharepoint"
	// WorkloadTypeSQLDB specifies the workload type sqldb state for workload
	// type.
	WorkloadTypeSQLDB WorkloadType = "SQLDB"
	// WorkloadTypeSystemState specifies the workload type system state state
	// for workload type.
	WorkloadTypeSystemState WorkloadType = "SystemState"
	// WorkloadTypeVM specifies the workload type vm state for workload type.
	WorkloadTypeVM WorkloadType = "VM"
	// WorkloadTypeVMwareVM specifies the workload type v mware vm state for
	// workload type.
	WorkloadTypeVMwareVM WorkloadType = "VMwareVM"
)

// AzureBackupServerContainer is azureBackupServer (DPMVenus) workload-specific
// protection container.
type AzureBackupServerContainer struct {
	FriendlyName         *string                   `json:"friendlyName,omitempty"`
	BackupManagementType BackupManagementType      `json:"backupManagementType,omitempty"`
	RegistrationStatus   *string                   `json:"registrationStatus,omitempty"`
	HealthStatus         *string                   `json:"healthStatus,omitempty"`
	ContainerType        ContainerType             `json:"containerType,omitempty"`
	CanReRegister        *bool                     `json:"canReRegister,omitempty"`
	ContainerID          *string                   `json:"containerId,omitempty"`
	ProtectedItemCount   *int64                    `json:"protectedItemCount,omitempty"`
	DpmAgentVersion      *string                   `json:"dpmAgentVersion,omitempty"`
	DPMServers           *[]string                 `json:"DPMServers,omitempty"`
	UpgradeAvailable     *bool                     `json:"UpgradeAvailable,omitempty"`
	ProtectionStatus     *string                   `json:"protectionStatus,omitempty"`
	ExtendedInfo         *DPMContainerExtendedInfo `json:"extendedInfo,omitempty"`
}

// AzureBackupServerEngine is backup engine type when Azure Backup Server is
// used to manage the backups.
type AzureBackupServerEngine struct {
	FriendlyName                       *string                   `json:"friendlyName,omitempty"`
	BackupManagementType               BackupManagementType      `json:"backupManagementType,omitempty"`
	RegistrationStatus                 *string                   `json:"registrationStatus,omitempty"`
	BackupEngineState                  *string                   `json:"backupEngineState,omitempty"`
	HealthStatus                       *string                   `json:"healthStatus,omitempty"`
	CanReRegister                      *bool                     `json:"canReRegister,omitempty"`
	BackupEngineID                     *string                   `json:"backupEngineId,omitempty"`
	DpmVersion                         *string                   `json:"dpmVersion,omitempty"`
	AzureBackupAgentVersion            *string                   `json:"azureBackupAgentVersion,omitempty"`
	IsAzureBackupAgentUpgradeAvailable *bool                     `json:"isAzureBackupAgentUpgradeAvailable,omitempty"`
	IsDPMUpgradeAvailable              *bool                     `json:"isDPMUpgradeAvailable,omitempty"`
	ExtendedInfo                       *BackupEngineExtendedInfo `json:"extendedInfo,omitempty"`
}

// AzureIaaSClassicComputeVMContainer is iaaS VM workload-specific backup item
// representing a classic virtual machine.
type AzureIaaSClassicComputeVMContainer struct {
	FriendlyName          *string              `json:"friendlyName,omitempty"`
	BackupManagementType  BackupManagementType `json:"backupManagementType,omitempty"`
	RegistrationStatus    *string              `json:"registrationStatus,omitempty"`
	HealthStatus          *string              `json:"healthStatus,omitempty"`
	ContainerType         ContainerType        `json:"containerType,omitempty"`
	VirtualMachineID      *string              `json:"virtualMachineId,omitempty"`
	VirtualMachineVersion *string              `json:"virtualMachineVersion,omitempty"`
	ResourceGroup         *string              `json:"resourceGroup,omitempty"`
}

// AzureIaaSClassicComputeVMProtectableItem is iaaS VM workload-specific backup
// item representing the Classic Compute VM.
type AzureIaaSClassicComputeVMProtectableItem struct {
	BackupManagementType *string          `json:"backupManagementType,omitempty"`
	FriendlyName         *string          `json:"friendlyName,omitempty"`
	ProtectionState      ProtectionStatus `json:"protectionState,omitempty"`
	VirtualMachineID     *string          `json:"virtualMachineId,omitempty"`
}

// AzureIaaSClassicComputeVMProtectedItem is iaaS VM workload-specific backup
// item representing the Classic Compute VM.
type AzureIaaSClassicComputeVMProtectedItem struct {
	BackupManagementType BackupManagementType                  `json:"backupManagementType,omitempty"`
	WorkloadType         DataSourceType                        `json:"workloadType,omitempty"`
	ContainerName        *string                               `json:"containerName,omitempty"`
	SourceResourceID     *string                               `json:"sourceResourceId,omitempty"`
	PolicyID             *string                               `json:"policyId,omitempty"`
	LastRecoveryPoint    *date.Time                            `json:"lastRecoveryPoint,omitempty"`
	FriendlyName         *string                               `json:"friendlyName,omitempty"`
	VirtualMachineID     *string                               `json:"virtualMachineId,omitempty"`
	ProtectionStatus     *string                               `json:"protectionStatus,omitempty"`
	ProtectionState      ProtectionState                       `json:"protectionState,omitempty"`
	HealthStatus         HealthStatus                          `json:"healthStatus,omitempty"`
	HealthDetails        *[]AzureIaaSVMHealthDetails           `json:"healthDetails,omitempty"`
	LastBackupStatus     *string                               `json:"lastBackupStatus,omitempty"`
	LastBackupTime       *date.Time                            `json:"lastBackupTime,omitempty"`
	ProtectedItemDataID  *string                               `json:"protectedItemDataId,omitempty"`
	ExtendedInfo         *AzureIaaSVMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
}

// AzureIaaSComputeVMContainer is iaaS VM workload-specific backup item
// representing an Azure Resource Manager virtual machine.
type AzureIaaSComputeVMContainer struct {
	FriendlyName          *string              `json:"friendlyName,omitempty"`
	BackupManagementType  BackupManagementType `json:"backupManagementType,omitempty"`
	RegistrationStatus    *string              `json:"registrationStatus,omitempty"`
	HealthStatus          *string              `json:"healthStatus,omitempty"`
	ContainerType         ContainerType        `json:"containerType,omitempty"`
	VirtualMachineID      *string              `json:"virtualMachineId,omitempty"`
	VirtualMachineVersion *string              `json:"virtualMachineVersion,omitempty"`
	ResourceGroup         *string              `json:"resourceGroup,omitempty"`
}

// AzureIaaSComputeVMProtectableItem is iaaS VM workload-specific backup item
// representing the Azure Resource Manager VM.
type AzureIaaSComputeVMProtectableItem struct {
	BackupManagementType *string          `json:"backupManagementType,omitempty"`
	FriendlyName         *string          `json:"friendlyName,omitempty"`
	ProtectionState      ProtectionStatus `json:"protectionState,omitempty"`
	VirtualMachineID     *string          `json:"virtualMachineId,omitempty"`
}

// AzureIaaSComputeVMProtectedItem is iaaS VM workload-specific backup item
// representing the Azure Resource Manager VM.
type AzureIaaSComputeVMProtectedItem struct {
	BackupManagementType BackupManagementType                  `json:"backupManagementType,omitempty"`
	WorkloadType         DataSourceType                        `json:"workloadType,omitempty"`
	ContainerName        *string                               `json:"containerName,omitempty"`
	SourceResourceID     *string                               `json:"sourceResourceId,omitempty"`
	PolicyID             *string                               `json:"policyId,omitempty"`
	LastRecoveryPoint    *date.Time                            `json:"lastRecoveryPoint,omitempty"`
	FriendlyName         *string                               `json:"friendlyName,omitempty"`
	VirtualMachineID     *string                               `json:"virtualMachineId,omitempty"`
	ProtectionStatus     *string                               `json:"protectionStatus,omitempty"`
	ProtectionState      ProtectionState                       `json:"protectionState,omitempty"`
	HealthStatus         HealthStatus                          `json:"healthStatus,omitempty"`
	HealthDetails        *[]AzureIaaSVMHealthDetails           `json:"healthDetails,omitempty"`
	LastBackupStatus     *string                               `json:"lastBackupStatus,omitempty"`
	LastBackupTime       *date.Time                            `json:"lastBackupTime,omitempty"`
	ProtectedItemDataID  *string                               `json:"protectedItemDataId,omitempty"`
	ExtendedInfo         *AzureIaaSVMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
}

// AzureIaaSVMErrorInfo is azure IaaS VM workload-specific error information.
type AzureIaaSVMErrorInfo struct {
	ErrorCode       *int32    `json:"errorCode,omitempty"`
	ErrorTitle      *string   `json:"errorTitle,omitempty"`
	ErrorString     *string   `json:"errorString,omitempty"`
	Recommendations *[]string `json:"recommendations,omitempty"`
}

// AzureIaaSVMHealthDetails is azure IaaS VM workload-specific Health Details.
type AzureIaaSVMHealthDetails struct {
	Code            *int32    `json:"code,omitempty"`
	Title           *string   `json:"title,omitempty"`
	Message         *string   `json:"message,omitempty"`
	Recommendations *[]string `json:"recommendations,omitempty"`
}

// AzureIaaSVMJob is azure IaaS VM workload-specifc job object.
type AzureIaaSVMJob struct {
	EntityFriendlyName    *string                     `json:"entityFriendlyName,omitempty"`
	BackupManagementType  BackupManagementType        `json:"backupManagementType,omitempty"`
	Operation             *string                     `json:"operation,omitempty"`
	Status                *string                     `json:"status,omitempty"`
	StartTime             *date.Time                  `json:"startTime,omitempty"`
	EndTime               *date.Time                  `json:"endTime,omitempty"`
	ActivityID            *string                     `json:"activityId,omitempty"`
	Duration              *string                     `json:"duration,omitempty"`
	ActionsInfo           *[]JobSupportedAction       `json:"actionsInfo,omitempty"`
	ErrorDetails          *[]AzureIaaSVMErrorInfo     `json:"errorDetails,omitempty"`
	VirtualMachineVersion *string                     `json:"virtualMachineVersion,omitempty"`
	ExtendedInfo          *AzureIaaSVMJobExtendedInfo `json:"extendedInfo,omitempty"`
}

// AzureIaaSVMJobExtendedInfo is azure IaaS VM workload-specific additional
// information for job.
type AzureIaaSVMJobExtendedInfo struct {
	TasksList           *[]AzureIaaSVMJobTaskDetails `json:"tasksList,omitempty"`
	PropertyBag         *map[string]*string          `json:"propertyBag,omitempty"`
	ProgressPercentage  *float64                     `json:"progressPercentage,omitempty"`
	DynamicErrorMessage *string                      `json:"dynamicErrorMessage,omitempty"`
}

// AzureIaaSVMJobTaskDetails is azure IaaS VM workload-specific job task
// details.
type AzureIaaSVMJobTaskDetails struct {
	TaskID             *string    `json:"taskId,omitempty"`
	StartTime          *date.Time `json:"startTime,omitempty"`
	EndTime            *date.Time `json:"endTime,omitempty"`
	InstanceID         *string    `json:"instanceId,omitempty"`
	Duration           *string    `json:"duration,omitempty"`
	Status             *string    `json:"status,omitempty"`
	ProgressPercentage *float64   `json:"progressPercentage,omitempty"`
}

// AzureIaaSVMProtectedItem is iaaS VM workload-specific backup item.
type AzureIaaSVMProtectedItem struct {
	BackupManagementType BackupManagementType                  `json:"backupManagementType,omitempty"`
	WorkloadType         DataSourceType                        `json:"workloadType,omitempty"`
	ContainerName        *string                               `json:"containerName,omitempty"`
	SourceResourceID     *string                               `json:"sourceResourceId,omitempty"`
	PolicyID             *string                               `json:"policyId,omitempty"`
	LastRecoveryPoint    *date.Time                            `json:"lastRecoveryPoint,omitempty"`
	FriendlyName         *string                               `json:"friendlyName,omitempty"`
	VirtualMachineID     *string                               `json:"virtualMachineId,omitempty"`
	ProtectionStatus     *string                               `json:"protectionStatus,omitempty"`
	ProtectionState      ProtectionState                       `json:"protectionState,omitempty"`
	HealthStatus         HealthStatus                          `json:"healthStatus,omitempty"`
	HealthDetails        *[]AzureIaaSVMHealthDetails           `json:"healthDetails,omitempty"`
	LastBackupStatus     *string                               `json:"lastBackupStatus,omitempty"`
	LastBackupTime       *date.Time                            `json:"lastBackupTime,omitempty"`
	ProtectedItemDataID  *string                               `json:"protectedItemDataId,omitempty"`
	ExtendedInfo         *AzureIaaSVMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
}

// AzureIaaSVMProtectedItemExtendedInfo is additional information on Azure IaaS
// VM specific backup item.
type AzureIaaSVMProtectedItemExtendedInfo struct {
	OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"`
	RecoveryPointCount  *int32     `json:"recoveryPointCount,omitempty"`
	PolicyInconsistent  *bool      `json:"policyInconsistent,omitempty"`
}

// AzureIaaSVMProtectionPolicy is iaaS VM workload-specific backup policy.
type AzureIaaSVMProtectionPolicy struct {
	ProtectedItemsCount *int32           `json:"protectedItemsCount,omitempty"`
	SchedulePolicy      *SchedulePolicy  `json:"schedulePolicy,omitempty"`
	RetentionPolicy     *RetentionPolicy `json:"retentionPolicy,omitempty"`
	TimeZone            *string          `json:"timeZone,omitempty"`
}

// AzureSQLContainer is azure Sql workload-specific container.
type AzureSQLContainer struct {
	FriendlyName         *string              `json:"friendlyName,omitempty"`
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
	RegistrationStatus   *string              `json:"registrationStatus,omitempty"`
	HealthStatus         *string              `json:"healthStatus,omitempty"`
	ContainerType        ContainerType        `json:"containerType,omitempty"`
}

// AzureSQLProtectedItem is azure SQL workload-specific backup item.
type AzureSQLProtectedItem struct {
	BackupManagementType BackupManagementType               `json:"backupManagementType,omitempty"`
	WorkloadType         DataSourceType                     `json:"workloadType,omitempty"`
	ContainerName        *string                            `json:"containerName,omitempty"`
	SourceResourceID     *string                            `json:"sourceResourceId,omitempty"`
	PolicyID             *string                            `json:"policyId,omitempty"`
	LastRecoveryPoint    *date.Time                         `json:"lastRecoveryPoint,omitempty"`
	ProtectedItemDataID  *string                            `json:"protectedItemDataId,omitempty"`
	ProtectionState      ProtectedItemState                 `json:"protectionState,omitempty"`
	ExtendedInfo         *AzureSQLProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
}

// AzureSQLProtectedItemExtendedInfo is additional information on Azure Sql
// specific protected item.
type AzureSQLProtectedItemExtendedInfo struct {
	OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"`
	RecoveryPointCount  *int32     `json:"recoveryPointCount,omitempty"`
	PolicyState         *string    `json:"policyState,omitempty"`
}

// AzureSQLProtectionPolicy is azure SQL workload-specific backup policy.
type AzureSQLProtectionPolicy struct {
	ProtectedItemsCount *int32           `json:"protectedItemsCount,omitempty"`
	RetentionPolicy     *RetentionPolicy `json:"retentionPolicy,omitempty"`
}

// BackupEngineBase is the base backup engine class. All workload specific
// backup engines derive from this class.
type BackupEngineBase struct {
	FriendlyName                       *string                   `json:"friendlyName,omitempty"`
	BackupManagementType               BackupManagementType      `json:"backupManagementType,omitempty"`
	RegistrationStatus                 *string                   `json:"registrationStatus,omitempty"`
	BackupEngineState                  *string                   `json:"backupEngineState,omitempty"`
	HealthStatus                       *string                   `json:"healthStatus,omitempty"`
	CanReRegister                      *bool                     `json:"canReRegister,omitempty"`
	BackupEngineID                     *string                   `json:"backupEngineId,omitempty"`
	DpmVersion                         *string                   `json:"dpmVersion,omitempty"`
	AzureBackupAgentVersion            *string                   `json:"azureBackupAgentVersion,omitempty"`
	IsAzureBackupAgentUpgradeAvailable *bool                     `json:"isAzureBackupAgentUpgradeAvailable,omitempty"`
	IsDPMUpgradeAvailable              *bool                     `json:"isDPMUpgradeAvailable,omitempty"`
	ExtendedInfo                       *BackupEngineExtendedInfo `json:"extendedInfo,omitempty"`
}

// BackupEngineBaseResource is the base backup engine class. All workload
// specific backup engines derive from this class.
type BackupEngineBaseResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	ETag              *string             `json:"eTag,omitempty"`
	Properties        *BackupEngineBase   `json:"properties,omitempty"`
}

// BackupEngineBaseResourceList is list of BackupEngineBase resources
type BackupEngineBaseResourceList struct {
	autorest.Response `json:"-"`
	NextLink          *string                     `json:"nextLink,omitempty"`
	Value             *[]BackupEngineBaseResource `json:"value,omitempty"`
}

// BackupEngineBaseResourceListPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client BackupEngineBaseResourceList) BackupEngineBaseResourceListPreparer() (*http.Request, error) {
	if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
		return nil, nil
	}
	return autorest.Prepare(&http.Request{},
		autorest.AsJSON(),
		autorest.AsGet(),
		autorest.WithBaseURL(to.String(client.NextLink)))
}

// BackupEngineExtendedInfo is additional information on backup engine.
type BackupEngineExtendedInfo struct {
	DatabaseName            *string    `json:"databaseName,omitempty"`
	ProtectedItemsCount     *int32     `json:"protectedItemsCount,omitempty"`
	ProtectedServersCount   *int32     `json:"protectedServersCount,omitempty"`
	DiskCount               *int32     `json:"diskCount,omitempty"`
	UsedDiskSpace           *float64   `json:"usedDiskSpace,omitempty"`
	AvailableDiskSpace      *float64   `json:"availableDiskSpace,omitempty"`
	RefreshedAt             *date.Time `json:"refreshedAt,omitempty"`
	AzureProtectedInstances *int32     `json:"azureProtectedInstances,omitempty"`
}

// BackupManagementUsage is backup management usages of a vault.
type BackupManagementUsage struct {
	Unit          UsagesUnit `json:"unit,omitempty"`
	QuotaPeriod   *string    `json:"quotaPeriod,omitempty"`
	NextResetTime *date.Time `json:"nextResetTime,omitempty"`
	CurrentValue  *int64     `json:"currentValue,omitempty"`
	Limit         *int64     `json:"limit,omitempty"`
	Name          *NameInfo  `json:"name,omitempty"`
}

// BackupManagementUsageList is backup management usage for vault.
type BackupManagementUsageList struct {
	autorest.Response `json:"-"`
	Value             *[]BackupManagementUsage `json:"value,omitempty"`
}

// BackupRequest is base class for backup request. Workload-specific backup
// requests are derived from this class.
type BackupRequest struct {
}

// BackupRequestResource is base class for backup request. Workload-specific
// backup requests are derived from this class.
type BackupRequestResource struct {
	ID         *string             `json:"id,omitempty"`
	Name       *string             `json:"name,omitempty"`
	Type       *string             `json:"type,omitempty"`
	Location   *string             `json:"location,omitempty"`
	Tags       *map[string]*string `json:"tags,omitempty"`
	ETag       *string             `json:"eTag,omitempty"`
	Properties *BackupRequest      `json:"properties,omitempty"`
}

// BackupResourceConfig is the resource storage details.
type BackupResourceConfig struct {
	StorageType      StorageType      `json:"storageType,omitempty"`
	StorageTypeState StorageTypeState `json:"storageTypeState,omitempty"`
}

// BackupResourceConfigResource is the resource storage details.
type BackupResourceConfigResource struct {
	autorest.Response `json:"-"`
	ID                *string               `json:"id,omitempty"`
	Name              *string               `json:"name,omitempty"`
	Type              *string               `json:"type,omitempty"`
	Location          *string               `json:"location,omitempty"`
	Tags              *map[string]*string   `json:"tags,omitempty"`
	ETag              *string               `json:"eTag,omitempty"`
	Properties        *BackupResourceConfig `json:"properties,omitempty"`
}

// BackupResourceVaultConfig is backup resource vault config details.
type BackupResourceVaultConfig struct {
	StorageType           StorageType           `json:"storageType,omitempty"`
	StorageTypeState      StorageTypeState      `json:"storageTypeState,omitempty"`
	EnhancedSecurityState EnhancedSecurityState `json:"enhancedSecurityState,omitempty"`
}

// BackupResourceVaultConfigResource is backup resource vault config details.
type BackupResourceVaultConfigResource struct {
	autorest.Response `json:"-"`
	ID                *string                    `json:"id,omitempty"`
	Name              *string                    `json:"name,omitempty"`
	Type              *string                    `json:"type,omitempty"`
	Location          *string                    `json:"location,omitempty"`
	Tags              *map[string]*string        `json:"tags,omitempty"`
	ETag              *string                    `json:"eTag,omitempty"`
	Properties        *BackupResourceVaultConfig `json:"properties,omitempty"`
}

// BEKDetails is bEK is bitlocker encrpytion key.
type BEKDetails struct {
	SecretURL     *string `json:"secretUrl,omitempty"`
	SecretVaultID *string `json:"secretVaultId,omitempty"`
	SecretData    *string `json:"secretData,omitempty"`
}

// BMSBackupEngineQueryObject is query parameters to fetch list of backup
// engines.
type BMSBackupEngineQueryObject struct {
	Expand *string `json:"expand,omitempty"`
}

// BMSBackupEnginesQueryObject is query parameters to fetch list of backup
// engines.
type BMSBackupEnginesQueryObject struct {
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
	FriendlyName         *string              `json:"friendlyName,omitempty"`
	Expand               *string              `json:"expand,omitempty"`
}

// BMSBackupSummariesQueryObject is query parameters to fetch backup summaries.
type BMSBackupSummariesQueryObject struct {
	Type Type `json:"type,omitempty"`
}

// BMSContainerQueryObject is the query filters that can be used with the list
// containers API.
type BMSContainerQueryObject struct {
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
	ContainerType        ContainerType        `json:"containerType,omitempty"`
	BackupEngineName     *string              `json:"backupEngineName,omitempty"`
	Status               *string              `json:"status,omitempty"`
	FriendlyName         *string              `json:"friendlyName,omitempty"`
}

// BMSPOQueryObject is filters to list items that can be backed up.
type BMSPOQueryObject struct {
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
	Status               *string              `json:"status,omitempty"`
	FriendlyName         *string              `json:"friendlyName,omitempty"`
}

// BMSRPQueryObject is filters to list backup copies.
type BMSRPQueryObject struct {
	StartDate *date.Time `json:"startDate,omitempty"`
	EndDate   *date.Time `json:"endDate,omitempty"`
}

// ClientDiscoveryDisplay is localized display information of an operation.
type ClientDiscoveryDisplay struct {
	Provider    *string `json:"Provider,omitempty"`
	Resource    *string `json:"Resource,omitempty"`
	Operation   *string `json:"Operation,omitempty"`
	Description *string `json:"Description,omitempty"`
}

// ClientDiscoveryForLogSpecification is class to represent shoebox log
// specification in json client discovery.
type ClientDiscoveryForLogSpecification struct {
	Name         *string `json:"name,omitempty"`
	DisplayName  *string `json:"displayName,omitempty"`
	BlobDuration *string `json:"blobDuration,omitempty"`
}

// ClientDiscoveryForProperties is class to represent shoebox properties in
// json client discovery.
type ClientDiscoveryForProperties struct {
	ServiceSpecification *ClientDiscoveryForServiceSpecification `json:"serviceSpecification,omitempty"`
}

// ClientDiscoveryForServiceSpecification is class to represent shoebox service
// specification in json client discovery.
type ClientDiscoveryForServiceSpecification struct {
	LogSpecifications *[]ClientDiscoveryForLogSpecification `json:"logSpecifications,omitempty"`
}

// ClientDiscoveryResponse is operations List response which contains list of
// available APIs.
type ClientDiscoveryResponse struct {
	autorest.Response `json:"-"`
	Value             *[]ClientDiscoveryValueForSingleAPI `json:"Value,omitempty"`
	NextLink          *string                             `json:"NextLink,omitempty"`
}

// ClientDiscoveryResponsePreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ClientDiscoveryResponse) ClientDiscoveryResponsePreparer() (*http.Request, error) {
	if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
		return nil, nil
	}
	return autorest.Prepare(&http.Request{},
		autorest.AsJSON(),
		autorest.AsGet(),
		autorest.WithBaseURL(to.String(client.NextLink)))
}

// ClientDiscoveryValueForSingleAPI is available operation details.
type ClientDiscoveryValueForSingleAPI struct {
	Name       *string                       `json:"Name,omitempty"`
	Display    *ClientDiscoveryDisplay       `json:"Display,omitempty"`
	Origin     *string                       `json:"Origin,omitempty"`
	Properties *ClientDiscoveryForProperties `json:"Properties,omitempty"`
}

// ClientScriptForConnect is client script details for file / folder restore.
type ClientScriptForConnect struct {
	ScriptContent    *string `json:"scriptContent,omitempty"`
	ScriptExtension  *string `json:"scriptExtension,omitempty"`
	OsType           *string `json:"osType,omitempty"`
	URL              *string `json:"url,omitempty"`
	ScriptNameSuffix *string `json:"scriptNameSuffix,omitempty"`
}

// DailyRetentionFormat is daily retention format.
type DailyRetentionFormat struct {
	DaysOfTheMonth *[]Day `json:"daysOfTheMonth,omitempty"`
}

// DailyRetentionSchedule is daily retention schedule.
type DailyRetentionSchedule struct {
	RetentionTimes    *[]date.Time       `json:"retentionTimes,omitempty"`
	RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"`
}

// Day is day of the week.
type Day struct {
	Date   *int32 `json:"date,omitempty"`
	IsLast *bool  `json:"isLast,omitempty"`
}

// DpmBackupEngine is data Protection Manager (DPM) specific backup engine.
type DpmBackupEngine struct {
	FriendlyName                       *string                   `json:"friendlyName,omitempty"`
	BackupManagementType               BackupManagementType      `json:"backupManagementType,omitempty"`
	RegistrationStatus                 *string                   `json:"registrationStatus,omitempty"`
	BackupEngineState                  *string                   `json:"backupEngineState,omitempty"`
	HealthStatus                       *string                   `json:"healthStatus,omitempty"`
	CanReRegister                      *bool                     `json:"canReRegister,omitempty"`
	BackupEngineID                     *string                   `json:"backupEngineId,omitempty"`
	DpmVersion                         *string                   `json:"dpmVersion,omitempty"`
	AzureBackupAgentVersion            *string                   `json:"azureBackupAgentVersion,omitempty"`
	IsAzureBackupAgentUpgradeAvailable *bool                     `json:"isAzureBackupAgentUpgradeAvailable,omitempty"`
	IsDPMUpgradeAvailable              *bool                     `json:"isDPMUpgradeAvailable,omitempty"`
	ExtendedInfo                       *BackupEngineExtendedInfo `json:"extendedInfo,omitempty"`
}

// DpmContainer is dPM workload-specific protection container.
type DpmContainer struct {
	FriendlyName         *string                   `json:"friendlyName,omitempty"`
	BackupManagementType BackupManagementType      `json:"backupManagementType,omitempty"`
	RegistrationStatus   *string                   `json:"registrationStatus,omitempty"`
	HealthStatus         *string                   `json:"healthStatus,omitempty"`
	ContainerType        ContainerType             `json:"containerType,omitempty"`
	CanReRegister        *bool                     `json:"canReRegister,omitempty"`
	ContainerID          *string                   `json:"containerId,omitempty"`
	ProtectedItemCount   *int64                    `json:"protectedItemCount,omitempty"`
	DpmAgentVersion      *string                   `json:"dpmAgentVersion,omitempty"`
	DPMServers           *[]string                 `json:"DPMServers,omitempty"`
	UpgradeAvailable     *bool                     `json:"UpgradeAvailable,omitempty"`
	ProtectionStatus     *string                   `json:"protectionStatus,omitempty"`
	ExtendedInfo         *DPMContainerExtendedInfo `json:"extendedInfo,omitempty"`
}

// DPMContainerExtendedInfo is additional information of the DPMContainer.
type DPMContainerExtendedInfo struct {
	LastRefreshedAt *date.Time `json:"lastRefreshedAt,omitempty"`
}

// DpmErrorInfo is dPM workload-specific error information.
type DpmErrorInfo struct {
	ErrorString     *string   `json:"errorString,omitempty"`
	Recommendations *[]string `json:"recommendations,omitempty"`
}

// DpmJob is dPM workload-specifc job object.
type DpmJob struct {
	EntityFriendlyName   *string               `json:"entityFriendlyName,omitempty"`
	BackupManagementType BackupManagementType  `json:"backupManagementType,omitempty"`
	Operation            *string               `json:"operation,omitempty"`
	Status               *string               `json:"status,omitempty"`
	StartTime            *date.Time            `json:"startTime,omitempty"`
	EndTime              *date.Time            `json:"endTime,omitempty"`
	ActivityID           *string               `json:"activityId,omitempty"`
	Duration             *string               `json:"duration,omitempty"`
	DpmServerName        *string               `json:"dpmServerName,omitempty"`
	ContainerName        *string               `json:"containerName,omitempty"`
	ContainerType        *string               `json:"containerType,omitempty"`
	WorkloadType         *string               `json:"workloadType,omitempty"`
	ActionsInfo          *[]JobSupportedAction `json:"actionsInfo,omitempty"`
	ErrorDetails         *[]DpmErrorInfo       `json:"errorDetails,omitempty"`
	ExtendedInfo         *DpmJobExtendedInfo   `json:"extendedInfo,omitempty"`
}

// DpmJobExtendedInfo is additional information on the DPM workload-specific
// job.
type DpmJobExtendedInfo struct {
	TasksList           *[]DpmJobTaskDetails `json:"tasksList,omitempty"`
	PropertyBag         *map[string]*string  `json:"propertyBag,omitempty"`
	DynamicErrorMessage *string              `json:"dynamicErrorMessage,omitempty"`
}

// DpmJobTaskDetails is dPM workload-specific job task details.
type DpmJobTaskDetails struct {
	TaskID    *string    `json:"taskId,omitempty"`
	StartTime *date.Time `json:"startTime,omitempty"`
	EndTime   *date.Time `json:"endTime,omitempty"`
	Duration  *string    `json:"duration,omitempty"`
	Status    *string    `json:"status,omitempty"`
}

// DPMProtectedItem is additional information on Backup engine specific backup
// item.
type DPMProtectedItem struct {
	BackupManagementType         BackupManagementType          `json:"backupManagementType,omitempty"`
	WorkloadType                 DataSourceType                `json:"workloadType,omitempty"`
	ContainerName                *string                       `json:"containerName,omitempty"`
	SourceResourceID             *string                       `json:"sourceResourceId,omitempty"`
	PolicyID                     *string                       `json:"policyId,omitempty"`
	LastRecoveryPoint            *date.Time                    `json:"lastRecoveryPoint,omitempty"`
	FriendlyName                 *string                       `json:"friendlyName,omitempty"`
	BackupEngineName             *string                       `json:"backupEngineName,omitempty"`
	ProtectionState              ProtectedItemState            `json:"protectionState,omitempty"`
	IsScheduledForDeferredDelete *bool                         `json:"isScheduledForDeferredDelete,omitempty"`
	ExtendedInfo                 *DPMProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
}

// DPMProtectedItemExtendedInfo is additional information of DPM Protected
// item.
type DPMProtectedItemExtendedInfo struct {
	ProtectableObjectLoadPath    *map[string]*string `json:"protectableObjectLoadPath,omitempty"`
	Protected                    *bool               `json:"protected,omitempty"`
	IsPresentOnCloud             *bool               `json:"isPresentOnCloud,omitempty"`
	LastBackupStatus             *string             `json:"lastBackupStatus,omitempty"`
	LastRefreshedAt              *date.Time          `json:"lastRefreshedAt,omitempty"`
	OldestRecoveryPoint          *date.Time          `json:"oldestRecoveryPoint,omitempty"`
	RecoveryPointCount           *int32              `json:"recoveryPointCount,omitempty"`
	OnPremiseOldestRecoveryPoint *date.Time          `json:"onPremiseOldestRecoveryPoint,omitempty"`
	OnPremiseLatestRecoveryPoint *date.Time          `json:"onPremiseLatestRecoveryPoint,omitempty"`
	OnPremiseRecoveryPointCount  *int32              `json:"onPremiseRecoveryPointCount,omitempty"`
	IsCollocated                 *bool               `json:"isCollocated,omitempty"`
	ProtectionGroupName          *string             `json:"protectionGroupName,omitempty"`
	DiskStorageUsedInBytes       *string             `json:"diskStorageUsedInBytes,omitempty"`
	TotalDiskStorageSizeInBytes  *string             `json:"totalDiskStorageSizeInBytes,omitempty"`
}

// EncryptionDetails is details needed if the VM was encrypted at the time of
// backup.
type EncryptionDetails struct {
	EncryptionEnabled *bool   `json:"encryptionEnabled,omitempty"`
	KekURL            *string `json:"kekUrl,omitempty"`
	SecretKeyURL      *string `json:"secretKeyUrl,omitempty"`
	KekVaultID        *string `json:"kekVaultId,omitempty"`
	SecretKeyVaultID  *string `json:"secretKeyVaultId,omitempty"`
}

// ExportJobsOperationResultInfo is this class is used to send blob details
// after exporting jobs.
type ExportJobsOperationResultInfo struct {
	BlobURL    *string `json:"blobUrl,omitempty"`
	BlobSasKey *string `json:"blobSasKey,omitempty"`
}

// GenericRecoveryPoint is generic backup copy.
type GenericRecoveryPoint struct {
	FriendlyName                *string    `json:"friendlyName,omitempty"`
	RecoveryPointType           *string    `json:"recoveryPointType,omitempty"`
	RecoveryPointTime           *date.Time `json:"recoveryPointTime,omitempty"`
	RecoveryPointAdditionalInfo *string    `json:"recoveryPointAdditionalInfo,omitempty"`
}

// GetProtectedItemQueryObject is filters to list backup items.
type GetProtectedItemQueryObject struct {
	Expand *string `json:"expand,omitempty"`
}

// IaasVMBackupRequest is iaaS VM workload-specific backup request.
type IaasVMBackupRequest struct {
	RecoveryPointExpiryTimeInUTC *date.Time `json:"recoveryPointExpiryTimeInUTC,omitempty"`
}

// IaaSVMContainer is iaaS VM workload-specific container.
type IaaSVMContainer struct {
	FriendlyName          *string              `json:"friendlyName,omitempty"`
	BackupManagementType  BackupManagementType `json:"backupManagementType,omitempty"`
	RegistrationStatus    *string              `json:"registrationStatus,omitempty"`
	HealthStatus          *string              `json:"healthStatus,omitempty"`
	ContainerType         ContainerType        `json:"containerType,omitempty"`
	VirtualMachineID      *string              `json:"virtualMachineId,omitempty"`
	VirtualMachineVersion *string              `json:"virtualMachineVersion,omitempty"`
	ResourceGroup         *string              `json:"resourceGroup,omitempty"`
}

// IaasVMILRRegistrationRequest is restore files/folders from a backup copy of
// IaaS VM.
type IaasVMILRRegistrationRequest struct {
	RecoveryPointID           *string `json:"recoveryPointId,omitempty"`
	VirtualMachineID          *string `json:"virtualMachineId,omitempty"`
	InitiatorName             *string `json:"initiatorName,omitempty"`
	RenewExistingRegistration *bool   `json:"renewExistingRegistration,omitempty"`
}

// IaaSVMProtectableItem is iaaS VM workload-specific backup item.
type IaaSVMProtectableItem struct {
	BackupManagementType *string          `json:"backupManagementType,omitempty"`
	FriendlyName         *string          `json:"friendlyName,omitempty"`
	ProtectionState      ProtectionStatus `json:"protectionState,omitempty"`
	VirtualMachineID     *string          `json:"virtualMachineId,omitempty"`
}

// IaasVMRecoveryPoint is iaaS VM workload specific backup copy.
type IaasVMRecoveryPoint struct {
	RecoveryPointType           *string                         `json:"recoveryPointType,omitempty"`
	RecoveryPointTime           *date.Time                      `json:"recoveryPointTime,omitempty"`
	RecoveryPointAdditionalInfo *string                         `json:"recoveryPointAdditionalInfo,omitempty"`
	SourceVMStorageType         *string                         `json:"sourceVMStorageType,omitempty"`
	IsSourceVMEncrypted         *bool                           `json:"isSourceVMEncrypted,omitempty"`
	KeyAndSecret                *KeyAndSecretDetails            `json:"keyAndSecret,omitempty"`
	IsInstantILRSessionActive   *bool                           `json:"isInstantILRSessionActive,omitempty"`
	RecoveryPointTierDetails    *[]RecoveryPointTierInformation `json:"recoveryPointTierDetails,omitempty"`
	IsManagedVirtualMachine     *bool                           `json:"isManagedVirtualMachine,omitempty"`
	VirtualMachineSize          *string                         `json:"virtualMachineSize,omitempty"`
}

// IaasVMRestoreRequest is iaaS VM workload-specific restore.
type IaasVMRestoreRequest struct {
	RecoveryPointID        *string            `json:"recoveryPointId,omitempty"`
	RecoveryType           RecoveryType       `json:"recoveryType,omitempty"`
	SourceResourceID       *string            `json:"sourceResourceId,omitempty"`
	TargetVirtualMachineID *string            `json:"targetVirtualMachineId,omitempty"`
	TargetResourceGroupID  *string            `json:"targetResourceGroupId,omitempty"`
	StorageAccountID       *string            `json:"storageAccountId,omitempty"`
	VirtualNetworkID       *string            `json:"virtualNetworkId,omitempty"`
	SubnetID               *string            `json:"subnetId,omitempty"`
	TargetDomainNameID     *string            `json:"targetDomainNameId,omitempty"`
	Region                 *string            `json:"region,omitempty"`
	AffinityGroup          *string            `json:"affinityGroup,omitempty"`
	CreateNewCloudService  *bool              `json:"createNewCloudService,omitempty"`
	EncryptionDetails      *EncryptionDetails `json:"encryptionDetails,omitempty"`
}

// ILRRequest is parameters to restore file/folders API.
type ILRRequest struct {
}

// ILRRequestResource is parameters to restore file/folders API.
type ILRRequestResource struct {
	ID         *string             `json:"id,omitempty"`
	Name       *string             `json:"name,omitempty"`
	Type       *string             `json:"type,omitempty"`
	Location   *string             `json:"location,omitempty"`
	Tags       *map[string]*string `json:"tags,omitempty"`
	ETag       *string             `json:"eTag,omitempty"`
	Properties *ILRRequest         `json:"properties,omitempty"`
}

// InstantItemRecoveryTarget is target details for file / folder restore.
type InstantItemRecoveryTarget struct {
	ClientScripts *[]ClientScriptForConnect `json:"clientScripts,omitempty"`
}

// Job is defines workload agnostic properties for a job.
type Job struct {
	EntityFriendlyName   *string              `json:"entityFriendlyName,omitempty"`
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
	Operation            *string              `json:"operation,omitempty"`
	Status               *string              `json:"status,omitempty"`
	StartTime            *date.Time           `json:"startTime,omitempty"`
	EndTime              *date.Time           `json:"endTime,omitempty"`
	ActivityID           *string              `json:"activityId,omitempty"`
}

// JobQueryObject is filters to list the jobs.
type JobQueryObject struct {
	Status               JobStatus            `json:"status,omitempty"`
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
	Operation            JobOperationType     `json:"operation,omitempty"`
	JobID                *string              `json:"jobId,omitempty"`
	StartTime            *date.Time           `json:"startTime,omitempty"`
	EndTime              *date.Time           `json:"endTime,omitempty"`
}

// JobResource is defines workload agnostic properties for a job.
type JobResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	ETag              *string             `json:"eTag,omitempty"`
	Properties        *Job                `json:"properties,omitempty"`
}

// JobResourceList is list of Job resources
type JobResourceList struct {
	autorest.Response `json:"-"`
	NextLink          *string        `json:"nextLink,omitempty"`
	Value             *[]JobResource `json:"value,omitempty"`
}

// JobResourceListPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client JobResourceList) JobResourceListPreparer() (*http.Request, error) {
	if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
		return nil, nil
	}
	return autorest.Prepare(&http.Request{},
		autorest.AsJSON(),
		autorest.AsGet(),
		autorest.WithBaseURL(to.String(client.NextLink)))
}

// KEKDetails is kEK is encryption key for BEK.
type KEKDetails struct {
	KeyURL        *string `json:"keyUrl,omitempty"`
	KeyVaultID    *string `json:"keyVaultId,omitempty"`
	KeyBackupData *string `json:"keyBackupData,omitempty"`
}

// KeyAndSecretDetails is bEK is bitlocker key.
// KEK is encryption key for BEK
// If the VM was encrypted then we will store follwing details :
// 1. Secret(BEK) - Url + Backup Data + vaultId.
// 2. Key(KEK) - Url + Backup Data + vaultId.
// BEK and KEK can potentiallty have different vault ids.
type KeyAndSecretDetails struct {
	KekDetails *KEKDetails `json:"kekDetails,omitempty"`
	BekDetails *BEKDetails `json:"bekDetails,omitempty"`
}

// LongTermRetentionPolicy is long term retention policy.
type LongTermRetentionPolicy struct {
	DailySchedule   *DailyRetentionSchedule   `json:"dailySchedule,omitempty"`
	WeeklySchedule  *WeeklyRetentionSchedule  `json:"weeklySchedule,omitempty"`
	MonthlySchedule *MonthlyRetentionSchedule `json:"monthlySchedule,omitempty"`
	YearlySchedule  *YearlyRetentionSchedule  `json:"yearlySchedule,omitempty"`
}

// LongTermSchedulePolicy is long term policy schedule.
type LongTermSchedulePolicy struct {
}

// MabContainer is container with items backed up using MAB backup engine.
type MabContainer struct {
	FriendlyName         *string                   `json:"friendlyName,omitempty"`
	BackupManagementType BackupManagementType      `json:"backupManagementType,omitempty"`
	RegistrationStatus   *string                   `json:"registrationStatus,omitempty"`
	HealthStatus         *string                   `json:"healthStatus,omitempty"`
	ContainerType        ContainerType             `json:"containerType,omitempty"`
	CanReRegister        *bool                     `json:"canReRegister,omitempty"`
	ContainerID          *int64                    `json:"containerId,omitempty"`
	ProtectedItemCount   *int64                    `json:"protectedItemCount,omitempty"`
	AgentVersion         *string                   `json:"agentVersion,omitempty"`
	ExtendedInfo         *MabContainerExtendedInfo `json:"extendedInfo,omitempty"`
}

// MabContainerExtendedInfo is additional information of the container.
type MabContainerExtendedInfo struct {
	LastRefreshedAt  *date.Time     `json:"lastRefreshedAt,omitempty"`
	BackupItemType   BackupItemType `json:"backupItemType,omitempty"`
	BackupItems      *[]string      `json:"backupItems,omitempty"`
	PolicyName       *string        `json:"policyName,omitempty"`
	LastBackupStatus *string        `json:"lastBackupStatus,omitempty"`
}

// MabErrorInfo is mAB workload-specific error information.
type MabErrorInfo struct {
	ErrorString     *string   `json:"errorString,omitempty"`
	Recommendations *[]string `json:"recommendations,omitempty"`
}

// MabFileFolderProtectedItem is mAB workload-specific backup item.
type MabFileFolderProtectedItem struct {
	BackupManagementType         BackupManagementType                    `json:"backupManagementType,omitempty"`
	WorkloadType                 DataSourceType                          `json:"workloadType,omitempty"`
	ContainerName                *string                                 `json:"containerName,omitempty"`
	SourceResourceID             *string                                 `json:"sourceResourceId,omitempty"`
	PolicyID                     *string                                 `json:"policyId,omitempty"`
	LastRecoveryPoint            *date.Time                              `json:"lastRecoveryPoint,omitempty"`
	FriendlyName                 *string                                 `json:"friendlyName,omitempty"`
	ComputerName                 *string                                 `json:"computerName,omitempty"`
	LastBackupStatus             *string                                 `json:"lastBackupStatus,omitempty"`
	ProtectionState              *string                                 `json:"protectionState,omitempty"`
	IsScheduledForDeferredDelete *bool                                   `json:"isScheduledForDeferredDelete,omitempty"`
	DeferredDeleteSyncTimeInUTC  *int64                                  `json:"deferredDeleteSyncTimeInUTC,omitempty"`
	ExtendedInfo                 *MabFileFolderProtectedItemExtendedInfo `json:"extendedInfo,omitempty"`
}

// MabFileFolderProtectedItemExtendedInfo is additional information on the
// backed up item.
type MabFileFolderProtectedItemExtendedInfo struct {
	LastRefreshedAt     *date.Time `json:"lastRefreshedAt,omitempty"`
	OldestRecoveryPoint *date.Time `json:"oldestRecoveryPoint,omitempty"`
	RecoveryPointCount  *int32     `json:"recoveryPointCount,omitempty"`
}

// MabJob is mAB workload-specific job.
type MabJob struct {
	EntityFriendlyName   *string               `json:"entityFriendlyName,omitempty"`
	BackupManagementType BackupManagementType  `json:"backupManagementType,omitempty"`
	Operation            *string               `json:"operation,omitempty"`
	Status               *string               `json:"status,omitempty"`
	StartTime            *date.Time            `json:"startTime,omitempty"`
	EndTime              *date.Time            `json:"endTime,omitempty"`
	ActivityID           *string               `json:"activityId,omitempty"`
	Duration             *string               `json:"duration,omitempty"`
	ActionsInfo          *[]JobSupportedAction `json:"actionsInfo,omitempty"`
	MabServerName        *string               `json:"mabServerName,omitempty"`
	MabServerType        MabServerType         `json:"mabServerType,omitempty"`
	WorkloadType         WorkloadType          `json:"workloadType,omitempty"`
	ErrorDetails         *[]MabErrorInfo       `json:"errorDetails,omitempty"`
	ExtendedInfo         *MabJobExtendedInfo   `json:"extendedInfo,omitempty"`
}

// MabJobExtendedInfo is additional information for the MAB workload-specific
// job.
type MabJobExtendedInfo struct {
	TasksList           *[]MabJobTaskDetails `json:"tasksList,omitempty"`
	PropertyBag         *map[string]*string  `json:"propertyBag,omitempty"`
	DynamicErrorMessage *string              `json:"dynamicErrorMessage,omitempty"`
}

// MabJobTaskDetails is mAB workload-specific job task details.
type MabJobTaskDetails struct {
	TaskID    *string    `json:"taskId,omitempty"`
	StartTime *date.Time `json:"startTime,omitempty"`
	EndTime   *date.Time `json:"endTime,omitempty"`
	Duration  *string    `json:"duration,omitempty"`
	Status    *string    `json:"status,omitempty"`
}

// MabProtectionPolicy is mab container-specific backup policy.
type MabProtectionPolicy struct {
	ProtectedItemsCount *int32           `json:"protectedItemsCount,omitempty"`
	SchedulePolicy      *SchedulePolicy  `json:"schedulePolicy,omitempty"`
	RetentionPolicy     *RetentionPolicy `json:"retentionPolicy,omitempty"`
}

// MonthlyRetentionSchedule is monthly retention schedule.
type MonthlyRetentionSchedule struct {
	RetentionScheduleFormatType RetentionScheduleFormat `json:"retentionScheduleFormatType,omitempty"`
	RetentionScheduleDaily      *DailyRetentionFormat   `json:"retentionScheduleDaily,omitempty"`
	RetentionScheduleWeekly     *WeeklyRetentionFormat  `json:"retentionScheduleWeekly,omitempty"`
	RetentionTimes              *[]date.Time            `json:"retentionTimes,omitempty"`
	RetentionDuration           *RetentionDuration      `json:"retentionDuration,omitempty"`
}

// NameInfo is the name of usage.
type NameInfo struct {
	Value          *string `json:"value,omitempty"`
	LocalizedValue *string `json:"localizedValue,omitempty"`
}

// OperationResultInfo is operation result info.
type OperationResultInfo struct {
	JobList *[]string `json:"jobList,omitempty"`
}

// OperationResultInfoBase is base class for operation result info.
type OperationResultInfoBase struct {
}

// OperationResultInfoBaseResource is base class for operation result info.
type OperationResultInfoBaseResource struct {
	autorest.Response `json:"-"`
	StatusCode        HTTPStatusCode           `json:"statusCode,omitempty"`
	Headers           *map[string][]string     `json:"Headers,omitempty"`
	Operation         *OperationResultInfoBase `json:"operation,omitempty"`
}

// OperationStatus is operation status.
type OperationStatus struct {
	autorest.Response `json:"-"`
	ID                *string                      `json:"id,omitempty"`
	Name              *string                      `json:"name,omitempty"`
	Status            OperationStatusValues        `json:"status,omitempty"`
	StartTime         *date.Time                   `json:"startTime,omitempty"`
	EndTime           *date.Time                   `json:"endTime,omitempty"`
	Error             *OperationStatusError        `json:"error,omitempty"`
	Properties        *OperationStatusExtendedInfo `json:"properties,omitempty"`
}

// OperationStatusError is error information associated with operation status
// call.
type OperationStatusError struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

// OperationStatusExtendedInfo is base class for additional information of
// operation status.
type OperationStatusExtendedInfo struct {
}

// OperationStatusJobExtendedInfo is operation status job extended info.
type OperationStatusJobExtendedInfo struct {
	JobID *string `json:"jobId,omitempty"`
}

// OperationStatusJobsExtendedInfo is operation status extended info for list
// of jobs.
type OperationStatusJobsExtendedInfo struct {
	JobIds          *[]string           `json:"jobIds,omitempty"`
	FailedJobsError *map[string]*string `json:"failedJobsError,omitempty"`
}

// OperationStatusProvisionILRExtendedInfo is operation status extended info
// for ILR provision action.
type OperationStatusProvisionILRExtendedInfo struct {
	RecoveryTarget *InstantItemRecoveryTarget `json:"recoveryTarget,omitempty"`
}

// OperationWorkerResponse is this is the base class for operation result
// responses.
type OperationWorkerResponse struct {
	StatusCode HTTPStatusCode       `json:"statusCode,omitempty"`
	Headers    *map[string][]string `json:"Headers,omitempty"`
}

// ProtectedItem is base class for backup items.
type ProtectedItem struct {
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
	WorkloadType         DataSourceType       `json:"workloadType,omitempty"`
	ContainerName        *string              `json:"containerName,omitempty"`
	SourceResourceID     *string              `json:"sourceResourceId,omitempty"`
	PolicyID             *string              `json:"policyId,omitempty"`
	LastRecoveryPoint    *date.Time           `json:"lastRecoveryPoint,omitempty"`
}

// ProtectedItemQueryObject is filters to list backup items.
type ProtectedItemQueryObject struct {
	HealthState          HealthState          `json:"healthState,omitempty"`
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
	ItemType             DataSourceType       `json:"itemType,omitempty"`
	PolicyName           *string              `json:"policyName,omitempty"`
	ContainerName        *string              `json:"containerName,omitempty"`
	BackupEngineName     *string              `json:"backupEngineName,omitempty"`
	FriendlyName         *string              `json:"friendlyName,omitempty"`
}

// ProtectedItemResource is base class for backup items.
type ProtectedItemResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	ETag              *string             `json:"eTag,omitempty"`
	Properties        *ProtectedItem      `json:"properties,omitempty"`
}

// ProtectedItemResourceList is list of ProtectedItem resources
type ProtectedItemResourceList struct {
	autorest.Response `json:"-"`
	NextLink          *string                  `json:"nextLink,omitempty"`
	Value             *[]ProtectedItemResource `json:"value,omitempty"`
}

// ProtectedItemResourceListPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ProtectedItemResourceList) ProtectedItemResourceListPreparer() (*http.Request, error) {
	if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
		return nil, nil
	}
	return autorest.Prepare(&http.Request{},
		autorest.AsJSON(),
		autorest.AsGet(),
		autorest.WithBaseURL(to.String(client.NextLink)))
}

// ProtectionContainer is base class for container with backup items.
// Containers with specific workloads are derived from this class.
type ProtectionContainer struct {
	FriendlyName         *string              `json:"friendlyName,omitempty"`
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
	RegistrationStatus   *string              `json:"registrationStatus,omitempty"`
	HealthStatus         *string              `json:"healthStatus,omitempty"`
	ContainerType        ContainerType        `json:"containerType,omitempty"`
}

// ProtectionContainerResource is base class for container with backup items.
// Containers with specific workloads are derived from this class.
type ProtectionContainerResource struct {
	autorest.Response `json:"-"`
	ID                *string              `json:"id,omitempty"`
	Name              *string              `json:"name,omitempty"`
	Type              *string              `json:"type,omitempty"`
	Location          *string              `json:"location,omitempty"`
	Tags              *map[string]*string  `json:"tags,omitempty"`
	ETag              *string              `json:"eTag,omitempty"`
	Properties        *ProtectionContainer `json:"properties,omitempty"`
}

// ProtectionContainerResourceList is list of ProtectionContainer resources
type ProtectionContainerResourceList struct {
	autorest.Response `json:"-"`
	NextLink          *string                        `json:"nextLink,omitempty"`
	Value             *[]ProtectionContainerResource `json:"value,omitempty"`
}

// ProtectionContainerResourceListPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ProtectionContainerResourceList) ProtectionContainerResourceListPreparer() (*http.Request, error) {
	if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
		return nil, nil
	}
	return autorest.Prepare(&http.Request{},
		autorest.AsJSON(),
		autorest.AsGet(),
		autorest.WithBaseURL(to.String(client.NextLink)))
}

// ProtectionPolicy is base class for backup policy. Workload-specific backup
// policies are derived from this class.
type ProtectionPolicy struct {
	ProtectedItemsCount *int32 `json:"protectedItemsCount,omitempty"`
}

// ProtectionPolicyQueryObject is filters the list backup policies API.
type ProtectionPolicyQueryObject struct {
	BackupManagementType BackupManagementType `json:"backupManagementType,omitempty"`
}

// ProtectionPolicyResource is base class for backup policy. Workload-specific
// backup policies are derived from this class.
type ProtectionPolicyResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	ETag              *string             `json:"eTag,omitempty"`
	Properties        *ProtectionPolicy   `json:"properties,omitempty"`
}

// ProtectionPolicyResourceList is list of ProtectionPolicy resources
type ProtectionPolicyResourceList struct {
	autorest.Response `json:"-"`
	NextLink          *string                     `json:"nextLink,omitempty"`
	Value             *[]ProtectionPolicyResource `json:"value,omitempty"`
}

// ProtectionPolicyResourceListPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client ProtectionPolicyResourceList) ProtectionPolicyResourceListPreparer() (*http.Request, error) {
	if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
		return nil, nil
	}
	return autorest.Prepare(&http.Request{},
		autorest.AsJSON(),
		autorest.AsGet(),
		autorest.WithBaseURL(to.String(client.NextLink)))
}

// RecoveryPoint is base class for backup copies. Workload-specific backup
// copies are derived from this class.
type RecoveryPoint struct {
}

// RecoveryPointResource is base class for backup copies. Workload-specific
// backup copies are derived from this class.
type RecoveryPointResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	ETag              *string             `json:"eTag,omitempty"`
	Properties        *RecoveryPoint      `json:"properties,omitempty"`
}

// RecoveryPointResourceList is list of RecoveryPoint resources
type RecoveryPointResourceList struct {
	autorest.Response `json:"-"`
	NextLink          *string                  `json:"nextLink,omitempty"`
	Value             *[]RecoveryPointResource `json:"value,omitempty"`
}

// RecoveryPointResourceListPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client RecoveryPointResourceList) RecoveryPointResourceListPreparer() (*http.Request, error) {
	if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
		return nil, nil
	}
	return autorest.Prepare(&http.Request{},
		autorest.AsJSON(),
		autorest.AsGet(),
		autorest.WithBaseURL(to.String(client.NextLink)))
}

// RecoveryPointTierInformation is recovery point tier information.
type RecoveryPointTierInformation struct {
	Type   RecoveryPointTierType   `json:"type,omitempty"`
	Status RecoveryPointTierStatus `json:"status,omitempty"`
}

// Resource is aRM Resource.
type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
	ETag     *string             `json:"eTag,omitempty"`
}

// ResourceList is base for all lists of resources.
type ResourceList struct {
	NextLink *string `json:"nextLink,omitempty"`
}

// RestoreRequest is base class for restore request. Workload-specific restore
// requests are derived from this class.
type RestoreRequest struct {
}

// RestoreRequestResource is base class for restore request. Workload-specific
// restore requests are derived from this class.
type RestoreRequestResource struct {
	ID         *string             `json:"id,omitempty"`
	Name       *string             `json:"name,omitempty"`
	Type       *string             `json:"type,omitempty"`
	Location   *string             `json:"location,omitempty"`
	Tags       *map[string]*string `json:"tags,omitempty"`
	ETag       *string             `json:"eTag,omitempty"`
	Properties *RestoreRequest     `json:"properties,omitempty"`
}

// RetentionDuration is retention duration.
type RetentionDuration struct {
	Count        *int32                `json:"count,omitempty"`
	DurationType RetentionDurationType `json:"durationType,omitempty"`
}

// RetentionPolicy is base class for retention policy.
type RetentionPolicy struct {
}

// SchedulePolicy is base class for backup schedule.
type SchedulePolicy struct {
}

// SimpleRetentionPolicy is simple policy retention.
type SimpleRetentionPolicy struct {
	RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"`
}

// SimpleSchedulePolicy is simple policy schedule.
type SimpleSchedulePolicy struct {
	ScheduleRunFrequency    ScheduleRunType `json:"scheduleRunFrequency,omitempty"`
	ScheduleRunDays         *[]DayOfWeek    `json:"scheduleRunDays,omitempty"`
	ScheduleRunTimes        *[]date.Time    `json:"scheduleRunTimes,omitempty"`
	ScheduleWeeklyFrequency *int32          `json:"scheduleWeeklyFrequency,omitempty"`
}

// TokenInformation is the token information details.
type TokenInformation struct {
	autorest.Response    `json:"-"`
	Token                *string `json:"token,omitempty"`
	ExpiryTimeInUtcTicks *int64  `json:"expiryTimeInUtcTicks,omitempty"`
	SecurityPIN          *string `json:"securityPIN,omitempty"`
}

// WeeklyRetentionFormat is weekly retention format.
type WeeklyRetentionFormat struct {
	DaysOfTheWeek   *[]DayOfWeek   `json:"daysOfTheWeek,omitempty"`
	WeeksOfTheMonth *[]WeekOfMonth `json:"weeksOfTheMonth,omitempty"`
}

// WeeklyRetentionSchedule is weekly retention schedule.
type WeeklyRetentionSchedule struct {
	DaysOfTheWeek     *[]DayOfWeek       `json:"daysOfTheWeek,omitempty"`
	RetentionTimes    *[]date.Time       `json:"retentionTimes,omitempty"`
	RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"`
}

// WorkloadProtectableItem is base class for backup item. Workload-specific
// backup items are derived from this class.
type WorkloadProtectableItem struct {
	BackupManagementType *string          `json:"backupManagementType,omitempty"`
	FriendlyName         *string          `json:"friendlyName,omitempty"`
	ProtectionState      ProtectionStatus `json:"protectionState,omitempty"`
}

// WorkloadProtectableItemResource is base class for backup item.
// Workload-specific backup items are derived from this class.
type WorkloadProtectableItemResource struct {
	ID         *string                  `json:"id,omitempty"`
	Name       *string                  `json:"name,omitempty"`
	Type       *string                  `json:"type,omitempty"`
	Location   *string                  `json:"location,omitempty"`
	Tags       *map[string]*string      `json:"tags,omitempty"`
	ETag       *string                  `json:"eTag,omitempty"`
	Properties *WorkloadProtectableItem `json:"properties,omitempty"`
}

// WorkloadProtectableItemResourceList is list of WorkloadProtectableItem
// resources
type WorkloadProtectableItemResourceList struct {
	autorest.Response `json:"-"`
	NextLink          *string                            `json:"nextLink,omitempty"`
	Value             *[]WorkloadProtectableItemResource `json:"value,omitempty"`
}

// WorkloadProtectableItemResourceListPreparer prepares a request to retrieve the next set of results. It returns
// nil if no more results exist.
func (client WorkloadProtectableItemResourceList) WorkloadProtectableItemResourceListPreparer() (*http.Request, error) {
	if client.NextLink == nil || len(to.String(client.NextLink)) <= 0 {
		return nil, nil
	}
	return autorest.Prepare(&http.Request{},
		autorest.AsJSON(),
		autorest.AsGet(),
		autorest.WithBaseURL(to.String(client.NextLink)))
}

// YearlyRetentionSchedule is yearly retention schedule.
type YearlyRetentionSchedule struct {
	RetentionScheduleFormatType RetentionScheduleFormat `json:"retentionScheduleFormatType,omitempty"`
	MonthsOfYear                *[]MonthOfYear          `json:"monthsOfYear,omitempty"`
	RetentionScheduleDaily      *DailyRetentionFormat   `json:"retentionScheduleDaily,omitempty"`
	RetentionScheduleWeekly     *WeeklyRetentionFormat  `json:"retentionScheduleWeekly,omitempty"`
	RetentionTimes              *[]date.Time            `json:"retentionTimes,omitempty"`
	RetentionDuration           *RetentionDuration      `json:"retentionDuration,omitempty"`
}