1
1
//----------------------
2
2
// <auto-generated>
3
- // Generated using the NSwag toolchain v14.0.8. 0 (NJsonSchema v11.0.1 .0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
3
+ // Generated using the NSwag toolchain v14.1.0. 0 (NJsonSchema v11.0.2 .0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
4
4
// </auto-generated>
5
5
//----------------------
6
6
17
17
#pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword."
18
18
#pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?'
19
19
#pragma warning disable 612 // Disable "CS0612 '...' is obsolete"
20
+ #pragma warning disable 649 // Disable "CS0649 Field is never assigned to, and will always have its default value null"
20
21
#pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ...
21
22
#pragma warning disable 1591 // Disable "CS1591 Missing XML comment for publicly visible type or member ..."
22
23
#pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'"
23
24
#pragma warning disable 3016 // Disable "CS3016 Arrays as attribute arguments is not CLS-compliant"
24
25
#pragma warning disable 8603 // Disable "CS8603 Possible null reference return"
25
26
#pragma warning disable 8604 // Disable "CS8604 Possible null reference argument for parameter"
26
27
#pragma warning disable 8625 // Disable "CS8625 Cannot convert null literal to non-nullable reference type"
27
- #pragma warning disable CS8765 // Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes).
28
+ #pragma warning disable 8765 // Disable "CS8765 Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes)."
28
29
29
30
namespace Certify . API . Public
30
31
{
31
32
using System = global ::System ;
32
33
33
- [ System . CodeDom . Compiler . GeneratedCode ( "NSwag" , "14.0.8. 0 (NJsonSchema v11.0.1 .0 (Newtonsoft.Json v13.0.0.0))" ) ]
34
+ [ System . CodeDom . Compiler . GeneratedCode ( "NSwag" , "14.1.0. 0 (NJsonSchema v11.0.2 .0 (Newtonsoft.Json v13.0.0.0))" ) ]
34
35
public partial class Client
35
36
{
36
37
#pragma warning disable 8618
@@ -39,13 +40,15 @@ public partial class Client
39
40
40
41
private System . Net . Http . HttpClient _httpClient ;
41
42
private static System . Lazy < Newtonsoft . Json . JsonSerializerSettings > _settings = new System . Lazy < Newtonsoft . Json . JsonSerializerSettings > ( CreateSerializerSettings , true ) ;
43
+ private Newtonsoft . Json . JsonSerializerSettings _instanceSettings ;
42
44
43
45
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
44
46
public Client ( string baseUrl , System . Net . Http . HttpClient httpClient )
45
47
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
46
48
{
47
49
BaseUrl = baseUrl ;
48
50
_httpClient = httpClient ;
51
+ Initialize ( ) ;
49
52
}
50
53
51
54
private static Newtonsoft . Json . JsonSerializerSettings CreateSerializerSettings ( )
@@ -66,10 +69,12 @@ public string BaseUrl
66
69
}
67
70
}
68
71
69
- protected Newtonsoft . Json . JsonSerializerSettings JsonSerializerSettings { get { return _settings . Value ; } }
72
+ protected Newtonsoft . Json . JsonSerializerSettings JsonSerializerSettings { get { return _instanceSettings ?? _settings . Value ; } }
70
73
71
74
static partial void UpdateJsonSerializerSettings ( Newtonsoft . Json . JsonSerializerSettings settings ) ;
72
75
76
+ partial void Initialize ( ) ;
77
+
73
78
partial void PrepareRequest ( System . Net . Http . HttpClient client , System . Net . Http . HttpRequestMessage request , string url ) ;
74
79
partial void PrepareRequest ( System . Net . Http . HttpClient client , System . Net . Http . HttpRequestMessage request , System . Text . StringBuilder urlBuilder ) ;
75
80
partial void ProcessResponse ( System . Net . Http . HttpClient client , System . Net . Http . HttpResponseMessage response ) ;
@@ -444,7 +449,7 @@ public virtual async System.Threading.Tasks.Task<SecurityPrincipleCheckResponse>
444
449
{
445
450
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
446
451
{
447
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
452
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
448
453
var content_ = new System . Net . Http . StringContent ( json_ ) ;
449
454
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
450
455
request_ . Content = content_ ;
@@ -532,7 +537,7 @@ public virtual async System.Threading.Tasks.Task<ActionResult> UpdateSecurityPri
532
537
{
533
538
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
534
539
{
535
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
540
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
536
541
var content_ = new System . Net . Http . StringContent ( json_ ) ;
537
542
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
538
543
request_ . Content = content_ ;
@@ -620,7 +625,7 @@ public virtual async System.Threading.Tasks.Task<ActionResult> AddSecurityPrinci
620
625
{
621
626
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
622
627
{
623
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
628
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
624
629
var content_ = new System . Net . Http . StringContent ( json_ ) ;
625
630
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
626
631
request_ . Content = content_ ;
@@ -798,7 +803,7 @@ public virtual async System.Threading.Tasks.Task<ActionResult> UpdateSecurityPri
798
803
{
799
804
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
800
805
{
801
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
806
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
802
807
var content_ = new System . Net . Http . StringContent ( json_ ) ;
803
808
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
804
809
request_ . Content = content_ ;
@@ -886,7 +891,7 @@ public virtual async System.Threading.Tasks.Task<ActionResult> UpdateSecurityPri
886
891
{
887
892
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
888
893
{
889
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
894
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
890
895
var content_ = new System . Net . Http . StringContent ( json_ ) ;
891
896
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
892
897
request_ . Content = content_ ;
@@ -1054,7 +1059,7 @@ public virtual async System.Threading.Tasks.Task<AuthResponse> LoginAsync(AuthRe
1054
1059
{
1055
1060
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
1056
1061
{
1057
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
1062
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
1058
1063
var content_ = new System . Net . Http . StringContent ( json_ ) ;
1059
1064
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
1060
1065
request_ . Content = content_ ;
@@ -1805,7 +1810,7 @@ public virtual async System.Threading.Tasks.Task<ManagedCertificate> UpdateManag
1805
1810
{
1806
1811
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
1807
1812
{
1808
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
1813
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
1809
1814
var content_ = new System . Net . Http . StringContent ( json_ ) ;
1810
1815
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
1811
1816
request_ . Content = content_ ;
@@ -1984,7 +1989,7 @@ public virtual async System.Threading.Tasks.Task<ManagedCertificate> PerformRene
1984
1989
{
1985
1990
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
1986
1991
{
1987
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
1992
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
1988
1993
var content_ = new System . Net . Http . StringContent ( json_ ) ;
1989
1994
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
1990
1995
request_ . Content = content_ ;
@@ -2078,7 +2083,7 @@ public virtual async System.Threading.Tasks.Task<ManagedCertificate> PerformRene
2078
2083
{
2079
2084
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
2080
2085
{
2081
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
2086
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
2082
2087
var content_ = new System . Net . Http . StringContent ( json_ ) ;
2083
2088
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
2084
2089
request_ . Content = content_ ;
@@ -2340,7 +2345,7 @@ public virtual async System.Threading.Tasks.Task<ActionResult> AddAcmeAccountAsy
2340
2345
{
2341
2346
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
2342
2347
{
2343
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
2348
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
2344
2349
var content_ = new System . Net . Http . StringContent ( json_ ) ;
2345
2350
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
2346
2351
request_ . Content = content_ ;
@@ -2428,7 +2433,7 @@ public virtual async System.Threading.Tasks.Task<ActionResult> AddCertificateAut
2428
2433
{
2429
2434
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
2430
2435
{
2431
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
2436
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
2432
2437
var content_ = new System . Net . Http . StringContent ( json_ ) ;
2433
2438
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
2434
2439
request_ . Content = content_ ;
@@ -3213,7 +3218,7 @@ public virtual async System.Threading.Tasks.Task<ManagedCertificateSummaryResult
3213
3218
{
3214
3219
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
3215
3220
{
3216
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
3221
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
3217
3222
var content_ = new System . Net . Http . StringContent ( json_ ) ;
3218
3223
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
3219
3224
request_ . Content = content_ ;
@@ -3385,7 +3390,7 @@ public virtual async System.Threading.Tasks.Task<StoredCredential> UpdateStoredC
3385
3390
{
3386
3391
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
3387
3392
{
3388
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
3393
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
3389
3394
var content_ = new System . Net . Http . StringContent ( json_ ) ;
3390
3395
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
3391
3396
request_ . Content = content_ ;
@@ -3729,7 +3734,7 @@ public virtual async System.Threading.Tasks.Task<ImportExportPackage> PerformExp
3729
3734
{
3730
3735
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
3731
3736
{
3732
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
3737
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
3733
3738
var content_ = new System . Net . Http . StringContent ( json_ ) ;
3734
3739
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
3735
3740
request_ . Content = content_ ;
@@ -3817,7 +3822,7 @@ public virtual async System.Threading.Tasks.Task<ImportExportPackage> PerformExp
3817
3822
{
3818
3823
using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
3819
3824
{
3820
- var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , _settings . Value ) ;
3825
+ var json_ = Newtonsoft . Json . JsonConvert . SerializeObject ( body , JsonSerializerSettings ) ;
3821
3826
var content_ = new System . Net . Http . StringContent ( json_ ) ;
3822
3827
content_ . Headers . ContentType = System . Net . Http . Headers . MediaTypeHeaderValue . Parse ( "application/json" ) ;
3823
3828
request_ . Content = content_ ;
@@ -4448,7 +4453,7 @@ private string ConvertToString(object value, System.Globalization.CultureInfo cu
4448
4453
4449
4454
4450
4455
4451
- [ System . CodeDom . Compiler . GeneratedCode ( "NSwag" , "14.0.8. 0 (NJsonSchema v11.0.1 .0 (Newtonsoft.Json v13.0.0.0))" ) ]
4456
+ [ System . CodeDom . Compiler . GeneratedCode ( "NSwag" , "14.1.0. 0 (NJsonSchema v11.0.2 .0 (Newtonsoft.Json v13.0.0.0))" ) ]
4452
4457
public partial class FileResponse : System . IDisposable
4453
4458
{
4454
4459
private System . IDisposable _client ;
@@ -4485,7 +4490,7 @@ public void Dispose()
4485
4490
}
4486
4491
4487
4492
4488
- [ System . CodeDom . Compiler . GeneratedCode ( "NSwag" , "14.0.8. 0 (NJsonSchema v11.0.1 .0 (Newtonsoft.Json v13.0.0.0))" ) ]
4493
+ [ System . CodeDom . Compiler . GeneratedCode ( "NSwag" , "14.1.0. 0 (NJsonSchema v11.0.2 .0 (Newtonsoft.Json v13.0.0.0))" ) ]
4489
4494
public partial class ApiException : System . Exception
4490
4495
{
4491
4496
public int StatusCode { get ; private set ; }
@@ -4508,7 +4513,7 @@ public override string ToString()
4508
4513
}
4509
4514
}
4510
4515
4511
- [ System . CodeDom . Compiler . GeneratedCode ( "NSwag" , "14.0.8. 0 (NJsonSchema v11.0.1 .0 (Newtonsoft.Json v13.0.0.0))" ) ]
4516
+ [ System . CodeDom . Compiler . GeneratedCode ( "NSwag" , "14.1.0. 0 (NJsonSchema v11.0.2 .0 (Newtonsoft.Json v13.0.0.0))" ) ]
4512
4517
public partial class ApiException < TResult > : ApiException
4513
4518
{
4514
4519
public TResult Result { get ; private set ; }
0 commit comments