/// <summary>
        /// Retrieve a list of all Function Versions.
        /// </summary>
        /// <param name="pathServiceSid"> Service Sid. </param>
        /// <param name="pathFunctionSid"> Function Sid. </param>
        /// <param name="pageSize"> Page size </param>
        /// <param name="limit"> Record limit </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of FunctionVersion </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <FunctionVersionResource> > ReadAsync(string pathServiceSid,
                                                                                                           string pathFunctionSid,
                                                                                                           int?pageSize             = null,
                                                                                                           long?limit               = null,
                                                                                                           ITwilioRestClient client = null)
        {
            var options = new ReadFunctionVersionOptions(pathServiceSid, pathFunctionSid)
            {
                PageSize = pageSize, Limit = limit
            };

            return(await ReadAsync(options, client));
        }
        /// <summary>
        /// Retrieve a list of all Function Versions.
        /// </summary>
        /// <param name="pathServiceSid"> Service Sid. </param>
        /// <param name="pathFunctionSid"> Function Sid. </param>
        /// <param name="pageSize"> Page size </param>
        /// <param name="limit"> Record limit </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of FunctionVersion </returns>
        public static ResourceSet <FunctionVersionResource> Read(string pathServiceSid,
                                                                 string pathFunctionSid,
                                                                 int?pageSize             = null,
                                                                 long?limit               = null,
                                                                 ITwilioRestClient client = null)
        {
            var options = new ReadFunctionVersionOptions(pathServiceSid, pathFunctionSid)
            {
                PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }
        /// <summary>
        /// Retrieve a list of all Function Version resources.
        /// </summary>
        /// <param name="options"> Read FunctionVersion parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of FunctionVersion </returns>
        public static async System.Threading.Tasks.Task <ResourceSet <FunctionVersionResource> > ReadAsync(ReadFunctionVersionOptions options,
                                                                                                           ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = await client.RequestAsync(BuildReadRequest(options, client));

            var page = Page <FunctionVersionResource> .FromJson("function_versions", response.Content);

            return(new ResourceSet <FunctionVersionResource>(page, options, client));
        }