%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/pushover_notify.pyc

�
���^c@@s�dZddlmZmZmZddlZddlmZddl	m
Z
ddlZej
e�ZdZd�Zddddddddddd	�
ZdS(
u�
Module for sending messages to Pushover (https://www.pushover.net)

.. versionadded:: 2016.3.0

:configuration: This module can be used by either passing an api key and version
    directly or by specifying both in a configuration profile in the salt
    master/minion config.

    For example:

    .. code-block:: yaml

        pushover:
          token: abAHuZyCLtdH8P4zhmFZmgUHUsv1ei8
i(tabsolute_importtprint_functiontunicode_literalsN(t	urlencode(tSaltInvocationErrorupushovercC@stS(uZ
    Return virtual name of the module.

    :return: The virtual name of the module.
    (t__virtualname__(((s@/usr/lib/python2.7/site-packages/salt/modules/pushover_notify.pyt__virtual__$sic

C@s�|	s>tdd�p#tdd�}	|	s>td��q>n|s|tdd�patdd�}|s|td��q|n|s�td��ntjjj|||	�}
|
d	s�|
S|s�d
}nt�}||d<||d<|	|d
<||d<||d<||d<||d<||d<|rQtjjj||	�drQ||d<ntjjjdddddidd6dt	|�dt
�}|dr�tS|SdS(u|
    Send a message to a Pushover user or group.

    :param user:        The user or group to send to, must be key of user or group not email address.
    :param message:     The message to send to the PushOver user or group.
    :param title:       Specify who the message is from.
    :param priority:    The priority of the message, defaults to 0.
    :param expire:      The message should expire after N number of seconds.
    :param retry:       The number of times the message should be retried.
    :param sound:       The sound to associate with the message.
    :param api_version: The PushOver API version, if not specified in the configuration.
    :param token:       The PushOver token, if not specified in the configuration.
    :return:            Boolean if message was sent successfully.

    CLI Example:

    .. code-block:: bash

        salt '*' pushover.post_message user='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' title='Message from Salt' message='Build is done'

        salt '*' pushover.post_message user='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' title='Message from Salt' message='Build is done' priority='2' expire='720' retry='5'

    u
config.getupushover.tokenupushover:tokenuPushover token is unavailable.u
pushover.useru
pushover:useru!Pushover user key is unavailable.u(Required parameter "message" is missing.uresultuMessage from SaltStackuuserudeviceutokenutitleupriorityuexpireuretryumessageuresusoundtfunctiontmethoduPOSTtheader_dictu!application/x-www-form-urlencodeduContent-TypetdatatoptsN(t__salt__Rtsalttutilstpushovert
validate_usertdicttvalidate_soundtqueryt
_urlencodet__opts__tTrue(
tusertdevicetmessagettitletprioritytexpiretretrytsoundtapi_versionttokent
user_validatet
parameterstresult((s@/usr/lib/python2.7/site-packages/salt/modules/pushover_notify.pytpost_message-sH"
		







"

	
(t__doc__t
__future__RRRtloggingtsalt.ext.six.moves.urllib.parseRRtsalt.exceptionsRtsalt.utils.pushoverR
t	getLoggert__name__tlogRRtNoneR$(((s@/usr/lib/python2.7/site-packages/salt/modules/pushover_notify.pyt<module>s$		

Zerion Mini Shell 1.0