Debian Codegraph @

ansible_collections/check_point/mgmt/plugins/modules/cp_mgmt_delete_infinity_idp.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 #
4 # Ansible module to manage CheckPoint Firewall (c) 2019
5 #
6 # Ansible is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # Ansible is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with Ansible. If not, see <http://www.gnu.org/licenses/>.
18 #
19
20 from __future__ import (absolute_import, division, print_function)
21
22 __metaclass__ = type
23
24 ANSIBLE_METADATA = {'metadata_version': '1.1',
25 'status': ['preview'],
26 'supported_by': 'community'}
27
28 DOCUMENTATION = """
29 ---
30 module: cp_mgmt_delete_infinity_idp
31 short_description: Delete Infinity Identity Provider from the Infinity Portal using object name or uid.
32 description:
33 - Delete Infinity Identity Provider from the Infinity Portal using object name or uid.
34 - All operations are performed over Web Services API.
35 - Available from R82 management version.
36 version_added: "6.0.0"
37 author: "Eden Brillant (@chkp-edenbr)"
38 options:
39 name:
40 description:
41 - Object name.
42 type: str
43 details_level:
44 description:
45 - The level of detail for some of the fields in the response can vary from showing only the UID value of the object to a fully detailed
46 representation of the object.
47 type: str
48 choices: ['uid', 'standard', 'full']
49 ignore_warnings:
50 description:
51 - Apply changes ignoring warnings.
52 type: bool
53 ignore_errors:
54 description:
55 - 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.
56 type: bool
57 extends_documentation_fragment: check_point.mgmt.checkpoint_commands
58 """
59
60 EXAMPLES = """
61 - name: delete-infinity-idp
62 cp_mgmt_delete_infinity_idp:
63 name: Azure1_Infinity
64 """
65
66 RETURN = """
67 cp_mgmt_delete_infinity_idp:
68 description: The checkpoint delete-infinity-idp output.
69 returned: always.
70 type: dict
71 """
72
73 from ansible.module_utils.basic import AnsibleModule
74 from ansible_collections.check_point.mgmt.plugins.module_utils.checkpoint import checkpoint_argument_spec_for_commands, api_command
75
76
77 def main():
78 argument_spec = dict(
79 name=dict(type='str'),
80 details_level=dict(type='str', choices=['uid', 'standard', 'full']),
81 ignore_warnings=dict(type='bool'),
82 ignore_errors=dict(type='bool')
83 )
84 argument_spec.update(checkpoint_argument_spec_for_commands)
85
86 module = AnsibleModule(argument_spec=argument_spec)
87
88 command = "delete-infinity-idp"
89
90 result = api_command(module, command)
91 module.exit_json(**result)
92
93
94 if __name__ == '__main__':
95 main()