GetAlertTypeDetailIds module

Get the alert type detail ids necessary to CreateAlertByDate

Sample response (may differ slightly in your environment)

<Q2API HqVersion="4.2.3.4215A" HqAssemblyVersion="4.2.6185.31252" ServerDateTime="2018-07-02T15:27:39.4033576-05:00">
  <Result>
    <ErrorCode ErrorType="Success">0</ErrorCode>
    <ErrorDescription/>
    <HydraErrorReturnCode>0</HydraErrorReturnCode>
  </Result>
  <Data>
    <DalAlertDateType>
      <Q2_AlertDateType>
        <AlertDateTypeID>1</AlertDateTypeID>
        <TextDescription>Birthday</TextDescription>
        <VoiceFile>Birthday.wav</VoiceFile>
        <ShortName>Birthday</ShortName>
      </Q2_AlertDateType>
    </DalAlertDateType>
  </Data>
</Q2API>
class q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.ParamsObj(logger, hq_credentials=None)[source]

Bases: Q2ApiParamsObj

Parameters definition for GetAlertTypeDetailIds

Parameters:
  • logger (TypeAliasType) – Reference to calling request’s logger (self.logger in your extension)

  • hq_credentials (Optional[HqCredentials]) – Defaults to settings.HQ_CREDENTIALS

class q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.Q2_AlertDateType(AlertDateTypeID, ShortName, TextDescription, VoiceFile)[source]

Bases: object

Q2_AlertDateType(AlertDateTypeID: lxml.objectify.IntElement, ShortName: lxml.objectify.StringElement, TextDescription: lxml.objectify.StringElement, VoiceFile: lxml.objectify.StringElement)

AlertDateTypeID: IntElement
ShortName: StringElement
TextDescription: StringElement
VoiceFile: StringElement
class q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.DalAlertDateType(Q2_AlertDateType)[source]

Bases: object

DalAlertDateType(Q2_AlertDateType: Union[q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.Q2_AlertDateType, List[q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.Q2_AlertDateType]])

Q2_AlertDateType: Union[Q2_AlertDateType, List[Q2_AlertDateType]]
class q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.Data(DalAlertDateType)[source]

Bases: object

Data(DalAlertDateType: Union[q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.DalAlertDateType, List[q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.DalAlertDateType]])

DalAlertDateType: Union[DalAlertDateType, List[DalAlertDateType]]
class q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.ResultNode[source]

Bases: object

class q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.HqResponse(raw_response)[source]

Bases: HqResponse

Parameters:

response – Body of HQ response

async q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.execute(params_obj, use_json=False, **kwargs)[source]

This is the default way to submit the request to HQ. In theory, both json and soap payloads are equally accepted by HQ, though several variables may affect that (HQ version, Q2SDK implementation bugs, etc). This should not affect anything about the way your code deals with the data. In fact, the only difference to consuming extensions is the logging. Basically, call this with default parameters unless you find a compelling reason not to.

Parameters:
  • params_obj (ParamsObj) – Object containing everything necessary to call this HQ endpoint

  • use_json – If True, will call HQ’s .ashx (json) endpoint instead of .asmx (soap)

Return type:

HqResponse

async q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.get_soap(params_obj, **kwargs)[source]

Deprecated. Please use execute instead

Return type:

HqResponse

async q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.get_json(params_obj, **kwargs)[source]

Deprecated. Please use execute instead

Return type:

HqResponse

q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.build_json(params_obj)[source]
q2_sdk.hq.hq_api.q2_api.GetAlertTypeDetailIds.build_soap(params_obj)[source]