2020)
2121from linode_api4 .objects .monitor import (
2222 AkamaiObjectStorageLogsDestinationDetails ,
23- BasicAuthenticationDetails ,
2423 ChannelDetails ,
25- CustomHeader ,
2624 CustomHTTPSLogsDestinationDetails ,
27- DestinationAuthentication ,
28- EmailDetails ,
2925 LogsStreamDetails ,
3026 WebhookDetails ,
3127)
@@ -235,7 +231,7 @@ def channel_create(
235231 - If ``channel_type`` is "webhook", the following are required:
236232 - ``details.webhook.endpoint_url`` must be provided
237233 - ``details.webhook.authentication.type`` must be specified ("basic" or "none")
238- - If ``authentication.type`` is "basic", both ``basic_authentication_user`` and
234+ - If ``authentication.type`` is "basic", both ``basic_authentication_user`` and
239235 ``basic_authentication_password`` must be provided in ``details.webhook.authentication.details``
240236 - Client Certificate Configuration (Optional but must be complete):
241237 - If ``details.webhook.client_certificate_details`` is provided, all three certificates
@@ -315,7 +311,7 @@ def channel_create(
315311
316312 :raises ValueError: If webhook channel configuration is invalid or missing required fields.
317313 """
318- from linode_api4 . objects . monitor import ChannelDetails
314+ pass
319315
320316 # Validate webhook channel requirements
321317 if channel_type == "webhook" :
@@ -324,7 +320,11 @@ def channel_create(
324320 params = {
325321 "label" : label ,
326322 "channel_type" : channel_type ,
327- "details" : details ._serialize () if hasattr (details , "_serialize" ) else details ,
323+ "details" : (
324+ details ._serialize ()
325+ if hasattr (details , "_serialize" )
326+ else details
327+ ),
328328 }
329329
330330 result = self .client .post ("/monitor/alert-channels" , data = params )
@@ -351,9 +351,9 @@ def verify_webhook(
351351 **Webhook Configuration Requirements:**
352352 - ``endpoint_url`` must be provided
353353 - ``authentication.type`` must be specified ("basic" or "none")
354- - If ``authentication.type`` is "basic", both ``basic_authentication_user`` and
354+ - If ``authentication.type`` is "basic", both ``basic_authentication_user`` and
355355 ``basic_authentication_password`` must be provided
356- - Client certificates (if used) must include all three: ``client_ca_certificate``,
356+ - Client certificates (if used) must include all three: ``client_ca_certificate``,
357357 ``client_certificate``, and ``client_private_key``
358358
359359 API Documentation: https://techdocs.akamai.com/linode-api/reference/post-verify-webhook
@@ -367,13 +367,17 @@ def verify_webhook(
367367 :raises ValueError: If webhook configuration is invalid.
368368 :raises ApiError: If the webhook verification fails.
369369 """
370- from linode_api4 .objects .monitor import WebhookDetails , ChannelDetails
370+ from linode_api4 .objects .monitor import ChannelDetails
371371
372372 # Validate webhook configuration
373373 self ._validate_webhook_details (ChannelDetails (webhook = webhook ))
374374
375375 data = {
376- "webhook" : webhook ._serialize () if hasattr (webhook , "_serialize" ) else webhook ,
376+ "webhook" : (
377+ webhook ._serialize ()
378+ if hasattr (webhook , "_serialize" )
379+ else webhook
380+ ),
377381 }
378382
379383 result = self .client .post ("/monitor/alert-channels/verify" , data = data )
0 commit comments