44
55//! A client for the Propolis hypervisor frontend's server API.
66
7- #[ cfg( not( feature = "falcon" ) ) ]
87progenitor:: generate_api!(
98 spec = "../../openapi/propolis-server.json" ,
109 interface = Builder ,
1110 tags = Separate ,
1211 patch = {
1312 // Add `Default` to types related to instance specs
1413 InstanceSpecV0 = { derives = [ Default ] } ,
15- BackendSpecV0 = { derives = [ Default ] } ,
16- DeviceSpecV0 = { derives = [ Default ] } ,
1714 Board = { derives = [ Default ] } ,
1815
1916 // Some Crucible-related bits are re-exported through simulated
2017 // sled-agent and thus require JsonSchema
2118 BootOrderEntry = { derives = [ schemars:: JsonSchema ] } ,
22- BootSettings = { derives = [ schemars:: JsonSchema ] } ,
19+ BootSettings = { derives = [ Default , schemars:: JsonSchema ] } ,
2320 DiskRequest = { derives = [ schemars:: JsonSchema ] } ,
2421 VolumeConstructionRequest = { derives = [ schemars:: JsonSchema ] } ,
2522 CrucibleOpts = { derives = [ schemars:: JsonSchema ] } ,
@@ -33,32 +30,4 @@ progenitor::generate_api!(
3330 }
3431) ;
3532
36- #[ cfg( feature = "falcon" ) ]
37- progenitor:: generate_api!(
38- spec = "../../openapi/propolis-server-falcon.json" ,
39- interface = Builder ,
40- tags = Separate ,
41- patch = {
42- // Add `Default` to types related to instance specs
43- InstanceSpecV0 = { derives = [ Default ] } ,
44- BackendSpecV0 = { derives = [ Default ] } ,
45- DeviceSpecV0 = { derives = [ Default ] } ,
46- Board = { derives = [ Default ] } ,
47-
48- // Some Crucible-related bits are re-exported through simulated
49- // sled-agent and thus require JsonSchema
50- DiskRequest = { derives = [ schemars:: JsonSchema ] } ,
51- VolumeConstructionRequest = { derives = [ schemars:: JsonSchema ] } ,
52- CrucibleOpts = { derives = [ schemars:: JsonSchema ] } ,
53- Slot = { derives = [ schemars:: JsonSchema ] } ,
54-
55- PciPath = { derives = [
56- Copy , Ord , Eq , PartialEq , PartialOrd
57- ] } ,
58-
59- InstanceMetadata = { derives = [ PartialEq ] } ,
60- }
61- ) ;
62-
63- pub mod instance_spec;
6433pub mod support;
0 commit comments