@@ -1487,7 +1487,7 @@ public virtual async System.Threading.Tasks.Task<AuthResponse> LoginAsync(AuthRe
14871487 }
14881488
14891489 /// <summary>
1490- /// Refresh users current auth token
1490+ /// Refresh users current auth token using refresh token
14911491 /// </summary>
14921492 /// <returns>OK</returns>
14931493 /// <exception cref="ApiException">A server side error occurred.</exception>
@@ -1498,7 +1498,7 @@ public virtual System.Threading.Tasks.Task<AuthResponse> RefreshAsync(string ref
14981498
14991499 /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
15001500 /// <summary>
1501- /// Refresh users current auth token
1501+ /// Refresh users current auth token using refresh token
15021502 /// </summary>
15031503 /// <returns>OK</returns>
15041504 /// <exception cref="ApiException">A server side error occurred.</exception>
@@ -3350,7 +3350,7 @@ public virtual async System.Threading.Tasks.Task<ActionResult> RemoveAcmeAccount
33503350 /// </summary>
33513351 /// <returns>OK</returns>
33523352 /// <exception cref="ApiException">A server side error occurred.</exception>
3353- public virtual System . Threading . Tasks . Task < System . Collections . Generic . ICollection < DnsZone > > GetDnsZonesAsync ( string instanceId , string providerTypeId , string credentialId )
3353+ public virtual System . Threading . Tasks . Task < DnsZoneQueryResult > GetDnsZonesAsync ( string instanceId , string providerTypeId , string credentialId )
33543354 {
33553355 return GetDnsZonesAsync ( instanceId , providerTypeId , credentialId , System . Threading . CancellationToken . None ) ;
33563356 }
@@ -3361,7 +3361,7 @@ public virtual async System.Threading.Tasks.Task<ActionResult> RemoveAcmeAccount
33613361 /// </summary>
33623362 /// <returns>OK</returns>
33633363 /// <exception cref="ApiException">A server side error occurred.</exception>
3364- public virtual async System . Threading . Tasks . Task < System . Collections . Generic . ICollection < DnsZone > > GetDnsZonesAsync ( string instanceId , string providerTypeId , string credentialId , System . Threading . CancellationToken cancellationToken )
3364+ public virtual async System . Threading . Tasks . Task < DnsZoneQueryResult > GetDnsZonesAsync ( string instanceId , string providerTypeId , string credentialId , System . Threading . CancellationToken cancellationToken )
33653365 {
33663366 if ( instanceId == null )
33673367 throw new System . ArgumentNullException ( "instanceId" ) ;
@@ -3416,7 +3416,7 @@ public virtual async System.Threading.Tasks.Task<ActionResult> RemoveAcmeAccount
34163416 var status_ = ( int ) response_ . StatusCode ;
34173417 if ( status_ == 200 )
34183418 {
3419- var objectResponse_ = await ReadObjectResponseAsync < System . Collections . Generic . ICollection < DnsZone > > ( response_ , headers_ , cancellationToken ) . ConfigureAwait ( false ) ;
3419+ var objectResponse_ = await ReadObjectResponseAsync < DnsZoneQueryResult > ( response_ , headers_ , cancellationToken ) . ConfigureAwait ( false ) ;
34203420 if ( objectResponse_ . Object == null )
34213421 {
34223422 throw new ApiException ( "Response was null which was not expected." , status_ , objectResponse_ . Text , headers_ , null ) ;
@@ -5371,6 +5371,101 @@ public virtual async System.Threading.Tasks.Task<ActionResult> RemoveStoredCrede
53715371 }
53725372 }
53735373
5374+ /// <summary>
5375+ /// Unlock Stored Credential [Generated]
5376+ /// </summary>
5377+ /// <returns>OK</returns>
5378+ /// <exception cref="ApiException">A server side error occurred.</exception>
5379+ public virtual System . Threading . Tasks . Task < StoredCredentialUnlockResult > UnlockStoredCredentialAsync ( string instanceId , string storageKey )
5380+ {
5381+ return UnlockStoredCredentialAsync ( instanceId , storageKey , System . Threading . CancellationToken . None ) ;
5382+ }
5383+
5384+ /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
5385+ /// <summary>
5386+ /// Unlock Stored Credential [Generated]
5387+ /// </summary>
5388+ /// <returns>OK</returns>
5389+ /// <exception cref="ApiException">A server side error occurred.</exception>
5390+ public virtual async System . Threading . Tasks . Task < StoredCredentialUnlockResult > UnlockStoredCredentialAsync ( string instanceId , string storageKey , System . Threading . CancellationToken cancellationToken )
5391+ {
5392+ if ( instanceId == null )
5393+ throw new System . ArgumentNullException ( "instanceId" ) ;
5394+
5395+ if ( storageKey == null )
5396+ throw new System . ArgumentNullException ( "storageKey" ) ;
5397+
5398+ var client_ = _httpClient ;
5399+ var disposeClient_ = false ;
5400+ try
5401+ {
5402+ using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
5403+ {
5404+ request_ . Content = new System . Net . Http . StringContent ( string . Empty , System . Text . Encoding . UTF8 , "application/json" ) ;
5405+ request_ . Method = new System . Net . Http . HttpMethod ( "POST" ) ;
5406+ request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "text/plain" ) ) ;
5407+
5408+ var urlBuilder_ = new System . Text . StringBuilder ( ) ;
5409+ if ( ! string . IsNullOrEmpty ( _baseUrl ) ) urlBuilder_ . Append ( _baseUrl ) ;
5410+ // Operation Path: "internal/v1/credentials/{instanceId}/{storageKey}/unlock"
5411+ urlBuilder_ . Append ( "internal/v1/credentials/" ) ;
5412+ urlBuilder_ . Append ( System . Uri . EscapeDataString ( ConvertToString ( instanceId , System . Globalization . CultureInfo . InvariantCulture ) ) ) ;
5413+ urlBuilder_ . Append ( '/' ) ;
5414+ urlBuilder_ . Append ( System . Uri . EscapeDataString ( ConvertToString ( storageKey , System . Globalization . CultureInfo . InvariantCulture ) ) ) ;
5415+ urlBuilder_ . Append ( "/unlock" ) ;
5416+
5417+ PrepareRequest ( client_ , request_ , urlBuilder_ ) ;
5418+
5419+ var url_ = urlBuilder_ . ToString ( ) ;
5420+ request_ . RequestUri = new System . Uri ( url_ , System . UriKind . RelativeOrAbsolute ) ;
5421+
5422+ PrepareRequest ( client_ , request_ , url_ ) ;
5423+
5424+ var response_ = await client_ . SendAsync ( request_ , System . Net . Http . HttpCompletionOption . ResponseHeadersRead , cancellationToken ) . ConfigureAwait ( false ) ;
5425+ var disposeResponse_ = true ;
5426+ try
5427+ {
5428+ var headers_ = new System . Collections . Generic . Dictionary < string , System . Collections . Generic . IEnumerable < string > > ( ) ;
5429+ foreach ( var item_ in response_ . Headers )
5430+ headers_ [ item_ . Key ] = item_ . Value ;
5431+ if ( response_ . Content != null && response_ . Content . Headers != null )
5432+ {
5433+ foreach ( var item_ in response_ . Content . Headers )
5434+ headers_ [ item_ . Key ] = item_ . Value ;
5435+ }
5436+
5437+ ProcessResponse ( client_ , response_ ) ;
5438+
5439+ var status_ = ( int ) response_ . StatusCode ;
5440+ if ( status_ == 200 )
5441+ {
5442+ var objectResponse_ = await ReadObjectResponseAsync < StoredCredentialUnlockResult > ( response_ , headers_ , cancellationToken ) . ConfigureAwait ( false ) ;
5443+ if ( objectResponse_ . Object == null )
5444+ {
5445+ throw new ApiException ( "Response was null which was not expected." , status_ , objectResponse_ . Text , headers_ , null ) ;
5446+ }
5447+ return objectResponse_ . Object ;
5448+ }
5449+ else
5450+ {
5451+ var responseData_ = response_ . Content == null ? null : await response_ . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
5452+ throw new ApiException ( "The HTTP status code of the response was not expected (" + status_ + ")." , status_ , responseData_ , headers_ , null ) ;
5453+ }
5454+ }
5455+ finally
5456+ {
5457+ if ( disposeResponse_ )
5458+ response_ . Dispose ( ) ;
5459+ }
5460+ }
5461+ }
5462+ finally
5463+ {
5464+ if ( disposeClient_ )
5465+ client_ . Dispose ( ) ;
5466+ }
5467+ }
5468+
53745469 /// <summary>
53755470 /// Get the server software version
53765471 /// </summary>
0 commit comments