/// <summary>
        /// update
        /// </summary>
        /// <param name="pathTrunkSid"> The SID of the Trunk. </param>
        /// <param name="mode"> The recording mode for the trunk. </param>
        /// <param name="trim"> The recording trim setting for the trunk. </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Recording </returns>
        public static RecordingResource Update(string pathTrunkSid,
                                               RecordingResource.RecordingModeEnum mode = null,
                                               RecordingResource.RecordingTrimEnum trim = null,
                                               ITwilioRestClient client = null)
        {
            var options = new UpdateRecordingOptions(pathTrunkSid)
            {
                Mode = mode, Trim = trim
            };

            return(Update(options, client));
        }
        /// <summary>
        /// update
        /// </summary>
        /// <param name="pathTrunkSid"> The SID of the Trunk. </param>
        /// <param name="mode"> The recording mode for the trunk. </param>
        /// <param name="trim"> The recording trim setting for the trunk. </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Recording </returns>
        public static async System.Threading.Tasks.Task <RecordingResource> UpdateAsync(string pathTrunkSid,
                                                                                        RecordingResource.RecordingModeEnum mode = null,
                                                                                        RecordingResource.RecordingTrimEnum trim = null,
                                                                                        ITwilioRestClient client = null)
        {
            var options = new UpdateRecordingOptions(pathTrunkSid)
            {
                Mode = mode, Trim = trim
            };

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