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_Av9BVDavORm1W", data={
"type": latitudesh_python_sdk.CreateFirewallAssignmentFirewallsType.FIREWALL_ASSIGNMENTS,
"attributes": {
"server_id": "sv_lpbV0DgRq4AWz",
},
})
# Handle response
print(res)