AdminUserPropertyData
- class q2_sdk.hq.db.admin_user_property_data.AdminUserPropertyDataRow[source]
Bases:
RepresentationRowBase
-
UserPropertyDataID:
IntElement
= 'UserPropertyDataID'
-
UISourceID:
IntElement
= 'UISourceID'
-
GroupID:
IntElement
= 'GroupID'
-
UserID:
IntElement
= 'UserID'
-
PropertyID:
IntElement
= 'PropertyID'
-
PropertyValue:
StringElement
= 'PropertyValue'
-
PropertyLongName:
StringElement
= 'PropertyLongName'
-
PropertyName:
StringElement
= 'PropertyName'
-
PropertyDataType:
StringElement
= 'PropertyDataType'
-
Weight:
IntElement
= 'Weight'
-
IsGroupProperty:
bool
= 'IsGroupProperty'
-
IsUserProperty:
bool
= 'IsUserProperty'
-
UserPropertyDataID:
- class q2_sdk.hq.db.admin_user_property_data.AdminGroupPropertyRow[source]
Bases:
RepresentationRowBase
-
UserPropertyDataID:
IntElement
= 'UserPropertyDataID'
-
GroupID:
IntElement
= 'GroupID'
-
PropertyID:
IntElement
= 'PropertyID'
-
PropertyValue:
StringElement
= 'PropertyValue'
-
PropertyName:
StringElement
= 'PropertyName'
-
PropertyLongName:
StringElement
= 'PropertyLongName'
-
UserPropertyDataID:
- class q2_sdk.hq.db.admin_user_property_data.AdminUserPropertyData(logger, hq_credentials=None, ret_table_obj=None)[source]
Bases:
DbObject
Programmatic access to the Q2 database. Not as flexible as a true ORM, but takes the guesswork out of database schemas and ensures safety in the transactions.
- Parameters:
logger – Reference to calling request’s logger (self.logger in your extension)
hq_credentials (
Optional
[HqCredentials
]) – HQ Connectivity Information (Defaults to settings file)ret_table_obj (
Optional
[bool
]) – Flag to return list of LXML elements ifFalse
or TableRow objects from DB calls ifTrue
(Defaults to settings file)
- REPRESENTATION_ROW_CLASS
alias of
AdminUserPropertyDataRow
- async get(property_name, user_id=None, group_id=None, fi_id=None, ui_source=None, return_count=10, strict=True, no_trunc=False, serialize_for_cli=False)[source]
- Return type:
list
[AdminUserPropertyDataRow
]
- async get_by_value(property_value, admin_user_property_name, no_trunc=False, serialize_for_cli=False)[source]
- Return type:
list
[AdminUserPropertyDataRow
]
- async get_all_group_properties(target_group_id=None, include_default_value_rows=True, page_number=1, page_size=200, serialize_for_cli=True)[source]
Gets values from the Q2_AdminUserPropertyData table for properties marked as group properties
- Parameters:
target_group_id (
Optional
[int
]) – Optional parameter to return only properties for a specific groupinclude_default_value_rows (
bool
) – default value rows hold property values that are used if a group does not have a row for a property. These rows will not have GroupID values returned (NULL in the database)page_number (
int
) – the starting point for pagination.page_size (
int
) – the number of rows to return per pageserialize_for_cli – flag for calling from the cli
- Return type:
list
[AdminGroupPropertyRow
]
- async create(property_name, property_value, user_id=None, group_id=None, fi_id=None, ui_source=None)[source]