Debian Codegraph @

ansible_collections/lowlydba/sqlserver/plugins/modules/resource_governor.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # (c) 2022, John McCall (@lowlydba)
5 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r'''
8 ---
9 module: resource_governor
10 short_description: Configures the resource governor on a SQL Server instance
11 description:
12 - Enables or disables and optionally sets the classifier function for the resource governor feature.
13 version_added: 0.1.0
14 options:
15 enabled:
16 description:
17 - Whether to enable or disable resource governor.
18 type: bool
19 required: false
20 default: true
21 classifier_function:
22 description:
23 - The name of the classifier function that resource governor will use. To clear the function, use the string C(NULL).
24 type: str
25 required: false
26 author: "John McCall (@lowlydba)"
27 requirements:
28 - L(dbatools,https://www.powershellgallery.com/packages/dbatools/) PowerShell module
29 extends_documentation_fragment:
30 - lowlydba.sqlserver.sql_credentials
31 - lowlydba.sqlserver.attributes.check_mode
32 - lowlydba.sqlserver.attributes.platform_all
33 '''
34
35 EXAMPLES = r'''
36 - name: Enable resource governor
37 lowlydba.sqlserver.resource_governor:
38 sql_instance: sql-01.myco.io
39 enabled: true
40 '''
41
42 RETURN = r'''
43 data:
44 description: Output from the C(Set-DbaResourceGovernor) function.
45 returned: success, but not in check_mode.
46 type: dict
47 '''