maptekblastlogic.api.personnel package
Contains endpoint functions for accessing the API
Submodules
maptekblastlogic.api.personnel.create_person module
- maptekblastlogic.api.personnel.create_person.sync_detailed(site_code, *, client, body)[source]
Create a new Person.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
body (PersonModel) – A person and their responsibilities.
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.personnel.create_person.sync(site_code, *, client, body)[source]
Create a new Person.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
body (PersonModel) – A person and their responsibilities.
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.personnel.create_person.asyncio_detailed(site_code, *, client, body)[source]
Create a new Person.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
body (PersonModel) – A person and their responsibilities.
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.personnel.create_person.asyncio(site_code, *, client, body)[source]
Create a new Person.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
body (PersonModel) – A person and their responsibilities.
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.personnel.get_personnel module
- maptekblastlogic.api.personnel.get_personnel.sync_detailed(site_code, *, client)[source]
Get a list of personnel.
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[PersonModel]]
- Return type:
- maptekblastlogic.api.personnel.get_personnel.sync(site_code, *, client)[source]
Get a list of personnel.
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[PersonModel]
- Return type:
ErrorModel | list[PersonModel] | None
- async maptekblastlogic.api.personnel.get_personnel.asyncio_detailed(site_code, *, client)[source]
Get a list of personnel.
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[PersonModel]]
- Return type:
- async maptekblastlogic.api.personnel.get_personnel.asyncio(site_code, *, client)[source]
Get a list of personnel.
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[PersonModel]
- Return type:
ErrorModel | list[PersonModel] | None
maptekblastlogic.api.personnel.update_person module
- maptekblastlogic.api.personnel.update_person.sync_detailed(site_code, person_id, *, client, body, if_match)[source]
Update an existing Person.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
person_id (int)
if_match (str)
body (PersonModel) – A person and their responsibilities.
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.personnel.update_person.sync(site_code, person_id, *, client, body, if_match)[source]
Update an existing Person.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
person_id (int)
if_match (str)
body (PersonModel) – A person and their responsibilities.
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.personnel.update_person.asyncio_detailed(site_code, person_id, *, client, body, if_match)[source]
Update an existing Person.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
person_id (int)
if_match (str)
body (PersonModel) – A person and their responsibilities.
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.personnel.update_person.asyncio(site_code, person_id, *, client, body, if_match)[source]
Update an existing Person.
Requires permissions: Edit Site Resources
- Parameters:
site_code (str)
person_id (int)
if_match (str)
body (PersonModel) – A person and their responsibilities.
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