in ADTTools/RecreateAdtInstance/main.py [0:0]
def map_endpoint(resource):
props = resource.properties
match props.endpoint_type:
case "EventHub":
return EventHub(
authentication_type=props.authentication_type,
endpoint_uri=props.endpoint_uri,
entity_path=props.entity_path
)
case "EventGrid":
return EventGrid(
topic_endpoint=props.topic_endpoint,
access_key1=props.access_key1,
authentication_type=props.authentication_type
)
case "ServiceBus":
return ServiceBus(
authentication_type=props.authentication_type,
endpoint_uri=props.endpoint_uri,
entity_path=props.entity_path
)