@@ -66,7 +66,7 @@ public static AwsResource Create(CreateAwsOptions options, ITwilioRestClient cli
66
66
/// <param name="options"> Create Aws parameters </param>
67
67
/// <param name="client"> Client to make requests to Twilio </param>
68
68
/// <returns> Task that resolves to A single instance of Aws </returns>
69
- public static async System . Threading . Tasks . Task < AwsResource > CreateAsync ( CreateAwsOptions options , ITwilioRestClient client = null , CancellationToken cancellationToken = default )
69
+ public static async System . Threading . Tasks . Task < AwsResource > CreateAsync ( CreateAwsOptions options , ITwilioRestClient client = null , System . Threading . CancellationToken cancellationToken = default )
70
70
{
71
71
client = client ?? TwilioClient . GetRestClient ( ) ;
72
72
var response = await client . RequestAsync ( BuildCreateRequest ( options , client ) , cancellationToken ) ;
@@ -101,7 +101,8 @@ public static async System.Threading.Tasks.Task<AwsResource> CreateAsync(
101
101
string credentials ,
102
102
string friendlyName = null ,
103
103
string accountSid = null ,
104
- ITwilioRestClient client = null )
104
+ ITwilioRestClient client = null ,
105
+ System . Threading . CancellationToken cancellationToken = default )
105
106
{
106
107
var options = new CreateAwsOptions ( credentials ) { FriendlyName = friendlyName , AccountSid = accountSid } ;
107
108
return await CreateAsync ( options , client , cancellationToken ) ;
@@ -147,7 +148,7 @@ public static bool Delete(DeleteAwsOptions options, ITwilioRestClient client = n
147
148
/// <returns> Task that resolves to A single instance of Aws </returns>
148
149
public static async System . Threading . Tasks . Task < bool > DeleteAsync ( DeleteAwsOptions options ,
149
150
ITwilioRestClient client = null ,
150
- CancellationToken cancellationToken = default )
151
+ System . Threading . CancellationToken cancellationToken = default )
151
152
{
152
153
client = client ?? TwilioClient . GetRestClient ( ) ;
153
154
var response = await client . RequestAsync ( BuildDeleteRequest ( options , client ) , cancellationToken ) ;
@@ -170,7 +171,7 @@ public static bool Delete(string pathSid, ITwilioRestClient client = null)
170
171
/// <param name="pathSid"> The Twilio-provided string that uniquely identifies the AWS resource to delete. </param>
171
172
/// <param name="client"> Client to make requests to Twilio </param>
172
173
/// <returns> Task that resolves to A single instance of Aws </returns>
173
- public static async System . Threading . Tasks . Task < bool > DeleteAsync ( string pathSid , ITwilioRestClient client = null , CancellationToken cancellationToken = default )
174
+ public static async System . Threading . Tasks . Task < bool > DeleteAsync ( string pathSid , ITwilioRestClient client = null , System . Threading . CancellationToken cancellationToken = default )
174
175
{
175
176
var options = new DeleteAwsOptions ( pathSid ) ;
176
177
return await DeleteAsync ( options , client , cancellationToken ) ;
@@ -210,7 +211,7 @@ public static AwsResource Fetch(FetchAwsOptions options, ITwilioRestClient clien
210
211
/// <param name="options"> Fetch Aws parameters </param>
211
212
/// <param name="client"> Client to make requests to Twilio </param>
212
213
/// <returns> Task that resolves to A single instance of Aws </returns>
213
- public static async System . Threading . Tasks . Task < AwsResource > FetchAsync ( FetchAwsOptions options , ITwilioRestClient client = null , CancellationToken cancellationToken = default )
214
+ public static async System . Threading . Tasks . Task < AwsResource > FetchAsync ( FetchAwsOptions options , ITwilioRestClient client = null , System . Threading . CancellationToken cancellationToken = default )
214
215
{
215
216
client = client ?? TwilioClient . GetRestClient ( ) ;
216
217
var response = await client . RequestAsync ( BuildFetchRequest ( options , client ) , cancellationToken ) ;
@@ -234,7 +235,7 @@ public static AwsResource Fetch(
234
235
/// <param name="pathSid"> The Twilio-provided string that uniquely identifies the AWS resource to fetch. </param>
235
236
/// <param name="client"> Client to make requests to Twilio </param>
236
237
/// <returns> Task that resolves to A single instance of Aws </returns>
237
- public static async System . Threading . Tasks . Task < AwsResource > FetchAsync ( string pathSid , ITwilioRestClient client = null , CancellationToken cancellationToken = default )
238
+ public static async System . Threading . Tasks . Task < AwsResource > FetchAsync ( string pathSid , ITwilioRestClient client = null , System . Threading . CancellationToken cancellationToken = default )
238
239
{
239
240
var options = new FetchAwsOptions ( pathSid ) { } ;
240
241
return await FetchAsync ( options , client , cancellationToken ) ;
@@ -272,7 +273,7 @@ public static ResourceSet<AwsResource> Read(ReadAwsOptions options, ITwilioRestC
272
273
/// <param name="options"> Read Aws parameters </param>
273
274
/// <param name="client"> Client to make requests to Twilio </param>
274
275
/// <returns> Task that resolves to A single instance of Aws </returns>
275
- public static async System . Threading . Tasks . Task < ResourceSet < AwsResource > > ReadAsync ( ReadAwsOptions options , ITwilioRestClient client = null , CancellationToken cancellationToken = default )
276
+ public static async System . Threading . Tasks . Task < ResourceSet < AwsResource > > ReadAsync ( ReadAwsOptions options , ITwilioRestClient client = null , System . Threading . CancellationToken cancellationToken = default )
276
277
{
277
278
client = client ?? TwilioClient . GetRestClient ( ) ;
278
279
var response = await client . RequestAsync ( BuildReadRequest ( options , client ) , cancellationToken ) ;
@@ -304,7 +305,8 @@ public static ResourceSet<AwsResource> Read(
304
305
public static async System . Threading . Tasks . Task < ResourceSet < AwsResource > > ReadAsync (
305
306
int ? pageSize = null ,
306
307
long ? limit = null ,
307
- ITwilioRestClient client = null )
308
+ ITwilioRestClient client = null ,
309
+ System . Threading . CancellationToken cancellationToken = default )
308
310
{
309
311
var options = new ReadAwsOptions ( ) { PageSize = pageSize , Limit = limit } ;
310
312
return await ReadAsync ( options , client , cancellationToken ) ;
@@ -396,7 +398,7 @@ public static AwsResource Update(UpdateAwsOptions options, ITwilioRestClient cli
396
398
#if ! NET35
397
399
public static async System . Threading . Tasks . Task < AwsResource > UpdateAsync ( UpdateAwsOptions options ,
398
400
ITwilioRestClient client = null ,
399
- CancellationToken cancellationToken = default )
401
+ System . Threading . CancellationToken cancellationToken = default )
400
402
{
401
403
client = client ?? TwilioClient . GetRestClient ( ) ;
402
404
var response = await client . RequestAsync ( BuildUpdateRequest ( options , client ) , cancellationToken ) ;
@@ -427,7 +429,8 @@ public static AwsResource Update(
427
429
public static async System . Threading . Tasks . Task < AwsResource > UpdateAsync (
428
430
string pathSid ,
429
431
string friendlyName = null ,
430
- ITwilioRestClient client = null )
432
+ ITwilioRestClient client = null ,
433
+ System . Threading . CancellationToken cancellationToken = default )
431
434
{
432
435
var options = new UpdateAwsOptions ( pathSid ) { FriendlyName = friendlyName } ;
433
436
return await UpdateAsync ( options , client , cancellationToken ) ;
0 commit comments