@@ -3012,6 +3012,7 @@ def create_webhook_destination_v1(self,
3012
3012
url = None ,
3013
3013
webhookId = None ,
3014
3014
payload = None ,
3015
+ customHeaders = None ,
3015
3016
active_validation = True ,
3016
3017
** request_parameters ):
3017
3018
"""Create Webhook Destination .
@@ -3025,7 +3026,7 @@ def create_webhook_destination_v1(self,
3025
3026
trustCert(boolean): Event Management's Trust Cert.
3026
3027
url(string): Event Management's Url.
3027
3028
webhookId(string): Event Management's Required only for update webhook configuration .
3028
- headers (dict): Dictionary of HTTP Headers to send with the Request
3029
+ customHeaders (dict): Dictionary of HTTP Headers to send with the Request
3029
3030
.
3030
3031
payload(dict): A JSON serializable Python object to send in the
3031
3032
body of the Request.
@@ -3045,14 +3046,14 @@ def create_webhook_destination_v1(self,
3045
3046
Documentation Link:
3046
3047
https://developer.cisco.com/docs/dna-center/#!create-webhook-destination
3047
3048
"""
3048
- check_type (headers , dict )
3049
+ check_type (customHeaders , dict )
3049
3050
check_type (payload , dict )
3050
- if headers is not None :
3051
- if 'Content-Type' in headers :
3052
- check_type (headers .get ('Content-Type' ),
3051
+ if customHeaders is not None :
3052
+ if 'Content-Type' in customHeaders :
3053
+ check_type (customHeaders .get ('Content-Type' ),
3053
3054
str , may_be_none = False )
3054
- if 'X-Auth-Token' in headers :
3055
- check_type (headers .get ('X-Auth-Token' ),
3055
+ if 'X-Auth-Token' in customHeaders :
3056
+ check_type (customHeaders .get ('X-Auth-Token' ),
3056
3057
str , may_be_none = False )
3057
3058
3058
3059
_params = {
@@ -3088,8 +3089,8 @@ def create_webhook_destination_v1(self,
3088
3089
3089
3090
with_custom_headers = False
3090
3091
_headers = self ._session .headers or {}
3091
- if headers :
3092
- _headers .update (dict_of_str (headers ))
3092
+ if customHeaders :
3093
+ _headers .update (dict_of_str (customHeaders ))
3093
3094
with_custom_headers = True
3094
3095
3095
3096
e_url = ('/dna/intent/api/v1/event/webhook' )
@@ -3114,6 +3115,7 @@ def update_webhook_destination_v1(self,
3114
3115
url = None ,
3115
3116
webhookId = None ,
3116
3117
payload = None ,
3118
+ customHeaders = None ,
3117
3119
active_validation = True ,
3118
3120
** request_parameters ):
3119
3121
"""Update Webhook Destination .
@@ -3127,7 +3129,7 @@ def update_webhook_destination_v1(self,
3127
3129
trustCert(boolean): Event Management's Trust Cert.
3128
3130
url(string): Event Management's Url.
3129
3131
webhookId(string): Event Management's Required only for update webhook configuration .
3130
- headers (dict): Dictionary of HTTP Headers to send with the Request
3132
+ customHeaders (dict): Dictionary of HTTP Headers to send with the Request
3131
3133
.
3132
3134
payload(dict): A JSON serializable Python object to send in the
3133
3135
body of the Request.
@@ -3147,11 +3149,11 @@ def update_webhook_destination_v1(self,
3147
3149
Documentation Link:
3148
3150
https://developer.cisco.com/docs/dna-center/#!update-webhook-destination
3149
3151
"""
3150
- check_type (headers , dict )
3152
+ check_type (customHeaders , dict )
3151
3153
check_type (payload , dict )
3152
- if headers is not None :
3153
- if 'X-Auth-Token' in headers :
3154
- check_type (headers .get ('X-Auth-Token' ),
3154
+ if customHeaders is not None :
3155
+ if 'X-Auth-Token' in customHeaders :
3156
+ check_type (customHeaders .get ('X-Auth-Token' ),
3155
3157
str , may_be_none = False )
3156
3158
3157
3159
_params = {
@@ -3187,8 +3189,8 @@ def update_webhook_destination_v1(self,
3187
3189
3188
3190
with_custom_headers = False
3189
3191
_headers = self ._session .headers or {}
3190
- if headers :
3191
- _headers .update (dict_of_str (headers ))
3192
+ if customHeaders :
3193
+ _headers .update (dict_of_str (customHeaders ))
3192
3194
with_custom_headers = True
3193
3195
3194
3196
e_url = ('/dna/intent/api/v1/event/webhook' )
@@ -3209,7 +3211,7 @@ def get_webhook_destination_v1(self,
3209
3211
order = None ,
3210
3212
sort_by = None ,
3211
3213
webhook_ids = None ,
3212
- headers = None ,
3214
+ customHeaders = None ,
3213
3215
** request_parameters ):
3214
3216
"""Get Webhook Destination .
3215
3217
@@ -3221,7 +3223,7 @@ def get_webhook_destination_v1(self,
3221
3223
default value 10 .
3222
3224
sort_by(str): sortBy query parameter. SortBy field name .
3223
3225
order(str): order query parameter.
3224
- headers (dict): Dictionary of HTTP Headers to send with the Request
3226
+ customHeaders (dict): Dictionary of HTTP Headers to send with the Request
3225
3227
.
3226
3228
**request_parameters: Additional request parameters (provides
3227
3229
support for parameters that may be added in the future).
@@ -3237,15 +3239,15 @@ def get_webhook_destination_v1(self,
3237
3239
Documentation Link:
3238
3240
https://developer.cisco.com/docs/dna-center/#!get-webhook-destination
3239
3241
"""
3240
- check_type (headers , dict )
3242
+ check_type (customHeaders , dict )
3241
3243
check_type (webhook_ids , str )
3242
3244
check_type (offset , int )
3243
3245
check_type (limit , int )
3244
3246
check_type (sort_by , str )
3245
3247
check_type (order , str )
3246
- if headers is not None :
3247
- if 'X-Auth-Token' in headers :
3248
- check_type (headers .get ('X-Auth-Token' ),
3248
+ if customHeaders is not None :
3249
+ if 'X-Auth-Token' in customHeaders :
3250
+ check_type (customHeaders .get ('X-Auth-Token' ),
3249
3251
str , may_be_none = False )
3250
3252
3251
3253
_params = {
@@ -3268,8 +3270,8 @@ def get_webhook_destination_v1(self,
3268
3270
3269
3271
with_custom_headers = False
3270
3272
_headers = self ._session .headers or {}
3271
- if headers :
3272
- _headers .update (dict_of_str (headers ))
3273
+ if customHeaders :
3274
+ _headers .update (dict_of_str (customHeaders ))
3273
3275
with_custom_headers = True
3274
3276
3275
3277
e_url = ('/dna/intent/api/v1/event/webhook' )
@@ -4156,6 +4158,7 @@ def create_webhook_destination(self,
4156
4158
url = None ,
4157
4159
webhookId = None ,
4158
4160
payload = None ,
4161
+ customHeaders = None ,
4159
4162
active_validation = True ,
4160
4163
** request_parameters ):
4161
4164
""" This function is an alias of create_webhook_destination_v1 .
@@ -4168,7 +4171,7 @@ def create_webhook_destination(self,
4168
4171
trustCert(boolean): Event Management's Trust Cert.
4169
4172
url(string): Event Management's Url.
4170
4173
webhookId(string): Event Management's Required only for update webhook configuration .
4171
- headers (dict): Dictionary of HTTP Headers to send with the Request
4174
+ customHeaders (dict): Dictionary of HTTP Headers to send with the Request
4172
4175
.
4173
4176
payload(): A JSON serializable Python object to send in the
4174
4177
body of the Request.
@@ -4190,6 +4193,7 @@ def create_webhook_destination(self,
4190
4193
url = url ,
4191
4194
webhookId = webhookId ,
4192
4195
payload = payload ,
4196
+ customHeaders = customHeaders ,
4193
4197
active_validation = active_validation ,
4194
4198
** request_parameters
4195
4199
)
@@ -4508,6 +4512,7 @@ def update_webhook_destination(self,
4508
4512
url = None ,
4509
4513
webhookId = None ,
4510
4514
payload = None ,
4515
+ customHeaders = None ,
4511
4516
active_validation = True ,
4512
4517
** request_parameters ):
4513
4518
""" This function is an alias of update_webhook_destination_v1 .
@@ -4520,7 +4525,7 @@ def update_webhook_destination(self,
4520
4525
trustCert(boolean): Event Management's Trust Cert.
4521
4526
url(string): Event Management's Url.
4522
4527
webhookId(string): Event Management's Required only for update webhook configuration .
4523
- headers (dict): Dictionary of HTTP Headers to send with the Request
4528
+ customHeaders (dict): Dictionary of HTTP Headers to send with the Request
4524
4529
.
4525
4530
payload(): A JSON serializable Python object to send in the
4526
4531
body of the Request.
@@ -4542,6 +4547,7 @@ def update_webhook_destination(self,
4542
4547
url = url ,
4543
4548
webhookId = webhookId ,
4544
4549
payload = payload ,
4550
+ customHeaders = customHeaders ,
4545
4551
active_validation = active_validation ,
4546
4552
** request_parameters
4547
4553
)
@@ -5646,7 +5652,7 @@ def get_webhook_destination(self,
5646
5652
order = None ,
5647
5653
sort_by = None ,
5648
5654
webhook_ids = None ,
5649
- headers = None ,
5655
+ customHeaders = None ,
5650
5656
** request_parameters ):
5651
5657
""" This function is an alias of get_webhook_destination_v1 .
5652
5658
Args:
@@ -5657,7 +5663,7 @@ def get_webhook_destination(self,
5657
5663
default value 10 .
5658
5664
sort_by(basestring): sortBy query parameter. SortBy field name .
5659
5665
order(basestring): order query parameter.
5660
- headers (dict): Dictionary of HTTP Headers to send with the Request
5666
+ customHeaders (dict): Dictionary of HTTP Headers to send with the Request
5661
5667
.
5662
5668
**request_parameters: Additional request parameters (provides
5663
5669
support for parameters that may be added in the future).
@@ -5671,7 +5677,7 @@ def get_webhook_destination(self,
5671
5677
order = order ,
5672
5678
sort_by = sort_by ,
5673
5679
webhook_ids = webhook_ids ,
5674
- headers = headers ,
5680
+ customHeaders = customHeaders ,
5675
5681
** request_parameters
5676
5682
)
5677
5683
0 commit comments