Skip to content

Commit

Permalink
regenerating
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency committed Aug 13, 2024
1 parent f5abcfe commit 3c5e524
Show file tree
Hide file tree
Showing 139 changed files with 717 additions and 6,971 deletions.
4 changes: 2 additions & 2 deletions config/MANIFEST.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ collection:
path: "{{ playbook_dir }}/output"
namespace: vmware
name: vmware_rest
requires_ansible: "2.14"
requires_ansible: "2.15.0"
plugins:
- type: module_openapi
name: "vmware_rest"
content: cloud
api_object_path: "{{ playbook_dir }}/api_specifications/8.0.2"
resource: config
resource: "{{ playbook_dir }}"
action: generate_all
unique_key: ""
rm_swagger_json: ""
Expand Down
23 changes: 22 additions & 1 deletion config/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,32 @@
- name: Generate Modules For VMWare Rest
hosts: localhost
gather_facts: true
vars:
mock_sanity_ignore_versions:
- '2.9'
- '2.10'
- '2.11'
- '2.12'
- '2.13'
- '2.14'
pre_tasks:
- name: Create Output Dir
ansible.builtin.file:
state: directory
path: /tmp/output
path: "{{ playbook_dir }}/output/tests/sanity"
- name: Make Stub Sanity Ignore Files
ansible.builtin.file:
state: touch
path: "{{ playbook_dir }}/output/tests/sanity/ignore-{{ item }}.txt"
loop: "{{ mock_sanity_ignore_versions }}"
roles:
- role: ansible.content_builder.run
manifest_file: "{{ playbook_dir }}/MANIFEST.yml"
tasks:
- name: Remove Stub Sanity Ignore Files
ansible.builtin.file:
state: absent
path: "{{ playbook_dir }}/output/tests/sanity/ignore-{{ item }}.txt"
loop: "{{ mock_sanity_ignore_versions }}"
- name: Reformat Modules
ansible.builtin.shell: black {{ playbook_dir }}/output/plugins/modules/*
271 changes: 135 additions & 136 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,138 +1,137 @@
---
requires_ansible: ">=2.15.0"
requires_ansible: '>=2.15.0'
action_groups:
vmware_rest:
- vcenter_vm_guest_filesystem_directories
- vcenter_vm_guest_operations_info
- vcenter_ovf_libraryitem
- vcenter_cluster_info
- vcenter_datacenter_info
- vcenter_datacenter
- vcenter_datastore_info
- vcenter_folder_info
- vcenter_host_info
- vcenter_host
- vcenter_network_info
- vcenter_resourcepool_info
- vcenter_resourcepool
- vcenter_storage_policies_info
- vcenter_vm_info
- vcenter_vm
- vcenter_vmtemplate_libraryitems_info
- vcenter_vmtemplate_libraryitems
- vcenter_vm_guest_customization
- vcenter_vm_guest_identity_info
- vcenter_vm_guest_localfilesystem_info
- vcenter_vm_guest_networking_info
- vcenter_vm_guest_networking_interfaces_info
- vcenter_vm_guest_networking_routes_info
- vcenter_vm_guest_power_info
- vcenter_vm_guest_power
- vcenter_vm_hardware_info
- vcenter_vm_hardware
- vcenter_vm_hardware_adapter_sata_info
- vcenter_vm_hardware_adapter_sata
- vcenter_vm_hardware_adapter_scsi_info
- vcenter_vm_hardware_adapter_scsi
- vcenter_vm_hardware_boot_info
- vcenter_vm_hardware_boot
- vcenter_vm_hardware_boot_device_info
- vcenter_vm_hardware_boot_device
- vcenter_vm_hardware_cdrom_info
- vcenter_vm_hardware_cdrom
- vcenter_vm_hardware_cpu_info
- vcenter_vm_hardware_cpu
- vcenter_vm_hardware_disk_info
- vcenter_vm_hardware_disk
- vcenter_vm_hardware_ethernet_info
- vcenter_vm_hardware_ethernet
- vcenter_vm_hardware_floppy_info
- vcenter_vm_hardware_floppy
- vcenter_vm_hardware_memory_info
- vcenter_vm_hardware_memory
- vcenter_vm_hardware_parallel_info
- vcenter_vm_hardware_parallel
- vcenter_vm_hardware_serial_info
- vcenter_vm_hardware_serial
- vcenter_vm_libraryitem_info
- vcenter_vm_power_info
- vcenter_vm_power
- vcenter_vm_storage_policy_info
- vcenter_vm_storage_policy
- vcenter_vm_storage_policy_compliance_info
- vcenter_vm_storage_policy_compliance
- vcenter_vm_tools_info
- vcenter_vm_tools
- vcenter_vm_tools_installer_info
- vcenter_vm_tools_installer
- content_configuration_info
- content_configuration
- content_library_info
- content_library_item_info
- content_library_subscriptions_info
- content_locallibrary_info
- content_locallibrary
- content_subscribedlibrary_info
- content_subscribedlibrary
- appliance_infraprofile_configs_info
- appliance_infraprofile_configs
- appliance_system_globalfips_info
- appliance_system_globalfips
- appliance_access_consolecli_info
- appliance_access_consolecli
- appliance_access_dcui_info
- appliance_access_dcui
- appliance_access_shell_info
- appliance_access_shell
- appliance_access_ssh_info
- appliance_access_ssh
- appliance_health_applmgmt_info
- appliance_health_database_info
- appliance_health_databasestorage_info
- appliance_health_load_info
- appliance_health_mem_info
- appliance_health_softwarepackages_info
- appliance_health_storage_info
- appliance_health_swap_info
- appliance_health_system_info
- appliance_localaccounts_info
- appliance_localaccounts_globalpolicy_info
- appliance_localaccounts_globalpolicy
- appliance_monitoring_info
- appliance_monitoring_query
- appliance_networking_info
- appliance_networking
- appliance_networking_dns_domains_info
- appliance_networking_dns_domains
- appliance_networking_dns_hostname_info
- appliance_networking_dns_hostname
- appliance_networking_dns_servers_info
- appliance_networking_dns_servers
- appliance_networking_firewall_inbound_info
- appliance_networking_firewall_inbound
- appliance_networking_interfaces_info
- appliance_networking_interfaces_ipv4_info
- appliance_networking_interfaces_ipv4
- appliance_networking_interfaces_ipv6_info
- appliance_networking_interfaces_ipv6
- appliance_networking_noproxy_info
- appliance_networking_noproxy
- appliance_networking_proxy_info
- appliance_networking_proxy
- appliance_ntp_info
- appliance_ntp
- appliance_services_info
- appliance_services
- appliance_shutdown_info
- appliance_shutdown
- appliance_system_storage_info
- appliance_system_storage
- appliance_system_time_info
- appliance_system_time_timezone_info
- appliance_system_time_timezone
- appliance_system_version_info
- appliance_timesync_info
- appliance_timesync
- appliance_update_info
- appliance_vmon_service_info
- appliance_vmon_service
- vcenter_vm_guest_filesystem_directories
- vcenter_vm_guest_operations_info
- vcenter_ovf_libraryitem
- vcenter_cluster_info
- vcenter_datacenter_info
- vcenter_datacenter
- vcenter_datastore_info
- vcenter_folder_info
- vcenter_host_info
- vcenter_host
- vcenter_network_info
- vcenter_resourcepool_info
- vcenter_resourcepool
- vcenter_storage_policies_info
- vcenter_vm_info
- vcenter_vm
- vcenter_vmtemplate_libraryitems_info
- vcenter_vmtemplate_libraryitems
- vcenter_vm_guest_customization
- vcenter_vm_guest_identity_info
- vcenter_vm_guest_localfilesystem_info
- vcenter_vm_guest_networking_info
- vcenter_vm_guest_networking_interfaces_info
- vcenter_vm_guest_networking_routes_info
- vcenter_vm_guest_power_info
- vcenter_vm_guest_power
- vcenter_vm_hardware_info
- vcenter_vm_hardware
- vcenter_vm_hardware_adapter_sata_info
- vcenter_vm_hardware_adapter_sata
- vcenter_vm_hardware_adapter_scsi_info
- vcenter_vm_hardware_adapter_scsi
- vcenter_vm_hardware_boot_info
- vcenter_vm_hardware_boot
- vcenter_vm_hardware_boot_device_info
- vcenter_vm_hardware_boot_device
- vcenter_vm_hardware_cdrom_info
- vcenter_vm_hardware_cdrom
- vcenter_vm_hardware_cpu_info
- vcenter_vm_hardware_cpu
- vcenter_vm_hardware_disk_info
- vcenter_vm_hardware_disk
- vcenter_vm_hardware_ethernet_info
- vcenter_vm_hardware_ethernet
- vcenter_vm_hardware_floppy_info
- vcenter_vm_hardware_floppy
- vcenter_vm_hardware_memory_info
- vcenter_vm_hardware_memory
- vcenter_vm_hardware_parallel_info
- vcenter_vm_hardware_parallel
- vcenter_vm_hardware_serial_info
- vcenter_vm_hardware_serial
- vcenter_vm_libraryitem_info
- vcenter_vm_power_info
- vcenter_vm_power
- vcenter_vm_storage_policy_info
- vcenter_vm_storage_policy
- vcenter_vm_storage_policy_compliance_info
- vcenter_vm_storage_policy_compliance
- vcenter_vm_tools_info
- vcenter_vm_tools
- vcenter_vm_tools_installer_info
- vcenter_vm_tools_installer
- content_configuration_info
- content_configuration
- content_library_info
- content_library_item_info
- content_library_subscriptions_info
- content_locallibrary_info
- content_locallibrary
- content_subscribedlibrary_info
- content_subscribedlibrary
- appliance_infraprofile_configs_info
- appliance_infraprofile_configs
- appliance_system_globalfips_info
- appliance_system_globalfips
- appliance_access_consolecli_info
- appliance_access_consolecli
- appliance_access_dcui_info
- appliance_access_dcui
- appliance_access_shell_info
- appliance_access_shell
- appliance_access_ssh_info
- appliance_access_ssh
- appliance_health_applmgmt_info
- appliance_health_database_info
- appliance_health_databasestorage_info
- appliance_health_load_info
- appliance_health_mem_info
- appliance_health_softwarepackages_info
- appliance_health_storage_info
- appliance_health_swap_info
- appliance_health_system_info
- appliance_localaccounts_info
- appliance_localaccounts_globalpolicy_info
- appliance_localaccounts_globalpolicy
- appliance_monitoring_info
- appliance_monitoring_query
- appliance_networking_info
- appliance_networking
- appliance_networking_dns_domains_info
- appliance_networking_dns_domains
- appliance_networking_dns_hostname_info
- appliance_networking_dns_hostname
- appliance_networking_dns_servers_info
- appliance_networking_dns_servers
- appliance_networking_firewall_inbound_info
- appliance_networking_firewall_inbound
- appliance_networking_interfaces_info
- appliance_networking_interfaces_ipv4_info
- appliance_networking_interfaces_ipv4
- appliance_networking_interfaces_ipv6_info
- appliance_networking_interfaces_ipv6
- appliance_networking_noproxy_info
- appliance_networking_noproxy
- appliance_networking_proxy_info
- appliance_networking_proxy
- appliance_ntp_info
- appliance_ntp
- appliance_services_info
- appliance_services
- appliance_shutdown_info
- appliance_shutdown
- appliance_system_storage_info
- appliance_system_storage
- appliance_system_time_info
- appliance_system_time_timezone_info
- appliance_system_time_timezone
- appliance_system_version_info
- appliance_timesync_info
- appliance_timesync
- appliance_update_info
- appliance_vmon_service_info
- appliance_vmon_service
17 changes: 4 additions & 13 deletions plugins/modules/appliance_access_consolecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,33 +70,24 @@
type: bool
author:
- Ansible Cloud Team (@ansible-collections)
version_added: 1.0.0
version_added: !!python/object/apply:ansible.utils.unsafe_proxy.AnsibleUnsafeText
- 1.0.0
requirements:
- vSphere 7.0.3 or greater
- python >= 3.6
- aiohttp
seealso:
- description: Modify VCenter Appliance settings
module: vmware.vmware.vcsa_settings
- module: vmware.vmware.vcsa_settings
notes:
- Tested on vSphere 7.0.3
"""

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
PAYLOAD_FORMAT = {
"set": {"query": {}, "body": {"enabled": "enabled"}, "path": {}}
Expand Down
13 changes: 3 additions & 10 deletions plugins/modules/appliance_access_consolecli_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
type: bool
author:
- Ansible Cloud Team (@ansible-collections)
version_added: 1.0.0
version_added: !!python/object/apply:ansible.utils.unsafe_proxy.AnsibleUnsafeText
- 1.0.0
requirements:
- vSphere 7.0.3 or greater
- python >= 3.6
Expand All @@ -69,19 +70,11 @@
"""

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
PAYLOAD_FORMAT = {
"get": {"query": {}, "body": {}, "path": {}}
Expand Down
Loading

0 comments on commit 3c5e524

Please sign in to comment.