1+ package com.gabrielfeo.gradle.enterprise.api
2+
3+ import com.gabrielfeo.gradle.enterprise.api.model.*
4+
5+ /* *
6+ * Scaffold for a fake `GradleEnterpriseApi` implementation with default methods throwing a
7+ * [NotImplementedError]. Extend this interface and override methods to fake behavior as needed.
8+ */
9+ interface FakeGradleEnterpriseApiScaffold : GradleEnterpriseApi {
10+
11+ override suspend fun createOrUpdateBuildCacheNode (
12+ name : String ,
13+ nodeConfiguration : NodeConfiguration ,
14+ ) {
15+ TODO (" Not yet implemented" )
16+ }
17+
18+ override suspend fun createOrUpdateTestDistributionAgentPool (
19+ poolId : String ,
20+ testDistributionAgentPoolConfiguration : TestDistributionAgentPoolConfiguration ,
21+ ): TestDistributionAgentPoolConfigurationWithId {
22+ TODO (" Not yet implemented" )
23+ }
24+
25+ override suspend fun createTestDistributionAgentPool (
26+ testDistributionAgentPoolConfiguration : TestDistributionAgentPoolConfiguration ,
27+ ): TestDistributionAgentPoolConfigurationWithId {
28+ TODO (" Not yet implemented" )
29+ }
30+
31+ override suspend fun deleteTestDistributionAgentPool (poolId : String ) {
32+ TODO (" Not yet implemented" )
33+ }
34+
35+ override suspend fun generateTestDistributionApiKey (): TestDistributionApiKey {
36+ TODO (" Not yet implemented" )
37+ }
38+
39+ override suspend fun getBuild (id : String , availabilityWaitTimeoutSecs : Int? ): Build {
40+ TODO (" Not yet implemented" )
41+ }
42+
43+ override suspend fun getBuildCacheNode (name : String ): NodeConfiguration {
44+ TODO (" Not yet implemented" )
45+ }
46+
47+ override suspend fun getBuilds (
48+ since : Long? ,
49+ sinceBuild : String? ,
50+ fromInstant : Long? ,
51+ fromBuild : String? ,
52+ reverse : Boolean? ,
53+ maxBuilds : Int? ,
54+ maxWaitSecs : Int? ,
55+ ): List <Build > {
56+ TODO (" Not yet implemented" )
57+ }
58+
59+ override suspend fun getGradleAttributes (
60+ id : String ,
61+ availabilityWaitTimeoutSecs : Int? ,
62+ ): GradleAttributes {
63+ TODO (" Not yet implemented" )
64+ }
65+
66+ override suspend fun getGradleBuildCachePerformance (
67+ id : String ,
68+ availabilityWaitTimeoutSecs : Int? ,
69+ ): GradleBuildCachePerformance {
70+ TODO (" Not yet implemented" )
71+ }
72+
73+ override suspend fun getGradleProjects (
74+ id : String ,
75+ availabilityWaitTimeoutSecs : Int? ,
76+ ): List <GradleProject > {
77+ TODO (" Not yet implemented" )
78+ }
79+
80+ override suspend fun getMavenAttributes (
81+ id : String ,
82+ availabilityWaitTimeoutSecs : Int? ,
83+ ): MavenAttributes {
84+ TODO (" Not yet implemented" )
85+ }
86+
87+ override suspend fun getMavenBuildCachePerformance (
88+ id : String ,
89+ availabilityWaitTimeoutSecs : Int? ,
90+ ): MavenBuildCachePerformance {
91+ TODO (" Not yet implemented" )
92+ }
93+
94+ override suspend fun getMavenModules (
95+ id : String ,
96+ availabilityWaitTimeoutSecs : Int? ,
97+ ): List <MavenModule > {
98+ TODO (" Not yet implemented" )
99+ }
100+
101+ override suspend fun getTestDistributionAgentPool (
102+ poolId : String ,
103+ ): TestDistributionAgentPoolConfigurationWithId {
104+ TODO (" Not yet implemented" )
105+ }
106+
107+ override suspend fun getTestDistributionAgentPoolStatus (
108+ poolId : String ,
109+ ): TestDistributionAgentPoolStatus {
110+ TODO (" Not yet implemented" )
111+ }
112+
113+ override suspend fun getTestDistributionApiKey (
114+ keyPrefix : String ,
115+ ): TestDistributionApiKeyPrefix {
116+ TODO (" Not yet implemented" )
117+ }
118+
119+ override suspend fun getVersion (): GradleEnterpriseVersion {
120+ TODO (" Not yet implemented" )
121+ }
122+
123+ override suspend fun initiatePurgeOfBuildCacheNode (name : String ) {
124+ TODO (" Not yet implemented" )
125+ }
126+
127+ override suspend fun insertTestDistributionApiKey (
128+ keyPrefix : String ,
129+ testDistributionApiKey : TestDistributionApiKey ,
130+ ): TestDistributionApiKeyPrefix {
131+ TODO (" Not yet implemented" )
132+ }
133+
134+ override suspend fun listTestDistributionAgentPools (): TestDistributionAgentPoolPage {
135+ TODO (" Not yet implemented" )
136+ }
137+
138+ override suspend fun listTestDistributionApiKeys (): TestDistributionApiKeyPrefixPage {
139+ TODO (" Not yet implemented" )
140+ }
141+
142+ override suspend fun regenerateSecretOfBuildCacheNode (name : String ): KeySecretPair {
143+ TODO (" Not yet implemented" )
144+ }
145+
146+ override suspend fun revokeTestDistributionApiKey (keyPrefix : String ) {
147+ TODO (" Not yet implemented" )
148+ }
149+ }
0 commit comments