@@ -2895,23 +2895,26 @@ public virtual async System.Threading.Tasks.Task<ActionResult> RemoveAcmeAccount
28952895 }
28962896
28972897 /// <summary>
2898- /// Get List of supported deployment tasks
2898+ /// Get Deployment Task Providers [Generated by Certify.SourceGenerators]
28992899 /// </summary>
29002900 /// <returns>OK</returns>
29012901 /// <exception cref="ApiException">A server side error occurred.</exception>
2902- public virtual System . Threading . Tasks . Task < System . Collections . Generic . ICollection < DeploymentProviderDefinition > > GetDeploymentProvidersAsync ( )
2902+ public virtual System . Threading . Tasks . Task < System . Collections . Generic . ICollection < DeploymentProviderDefinition > > GetDeploymentProvidersAsync ( string instanceId )
29032903 {
2904- return GetDeploymentProvidersAsync ( System . Threading . CancellationToken . None ) ;
2904+ return GetDeploymentProvidersAsync ( instanceId , System . Threading . CancellationToken . None ) ;
29052905 }
29062906
29072907 /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
29082908 /// <summary>
2909- /// Get List of supported deployment tasks
2909+ /// Get Deployment Task Providers [Generated by Certify.SourceGenerators]
29102910 /// </summary>
29112911 /// <returns>OK</returns>
29122912 /// <exception cref="ApiException">A server side error occurred.</exception>
2913- public virtual async System . Threading . Tasks . Task < System . Collections . Generic . ICollection < DeploymentProviderDefinition > > GetDeploymentProvidersAsync ( System . Threading . CancellationToken cancellationToken )
2913+ public virtual async System . Threading . Tasks . Task < System . Collections . Generic . ICollection < DeploymentProviderDefinition > > GetDeploymentProvidersAsync ( string instanceId , System . Threading . CancellationToken cancellationToken )
29142914 {
2915+ if ( instanceId == null )
2916+ throw new System . ArgumentNullException ( "instanceId" ) ;
2917+
29152918 var client_ = _httpClient ;
29162919 var disposeClient_ = false ;
29172920 try
@@ -2923,8 +2926,9 @@ public virtual async System.Threading.Tasks.Task<ActionResult> RemoveAcmeAccount
29232926
29242927 var urlBuilder_ = new System . Text . StringBuilder ( ) ;
29252928 if ( ! string . IsNullOrEmpty ( _baseUrl ) ) urlBuilder_ . Append ( _baseUrl ) ;
2926- // Operation Path: "internal/v1/deploymenttask/providers"
2927- urlBuilder_ . Append ( "internal/v1/deploymenttask/providers" ) ;
2929+ // Operation Path: "internal/v1/deploymenttask/{instanceId}"
2930+ urlBuilder_ . Append ( "internal/v1/deploymenttask/" ) ;
2931+ urlBuilder_ . Append ( System . Uri . EscapeDataString ( ConvertToString ( instanceId , System . Globalization . CultureInfo . InvariantCulture ) ) ) ;
29282932
29292933 PrepareRequest ( client_ , request_ , urlBuilder_ ) ;
29302934
@@ -2978,6 +2982,104 @@ public virtual async System.Threading.Tasks.Task<ActionResult> RemoveAcmeAccount
29782982 }
29792983 }
29802984
2985+ /// <summary>
2986+ /// Execute Deployment Task [Generated by Certify.SourceGenerators]
2987+ /// </summary>
2988+ /// <returns>OK</returns>
2989+ /// <exception cref="ApiException">A server side error occurred.</exception>
2990+ public virtual System . Threading . Tasks . Task < System . Collections . Generic . ICollection < ActionStep > > ExecuteDeploymentTaskAsync ( string instanceId , string managedCertificateId , string taskId )
2991+ {
2992+ return ExecuteDeploymentTaskAsync ( instanceId , managedCertificateId , taskId , System . Threading . CancellationToken . None ) ;
2993+ }
2994+
2995+ /// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
2996+ /// <summary>
2997+ /// Execute Deployment Task [Generated by Certify.SourceGenerators]
2998+ /// </summary>
2999+ /// <returns>OK</returns>
3000+ /// <exception cref="ApiException">A server side error occurred.</exception>
3001+ public virtual async System . Threading . Tasks . Task < System . Collections . Generic . ICollection < ActionStep > > ExecuteDeploymentTaskAsync ( string instanceId , string managedCertificateId , string taskId , System . Threading . CancellationToken cancellationToken )
3002+ {
3003+ if ( instanceId == null )
3004+ throw new System . ArgumentNullException ( "instanceId" ) ;
3005+
3006+ if ( managedCertificateId == null )
3007+ throw new System . ArgumentNullException ( "managedCertificateId" ) ;
3008+
3009+ if ( taskId == null )
3010+ throw new System . ArgumentNullException ( "taskId" ) ;
3011+
3012+ var client_ = _httpClient ;
3013+ var disposeClient_ = false ;
3014+ try
3015+ {
3016+ using ( var request_ = new System . Net . Http . HttpRequestMessage ( ) )
3017+ {
3018+ request_ . Method = new System . Net . Http . HttpMethod ( "GET" ) ;
3019+ request_ . Headers . Accept . Add ( System . Net . Http . Headers . MediaTypeWithQualityHeaderValue . Parse ( "text/plain" ) ) ;
3020+
3021+ var urlBuilder_ = new System . Text . StringBuilder ( ) ;
3022+ if ( ! string . IsNullOrEmpty ( _baseUrl ) ) urlBuilder_ . Append ( _baseUrl ) ;
3023+ // Operation Path: "internal/v1/deploymenttask/{instanceId}/execute/{managedCertificateId}/{taskId}"
3024+ urlBuilder_ . Append ( "internal/v1/deploymenttask/" ) ;
3025+ urlBuilder_ . Append ( System . Uri . EscapeDataString ( ConvertToString ( instanceId , System . Globalization . CultureInfo . InvariantCulture ) ) ) ;
3026+ urlBuilder_ . Append ( "/execute/" ) ;
3027+ urlBuilder_ . Append ( System . Uri . EscapeDataString ( ConvertToString ( managedCertificateId , System . Globalization . CultureInfo . InvariantCulture ) ) ) ;
3028+ urlBuilder_ . Append ( '/' ) ;
3029+ urlBuilder_ . Append ( System . Uri . EscapeDataString ( ConvertToString ( taskId , System . Globalization . CultureInfo . InvariantCulture ) ) ) ;
3030+
3031+ PrepareRequest ( client_ , request_ , urlBuilder_ ) ;
3032+
3033+ var url_ = urlBuilder_ . ToString ( ) ;
3034+ request_ . RequestUri = new System . Uri ( url_ , System . UriKind . RelativeOrAbsolute ) ;
3035+
3036+ PrepareRequest ( client_ , request_ , url_ ) ;
3037+
3038+ var response_ = await client_ . SendAsync ( request_ , System . Net . Http . HttpCompletionOption . ResponseHeadersRead , cancellationToken ) . ConfigureAwait ( false ) ;
3039+ var disposeResponse_ = true ;
3040+ try
3041+ {
3042+ var headers_ = new System . Collections . Generic . Dictionary < string , System . Collections . Generic . IEnumerable < string > > ( ) ;
3043+ foreach ( var item_ in response_ . Headers )
3044+ headers_ [ item_ . Key ] = item_ . Value ;
3045+ if ( response_ . Content != null && response_ . Content . Headers != null )
3046+ {
3047+ foreach ( var item_ in response_ . Content . Headers )
3048+ headers_ [ item_ . Key ] = item_ . Value ;
3049+ }
3050+
3051+ ProcessResponse ( client_ , response_ ) ;
3052+
3053+ var status_ = ( int ) response_ . StatusCode ;
3054+ if ( status_ == 200 )
3055+ {
3056+ var objectResponse_ = await ReadObjectResponseAsync < System . Collections . Generic . ICollection < ActionStep > > ( response_ , headers_ , cancellationToken ) . ConfigureAwait ( false ) ;
3057+ if ( objectResponse_ . Object == null )
3058+ {
3059+ throw new ApiException ( "Response was null which was not expected." , status_ , objectResponse_ . Text , headers_ , null ) ;
3060+ }
3061+ return objectResponse_ . Object ;
3062+ }
3063+ else
3064+ {
3065+ var responseData_ = response_ . Content == null ? null : await response_ . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
3066+ throw new ApiException ( "The HTTP status code of the response was not expected (" + status_ + ")." , status_ , responseData_ , headers_ , null ) ;
3067+ }
3068+ }
3069+ finally
3070+ {
3071+ if ( disposeResponse_ )
3072+ response_ . Dispose ( ) ;
3073+ }
3074+ }
3075+ }
3076+ finally
3077+ {
3078+ if ( disposeClient_ )
3079+ client_ . Dispose ( ) ;
3080+ }
3081+ }
3082+
29813083 /// <summary>
29823084 /// Get all managed certificates matching criteria
29833085 /// </summary>
0 commit comments