Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] 20231106 Re-generate modules with ansible.content_builder #436

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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."
27 changes: 9 additions & 18 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 Expand Up @@ -199,7 +191,6 @@ def build_url(params):


async def entry_point(module, session):

if module.params["state"] == "present":
if "_create" in globals():
operation = "create"
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
27 changes: 9 additions & 18 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 Expand Up @@ -197,7 +189,6 @@ def build_url(params):


async def entry_point(module, session):

if module.params["state"] == "present":
if "_create" in globals():
operation = "create"
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
36 changes: 9 additions & 27 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 Expand Up @@ -219,7 +202,6 @@ def build_url(params):


async def entry_point(module, session):

if module.params["state"] == "present":
if "_create" in globals():
operation = "create"
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
Loading