Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/aci/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys�
---
module: mso_schema
short_description: Manage schemas
description:
- Manage schemas on Cisco ACI Multi-Site.
author:
- Dag Wieers (@dagwieers)
version_added: '2.8'
options:
  schema:
    description:
    - The name of the schema.
    type: str
    required: yes
    aliases: [ name ]
  templates:
    description:
    - A list of templates for this schema.
    type: list
  sites:
    description:
    - A list of sites mapped to templates in this schema.
    type: list
  state:
    description:
    - Use C(present) or C(absent) for adding or removing.
    - Use C(query) for listing an object or multiple objects.
    type: str
    choices: [ absent, present, query ]
    default: present
notes:
- Due to restrictions of the MSO REST API this module cannot create empty schemas (i.e. schemas without templates).
  Use the M(mso_schema_template) to automatically create schemas with templates.
seealso:
- module: mso_schema_site
- module: mso_schema_template
extends_documentation_fragment: mso
s�
- name: Add a new schema
  mso_schema:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    state: present
    templates:
    - name: Template1
      displayName: Template 1
      tenantId: north_europe
      anps:
        <...>
    - name: Template2
      displayName: Template 2
      tenantId: nort_europe
      anps:
        <...>
  delegate_to: localhost

- name: Remove schemas
  mso_schema:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    state: absent
  delegate_to: localhost

- name: Query a schema
  mso_schema:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    schema: Schema 1
    state: query
  delegate_to: localhost
  register: query_result

- name: Query all schemas
  mso_schema:
    host: mso_host
    username: admin
    password: SomeSecretPassword
    state: query
  delegate_to: localhost
  register: query_result
t
(t
AnsibleModule(t	MSOModuletmso_argument_spectissubsetc
C`s�t�}|jdtddddg�dtdd�dtdd�d	tddd
ddd
ddg��td|dtdd	d
dggd	dddggg�}|jd}|jd}|jd}|jd	}t|�}d}d}|rA|j|d|�|_	|j	rS|j	d}dj
d|�}qSn|j|�|_	|dkrbn9|d
kr�|j	|_|j	r�|j
r�i|_	q�|j|dd�|_	q�n�|dkr�|j	|_td|d|d|d|�}	|j|	dt�|j	r_t|j|j	�s�|j
r8|j|_	q\|j|ddd|j�|_	q�q�|j
rw|j|_	q�|j|ddd|j�|_	n|j�dS(Ntschemattypetstrtaliasestnamet	templatestlisttsiteststatetdefaulttpresenttchoicestabsenttqueryt
argument_spectsupports_check_modetrequired_iftschemastdisplayNametidsschemas/{id}tmethodtDELETEtcollatetPUTtdatatPOST(RtupdatetdictR	tTruetparamsR
tNonetget_objtexistingtformatt
query_objstprevioust
check_modetrequesttsanitizeRtsenttproposedt	exit_json(
RtmoduleR
RRRtmsot	schema_idtpathtpayload((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema.pytmainosb		%



	
					'	$t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicR	t$ansible.module_utils.network.aci.msoR
RRR<t__name__(((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/aci/mso_schema.pyt<module>s


(2	P

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