core
core ¶
DomoObjective
dataclass
¶
DomoObjective(
auth: DomoAuth,
id: int,
raw: dict,
name: str = None,
description: str = None,
starts_at: Any = None,
expires_at: Any = None,
status: str = None,
owner_id: int = None,
owners: list[Any] = None,
assignees: list[Any] = None,
period_id: int = None,
parent_id: int = None,
tags: list[Any] = None,
write_access: bool = None,
type: str = None,
)
Bases: DomoEntity
Represents a Domo Goal/Objective.
create
async
classmethod
¶
create(
auth: DomoAuth,
name: str,
period_id: int,
debug_api: bool = False,
session: AsyncClient | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> DomoObjective
Create a new objective.
Source code in src/crew_dcs/classes/DomoObjective/core.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | |
delete
async
¶
delete(
debug_api: bool = False,
session: AsyncClient | None = None,
*,
context: RouteContext | None = None,
**context_kwargs
)
Delete this objective.
Source code in src/crew_dcs/classes/DomoObjective/core.py
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 | |
from_dict
classmethod
¶
from_dict(
auth: DomoAuth, obj: dict[str, Any], **kwargs
) -> DomoObjective
Converts an objectives API response into a DomoObjective instance.
Source code in src/crew_dcs/classes/DomoObjective/core.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
get_by_id
async
classmethod
¶
get_by_id(
auth: DomoAuth,
objective_id: int | str,
period_id: int | None = None,
debug_api: bool = False,
session: AsyncClient | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> DomoObjective
Retrieve a single objective by ID.
The Goals API does not expose a dedicated "get objective by id" endpoint, so this searches all objectives and matches by ID.
Source code in src/crew_dcs/classes/DomoObjective/core.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
get_entity_by_id
async
classmethod
¶
get_entity_by_id(entity_id, **kwargs) -> DomoObjective
Alias for get_by_id.
Source code in src/crew_dcs/classes/DomoObjective/core.py
135 136 137 138 | |
update
async
¶
update(
payload: dict | None = None,
debug_api: bool = False,
session: AsyncClient | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> DomoObjective
Update this objective.
Source code in src/crew_dcs/classes/DomoObjective/core.py
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | |
DomoObjective_NoMatchError ¶
DomoObjective_NoMatchError(
objective_id, domo_instance, **kwargs
)
Bases: ClassError
Raised when a specific objective cannot be found.
Source code in src/crew_dcs/classes/DomoObjective/core.py
25 26 27 28 29 30 31 | |
DomoObjectives
dataclass
¶
DomoObjectives(
auth: DomoAuth, objectives: list[DomoObjective] = None
)
Bases: DomoManager
Manager for retrieving collections of objectives.
get
async
¶
get(
period_id: int | None = None,
filter_key_results: bool = False,
debug_api: bool = False,
session: AsyncClient | None = None,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> list[DomoObjective]
Search for objectives.
Source code in src/crew_dcs/classes/DomoObjective/core.py
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | |