diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 3275bcf71..fd07e157b 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -670,4 +670,4 @@ releases: - remove_unnecessary_sanity_ignores.yaml - start_gha_4_sanity_tests.yaml - use_7.0.3_spec.yaml - release_date: '2023-11-22' + release_date: '2023-11-23' diff --git a/plugins/modules/appliance_networking.py b/plugins/modules/appliance_networking.py index 15b0d6f3f..4656d3d77 100644 --- a/plugins/modules/appliance_networking.py +++ b/plugins/modules/appliance_networking.py @@ -94,8 +94,8 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "update": {"query": {}, "body": {"ipv6_enabled": "ipv6_enabled"}, "path": {}}, "reset": {"query": {}, "body": {}, "path": {}}, + "update": {"query": {}, "body": {"ipv6_enabled": "ipv6_enabled"}, "path": {}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/appliance_networking_dns_domains.py b/plugins/modules/appliance_networking_dns_domains.py index db7d7dbe4..c80e09867 100644 --- a/plugins/modules/appliance_networking_dns_domains.py +++ b/plugins/modules/appliance_networking_dns_domains.py @@ -103,8 +103,8 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "add": {"query": {}, "body": {"domain": "domain"}, "path": {}}, "set": {"query": {}, "body": {"domains": "domains"}, "path": {}}, + "add": {"query": {}, "body": {"domain": "domain"}, "path": {}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/appliance_networking_dns_hostname.py b/plugins/modules/appliance_networking_dns_hostname.py index af6d4ac00..70fe400e3 100644 --- a/plugins/modules/appliance_networking_dns_hostname.py +++ b/plugins/modules/appliance_networking_dns_hostname.py @@ -93,8 +93,8 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "test": {"query": {}, "body": {"name": "name"}, "path": {}}, "set": {"query": {}, "body": {"name": "name"}, "path": {}}, + "test": {"query": {}, "body": {"name": "name"}, "path": {}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/appliance_networking_dns_servers.py b/plugins/modules/appliance_networking_dns_servers.py index c069605eb..f20f83d90 100644 --- a/plugins/modules/appliance_networking_dns_servers.py +++ b/plugins/modules/appliance_networking_dns_servers.py @@ -129,9 +129,9 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { + "set": {"query": {}, "body": {"mode": "mode", "servers": "servers"}, "path": {}}, "add": {"query": {}, "body": {"server": "server"}, "path": {}}, "test": {"query": {}, "body": {"servers": "servers"}, "path": {}}, - "set": {"query": {}, "body": {"mode": "mode", "servers": "servers"}, "path": {}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/appliance_networking_proxy.py b/plugins/modules/appliance_networking_proxy.py index 9f20ef553..737a26465 100644 --- a/plugins/modules/appliance_networking_proxy.py +++ b/plugins/modules/appliance_networking_proxy.py @@ -157,12 +157,6 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "test": { - "query": {}, - "body": {"config": "config", "host": "host"}, - "path": {"protocol": "protocol"}, - }, - "delete": {"query": {}, "body": {}, "path": {"protocol": "protocol"}}, "set": { "query": {}, "body": { @@ -174,6 +168,12 @@ }, "path": {"protocol": "protocol"}, }, + "test": { + "query": {}, + "body": {"config": "config", "host": "host"}, + "path": {"protocol": "protocol"}, + }, + "delete": {"query": {}, "body": {}, "path": {"protocol": "protocol"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/appliance_ntp.py b/plugins/modules/appliance_ntp.py index 5101471c6..fda9cf4eb 100644 --- a/plugins/modules/appliance_ntp.py +++ b/plugins/modules/appliance_ntp.py @@ -104,8 +104,8 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "test": {"query": {}, "body": {"servers": "servers"}, "path": {}}, "set": {"query": {}, "body": {"servers": "servers"}, "path": {}}, + "test": {"query": {}, "body": {"servers": "servers"}, "path": {}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/appliance_services.py b/plugins/modules/appliance_services.py index 9747e2f26..074e6bb48 100644 --- a/plugins/modules/appliance_services.py +++ b/plugins/modules/appliance_services.py @@ -108,9 +108,9 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "start": {"query": {}, "body": {}, "path": {"service": "service"}}, - "restart": {"query": {}, "body": {}, "path": {"service": "service"}}, "stop": {"query": {}, "body": {}, "path": {"service": "service"}}, + "restart": {"query": {}, "body": {}, "path": {"service": "service"}}, + "start": {"query": {}, "body": {}, "path": {"service": "service"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/appliance_shutdown.py b/plugins/modules/appliance_shutdown.py index 3fa0e1ef6..2da554f4d 100644 --- a/plugins/modules/appliance_shutdown.py +++ b/plugins/modules/appliance_shutdown.py @@ -117,12 +117,12 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { "reboot": {"query": {}, "body": {"delay": "delay", "reason": "reason"}, "path": {}}, - "cancel": {"query": {}, "body": {}, "path": {}}, "poweroff": { "query": {}, "body": {"delay": "delay", "reason": "reason"}, "path": {}, }, + "cancel": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/appliance_system_storage.py b/plugins/modules/appliance_system_storage.py index 4bfe592d4..ccbacda6b 100644 --- a/plugins/modules/appliance_system_storage.py +++ b/plugins/modules/appliance_system_storage.py @@ -92,8 +92,8 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "resize": {"query": {}, "body": {}, "path": {}}, "resize_ex": {"query": {}, "body": {}, "path": {}}, + "resize": {"query": {}, "body": {}, "path": {}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/appliance_vmon_service.py b/plugins/modules/appliance_vmon_service.py index ce2774c38..6bd45b2a6 100644 --- a/plugins/modules/appliance_vmon_service.py +++ b/plugins/modules/appliance_vmon_service.py @@ -106,15 +106,15 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { + "start": {"query": {}, "body": {}, "path": {"service": "service"}}, + "list_details": {"query": {}, "body": {}, "path": {}}, "update": { "query": {}, "body": {"startup_type": "spec/startup_type"}, "path": {"service": "service"}, }, - "restart": {"query": {}, "body": {}, "path": {"service": "service"}}, "stop": {"query": {}, "body": {}, "path": {"service": "service"}}, - "list_details": {"query": {}, "body": {}, "path": {}}, - "start": {"query": {}, "body": {}, "path": {"service": "service"}}, + "restart": {"query": {}, "body": {}, "path": {"service": "service"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/content_locallibrary.py b/plugins/modules/content_locallibrary.py index d34891355..897c77071 100644 --- a/plugins/modules/content_locallibrary.py +++ b/plugins/modules/content_locallibrary.py @@ -384,6 +384,11 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { + "publish": { + "query": {}, + "body": {"subscriptions": "subscriptions"}, + "path": {"library_id": "library_id"}, + }, "update": { "query": {}, "body": { @@ -405,6 +410,7 @@ }, "path": {"library_id": "library_id"}, }, + "delete": {"query": {}, "body": {}, "path": {"library_id": "library_id"}}, "create": { "query": {"client_token": "client_token"}, "body": { @@ -426,12 +432,6 @@ }, "path": {}, }, - "publish": { - "query": {}, - "body": {"subscriptions": "subscriptions"}, - "path": {"library_id": "library_id"}, - }, - "delete": {"query": {}, "body": {}, "path": {"library_id": "library_id"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/content_subscribedlibrary.py b/plugins/modules/content_subscribedlibrary.py index aea52d7c0..fa7840316 100644 --- a/plugins/modules/content_subscribedlibrary.py +++ b/plugins/modules/content_subscribedlibrary.py @@ -381,8 +381,10 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "update": { - "query": {}, + "delete": {"query": {}, "body": {}, "path": {"library_id": "library_id"}}, + "evict": {"query": {}, "body": {}, "path": {"library_id": "library_id"}}, + "create": { + "query": {"client_token": "client_token"}, "body": { "creation_time": "creation_time", "description": "description", @@ -400,17 +402,10 @@ "unset_security_policy_id": "unset_security_policy_id", "version": "version", }, - "path": {"library_id": "library_id"}, - }, - "probe": { - "query": {}, - "body": {"subscription_info": "subscription_info"}, "path": {}, }, - "evict": {"query": {}, "body": {}, "path": {"library_id": "library_id"}}, - "sync": {"query": {}, "body": {}, "path": {"library_id": "library_id"}}, - "create": { - "query": {"client_token": "client_token"}, + "update": { + "query": {}, "body": { "creation_time": "creation_time", "description": "description", @@ -428,9 +423,14 @@ "unset_security_policy_id": "unset_security_policy_id", "version": "version", }, + "path": {"library_id": "library_id"}, + }, + "probe": { + "query": {}, + "body": {"subscription_info": "subscription_info"}, "path": {}, }, - "delete": {"query": {}, "body": {}, "path": {"library_id": "library_id"}}, + "sync": {"query": {}, "body": {}, "path": {"library_id": "library_id"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_datacenter.py b/plugins/modules/vcenter_datacenter.py index 06fb326e6..95cc9fc2a 100644 --- a/plugins/modules/vcenter_datacenter.py +++ b/plugins/modules/vcenter_datacenter.py @@ -108,12 +108,12 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "create": {"query": {}, "body": {"folder": "folder", "name": "name"}, "path": {}}, "delete": { "query": {"force": "force"}, "body": {}, "path": {"datacenter": "datacenter"}, }, + "create": {"query": {}, "body": {"folder": "folder", "name": "name"}, "path": {}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_host.py b/plugins/modules/vcenter_host.py index c3cbd99f6..b4cd157ae 100644 --- a/plugins/modules/vcenter_host.py +++ b/plugins/modules/vcenter_host.py @@ -146,7 +146,9 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { + "disconnect": {"query": {}, "body": {}, "path": {"host": "host"}}, "connect": {"query": {}, "body": {}, "path": {"host": "host"}}, + "delete": {"query": {}, "body": {}, "path": {"host": "host"}}, "create": { "query": {}, "body": { @@ -161,8 +163,6 @@ }, "path": {}, }, - "disconnect": {"query": {}, "body": {}, "path": {"host": "host"}}, - "delete": {"query": {}, "body": {}, "path": {"host": "host"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_ovf_libraryitem.py b/plugins/modules/vcenter_ovf_libraryitem.py index c92c3edad..87fc93a19 100644 --- a/plugins/modules/vcenter_ovf_libraryitem.py +++ b/plugins/modules/vcenter_ovf_libraryitem.py @@ -264,11 +264,6 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "deploy": { - "query": {"client_token": "client_token"}, - "body": {"deployment_spec": "deployment_spec", "target": "target"}, - "path": {"ovf_library_item_id": "ovf_library_item_id"}, - }, "filter": { "query": {}, "body": {"target": "target"}, @@ -279,6 +274,11 @@ "body": {"create_spec": "create_spec", "source": "source", "target": "target"}, "path": {}, }, + "deploy": { + "query": {"client_token": "client_token"}, + "body": {"deployment_spec": "deployment_spec", "target": "target"}, + "path": {"ovf_library_item_id": "ovf_library_item_id"}, + }, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_resourcepool.py b/plugins/modules/vcenter_resourcepool.py index 1bce61f1a..96779e8c1 100644 --- a/plugins/modules/vcenter_resourcepool.py +++ b/plugins/modules/vcenter_resourcepool.py @@ -191,6 +191,7 @@ }, "path": {"resource_pool": "resource_pool"}, }, + "delete": {"query": {}, "body": {}, "path": {"resource_pool": "resource_pool"}}, "create": { "query": {}, "body": { @@ -201,7 +202,6 @@ }, "path": {}, }, - "delete": {"query": {}, "body": {}, "path": {"resource_pool": "resource_pool"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm.py b/plugins/modules/vcenter_vm.py index 215b57df2..f281edf6a 100644 --- a/plugins/modules/vcenter_vm.py +++ b/plugins/modules/vcenter_vm.py @@ -1148,24 +1148,7 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "relocate": { - "query": {}, - "body": {"disks": "disks", "placement": "placement"}, - "path": {"vm": "vm"}, - }, - "clone": { - "query": {}, - "body": { - "disks_to_remove": "disks_to_remove", - "disks_to_update": "disks_to_update", - "guest_customization_spec": "guest_customization_spec", - "name": "name", - "placement": "placement", - "power_on": "power_on", - "source": "source", - }, - "path": {}, - }, + "delete": {"query": {}, "body": {}, "path": {"vm": "vm"}}, "register": { "query": {}, "body": { @@ -1177,17 +1160,15 @@ }, "path": {}, }, - "delete": {"query": {}, "body": {}, "path": {"vm": "vm"}}, - "instant_clone": { + "clone": { "query": {}, "body": { - "bios_uuid": "bios_uuid", - "disconnect_all_nics": "disconnect_all_nics", + "disks_to_remove": "disks_to_remove", + "disks_to_update": "disks_to_update", + "guest_customization_spec": "guest_customization_spec", "name": "name", - "nics_to_update": "nics_to_update", - "parallel_ports_to_update": "parallel_ports_to_update", "placement": "placement", - "serial_ports_to_update": "serial_ports_to_update", + "power_on": "power_on", "source": "source", }, "path": {}, @@ -1217,6 +1198,25 @@ "path": {}, }, "unregister": {"query": {}, "body": {}, "path": {"vm": "vm"}}, + "relocate": { + "query": {}, + "body": {"disks": "disks", "placement": "placement"}, + "path": {"vm": "vm"}, + }, + "instant_clone": { + "query": {}, + "body": { + "bios_uuid": "bios_uuid", + "disconnect_all_nics": "disconnect_all_nics", + "name": "name", + "nics_to_update": "nics_to_update", + "parallel_ports_to_update": "parallel_ports_to_update", + "placement": "placement", + "serial_ports_to_update": "serial_ports_to_update", + "source": "source", + }, + "path": {}, + }, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_guest_filesystem_directories.py b/plugins/modules/vcenter_vm_guest_filesystem_directories.py index eebd2e8d6..a2bf99704 100644 --- a/plugins/modules/vcenter_vm_guest_filesystem_directories.py +++ b/plugins/modules/vcenter_vm_guest_filesystem_directories.py @@ -213,29 +213,29 @@ }, "path": {"vm": "vm"}, }, - "create": { + "delete": { "query": {}, "body": { - "create_parents": "create_parents", "credentials": "credentials", "path": "path", + "recursive": "recursive", }, "path": {"vm": "vm"}, }, - "move": { - "query": {}, - "body": {"credentials": "credentials", "new_path": "new_path", "path": "path"}, - "path": {"vm": "vm"}, - }, - "delete": { + "create": { "query": {}, "body": { + "create_parents": "create_parents", "credentials": "credentials", "path": "path", - "recursive": "recursive", }, "path": {"vm": "vm"}, }, + "move": { + "query": {}, + "body": {"credentials": "credentials", "new_path": "new_path", "path": "path"}, + "path": {"vm": "vm"}, + }, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_hardware_adapter_sata.py b/plugins/modules/vcenter_vm_hardware_adapter_sata.py index 4df893335..77170fd5e 100644 --- a/plugins/modules/vcenter_vm_hardware_adapter_sata.py +++ b/plugins/modules/vcenter_vm_hardware_adapter_sata.py @@ -141,12 +141,12 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { + "delete": {"query": {}, "body": {}, "path": {"adapter": "adapter", "vm": "vm"}}, "create": { "query": {}, "body": {"bus": "bus", "pci_slot_number": "pci_slot_number", "type": "type"}, "path": {"vm": "vm"}, }, - "delete": {"query": {}, "body": {}, "path": {"adapter": "adapter", "vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_hardware_adapter_scsi.py b/plugins/modules/vcenter_vm_hardware_adapter_scsi.py index e7b748491..18f714bc9 100644 --- a/plugins/modules/vcenter_vm_hardware_adapter_scsi.py +++ b/plugins/modules/vcenter_vm_hardware_adapter_scsi.py @@ -161,6 +161,7 @@ "body": {"sharing": "sharing"}, "path": {"adapter": "adapter", "vm": "vm"}, }, + "delete": {"query": {}, "body": {}, "path": {"adapter": "adapter", "vm": "vm"}}, "create": { "query": {}, "body": { @@ -171,7 +172,6 @@ }, "path": {"vm": "vm"}, }, - "delete": {"query": {}, "body": {}, "path": {"adapter": "adapter", "vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_hardware_cdrom.py b/plugins/modules/vcenter_vm_hardware_cdrom.py index 0243781b0..4eb377607 100644 --- a/plugins/modules/vcenter_vm_hardware_cdrom.py +++ b/plugins/modules/vcenter_vm_hardware_cdrom.py @@ -202,30 +202,30 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "update": { + "delete": {"query": {}, "body": {}, "path": {"cdrom": "cdrom", "vm": "vm"}}, + "create": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", "backing": "backing", + "ide": "ide", + "sata": "sata", "start_connected": "start_connected", + "type": "type", }, - "path": {"cdrom": "cdrom", "vm": "vm"}, + "path": {"vm": "vm"}, }, - "connect": {"query": {}, "body": {}, "path": {"cdrom": "cdrom", "vm": "vm"}}, - "disconnect": {"query": {}, "body": {}, "path": {"cdrom": "cdrom", "vm": "vm"}}, - "create": { + "update": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", "backing": "backing", - "ide": "ide", - "sata": "sata", "start_connected": "start_connected", - "type": "type", }, - "path": {"vm": "vm"}, + "path": {"cdrom": "cdrom", "vm": "vm"}, }, - "delete": {"query": {}, "body": {}, "path": {"cdrom": "cdrom", "vm": "vm"}}, + "disconnect": {"query": {}, "body": {}, "path": {"cdrom": "cdrom", "vm": "vm"}}, + "connect": {"query": {}, "body": {}, "path": {"cdrom": "cdrom", "vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_hardware_disk.py b/plugins/modules/vcenter_vm_hardware_disk.py index 2e35bc7f8..84a8e39ff 100644 --- a/plugins/modules/vcenter_vm_hardware_disk.py +++ b/plugins/modules/vcenter_vm_hardware_disk.py @@ -241,6 +241,7 @@ "body": {"backing": "backing"}, "path": {"disk": "disk", "vm": "vm"}, }, + "delete": {"query": {}, "body": {}, "path": {"disk": "disk", "vm": "vm"}}, "create": { "query": {}, "body": { @@ -254,7 +255,6 @@ }, "path": {"vm": "vm"}, }, - "delete": {"query": {}, "body": {}, "path": {"disk": "disk", "vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_hardware_ethernet.py b/plugins/modules/vcenter_vm_hardware_ethernet.py index 6f9602849..d5ad20950 100644 --- a/plugins/modules/vcenter_vm_hardware_ethernet.py +++ b/plugins/modules/vcenter_vm_hardware_ethernet.py @@ -278,37 +278,37 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "update": { + "delete": {"query": {}, "body": {}, "path": {"nic": "nic", "vm": "vm"}}, + "create": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", "backing": "backing", "mac_address": "mac_address", "mac_type": "mac_type", + "pci_slot_number": "pci_slot_number", "start_connected": "start_connected", + "type": "type", "upt_compatibility_enabled": "upt_compatibility_enabled", "wake_on_lan_enabled": "wake_on_lan_enabled", }, - "path": {"nic": "nic", "vm": "vm"}, + "path": {"vm": "vm"}, }, - "connect": {"query": {}, "body": {}, "path": {"nic": "nic", "vm": "vm"}}, - "disconnect": {"query": {}, "body": {}, "path": {"nic": "nic", "vm": "vm"}}, - "create": { + "update": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", "backing": "backing", "mac_address": "mac_address", "mac_type": "mac_type", - "pci_slot_number": "pci_slot_number", "start_connected": "start_connected", - "type": "type", "upt_compatibility_enabled": "upt_compatibility_enabled", "wake_on_lan_enabled": "wake_on_lan_enabled", }, - "path": {"vm": "vm"}, + "path": {"nic": "nic", "vm": "vm"}, }, - "delete": {"query": {}, "body": {}, "path": {"nic": "nic", "vm": "vm"}}, + "disconnect": {"query": {}, "body": {}, "path": {"nic": "nic", "vm": "vm"}}, + "connect": {"query": {}, "body": {}, "path": {"nic": "nic", "vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_hardware_floppy.py b/plugins/modules/vcenter_vm_hardware_floppy.py index 42c775349..00605d7f7 100644 --- a/plugins/modules/vcenter_vm_hardware_floppy.py +++ b/plugins/modules/vcenter_vm_hardware_floppy.py @@ -158,27 +158,27 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "update": { + "delete": {"query": {}, "body": {}, "path": {"floppy": "floppy", "vm": "vm"}}, + "create": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", "backing": "backing", "start_connected": "start_connected", }, - "path": {"floppy": "floppy", "vm": "vm"}, + "path": {"vm": "vm"}, }, - "connect": {"query": {}, "body": {}, "path": {"floppy": "floppy", "vm": "vm"}}, - "disconnect": {"query": {}, "body": {}, "path": {"floppy": "floppy", "vm": "vm"}}, - "create": { + "update": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", "backing": "backing", "start_connected": "start_connected", }, - "path": {"vm": "vm"}, + "path": {"floppy": "floppy", "vm": "vm"}, }, - "delete": {"query": {}, "body": {}, "path": {"floppy": "floppy", "vm": "vm"}}, + "disconnect": {"query": {}, "body": {}, "path": {"floppy": "floppy", "vm": "vm"}}, + "connect": {"query": {}, "body": {}, "path": {"floppy": "floppy", "vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_hardware_parallel.py b/plugins/modules/vcenter_vm_hardware_parallel.py index b88324045..543a6ba27 100644 --- a/plugins/modules/vcenter_vm_hardware_parallel.py +++ b/plugins/modules/vcenter_vm_hardware_parallel.py @@ -150,27 +150,27 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "update": { + "delete": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, + "create": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", "backing": "backing", "start_connected": "start_connected", }, - "path": {"port": "port", "vm": "vm"}, + "path": {"vm": "vm"}, }, - "connect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, - "disconnect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, - "create": { + "update": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", "backing": "backing", "start_connected": "start_connected", }, - "path": {"vm": "vm"}, + "path": {"port": "port", "vm": "vm"}, }, - "delete": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, + "disconnect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, + "connect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_hardware_serial.py b/plugins/modules/vcenter_vm_hardware_serial.py index e5fd48f92..adbe0c55e 100644 --- a/plugins/modules/vcenter_vm_hardware_serial.py +++ b/plugins/modules/vcenter_vm_hardware_serial.py @@ -224,7 +224,8 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "update": { + "delete": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, + "create": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", @@ -232,11 +233,9 @@ "start_connected": "start_connected", "yield_on_poll": "yield_on_poll", }, - "path": {"port": "port", "vm": "vm"}, + "path": {"vm": "vm"}, }, - "connect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, - "disconnect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, - "create": { + "update": { "query": {}, "body": { "allow_guest_control": "allow_guest_control", @@ -244,9 +243,10 @@ "start_connected": "start_connected", "yield_on_poll": "yield_on_poll", }, - "path": {"vm": "vm"}, + "path": {"port": "port", "vm": "vm"}, }, - "delete": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, + "disconnect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, + "connect": {"query": {}, "body": {}, "path": {"port": "port", "vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_power.py b/plugins/modules/vcenter_vm_power.py index 40811c6b6..8c332faea 100644 --- a/plugins/modules/vcenter_vm_power.py +++ b/plugins/modules/vcenter_vm_power.py @@ -157,10 +157,10 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { + "stop": {"query": {}, "body": {}, "path": {"vm": "vm"}}, + "reset": {"query": {}, "body": {}, "path": {"vm": "vm"}}, "suspend": {"query": {}, "body": {}, "path": {"vm": "vm"}}, "start": {"query": {}, "body": {}, "path": {"vm": "vm"}}, - "reset": {"query": {}, "body": {}, "path": {"vm": "vm"}}, - "stop": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vm_tools_installer.py b/plugins/modules/vcenter_vm_tools_installer.py index 5b9315fc7..d0c274942 100644 --- a/plugins/modules/vcenter_vm_tools_installer.py +++ b/plugins/modules/vcenter_vm_tools_installer.py @@ -135,8 +135,8 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "connect": {"query": {}, "body": {}, "path": {"vm": "vm"}}, "disconnect": {"query": {}, "body": {}, "path": {"vm": "vm"}}, + "connect": {"query": {}, "body": {}, "path": {"vm": "vm"}}, } # pylint: disable=line-too-long from ansible.module_utils.basic import env_fallback diff --git a/plugins/modules/vcenter_vmtemplate_libraryitems.py b/plugins/modules/vcenter_vmtemplate_libraryitems.py index 1b4779ec3..674e8616c 100644 --- a/plugins/modules/vcenter_vmtemplate_libraryitems.py +++ b/plugins/modules/vcenter_vmtemplate_libraryitems.py @@ -275,34 +275,34 @@ # This structure describes the format of the data expected by the end-points PAYLOAD_FORMAT = { - "deploy": { + "create": { "query": {}, "body": { "description": "description", "disk_storage": "disk_storage", "disk_storage_overrides": "disk_storage_overrides", - "guest_customization": "guest_customization", - "hardware_customization": "hardware_customization", + "library": "library", "name": "name", "placement": "placement", - "powered_on": "powered_on", + "source_vm": "source_vm", "vm_home_storage": "vm_home_storage", }, - "path": {"template_library_item": "template_library_item"}, + "path": {}, }, - "create": { + "deploy": { "query": {}, "body": { "description": "description", "disk_storage": "disk_storage", "disk_storage_overrides": "disk_storage_overrides", - "library": "library", + "guest_customization": "guest_customization", + "hardware_customization": "hardware_customization", "name": "name", "placement": "placement", - "source_vm": "source_vm", + "powered_on": "powered_on", "vm_home_storage": "vm_home_storage", }, - "path": {}, + "path": {"template_library_item": "template_library_item"}, }, } # pylint: disable=line-too-long