Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Sep 25, 2023
1 parent 3a91aee commit f8d396e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 41 deletions.
78 changes: 39 additions & 39 deletions plugins/modules/hcloud_firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,45 +69,7 @@
applied_to:
description:
- Resources the Firewall should be applied to.
- This will remove any additional resource and apply the missing resource.
type: list
elements: dict
suboptions:
type:
description:
- Type of the resource.
type: str
choices: [server, label_selector]
label_selector:
description:
- Label selector value, required if I(type) is `label_selector`.
type: str
server:
description:
- ID or name of the server, required if I(type) is `server`.
type: str
apply_to:
description:
- Resources the Firewall should be applied to.
type: list
elements: dict
suboptions:
type:
description:
- Type of the resource.
type: str
choices: [server, label_selector]
label_selector:
description:
- Label selector value, required if I(type) is `label_selector`.
type: str
server:
description:
- ID or name of the server, required if I(type) is `server`.
type: str
remove_from:
description:
- Resources the Firewall should be removed from.
- This will remove any additional resource and apply the missing resource.
type: list
elements: dict
suboptions:
Expand All @@ -124,6 +86,44 @@
description:
- ID or name of the server, required if I(type) is `server`.
type: str
# apply_to:
# description:
# - Resources the Firewall should be applied to.
# type: list
# elements: dict
# suboptions:
# type:
# description:
# - Type of the resource.
# type: str
# choices: [server, label_selector]
# label_selector:
# description:
# - Label selector value, required if I(type) is `label_selector`.
# type: str
# server:
# description:
# - ID or name of the server, required if I(type) is `server`.
# type: str
# remove_from:
# description:
# - Resources the Firewall should be removed from.
# type: list
# elements: dict
# suboptions:
# type:
# description:
# - Type of the resource.
# type: str
# choices: [server, label_selector]
# label_selector:
# description:
# - Label selector value, required if I(type) is `label_selector`.
# type: str
# server:
# description:
# - ID or name of the server, required if I(type) is `server`.
# type: str
state:
description:
- State of the firewall.
Expand Down
5 changes: 3 additions & 2 deletions plugins/modules/hcloud_firewall_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
var: output
"""

RETURN = """
Expand Down Expand Up @@ -140,7 +140,8 @@
type: int
sample: 12345
"""
from typing import Dict, Any, List
from typing import Any, Dict, List

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.common.text.converters import to_native

Expand Down

0 comments on commit f8d396e

Please sign in to comment.