manager
manager ¶
DomoBeastModes manager for searching and listing beast modes.
Provides collection-level operations: get, search, get by dataset, get by card.
DomoBeastModes
dataclass
¶
DomoBeastModes(auth: DomoAuth)
Bases: DomoManager
Manager for searching and listing beast modes.
Usage
bms = DomoBeastModes(auth=auth) every_bm = await bms.get() results = await bms.search(filters=filters) dataset_bms = await bms.get_by_dataset(dataset_id="abc-123") card_bms = await bms.get_by_card(card_id="456")
get
async
¶
get(
*, context: RouteContext | None = None, **context_kwargs
) -> list[DomoBeastMode]
Get every beast mode in the instance.
To narrow the list, use search.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
Returns:
| Type | Description |
|---|---|
list[DomoBeastMode]
|
List of DomoBeastMode instances |
Source code in src/crew_dcs/classes/DomoBeastMode/manager.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
get_by_card
async
¶
get_by_card(
card_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> list[DomoBeastMode]
Get beast modes associated with a card.
Searches all beast modes and filters for those linked to the given card.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
card_id
|
str
|
The card ID to filter by |
required |
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
Returns:
| Type | Description |
|---|---|
list[DomoBeastMode]
|
List of DomoBeastMode instances linked to the card |
Calls route
Source code in src/crew_dcs/classes/DomoBeastMode/manager.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | |
get_by_dataset
async
¶
get_by_dataset(
dataset_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> list[DomoBeastMode]
Get beast modes associated with a dataset.
Searches all beast modes and filters for those linked to the given dataset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dataset_id
|
str
|
The dataset ID to filter by |
required |
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
Returns:
| Type | Description |
|---|---|
list[DomoBeastMode]
|
List of DomoBeastMode instances linked to the dataset |
Calls route
Source code in src/crew_dcs/classes/DomoBeastMode/manager.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | |
get_by_page
async
¶
get_by_page(
page_id: str,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> list[DomoBeastMode]
Get beast modes associated with a page.
Retrieves all beast modes linked to cards on the given page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
page_id
|
str
|
The page ID to retrieve beast modes for |
required |
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
Returns:
| Type | Description |
|---|---|
list[DomoBeastMode]
|
List of DomoBeastMode instances linked to cards on the page |
Calls route
Source code in src/crew_dcs/classes/DomoBeastMode/manager.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
search
async
¶
search(
filters: list[dict] | None = None,
*,
context: RouteContext | None = None,
**context_kwargs,
) -> list[DomoBeastMode]
Search for beast modes with optional filters.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filters
|
list[dict] | None
|
Optional list of filter dictionaries |
None
|
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
Returns:
| Type | Description |
|---|---|
list[DomoBeastMode]
|
List of DomoBeastMode instances |
Calls route
Source code in src/crew_dcs/classes/DomoBeastMode/manager.py
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 | |