Skip to content

incident_io_client.api.audit_logs.audit_logs_private_incident_membership_granted_v1

asyncio async

asyncio(
    *, client: Union[AuthenticatedClient, Client]
) -> Optional[
    AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody
]

PrivateIncidentMembershipGrantedV1 Audit logs

This entry is created whenever someone is granted access to a private incident. If they have the 'manage private incidents' permission, then it'll appear that the system has given them access to the incident.

Raises:

Type Description
UnexpectedStatus

If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Optional[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]

AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody

Source code in incident_io_client/api/audit_logs/audit_logs_private_incident_membership_granted_v1.py
async def asyncio(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Optional[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]:
    """PrivateIncidentMembershipGrantedV1 Audit logs

     This entry is created whenever someone is granted access to a private incident. If they have the
    'manage private incidents' permission, then it'll appear that the system has given them access to
    the incident.

    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:
        AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody
    """

    return (
        await asyncio_detailed(
            client=client,
        )
    ).parsed

asyncio_detailed async

asyncio_detailed(
    *, client: Union[AuthenticatedClient, Client]
) -> Response[
    AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody
]

PrivateIncidentMembershipGrantedV1 Audit logs

This entry is created whenever someone is granted access to a private incident. If they have the 'manage private incidents' permission, then it'll appear that the system has given them access to the incident.

Raises:

Type Description
UnexpectedStatus

If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]

Response[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]

Source code in incident_io_client/api/audit_logs/audit_logs_private_incident_membership_granted_v1.py
async def asyncio_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Response[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]:
    """PrivateIncidentMembershipGrantedV1 Audit logs

     This entry is created whenever someone is granted access to a private incident. If they have the
    'manage private incidents' permission, then it'll appear that the system has given them access to
    the incident.

    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[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]
    """

    kwargs = _get_kwargs()

    response = await client.get_async_httpx_client().request(**kwargs)

    return _build_response(client=client, response=response)

sync

sync(
    *, client: Union[AuthenticatedClient, Client]
) -> Optional[
    AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody
]

PrivateIncidentMembershipGrantedV1 Audit logs

This entry is created whenever someone is granted access to a private incident. If they have the 'manage private incidents' permission, then it'll appear that the system has given them access to the incident.

Raises:

Type Description
UnexpectedStatus

If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Optional[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]

AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody

Source code in incident_io_client/api/audit_logs/audit_logs_private_incident_membership_granted_v1.py
def sync(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Optional[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]:
    """PrivateIncidentMembershipGrantedV1 Audit logs

     This entry is created whenever someone is granted access to a private incident. If they have the
    'manage private incidents' permission, then it'll appear that the system has given them access to
    the incident.

    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:
        AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody
    """

    return sync_detailed(
        client=client,
    ).parsed

sync_detailed

sync_detailed(
    *, client: Union[AuthenticatedClient, Client]
) -> Response[
    AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody
]

PrivateIncidentMembershipGrantedV1 Audit logs

This entry is created whenever someone is granted access to a private incident. If they have the 'manage private incidents' permission, then it'll appear that the system has given them access to the incident.

Raises:

Type Description
UnexpectedStatus

If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

TimeoutException

If the request takes longer than Client.timeout.

Returns:

Type Description
Response[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]

Response[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]

Source code in incident_io_client/api/audit_logs/audit_logs_private_incident_membership_granted_v1.py
def sync_detailed(
    *,
    client: Union[AuthenticatedClient, Client],
) -> Response[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]:
    """PrivateIncidentMembershipGrantedV1 Audit logs

     This entry is created whenever someone is granted access to a private incident. If they have the
    'manage private incidents' permission, then it'll appear that the system has given them access to
    the incident.

    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[AuditLogsPrivateIncidentMembershipGrantedV1ResponseBody]
    """

    kwargs = _get_kwargs()

    response = client.get_httpx_client().request(
        **kwargs,
    )

    return _build_response(client=client, response=response)