Debian Codegraph @

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

raw
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: networks_wireless_billing
9 short_description: Resource module for networks _wireless _billing
10 description:
11 - Manage operation update of the resource networks _wireless _billing.
12 - Update the billing settings.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 currency:
19 description: The currency code of this node group's billing plans.
20 type: str
21 networkId:
22 description: NetworkId path parameter. Network ID.
23 type: str
24 plans:
25 description: Array of billing plans in the node group. (Can configure a maximum
26 of 5).
27 elements: dict
28 suboptions:
29 bandwidthLimits:
30 description: The uplink bandwidth settings for the pricing plan.
31 suboptions:
32 limitDown:
33 description: The maximum download limit (integer, in Kbps). Null indicates
34 no limit.
35 type: int
36 limitUp:
37 description: The maximum upload limit (integer, in Kbps). Null indicates
38 no limit.
39 type: int
40 type: dict
41 id:
42 description: The id of the pricing plan to update.
43 type: str
44 price:
45 description: The price of the billing plan.
46 type: float
47 timeLimit:
48 description: The time limit of the pricing plan in minutes. Can be '1 hour',
49 '1 day', '1 week', or '30 days'.
50 type: str
51 type: list
52 requirements:
53 - meraki >= 2.4.9
54 - python >= 3.5
55 seealso:
56 - name: Cisco Meraki documentation for wireless updateNetworkWirelessBilling
57 description: Complete reference of the updateNetworkWirelessBilling API.
58 link: https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-billing
59 notes:
60 - SDK Method used are
61 wireless.Wireless.update_network_wireless_billing,
62 - Paths used are
63 put /networks/{networkId}/wireless/billing,
64 """
65
66 EXAMPLES = r"""
67 - name: Update all
68 cisco.meraki.networks_wireless_billing:
69 meraki_api_key: "{{ meraki_api_key }}"
70 meraki_base_url: "{{ meraki_base_url }}"
71 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
72 meraki_certificate_path: "{{ meraki_certificate_path }}"
73 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
74 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
75 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
76 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
77 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
78 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
79 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
80 meraki_output_log: "{{ meraki_output_log }}"
81 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
82 meraki_log_path: "{{ meraki_log_path }}"
83 meraki_print_console: "{{ meraki_print_console }}"
84 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
85 meraki_simulate: "{{ meraki_simulate }}"
86 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
87 meraki_caller: "{{ meraki_caller }}"
88 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
89 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
90 state: present
91 currency: USD
92 networkId: string
93 plans:
94 - bandwidthLimits:
95 limitDown: 1000000
96 limitUp: 1000000
97 id: '1'
98 price: 5.0
99 timeLimit: 1 hour
100 """
101 RETURN = r"""
102 meraki_response:
103 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
104 returned: always
105 type: dict
106 sample: >
107 {
108 "currency": "string",
109 "plans": [
110 {
111 "id": "string",
112 "price": 0,
113 "bandwidthLimits": {
114 "limitUp": 0,
115 "limitDown": 0
116 },
117 "timeLimit": "string"
118 }
119 ]
120 }
121 """