@@ -113,10 +113,10 @@ public static BrandRegistrationResource Create(CreateBrandRegistrationOptions op
113113 /// <param name="options"> Create BrandRegistration parameters </param>
114114 /// <param name="client"> Client to make requests to Twilio </param>
115115 /// <returns> Task that resolves to A single instance of BrandRegistration </returns>
116- public static async System . Threading . Tasks . Task < BrandRegistrationResource > CreateAsync ( CreateBrandRegistrationOptions options , ITwilioRestClient client = null )
116+ public static async System . Threading . Tasks . Task < BrandRegistrationResource > CreateAsync ( CreateBrandRegistrationOptions options , ITwilioRestClient client = null , CancellationToken cancellationToken = default )
117117 {
118118 client = client ?? TwilioClient . GetRestClient ( ) ;
119- var response = await client . RequestAsync ( BuildCreateRequest ( options , client ) ) ;
119+ var response = await client . RequestAsync ( BuildCreateRequest ( options , client ) , cancellationToken ) ;
120120 return FromJson ( response . Content ) ;
121121 }
122122 #endif
@@ -159,7 +159,7 @@ public static async System.Threading.Tasks.Task<BrandRegistrationResource> Creat
159159 ITwilioRestClient client = null )
160160 {
161161 var options = new CreateBrandRegistrationOptions ( customerProfileBundleSid , a2PProfileBundleSid ) { BrandType = brandType , Mock = mock , SkipAutomaticSecVet = skipAutomaticSecVet } ;
162- return await CreateAsync ( options , client ) ;
162+ return await CreateAsync ( options , client , cancellationToken ) ;
163163 }
164164 #endif
165165
@@ -196,10 +196,10 @@ public static BrandRegistrationResource Fetch(FetchBrandRegistrationOptions opti
196196 /// <param name="options"> Fetch BrandRegistration parameters </param>
197197 /// <param name="client"> Client to make requests to Twilio </param>
198198 /// <returns> Task that resolves to A single instance of BrandRegistration </returns>
199- public static async System . Threading . Tasks . Task < BrandRegistrationResource > FetchAsync ( FetchBrandRegistrationOptions options , ITwilioRestClient client = null )
199+ public static async System . Threading . Tasks . Task < BrandRegistrationResource > FetchAsync ( FetchBrandRegistrationOptions options , ITwilioRestClient client = null , CancellationToken cancellationToken = default )
200200 {
201201 client = client ?? TwilioClient . GetRestClient ( ) ;
202- var response = await client . RequestAsync ( BuildFetchRequest ( options , client ) ) ;
202+ var response = await client . RequestAsync ( BuildFetchRequest ( options , client ) , cancellationToken ) ;
203203 return FromJson ( response . Content ) ;
204204 }
205205 #endif
@@ -220,10 +220,10 @@ public static BrandRegistrationResource Fetch(
220220 /// <param name="pathSid"> The SID of the Brand Registration resource to fetch. </param>
221221 /// <param name="client"> Client to make requests to Twilio </param>
222222 /// <returns> Task that resolves to A single instance of BrandRegistration </returns>
223- public static async System . Threading . Tasks . Task < BrandRegistrationResource > FetchAsync ( string pathSid , ITwilioRestClient client = null )
223+ public static async System . Threading . Tasks . Task < BrandRegistrationResource > FetchAsync ( string pathSid , ITwilioRestClient client = null , CancellationToken cancellationToken = default )
224224 {
225225 var options = new FetchBrandRegistrationOptions ( pathSid ) { } ;
226- return await FetchAsync ( options , client ) ;
226+ return await FetchAsync ( options , client , cancellationToken ) ;
227227 }
228228 #endif
229229
@@ -258,10 +258,10 @@ public static ResourceSet<BrandRegistrationResource> Read(ReadBrandRegistrationO
258258 /// <param name="options"> Read BrandRegistration parameters </param>
259259 /// <param name="client"> Client to make requests to Twilio </param>
260260 /// <returns> Task that resolves to A single instance of BrandRegistration </returns>
261- public static async System . Threading . Tasks . Task < ResourceSet < BrandRegistrationResource > > ReadAsync ( ReadBrandRegistrationOptions options , ITwilioRestClient client = null )
261+ public static async System . Threading . Tasks . Task < ResourceSet < BrandRegistrationResource > > ReadAsync ( ReadBrandRegistrationOptions options , ITwilioRestClient client = null , CancellationToken cancellationToken = default )
262262 {
263263 client = client ?? TwilioClient . GetRestClient ( ) ;
264- var response = await client . RequestAsync ( BuildReadRequest ( options , client ) ) ;
264+ var response = await client . RequestAsync ( BuildReadRequest ( options , client ) , cancellationToken ) ;
265265
266266 var page = Page < BrandRegistrationResource > . FromJson ( "data" , response . Content ) ;
267267 return new ResourceSet < BrandRegistrationResource > ( page , options , client ) ;
@@ -293,7 +293,7 @@ public static async System.Threading.Tasks.Task<ResourceSet<BrandRegistrationRes
293293 ITwilioRestClient client = null )
294294 {
295295 var options = new ReadBrandRegistrationOptions ( ) { PageSize = pageSize , Limit = limit } ;
296- return await ReadAsync ( options , client ) ;
296+ return await ReadAsync ( options , client , cancellationToken ) ;
297297 }
298298 #endif
299299
@@ -380,11 +380,12 @@ public static BrandRegistrationResource Update(UpdateBrandRegistrationOptions op
380380 /// <param name="client"> Client to make requests to Twilio </param>
381381 /// <returns> Task that resolves to A single instance of BrandRegistration </returns>
382382 #if ! NET35
383- public static async System . Threading . Tasks . Task < BrandRegistrationResource > UpdateAsync ( UpdateBrandRegistrationOptions options ,
384- ITwilioRestClient client = null )
383+ public static async System . Threading . Tasks . Task < BrandRegistrationResource > UpdateAsync ( UpdateBrandRegistrationOptions options ,
384+ ITwilioRestClient client = null ,
385+ CancellationToken cancellationToken = default )
385386 {
386387 client = client ?? TwilioClient . GetRestClient ( ) ;
387- var response = await client . RequestAsync ( BuildUpdateRequest ( options , client ) ) ;
388+ var response = await client . RequestAsync ( BuildUpdateRequest ( options , client ) , cancellationToken ) ;
388389 return FromJson ( response . Content ) ;
389390 }
390391 #endif
@@ -411,7 +412,7 @@ public static async System.Threading.Tasks.Task<BrandRegistrationResource> Updat
411412 ITwilioRestClient client = null )
412413 {
413414 var options = new UpdateBrandRegistrationOptions ( pathSid ) { } ;
414- return await UpdateAsync ( options , client ) ;
415+ return await UpdateAsync ( options , client , cancellationToken ) ;
415416 }
416417 #endif
417418
0 commit comments