airflow.providers.slack.utils

Package Contents

Classes

ConnectionExtraConfig

Helper class for rom Connection Extra.

class airflow.providers.slack.utils.ConnectionExtraConfig(conn_type, conn_id=None, extra=None)[source]

Helper class for rom Connection Extra.

Parameters
  • conn_type (str) – Hook connection type.

  • conn_id (str | None) – Connection ID uses for appropriate error messages.

  • extra (dict[str, Any] | None) – Connection extra dictionary.

get(field, default=NOTSET)[source]

Get specified field from Connection Extra.

Parameters
  • field – Connection extra field name.

  • default (Any) – If specified then use as default value if field not present in Connection Extra.

getint(field, default=NOTSET)[source]

Get specified field from Connection Extra and evaluate as integer.

Parameters
  • field – Connection extra field name.

  • default (Any) – If specified then use as default value if field not present in Connection Extra.

Was this entry helpful?