Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
templateContent,
'templateParams':
templateParams,
'version':
version,
}
_payload.update(payload or {})
_payload = dict_from_items_with_values(_payload)
if active_validation:
self._request_validator('jsd_7781fa0548a98342_v1_3_3')\
.validate(_payload)
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/template-programmer/template')
endpoint_full_url = apply_path_params(e_url, path_params)
if with_custom_headers:
json_data = self._session.put(endpoint_full_url, params=params,
json=_payload,
headers=_headers)
else:
json_data = self._session.put(endpoint_full_url, params=params,
json=_payload)
return self._object_factory('bpm_7781fa0548a98342_v1_3_3', json_data)
}
_payload = {
'profileDetails':
profileDetails,
}
_payload.update(payload or {})
_payload = dict_from_items_with_values(_payload)
if active_validation:
self._request_validator('jsd_cfbd3870405aad55_v1_3_1')\
.validate(_payload)
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/wireless/profile')
endpoint_full_url = apply_path_params(e_url, path_params)
if with_custom_headers:
json_data = self._session.put(endpoint_full_url, params=params,
json=_payload,
headers=_headers)
else:
json_data = self._session.put(endpoint_full_url, params=params,
json=_payload)
return self._object_factory('bpm_cfbd3870405aad55_v1_3_1', json_data)
check_type(headers.get('X-Auth-Token'),
basestring, may_be_none=False)
params = {
}
params.update(request_parameters)
params = dict_from_items_with_values(params)
path_params = {
'id': id,
}
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/onboarding/pnp-workflow/${id}')
endpoint_full_url = apply_path_params(e_url, path_params)
if with_custom_headers:
json_data = self._session.get(endpoint_full_url, params=params,
headers=_headers)
else:
json_data = self._session.get(endpoint_full_url, params=params)
return self._object_factory('bpm_80acb88e4ac9ac6d_v1_3_0', json_data)
third_party_vendor,
'thirdPartyImageFamily':
third_party_image_family,
'thirdPartyApplicationType':
third_party_application_type,
}
params.update(request_parameters)
params = dict_from_items_with_values(params)
path_params = {
}
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/image/importation/source/file')
endpoint_full_url = apply_path_params(e_url, path_params)
m_data = self._session.multipart_data(multipart_fields,
multipart_monitor_callback)
_headers.update({'Content-Type': m_data.content_type,
'Content-Length': str(m_data.len),
'Connection': 'keep-alive'})
with_custom_headers = True
if with_custom_headers:
json_data = self._session.post(endpoint_full_url, params=params,
data=m_data,
headers=_headers)
else:
json_data = self._session.post(endpoint_full_url, params=params)
check_type(headers.get('X-Auth-Token'),
basestring, may_be_none=False)
params = {
}
params.update(request_parameters)
params = dict_from_items_with_values(params)
path_params = {
'id': id,
}
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/tag/${id}')
endpoint_full_url = apply_path_params(e_url, path_params)
if with_custom_headers:
json_data = self._session.delete(endpoint_full_url, params=params,
headers=_headers)
else:
json_data = self._session.delete(endpoint_full_url, params=params)
return self._object_factory('bpm_429c28154bdaa13d_v1_3_1', json_data)
check_type(headers.get('X-Auth-Token'),
basestring, may_be_none=False)
params = {
}
params.update(request_parameters)
params = dict_from_items_with_values(params)
path_params = {
'deploymentId': deployment_id,
}
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/template-'
+ 'programmer/template/deploy/status/${deploymentId}')
endpoint_full_url = apply_path_params(e_url, path_params)
if with_custom_headers:
json_data = self._session.get(endpoint_full_url, params=params,
headers=_headers)
else:
json_data = self._session.get(endpoint_full_url, params=params)
return self._object_factory('bpm_9c9a785741cbb41f_v1_3_1', json_data)
instanceTenantId,
'instanceUuid':
instanceUuid,
'netconfPort':
netconfPort,
}
_payload.update(payload or {})
_payload = dict_from_items_with_values(_payload)
if active_validation:
self._request_validator('jsd_c5acd9fa4c1a8abc_v1_3_3')\
.validate(_payload)
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/global-credential/netconf')
endpoint_full_url = apply_path_params(e_url, path_params)
if with_custom_headers:
json_data = self._session.put(endpoint_full_url, params=params,
json=_payload,
headers=_headers)
else:
json_data = self._session.put(endpoint_full_url, params=params,
json=_payload)
return self._object_factory('bpm_c5acd9fa4c1a8abc_v1_3_3', json_data)
'memberAssociationType':
member_association_type,
'level':
level,
}
params.update(request_parameters)
params = dict_from_items_with_values(params)
path_params = {
'id': id,
}
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/tag/${id}/member/count')
endpoint_full_url = apply_path_params(e_url, path_params)
if with_custom_headers:
json_data = self._session.get(endpoint_full_url, params=params,
headers=_headers)
else:
json_data = self._session.get(endpoint_full_url, params=params)
return self._object_factory('bpm_2e9db85840fbb1cf_v1_3_3', json_data)
if 'X-Auth-Token' in headers:
check_type(headers.get('X-Auth-Token'),
basestring, may_be_none=False)
params = {
}
params.update(request_parameters)
params = dict_from_items_with_values(params)
path_params = {
}
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/issue-enrichment-details')
endpoint_full_url = apply_path_params(e_url, path_params)
if with_custom_headers:
json_data = self._session.get(endpoint_full_url, params=params,
headers=_headers)
else:
json_data = self._session.get(endpoint_full_url, params=params)
return self._object_factory('bpm_868439bb4e89a6e4_v1_3_3', json_data)
}
params.update(request_parameters)
params = dict_from_items_with_values(params)
path_params = {
}
_payload = payload or []
if active_validation:
self._request_validator('jsd_a5ac99774c6bb541_v1_3_3')\
.validate(_payload)
with_custom_headers = False
_headers = self._session.headers or {}
if headers:
_headers.update(dict_of_str(headers))
with_custom_headers = True
e_url = ('/dna/intent/api/v1/snmp-property')
endpoint_full_url = apply_path_params(e_url, path_params)
if with_custom_headers:
json_data = self._session.post(endpoint_full_url, params=params,
json=_payload,
headers=_headers)
else:
json_data = self._session.post(endpoint_full_url, params=params,
json=_payload)
return self._object_factory('bpm_a5ac99774c6bb541_v1_3_3', json_data)