QRS API Models
- qrs_api_client.models.app_condensed(_id: UUID = None, privileges: list = None, name: str = None, app_id: str = None, publish_time: datetime = None, published: bool = None, stream=None, saved_in_product_version: str = None, migration_hash: str = None, availability_status=None)[source]
Creates a condensed representation of an application.
- Parameters:
_id (uuid.UUID, optional) – Unique identifier of the application.
privileges (list, optional) – List of privileges.
name (str, optional) – Name of the application.
app_id (str, optional) – Application ID.
publish_time (datetime, optional) – Publish time of the application.
published (bool, optional) – Whether the application is published.
stream (optional) – Stream information.
saved_in_product_version (str, optional) – Product version in which the application was saved.
migration_hash (str, optional) – Migration hash for version control.
availability_status (optional) – Availability status of the application.
- Returns:
Condensed application representation.
- Return type:
dict
- qrs_api_client.models.composite_event(_id: UUID = None, created_date: datetime = None, modified_date: datetime = None, modified_by_user_name: str = None, schema_path: str = None, privileges: list = None, name: str = None, enabled: bool = None, event_type: int = None, _reload_task=None, user_sync_task=None, external_program_task=None, time_constraint=None, composite_rules: list = None, operational=None)[source]
Creates a dictionary representing a composite event.
- Parameters:
_id (uuid.UUID, optional) – The unique identifier for the event.
created_date (datetime, optional) – The date the event was created.
modified_date (datetime, optional) – The date the event was last modified.
modified_by_user_name (str, optional) – The username of the person who last modified the event.
schema_path (str, optional) – The schema path for the event.
privileges (list, optional) – A list of privileges associated with the event.
name (str, optional) – The name of the event. Defaults to an empty string if not provided.
enabled (bool, optional) – Whether the event is enabled.
event_type (int, optional) – The type of event.
_reload_task (optional) – The reload task associated with the event.
user_sync_task (optional) – The user synchronization task associated with the event.
external_program_task (optional) – The external program task associated with the event.
time_constraint (optional) – The time constraint for the event.
composite_rules (list, optional) – A list of composite rules for the event.
operational (optional) – Operational status of the event.
- Returns:
A dictionary representing the composite event.
- Return type:
dict
- qrs_api_client.models.composite_event_rule(_id: UUID = None, created_date: datetime = None, modified_date: datetime = None, modified_by_user_name: str = None, schema_path: str = None, rule_state: int = None, _reload_task=None, user_sync_task=None, external_program_task=None, operational=None)[source]
Creates a dictionary representing a composite event rule.
- Parameters:
_id (uuid.UUID, optional) – The unique identifier for the composite event rule.
created_date (datetime, optional) – The date the rule was created.
modified_date (datetime, optional) – The date the rule was last modified.
modified_by_user_name (str, optional) – The username of the person who last modified the rule.
schema_path (str, optional) – The schema path for the rule.
rule_state (int, optional) – The state of the rule.
_reload_task (optional) – The reload task associated with the rule.
user_sync_task (optional) – The user synchronization task associated with the rule.
external_program_task (optional) – The external program task associated with the rule.
operational (optional) – Operational status of the rule.
- Returns:
A dictionary representing the composite event rule.
- Return type:
dict
- qrs_api_client.models.composite_event_time_constraint(_id: UUID = None, created_date: datetime = None, modified_date: datetime = None, modified_by_user_name: str = None, schema_path: str = None, days: int = None, hours: int = None, minutes: int = None, seconds: int = None)[source]
Creates a dictionary representing a time constraint for a composite event.
- Parameters:
_id (uuid.UUID, optional) – The unique identifier for the time constraint.
created_date (datetime, optional) – The date the time constraint was created.
modified_date (datetime, optional) – The date the time constraint was last modified.
modified_by_user_name (str, optional) – The username of the person who last modified the time constraint.
schema_path (str, optional) – The schema path for the time constraint.
days (int, optional) – The number of days in the time constraint.
hours (int, optional) – The number of hours in the time constraint.
minutes (int, optional) – The number of minutes in the time constraint.
seconds (int, optional) – The number of seconds in the time constraint.
- Returns:
A dictionary representing the composite event time constraint.
- Return type:
dict
- qrs_api_client.models.custom_property_definition_condensed(_id: UUID = None, privileges: list = None, name: str = None, value_type: str = None, choice_values=None)[source]
Creates a dictionary representing a condensed custom property definition.
- Parameters:
_id (uuid.UUID, optional) – The unique identifier for the property definition.
privileges (list, optional) – A list of privileges associated with the property.
name (str, optional) – The name of the property definition.
value_type (str, optional) – The type of value the property accepts.
choice_values (optional) – Possible values for the property.
- Returns:
A dictionary representing the custom property definition.
- Return type:
dict
- qrs_api_client.models.custom_property_value(_id: UUID = None, created_date: datetime = None, modified_date: datetime = None, modified_by_user_name: str = None, schema_path: str = None, value: str = None, definition=None)[source]
Creates a dictionary representing a custom property value.
- Parameters:
_id (uuid.UUID, optional) – The unique identifier for the custom property value.
created_date (datetime, optional) – The date the property was created.
modified_date (datetime, optional) – The date the property was last modified.
modified_by_user_name (str, optional) – The username of the person who last modified the property.
schema_path (str, optional) – The schema path for the custom property.
value (str, optional) – The value of the custom property. Defaults to an empty string if not provided.
definition (optional) – The definition of the custom property.
- Returns:
A dictionary representing the custom property value.
- Return type:
dict
- qrs_api_client.models.reload_task(_id: UUID = None, created_date: datetime = None, modified_date: datetime = None, modified_by_user_name: str = None, schema_path: str = None, privileges: list = None, custom_properties: list = None, name: str = None, task_type: int = None, enabled: bool = None, task_session_timeout: int = None, max_retries: int = None, tags: list = None, app=None, is_manually_triggered: bool = None, operational=None, is_partial_reload: bool = None, time_to_live: int = None, preload_nodes=None)[source]
Creates a dictionary representing a reload task.
- Parameters:
_id (uuid.UUID, optional) – The unique identifier of the task.
created_date (datetime, optional) – The creation date of the task.
modified_date (datetime, optional) – The modification date of the task.
modified_by_user_name (str, optional) – The username of the person who modified the task.
schema_path (str, optional) – The path to the schema.
privileges (list, optional) – A list of privileges associated with the task.
custom_properties (list, optional) – Custom properties of the task.
name (str, optional) – The name of the task.
task_type (int, optional) – The type of task.
enabled (bool, optional) – Whether the task is enabled.
task_session_timeout (int, optional) – The task session timeout in seconds.
max_retries (int, optional) – The maximum number of retries allowed.
tags (list, optional) – A list of tags associated with the task.
app (dict, optional) – Application-specific data.
is_manually_triggered (bool, optional) – Whether the task is manually triggered.
operational (dict, optional) – Operational details.
is_partial_reload (bool, optional) – Whether the task supports partial reload.
time_to_live (int, optional) – The time-to-live value for the task.
preload_nodes (list, optional) – A list of preload nodes.
- Returns:
A dictionary containing the reload task data.
- Return type:
dict
- qrs_api_client.models.reload_task_bundle(schema_path: str = None, task=None, composite_events: list = None, schema_events: list = None)[source]
Creates a dictionary representing a reload task bundle.
- Parameters:
schema_path (str, optional) – The path to the schema.
task (dict, optional) – The task data.
composite_events (list, optional) – A list of composite events.
schema_events (list, optional) – A list of schema events.
- Returns:
A dictionary containing the reload task bundle data.
- Return type:
dict
- qrs_api_client.models.reload_task_condensed(_id: UUID = None, privileges: list = None, name: str = None, task_type: int = None, enabled: bool = None, task_session_timeout: int = None, max_retries: int = None, operational=None, time_to_live: int = None)[source]
Creates a dictionary representing a condensed reload task.
- Parameters:
_id (uuid.UUID, optional) – The unique identifier of the task.
privileges (list, optional) – A list of privileges associated with the task.
name (str, optional) – The name of the task.
task_type (int, optional) – The type of task.
enabled (bool, optional) – Whether the task is enabled.
task_session_timeout (int, optional) – The task session timeout in seconds.
max_retries (int, optional) – The maximum number of retries allowed.
operational (dict, optional) – Operational details.
time_to_live (int, optional) – The time-to-live value for the task.
- Returns:
A dictionary containing the condensed reload task data.
- Return type:
dict
- qrs_api_client.models.schema_event(_id: UUID = None, created_date: datetime = None, modified_date: datetime = None, modified_by_user_name: str = None, schema_path: str = None, privileges: list = None, name: str = None, enabled: bool = None, event_type: int = None, _reload_task=None, user_sync_task=None, external_program_task=None, time_zone: str = None, daylight_saving_time: int = None, start_date: datetime = None, expiration_date: datetime = None, schema_filter_description: list = None, increment_description: str = None, increment_option: int = None, operational=None)[source]
Creates a detailed representation of a schema event.
- Parameters:
_id (uuid.UUID, optional) – Unique identifier of the schema event.
created_date (datetime, optional) – Creation date of the schema event.
modified_date (datetime, optional) – Last modification date of the schema event.
modified_by_user_name (str, optional) – Username of the person who modified the schema event.
schema_path (str, optional) – Schema path of the event.
privileges (list, optional) – List of privileges.
name (str, optional) – Name of the schema event.
enabled (bool, optional) – Whether the schema event is enabled.
event_type (int, optional) – Type of the schema event.
_reload_task (optional) – Reload task information.
user_sync_task (optional) – User synchronization task information.
external_program_task (optional) – External program task information.
time_zone (str, optional) – Time zone of the schema event.
daylight_saving_time (int, optional) – Daylight saving time offset.
start_date (datetime, optional) – Start date of the schema event.
expiration_date (datetime, optional) – Expiration date of the schema event.
schema_filter_description (list, optional) – Description of schema filters.
increment_description (str, optional) – Description of increments.
increment_option (int, optional) – Increment option.
operational (optional) – Operational status or configuration.
- Returns:
Detailed schema event representation.
- Return type:
dict
- qrs_api_client.models.schema_event_condensed(_id: UUID = None, privileges: list = None, name: str = None, enabled: bool = None, event_type: int = None, operational=None)[source]
Creates a condensed representation of a schema event.
- Parameters:
_id (uuid.UUID, optional) – Unique identifier of the schema event.
privileges (list, optional) – List of privileges.
name (str, optional) – Name of the schema event.
enabled (bool, optional) – Whether the schema event is enabled.
event_type (int, optional) – Type of the event.
operational (optional) – Operational status or configuration.
- Returns:
Condensed schema event representation.
- Return type:
dict
- qrs_api_client.models.tag_condensed(_id: UUID = None, privileges: list = None, name: str = None)[source]
Creates a dictionary representing a condensed tag.
- Parameters:
_id (uuid.UUID, optional) – The unique identifier for the tag.
privileges (list, optional) – A list of privileges associated with the tag.
name (str, optional) – The name of the tag.
- Returns:
A dictionary representing the tag.
- Return type:
dict