@@ -83,12 +83,15 @@ public interface IConnectionsSDK
83
83
Task < UpdateConnectionAuthorizationResponse > UpdateAuthorizationAsync ( UpdateConnectionAuthorizationRequest ? request = null ) ;
84
84
}
85
85
86
+ /// <summary>
87
+ /// Manage your companies&apos; data connections.
88
+ /// </summary>
86
89
public class ConnectionsSDK : IConnectionsSDK
87
90
{
88
91
public SDKConfig Config { get ; private set ; }
89
92
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 " ;
92
95
private const string _openapiDocVersion = "3.0.0" ;
93
96
private string _serverUrl = "" ;
94
97
private ISpeakeasyHttpClient _defaultClient ;
@@ -138,7 +141,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
138
141
{
139
142
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
140
143
{
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 ( ) } } ) ;
142
145
}
143
146
144
147
return response ;
@@ -147,7 +150,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
147
150
{
148
151
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
149
152
{
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 ( ) } } ) ;
151
154
}
152
155
153
156
return response ;
@@ -191,7 +194,7 @@ public async Task<DeleteConnectionResponse> DeleteAsync(DeleteConnectionRequest?
191
194
{
192
195
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
193
196
{
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 ( ) } } ) ;
195
198
}
196
199
197
200
return response ;
@@ -230,7 +233,7 @@ public async Task<GetConnectionResponse> GetAsync(GetConnectionRequest? request
230
233
{
231
234
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
232
235
{
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 ( ) } } ) ;
234
237
}
235
238
236
239
return response ;
@@ -239,7 +242,7 @@ public async Task<GetConnectionResponse> GetAsync(GetConnectionRequest? request
239
242
{
240
243
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
241
244
{
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 ( ) } } ) ;
243
246
}
244
247
245
248
return response ;
@@ -278,7 +281,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
278
281
{
279
282
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
280
283
{
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 ( ) } } ) ;
282
285
}
283
286
284
287
return response ;
@@ -287,7 +290,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
287
290
{
288
291
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
289
292
{
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 ( ) } } ) ;
291
294
}
292
295
293
296
return response ;
@@ -331,7 +334,7 @@ public async Task<UnlinkConnectionResponse> UnlinkAsync(UnlinkConnectionRequest?
331
334
{
332
335
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
333
336
{
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 ( ) } } ) ;
335
338
}
336
339
337
340
return response ;
@@ -340,7 +343,7 @@ public async Task<UnlinkConnectionResponse> UnlinkAsync(UnlinkConnectionRequest?
340
343
{
341
344
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
342
345
{
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 ( ) } } ) ;
344
347
}
345
348
346
349
return response ;
@@ -384,7 +387,7 @@ public async Task<UpdateConnectionAuthorizationResponse> UpdateAuthorizationAsyn
384
387
{
385
388
if ( Utilities . IsContentTypeMatch ( "application/json" , response . ContentType ) )
386
389
{
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 ( ) } } ) ;
388
391
}
389
392
390
393
return response ;
0 commit comments