/// <summary> /// Remove an Assignment Item Instance. /// </summary> /// <param name="options"> Delete CustomerProfilesEntityAssignments parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of CustomerProfilesEntityAssignments </returns> public static bool Delete(DeleteCustomerProfilesEntityAssignmentsOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = client.Request(BuildDeleteRequest(options, client)); return(response.StatusCode == System.Net.HttpStatusCode.NoContent); }
/// <summary> /// Remove an Assignment Item Instance. /// </summary> /// <param name="pathCustomerProfileSid"> The unique string that identifies the resource. </param> /// <param name="pathSid"> 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 CustomerProfilesEntityAssignments </returns> public static async System.Threading.Tasks.Task <bool> DeleteAsync(string pathCustomerProfileSid, string pathSid, ITwilioRestClient client = null) { var options = new DeleteCustomerProfilesEntityAssignmentsOptions(pathCustomerProfileSid, pathSid); return(await DeleteAsync(options, client)); }
/// <summary> /// Remove an Assignment Item Instance. /// </summary> /// <param name="options"> Delete CustomerProfilesEntityAssignments parameters </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of CustomerProfilesEntityAssignments </returns> public static async System.Threading.Tasks.Task <bool> DeleteAsync(DeleteCustomerProfilesEntityAssignmentsOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = await client.RequestAsync(BuildDeleteRequest(options, client)); return(response.StatusCode == System.Net.HttpStatusCode.NoContent); }
private static Request BuildDeleteRequest(DeleteCustomerProfilesEntityAssignmentsOptions options, ITwilioRestClient client) { return(new Request( HttpMethod.Delete, Rest.Domain.Trusthub, "/v1/CustomerProfiles/" + options.PathCustomerProfileSid + "/EntityAssignments/" + options.PathSid + "", queryParams: options.GetParams(), headerParams: null )); }
/// <summary> /// Remove an Assignment Item Instance. /// </summary> /// <param name="pathCustomerProfileSid"> The unique string that identifies the resource. </param> /// <param name="pathSid"> The unique string that identifies the resource </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of CustomerProfilesEntityAssignments </returns> public static bool Delete(string pathCustomerProfileSid, string pathSid, ITwilioRestClient client = null) { var options = new DeleteCustomerProfilesEntityAssignmentsOptions(pathCustomerProfileSid, pathSid); return(Delete(options, client)); }