application
application ¶
Application_CRUD_Error ¶
Application_CRUD_Error(
operation: str,
entity_id: str | None = None,
res: ResponseGetData | None = None,
message: str | None = None,
**kwargs
)
Bases: RouteError
Raised when application create, update, or delete operations fail.
This exception is used for failures during application job creation, modification, or execution operations.
Source code in src/crew_dcs/routes/application.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | |
Application_GET_Error ¶
Application_GET_Error(
entity_id: str | None = None,
res: ResponseGetData | None = None,
message: str | None = None,
**kwargs
)
Bases: RouteError
Raised when application retrieval operations fail.
This exception is used for failures during GET operations on applications, including API errors and unexpected response formats.
Source code in src/crew_dcs/routes/application.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
SearchApplication_NotFound_Error ¶
SearchApplication_NotFound_Error(
search_criteria: str,
res: ResponseGetData | None = None,
**kwargs
)
Bases: RouteError
Raised when application search operations return no results.
This exception is used when searching for specific applications that don't exist or when search criteria match no applications.
Source code in src/crew_dcs/routes/application.py
98 99 100 101 102 103 104 105 106 107 108 109 | |
get_application_by_id
async
¶
get_application_by_id(
auth: DomoAuth,
application_id: str,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Retrieve a specific application by its ID.
Fetches details for a single application identified by its unique ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth
|
Authentication object containing instance and credentials |
required |
application_id
|
str
|
Unique identifier for the application to retrieve |
required |
return_raw
|
bool
|
Return raw API response without processing |
False
|
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
**context_kwargs
|
Additional context parameters (session, debug_api, etc.) |
{}
|
Returns:
| Type | Description |
|---|---|
ResponseGetData
|
ResponseGetData object containing the specific application data |
Raises:
| Type | Description |
|---|---|
Application_GET_Error
|
If application retrieval fails |
SearchApplication_NotFound_Error: If no application with the specified ID exists
Example
app_response = await get_application_by_id(auth, "app-123") app_data = app_response.response print(f"Application Name: {app_data['name']}")
Source code in src/crew_dcs/routes/application.py
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 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 | |
get_applications
async
¶
get_applications(
auth: DomoAuth,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> ResponseGetData
Retrieve all applications for the authenticated instance.
Fetches a list of all applications in the current Domo instance. Applications are containers for scheduled jobs that perform automated tasks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
auth
|
DomoAuth
|
Authentication object containing instance and credentials |
required |
return_raw
|
bool
|
Return raw API response without processing |
False
|
context
|
RouteContext | None
|
Optional RouteContext for request configuration |
None
|
**context_kwargs
|
Additional context parameters (session, debug_api, etc.) |
{}
|
Returns:
| Type | Description |
|---|---|
ResponseGetData
|
ResponseGetData object containing list of applications |
Raises:
| Type | Description |
|---|---|
Application_GET_Error
|
If application retrieval fails or API returns an error |
Example
apps_response = await get_applications(auth) for app in apps_response.response: ... print(f"Application: {app['name']}")
Source code in src/crew_dcs/routes/application.py
156 157 158 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 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 | |