def create(self, path, visibility):
        """
        Create a new FunctionVersionInstance

        :param unicode path: The path
        :param FunctionVersionInstance.Visibility visibility: The visibility

        :returns: Newly created FunctionVersionInstance
        :rtype: twilio.rest.serverless.v1.service.function.function_version.FunctionVersionInstance
        """
        data = values.of({'Path': path, 'Visibility': visibility, })

        payload = self._version.create(
            'POST',
            self._uri,
            data=data,
        )

        return FunctionVersionInstance(
            self._version,
            payload,
            service_sid=self._solution['service_sid'],
            function_sid=self._solution['function_sid'],
        )
def create ( self , path , visibility ) : data = values . of ( { 'Path' : path , 'Visibility' : visibility , } ) payload = self . _version . create ( 'POST' , self . _uri , data = data , ) return FunctionVersionInstance ( self . _version , payload , service_sid = self . _solution [ 'service_sid' ] , function_sid = self . _solution [ 'function_sid' ] , )
Create a new FunctionVersionInstance

        :param unicode path: The path
        :param FunctionVersionInstance.Visibility visibility: The visibility

        :returns: Newly created FunctionVersionInstance
        :rtype: twilio.rest.serverless.v1.service.function.function_version.FunctionVersionInstance