cleaning up azure_rm_sql* class names (#53261)
This commit is contained in:
parent
66beeaf032
commit
8ef75a1901
5 changed files with 21 additions and 21 deletions
|
@ -211,7 +211,7 @@ class Actions:
|
||||||
NoAction, Create, Update, Delete = range(4)
|
NoAction, Create, Update, Delete = range(4)
|
||||||
|
|
||||||
|
|
||||||
class AzureRMDatabases(AzureRMModuleBase):
|
class AzureRMSqlDatabase(AzureRMModuleBase):
|
||||||
"""Configuration class for an Azure RM SQL Database resource"""
|
"""Configuration class for an Azure RM SQL Database resource"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -308,9 +308,9 @@ class AzureRMDatabases(AzureRMModuleBase):
|
||||||
self.state = None
|
self.state = None
|
||||||
self.to_do = Actions.NoAction
|
self.to_do = Actions.NoAction
|
||||||
|
|
||||||
super(AzureRMDatabases, self).__init__(derived_arg_spec=self.module_arg_spec,
|
super(AzureRMSqlDatabase, self).__init__(derived_arg_spec=self.module_arg_spec,
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
supports_tags=True)
|
supports_tags=True)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
"""Main module execution method"""
|
"""Main module execution method"""
|
||||||
|
@ -495,7 +495,7 @@ def _snake_to_camel(snake, capitalize_first=False):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main execution"""
|
"""Main execution"""
|
||||||
AzureRMDatabases()
|
AzureRMSqlDatabase()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -94,7 +94,7 @@ class Actions:
|
||||||
NoAction, Create, Update, Delete = range(4)
|
NoAction, Create, Update, Delete = range(4)
|
||||||
|
|
||||||
|
|
||||||
class AzureRMFirewallRules(AzureRMModuleBase):
|
class AzureRMSqlFirewallRule(AzureRMModuleBase):
|
||||||
"""Configuration class for an Azure RM Firewall Rule resource"""
|
"""Configuration class for an Azure RM Firewall Rule resource"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -134,9 +134,9 @@ class AzureRMFirewallRules(AzureRMModuleBase):
|
||||||
self.state = None
|
self.state = None
|
||||||
self.to_do = Actions.NoAction
|
self.to_do = Actions.NoAction
|
||||||
|
|
||||||
super(AzureRMFirewallRules, self).__init__(derived_arg_spec=self.module_arg_spec,
|
super(AzureRMSqlFirewallRule, self).__init__(derived_arg_spec=self.module_arg_spec,
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
supports_tags=False)
|
supports_tags=False)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
"""Main module execution method"""
|
"""Main module execution method"""
|
||||||
|
@ -265,7 +265,7 @@ class AzureRMFirewallRules(AzureRMModuleBase):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main execution"""
|
"""Main execution"""
|
||||||
AzureRMFirewallRules()
|
AzureRMSqlFirewallRule()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -112,7 +112,7 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class AzureRMFirewallRulesFacts(AzureRMModuleBase):
|
class AzureRMSqlFirewallRuleFacts(AzureRMModuleBase):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# define user inputs into argument
|
# define user inputs into argument
|
||||||
self.module_arg_spec = dict(
|
self.module_arg_spec = dict(
|
||||||
|
@ -135,7 +135,7 @@ class AzureRMFirewallRulesFacts(AzureRMModuleBase):
|
||||||
self.resource_group = None
|
self.resource_group = None
|
||||||
self.server_name = None
|
self.server_name = None
|
||||||
self.name = None
|
self.name = None
|
||||||
super(AzureRMFirewallRulesFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
super(AzureRMSqlFirewallRuleFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
|
@ -203,7 +203,7 @@ class AzureRMFirewallRulesFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMFirewallRulesFacts()
|
AzureRMSqlFirewallRuleFacts()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -118,7 +118,7 @@ class Actions:
|
||||||
NoAction, Create, Update, Delete = range(4)
|
NoAction, Create, Update, Delete = range(4)
|
||||||
|
|
||||||
|
|
||||||
class AzureRMServers(AzureRMModuleBase):
|
class AzureRMSqlServer(AzureRMModuleBase):
|
||||||
"""Configuration class for an Azure RM SQL Server resource"""
|
"""Configuration class for an Azure RM SQL Server resource"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -163,9 +163,9 @@ class AzureRMServers(AzureRMModuleBase):
|
||||||
self.state = None
|
self.state = None
|
||||||
self.to_do = Actions.NoAction
|
self.to_do = Actions.NoAction
|
||||||
|
|
||||||
super(AzureRMServers, self).__init__(derived_arg_spec=self.module_arg_spec,
|
super(AzureRMSqlServer, self).__init__(derived_arg_spec=self.module_arg_spec,
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
supports_tags=True)
|
supports_tags=True)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
"""Main module execution method"""
|
"""Main module execution method"""
|
||||||
|
@ -314,7 +314,7 @@ class AzureRMServers(AzureRMModuleBase):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
"""Main execution"""
|
"""Main execution"""
|
||||||
AzureRMServers()
|
AzureRMSqlServer()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -121,7 +121,7 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class AzureRMServersFacts(AzureRMModuleBase):
|
class AzureRMSqlServerFacts(AzureRMModuleBase):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# define user inputs into argument
|
# define user inputs into argument
|
||||||
self.module_arg_spec = dict(
|
self.module_arg_spec = dict(
|
||||||
|
@ -140,7 +140,7 @@ class AzureRMServersFacts(AzureRMModuleBase):
|
||||||
)
|
)
|
||||||
self.resource_group = None
|
self.resource_group = None
|
||||||
self.server_name = None
|
self.server_name = None
|
||||||
super(AzureRMServersFacts, self).__init__(self.module_arg_spec)
|
super(AzureRMSqlServerFacts, self).__init__(self.module_arg_spec)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
|
@ -195,7 +195,7 @@ class AzureRMServersFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMServersFacts()
|
AzureRMSqlServerFacts()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue