�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
Z
d d l m Z d d
l
m Z d d l j j Z d d l m Z e j � Z d e f d � � YZ d � Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust certifiedt supported_bys�
module: na_ontap_object_store
short_description: NetApp ONTAP manage object store config.
extends_documentation_fragment:
- netapp.na_ontap
version_added: '2.9'
author: NetApp Ansible Team (@carchi8py) <[email protected]>
description:
- Create or delete object store config on ONTAP.
options:
state:
description:
- Whether the specified object store config should exist or not.
choices: ['present', 'absent']
default: 'present'
type: str
name:
required: true
description:
- The name of the object store config to manage.
type: str
provider_type:
required: false
description:
- The name of the object store config provider.
type: str
server:
required: false
description:
- Fully qualified domain name of the object store config.
type: str
container:
required: false
description:
- Data bucket/container name used in S3 requests.
type: str
access_key:
required: false
description:
- Access key ID for AWS_S3 and SGWS provider types.
type: str
secret_password:
required: false
description:
- Secret access key for AWS_S3 and SGWS provider types.
type: str
s�
- name: object store Create
na_ontap_object_store:
state: present
name: ansible
provider_type: SGWS
server: abc
container: abc
access_key: s3.amazonaws.com
secret_password: abc
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
- name: object store Create
na_ontap_object_store:
state: absent
name: ansible
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
s
N( t
AnsibleModule( t to_native( t NetAppModulet NetAppOntapObjectStoreConfigc B` sD e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s% object initialize and class methods c C` sG t j � | _ | j j t d t d t d d � d t d t d d d g d d � d
t d t d d � d t d t d d � d t d t d d � d
t d t d d � d t d t d d d t � � � t d | j d t � | _ t � | _
| j
j | j j � | _
t t k r+| j j d d � n t j d | j � | _ d S( Nt namet requiredt typet strt statet choicest presentt absentt defaultt
provider_typet servert containert
access_keyt secret_passwordt no_logt
argument_spect supports_check_modet msgs( the python NetApp-Lib module is requiredt module( t netapp_utilst na_ontap_host_argument_specR t updatet dictt Truet FalseR R R
t na_helpert set_parameterst paramst
parameterst HAS_NETAPP_LIBt fail_jsont setup_na_ontap_zapiR ( t self( ( sX /usr/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_object_store.pyt __init__p s"