-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvcb.xsd
100 lines (85 loc) · 2.93 KB
/
vcb.xsd
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
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="config_version">
<xs:restriction base="xs:int">
<xs:minInclusive value = "1"/>
<xs:maxInclusive value = "1"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="vmname_type">
<xs:restriction base="xs:string">
<xs:enumeration value="name"/>
<xs:enumeration value="regex"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="replacedisks_type">
<xs:restriction base="xs:string">
<xs:pattern value="(\d+)(,(\d+))*"/>
</xs:restriction>
</xs:simpleType>
<xs:attributeGroup name="default_properties">
<xs:attribute name="delete_old_snapshots" type="xs:string" use="optional"/>
<xs:attribute name="full_backup" type="xs:boolean" use="optional"/>
<xs:attribute name="only_running" type="xs:boolean" use="optional"/>
</xs:attributeGroup>
<xs:attributeGroup name="all_properties">
<xs:attribute name="delete_old_snapshots" type="xs:string" use="optional"/>
<xs:attribute name="full_backup" type="xs:boolean" use="optional"/>
<xs:attribute name="only_running" type="xs:boolean" use="optional"/>
<xs:attribute name="type" type="vmname_type" use="optional"/>
<xs:attribute name="replace_disks" type="replacedisks_type" use="optional"/>
</xs:attributeGroup>
<xs:element name="vcenterbackup">
<xs:complexType>
<xs:all>
<xs:element name="vcenter">
<xs:complexType>
<xs:all>
<xs:element name="host" type="xs:string"/>
<xs:element name="user" type="xs:string"/>
<xs:element name="password" type="xs:string"/>
<xs:element name="ignore_certificate" type="xs:boolean"/>
<xs:element name="backup_folder" type="xs:string"/>
<xs:element name="backup_datastore" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="local">
<xs:complexType>
<xs:all>
<xs:element name="nfs_directory" type="xs:string"/>
<xs:element name="compressed_vm_directory" type="xs:string"/>
<xs:element name="compress_command" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="backup">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="vm">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attributeGroup ref="all_properties"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="host">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attributeGroup ref="all_properties"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attributeGroup ref="default_properties"/>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="version" type="config_version" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>