import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.firewalls.assign(firewall_id="fw_Ee8pKq05DWAob", data={
"type": latitudesh_python_sdk.CreateFirewallAssignmentFirewallsType.FIREWALL_ASSIGNMENTS,
"attributes": {
"server_id": "sv_aKXgRdR3qv9k5",
},
})
# Handle response
print(res)