/// <summary> /// Update an Add-on installation for the Account specified. /// </summary> /// <param name="options"> Update InstalledAddOn parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of InstalledAddOn </returns> public static InstalledAddOnResource Update(UpdateInstalledAddOnOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = client.Request(BuildUpdateRequest(options, client)); return(FromJson(response.Content)); }
/// <summary> /// Update an Add-on installation for the Account specified. /// </summary> /// /// <param name="pathSid"> The sid </param> /// <param name="configuration"> The JSON object representing the configuration </param> /// <param name="uniqueName"> The string that uniquely identifies this Add-on installation </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of InstalledAddOn </returns> public static async System.Threading.Tasks.Task <InstalledAddOnResource> UpdateAsync(string pathSid, object configuration = null, string uniqueName = null, ITwilioRestClient client = null) { var options = new UpdateInstalledAddOnOptions(pathSid) { Configuration = configuration, UniqueName = uniqueName }; return(await UpdateAsync(options, client)); }
private static Request BuildUpdateRequest(UpdateInstalledAddOnOptions options, ITwilioRestClient client) { return(new Request( HttpMethod.Post, Rest.Domain.Preview, "/marketplace/InstalledAddOns/" + options.PathSid + "", postParams: options.GetParams() )); }
/// <summary> /// Update an Add-on installation for the Account specified. /// </summary> /// /// <param name="pathSid"> The sid </param> /// <param name="configuration"> The JSON object representing the configuration </param> /// <param name="uniqueName"> The string that uniquely identifies this Add-on installation </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of InstalledAddOn </returns> public static InstalledAddOnResource Update(string pathSid, object configuration = null, string uniqueName = null, ITwilioRestClient client = null) { var options = new UpdateInstalledAddOnOptions(pathSid) { Configuration = configuration, UniqueName = uniqueName }; return(Update(options, client)); }
/// <summary> /// Update an Add-on installation for the Account specified. /// </summary> /// <param name="options"> Update InstalledAddOn parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of InstalledAddOn </returns> public static async System.Threading.Tasks.Task <InstalledAddOnResource> UpdateAsync(UpdateInstalledAddOnOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = await client.RequestAsync(BuildUpdateRequest(options, client)); return(FromJson(response.Content)); }