cleaning up class names in azure_rm_mysql* (#53260)

This commit is contained in:
Zim Kalinowski 2019-03-05 13:55:51 +08:00 committed by Yunge Zhu
parent d39f35c1d6
commit bdfa99af9f
8 changed files with 32 additions and 32 deletions

View file

@ -90,7 +90,7 @@ class Actions:
NoAction, Create, Update, Delete = range(4)
class AzureRMConfigurations(AzureRMModuleBase):
class AzureRMMySqlConfiguration(AzureRMModuleBase):
def __init__(self):
self.module_arg_spec = dict(
@ -125,9 +125,9 @@ class AzureRMConfigurations(AzureRMModuleBase):
self.state = None
self.to_do = Actions.NoAction
super(AzureRMConfigurations, self).__init__(derived_arg_spec=self.module_arg_spec,
supports_check_mode=True,
supports_tags=False)
super(AzureRMMySqlConfiguration, self).__init__(derived_arg_spec=self.module_arg_spec,
supports_check_mode=True,
supports_tags=False)
def exec_module(self, **kwargs):
@ -234,7 +234,7 @@ class AzureRMConfigurations(AzureRMModuleBase):
def main():
"""Main execution"""
AzureRMConfigurations()
AzureRMMySqlConfiguration()
if __name__ == '__main__':

View file

@ -106,7 +106,7 @@ except ImportError:
pass
class AzureRMMySQLConfigurationFacts(AzureRMModuleBase):
class AzureRMMySqlConfigurationFacts(AzureRMModuleBase):
def __init__(self):
# define user inputs into argument
self.module_arg_spec = dict(
@ -131,7 +131,7 @@ class AzureRMMySQLConfigurationFacts(AzureRMModuleBase):
self.resource_group = None
self.server_name = None
self.name = None
super(AzureRMMySQLConfigurationFacts, self).__init__(self.module_arg_spec, supports_tags=False)
super(AzureRMMySqlConfigurationFacts, self).__init__(self.module_arg_spec, supports_tags=False)
def exec_module(self, **kwargs):
for key in self.module_arg_spec:
@ -202,7 +202,7 @@ class AzureRMMySQLConfigurationFacts(AzureRMModuleBase):
def main():
AzureRMMySQLConfigurationFacts()
AzureRMMySqlConfigurationFacts()
if __name__ == '__main__':

View file

@ -108,7 +108,7 @@ class Actions:
NoAction, Create, Update, Delete = range(4)
class AzureRMDatabases(AzureRMModuleBase):
class AzureRMMySqlDatabase(AzureRMModuleBase):
"""Configuration class for an Azure RM MySQL Database resource"""
def __init__(self):
@ -153,9 +153,9 @@ class AzureRMDatabases(AzureRMModuleBase):
self.state = None
self.to_do = Actions.NoAction
super(AzureRMDatabases, self).__init__(derived_arg_spec=self.module_arg_spec,
supports_check_mode=True,
supports_tags=False)
super(AzureRMMySqlDatabase, 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"""
@ -299,7 +299,7 @@ class AzureRMDatabases(AzureRMModuleBase):
def main():
"""Main execution"""
AzureRMDatabases()
AzureRMMySqlDatabase()
if __name__ == '__main__':

View file

@ -111,7 +111,7 @@ except ImportError:
pass
class AzureRMDatabasesFacts(AzureRMModuleBase):
class AzureRMMySqlDatabaseFacts(AzureRMModuleBase):
def __init__(self):
# define user inputs into argument
self.module_arg_spec = dict(
@ -134,7 +134,7 @@ class AzureRMDatabasesFacts(AzureRMModuleBase):
self.resource_group = None
self.server_name = None
self.name = None
super(AzureRMDatabasesFacts, self).__init__(self.module_arg_spec, supports_tags=False)
super(AzureRMMySqlDatabaseFacts, self).__init__(self.module_arg_spec, supports_tags=False)
def exec_module(self, **kwargs):
for key in self.module_arg_spec:
@ -194,7 +194,7 @@ class AzureRMDatabasesFacts(AzureRMModuleBase):
def main():
AzureRMDatabasesFacts()
AzureRMMySqlDatabaseFacts()
if __name__ == '__main__':

View file

@ -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__':

View file

@ -106,7 +106,7 @@ except ImportError:
pass
class AzureRMMySQLFirewallRulesFacts(AzureRMModuleBase):
class AzureRMMySqlFirewallRuleFacts(AzureRMModuleBase):
def __init__(self):
# define user inputs into argument
self.module_arg_spec = dict(
@ -130,7 +130,7 @@ class AzureRMMySQLFirewallRulesFacts(AzureRMModuleBase):
self.resource_group = None
self.server_name = None
self.name = None
super(AzureRMMySQLFirewallRulesFacts, self).__init__(self.module_arg_spec, supports_tags=False)
super(AzureRMMySqlFirewallRuleFacts, self).__init__(self.module_arg_spec, supports_tags=False)
def exec_module(self, **kwargs):
for key in self.module_arg_spec:
@ -190,7 +190,7 @@ class AzureRMMySQLFirewallRulesFacts(AzureRMModuleBase):
def main():
AzureRMMySQLFirewallRulesFacts()
AzureRMMySqlFirewallRuleFacts()
if __name__ == '__main__':

View file

@ -149,7 +149,7 @@ class Actions:
NoAction, Create, Update, Delete = range(4)
class AzureRMServers(AzureRMModuleBase):
class AzureRMMySqlServers(AzureRMModuleBase):
"""Configuration class for an Azure RM MySQL Server resource"""
def __init__(self):
@ -206,9 +206,9 @@ class AzureRMServers(AzureRMModuleBase):
self.state = None
self.to_do = Actions.NoAction
super(AzureRMServers, self).__init__(derived_arg_spec=self.module_arg_spec,
supports_check_mode=True,
supports_tags=True)
super(AzureRMMySqlServers, self).__init__(derived_arg_spec=self.module_arg_spec,
supports_check_mode=True,
supports_tags=True)
def exec_module(self, **kwargs):
"""Main module execution method"""
@ -374,7 +374,7 @@ class AzureRMServers(AzureRMModuleBase):
def main():
"""Main execution"""
AzureRMServers()
AzureRMMySqlServers()
if __name__ == '__main__':

View file

@ -159,7 +159,7 @@ except ImportError:
pass
class AzureRMServersFacts(AzureRMModuleBase):
class AzureRMMySqlServerFacts(AzureRMModuleBase):
def __init__(self):
# define user inputs into argument
self.module_arg_spec = dict(
@ -181,7 +181,7 @@ class AzureRMServersFacts(AzureRMModuleBase):
self.resource_group = None
self.name = None
self.tags = None
super(AzureRMServersFacts, self).__init__(self.module_arg_spec, supports_tags=False)
super(AzureRMMySqlServerFacts, self).__init__(self.module_arg_spec, supports_tags=False)
def exec_module(self, **kwargs):
for key in self.module_arg_spec:
@ -246,7 +246,7 @@ class AzureRMServersFacts(AzureRMModuleBase):
def main():
AzureRMServersFacts()
AzureRMMySqlServerFacts()
if __name__ == '__main__':