reactive_graph/client/types/relations/
commands.rs1use crate::client::types::relations::args::add_extension::RelationTypeAddExtensionArgs;
2use crate::client::types::relations::args::add_property::RelationTypeAddPropertyArgs;
3use crate::client::types::relations::args::create::CreateRelationTypeArgs;
4use crate::client::types::relations::args::relation_component_type::RelationComponentTypeIdArgs;
5use crate::client::types::relations::args::relation_extension_type::RelationExtensionTypeIdArgs;
6use crate::client::types::relations::args::relation_type_property::RelationTypePropertyArgs;
7use crate::client::types::relations::args::type_id::RelationTypeIdArgs;
8use crate::client::types::relations::args::update_description::RelationTypeUpdateDescriptionArgs;
9use clap::Subcommand;
10
11#[derive(Subcommand, Debug, Clone)]
12pub(crate) enum RelationTypesCommands {
13 #[non_exhaustive]
15 List,
16 #[non_exhaustive]
18 Get(RelationTypeIdArgs),
19 #[non_exhaustive]
21 ListProperties(RelationTypeIdArgs),
22 #[non_exhaustive]
24 ListExtensions(RelationTypeIdArgs),
25 #[non_exhaustive]
27 ListComponents(RelationTypeIdArgs),
28 #[non_exhaustive]
30 Create(CreateRelationTypeArgs),
31 #[non_exhaustive]
33 Delete(RelationTypeIdArgs),
34 #[non_exhaustive]
36 AddProperty(RelationTypeAddPropertyArgs),
37 #[non_exhaustive]
39 RemoveProperty(RelationTypePropertyArgs),
40 #[non_exhaustive]
42 AddExtension(RelationTypeAddExtensionArgs),
43 #[non_exhaustive]
45 RemoveExtension(RelationExtensionTypeIdArgs),
46 #[non_exhaustive]
48 AddComponent(RelationComponentTypeIdArgs),
49 #[non_exhaustive]
51 RemoveComponent(RelationComponentTypeIdArgs),
52 #[non_exhaustive]
54 UpdateDescription(RelationTypeUpdateDescriptionArgs),
55 #[non_exhaustive]
57 JsonSchema,
58}