/// <summary>
        /// update
        /// </summary>
        /// <param name="pathRoomSid"> The room_sid </param>
        /// <param name="pathSubscriberSid"> The subscriber_sid </param>
        /// <param name="track"> The track </param>
        /// <param name="publisher"> The publisher </param>
        /// <param name="kind"> The kind </param>
        /// <param name="status"> The status </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of SubscribedTrack </returns>
        public static SubscribedTrackResource Update(string pathRoomSid,
                                                     string pathSubscriberSid,
                                                     string track     = null,
                                                     string publisher = null,
                                                     SubscribedTrackResource.KindEnum kind     = null,
                                                     SubscribedTrackResource.StatusEnum status = null,
                                                     ITwilioRestClient client = null)
        {
            var options = new UpdateSubscribedTrackOptions(pathRoomSid, pathSubscriberSid)
            {
                Track = track, Publisher = publisher, Kind = kind, Status = status
            };

            return(Update(options, client));
        }
        /// <summary>
        /// read
        /// </summary>
        /// <param name="pathRoomSid"> The room_sid </param>
        /// <param name="pathSubscriberSid"> The subscriber_sid </param>
        /// <param name="dateCreatedAfter"> The date_created_after </param>
        /// <param name="dateCreatedBefore"> The date_created_before </param>
        /// <param name="track"> The track </param>
        /// <param name="publisher"> The publisher </param>
        /// <param name="kind"> The kind </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 SubscribedTrack </returns>
        public static ResourceSet <SubscribedTrackResource> Read(string pathRoomSid,
                                                                 string pathSubscriberSid,
                                                                 DateTime?dateCreatedAfter  = null,
                                                                 DateTime?dateCreatedBefore = null,
                                                                 string track     = null,
                                                                 string publisher = null,
                                                                 SubscribedTrackResource.KindEnum kind = null,
                                                                 int?pageSize             = null,
                                                                 long?limit               = null,
                                                                 ITwilioRestClient client = null)
        {
            var options = new ReadSubscribedTrackOptions(pathRoomSid, pathSubscriberSid)
            {
                DateCreatedAfter = dateCreatedAfter, DateCreatedBefore = dateCreatedBefore, Track = track, Publisher = publisher, Kind = kind, PageSize = pageSize, Limit = limit
            };

            return(Read(options, client));
        }
        /// <summary>
        /// update
        /// </summary>
        /// <param name="pathRoomSid"> The room_sid </param>
        /// <param name="pathSubscriberSid"> The subscriber_sid </param>
        /// <param name="track"> The track </param>
        /// <param name="publisher"> The publisher </param>
        /// <param name="kind"> The kind </param>
        /// <param name="status"> The status </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of SubscribedTrack </returns>
        public static async System.Threading.Tasks.Task <SubscribedTrackResource> UpdateAsync(string pathRoomSid,
                                                                                              string pathSubscriberSid,
                                                                                              string track     = null,
                                                                                              string publisher = null,
                                                                                              SubscribedTrackResource.KindEnum kind     = null,
                                                                                              SubscribedTrackResource.StatusEnum status = null,
                                                                                              ITwilioRestClient client = null)
        {
            var options = new UpdateSubscribedTrackOptions(pathRoomSid, pathSubscriberSid)
            {
                Track = track, Publisher = publisher, Kind = kind, Status = status
            };

            return(await UpdateAsync(options, client));
        }