Skip to content

Commit

Permalink
Test ansible.content_builder PR 70
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolenz committed Nov 7, 2023
1 parent ec973b9 commit 6998cd6
Show file tree
Hide file tree
Showing 133 changed files with 1,888 additions and 7,312 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:
- "Test ansible.content_builder https://github.com/ansible-community/ansible.content_builder/pull/70."
29 changes: 12 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 All @@ -116,9 +104,12 @@
except ImportError:
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.vmware.vmware_rest.plugins.module_utils.vmware_rest import (
build_full_device_list,
exists,
gen_args,
get_device_info,
get_subdevice_type,
list_devices,
open_session,
prepare_payload,
update_changed_flag,
Expand All @@ -129,10 +120,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
31 changes: 15 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 All @@ -104,8 +93,14 @@
except ImportError:
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.vmware.vmware_rest.plugins.module_utils.vmware_rest import (
build_full_device_list,
exists,
gen_args,
get_device_info,
get_subdevice_type,
list_devices,
open_session,
prepare_payload,
update_changed_flag,
session_timeout,
)
Expand All @@ -114,10 +109,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
29 changes: 12 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 All @@ -116,9 +104,12 @@
except ImportError:
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.vmware.vmware_rest.plugins.module_utils.vmware_rest import (
build_full_device_list,
exists,
gen_args,
get_device_info,
get_subdevice_type,
list_devices,
open_session,
prepare_payload,
update_changed_flag,
Expand All @@ -129,10 +120,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
31 changes: 15 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 All @@ -104,8 +93,14 @@
except ImportError:
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.vmware.vmware_rest.plugins.module_utils.vmware_rest import (
build_full_device_list,
exists,
gen_args,
get_device_info,
get_subdevice_type,
list_devices,
open_session,
prepare_payload,
update_changed_flag,
session_timeout,
)
Expand All @@ -114,10 +109,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
38 changes: 12 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 All @@ -137,9 +116,12 @@
except ImportError:
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.vmware.vmware_rest.plugins.module_utils.vmware_rest import (
build_full_device_list,
exists,
gen_args,
get_device_info,
get_subdevice_type,
list_devices,
open_session,
prepare_payload,
update_changed_flag,
Expand All @@ -150,10 +132,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 6998cd6

Please sign in to comment.