reactive_graph_client/client/instances/entities/
commands.rs1use crate::client::instances::entities::args::add_property::AddPropertyArgs;
2use crate::client::instances::entities::args::create::CreateEntityInstanceArgs;
3use crate::client::instances::entities::args::id::IdArgs;
4use crate::client::instances::entities::args::id_and_component::IdAndComponentArgs;
5use crate::client::instances::entities::args::id_and_property::IdAndPropertyArgs;
6use crate::client::instances::entities::args::label::LabelArgs;
7use crate::client::instances::entities::args::search::SearchEntityInstancesArgs;
8use crate::client::instances::entities::args::set_property::SetPropertyArgs;
9use clap::Subcommand;
10
11#[derive(Subcommand, Debug, Clone)]
12pub(crate) enum EntityInstancesCommands {
13 #[non_exhaustive]
15 List(SearchEntityInstancesArgs),
16 #[non_exhaustive]
18 Get(IdArgs),
19 #[non_exhaustive]
21 GetByLabel(LabelArgs),
22 #[non_exhaustive]
24 ListProperties(IdArgs),
25 #[non_exhaustive]
27 GetProperty(IdAndPropertyArgs),
28 #[non_exhaustive]
30 SetProperty(SetPropertyArgs),
31 #[non_exhaustive]
33 AddProperty(AddPropertyArgs),
34 #[non_exhaustive]
36 RemoveProperty(IdAndPropertyArgs),
37 #[non_exhaustive]
39 ListComponents(IdArgs),
40 #[non_exhaustive]
42 AddComponent(IdAndComponentArgs),
43 #[non_exhaustive]
45 RemoveComponent(IdAndComponentArgs),
46 #[non_exhaustive]
48 Create(CreateEntityInstanceArgs),
49 #[non_exhaustive]
51 Delete(IdArgs),
52 #[non_exhaustive]
54 JsonSchema,
55}