maptekblastlogic.api.charge_plans package
Contains endpoint functions for accessing the API
Submodules
maptekblastlogic.api.charge_plans.get_charge_plan_by_hole_id module
- maptekblastlogic.api.charge_plans.get_charge_plan_by_hole_id.sync_detailed(site_code, hole_id, *, client)[source]
Get the charge plan for a hole.
Requires permissions: View Blasts
- Parameters:
site_code (str)
hole_id (int)
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[ChargePlanModel | ErrorModel]
- Return type:
- maptekblastlogic.api.charge_plans.get_charge_plan_by_hole_id.sync(site_code, hole_id, *, client)[source]
Get the charge plan for a hole.
Requires permissions: View Blasts
- Parameters:
site_code (str)
hole_id (int)
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:
ChargePlanModel | ErrorModel
- Return type:
ChargePlanModel | ErrorModel | None
- async maptekblastlogic.api.charge_plans.get_charge_plan_by_hole_id.asyncio_detailed(site_code, hole_id, *, client)[source]
Get the charge plan for a hole.
Requires permissions: View Blasts
- Parameters:
site_code (str)
hole_id (int)
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[ChargePlanModel | ErrorModel]
- Return type:
- async maptekblastlogic.api.charge_plans.get_charge_plan_by_hole_id.asyncio(site_code, hole_id, *, client)[source]
Get the charge plan for a hole.
Requires permissions: View Blasts
- Parameters:
site_code (str)
hole_id (int)
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:
ChargePlanModel | ErrorModel
- Return type:
ChargePlanModel | ErrorModel | None
maptekblastlogic.api.charge_plans.get_charge_plans_by_blast_id module
- maptekblastlogic.api.charge_plans.get_charge_plans_by_blast_id.sync_detailed(site_code, blast_id, *, client)[source]
Get charge plans for all holes in a blast.
Requires permissions: View Blasts
- Parameters:
site_code (str)
blast_id (int)
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[ChargePlanModel]]
- Return type:
- maptekblastlogic.api.charge_plans.get_charge_plans_by_blast_id.sync(site_code, blast_id, *, client)[source]
Get charge plans for all holes in a blast.
Requires permissions: View Blasts
- Parameters:
site_code (str)
blast_id (int)
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[ChargePlanModel]
- Return type:
ErrorModel | list[ChargePlanModel] | None
- async maptekblastlogic.api.charge_plans.get_charge_plans_by_blast_id.asyncio_detailed(site_code, blast_id, *, client)[source]
Get charge plans for all holes in a blast.
Requires permissions: View Blasts
- Parameters:
site_code (str)
blast_id (int)
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[ChargePlanModel]]
- Return type:
- async maptekblastlogic.api.charge_plans.get_charge_plans_by_blast_id.asyncio(site_code, blast_id, *, client)[source]
Get charge plans for all holes in a blast.
Requires permissions: View Blasts
- Parameters:
site_code (str)
blast_id (int)
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[ChargePlanModel]
- Return type:
ErrorModel | list[ChargePlanModel] | None