Mfa
- class q2_sdk.hq.db.mfa.MfaProviderRow[source]
Bases:
RepresentationRowBase
-
MFAProviderID:
IntElement
= 'MFAProviderID'
-
ShortName:
StringElement
= 'ShortName'
-
RegistrationRequired:
BoolElement
= 'RegistrationRequired'
-
WedgeAddressID:
IntElement
= 'WedgeAddressID'
-
TokenLifetimeInMinutes:
IntElement
= 'TokenLifetimeInMinutes'
-
MFAProviderID:
- class q2_sdk.hq.db.mfa.MfaRegistrationRow[source]
Bases:
RepresentationRowBase
-
MFARegistrationID:
IntElement
= 'MFARegistrationID'
-
MFAProviderID:
IntElement
= 'MFAProviderID'
-
UserID:
IntElement
= 'UserID'
-
RegistrationValue:
StringElement
= 'RegistrationValue'
-
CreateDate:
StringElement
= 'CreateDate'
-
UpdatedDate:
StringElement
= 'UpdatedDate'
-
DeletedDate:
StringElement
= 'DeletedDate'
-
MFARegistrationID:
- class q2_sdk.hq.db.mfa.MfaGroupProfileRow[source]
Bases:
RepresentationRowBase
-
MFAGroupProfileID:
IntElement
= 'MFAGroupProfileID'
-
Description:
StringElement
= 'Description'
-
AuthProviderID:
IntElement
= 'AuthProviderID'
-
AuthProviderShortName:
StringElement
= 'AuthProviderShortName'
-
TranAuthProviderID:
IntElement
= 'TranAuthProviderID'
-
TranAuthProviderShortName:
StringElement
= 'TranAuthProviderShortName'
-
EDVPatrolProviderID:
IntElement
= 'EDVPatrolProviderID'
-
EDVPatrolProviderShortName:
StringElement
= 'EDVPatrolProviderShortName'
-
MFAGroupProfileID:
- class q2_sdk.hq.db.mfa.GroupToMfaGroupProfileRow[source]
Bases:
RepresentationRowBase
-
MFAGroupProfileID:
IntElement
= 'GroupToMfaGroupProfileID'
-
ProfileDescription:
StringElement
= 'ProfileDescription'
-
GroupID:
IntElement
= 'GroupID'
-
MFAGroupProfileID:
- class q2_sdk.hq.db.mfa.Mfa(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)
- NAME = 'Mfa'
- async get_group_to_mfa_group_profile_for_profile(profile_id, serialize_for_cli=False)[source]
- Return type:
- async get_providers(serialize_for_cli=False, short_name=None)[source]
- Return type:
List
[MfaProviderRow
]
- async get_mfa_group_profiles(serialize_for_cli=False)[source]
- Return type:
List
[MfaGroupProfileRow
]
- async get_mfa_group_profiles_for_provider(provider_name, serialize_for_cli=False)[source]
- Return type:
List
[MfaGroupProfileRow
]
- async get_registrations(serialize_for_cli=False)[source]
- Return type:
List
[MfaRegistrationRow
]
- async get_registrations_for_provider(provider_name, serialize_for_cli=False)[source]
- Return type:
List
[MfaRegistrationRow
]
- async add_provider(short_name, wedge_address_short_name, registration_required, token_lifetime_in_minutes=5)[source]
- Return type:
bool