Skip to content

Commit

Permalink
20231104 Re-generate modules with ansible.content_builder
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolenz committed Nov 4, 2023
1 parent ec973b9 commit dd83f68
Show file tree
Hide file tree
Showing 133 changed files with 1,327 additions and 7,338 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/regenerate_modules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- "Re-generate modules with ansible.content_builder."
26 changes: 9 additions & 17 deletions plugins/modules/appliance_access_consolecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
# Copyright: (c) 2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# template: header.j2
# This module is autogenerated by vmware_rest_code_generator.
# See: https://github.com/ansible-collections/vmware_rest_code_generator
from __future__ import absolute_import, division, print_function

__metaclass__ = type
# This module is autogenerated using the ansible.content_builder.
# See: https://github.com/ansible-community/ansible.content_builder


DOCUMENTATION = r"""
Expand Down Expand Up @@ -73,7 +70,7 @@
type: bool
author:
- Ansible Cloud Team (@ansible-collections)
version_added: 2.0.0
version_added: 1.0.0
requirements:
- vSphere 7.0.2 or greater
- python >= 3.6
Expand All @@ -83,18 +80,9 @@
"""

EXAMPLES = r"""
- name: Disable the Console CLI
vmware.vmware_rest.appliance_access_consolecli:
enabled: false
"""

RETURN = r"""
# content generated by the update_return_section callback# task: Disable the Console CLI
value:
description: Disable the Console CLI
returned: On success
sample: {}
type: dict
"""

# This structure describes the format of the data expected by the end-points
Expand Down Expand Up @@ -129,10 +117,14 @@
def prepare_argument_spec():
argument_spec = {
"vcenter_hostname": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_HOST"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_HOST"]),
),
"vcenter_username": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_USER"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_USER"]),
),
"vcenter_password": dict(
type="str",
Expand Down
25 changes: 9 additions & 16 deletions plugins/modules/appliance_access_consolecli_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
# Copyright: (c) 2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# template: header.j2
# This module is autogenerated by vmware_rest_code_generator.
# See: https://github.com/ansible-collections/vmware_rest_code_generator
from __future__ import absolute_import, division, print_function

__metaclass__ = type
# This module is autogenerated using the ansible.content_builder.
# See: https://github.com/ansible-community/ansible.content_builder


DOCUMENTATION = r"""
Expand Down Expand Up @@ -62,7 +59,7 @@
type: bool
author:
- Ansible Cloud Team (@ansible-collections)
version_added: 2.0.0
version_added: 1.0.0
requirements:
- vSphere 7.0.2 or greater
- python >= 3.6
Expand All @@ -72,17 +69,9 @@
"""

EXAMPLES = r"""
- name: Check if the Console CLI is enabled
vmware.vmware_rest.appliance_access_consolecli_info:
"""

RETURN = r"""
# content generated by the update_return_section callback# task: Check if the Console CLI is enabled
value:
description: Check if the Console CLI is enabled
returned: On success
sample: 1
type: int
"""

# This structure describes the format of the data expected by the end-points
Expand Down Expand Up @@ -114,10 +103,14 @@
def prepare_argument_spec():
argument_spec = {
"vcenter_hostname": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_HOST"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_HOST"]),
),
"vcenter_username": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_USER"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_USER"]),
),
"vcenter_password": dict(
type="str",
Expand Down
26 changes: 9 additions & 17 deletions plugins/modules/appliance_access_dcui.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
# Copyright: (c) 2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# template: header.j2
# This module is autogenerated by vmware_rest_code_generator.
# See: https://github.com/ansible-collections/vmware_rest_code_generator
from __future__ import absolute_import, division, print_function

__metaclass__ = type
# This module is autogenerated using the ansible.content_builder.
# See: https://github.com/ansible-community/ansible.content_builder


DOCUMENTATION = r"""
Expand Down Expand Up @@ -73,7 +70,7 @@
type: bool
author:
- Ansible Cloud Team (@ansible-collections)
version_added: 2.0.0
version_added: 1.0.0
requirements:
- vSphere 7.0.2 or greater
- python >= 3.6
Expand All @@ -83,18 +80,9 @@
"""

EXAMPLES = r"""
- name: Disable the Direct Console User Interface
vmware.vmware_rest.appliance_access_dcui:
enabled: false
"""

RETURN = r"""
# content generated by the update_return_section callback# task: Disable the Direct Console User Interface
value:
description: Disable the Direct Console User Interface
returned: On success
sample: {}
type: dict
"""

# This structure describes the format of the data expected by the end-points
Expand Down Expand Up @@ -129,10 +117,14 @@
def prepare_argument_spec():
argument_spec = {
"vcenter_hostname": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_HOST"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_HOST"]),
),
"vcenter_username": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_USER"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_USER"]),
),
"vcenter_password": dict(
type="str",
Expand Down
25 changes: 9 additions & 16 deletions plugins/modules/appliance_access_dcui_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
# Copyright: (c) 2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# template: header.j2
# This module is autogenerated by vmware_rest_code_generator.
# See: https://github.com/ansible-collections/vmware_rest_code_generator
from __future__ import absolute_import, division, print_function

__metaclass__ = type
# This module is autogenerated using the ansible.content_builder.
# See: https://github.com/ansible-community/ansible.content_builder


DOCUMENTATION = r"""
Expand Down Expand Up @@ -62,7 +59,7 @@
type: bool
author:
- Ansible Cloud Team (@ansible-collections)
version_added: 2.0.0
version_added: 1.0.0
requirements:
- vSphere 7.0.2 or greater
- python >= 3.6
Expand All @@ -72,17 +69,9 @@
"""

EXAMPLES = r"""
- name: Check if the Direct Console User Interface is enabled
vmware.vmware_rest.appliance_access_dcui_info:
"""

RETURN = r"""
# content generated by the update_return_section callback# task: Check if the Direct Console User Interface is enabled
value:
description: Check if the Direct Console User Interface is enabled
returned: On success
sample: 1
type: int
"""

# This structure describes the format of the data expected by the end-points
Expand Down Expand Up @@ -114,10 +103,14 @@
def prepare_argument_spec():
argument_spec = {
"vcenter_hostname": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_HOST"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_HOST"]),
),
"vcenter_username": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_USER"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_USER"]),
),
"vcenter_password": dict(
type="str",
Expand Down
35 changes: 9 additions & 26 deletions plugins/modules/appliance_access_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
# Copyright: (c) 2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# template: header.j2
# This module is autogenerated by vmware_rest_code_generator.
# See: https://github.com/ansible-collections/vmware_rest_code_generator
from __future__ import absolute_import, division, print_function

__metaclass__ = type
# This module is autogenerated using the ansible.content_builder.
# See: https://github.com/ansible-community/ansible.content_builder


DOCUMENTATION = r"""
Expand Down Expand Up @@ -81,7 +78,7 @@
type: bool
author:
- Ansible Cloud Team (@ansible-collections)
version_added: 2.0.0
version_added: 1.0.0
requirements:
- vSphere 7.0.2 or greater
- python >= 3.6
Expand All @@ -91,27 +88,9 @@
"""

EXAMPLES = r"""
- name: Disable the Shell
vmware.vmware_rest.appliance_access_shell:
enabled: false
timeout: 600
- name: Enable the Shell with a timeout
vmware.vmware_rest.appliance_access_shell:
enabled: true
timeout: 600
register: result
"""

RETURN = r"""
# content generated by the update_return_section callback# task: Disable the Shell
value:
description: Disable the Shell
returned: On success
sample:
enabled: 0
timeout: 0
type: dict
"""

# This structure describes the format of the data expected by the end-points
Expand Down Expand Up @@ -150,10 +129,14 @@
def prepare_argument_spec():
argument_spec = {
"vcenter_hostname": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_HOST"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_HOST"]),
),
"vcenter_username": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_USER"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_USER"]),
),
"vcenter_password": dict(
type="str",
Expand Down
28 changes: 9 additions & 19 deletions plugins/modules/appliance_access_shell_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
# Copyright: (c) 2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# template: header.j2
# This module is autogenerated by vmware_rest_code_generator.
# See: https://github.com/ansible-collections/vmware_rest_code_generator
from __future__ import absolute_import, division, print_function

__metaclass__ = type
# This module is autogenerated using the ansible.content_builder.
# See: https://github.com/ansible-community/ansible.content_builder


DOCUMENTATION = r"""
Expand Down Expand Up @@ -64,7 +61,7 @@
type: bool
author:
- Ansible Cloud Team (@ansible-collections)
version_added: 2.0.0
version_added: 1.0.0
requirements:
- vSphere 7.0.2 or greater
- python >= 3.6
Expand All @@ -74,20 +71,9 @@
"""

EXAMPLES = r"""
- name: Check if the Shell is enabled
vmware.vmware_rest.appliance_access_shell_info:
register: result
"""

RETURN = r"""
# content generated by the update_return_section callback# task: Check if the Shell is enabled
value:
description: Check if the Shell is enabled
returned: On success
sample:
enabled: 0
timeout: 0
type: dict
"""

# This structure describes the format of the data expected by the end-points
Expand Down Expand Up @@ -119,10 +105,14 @@
def prepare_argument_spec():
argument_spec = {
"vcenter_hostname": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_HOST"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_HOST"]),
),
"vcenter_username": dict(
type="str", required=True, fallback=(env_fallback, ["VMWARE_USER"]),
type="str",
required=True,
fallback=(env_fallback, ["VMWARE_USER"]),
),
"vcenter_password": dict(
type="str",
Expand Down
Loading

0 comments on commit dd83f68

Please sign in to comment.