Exemple #1
0
    def __init__(self):
        """
        Create a new Dimension Data network module.
        """

        super(DimensionDataNetworkModule, self).__init__(module=AnsibleModule(
            argument_spec=DimensionDataModule.argument_spec_with_wait(
                name=dict(type='str', required=True),
                description=dict(type='str', required=False),
                service_plan=dict(default='ESSENTIALS',
                                  choices=['ADVANCED', 'ESSENTIALS']),
                state=dict(default='present', choices=['present', 'absent'])),
            required_together=DimensionDataModule.required_together()))

        self.name = self.module.params['name']
        self.description = self.module.params['description']
        self.service_plan = self.module.params['service_plan']
        self.state = self.module.params['state']