reactive_graph_client/client/instances/relations/
commands.rs1use crate::client::instances::relations::args::add_property::AddPropertyArgs;
2use crate::client::instances::relations::args::create::CreateRelationInstanceArgs;
3use crate::client::instances::relations::args::id::RelationInstanceIdArgs;
4use crate::client::instances::relations::args::id_and_component::RelationInstanceIdAndComponentArgs;
5use crate::client::instances::relations::args::id_and_property::RelationInstanceIdAndPropertyArgs;
6use crate::client::instances::relations::args::search::SearchRelationInstancesArgs;
7use crate::client::instances::relations::args::set_property::SetPropertyArgs;
8use clap::Subcommand;
9
10#[derive(Subcommand, Debug, Clone)]
11pub(crate) enum RelationInstancesCommands {
12 #[non_exhaustive]
14 List(SearchRelationInstancesArgs),
15 #[non_exhaustive]
17 Get(RelationInstanceIdArgs),
18 #[non_exhaustive]
20 ListProperties(RelationInstanceIdArgs),
21 #[non_exhaustive]
23 GetProperty(RelationInstanceIdAndPropertyArgs),
24 #[non_exhaustive]
26 SetProperty(SetPropertyArgs),
27 #[non_exhaustive]
29 AddProperty(AddPropertyArgs),
30 #[non_exhaustive]
32 RemoveProperty(RelationInstanceIdAndPropertyArgs),
33 #[non_exhaustive]
35 ListComponents(RelationInstanceIdArgs),
36 #[non_exhaustive]
38 AddComponent(RelationInstanceIdAndComponentArgs),
39 #[non_exhaustive]
41 RemoveComponent(RelationInstanceIdAndComponentArgs),
42 #[non_exhaustive]
44 Create(CreateRelationInstanceArgs),
45 #[non_exhaustive]
47 Delete(RelationInstanceIdArgs),
48 #[non_exhaustive]
50 JsonSchema,
51}