@@ -83,12 +83,15 @@ public interface IConnectionsSDK
8383 Task < UpdateConnectionAuthorizationResponse > UpdateAuthorizationAsync ( UpdateConnectionAuthorizationRequest ? request = null ) ;
8484 }
8585
86+ /// <summary>
87+ /// Manage your companies&apos; data connections.
88+ /// </summary>
8689 public class ConnectionsSDK : IConnectionsSDK
8790 {
8891 public SDKConfig Config { get ; private set ; }
8992 private const string _language = "csharp" ;
90- private const string _sdkVersion = "1 .1.0" ;
91- private const string _sdkGenVersion = "2.116.0 " ;
93+ private const string _sdkVersion = "2 .1.0" ;
94+ private const string _sdkGenVersion = "2.129.1 " ;
9295 private const string _openapiDocVersion = "3.0.0" ;
9396 private string _serverUrl = "" ;
9497 private ISpeakeasyHttpClient _defaultClient ;
@@ -138,7 +141,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
138141 {
139142 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
140143 {
141- response . Connection = JsonConvert . DeserializeObject < Connection > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
144+ response . Connection = JsonConvert . DeserializeObject < Connection > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
142145 }
143146
144147 return response ;
@@ -147,7 +150,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
147150 {
148151 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
149152 {
150- response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
153+ response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
151154 }
152155
153156 return response ;
@@ -191,7 +194,7 @@ public async Task<DeleteConnectionResponse> DeleteAsync(DeleteConnectionRequest?
191194 {
192195 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
193196 {
194- response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
197+ response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
195198 }
196199
197200 return response ;
@@ -230,7 +233,7 @@ public async Task<GetConnectionResponse> GetAsync(GetConnectionRequest? request
230233 {
231234 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
232235 {
233- response . Connection = JsonConvert . DeserializeObject < Connection > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
236+ response . Connection = JsonConvert . DeserializeObject < Connection > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
234237 }
235238
236239 return response ;
@@ -239,7 +242,7 @@ public async Task<GetConnectionResponse> GetAsync(GetConnectionRequest? request
239242 {
240243 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
241244 {
242- response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
245+ response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
243246 }
244247
245248 return response ;
@@ -278,7 +281,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
278281 {
279282 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
280283 {
281- response . Connections = JsonConvert . DeserializeObject < Connections > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
284+ response . Connections = JsonConvert . DeserializeObject < Connections > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
282285 }
283286
284287 return response ;
@@ -287,7 +290,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
287290 {
288291 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
289292 {
290- response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
293+ response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
291294 }
292295
293296 return response ;
@@ -331,7 +334,7 @@ public async Task<UnlinkConnectionResponse> UnlinkAsync(UnlinkConnectionRequest?
331334 {
332335 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
333336 {
334- response . Connection = JsonConvert . DeserializeObject < Connection > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
337+ response . Connection = JsonConvert . DeserializeObject < Connection > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
335338 }
336339
337340 return response ;
@@ -340,7 +343,7 @@ public async Task<UnlinkConnectionResponse> UnlinkAsync(UnlinkConnectionRequest?
340343 {
341344 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
342345 {
343- response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
346+ response . ErrorMessage = JsonConvert . DeserializeObject < ErrorMessage > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
344347 }
345348
346349 return response ;
@@ -384,7 +387,7 @@ public async Task<UpdateConnectionAuthorizationResponse> UpdateAuthorizationAsyn
384387 {
385388 if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
386389 {
387- response . Connection = JsonConvert . DeserializeObject < Connection > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) } } ) ;
390+ response . Connection = JsonConvert . DeserializeObject < Connection > ( await httpResponse . Content . ReadAsStringAsync ( ) , new JsonSerializerSettings ( ) { NullValueHandling = NullValueHandling . Ignore , Converters = new JsonConverter [ ] { new FlexibleObjectDeserializer ( ) , new EnumSerializer ( ) } } ) ;
388391 }
389392
390393 return response ;
0 commit comments