summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/meraki/plugins/doc_fragments
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
commit38b7c80217c4e72b1d8988eb1e60bb6e77334114 (patch)
tree356e9fd3762877d07cde52d21e77070aeff7e789 /ansible_collections/cisco/meraki/plugins/doc_fragments
parentAdding upstream version 7.7.0+dfsg. (diff)
downloadansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.tar.xz
ansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.zip
Adding upstream version 9.4.0+dfsg.upstream/9.4.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cisco/meraki/plugins/doc_fragments')
-rw-r--r--ansible_collections/cisco/meraki/plugins/doc_fragments/module.py126
-rw-r--r--ansible_collections/cisco/meraki/plugins/doc_fragments/module_info.py126
-rw-r--r--ansible_collections/cisco/meraki/plugins/doc_fragments/module_info_pagination.py27
3 files changed, 279 insertions, 0 deletions
diff --git a/ansible_collections/cisco/meraki/plugins/doc_fragments/module.py b/ansible_collections/cisco/meraki/plugins/doc_fragments/module.py
new file mode 100644
index 000000000..3a08c7cdc
--- /dev/null
+++ b/ansible_collections/cisco/meraki/plugins/doc_fragments/module.py
@@ -0,0 +1,126 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2021, Cisco Systems
+# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+
+class ModuleDocFragment(object):
+
+ # Standard files documentation fragment
+ DOCUMENTATION = r'''
+options:
+ meraki_base_url:
+ description:
+ - meraki_base_url (string), preceding all endpoint resources
+ type: str
+ default: https://api.meraki.com/api/v1
+ meraki_api_key:
+ description:
+ - meraki_api_key (string), API key generated in dashboard; can also be set as an environment variable MERAKI_DASHBOARD_API_KEY
+ type: str
+ required: true
+ meraki_single_request_timeout:
+ description:
+ - meraki_single_request_timeout (integer), maximum number of seconds for each API call
+ type: int
+ default: 60
+ meraki_certificate_path:
+ description:
+ - meraki_certificate_path (string), path for TLS/SSL certificate verification if behind local proxy
+ type: str
+ default: ''
+ meraki_requests_proxy:
+ description:
+ - meraki_requests_proxy (string), proxy server and port, if needed, for HTTPS
+ type: str
+ default: ''
+ meraki_wait_on_rate_limit:
+ description:
+ - meraki_wait_on_rate_limit (boolean), retry if 429 rate limit error encountered?
+ type: bool
+ default: true
+ meraki_nginx_429_retry_wait_time:
+ description:
+ - meraki_nginx_429_retry_wait_time (integer), Nginx 429 retry wait time
+ type: int
+ default: 60
+ meraki_action_batch_retry_wait_time:
+ description:
+ - meraki_action_batch_retry_wait_time (integer), action batch concurrency error retry wait time
+ type: int
+ default: 60
+ meraki_retry_4xx_error:
+ description:
+ - meraki_retry_4xx_error (boolean), retry if encountering other 4XX error (besides 429)?
+ type: bool
+ default: false
+ meraki_retry_4xx_error_wait_time:
+ description:
+ - meraki_retry_4xx_error_wait_time (integer), other 4XX error retry wait time
+ type: int
+ default: 60
+ meraki_maximum_retries:
+ description:
+ - meraki_maximum_retries (integer), retry up to this many times when encountering 429s or other server-side errors
+ type: int
+ default: 2
+ meraki_output_log:
+ description:
+ - meraki_output_log (boolean), create an output log file?
+ type: bool
+ default: true
+ meraki_log_file_prefix:
+ description:
+ - meraki_log_file_prefix (string), log file name appended with date and timestamp
+ type: str
+ default: meraki_api_
+ meraki_log_path:
+ description:
+ - log_path (string), path to output log; by default, working directory of script if not specified
+ type: str
+ default: ''
+ meraki_print_console:
+ description:
+ - meraki_print_console (boolean), print logging output to console?
+ type: bool
+ default: true
+ meraki_suppress_logging:
+ description:
+ - meraki_suppress_logging (boolean), disable all logging? you're on your own then!
+ type: bool
+ default: false
+ meraki_simulate:
+ description:
+ - meraki_simulate (boolean), simulate POST/PUT/DELETE calls to prevent changes?
+ type: bool
+ default: false
+ meraki_be_geo_id:
+ description:
+ - meraki_be_geo_id (string), optional partner identifier for API usage tracking; can also be set as an environment variable BE_GEO_ID
+ type: str
+ default: ''
+ meraki_caller:
+ description:
+ - meraki_caller (string), optional identifier for API usage tracking; can also be set as an environment variable MERAKI_PYTHON_SDK_CALLER
+ type: str
+ default: ''
+ meraki_use_iterator_for_get_pages:
+ description:
+ - meraki_use_iterator_for_get_pages (boolean), list* methods will return an iterator with each object instead of a complete list with all items
+ type: bool
+ default: false
+ meraki_inherit_logging_config:
+ description:
+ - meraki_inherit_logging_config (boolean), Inherits your own logger instance
+ type: bool
+ default: false
+notes:
+ - "Does not support C(check_mode)"
+ - "The plugin runs on the control node and does not use any ansible connection plugins, but instead the embedded connection manager from Cisco DNAC SDK"
+ - "The parameters starting with dnac_ are used by the Cisco DNAC Python SDK to establish the connection"
+'''
diff --git a/ansible_collections/cisco/meraki/plugins/doc_fragments/module_info.py b/ansible_collections/cisco/meraki/plugins/doc_fragments/module_info.py
new file mode 100644
index 000000000..f40beec68
--- /dev/null
+++ b/ansible_collections/cisco/meraki/plugins/doc_fragments/module_info.py
@@ -0,0 +1,126 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2021, Cisco Systems
+# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+
+class ModuleDocFragment(object):
+
+ # Standard files documentation fragment
+ DOCUMENTATION = r'''
+options:
+ meraki_api_key:
+ description:
+ - meraki_api_key (string), API key generated in dashboard; can also be set as an environment variable MERAKI_DASHBOARD_API_KEY
+ type: str
+ required: true
+ meraki_base_url:
+ description:
+ - meraki_base_url (string), preceding all endpoint resources
+ type: str
+ default: https://api.meraki.com/api/v1
+ meraki_single_request_timeout:
+ description:
+ - meraki_single_request_timeout (integer), maximum number of seconds for each API call
+ type: int
+ default: 60
+ meraki_certificate_path:
+ description:
+ - meraki_certificate_path (string), path for TLS/SSL certificate verification if behind local proxy
+ type: str
+ default: ''
+ meraki_requests_proxy:
+ description:
+ - meraki_requests_proxy (string), proxy server and port, if needed, for HTTPS
+ type: str
+ default: ''
+ meraki_wait_on_rate_limit:
+ description:
+ - meraki_wait_on_rate_limit (boolean), retry if 429 rate limit error encountered?
+ type: bool
+ default: true
+ meraki_nginx_429_retry_wait_time:
+ description:
+ - meraki_nginx_429_retry_wait_time (integer), Nginx 429 retry wait time
+ type: int
+ default: 60
+ meraki_action_batch_retry_wait_time:
+ description:
+ - meraki_action_batch_retry_wait_time (integer), action batch concurrency error retry wait time
+ type: int
+ default: 60
+ meraki_retry_4xx_error:
+ description:
+ - meraki_retry_4xx_error (boolean), retry if encountering other 4XX error (besides 429)?
+ type: bool
+ default: false
+ meraki_retry_4xx_error_wait_time:
+ description:
+ - meraki_retry_4xx_error_wait_time (integer), other 4XX error retry wait time
+ type: int
+ default: 60
+ meraki_maximum_retries:
+ description:
+ - meraki_maximum_retries (integer), retry up to this many times when encountering 429s or other server-side errors
+ type: int
+ default: 2
+ meraki_output_log:
+ description:
+ - meraki_output_log (boolean), create an output log file?
+ type: bool
+ default: true
+ meraki_log_file_prefix:
+ description:
+ - meraki_log_file_prefix (string), log file name appended with date and timestamp
+ type: str
+ default: meraki_api_
+ meraki_log_path:
+ description:
+ - log_path (string), path to output log; by default, working directory of script if not specified
+ type: str
+ default: ''
+ meraki_print_console:
+ description:
+ - meraki_print_console (boolean), print logging output to console?
+ type: bool
+ default: true
+ meraki_suppress_logging:
+ description:
+ - meraki_suppress_logging (boolean), disable all logging? you're on your own then!
+ type: bool
+ default: false
+ meraki_simulate:
+ description:
+ - meraki_simulate (boolean), simulate POST/PUT/DELETE calls to prevent changes?
+ type: bool
+ default: false
+ meraki_be_geo_id:
+ description:
+ - meraki_be_geo_id (string), optional partner identifier for API usage tracking; can also be set as an environment variable BE_GEO_ID
+ type: str
+ default: ''
+ meraki_caller:
+ description:
+ - meraki_caller (string), optional identifier for API usage tracking; can also be set as an environment variable MERAKI_PYTHON_SDK_CALLER
+ type: str
+ default: ''
+ meraki_use_iterator_for_get_pages:
+ description:
+ - meraki_use_iterator_for_get_pages (boolean), list* methods will return an iterator with each object instead of a complete list with all items
+ type: bool
+ default: false
+ meraki_inherit_logging_config:
+ description:
+ - meraki_inherit_logging_config (boolean), Inherits your own logger instance
+ type: bool
+ default: false
+notes:
+ - "Supports C(check_mode)"
+ - "The plugin runs on the control node and does not use any ansible connection plugins, but instead the embedded connection manager from Cisco meraki SDK"
+ - "The parameters starting with meraki_ are used by the Cisco meraki Python SDK to establish the connection"
+'''
diff --git a/ansible_collections/cisco/meraki/plugins/doc_fragments/module_info_pagination.py b/ansible_collections/cisco/meraki/plugins/doc_fragments/module_info_pagination.py
new file mode 100644
index 000000000..cb58b4ac8
--- /dev/null
+++ b/ansible_collections/cisco/meraki/plugins/doc_fragments/module_info_pagination.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2021, Cisco Systems
+# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+
+class ModuleDocFragment(object):
+
+ # Standard files documentation fragment
+ DOCUMENTATION = r'''
+options:
+ total_pages:
+ description:
+ - total_pages(int), use with perPage to get total results up to total_pages*perPage; -1 for all pages
+ type: str
+ required: true
+ direction:
+ description:
+ - direction (string), direction to paginate, either "next" (default) or "prev" page
+ type: str
+ default: https://api.meraki.com/api/v1
+'''