55using Certify . Models . Config ;
66using Certify . Models . Reporting ;
77using Certify . Models . Utils ;
8+ using Certify . Models . Hub ;
89using Certify . Shared ;
910
1011namespace Certify . Client
@@ -15,118 +16,75 @@ namespace Certify.Client
1516 /// </summary>
1617 public partial interface ICertifyInternalApiClient
1718 {
18-
1919 #region System
20-
2120 Task < string > GetAppVersion ( AuthContext authContext = null ) ;
22-
2321 Task < UpdateCheck > CheckForUpdates ( AuthContext authContext = null ) ;
24-
2522 Task < List < Models . Config . ActionResult > > PerformServiceDiagnostics ( AuthContext authContext = null ) ;
2623 Task < List < Models . Config . ActionResult > > PerformManagedCertMaintenance ( string id = null , AuthContext authContext = null ) ;
27-
2824 Task < List < ActionStep > > SetDefaultDataStore ( string dataStoreId , AuthContext authContext = null ) ;
2925 Task < List < ProviderDefinition > > GetDataStoreProviders ( AuthContext authContext = null ) ;
3026 Task < List < DataStoreConnection > > GetDataStoreConnections ( AuthContext authContext = null ) ;
3127 Task < List < ActionStep > > CopyDataStore ( string sourceId , string targetId , AuthContext authContext = null ) ;
3228 Task < List < ActionStep > > UpdateDataStoreConnection ( DataStoreConnection dataStoreConnection , AuthContext authContext = null ) ;
3329 Task < List < ActionStep > > TestDataStoreConnection ( DataStoreConnection dataStoreConnection , AuthContext authContext = null ) ;
34-
3530 #endregion System
3631
3732 #region Server
3833 Task < bool > IsServerAvailable ( StandardServerTypes serverType , AuthContext authContext = null ) ;
39-
4034 Task < List < SiteInfo > > GetServerSiteList ( StandardServerTypes serverType , string itemId = null , AuthContext authContext = null ) ;
41-
4235 Task < Version > GetServerVersion ( StandardServerTypes serverType , AuthContext authContext = null ) ;
43-
4436 Task < List < DomainOption > > GetServerSiteDomains ( StandardServerTypes serverType , string serverSiteId , AuthContext authContext = null ) ;
45-
4637 Task < List < ActionStep > > RunConfigurationDiagnostics ( StandardServerTypes serverType , string serverSiteId , AuthContext authContext = null ) ;
47-
4838 Task < List < SimpleAuthorizationChallengeItem > > GetCurrentChallenges ( string type , string key , AuthContext authContext = null ) ;
49-
5039 #endregion Server
5140
5241 #region Preferences
53-
5442 Task < Preferences > GetPreferences ( AuthContext authContext = null ) ;
55-
5643 Task < bool > SetPreferences ( Preferences preferences , AuthContext authContext = null ) ;
57-
5844 #endregion Preferences
5945
6046 #region Credentials
61-
6247 Task < List < StoredCredential > > GetCredentials ( AuthContext authContext = null ) ;
63-
6448 Task < StoredCredential > UpdateCredentials ( StoredCredential credential , AuthContext authContext = null ) ;
65-
6649 Task < bool > DeleteCredential ( string credentialKey , AuthContext authContext = null ) ;
67-
6850 Task < ActionResult > TestCredentials ( string credentialKey , AuthContext authContext = null ) ;
69-
7051 #endregion Credentials
7152
7253 #region Managed Certificates
73-
7454 Task < List < ManagedCertificate > > GetManagedCertificates ( ManagedCertificateFilter filter , AuthContext authContext = null ) ;
7555 Task < ManagedCertificateSearchResult > GetManagedCertificateSearchResult ( ManagedCertificateFilter filter , AuthContext authContext = null ) ;
7656 Task < StatusSummary > GetManagedCertificateSummary ( ManagedCertificateFilter filter , AuthContext authContext = null ) ;
77-
7857 Task < ManagedCertificate > GetManagedCertificate ( string managedItemId , AuthContext authContext = null ) ;
79-
8058 Task < ManagedCertificate > UpdateManagedCertificate ( ManagedCertificate site , AuthContext authContext = null ) ;
81-
8259 Task < bool > DeleteManagedCertificate ( string managedItemId , AuthContext authContext = null ) ;
83-
8460 Task < StatusMessage > RevokeManageSiteCertificate ( string managedItemId , AuthContext authContext = null ) ;
85-
8661 Task < List < CertificateRequestResult > > BeginAutoRenewal ( RenewalSettings settings , AuthContext authContext = null ) ;
87-
8862 Task < List < CertificateRequestResult > > RedeployManagedCertificates ( bool isPreviewOnly , bool includeDeploymentTasks , AuthContext authContext = null ) ;
89-
9063 Task < CertificateRequestResult > ReapplyCertificateBindings ( string managedItemId , bool isPreviewOnly , bool includeDeploymentTasks , AuthContext authContext = null ) ;
91-
9264 Task < CertificateRequestResult > RefetchCertificate ( string managedItemId , AuthContext authContext = null ) ;
93-
9465 Task < CertificateRequestResult > BeginCertificateRequest ( string managedItemId , bool resumePaused , bool isInteractive , AuthContext authContext = null ) ;
95-
9666 Task < List < StatusMessage > > TestChallengeConfiguration ( ManagedCertificate site , AuthContext authContext = null ) ;
9767 Task < List < StatusMessage > > PerformChallengeCleanup ( ManagedCertificate site , AuthContext authContext = null ) ;
98-
9968 Task < List < Models . Providers . DnsZone > > GetDnsProviderZones ( string providerTypeId , string credentialId , AuthContext authContext = null ) ;
100-
10169 Task < List < ActionStep > > PreviewActions ( ManagedCertificate site , AuthContext authContext = null ) ;
102-
10370 Task < List < ChallengeProviderDefinition > > GetChallengeAPIList ( AuthContext authContext = null ) ;
104-
10571 Task < List < DeploymentProviderDefinition > > GetDeploymentProviderList ( AuthContext authContext = null ) ;
106-
10772 Task < DeploymentProviderDefinition > GetDeploymentProviderDefinition ( string id , Config . DeploymentTaskConfig config , AuthContext authContext = null ) ;
108-
10973 Task < List < ActionStep > > PerformDeployment ( string managedCertificateId , string taskId , bool isPreviewOnly , bool forceTaskExecute , AuthContext authContext = null ) ;
110-
11174 Task < List < ActionResult > > ValidateDeploymentTask ( DeploymentTaskValidationInfo info , AuthContext authContext = null ) ;
112-
113- Task < Models . API . LogItem [ ] > GetItemLog ( string id , int limit , AuthContext authContext = null ) ;
114-
75+ Task < LogItem [ ] > GetItemLog ( string id , int limit , AuthContext authContext = null ) ;
11576 #endregion Managed Certificates
11677
11778 #region Accounts
11879 Task < List < CertificateAuthority > > GetCertificateAuthorities ( AuthContext authContext = null ) ;
119-
12080 Task < ActionResult > UpdateCertificateAuthority ( CertificateAuthority ca , AuthContext authContext = null ) ;
12181 Task < ActionResult > DeleteCertificateAuthority ( string id , AuthContext authContext = null ) ;
12282 Task < List < AccountDetails > > GetAccounts ( AuthContext authContext = null ) ;
12383 Task < ActionResult > AddAccount ( ContactRegistration contact , AuthContext authContext = null ) ;
12484 Task < ActionResult > UpdateAccountContact ( ContactRegistration contact , AuthContext authContext = null ) ;
12585 Task < ActionResult > RemoveAccount ( string storageKey , bool deactivate , AuthContext authContext = null ) ;
12686 Task < ActionResult > ChangeAccountKey ( string storageKey , string newKeyPEM = null , AuthContext authContext = null ) ;
127-
12887 #endregion Accounts
129-
13088 }
13189
13290 /// <summary>
@@ -135,15 +93,10 @@ public partial interface ICertifyInternalApiClient
13593 public interface ICertifyClient : ICertifyInternalApiClient
13694 {
13795 event Action < string , string > OnMessageFromService ;
138-
13996 event Action < RequestProgressState > OnRequestProgressStateUpdated ;
140-
14197 event Action < ManagedCertificate > OnManagedCertificateUpdated ;
142-
14398 Task ConnectStatusStreamAsync ( ) ;
144-
14599 Shared . ServerConnection GetConnectionInfo ( ) ;
146-
147100 Task < bool > EnsureServiceHubConnected ( ) ;
148101 }
149102}
0 commit comments