maptekblastlogic.api.loading_trucks package
Contains endpoint functions for accessing the API
Submodules
maptekblastlogic.api.loading_trucks.create_loading_truck module
- maptekblastlogic.api.loading_trucks.create_loading_truck.sync_detailed(site_code, *, client, body)[source]
Create a new loading truck.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
body (LoadingTruckModel) – A truck used to load blast products into holes.
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Response[ErrorModel | int]
- Return type:
- maptekblastlogic.api.loading_trucks.create_loading_truck.sync(site_code, *, client, body)[source]
Create a new loading truck.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
body (LoadingTruckModel) – A truck used to load blast products into holes.
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
ErrorModel | int
- Return type:
ErrorModel | int | None
- async maptekblastlogic.api.loading_trucks.create_loading_truck.asyncio_detailed(site_code, *, client, body)[source]
Create a new loading truck.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
body (LoadingTruckModel) – A truck used to load blast products into holes.
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Response[ErrorModel | int]
- Return type:
- async maptekblastlogic.api.loading_trucks.create_loading_truck.asyncio(site_code, *, client, body)[source]
Create a new loading truck.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
body (LoadingTruckModel) – A truck used to load blast products into holes.
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
ErrorModel | int
- Return type:
ErrorModel | int | None
maptekblastlogic.api.loading_trucks.get_loading_trucks module
- maptekblastlogic.api.loading_trucks.get_loading_trucks.sync_detailed(site_code, *, client)[source]
Get a list of all the trucks.
Requires permissions: Any
- Parameters:
site_code (str)
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Response[ErrorModel | list[LoadingTruckModel]]
- Return type:
- maptekblastlogic.api.loading_trucks.get_loading_trucks.sync(site_code, *, client)[source]
Get a list of all the trucks.
Requires permissions: Any
- Parameters:
site_code (str)
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
ErrorModel | list[LoadingTruckModel]
- Return type:
ErrorModel | list[LoadingTruckModel] | None
- async maptekblastlogic.api.loading_trucks.get_loading_trucks.asyncio_detailed(site_code, *, client)[source]
Get a list of all the trucks.
Requires permissions: Any
- Parameters:
site_code (str)
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Response[ErrorModel | list[LoadingTruckModel]]
- Return type:
- async maptekblastlogic.api.loading_trucks.get_loading_trucks.asyncio(site_code, *, client)[source]
Get a list of all the trucks.
Requires permissions: Any
- Parameters:
site_code (str)
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
ErrorModel | list[LoadingTruckModel]
- Return type:
ErrorModel | list[LoadingTruckModel] | None
maptekblastlogic.api.loading_trucks.update_loading_truck module
- maptekblastlogic.api.loading_trucks.update_loading_truck.sync_detailed(site_code, loading_truck_id, *, client, body, if_match)[source]
Update an existing loading truck.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
loading_truck_id (int)
if_match (str)
body (LoadingTruckModel) – A truck used to load blast products into holes.
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Response[Any | ErrorModel]
- Return type:
- maptekblastlogic.api.loading_trucks.update_loading_truck.sync(site_code, loading_truck_id, *, client, body, if_match)[source]
Update an existing loading truck.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
loading_truck_id (int)
if_match (str)
body (LoadingTruckModel) – A truck used to load blast products into holes.
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Any | ErrorModel
- Return type:
Any | ErrorModel | None
- async maptekblastlogic.api.loading_trucks.update_loading_truck.asyncio_detailed(site_code, loading_truck_id, *, client, body, if_match)[source]
Update an existing loading truck.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
loading_truck_id (int)
if_match (str)
body (LoadingTruckModel) – A truck used to load blast products into holes.
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Response[Any | ErrorModel]
- Return type:
- async maptekblastlogic.api.loading_trucks.update_loading_truck.asyncio(site_code, loading_truck_id, *, client, body, if_match)[source]
Update an existing loading truck.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
loading_truck_id (int)
if_match (str)
body (LoadingTruckModel) – A truck used to load blast products into holes.
client (AuthenticatedClient)
- Raises:
errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
httpx.TimeoutException – If the request takes longer than Client.timeout.
- Returns:
Any | ErrorModel
- Return type:
Any | ErrorModel | None