|
|
|
@ -93,7 +93,7 @@ class Actions:
|
|
|
|
|
NoAction, Create, Update, Delete = range(4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AzureRMFirewallRules(AzureRMModuleBase):
|
|
|
|
|
class AzureRMMySqlFirewallRule(AzureRMModuleBase):
|
|
|
|
|
"""Configuration class for an Azure RM MySQL firewall rule resource"""
|
|
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
@ -133,9 +133,9 @@ class AzureRMFirewallRules(AzureRMModuleBase):
|
|
|
|
|
self.state = None
|
|
|
|
|
self.to_do = Actions.NoAction
|
|
|
|
|
|
|
|
|
|
super(AzureRMFirewallRules, self).__init__(derived_arg_spec=self.module_arg_spec,
|
|
|
|
|
supports_check_mode=True,
|
|
|
|
|
supports_tags=False)
|
|
|
|
|
super(AzureRMMySqlFirewallRule, self).__init__(derived_arg_spec=self.module_arg_spec,
|
|
|
|
|
supports_check_mode=True,
|
|
|
|
|
supports_tags=False)
|
|
|
|
|
|
|
|
|
|
def exec_module(self, **kwargs):
|
|
|
|
|
"""Main module execution method"""
|
|
|
|
@ -268,7 +268,7 @@ class AzureRMFirewallRules(AzureRMModuleBase):
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
"""Main execution"""
|
|
|
|
|
AzureRMFirewallRules()
|
|
|
|
|
AzureRMMySqlFirewallRule()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
|