SetCsrNotifications models
DataSet models for SetCsrNotifications.
These typed dataclass models represent the tables and columns within the DataSet parameters for the SetCsrNotifications HQ operation.
IMPORTANT: Update operations require a GET first to populate the original_record field. HQ uses the unchanged row for optimistic concurrency checking.
Usage:
from q2_sdk.hq.hq_api.backoffice import SetCsrNotifications
q2_system_alert_view = SetCsrNotifications.Q2SystemAlertView(
system_alert_id=1,
action_id=1,
target_address="...",
enabled=True,
error_return_code=1,
error_return_code_short_name="...",
error_return_code_description="...",
audit_action_short_name="...",
audit_action_description="...",
audit_category_short_name="...",
audit_category_description="...",
)
- class q2_sdk.hq.hq_api.backoffice.SetCsrNotifications_models.Q2SystemAlertView(system_alert_id=0, action_id=0, target_address='', enabled=False, error_return_code=0, error_return_code_short_name='', error_return_code_description='', audit_action_short_name='', audit_action_description='', audit_category_short_name='', audit_category_description='', original_record=None)[source]
Bases:
objectRepresents a row in the Q2_SystemAlertView table.
- original_record: Q2SystemAlertView | None = None
- q2_sdk.hq.hq_api.backoffice.SetCsrNotifications_models.build_csr_notifications_dataset(q2_system_alert_view=None)[source]
Build the csr_notifications DataSet parameter for SetCsrNotifications.
For update operations, each model instance should have its original_record set to the pre-modification state (from a prior GET call).
For add operations, set auto-increment ID fields to negative values.
- Return type:
- Returns:
DataSetBuilder ready to pass as the ‘csr_notifications’ parameter