Skip to content

Commit 0339d63

Browse files
authored
Updated assets for ansible collection (#179)
Signed-off-by: Sagar <[email protected]>
1 parent 20d2fdc commit 0339d63

File tree

73 files changed

+628
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+628
-153
lines changed

docs/avi_backupconfiguration.rst

+23
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,29 @@ Parameters
408408
- Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
409409
</div>
410410
</td>
411+
</tr>
412+
<tr>
413+
<td colspan="2">
414+
<div class="ansibleOptionAnchor" id="parameter-"></div>
415+
<b>s3_bucket_folder</b>
416+
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
417+
<div style="font-size: small">
418+
<span style="color: purple">str</span>
419+
</div>
420+
</td>
421+
<td>
422+
</td>
423+
<td>
424+
<div style="font-size: small">
425+
- The folder name in s3 bucket where backup will be stored.
426+
</div>
427+
<div style="font-size: small">
428+
- Field introduced in 30.1.1.
429+
</div>
430+
<div style="font-size: small">
431+
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
432+
</div>
433+
</td>
411434
</tr>
412435
<tr>
413436
<td colspan="2">

plugins/module_utils/saml_avi_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from ssl import SSLError
1717
import time
1818
import logging
19-
from bs4 import BeautifulSoup
2019
import warnings
2120

2221
logger = logging.getLogger(__name__)
@@ -134,6 +133,7 @@ def saml_assertion(self, username, password):
134133
idp_resp.status_code, idp_resp.text))
135134
raise APIError('Status Code %s msg %s' % (
136135
idp_resp.status_code, idp_resp.text), resp)
136+
from bs4 import BeautifulSoup
137137
saml_resp = BeautifulSoup(idp_resp.text, features="html.parser")
138138
saml_response_match = saml_resp.find('textarea').string
139139
if not saml_response_match:
@@ -159,6 +159,7 @@ def authenticate_session(self):
159159
# Assert SAML response
160160
controller_session, resp = self.saml_assertion(username, password)
161161
content = resp.text
162+
from bs4 import BeautifulSoup
162163
saml_resp = BeautifulSoup(resp.text, features="html.parser")
163164
saml_response = saml_resp.find('textarea').string
164165
relay_state = re.search(WS1loginSAMLApiSession.response_relay_state_regex, content, re.M |

plugins/modules/avi_albservicesconfig.py

+37-11
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@
4848
type: str
4949
app_signature_config:
5050
description:
51-
- Default values to be used for application signature sync.
51+
- Default values for application signature sync.
5252
- Field introduced in 20.1.4.
5353
- Allowed in enterprise edition with any value, essentials edition with any value, basic edition with any value, enterprise with cloud services
5454
- edition.
5555
required: true
5656
type: dict
5757
asset_contact:
5858
description:
59-
- Information about the default contact for this controller cluster.
59+
- Default contact for this controller cluster.
6060
- Field introduced in 20.1.1.
6161
- Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
6262
type: dict
6363
case_config:
6464
description:
65-
- Default values to be used for pulse case management.
65+
- Default values for case management.
6666
- Field introduced in 21.1.1.
6767
- Allowed in enterprise edition with any value, essentials edition with any value, basic edition with any value, enterprise with cloud services
6868
- edition.
@@ -77,7 +77,7 @@
7777
type: dict
7878
feature_opt_in_status:
7979
description:
80-
- Information about the portal features opted in for controller.
80+
- Features opt-in for pulse cloud services.
8181
- Field introduced in 20.1.1.
8282
required: true
8383
type: dict
@@ -97,6 +97,21 @@
9797
- salesforce,myvmware,systest), enterprise with cloud services edition.
9898
- Default value when not specified in API or module is interpreted by Avi Controller as MYVMWARE.
9999
type: str
100+
name:
101+
description:
102+
- Name of the albservicesconfig object.
103+
- Field introduced in 30.1.1.
104+
- Allowed in enterprise edition with any value, essentials edition with any value, basic edition with any value, enterprise with cloud services
105+
- edition.
106+
type: str
107+
operations_config:
108+
description:
109+
- Operations configuration.
110+
- Field deprecated in 30.1.1.
111+
- Field introduced in 22.1.3.
112+
- Allowed in enterprise edition with any value, essentials edition with any value, basic edition with any value, enterprise with cloud services
113+
- edition.
114+
type: dict
100115
polling_interval:
101116
description:
102117
- Time interval in minutes.
@@ -107,7 +122,7 @@
107122
type: int
108123
portal_url:
109124
description:
110-
- The fqdn or ip address of the customer portal.
125+
- The fqdn or ip address of the pulse cloud services.
111126
- Field introduced in 18.2.6.
112127
- Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
113128
required: true
@@ -122,32 +137,40 @@
122137
type: dict
123138
split_proxy_configuration:
124139
description:
125-
- Split proxy configuration to connect external pulse services.
140+
- Split proxy configuration to connect external pulse cloud services.
126141
- Field introduced in 20.1.1.
127142
- Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
128143
type: dict
144+
tenant_ref:
145+
description:
146+
- Tenant uuid associated with the object.
147+
- It is a reference to an object of type tenant.
148+
- Field introduced in 30.1.1.
149+
- Allowed in enterprise edition with any value, essentials edition with any value, basic edition with any value, enterprise with cloud services
150+
- edition.
151+
type: str
129152
url:
130153
description:
131154
- Avi controller URL of the object.
132155
type: str
133156
use_split_proxy:
134157
description:
135-
- By default, pulse uses proxy added in system configuration.
136-
- If pulse needs to use a seperate proxy, set this flag to true and configure split proxy configuration.
158+
- By default, pulse cloud services uses proxy added in system configuration.
159+
- If it should use a separate proxy, set this flag to true and configure split proxy configuration.
137160
- Field introduced in 20.1.1.
138161
- Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
139162
- Default value when not specified in API or module is interpreted by Avi Controller as False.
140163
type: bool
141164
use_tls:
142165
description:
143-
- Secure the controller to pulse communication over tls.
166+
- Secure the controller to pulse cloud services communication over tls.
144167
- Field introduced in 20.1.3.
145168
- Allowed in enterprise edition with any value, basic edition with any value, enterprise with cloud services edition.
146169
- Default value when not specified in API or module is interpreted by Avi Controller as True.
147170
type: bool
148171
user_agent_db_config:
149172
description:
150-
- Default values to be used for user agent db service.
173+
- Default values for user agent db service.
151174
- Field introduced in 21.1.1.
152175
- Allowed in enterprise edition with any value, essentials edition with any value, basic edition with any value, enterprise with cloud services
153176
- edition.
@@ -160,7 +183,7 @@
160183
type: str
161184
waf_config:
162185
description:
163-
- Default values to be used for pulse waf management.
186+
- Default values for waf management.
164187
- Field introduced in 21.1.1.
165188
- Allowed in essentials edition with any value, basic edition with any value, enterprise, enterprise with cloud services edition.
166189
required: true
@@ -217,10 +240,13 @@ def main():
217240
feature_opt_in_status=dict(type='dict', required=True),
218241
ip_reputation_config=dict(type='dict', required=True),
219242
mode=dict(type='str',),
243+
name=dict(type='str',),
244+
operations_config=dict(type='dict',),
220245
polling_interval=dict(type='int',),
221246
portal_url=dict(type='str', required=True),
222247
saas_licensing_config=dict(type='dict', required=True),
223248
split_proxy_configuration=dict(type='dict',),
249+
tenant_ref=dict(type='str',),
224250
url=dict(type='str',),
225251
use_split_proxy=dict(type='bool',),
226252
use_tls=dict(type='bool',),

plugins/modules/avi_albservicesfileupload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
type: str
8181
status:
8282
description:
83-
- Captures status for file upload.
83+
- Status of file upload.
8484
- Enum options - SYSERR_SUCCESS, SYSERR_FAILURE, SYSERR_OUT_OF_MEMORY, SYSERR_NO_ENT, SYSERR_INVAL, SYSERR_ACCESS, SYSERR_FAULT, SYSERR_IO,
8585
- SYSERR_TIMEOUT, SYSERR_NOT_SUPPORTED, SYSERR_NOT_READY, SYSERR_UPGRADE_IN_PROGRESS, SYSERR_WARM_START_IN_PROGRESS, SYSERR_TRY_AGAIN,
8686
- SYSERR_NOT_UPGRADING, SYSERR_PENDING, SYSERR_EVENT_GEN_FAILURE, SYSERR_CONFIG_PARAM_MISSING, SYSERR_RANGE, SYSERR_BAD_REQUEST...

plugins/modules/avi_albservicesjob.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
type: dict
6363
end_time:
6464
description:
65-
- The time at which the albservicesjob is ended.
65+
- Time at which the albservicesjob ended.
6666
- Field introduced in 21.1.3.
6767
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
6868
type: dict
@@ -79,15 +79,16 @@
7979
- Field introduced in 22.1.1.
8080
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
8181
type: list
82+
elements: dict
8283
pulse_job_id:
8384
description:
84-
- A unique identifier for this job entry on the pulse portal.
85+
- A unique identifier for this job entry on the pulse cloud services.
8586
- Field introduced in 21.1.3.
8687
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
8788
type: str
8889
pulse_sync_status:
8990
description:
90-
- Status of sync to pulse(result uploads/state updates).
91+
- Status of sync to pulse cloud services(result uploads/state updates).
9192
- Field introduced in 22.1.1.
9293
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
9394
type: bool
@@ -99,14 +100,14 @@
99100
type: str
100101
start_time:
101102
description:
102-
- The time at which the albservicesjob is started.
103+
- Time at which the albservicesjob started.
103104
- Field introduced in 21.1.3.
104105
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
105106
type: dict
106107
status:
107108
description:
108109
- The status of the albservicesjob.
109-
- Enum options - UNDETERMINED, PENDING, IN_PROGRESS, COMPLETED, FAILED.
110+
- Enum options - UNDETERMINED, PENDING, IN_PROGRESS, COMPLETED, FAILED, NOT_ENABLED.
110111
- Field introduced in 21.1.3.
111112
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
112113
- Default value when not specified in API or module is interpreted by Avi Controller as PENDING.
@@ -183,7 +184,7 @@ def main():
183184
configpb_attributes=dict(type='dict',),
184185
end_time=dict(type='dict',),
185186
name=dict(type='str', required=True),
186-
params=dict(type='list',),
187+
params=dict(type='list', elements='dict',),
187188
pulse_job_id=dict(type='str',),
188189
pulse_sync_status=dict(type='bool',),
189190
result=dict(type='str',),

plugins/modules/avi_authmappingprofile.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
6868
required: true
6969
type: list
70+
elements: dict
7071
name:
7172
description:
7273
- Name of the authmappingprofile.
@@ -146,7 +147,7 @@ def main():
146147
avi_patch_value=dict(type='str',),
147148
configpb_attributes=dict(type='dict',),
148149
description=dict(type='str',),
149-
mapping_rules=dict(type='list', required=True),
150+
mapping_rules=dict(type='list', elements='dict', required=True),
150151
name=dict(type='str', required=True),
151152
tenant_ref=dict(type='str',),
152153
type=dict(type='str', required=True),

plugins/modules/avi_availabilityzone.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
- Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
9494
required: true
9595
type: list
96+
elements: str
9697
extends_documentation_fragment:
9798
- vmware.alb.avi
9899
'''
@@ -144,7 +145,7 @@ def main():
144145
tenant_ref=dict(type='str',),
145146
url=dict(type='str',),
146147
uuid=dict(type='str',),
147-
vcenter_refs=dict(type='list', required=True),
148+
vcenter_refs=dict(type='list', elements='str', required=True),
148149
)
149150
argument_specs.update(avi_common_argument_spec())
150151
module = AnsibleModule(

plugins/modules/avi_backupconfiguration.py

+7
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@
119119
- Remote destination.
120120
- Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
121121
type: str
122+
s3_bucket_folder:
123+
description:
124+
- The folder name in s3 bucket where backup will be stored.
125+
- Field introduced in 30.1.1.
126+
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
127+
type: str
122128
save_local:
123129
description:
124130
- Local backup.
@@ -211,6 +217,7 @@ def main():
211217
remote_directory=dict(type='str',),
212218
remote_file_transfer_protocol=dict(type='str',),
213219
remote_hostname=dict(type='str',),
220+
s3_bucket_folder=dict(type='str',),
214221
save_local=dict(type='bool',),
215222
ssh_user_ref=dict(type='str',),
216223
tenant_ref=dict(type='str',),

plugins/modules/avi_botipreputationtypemapping.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
- Field introduced in 21.1.1.
5353
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
5454
type: list
55+
elements: dict
5556
name:
5657
description:
5758
- The name of this mapping.
@@ -121,7 +122,7 @@ def main():
121122
avi_api_patch_op=dict(choices=['add', 'replace', 'delete', 'remove']),
122123
avi_patch_path=dict(type='str',),
123124
avi_patch_value=dict(type='str',),
124-
ip_reputation_mappings=dict(type='list',),
125+
ip_reputation_mappings=dict(type='list', elements='dict',),
125126
name=dict(type='str', required=True),
126127
tenant_ref=dict(type='str',),
127128
url=dict(type='str',),

plugins/modules/avi_botmapping.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
- Field introduced in 21.1.1.
5353
- Allowed in enterprise edition with any value, enterprise with cloud services edition.
5454
type: list
55+
elements: dict
5556
name:
5657
description:
5758
- The name of this mapping.
@@ -121,7 +122,7 @@ def main():
121122
avi_api_patch_op=dict(choices=['add', 'replace', 'delete', 'remove']),
122123
avi_patch_path=dict(type='str',),
123124
avi_patch_value=dict(type='str',),
124-
mapping_rules=dict(type='list',),
125+
mapping_rules=dict(type='list', elements='dict',),
125126
name=dict(type='str', required=True),
126127
tenant_ref=dict(type='str',),
127128
url=dict(type='str',),

plugins/modules/avi_certificatemanagementprofile.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
- Allowed in enterprise edition with any value, essentials edition with any value, basic edition with any value, enterprise with cloud services
6262
- edition.
6363
type: list
64+
elements: dict
6465
name:
6566
description:
6667
- Name of the pki profile.
@@ -79,6 +80,7 @@
7980
description:
8081
- Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
8182
type: list
83+
elements: dict
8284
tenant_ref:
8385
description:
8486
- It is a reference to an object of type tenant.
@@ -138,10 +140,10 @@ def main():
138140
avi_patch_path=dict(type='str',),
139141
avi_patch_value=dict(type='str',),
140142
configpb_attributes=dict(type='dict',),
141-
markers=dict(type='list',),
143+
markers=dict(type='list', elements='dict',),
142144
name=dict(type='str', required=True),
143145
run_script_ref=dict(type='str', required=True),
144-
script_params=dict(type='list',),
146+
script_params=dict(type='list', elements='dict',),
145147
tenant_ref=dict(type='str',),
146148
url=dict(type='str',),
147149
uuid=dict(type='str',),

0 commit comments

Comments
 (0)