/// <summary>
        /// update
        /// </summary>
        /// <param name="assistant"> The unique string that identifies the resource </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of RestoreAssistant </returns>
        public static async System.Threading.Tasks.Task <RestoreAssistantResource> UpdateAsync(string assistant,
                                                                                               ITwilioRestClient client = null)
        {
            var options = new UpdateRestoreAssistantOptions(assistant);

            return(await UpdateAsync(options, client));
        }
        /// <summary>
        /// update
        /// </summary>
        /// <param name="options"> Update RestoreAssistant parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of RestoreAssistant </returns>
        public static RestoreAssistantResource Update(UpdateRestoreAssistantOptions options, ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = client.Request(BuildUpdateRequest(options, client));

            return(FromJson(response.Content));
        }
 private static Request BuildUpdateRequest(UpdateRestoreAssistantOptions options, ITwilioRestClient client)
 {
     return(new Request(
                HttpMethod.Post,
                Rest.Domain.Autopilot,
                "/v1/Assistants/Restore",
                postParams: options.GetParams()
                ));
 }
        /// <summary>
        /// update
        /// </summary>
        /// <param name="assistant"> The unique string that identifies the resource </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of RestoreAssistant </returns>
        public static RestoreAssistantResource Update(string assistant, ITwilioRestClient client = null)
        {
            var options = new UpdateRestoreAssistantOptions(assistant);

            return(Update(options, client));
        }
        /// <summary>
        /// update
        /// </summary>
        /// <param name="options"> Update RestoreAssistant parameters </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of RestoreAssistant </returns>
        public static async System.Threading.Tasks.Task <RestoreAssistantResource> UpdateAsync(UpdateRestoreAssistantOptions options,
                                                                                               ITwilioRestClient client = null)
        {
            client = client ?? TwilioClient.GetRestClient();
            var response = await client.RequestAsync(BuildUpdateRequest(options, client));

            return(FromJson(response.Content));
        }