'Create a new DimensionDataModule.
Will fail if Apache libcloud is not present.
:param module: The underlying Ansible module.
:type module: AnsibleModule'

def __init__(self, module):

    self.module = module
    if (not HAS_LIBCLOUD):
        self.module.fail_json(msg='libcloud    is    required    for    this    module.')
        return
    credentials = self.get_credentials()
    self.user_id = credentials['user_id']
    self.key = credentials['key']
    region = self.module.params['region']
    self.region = 'dd-{}'.format(region)
    self.location = self.module.params['location']
    libcloud.security.VERIFY_SSL_CERT = self.module.params['validate_certs']
    self.driver = get_driver(Provider.DIMENSIONDATA)(self.user_id, self.key, region=self.region)
    self.mcp_version = self.get_mcp_version(self.location)
    if ('wait' in self.module.params):
        self.wait = self.module.params['wait']
        self.wait_time = self.module.params['wait_time']
        self.wait_poll_interval = self.module.params['wait_poll_interval']
    else:
        self.wait = False
        self.wait_time = 0
        self.wait_poll_interval = 0
