cleanup - required: false (#50648)

pull/50737/head
Zim Kalinowski 6 years ago committed by Yunge Zhu
parent 7995f69a44
commit 3739dc9684

@ -218,22 +218,18 @@ class AzureRMContainerRegistry(AzureRMModuleBase):
),
state=dict(
type='str',
required=False,
default='present',
choices=['present', 'absent']
),
location=dict(
type='str',
required=False
type='str'
),
admin_user_enabled=dict(
type='bool',
required=False,
default=False
),
sku=dict(
type='str',
required=False,
default='Standard',
choices=['Basic', 'Standard', 'Premium']
)

@ -108,16 +108,13 @@ class AzureRMManagedDiskFacts(AzureRMModuleBase):
def __init__(self):
self.module_arg_spec = dict(
resource_group=dict(
type='str',
required=False
type='str'
),
name=dict(
type='str',
required=False
type='str'
),
tags=dict(
type='str',
required=False
type='str'
),
)
self.results = dict(

@ -46,11 +46,9 @@ options:
choices:
- absent
- present
required: false
location:
description:
- Valid azure location. Defaults to location of the resource group.
required: false
virtual_network:
description:
- An existing virtual network with which the network interface will be associated. Required

@ -144,8 +144,7 @@ class AzureRMResource(AzureRMModuleBase):
# define user inputs into argument
self.module_arg_spec = dict(
url=dict(
type='str',
required=False
type='str'
),
provider=dict(
type='str',

@ -102,28 +102,22 @@ class AzureRMResourceFacts(AzureRMModuleBase):
# define user inputs into argument
self.module_arg_spec = dict(
url=dict(
type='str',
required=False
type='str'
),
provider=dict(
type='str',
required=False
type='str'
),
resource_group=dict(
type='str',
required=False
type='str'
),
resource_type=dict(
type='str',
required=False
type='str'
),
resource_name=dict(
type='str',
required=False
type='str'
),
subresource=dict(
type='list',
required=False,
default=[]
),
api_version=dict(

@ -132,29 +132,23 @@ class AzureRMServers(AzureRMModuleBase):
required=True
),
location=dict(
type='str',
required=False
type='str'
),
admin_username=dict(
type='str',
required=False
type='str'
),
admin_password=dict(
type='str',
no_log=True,
required=False
no_log=True
),
version=dict(
type='str',
required=False
type='str'
),
identity=dict(
type='str',
required=False
type='str'
),
state=dict(
type='str',
required=False,
default='present',
choices=['present', 'absent']
)

@ -41,39 +41,30 @@ options:
choices:
- absent
- present
required: false
location:
description:
- Valid azure location. Defaults to location of the resource group.
required: false
virtual_machine_name:
description:
- The name of the virtual machine where the extension should be create or updated.
required: false
publisher:
description:
- The name of the extension handler publisher.
required: false
virtual_machine_extension_type:
description:
- The type of the extension handler.
required: false
type_handler_version:
description:
- The type version of the extension handler.
required: false
settings:
description:
- Json formatted public settings for the extension.
required: false
protected_settings:
description:
- Json formatted protected settings for the extension.
required: false
auto_upgrade_minor_version:
description:
- Whether the extension handler should be automatically upgraded across minor versions.
required: false
type: bool
extends_documentation_fragment:
@ -159,41 +150,32 @@ class AzureRMVMExtension(AzureRMModuleBase):
),
state=dict(
type='str',
required=False,
default='present',
choices=['present', 'absent']
),
location=dict(
type='str',
required=False
type='str'
),
virtual_machine_name=dict(
type='str',
required=False
type='str'
),
publisher=dict(
type='str',
required=False
type='str'
),
virtual_machine_extension_type=dict(
type='str',
required=False
type='str'
),
type_handler_version=dict(
type='str',
required=False
type='str'
),
auto_upgrade_minor_version=dict(
type='bool',
required=False
type='bool'
),
settings=dict(
type='dict',
required=False
type='dict'
),
protected_settings=dict(
type='dict',
required=False
type='dict'
)
)

Loading…
Cancel
Save