@property
    def port_str(self):
        if self.transport is NotSpecified:
            return str(self.port)
        else:
            return "{0}/{1}".format(self.port, self.transport)
The port and it's transport as a single string
dataset/ETHPy150Open realestate-com-au/harpoon/harpoon/option_spec/image_objs.py/ContainerPort.port_str