Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/organizations_branding_policies.py

raw symbols SCIP
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright (c) 2021, Cisco Systems
5 # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7 DOCUMENTATION = r"""
8 module: organizations_branding_policies
9 short_description: Resource module for organizations _brandingpolicies
10 description:
11 - Manage operations create, update and delete of the resource organizations _brandingpolicies.
12 - Add a new branding policy to an organization.
13 - Delete a branding policy.
14 - Update a branding policy.
15 version_added: '1.0.0'
16 extends_documentation_fragment:
17 - cisco.meraki.module
18 author: Francisco Munoz (@fmunoz)
19 options:
20 adminSettings:
21 description: Settings for describing which kinds of admins this policy applies
22 to.
23 suboptions:
24 appliesTo:
25 description: Which kinds of admins this policy applies to. Can be one of 'All
26 organization admins', 'All enterprise admins', 'All network admins', 'All
27 admins of networks...', 'All admins of networks tagged...', 'Specific admins...',
28 'All admins' or 'All SAML admins'.
29 type: str
30 values:
31 description: If 'appliesTo' is set to one of 'Specific admins...', 'All admins
32 of networks...' or 'All admins of networks tagged...', then you must specify
33 this 'values' property to provide the set of entities to apply the branding
34 policy to. For 'Specific admins...', specify an array of admin IDs. For
35 'All admins of networks...', specify an array of network IDs and/or configuration
36 template IDs. For 'All admins of networks tagged...', specify an array of
37 tag names.
38 elements: str
39 type: list
40 type: dict
41 brandingPolicyId:
42 description: BrandingPolicyId path parameter. Branding policy ID.
43 type: str
44 customLogo:
45 description: Properties describing the custom logo attached to the branding policy.
46 suboptions:
47 enabled:
48 description: Whether or not there is a custom logo enabled.
49 type: bool
50 image:
51 description: Properties for setting the image.
52 suboptions:
53 contents:
54 description: The file contents (a base 64 encoded string) of your new
55 logo.
56 type: str
57 format:
58 description: The format of the encoded contents. Supported formats are
59 'png', 'gif', and jpg'.
60 type: str
61 type: dict
62 type: dict
63 enabled:
64 description: Boolean indicating whether this policy is enabled.
65 type: bool
66 helpSettings:
67 description: Settings for describing the modifications to various Help page features.
68 Each property in this object accepts one of 'default or inherit' (do not modify
69 functionality), 'hide' (remove the section from Dashboard), or 'show' (always
70 show the section on Dashboard). Some properties in this object also accept custom
71 HTML used to replace the section on Dashboard; see the documentation for each
72 property to see the allowed values. Each property defaults to 'default or inherit'
73 when not provided.
74 suboptions:
75 apiDocsSubtab:
76 description: The 'Help -> API docs' subtab where a detailed description of
77 the Dashboard API is listed. Can be one of 'default or inherit', 'hide'
78 or 'show'.
79 type: str
80 casesSubtab:
81 description: The 'Help -> Cases' Dashboard subtab on which Cisco Meraki support
82 cases for this organization can be managed. Can be one of 'default or inherit',
83 'hide' or 'show'.
84 type: str
85 ciscoMerakiProductDocumentation:
86 description: The 'Product Manuals' section of the 'Help -> Get Help' subtab.
87 Can be one of 'default or inherit', 'hide', 'show', or a replacement custom
88 HTML string.
89 type: str
90 communitySubtab:
91 description: The 'Help -> Community' subtab which provides a link to Meraki
92 Community. Can be one of 'default or inherit', 'hide' or 'show'.
93 type: str
94 dataProtectionRequestsSubtab:
95 description: The 'Help -> Data protection requests' Dashboard subtab on which
96 requests to delete, restrict, or export end-user data can be audited. Can
97 be one of 'default or inherit', 'hide' or 'show'.
98 type: str
99 firewallInfoSubtab:
100 description: The 'Help -> Firewall info' subtab where necessary upstream firewall
101 rules for communication to the Cisco Meraki cloud are listed. Can be one
102 of 'default or inherit', 'hide' or 'show'.
103 type: str
104 getHelpSubtab:
105 description: The 'Help -> Get Help' subtab on which Cisco Meraki KB, Product
106 Manuals, and Support/Case Information are displayed. Note that if this subtab
107 is hidden, branding customizations for the KB on 'Get help', Cisco Meraki
108 product documentation, and support contact info will not be visible. Can
109 be one of 'default or inherit', 'hide' or 'show'.
110 type: str
111 getHelpSubtabKnowledgeBaseSearch:
112 description: The KB search box which appears on the Help page. Can be one
113 of 'default or inherit', 'hide', 'show', or a replacement custom HTML string.
114 type: str
115 hardwareReplacementsSubtab:
116 description: The 'Help -> Replacement info' subtab where important information
117 regarding device replacements is detailed. Can be one of 'default or inherit',
118 'hide' or 'show'.
119 type: str
120 helpTab:
121 description: The Help tab, under which all support information resides. If
122 this tab is hidden, no other 'Help' branding customizations will be visible.
123 Can be one of 'default or inherit', 'hide' or 'show'.
124 type: str
125 helpWidget:
126 description: The 'Help Widget' is a support widget which provides access to
127 live chat, documentation links, Sales contact info, and other contact avenues
128 to reach Meraki Support. Can be one of 'default or inherit', 'hide' or 'show'.
129 type: str
130 newFeaturesSubtab:
131 description: The 'Help -> New features' subtab where new Dashboard features
132 are detailed. Can be one of 'default or inherit', 'hide' or 'show'.
133 type: str
134 smForums:
135 description: The 'SM Forums' subtab which links to community-based support
136 for Cisco Meraki Systems Manager. Only configurable for organizations that
137 contain Systems Manager networks. Can be one of 'default or inherit', 'hide'
138 or 'show'.
139 type: str
140 supportContactInfo:
141 description: The 'Contact Meraki Support' section of the 'Help -> Get Help'
142 subtab. Can be one of 'default or inherit', 'hide', 'show', or a replacement
143 custom HTML string.
144 type: str
145 universalSearchKnowledgeBaseSearch:
146 description: The universal search box always visible on Dashboard will, by
147 default, present results from the Meraki KB. This configures whether these
148 Meraki KB results should be returned. Can be one of 'default or inherit',
149 'hide' or 'show'.
150 type: str
151 type: dict
152 name:
153 description: Name of the Dashboard branding policy.
154 type: str
155 organizationId:
156 description: OrganizationId path parameter. Organization ID.
157 type: str
158 requirements:
159 - meraki >= 2.4.9
160 - python >= 3.5
161 seealso:
162 - name: Cisco Meraki documentation for organizations createOrganizationBrandingPolicy
163 description: Complete reference of the createOrganizationBrandingPolicy API.
164 link: https://developer.cisco.com/meraki/api-v1/#!create-organization-branding-policy
165 - name: Cisco Meraki documentation for organizations deleteOrganizationBrandingPolicy
166 description: Complete reference of the deleteOrganizationBrandingPolicy API.
167 link: https://developer.cisco.com/meraki/api-v1/#!delete-organization-branding-policy
168 - name: Cisco Meraki documentation for organizations updateOrganizationBrandingPolicy
169 description: Complete reference of the updateOrganizationBrandingPolicy API.
170 link: https://developer.cisco.com/meraki/api-v1/#!update-organization-branding-policy
171 notes:
172 - SDK Method used are
173 organizations.Organizations.create_organization_branding_policy,
174 organizations.Organizations.delete_organization_branding_policy,
175 organizations.Organizations.update_organization_branding_policy,
176 - Paths used are
177 post /organizations/{organizationId}/brandingPolicies,
178 delete /organizations/{organizationId}/brandingPolicies/{brandingPolicyId},
179 put /organizations/{organizationId}/brandingPolicies/{brandingPolicyId},
180 """
181
182 EXAMPLES = r"""
183 - name: Create
184 cisco.meraki.organizations_branding_policies:
185 meraki_api_key: "{{ meraki_api_key }}"
186 meraki_base_url: "{{ meraki_base_url }}"
187 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
188 meraki_certificate_path: "{{ meraki_certificate_path }}"
189 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
190 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
191 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
192 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
193 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
194 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
195 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
196 meraki_output_log: "{{ meraki_output_log }}"
197 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
198 meraki_log_path: "{{ meraki_log_path }}"
199 meraki_print_console: "{{ meraki_print_console }}"
200 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
201 meraki_simulate: "{{ meraki_simulate }}"
202 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
203 meraki_caller: "{{ meraki_caller }}"
204 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
205 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
206 state: present
207 adminSettings:
208 appliesTo: All admins of networks...
209 values:
210 - N_1234
211 - L_5678
212 customLogo:
213 enabled: true
214 image:
215 contents: Hyperg26C8F4h8CvcoUqpA==
216 format: jpg
217 enabled: true
218 helpSettings:
219 apiDocsSubtab: default or inherit
220 casesSubtab: hide
221 ciscoMerakiProductDocumentation: show
222 communitySubtab: show
223 dataProtectionRequestsSubtab: default or inherit
224 firewallInfoSubtab: hide
225 getHelpSubtab: default or inherit
226 getHelpSubtabKnowledgeBaseSearch: <h1>Some custom HTML content</h1>
227 hardwareReplacementsSubtab: hide
228 helpTab: show
229 helpWidget: hide
230 newFeaturesSubtab: show
231 smForums: hide
232 supportContactInfo: show
233 universalSearchKnowledgeBaseSearch: hide
234 name: My Branding Policy
235 organizationId: string
236 - name: Update by id
237 cisco.meraki.organizations_branding_policies:
238 meraki_api_key: "{{ meraki_api_key }}"
239 meraki_base_url: "{{ meraki_base_url }}"
240 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
241 meraki_certificate_path: "{{ meraki_certificate_path }}"
242 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
243 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
244 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
245 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
246 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
247 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
248 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
249 meraki_output_log: "{{ meraki_output_log }}"
250 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
251 meraki_log_path: "{{ meraki_log_path }}"
252 meraki_print_console: "{{ meraki_print_console }}"
253 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
254 meraki_simulate: "{{ meraki_simulate }}"
255 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
256 meraki_caller: "{{ meraki_caller }}"
257 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
258 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
259 state: present
260 adminSettings:
261 appliesTo: All admins of networks...
262 values:
263 - N_1234
264 - L_5678
265 brandingPolicyId: string
266 customLogo:
267 enabled: true
268 image:
269 contents: Hyperg26C8F4h8CvcoUqpA==
270 format: jpg
271 enabled: true
272 helpSettings:
273 apiDocsSubtab: default or inherit
274 casesSubtab: hide
275 ciscoMerakiProductDocumentation: show
276 communitySubtab: show
277 dataProtectionRequestsSubtab: default or inherit
278 firewallInfoSubtab: hide
279 getHelpSubtab: default or inherit
280 getHelpSubtabKnowledgeBaseSearch: <h1>Some custom HTML content</h1>
281 hardwareReplacementsSubtab: hide
282 helpTab: show
283 helpWidget: hide
284 newFeaturesSubtab: show
285 smForums: hide
286 supportContactInfo: show
287 universalSearchKnowledgeBaseSearch: hide
288 name: My Branding Policy
289 organizationId: string
290 - name: Delete by id
291 cisco.meraki.organizations_branding_policies:
292 meraki_api_key: "{{ meraki_api_key }}"
293 meraki_base_url: "{{ meraki_base_url }}"
294 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
295 meraki_certificate_path: "{{ meraki_certificate_path }}"
296 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
297 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
298 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
299 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
300 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
301 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
302 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
303 meraki_output_log: "{{ meraki_output_log }}"
304 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
305 meraki_log_path: "{{ meraki_log_path }}"
306 meraki_print_console: "{{ meraki_print_console }}"
307 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
308 meraki_simulate: "{{ meraki_simulate }}"
309 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
310 meraki_caller: "{{ meraki_caller }}"
311 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
312 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
313 state: absent
314 brandingPolicyId: string
315 organizationId: string
316 """
317 RETURN = r"""
318 meraki_response:
319 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
320 returned: always
321 type: dict
322 sample: >
323 {
324 "name": "string",
325 "enabled": true,
326 "adminSettings": {
327 "appliesTo": "string",
328 "values": [
329 "string"
330 ]
331 },
332 "helpSettings": {
333 "helpTab": "string",
334 "getHelpSubtab": "string",
335 "communitySubtab": "string",
336 "casesSubtab": "string",
337 "dataProtectionRequestsSubtab": "string",
338 "getHelpSubtabKnowledgeBaseSearch": "string",
339 "universalSearchKnowledgeBaseSearch": "string",
340 "ciscoMerakiProductDocumentation": "string",
341 "supportContactInfo": "string",
342 "newFeaturesSubtab": "string",
343 "firewallInfoSubtab": "string",
344 "apiDocsSubtab": "string",
345 "hardwareReplacementsSubtab": "string",
346 "smForums": "string",
347 "helpWidget": "string"
348 },
349 "customLogo": {
350 "enabled": true,
351 "image": {
352 "preview": {
353 "url": "string",
354 "expiresAt": "string"
355 }
356 }
357 }
358 }
359 """