Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/exo_dns_domain.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZd
e
fd��YZd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: exo_dns_domain
short_description: Manages domain records on Exoscale DNS API.
description:
    - Create and remove domain records.
version_added: "2.2"
author: "René Moser (@resmo)"
options:
  name:
    description:
      - Name of the record.
    required: true
    type: str
  state:
    description:
      - State of the resource.
    default: present
    choices: [ present, absent ]
    type: str
extends_documentation_fragment: exoscale
s�
- name: Create a domain
  exo_dns_domain:
    name: example.com

- name: Remove a domain
  exo_dns_domain:
    name: example.com
    state: absent
s

---
exo_dns_domain:
    description: API domain results
    returned: success
    type: complex
    contains:
        account_id:
            description: Your account ID
            returned: success
            type: int
            sample: 34569
        auto_renew:
            description: Whether domain is auto renewed or not
            returned: success
            type: bool
            sample: false
        created_at:
            description: When the domain was created
            returned: success
            type: str
            sample: "2016-08-12T15:24:23.989Z"
        expires_on:
            description: When the domain expires
            returned: success
            type: str
            sample: "2016-08-12T15:24:23.989Z"
        id:
            description: ID of the domain
            returned: success
            type: int
            sample: "2016-08-12T15:24:23.989Z"
        lockable:
            description: Whether the domain is lockable or not
            returned: success
            type: bool
            sample: true
        name:
            description: Domain name
            returned: success
            type: str
            sample: example.com
        record_count:
            description: Number of records related to this domain
            returned: success
            type: int
            sample: 5
        registrant_id:
            description: ID of the registrant
            returned: success
            type: int
            sample: null
        service_count:
            description: Number of services
            returned: success
            type: int
            sample: 0
        state:
            description: State of the domain
            returned: success
            type: str
            sample: "hosted"
        token:
            description: Token
            returned: success
            type: str
            sample: "r4NzTRp6opIeFKfaFYvOd6MlhGyD07jl"
        unicode_name:
            description: Domain name as unicode
            returned: success
            type: str
            sample: "example.com"
        updated_at:
            description: When the domain was updated last.
            returned: success
            type: str
            sample: "2016-08-12T15:24:23.989Z"
        user_id:
            description: ID of the user
            returned: success
            type: int
            sample: null
        whois_protected:
            description: Whether the whois is protected or not
            returned: success
            type: bool
            sample: false
(t
AnsibleModule(tExoDnstexo_dns_argument_spectexo_dns_required_togethertExoDnsDomaincB`s5eZd�Zd�Zd�Zd�Zd�ZRS(cC`s8tt|�j|�|jjjd�j�|_dS(Ntname(tsuperRt__init__tmoduletparamstgettlowerR
(tselfR((sU/usr/lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/exo_dns_domain.pyR�scC`sH|jdd�}x/|D]'}|ddj�|jkr|SqWdS(Ns/domainstGETtdomainR
(t	api_queryRR
tNone(Rtdomainstz((sU/usr/lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/exo_dns_domain.pyt
get_domain�s

cC`sv|j�}ii|jd6d6}|sr|d|jdd<t|jd<|jjsr|jdd|�}qrn|S(NR
Rtdifftaftertchangeds/domainstPOST(RR
tresulttTrueRt
check_modeR(RRtdata((sU/usr/lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/exo_dns_domain.pytpresent_domain�s
cC`sb|j�}|r^||jdd<t|jd<|jjs^|jd|ddd�q^n|S(NRtbeforeRs/domains/%sRR
tDELETE(RR R!RR"R(RR((sU/usr/lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/exo_dns_domain.pyt
absent_domain�s
"cC`s!|r|d|jd<n|jS(NRtexo_dns_domain(R (Rtresource((sU/usr/lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/exo_dns_domain.pyt
get_result�s(t__name__t
__module__RRR$R'R*(((sU/usr/lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/exo_dns_domain.pyR�s
					cC`s�t�}|jtdtdddt�dtdddddgd	d���td
|dt�dt�}t|�}|jjd�dkr�|j	�}n|j
�}|j|�}|j|�dS(
NR
ttypetstrtrequiredtstatetchoicestpresenttabsenttdefaultt
argument_spectrequired_togethertsupports_check_mode(
R
tupdatetdictR!RRRRRR$R'R*t	exit_json(R5RR(R)R ((sU/usr/lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/exo_dns_domain.pytmain�s	%		t__main__N(t
__future__RRRR-t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRtansible.module_utils.exoscaleR	R
RRR;R+(((sU/usr/lib/python2.7/site-packages/ansible/modules/net_tools/exoscale/exo_dns_domain.pyt<module>s


Y*	

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]