description:
                - The type of the volume group
            type: str
        volumes:
            description:
                - The volumes details of the volume group
            type: complex
            contains:
                id:
                    description:
                        - The system generated ID given to the volume
                         associated with the volume group
                    type: str
'''

LOG = utils.get_logger('dellemc_powerstore_volumegroup',
                       log_devel=logging.INFO)

py4ps_sdk = utils.has_pyu4ps_sdk()
HAS_PY4PS = py4ps_sdk['HAS_Py4PS']
IMPORT_ERROR = py4ps_sdk['Error_message']

py4ps_version = utils.py4ps_version_check()
IS_SUPPORTED_PY4PS_VERSION = py4ps_version['supported_version']
VERSION_ERROR = py4ps_version['unsupported_version_message']

# Application type
APPLICATION_TYPE = 'Ansible/1.1'


class PowerStoreVolumeGroup(object):
    """Class with Volume Group operations"""
Пример #2
0
            type: str
            sample: "Ok"
        state_l10n:
            description:
                - Localized message string corresponding to state.
            type: str
            sample: "Ok"
'''

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.storage.dell import \
    dellemc_ansible_powerstore_utils as utils
from PyPowerStore.utils.exception import PowerStoreException
import logging

LOG = utils.get_logger('dellemc_powerstore_quota', log_devel=logging.INFO)

py4ps_sdk = utils.has_pyu4ps_sdk()
HAS_PY4PS = py4ps_sdk['HAS_Py4PS']
IMPORT_ERROR = py4ps_sdk['Error_message']

py4ps_version = utils.py4ps_version_check()
IS_SUPPORTED_PY4PS_VERSION = py4ps_version['supported_version']
VERSION_ERROR = py4ps_version['unsupported_version_message']

# Application type
APPLICATION_TYPE = 'Ansible/1.1'


class PowerStoreQuota(object):
    """Class with Quota operations"""
Пример #3
0
                - The protection policies details of the snapshot rule
            type: complex
            contains:
                id:
                    description:
                        - The protection policy ID in which the snapshot rule
                         is selected
                    type: str
                name:
                    description:
                        - Name of the protection policy in which the snapshot
                         rule is selected
                    type: str
 '''

LOG = utils.get_logger('dellemc_powerstore_snapshotrule',
                       log_devel=logging.INFO)

py4ps_sdk = utils.has_pyu4ps_sdk()
HAS_PY4PS = py4ps_sdk['HAS_Py4PS']
IMPORT_ERROR = py4ps_sdk['Error_message']

py4ps_version = utils.py4ps_version_check()
IS_SUPPORTED_PY4PS_VERSION = py4ps_version['supported_version']
VERSION_ERROR = py4ps_version['unsupported_version_message']

# Application type
APPLICATION_TYPE = 'Ansible/1.1'


class PowerstoreSnapshotrule(object):
    """Snapshot Rule operations"""
        snapshot_rules:
            description:
                - The snapshot rules details of the protection policy
            type: complex
            contains:
                id:
                    description:
                        - The snapshot rule ID of the protection policy
                    type: str
                name:
                    description:
                        - The snapshot rule name of the protection policy
                    type: str
'''

LOG = utils.get_logger('dellemc_powerstore_protectionpolicy',
                       log_devel=logging.INFO)

py4ps_sdk = utils.has_pyu4ps_sdk()
HAS_PY4PS = py4ps_sdk['HAS_Py4PS']
IMPORT_ERROR = py4ps_sdk['Error_message']

py4ps_version = utils.py4ps_version_check()
IS_SUPPORTED_PY4PS_VERSION = py4ps_version['supported_version']
VERSION_ERROR = py4ps_version['unsupported_version_message']

# Application type
APPLICATION_TYPE = 'Ansible/1.1'


class PowerstoreProtectionpolicy(object):
    """Protectionpolicy operations"""
Пример #5
0
                - default soft limit period for a filesystem quota in byte
            type: int
        snapshots:
            description:
                - id and name of the snapshots of a filesystem
            type: list[dict]  
  
  '''

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.storage.dell import \
    dellemc_ansible_powerstore_utils as utils
from PyPowerStore.utils.exception import PowerStoreException
import logging

LOG = utils.get_logger('dellemc_powerstore_filesystem',
                       log_devel=logging.INFO)

py4ps_sdk = utils.has_pyu4ps_sdk()
HAS_PY4PS = py4ps_sdk['HAS_Py4PS']
IMPORT_ERROR = py4ps_sdk['Error_message']

py4ps_version = utils.py4ps_version_check()
IS_SUPPORTED_PY4PS_VERSION = py4ps_version['supported_version']
VERSION_ERROR = py4ps_version['unsupported_version_message']

# Application type
APPLICATION_TYPE = 'Ansible/1.1'


class PowerStoreFileSystem(object):
    """File System operations"""
Пример #6
0
            type: str
        file_systems:
            description:
                - This is the inverse of the resource type file_system
                  association.
            type: dict

  '''

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.storage.dell import \
    dellemc_ansible_powerstore_utils as utils
from PyPowerStore.utils.exception import PowerStoreException
import logging

LOG = utils.get_logger('dellemc_powerstore_nasserver', log_devel=logging.INFO)

py4ps_sdk = utils.has_pyu4ps_sdk()
HAS_PY4PS = py4ps_sdk['HAS_Py4PS']
IMPORT_ERROR = py4ps_sdk['Error_message']

py4ps_version = utils.py4ps_version_check()
IS_SUPPORTED_PY4PS_VERSION = py4ps_version['supported_version']
VERSION_ERROR = py4ps_version['unsupported_version_message']

# Application type
APPLICATION_TYPE = 'Ansible/1.1'


class PowerStoreNasServer(object):
    """NAS Server System operations"""
          type: str
        path:
          description: tree quota path
          type: str
    UserQuotas:
      description: details of all user quota
      type: list
      returned: when user_quota given in gather_subset
      contains:
        type: dict
        id:
          description: user quota id
          type: str
'''

LOG = utils.get_logger('dellemc_powerstore_gatherfacts',
                       log_devel=logging.INFO)

py4ps_sdk = utils.has_pyu4ps_sdk()
HAS_PY4PS = py4ps_sdk['HAS_Py4PS']
IMPORT_ERROR = py4ps_sdk['Error_message']

py4ps_version = utils.py4ps_version_check()
IS_SUPPORTED_PY4PS_VERSION = py4ps_version['supported_version']
VERSION_ERROR = py4ps_version['unsupported_version_message']

# Application type
APPLICATION_TYPE = 'Ansible/1.1'


class PowerstoreGatherFacts(object):
    """Gather Facts operations"""
Пример #8
0
                - Whether the share will be available continuously or not
            type: bool
            sample: false
        is_encryption_enabled:
            description: Whether encryption is enabled or not
            type: bool
            sample: false
'''
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.storage.dell import \
    dellemc_ansible_powerstore_utils as utils
from PyPowerStore.utils.exception import PowerStoreException
import logging
from uuid import UUID

LOG = utils.get_logger('dellemc_powerstore_smbshare', log_devel=logging.INFO)

py4ps_sdk = utils.has_pyu4ps_sdk()
HAS_PY4PS = py4ps_sdk['HAS_Py4PS']
IMPORT_ERROR = py4ps_sdk['Error_message']

py4ps_version = utils.py4ps_version_check()
IS_SUPPORTED_PY4PS_VERSION = py4ps_version['supported_version']
VERSION_ERROR = py4ps_version['unsupported_version_message']

# Application type
APPLICATION_TYPE = 'Ansible/1.1'


class PowerStoreSMBShare(object):
    """Class with SMB Share operations"""