8000 [Librarian] Regenerated @ a412066ed53a791734369f33f4b2f579662850b3 e4… · twilio/twilio-csharp@d2905e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit d2905e6

Browse files
committed
[Librarian] Regenerated @ a412066ed53a791734369f33f4b2f579662850b3 e43180215d9b6a7f705d187446184940bb3dfac1
1 parent 3792018 commit d2905e6

File tree

3 files changed

+26
-20
lines changed

3 files changed

+26
-20
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
twilio-csharp Changelog
22
=======================
33

4+
[2024-07-02] Version 7.2.2
5+
--------------------------
6+
**Intelligence**
7+
- Deprecate account flag api.twilio-intelligence.v2
8+
9+
410
[2024-06-27] Version 7.2.1
511
--------------------------
612
**Api**

src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationFetchOptions.cs renamed to src/Twilio/Rest/Numbers/V1/WebhookOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace Twilio.Rest.Numbers.V1
2525
{
2626
/// <summary> Allows to fetch the webhook configuration </summary>
27-
public class FetchPortingWebhookConfigurationFetchOptions : IOptions<PortingWebhookConfigurationFetchResource>
27+
public class FetchWebhookOptions : IOptions<WebhookResource>
2828
{
2929

3030

src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationFetchResource.cs renamed to src/Twilio/Rest/Numbers/V1/WebhookResource.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727

2828
namespace Twilio.Rest.Numbers.V1
2929
{
30-
public class PortingWebhookConfigurationFetchResource : Resource
30+
public class WebhookResource : Resource
3131
{
3232

3333

3434

3535

3636

37-
private static Request BuildFetchRequest(FetchPortingWebhookConfigurationFetchOptions options, ITwilioRestClient client)
37+
private static Request BuildFetchRequest(FetchWebhookOptions options, ITwilioRestClient client)
3838
{
3939

4040
string path = "/v1/Porting/Configuration/Webhook";
@@ -50,10 +50,10 @@ private static Request BuildFetchRequest(FetchPortingWebhookConfigurationFetchOp
5050
}
5151

5252
/// <summary> Allows to fetch the webhook configuration </summary>
53-
/// <param name="options"> Fetch PortingWebhookConfigurationFetch parameters </param>
53+
/// <param name="options"> Fetch Webhook parameters </param>
5454
/// <param name="client"> Client to make requests to Twilio </param>
55-
/// <returns> A single instance of PortingWebhookConfigurationFetch </returns>
56-
public static PortingWebhookConfigurationFetchResource Fetch(FetchPortingWebhookConfigurationFetchOptions options, ITwilioRestClient client = null)
55+
/// <returns> A single instance of Webhook </returns>
56+
public static WebhookResource Fetch(FetchWebhookOptions options, ITwilioRestClient client = null)
5757
{
5858
client = client ?? TwilioClient.GetRestClient();
5959
var response = client.Request(BuildFetchRequest(options, client));
@@ -62,10 +62,10 @@ public static PortingWebhookConfigurationFetchResource Fetch(FetchPortingWebhook
6262

6363
#if !NET35
6464
/// <summary> Allows to fetch the webhook configuration </summary>
65-
/// <param name="options"> Fetch PortingWebhookConfigurationFetch parameters </param>
65+
/// <param name="options"> Fetch Webhook parameters </param>
6666
/// <param name="client"> Client to make requests to Twilio </param>
67-
/// <returns> Task that resolves to A single instance of PortingWebhookConfigurationFetch </returns>
68-
public static async System.Threading.Tasks.Task<PortingWebhookConfigurationFetchResource> FetchAsync(FetchPortingWebhookConfigurationFetchOptions options,
67+
/// <returns> Task that resolves to A single instance of Webhook </returns>
68+
public static async System.Threading.Tasks.Task<WebhookResource> FetchAsync(FetchWebhookOptions options,
6969
ITwilioRestClient client = null)
7070
{
7171
client = client ?? TwilioClient.GetRestClient();
@@ -75,35 +75,35 @@ public static async System.Threading.Tasks.Task<PortingWebhookConfigurationFetch
7575
#endif
7676
/// <summary> Allows to fetch the webhook configuration </summary>
7777
/// <param name="client"> Client to make requests to Twilio </param>
78-
/// <returns> A single instance of PortingWebhookConfigurationFetch </returns>
79-
public static PortingWebhookConfigurationFetchResource Fetch(
78+
/// <returns> A single instance of Webhook </returns>
79+
public static WebhookResource Fetch(
8080
ITwilioRestClient client = null)
8181
{
82-
var options = new FetchPortingWebhookConfigurationFetchOptions(){ };
82+
var options = new FetchWebhookOptions(){ };
8383
return Fetch(options, client);
8484
}
8585

8686
#if !NET35
8787
/// <summary> Allows to fetch the webhook configuration </summary>
8888
/// <param name="client"> Client to make requests to Twilio </param>
89-
/// <returns> Task that resolves to A single instance of PortingWebhookConfigurationFetch </returns>
90-
public static async System.Threading.Tasks.Task<PortingWebhookConfigurationFetchResource> FetchAsync(ITwilioRestClient client = null)
89+
/// <returns> Task that resolves to A single instance of Webhook </returns>
90+
public static async System.Threading.Tasks.Task<WebhookResource> FetchAsync(ITwilioRestClient client = null)
9191
{
92-
var options = new FetchPortingWebhookConfigurationFetchOptions(){ };
92+
var options = new FetchWebhookOptions(){ };
9393
return await FetchAsync(options, client);
9494
}
9595
#endif
9696

9797
/// <summary>
98-
/// Converts a JSON string into a PortingWebhookConfigurationFetchResource object
98+
/// Converts a JSON string into a WebhookResource object
9999
/// </summary>
100100
/// <param name="json"> Raw JSON string </param>
101-
/// <returns> PortingWebhookConfigurationFetchResource object represented by the provided JSON </returns>
102-
public static PortingWebhookConfigurationFetchResource FromJson(string json)
101+
/// <returns> WebhookResource object represented by the provided JSON </returns>
102+
public static WebhookResource FromJson(string json)
103103
{
104104
try
105105
{
106-
return JsonConvert.DeserializeObject<PortingWebhookConfigurationFetchResource>(json);
106+
return JsonConvert.DeserializeObject<WebhookResource>(json);
107107
}
108108
catch (JsonException e)
109109
{
@@ -154,7 +154,7 @@ public static string ToJson(object model)
154154

155155

156156

157-
private PortingWebhookConfigurationFetchResource() {
157+
private WebhookResource() {
158158

159159
}
160160
}

0 commit comments

Comments
 (0)
0