B `c@sGdddeZdS)cseZdZfddZedddZeeedddZeed d d Zeed d dZeed ddZ eed ddZ eed ddZ Z S) HTTPServerscstt|||_dS)N)superr__init___session)selfsession) __class__u/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki_v0/api/http_servers.pyrszHTTPServers.__init__) networkIdcCs&dgdd}d|d}|j||S)z **List the HTTP servers for a network** https://developer.cisco.com/meraki/api/#!get-network-http-servers - networkId (string) z HTTP serversgetNetworkHttpServers)tags operationz /networks/z /httpServers)rget)rr metadataresourcerrr r s  z!HTTPServers.getNetworkHttpServers)r nameurlc sT|tdgdd}d|d}dddgfd d |D}|j|||S) a **Add an HTTP server to a network** https://developer.cisco.com/meraki/api/#!create-network-http-server - networkId (string) - name (string): A name for easy reference to the HTTP server - url (string): The URL of the HTTP server - sharedSecret (string): A shared secret that will be included in POSTs sent to the HTTP server. This secret can be used to verify that the request was sent by Meraki. z HTTP serverscreateNetworkHttpServer)r r z /networks/z /httpServersrr sharedSecretcs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr *sz7HTTPServers.createNetworkHttpServer..)updatelocalsitemsrpost)rr rrkwargsrrpayloadr)rr rs   z#HTTPServers.createNetworkHttpServer)r rc sR|tdgdd}d|d}ddgfdd |D}|j|||S) aq **Send a test webhook for a network** https://developer.cisco.com/meraki/api/#!create-network-http-servers-webhook-test - networkId (string) - url (string): The URL where the test webhook will be sent - sharedSecret (string): The shared secret the test webhook will send. Optional. Defaults to an empty string. z HTTP servers#createNetworkHttpServersWebhookTest)r r z /networks/z/httpServers/webhookTestsrrcs&i|]\}}|kr||qSr)r)rrr)rrr rAszCHTTPServers.createNetworkHttpServersWebhookTest..)rrrrr)rr rrrrr r)rr r!.s  z/HTTPServers.createNetworkHttpServersWebhookTest)r idcCs*dgdd}d|d|}|j||S)z **Return the status of a webhook test for a network** https://developer.cisco.com/meraki/api/#!get-network-http-servers-webhook-test - networkId (string) - id (string) z HTTP servers getNetworkHttpServersWebhookTest)r r z /networks/z/httpServers/webhookTests/)rr)rr r"rrrrr r#Es z,HTTPServers.getNetworkHttpServersWebhookTestcCs*dgdd}d|d|}|j||S)z **Return an HTTP server for a network** https://developer.cisco.com/meraki/api/#!get-network-http-server - networkId (string) - id (string) z HTTP serversgetNetworkHttpServer)r r z /networks/z /httpServers/)rr)rr r"rrrrr r$Vs z HTTPServers.getNetworkHttpServerc sX|tdgdd}d|d|}dddgfd d |D}|j|||S) a **Update an HTTP server** https://developer.cisco.com/meraki/api/#!update-network-http-server - networkId (string) - id (string) - name (string): A name for easy reference to the HTTP server - url (string): The URL of the HTTP server - sharedSecret (string): A shared secret that will be included in POSTs sent to the HTTP server. This secret can be used to verify that the request was sent by Meraki. z HTTP serversupdateNetworkHttpServer)r r z /networks/z /httpServers/rrrcs&i|]\}}|kr||qSr)r)rrr)rrr r|sz7HTTPServers.updateNetworkHttpServer..)rrrrput)rr r"rrrr r)rr r%gs  z#HTTPServers.updateNetworkHttpServercCs*dgdd}d|d|}|j||S)z **Delete an HTTP server from a network** https://developer.cisco.com/meraki/api/#!delete-network-http-server - networkId (string) - id (string) z HTTP serversdeleteNetworkHttpServer)r r z /networks/z /httpServers/)rdelete)rr r"rrrrr r's z#HTTPServers.deleteNetworkHttpServer) __name__ __module__ __qualname__rstrr rr!r#r$r%r' __classcell__rr)rr rs rN)objectrrrrr