Skip to content

Commit f384a0c

Browse files
Merge pull request #43 from chkp-shirango/master
Fix documentation
2 parents eee21f4 + 7014020 commit f384a0c

9 files changed

+56
-58
lines changed

plugins/modules/cp_mgmt_add_domain.py

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -43,41 +43,41 @@
4343
servers:
4444
description:
4545
- Domain servers. When this field is provided, 'set-domain' command is executed asynchronously.
46-
type: dict
46+
type: list
4747
suboptions:
48+
name:
49+
description:
50+
- Object name. Must be unique in the domain.
51+
type: str
52+
ip_address:
53+
description:
54+
- IPv4 or IPv6 address. If both addresses are required use ipv4-address and ipv6-address fields explicitly.
55+
type: str
56+
ipv4_address:
57+
description:
58+
- IPv4 address.
59+
type: str
60+
ipv6_address:
61+
description:
62+
- IPv6 address.
63+
type: str
64+
multi_domain_server:
65+
description:
66+
- Multi Domain server name or UID.
67+
type: str
68+
active:
69+
description:
70+
- Activate domain server. Only one domain server is allowed to be active
71+
type: bool
72+
skip_start_domain_server:
73+
description:
74+
- Set this value to be true to prevent starting the new created domain.
75+
type: bool
76+
type:
4877
description:
49-
- Adds to collection of values
50-
type: list
51-
suboptions:
52-
name:
53-
description:
54-
- Object name. Must be unique in the domain.
55-
type: str
56-
ip_address:
57-
description:
58-
- IPv4 or IPv6 address. If both addresses are required use ipv4-address and ipv6-address fields explicitly.
59-
type: str
60-
ipv4_address:
61-
description:
62-
- IPv4 address.
63-
type: str
64-
ipv6_address:
65-
description:
66-
- IPv6 address.
67-
type: str
68-
multi_domain_server:
69-
description:
70-
- Multi Domain server name or UID.
71-
type: str
72-
skip_start_domain_server:
73-
description:
74-
- Set this value to be true to prevent starting the new created domain.
75-
type: bool
76-
type:
77-
description:
78-
- Domain server type.
79-
type: str
80-
choices: ['management server', 'log server', 'smc']
78+
- Domain server type.
79+
type: str
80+
choices: ['management server', 'log server', 'smc']
8181
color:
8282
description:
8383
- Color of the object. Should be one of existing colors.
@@ -108,7 +108,7 @@
108108
- Collection of tag identifiers. Note, The list of tags can not be modified in a single command together with the domain servers. To modify
109109
tags, please use the separate 'set-domain' command, without providing the list of domain servers.
110110
type: list
111-
extends_documentation_fragment: checkpoint_objects
111+
extends_documentation_fragment: check_point.mgmt.checkpoint_commands
112112
"""
113113

114114
EXAMPLES = """
@@ -119,7 +119,6 @@
119119
ip_address: 192.0.2.1
120120
multi_domain_server: MDM_Server
121121
name: domain1_ManagementServer_1
122-
state: present
123122
"""
124123

125124
RETURN = """
@@ -160,9 +159,9 @@ def main():
160159
argument_spec.update(checkpoint_argument_spec_for_commands)
161160

162161
module = AnsibleModule(argument_spec=argument_spec)
163-
api_call_object = 'add-domain'
162+
command = 'add-domain'
164163

165-
result = api_command(module, api_call_object)
164+
result = api_command(module, command)
166165
module.exit_json(**result)
167166

168167

plugins/modules/cp_mgmt_delete_domain.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,13 @@
5454
description:
5555
- Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
5656
type: bool
57-
extends_documentation_fragment: checkpoint_objects
57+
extends_documentation_fragment: check_point.mgmt.checkpoint_commands
5858
"""
5959

6060
EXAMPLES = """
6161
- name: delete-domain
6262
cp_mgmt_delete_domain:
6363
name: domain1
64-
state: absent
6564
"""
6665

6766
RETURN = """
@@ -85,9 +84,9 @@ def main():
8584
argument_spec.update(checkpoint_argument_spec_for_commands)
8685

8786
module = AnsibleModule(argument_spec=argument_spec)
88-
api_call_object = 'delete-domain'
87+
command = 'delete-domain'
8988

90-
result = api_command(module, api_call_object)
89+
result = api_command(module, command)
9190
module.exit_json(**result)
9291

9392

plugins/modules/cp_mgmt_identity_tag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
description:
7474
- Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
7575
type: bool
76-
extends_documentation_fragment: checkpoint_objects
76+
extends_documentation_fragment: check_point.mgmt.checkpoint_objects
7777
"""
7878

7979
EXAMPLES = """

plugins/modules/cp_mgmt_identity_tag_facts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
- Indicates which domains to process the commands on. It cannot be used with the details-level full, must be run from the System Domain only and
8686
with ignore-warnings true. Valid values are, CURRENT_DOMAIN, ALL_DOMAINS_ON_THIS_SERVER.
8787
type: list
88-
extends_documentation_fragment: checkpoint_facts
88+
extends_documentation_fragment: check_point.mgmt.checkpoint_facts
8989
"""
9090

9191
EXAMPLES = """

plugins/modules/cp_mgmt_install_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
description:
4040
- Check Point host(s) with one or more Management Software Blades enabled. The targets can be identified by their name or unique identifier.
4141
type: list
42-
extends_documentation_fragment: checkpoint_commands
42+
extends_documentation_fragment: check_point.mgmt.checkpoint_commands
4343
"""
4444

4545
EXAMPLES = """

plugins/modules/cp_mgmt_mds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
description:
127127
- Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
128128
type: bool
129-
extends_documentation_fragment: checkpoint_objects
129+
extends_documentation_fragment: check_point.mgmt.checkpoint_objects
130130
"""
131131

132132
EXAMPLES = """

plugins/modules/cp_mgmt_set_domain.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@
7979
- Domain server type.
8080
type: str
8181
choices: ['management server', 'log server', 'smc']
82-
remove:
82+
remove:
83+
description:
84+
- Remove from collection of values
85+
type: list
86+
suboptions:
87+
name:
8388
description:
84-
- Remove from collection of values
85-
type: list
86-
suboptions:
87-
name:
88-
description:
89-
- Object name. Must be unique in the domain.
90-
type: str
89+
- Object name. Must be unique in the domain.
90+
type: str
9191
color:
9292
description:
9393
- Color of the object. Should be one of existing colors.
@@ -118,7 +118,7 @@
118118
- Collection of tag identifiers. Note, The list of tags can not be modified in a single command together with the domain servers. To modify
119119
tags, please use the separate 'set-domain' command, without providing the list of domain servers.
120120
type: list
121-
extends_documentation_fragment: checkpoint_objects
121+
extends_documentation_fragment: check_point.mgmt.checkpoint_commands
122122
"""
123123

124124
EXAMPLES = """
@@ -169,9 +169,9 @@ def main():
169169
argument_spec.update(checkpoint_argument_spec_for_commands)
170170

171171
module = AnsibleModule(argument_spec=argument_spec)
172-
api_call_object = 'set-domain'
172+
command = 'set-domain'
173173

174-
result = api_command(module, api_call_object)
174+
result = api_command(module, command)
175175
module.exit_json(**result)
176176

177177

plugins/modules/cp_mgmt_trusted_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
description:
136136
- Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
137137
type: bool
138-
extends_documentation_fragment: checkpoint_objects
138+
extends_documentation_fragment: check_point.mgmt.checkpoint_objects
139139
"""
140140

141141
EXAMPLES = """

plugins/modules/cp_mgmt_trusted_client_facts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
- Sorts results by the given field in descending order.
8181
type: str
8282
choices: ['name']
83-
extends_documentation_fragment: checkpoint_facts
83+
extends_documentation_fragment: check_point.mgmt.checkpoint_facts
8484
"""
8585

8686
EXAMPLES = """

0 commit comments

Comments
 (0)