Rename dtl and db _facts --> _info (#61496)
* rename modules * created links * fixed sanity * removed unnecessary ignore rules * added depreciation warning * update ignore.txt to match * removed unnecessary ignore rules * update ignore.txt to match * make ignore.txt same as in devel * cr * additional sanity
This commit is contained in:
parent
d92e2a6b0e
commit
35c76ae0d3
45 changed files with 335 additions and 170 deletions
1
lib/ansible/modules/cloud/azure/_azure_rm_devtestlab_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_devtestlab_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlab_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlabarmtemplate_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlabartifact_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlabartifactsource_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlabcustomimage_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlabenvironment_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlabpolicy_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlabschedule_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlabvirtualmachine_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_devtestlabvirtualnetwork_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_mariadbconfiguration_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_mariadbdatabase_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_mariadbfirewallrule_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_mariadbserver_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_mariadbserver_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
azure_rm_mariadbserver_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_mysqlconfiguration_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_mysqldatabase_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_mysqldatabase_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
azure_rm_mysqldatabase_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_mysqlfirewallrule_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_mysqlserver_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_mysqlserver_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
azure_rm_mysqlserver_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_postgresqlconfiguration_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_postgresqldatabase_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_postgresqlfirewallrule_info.py
|
|
@ -0,0 +1 @@
|
|||
azure_rm_postgresqlserver_info.py
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlab_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlab_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure DevTest Lab facts
|
||||
description:
|
||||
- Get facts of Azure DevTest Lab.
|
||||
|
@ -25,12 +25,15 @@ options:
|
|||
resource_group:
|
||||
description:
|
||||
- The name of the resource group.
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the lab.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -41,14 +44,14 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: List instances of DevTest Lab by resource group
|
||||
azure_rm_devtestlab_facts:
|
||||
azure_rm_devtestlab_info:
|
||||
resource_group: testrg
|
||||
|
||||
- name: List instances of DevTest Lab in subscription
|
||||
azure_rm_devtestlab_facts:
|
||||
azure_rm_devtestlab_info:
|
||||
|
||||
- name: Get instance of DevTest Lab
|
||||
azure_rm_devtestlab_facts:
|
||||
azure_rm_devtestlab_info:
|
||||
resource_group: testrg
|
||||
name: testlab
|
||||
'''
|
||||
|
@ -151,7 +154,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMDevTestLabFacts(AzureRMModuleBase):
|
||||
class AzureRMDevTestLabInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -173,9 +176,13 @@ class AzureRMDevTestLabFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMDevTestLabFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMDevTestLabInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_devtestlab_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_devtestlab_facts' module has been renamed to 'azure_rm_devtestlab_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(DevTestLabsClient,
|
||||
|
@ -258,7 +265,7 @@ class AzureRMDevTestLabFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMDevTestLabFacts()
|
||||
AzureRMDevTestLabInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlabarmtemplate_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlabarmtemplate_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure DevTest Lab ARM Template facts
|
||||
description:
|
||||
- Get facts of Azure DevTest Lab ARM Template.
|
||||
|
@ -26,17 +26,21 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
lab_name:
|
||||
description:
|
||||
- The name of the lab.
|
||||
required: True
|
||||
type: str
|
||||
artifact_source_name:
|
||||
description:
|
||||
- The name of the artifact source.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the ARM template.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -48,7 +52,7 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get information on DevTest Lab ARM Template
|
||||
azure_rm_devtestlabarmtemplate_facts:
|
||||
azure_rm_devtestlabarmtemplate_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
artifact_source_name: public environment repo
|
||||
|
@ -117,7 +121,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMDtlArmTemplateFacts(AzureRMModuleBase):
|
||||
class AzureRMDtlArmTemplateInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -146,9 +150,13 @@ class AzureRMDtlArmTemplateFacts(AzureRMModuleBase):
|
|||
self.lab_name = None
|
||||
self.artifact_source_name = None
|
||||
self.name = None
|
||||
super(AzureRMDtlArmTemplateFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMDtlArmTemplateInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_devtestlabarmtemplate_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_devtestlabarmtemplate_facts' module has been renamed to 'azure_rm_devtestlabarmtemplate_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(DevTestLabsClient,
|
||||
|
@ -211,7 +219,7 @@ class AzureRMDtlArmTemplateFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMDtlArmTemplateFacts()
|
||||
AzureRMDtlArmTemplateInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlabartifact_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlabartifact_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure DevTest Lab Artifact facts
|
||||
description:
|
||||
- Get facts of Azure DevTest Lab Artifact.
|
||||
|
@ -26,17 +26,21 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
lab_name:
|
||||
description:
|
||||
- The name of the lab.
|
||||
required: True
|
||||
type: str
|
||||
artifact_source_name:
|
||||
description:
|
||||
- The name of the artifact source.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the artifact.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -48,7 +52,7 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of DevTest Lab Artifact
|
||||
azure_rm_devtestlabartifact_facts:
|
||||
azure_rm_devtestlabartifact_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
artifact_source_name: myArtifactSource
|
||||
|
@ -142,7 +146,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMArtifactFacts(AzureRMModuleBase):
|
||||
class AzureRMArtifactInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -171,7 +175,7 @@ class AzureRMArtifactFacts(AzureRMModuleBase):
|
|||
self.lab_name = None
|
||||
self.artifact_source_name = None
|
||||
self.name = None
|
||||
super(AzureRMArtifactFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMArtifactInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
for key in self.module_arg_spec:
|
||||
|
@ -239,7 +243,7 @@ class AzureRMArtifactFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMArtifactFacts()
|
||||
AzureRMArtifactInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlabartifactsource_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlabartifactsource_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure DevTest Lab Artifact Source facts
|
||||
description:
|
||||
- Get facts of Azure DevTest Lab Artifact Source.
|
||||
|
@ -26,16 +26,20 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
lab_name:
|
||||
description:
|
||||
- The name of DevTest Lab.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of DevTest Lab Artifact Source.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -47,7 +51,7 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of DevTest Lab Artifact Source
|
||||
azure_rm_devtestlabartifactsource_facts:
|
||||
azure_rm_devtestlabartifactsource_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
name: myArtifactSource
|
||||
|
@ -146,7 +150,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMDtlArtifactSourceFacts(AzureRMModuleBase):
|
||||
class AzureRMDtlArtifactSourceInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -174,9 +178,14 @@ class AzureRMDtlArtifactSourceFacts(AzureRMModuleBase):
|
|||
self.lab_name = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMDtlArtifactSourceFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMDtlArtifactSourceInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_devtestlabartifactsource_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_devtestlabartifactsource_facts' module has been renamed to 'azure_rm_devtestlabartifactsource_info'",
|
||||
version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(DevTestLabsClient,
|
||||
|
@ -242,7 +251,7 @@ class AzureRMDtlArtifactSourceFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMDtlArtifactSourceFacts()
|
||||
AzureRMDtlArtifactSourceInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlabcustomimage_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlabcustomimage_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure DevTest Lab Custom Image facts
|
||||
description:
|
||||
- Get facts of Azure Azure DevTest Lab Custom Image.
|
||||
|
@ -26,16 +26,20 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
lab_name:
|
||||
description:
|
||||
- The name of the lab.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the custom image.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -47,13 +51,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of Custom Image
|
||||
azure_rm_devtestlabcustomimage_facts:
|
||||
azure_rm_devtestlabcustomimage_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
name: myImage
|
||||
|
||||
- name: List instances of Custom Image in the lab
|
||||
azure_rm_devtestlabcustomimage_facts:
|
||||
azure_rm_devtestlabcustomimage_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
name: myImage
|
||||
|
@ -123,7 +127,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMDtlCustomImageFacts(AzureRMModuleBase):
|
||||
class AzureRMDtlCustomImageInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -152,9 +156,13 @@ class AzureRMDtlCustomImageFacts(AzureRMModuleBase):
|
|||
self.lab_name = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMDtlCustomImageFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMDtlCustomImageInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_devtestlabcustomimage_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_devtestlabcustomimage_facts' module has been renamed to 'azure_rm_devtestlabcustomimage_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(DevTestLabsClient,
|
||||
|
@ -214,7 +222,7 @@ class AzureRMDtlCustomImageFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMDtlCustomImageFacts()
|
||||
AzureRMDtlCustomImageInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlabenvironment_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlabenvironment_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure Environment facts
|
||||
description:
|
||||
- Get facts of Azure Environment.
|
||||
|
@ -26,20 +26,25 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
lab_name:
|
||||
description:
|
||||
- The name of the lab.
|
||||
required: True
|
||||
type: str
|
||||
user_name:
|
||||
description:
|
||||
- The name of the user profile.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the environment.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -51,7 +56,7 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of Environment
|
||||
azure_rm_devtestlabenvironment_facts:
|
||||
azure_rm_devtestlabenvironment_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
user_name: myUser
|
||||
|
@ -128,7 +133,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMDtlEnvironmentFacts(AzureRMModuleBase):
|
||||
class AzureRMDtlEnvironmentInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -161,9 +166,13 @@ class AzureRMDtlEnvironmentFacts(AzureRMModuleBase):
|
|||
self.user_name = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMDtlEnvironmentFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMDtlEnvironmentInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_devtestlabenvironment_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_devtestlabenvironment_facts' module has been renamed to 'azure_rm_devtestlabenvironment_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(DevTestLabsClient,
|
||||
|
@ -229,7 +238,7 @@ class AzureRMDtlEnvironmentFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMDtlEnvironmentFacts()
|
||||
AzureRMDtlEnvironmentInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlabpolicy_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlabpolicy_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure DTL Policy facts
|
||||
description:
|
||||
- Get facts of Azure DTL Policy.
|
||||
|
@ -26,20 +26,25 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
lab_name:
|
||||
description:
|
||||
- The name of the lab.
|
||||
required: True
|
||||
type: str
|
||||
policy_set_name:
|
||||
description:
|
||||
- The name of the policy set.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the policy.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -51,7 +56,7 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of Policy
|
||||
azure_rm_devtestlabpolicy_facts:
|
||||
azure_rm_devtestlabpolicy_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
policy_set_name: myPolicySet
|
||||
|
@ -127,7 +132,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMDtlPolicyFacts(AzureRMModuleBase):
|
||||
class AzureRMDtlPolicyInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -160,9 +165,13 @@ class AzureRMDtlPolicyFacts(AzureRMModuleBase):
|
|||
self.policy_set_name = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMDtlPolicyFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMDtlPolicyInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_devtestlabpolicy_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_devtestlabpolicy_facts' module has been renamed to 'azure_rm_devtestlabpolicy_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(DevTestLabsClient,
|
||||
|
@ -227,7 +236,7 @@ class AzureRMDtlPolicyFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMDtlPolicyFacts()
|
||||
AzureRMDtlPolicyInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlabschedule_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlabschedule_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure Schedule facts
|
||||
description:
|
||||
- Get facts of Azure Schedule.
|
||||
|
@ -26,16 +26,20 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
lab_name:
|
||||
description:
|
||||
- The name of the lab.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the schedule.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -47,7 +51,7 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of Schedule
|
||||
azure_rm_devtestlabschedule_facts:
|
||||
azure_rm_devtestlabschedule_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
name: mySchedule
|
||||
|
@ -117,7 +121,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMDtlScheduleFacts(AzureRMModuleBase):
|
||||
class AzureRMDtlScheduleInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -145,9 +149,13 @@ class AzureRMDtlScheduleFacts(AzureRMModuleBase):
|
|||
self.lab_name = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMDtlScheduleFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMDtlScheduleInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_devtestlabschedule_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_devtestlabschedule_facts' module has been renamed to 'azure_rm_devtestlabschedule_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(DevTestLabsClient,
|
||||
|
@ -207,7 +215,7 @@ class AzureRMDtlScheduleFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMDtlScheduleFacts()
|
||||
AzureRMDtlScheduleInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlabvirtualmachine_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlabvirtualmachine_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure DevTest Lab Virtual Machine facts
|
||||
description:
|
||||
- Get facts of Azure DevTest Lab Virtual Machine.
|
||||
|
@ -26,16 +26,20 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
lab_name:
|
||||
description:
|
||||
- The name of the lab.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the virtual machine.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -47,7 +51,7 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of DTL Virtual Machine
|
||||
azure_rm_devtestlabvirtualmachine_facts:
|
||||
azure_rm_devtestlabvirtualmachine_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
name: myVm
|
||||
|
@ -212,7 +216,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMDtlVirtualMachineFacts(AzureRMModuleBase):
|
||||
class AzureRMDtlVirtualMachineInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -240,9 +244,14 @@ class AzureRMDtlVirtualMachineFacts(AzureRMModuleBase):
|
|||
self.lab_name = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMDtlVirtualMachineFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMDtlVirtualMachineInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_devtestlabvirtualmachine_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_devtestlabvirtualmachine_facts' module has been renamed to 'azure_rm_devtestlabvirtualmachine_info'",
|
||||
version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(DevTestLabsClient,
|
||||
|
@ -313,7 +322,7 @@ class AzureRMDtlVirtualMachineFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMDtlVirtualMachineFacts()
|
||||
AzureRMDtlVirtualMachineInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_devtestlabvirtualnetwork_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_devtestlabvirtualnetwork_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure DevTest Lab Virtual Network facts
|
||||
description:
|
||||
- Get facts of Azure DevTest Lab Virtual Network.
|
||||
|
@ -26,13 +26,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
lab_name:
|
||||
description:
|
||||
- The name of DevTest Lab.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of DevTest Lab Virtual Network.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -44,13 +47,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of DevTest Lab Virtual Network
|
||||
azure_rm_devtestlabvirtualnetwork_facts:
|
||||
azure_rm_devtestlabvirtualnetwork_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
name: myVirtualNetwork
|
||||
|
||||
- name: List all Virtual Networks in DevTest Lab
|
||||
azure_rm_devtestlabvirtualnetwork_facts:
|
||||
azure_rm_devtestlabvirtualnetwork_info:
|
||||
resource_group: myResourceGroup
|
||||
lab_name: myLab
|
||||
name: myVirtualNetwork
|
||||
|
@ -120,7 +123,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMDevTestLabVirtualNetworkFacts(AzureRMModuleBase):
|
||||
class AzureRMDevTestLabVirtualNetworkInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -144,9 +147,14 @@ class AzureRMDevTestLabVirtualNetworkFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.lab_name = None
|
||||
self.name = None
|
||||
super(AzureRMDevTestLabVirtualNetworkFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMDevTestLabVirtualNetworkInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_devtestlabvirtualnetwork_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_devtestlabvirtualnetwork_facts' module has been renamed to 'azure_rm_devtestlabvirtualnetwork_info'",
|
||||
version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(DevTestLabsClient,
|
||||
|
@ -206,7 +214,7 @@ class AzureRMDevTestLabVirtualNetworkFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMDevTestLabVirtualNetworkFacts()
|
||||
AzureRMDevTestLabVirtualNetworkInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -16,8 +16,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_mariadbconfiguration_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_mariadbconfiguration_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure MariaDB Configuration facts
|
||||
description:
|
||||
- Get facts of Azure MariaDB Configuration.
|
||||
|
@ -27,13 +27,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
|
||||
required: True
|
||||
type: str
|
||||
server_name:
|
||||
description:
|
||||
- The name of the server.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- Setting name.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -46,13 +49,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get specific setting of MariaDB Server
|
||||
azure_rm_mariadbconfiguration_facts:
|
||||
azure_rm_mariadbconfiguration_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: testserver
|
||||
name: deadlock_timeout
|
||||
|
||||
- name: Get all settings of MariaDB Server
|
||||
azure_rm_mariadbconfiguration_facts:
|
||||
azure_rm_mariadbconfiguration_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
'''
|
||||
|
@ -109,7 +112,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMMariaDbConfigurationFacts(AzureRMModuleBase):
|
||||
class AzureRMMariaDbConfigurationInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -131,9 +134,13 @@ class AzureRMMariaDbConfigurationFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.server_name = None
|
||||
self.name = None
|
||||
super(AzureRMMariaDbConfigurationFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMMariaDbConfigurationInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_mariadbconfiguration_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_mariadbconfiguration_facts' module has been renamed to 'azure_rm_mariadbconfiguration_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(MariaDBManagementClient,
|
||||
|
@ -202,7 +209,7 @@ class AzureRMMariaDbConfigurationFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMMariaDbConfigurationFacts()
|
||||
AzureRMMariaDbConfigurationInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -16,8 +16,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_mariadbdatabase_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_mariadbdatabase_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure MariaDB Database facts
|
||||
description:
|
||||
- Get facts of MariaDB Database.
|
||||
|
@ -27,13 +27,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
|
||||
required: True
|
||||
type: str
|
||||
server_name:
|
||||
description:
|
||||
- The name of the server.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the database.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -46,13 +49,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of MariaDB Database
|
||||
azure_rm_mariadbdatabase_facts:
|
||||
azure_rm_mariadbdatabase_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
name: database_name
|
||||
|
||||
- name: List instances of MariaDB Database
|
||||
azure_rm_mariadbdatabase_facts:
|
||||
azure_rm_mariadbdatabase_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
'''
|
||||
|
@ -114,7 +117,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMMariaDbDatabaseFacts(AzureRMModuleBase):
|
||||
class AzureRMMariaDbDatabaseInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -137,9 +140,13 @@ class AzureRMMariaDbDatabaseFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.server_name = None
|
||||
self.name = None
|
||||
super(AzureRMMariaDbDatabaseFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMMariaDbDatabaseInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_mariadbdatabase_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_mariadbdatabase_facts' module has been renamed to 'azure_rm_mariadbdatabase_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
|
||||
|
@ -197,7 +204,7 @@ class AzureRMMariaDbDatabaseFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMMariaDbDatabaseFacts()
|
||||
AzureRMMariaDbDatabaseInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -16,8 +16,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_mariadbfirewallrule_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_mariadbfirewallrule_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure MariaDB Firewall Rule facts
|
||||
description:
|
||||
- Get facts of Azure MariaDB Firewall Rule.
|
||||
|
@ -27,13 +27,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
server_name:
|
||||
description:
|
||||
- The name of the server.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the server firewall rule.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -46,13 +49,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of MariaDB Firewall Rule
|
||||
azure_rm_mariadbfirewallrule_facts:
|
||||
azure_rm_mariadbfirewallrule_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
name: firewall_rule_name
|
||||
|
||||
- name: List instances of MariaDB Firewall Rule
|
||||
azure_rm_mariadbfirewallrule_facts:
|
||||
azure_rm_mariadbfirewallrule_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
'''
|
||||
|
@ -109,7 +112,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMMariaDbFirewallRuleFacts(AzureRMModuleBase):
|
||||
class AzureRMMariaDbFirewallRuleInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -133,9 +136,13 @@ class AzureRMMariaDbFirewallRuleFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.server_name = None
|
||||
self.name = None
|
||||
super(AzureRMMariaDbFirewallRuleFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMMariaDbFirewallRuleInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_mariadbfirewallrule_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_mariadbfirewallrule_facts' module has been renamed to 'azure_rm_mariadbfirewallrule_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(MariaDBManagementClient,
|
||||
|
@ -193,7 +200,7 @@ class AzureRMMariaDbFirewallRuleFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMMariaDbFirewallRuleFacts()
|
||||
AzureRMMariaDbFirewallRuleInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -16,8 +16,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_mariadbserver_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_mariadbserver_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure MariaDB Server facts
|
||||
description:
|
||||
- Get facts of MariaDB Server.
|
||||
|
@ -27,12 +27,15 @@ options:
|
|||
description:
|
||||
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the server.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -45,12 +48,12 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of MariaDB Server
|
||||
azure_rm_mariadbserver_facts:
|
||||
azure_rm_mariadbserver_info:
|
||||
resource_group: myResourceGroup
|
||||
name: server_name
|
||||
|
||||
- name: List instances of MariaDB Server
|
||||
azure_rm_mariadbserver_facts:
|
||||
azure_rm_mariadbserver_info:
|
||||
resource_group: myResourceGroup
|
||||
'''
|
||||
|
||||
|
@ -163,7 +166,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMMariaDbServerFacts(AzureRMModuleBase):
|
||||
class AzureRMMariaDbServerInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -185,9 +188,13 @@ class AzureRMMariaDbServerFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMMariaDbServerFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMMariaDbServerInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_mariadbserver_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_mariadbserver_facts' module has been renamed to 'azure_rm_mariadbserver_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
|
||||
|
@ -250,7 +257,7 @@ class AzureRMMariaDbServerFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMMariaDbServerFacts()
|
||||
AzureRMMariaDbServerInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_mysqlconfiguration_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_mysqlconfiguration_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure MySQL Configuration facts
|
||||
description:
|
||||
- Get facts of Azure MySQL Configuration.
|
||||
|
@ -26,13 +26,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
|
||||
required: True
|
||||
type: str
|
||||
server_name:
|
||||
description:
|
||||
- The name of the server.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- Setting name.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -44,13 +47,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get specific setting of MySQL Server
|
||||
azure_rm_mysqlconfiguration_facts:
|
||||
azure_rm_mysqlconfiguration_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: testmysqlserver
|
||||
name: deadlock_timeout
|
||||
|
||||
- name: Get all settings of MySQL Server
|
||||
azure_rm_mysqlconfiguration_facts:
|
||||
azure_rm_mysqlconfiguration_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
'''
|
||||
|
@ -107,7 +110,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMMySqlConfigurationFacts(AzureRMModuleBase):
|
||||
class AzureRMMySqlConfigurationInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -129,9 +132,13 @@ 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(AzureRMMySqlConfigurationInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_mysqlconfiguration_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_mysqlconfiguration_facts' module has been renamed to 'azure_rm_mysqlconfiguration_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(MySQLManagementClient,
|
||||
|
@ -200,7 +207,7 @@ class AzureRMMySqlConfigurationFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMMySqlConfigurationFacts()
|
||||
AzureRMMySqlConfigurationInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_mysqldatabase_facts
|
||||
version_added: "2.7"
|
||||
module: azure_rm_mysqldatabase_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure MySQL Database facts
|
||||
description:
|
||||
- Get facts of MySQL Database.
|
||||
|
@ -26,13 +26,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
|
||||
required: True
|
||||
type: str
|
||||
server_name:
|
||||
description:
|
||||
- The name of the server.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the database.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -44,13 +47,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of MySQL Database
|
||||
azure_rm_mysqldatabase_facts:
|
||||
azure_rm_mysqldatabase_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
name: database_name
|
||||
|
||||
- name: List instances of MySQL Database
|
||||
azure_rm_mysqldatabase_facts:
|
||||
azure_rm_mysqldatabase_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
'''
|
||||
|
@ -112,7 +115,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMMySqlDatabaseFacts(AzureRMModuleBase):
|
||||
class AzureRMMySqlDatabaseInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -135,9 +138,13 @@ class AzureRMMySqlDatabaseFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.server_name = None
|
||||
self.name = None
|
||||
super(AzureRMMySqlDatabaseFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMMySqlDatabaseInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_mysqldatabase_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_mysqldatabase_facts' module has been renamed to 'azure_rm_mysqldatabase_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
|
||||
|
@ -195,7 +202,7 @@ class AzureRMMySqlDatabaseFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMMySqlDatabaseFacts()
|
||||
AzureRMMySqlDatabaseInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_mysqlfirewallrule_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_mysqlfirewallrule_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure MySQL Firewall Rule facts
|
||||
description:
|
||||
- Get facts of Azure MySQL Firewall Rule.
|
||||
|
@ -26,13 +26,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
server_name:
|
||||
description:
|
||||
- The name of the server.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the server firewall rule.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -44,13 +47,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of MySQL Firewall Rule
|
||||
azure_rm_mysqlfirewallrule_facts:
|
||||
azure_rm_mysqlfirewallrule_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
name: firewall_rule_name
|
||||
|
||||
- name: List instances of MySQL Firewall Rule
|
||||
azure_rm_mysqlfirewallrule_facts:
|
||||
azure_rm_mysqlfirewallrule_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
'''
|
||||
|
@ -107,7 +110,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMMySqlFirewallRuleFacts(AzureRMModuleBase):
|
||||
class AzureRMMySqlFirewallRuleInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -131,9 +134,13 @@ class AzureRMMySqlFirewallRuleFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.server_name = None
|
||||
self.name = None
|
||||
super(AzureRMMySqlFirewallRuleFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMMySqlFirewallRuleInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_mysqlfirewallrule_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_mysqlfirewallrule_facts' module has been renamed to 'azure_rm_mysqlfirewallrule_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(MySQLManagementClient,
|
||||
|
@ -191,7 +198,7 @@ class AzureRMMySqlFirewallRuleFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMMySqlFirewallRuleFacts()
|
||||
AzureRMMySqlFirewallRuleInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_mysqlserver_facts
|
||||
version_added: "2.7"
|
||||
module: azure_rm_mysqlserver_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure MySQL Server facts
|
||||
description:
|
||||
- Get facts of MySQL Server.
|
||||
|
@ -26,12 +26,15 @@ options:
|
|||
description:
|
||||
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the server.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -43,12 +46,12 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of MySQL Server
|
||||
azure_rm_mysqlserver_facts:
|
||||
azure_rm_mysqlserver_info:
|
||||
resource_group: myResourceGroup
|
||||
name: server_name
|
||||
|
||||
- name: List instances of MySQL Server
|
||||
azure_rm_mysqlserver_facts:
|
||||
azure_rm_mysqlserver_info:
|
||||
resource_group: myResourceGroup
|
||||
'''
|
||||
|
||||
|
@ -161,7 +164,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMMySqlServerFacts(AzureRMModuleBase):
|
||||
class AzureRMMySqlServerInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -183,9 +186,13 @@ class AzureRMMySqlServerFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMMySqlServerFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMMySqlServerInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_mysqlserver_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_mysqlserver_facts' module has been renamed to 'azure_rm_mysqlserver_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
|
||||
|
@ -248,7 +255,7 @@ class AzureRMMySqlServerFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMMySqlServerFacts()
|
||||
AzureRMMySqlServerInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_postgresqlconfiguration_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_postgresqlconfiguration_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure PostgreSQL Configuration facts
|
||||
description:
|
||||
- Get facts of Azure PostgreSQL Configuration.
|
||||
|
@ -26,13 +26,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group that contains the resource.
|
||||
required: True
|
||||
type: str
|
||||
server_name:
|
||||
description:
|
||||
- The name of the server.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- Setting name.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -44,13 +47,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get specific setting of PostgreSQL configuration
|
||||
azure_rm_postgresqlconfiguration_facts:
|
||||
azure_rm_postgresqlconfiguration_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: testpostgresqlserver
|
||||
name: deadlock_timeout
|
||||
|
||||
- name: Get all settings of PostgreSQL Configuration
|
||||
azure_rm_postgresqlconfiguration_facts:
|
||||
azure_rm_postgresqlconfiguration_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: testpostgresqlserver
|
||||
'''
|
||||
|
@ -107,7 +110,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMPostgreSQLConfigurationFacts(AzureRMModuleBase):
|
||||
class AzureRMPostgreSQLConfigurationInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -131,9 +134,14 @@ class AzureRMPostgreSQLConfigurationFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.server_name = None
|
||||
self.name = None
|
||||
super(AzureRMPostgreSQLConfigurationFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMPostgreSQLConfigurationInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_postgresqlconfiguration_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_postgresqlconfiguration_facts' module has been renamed to 'azure_rm_postgresqlconfiguration_info'",
|
||||
version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(PostgreSQLManagementClient,
|
||||
|
@ -202,7 +210,7 @@ class AzureRMPostgreSQLConfigurationFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMPostgreSQLConfigurationFacts()
|
||||
AzureRMPostgreSQLConfigurationInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_postgresqldatabase_facts
|
||||
version_added: "2.7"
|
||||
module: azure_rm_postgresqldatabase_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure PostgreSQL Database facts
|
||||
description:
|
||||
- Get facts of PostgreSQL Database.
|
||||
|
@ -26,13 +26,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
|
||||
required: True
|
||||
type: str
|
||||
server_name:
|
||||
description:
|
||||
- The name of the server.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the database.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -44,13 +47,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of PostgreSQL Database
|
||||
azure_rm_postgresqldatabase_facts:
|
||||
azure_rm_postgresqldatabase_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
name: database_name
|
||||
|
||||
- name: List instances of PostgreSQL Database
|
||||
azure_rm_postgresqldatabase_facts:
|
||||
azure_rm_postgresqldatabase_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
'''
|
||||
|
@ -112,7 +115,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMPostgreSqlDatabasesFacts(AzureRMModuleBase):
|
||||
class AzureRMPostgreSqlDatabasesInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -135,9 +138,13 @@ class AzureRMPostgreSqlDatabasesFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.server_name = None
|
||||
self.name = None
|
||||
super(AzureRMPostgreSqlDatabasesFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMPostgreSqlDatabasesInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_postgresqldatabase_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_postgresqldatabase_facts' module has been renamed to 'azure_rm_postgresqldatabase_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
|
||||
|
@ -195,7 +202,7 @@ class AzureRMPostgreSqlDatabasesFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMPostgreSqlDatabasesFacts()
|
||||
AzureRMPostgreSqlDatabasesInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_postgresqlfirewallrule_facts
|
||||
version_added: "2.8"
|
||||
module: azure_rm_postgresqlfirewallrule_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure PostgreSQL Firewall Rule facts
|
||||
description:
|
||||
- Get facts of Azure PostgreSQL Firewall Rule.
|
||||
|
@ -26,13 +26,16 @@ options:
|
|||
description:
|
||||
- The name of the resource group.
|
||||
required: True
|
||||
type: str
|
||||
server_name:
|
||||
description:
|
||||
- The name of the server.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the server firewall rule.
|
||||
type: str
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -44,13 +47,13 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of PostgreSQL Firewall Rule
|
||||
azure_rm_postgresqlfirewallrule_facts:
|
||||
azure_rm_postgresqlfirewallrule_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
name: firewall_rule_name
|
||||
|
||||
- name: List instances of PostgreSQL Firewall Rule
|
||||
azure_rm_postgresqlfirewallrule_facts:
|
||||
azure_rm_postgresqlfirewallrule_info:
|
||||
resource_group: myResourceGroup
|
||||
server_name: server_name
|
||||
'''
|
||||
|
@ -106,7 +109,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMPostgreSQLFirewallRulesFacts(AzureRMModuleBase):
|
||||
class AzureRMPostgreSQLFirewallRulesInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -130,9 +133,14 @@ class AzureRMPostgreSQLFirewallRulesFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.server_name = None
|
||||
self.name = None
|
||||
super(AzureRMPostgreSQLFirewallRulesFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMPostgreSQLFirewallRulesInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_postgresqlfirewallrule_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_postgresqlfirewallrule_facts' module has been renamed to 'azure_rm_postgresqlfirewallrule_info'",
|
||||
version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
self.mgmt_client = self.get_mgmt_svc_client(PostgreSQLManagementClient,
|
||||
|
@ -190,7 +198,7 @@ class AzureRMPostgreSQLFirewallRulesFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMPostgreSQLFirewallRulesFacts()
|
||||
AzureRMPostgreSQLFirewallRulesInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
|||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: azure_rm_postgresqlserver_facts
|
||||
version_added: "2.7"
|
||||
module: azure_rm_postgresqlserver_info
|
||||
version_added: "2.9"
|
||||
short_description: Get Azure PostgreSQL Server facts
|
||||
description:
|
||||
- Get facts of PostgreSQL Server.
|
||||
|
@ -26,12 +26,15 @@ options:
|
|||
description:
|
||||
- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
|
||||
required: True
|
||||
type: str
|
||||
name:
|
||||
description:
|
||||
- The name of the server.
|
||||
type: str
|
||||
tags:
|
||||
description:
|
||||
- Limit results by providing a list of tags. Format tags as 'key' or 'key:value'.
|
||||
type: list
|
||||
|
||||
extends_documentation_fragment:
|
||||
- azure
|
||||
|
@ -43,12 +46,12 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Get instance of PostgreSQL Server
|
||||
azure_rm_postgresqlserver_facts:
|
||||
azure_rm_postgresqlserver_info:
|
||||
resource_group: myResourceGroup
|
||||
name: server_name
|
||||
|
||||
- name: List instances of PostgreSQL Server
|
||||
azure_rm_postgresqlserver_facts:
|
||||
azure_rm_postgresqlserver_info:
|
||||
resource_group: myResourceGroup
|
||||
'''
|
||||
|
||||
|
@ -162,7 +165,7 @@ except ImportError:
|
|||
pass
|
||||
|
||||
|
||||
class AzureRMPostgreSqlServersFacts(AzureRMModuleBase):
|
||||
class AzureRMPostgreSqlServersInfo(AzureRMModuleBase):
|
||||
def __init__(self):
|
||||
# define user inputs into argument
|
||||
self.module_arg_spec = dict(
|
||||
|
@ -184,9 +187,13 @@ class AzureRMPostgreSqlServersFacts(AzureRMModuleBase):
|
|||
self.resource_group = None
|
||||
self.name = None
|
||||
self.tags = None
|
||||
super(AzureRMPostgreSqlServersFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
super(AzureRMPostgreSqlServersInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||
|
||||
def exec_module(self, **kwargs):
|
||||
is_old_facts = self.module._name == 'azure_rm_postgresqlserver_facts'
|
||||
if is_old_facts:
|
||||
self.module.deprecate("The 'azure_rm_postgresqlserver_facts' module has been renamed to 'azure_rm_postgresqlserver_info'", version='2.13')
|
||||
|
||||
for key in self.module_arg_spec:
|
||||
setattr(self, key, kwargs[key])
|
||||
|
||||
|
@ -249,7 +256,7 @@ class AzureRMPostgreSqlServersFacts(AzureRMModuleBase):
|
|||
|
||||
|
||||
def main():
|
||||
AzureRMPostgreSqlServersFacts()
|
||||
AzureRMPostgreSqlServersInfo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
|
@ -1124,25 +1124,15 @@ lib/ansible/modules/cloud/azure/azure_rm_cosmosdbaccount_info.py validate-module
|
|||
lib/ansible/modules/cloud/azure/azure_rm_deployment.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_deployment_info.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlab.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlab_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabarmtemplate_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifact_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifactsource.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabartifactsource_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabcustomimage.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabcustomimage_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabenvironment.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabenvironment_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabpolicy.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabpolicy_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabschedule.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabschedule_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine.py validate-modules:undocumented-parameter
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine.py validate-modules:nonexistent-parameter-documented
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py validate-modules:doc-missing-type
|
||||
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset_facts.py validate-modules:parameter-type-not-in-doc
|
||||
|
@ -1172,32 +1162,20 @@ lib/ansible/modules/cloud/azure/azure_rm_loganalyticsworkspace_facts.py validate
|
|||
lib/ansible/modules/cloud/azure/azure_rm_manageddisk.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_manageddisk_facts.py validate-modules:doc-type-does-not-match-spec
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbconfiguration.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbconfiguration_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbdatabase.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbdatabase_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbfirewallrule.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbfirewallrule_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbserver.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbserver_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mysqlconfiguration_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_networkinterface.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_networkinterface.py validate-modules:doc-missing-type
|
||||
lib/ansible/modules/cloud/azure/azure_rm_networkinterface_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqlconfiguration.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqlconfiguration_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqlfirewallrule.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqlfirewallrule_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_publicipaddress.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_publicipaddress_facts.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/azure/azure_rm_rediscache.py validate-modules:doc-default-does-not-match-spec
|
||||
|
|
Loading…
Reference in a new issue