From b934e0656958d7559d29aa7ab63ade80b7b13c5d Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Fri, 24 Feb 2023 11:03:30 +0100 Subject: [PATCH] [PR #5949/50d7597d backport][stable-6] Add attributes to scaleway and profitbricks modules (#6052) Add attributes to scaleway and profitbricks modules (#5949) Add attributes to scaleway and profitbricks modules. (cherry picked from commit 50d7597ddc243b32ac09f367305f95a213565d80) Co-authored-by: Felix Fontein --- plugins/modules/profitbricks.py | 7 +++++++ plugins/modules/profitbricks_datacenter.py | 7 +++++++ plugins/modules/profitbricks_nic.py | 9 ++++++++- plugins/modules/profitbricks_volume.py | 9 ++++++++- plugins/modules/profitbricks_volume_attachments.py | 9 ++++++++- plugins/modules/scaleway_compute.py | 8 +++++++- plugins/modules/scaleway_compute_private_network.py | 8 +++++++- plugins/modules/scaleway_container.py | 6 ++++++ plugins/modules/scaleway_container_info.py | 3 ++- plugins/modules/scaleway_container_namespace.py | 7 +++++++ plugins/modules/scaleway_container_registry.py | 6 ++++++ plugins/modules/scaleway_database_backup.py | 6 ++++++ plugins/modules/scaleway_function.py | 7 +++++++ plugins/modules/scaleway_function_namespace.py | 7 +++++++ plugins/modules/scaleway_ip.py | 8 +++++++- plugins/modules/scaleway_lb.py | 8 +++++++- plugins/modules/scaleway_private_network.py | 8 +++++++- plugins/modules/scaleway_security_group.py | 8 +++++++- plugins/modules/scaleway_security_group_rule.py | 7 +++++++ plugins/modules/scaleway_sshkey.py | 6 ++++++ plugins/modules/scaleway_user_data.py | 6 ++++++ plugins/modules/scaleway_volume.py | 6 ++++++ 22 files changed, 146 insertions(+), 10 deletions(-) diff --git a/plugins/modules/profitbricks.py b/plugins/modules/profitbricks.py index 6b0134cb99..c8bcceb936 100644 --- a/plugins/modules/profitbricks.py +++ b/plugins/modules/profitbricks.py @@ -15,6 +15,13 @@ short_description: Create, destroy, start, stop, and reboot a ProfitBricks virtu description: - Create, destroy, update, start, stop, and reboot a ProfitBricks virtual machine. When the virtual machine is created it can optionally wait for it to be 'running' before returning. This module has a dependency on profitbricks >= 1.0.0 +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: auto_increment: description: diff --git a/plugins/modules/profitbricks_datacenter.py b/plugins/modules/profitbricks_datacenter.py index a11d12bfd9..a096db752d 100644 --- a/plugins/modules/profitbricks_datacenter.py +++ b/plugins/modules/profitbricks_datacenter.py @@ -15,6 +15,13 @@ short_description: Create or destroy a ProfitBricks Virtual Datacenter description: - This is a simple module that supports creating or removing vDCs. A vDC is required before you can create servers. This module has a dependency on profitbricks >= 1.0.0 +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: name: description: diff --git a/plugins/modules/profitbricks_nic.py b/plugins/modules/profitbricks_nic.py index c6239f5ef5..17a30b052c 100644 --- a/plugins/modules/profitbricks_nic.py +++ b/plugins/modules/profitbricks_nic.py @@ -13,7 +13,14 @@ DOCUMENTATION = ''' module: profitbricks_nic short_description: Create or Remove a NIC description: - - This module allows you to create or restore a volume snapshot. This module has a dependency on profitbricks >= 1.0.0 + - This module allows you to create or restore a volume snapshot. This module has a dependency on profitbricks >= 1.0.0 +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: datacenter: description: diff --git a/plugins/modules/profitbricks_volume.py b/plugins/modules/profitbricks_volume.py index 1d21897715..f9d257b682 100644 --- a/plugins/modules/profitbricks_volume.py +++ b/plugins/modules/profitbricks_volume.py @@ -13,7 +13,14 @@ DOCUMENTATION = ''' module: profitbricks_volume short_description: Create or destroy a volume description: - - Allows you to create or remove a volume from a ProfitBricks datacenter. This module has a dependency on profitbricks >= 1.0.0 + - Allows you to create or remove a volume from a ProfitBricks datacenter. This module has a dependency on profitbricks >= 1.0.0 +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: datacenter: description: diff --git a/plugins/modules/profitbricks_volume_attachments.py b/plugins/modules/profitbricks_volume_attachments.py index 49b418362b..75cd73df3c 100644 --- a/plugins/modules/profitbricks_volume_attachments.py +++ b/plugins/modules/profitbricks_volume_attachments.py @@ -13,7 +13,14 @@ DOCUMENTATION = ''' module: profitbricks_volume_attachments short_description: Attach or detach a volume description: - - Allows you to attach or detach a volume from a ProfitBricks server. This module has a dependency on profitbricks >= 1.0.0 + - Allows you to attach or detach a volume from a ProfitBricks server. This module has a dependency on profitbricks >= 1.0.0 +extends_documentation_fragment: + - community.general.attributes +attributes: + check_mode: + support: none + diff_mode: + support: none options: datacenter: description: diff --git a/plugins/modules/scaleway_compute.py b/plugins/modules/scaleway_compute.py index 0da3f0ff24..9bd8218071 100644 --- a/plugins/modules/scaleway_compute.py +++ b/plugins/modules/scaleway_compute.py @@ -21,8 +21,14 @@ author: Remy Leone (@remyleone) description: - "This module manages compute instances on Scaleway." extends_documentation_fragment: -- community.general.scaleway + - community.general.scaleway + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: diff --git a/plugins/modules/scaleway_compute_private_network.py b/plugins/modules/scaleway_compute_private_network.py index 201ec257f7..9a9d9adde8 100644 --- a/plugins/modules/scaleway_compute_private_network.py +++ b/plugins/modules/scaleway_compute_private_network.py @@ -21,8 +21,14 @@ description: - This module add or remove a private network to a compute instance (U(https://developer.scaleway.com)). extends_documentation_fragment: -- community.general.scaleway + - community.general.scaleway + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: diff --git a/plugins/modules/scaleway_container.py b/plugins/modules/scaleway_container.py index 85e746e1f5..19ffae4197 100644 --- a/plugins/modules/scaleway_container.py +++ b/plugins/modules/scaleway_container.py @@ -22,9 +22,15 @@ description: extends_documentation_fragment: - community.general.scaleway - community.general.scaleway_waitable_resource + - community.general.attributes requirements: - passlib[argon2] >= 1.7.4 +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: diff --git a/plugins/modules/scaleway_container_info.py b/plugins/modules/scaleway_container_info.py index 670c63a0bc..20ebece212 100644 --- a/plugins/modules/scaleway_container_info.py +++ b/plugins/modules/scaleway_container_info.py @@ -21,7 +21,8 @@ description: - This module return information about a container on Scaleway account. extends_documentation_fragment: - community.general.scaleway - + - community.general.attributes + - community.general.attributes.info_module options: namespace_id: diff --git a/plugins/modules/scaleway_container_namespace.py b/plugins/modules/scaleway_container_namespace.py index e7bf7c71f1..fb01b86728 100644 --- a/plugins/modules/scaleway_container_namespace.py +++ b/plugins/modules/scaleway_container_namespace.py @@ -22,9 +22,16 @@ description: extends_documentation_fragment: - community.general.scaleway - community.general.scaleway_waitable_resource + - community.general.attributes requirements: - passlib[argon2] >= 1.7.4 +attributes: + check_mode: + support: full + diff_mode: + support: none + options: state: type: str diff --git a/plugins/modules/scaleway_container_registry.py b/plugins/modules/scaleway_container_registry.py index f49b19917a..5eee571ec7 100644 --- a/plugins/modules/scaleway_container_registry.py +++ b/plugins/modules/scaleway_container_registry.py @@ -22,7 +22,13 @@ description: extends_documentation_fragment: - community.general.scaleway - community.general.scaleway_waitable_resource + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: diff --git a/plugins/modules/scaleway_database_backup.py b/plugins/modules/scaleway_database_backup.py index 9daa7921c0..edc9f6cab4 100644 --- a/plugins/modules/scaleway_database_backup.py +++ b/plugins/modules/scaleway_database_backup.py @@ -22,6 +22,12 @@ description: - "This module manages database backups on Scaleway account U(https://developer.scaleway.com)." extends_documentation_fragment: - community.general.scaleway + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: description: diff --git a/plugins/modules/scaleway_function.py b/plugins/modules/scaleway_function.py index 5e7ac2a3d1..3785458660 100644 --- a/plugins/modules/scaleway_function.py +++ b/plugins/modules/scaleway_function.py @@ -22,9 +22,16 @@ description: extends_documentation_fragment: - community.general.scaleway - community.general.scaleway_waitable_resource + - community.general.attributes requirements: - passlib[argon2] >= 1.7.4 +attributes: + check_mode: + support: full + diff_mode: + support: none + options: state: type: str diff --git a/plugins/modules/scaleway_function_namespace.py b/plugins/modules/scaleway_function_namespace.py index 243bb7124c..f6310b35be 100644 --- a/plugins/modules/scaleway_function_namespace.py +++ b/plugins/modules/scaleway_function_namespace.py @@ -22,9 +22,16 @@ description: extends_documentation_fragment: - community.general.scaleway - community.general.scaleway_waitable_resource + - community.general.attributes requirements: - passlib[argon2] >= 1.7.4 +attributes: + check_mode: + support: full + diff_mode: + support: none + options: state: type: str diff --git a/plugins/modules/scaleway_ip.py b/plugins/modules/scaleway_ip.py index a49e9c9f31..cf8e2e6015 100644 --- a/plugins/modules/scaleway_ip.py +++ b/plugins/modules/scaleway_ip.py @@ -20,8 +20,14 @@ description: - This module manages IP on Scaleway account U(https://developer.scaleway.com) extends_documentation_fragment: -- community.general.scaleway + - community.general.scaleway + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: diff --git a/plugins/modules/scaleway_lb.py b/plugins/modules/scaleway_lb.py index 578f4ae894..3e43a8ae2b 100644 --- a/plugins/modules/scaleway_lb.py +++ b/plugins/modules/scaleway_lb.py @@ -21,8 +21,14 @@ author: Remy Leone (@remyleone) description: - "This module manages load-balancers on Scaleway." extends_documentation_fragment: -- community.general.scaleway + - community.general.scaleway + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: diff --git a/plugins/modules/scaleway_private_network.py b/plugins/modules/scaleway_private_network.py index 57cf67ec1f..33fb7381ca 100644 --- a/plugins/modules/scaleway_private_network.py +++ b/plugins/modules/scaleway_private_network.py @@ -20,8 +20,14 @@ author: Pascal MANGIN (@pastral) description: - "This module manages private network on Scaleway account (U(https://developer.scaleway.com))." extends_documentation_fragment: -- community.general.scaleway + - community.general.scaleway + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: diff --git a/plugins/modules/scaleway_security_group.py b/plugins/modules/scaleway_security_group.py index d863156fa3..5523da41ce 100644 --- a/plugins/modules/scaleway_security_group.py +++ b/plugins/modules/scaleway_security_group.py @@ -20,8 +20,14 @@ author: Antoine Barbare (@abarbare) description: - "This module manages Security Group on Scaleway account U(https://developer.scaleway.com)." extends_documentation_fragment: -- community.general.scaleway + - community.general.scaleway + - community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: diff --git a/plugins/modules/scaleway_security_group_rule.py b/plugins/modules/scaleway_security_group_rule.py index 52e69868cc..136631d03d 100644 --- a/plugins/modules/scaleway_security_group_rule.py +++ b/plugins/modules/scaleway_security_group_rule.py @@ -21,9 +21,16 @@ description: - "This module manages Security Group Rule on Scaleway account U(https://developer.scaleway.com)." extends_documentation_fragment: - community.general.scaleway + - community.general.attributes requirements: - ipaddress +attributes: + check_mode: + support: full + diff_mode: + support: none + options: state: type: str diff --git a/plugins/modules/scaleway_sshkey.py b/plugins/modules/scaleway_sshkey.py index 8bb804165a..a39e57aa39 100644 --- a/plugins/modules/scaleway_sshkey.py +++ b/plugins/modules/scaleway_sshkey.py @@ -22,7 +22,13 @@ description: - "This module manages SSH keys on Scaleway account U(https://developer.scaleway.com)." extends_documentation_fragment: - community.general.scaleway +- community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: diff --git a/plugins/modules/scaleway_user_data.py b/plugins/modules/scaleway_user_data.py index 509ae44cc0..08ff86a55e 100644 --- a/plugins/modules/scaleway_user_data.py +++ b/plugins/modules/scaleway_user_data.py @@ -23,7 +23,13 @@ description: - It can be used to configure cloud-init for instance. extends_documentation_fragment: - community.general.scaleway +- community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: diff --git a/plugins/modules/scaleway_volume.py b/plugins/modules/scaleway_volume.py index e633b4a1a7..2ff09da544 100644 --- a/plugins/modules/scaleway_volume.py +++ b/plugins/modules/scaleway_volume.py @@ -21,7 +21,13 @@ description: - "This module manages volumes on Scaleway account U(https://developer.scaleway.com)." extends_documentation_fragment: - community.general.scaleway +- community.general.attributes +attributes: + check_mode: + support: full + diff_mode: + support: none options: state: