@@ -70,6 +70,9 @@ public interface SpringAppDeployment
70
70
/** @return the log file url of the deployment */
71
71
Mono <String > getLogFileUrlAsync ();
72
72
73
+ /** @return (Enterprise Tier Only) config file patterns */
74
+ List <String > configFilePatterns ();
75
+
73
76
/**
74
77
* Container interface for all the definitions that need to be implemented.
75
78
* @param <ParentT> the stage of the parent definition to return to after attaching this definition
@@ -97,6 +100,18 @@ interface WithSource<T> {
97
100
*/
98
101
T withJarFile (File jar );
99
102
103
+ /**
104
+ * (Enterprise Tier Only)
105
+ * Specifies the jar package for the deployment.
106
+ * @param jar the file of the jar
107
+ * @param configFilePatterns config file patterns to decide which patterns of Application Configuration Service will be used
108
+ * (App has to have a binding to the Configuration Service first in order to read the config files
109
+ * {@link com.azure.resourcemanager.appplatform.models.SpringApp.DefinitionStages.WithConfigurationServiceBinding}),
110
+ * use null or empty list to clear existing configurations
111
+ * @return the next stage of deployment definition
112
+ */
113
+ T withJarFile (File jar , List <String > configFilePatterns );
114
+
100
115
// Remove compression first due to tar.gz needs extern dependency
101
116
// /**
102
117
// * Specifies the source code for the deployment.
@@ -112,6 +127,18 @@ interface WithSource<T> {
112
127
*/
113
128
WithModule <T > withSourceCodeTarGzFile (File sourceCodeTarGz );
114
129
130
+ /**
131
+ * (Enterprise Tier Only)
132
+ * Specifies the source code for the deployment.
133
+ * @param sourceCodeTarGz a tar.gz file of the source code
134
+ * @param configFilePatterns config file patterns to decide which patterns of Application Configuration Service will be used
135
+ * (App has to have a binding to the Configuration Service first in order to read the config files
136
+ * {@link com.azure.resourcemanager.appplatform.models.SpringApp.DefinitionStages.WithConfigurationServiceBinding}),
137
+ * use null or empty list to clear existing configurations.
138
+ * @return the next stage of deployment definition
139
+ */
140
+ WithModule <T > withSourceCodeTarGzFile (File sourceCodeTarGz , List <String > configFilePatterns );
141
+
115
142
/**
116
143
* Specifies the a existing source in the cloud storage.
117
144
* @param type the source type in previous upload
@@ -153,13 +180,27 @@ interface WithSettings<T> {
153
180
*/
154
181
T withCpu (int cpuCount );
155
182
183
+ /**
184
+ * Specifies the cpu number of the deployment.
185
+ * @param cpuCount the number of the cpu, 1 core can be represented by 1 or 1000m
186
+ * @return the next stage of deployment definition
187
+ */
188
+ T withCpu (String cpuCount );
189
+
156
190
/**
157
191
* Specifies the memory of the deployment.
158
192
* @param sizeInGB the size of the memory in GB
159
193
* @return the next stage of deployment definition
160
194
*/
161
195
T withMemory (int sizeInGB );
162
196
197
+ /**
198
+ * Specifies the memory of the deployment.
199
+ * @param size the size of the memory, 1 GB can be represented by 1Gi or 1024Mi
200
+ * @return the next stage of deployment definition
201
+ */
202
+ T withMemory (String size );
203
+
163
204
/**
164
205
* Specifies the runtime version of the deployment.
165
206
* @param version the runtime version of Java
@@ -194,6 +235,14 @@ interface WithSettings<T> {
194
235
* @return the next stage of deployment definition
195
236
*/
196
237
T withActivation ();
238
+
239
+ /**
240
+ * Specifies the config file patterns for the deployment.
241
+ * @param configFilePatterns Config file patterns to decide which patterns of Application Configuration Service will be used.
242
+ * Use null or empty list to clear existing configurations.
243
+ * @return the next stage of deployment definition
244
+ */
245
+ T withConfigFilePatterns (List <String > configFilePatterns );
197
246
}
198
247
199
248
/**
@@ -237,13 +286,27 @@ interface WithSettings {
237
286
*/
238
287
Update withCpu (int cpuCount );
239
288
289
+ /**
290
+ * Specifies the cpu number of the deployment.
291
+ * @param cpuCount the number of the cpu, 1 core can be represented by 1 or 1000m
292
+ * @return the next stage of deployment update
293
+ */
294
+ Update withCpu (String cpuCount );
295
+
240
296
/**
241
297
* Specifies the memory of the deployment.
242
298
* @param sizeInGB the size of the memory in GB
243
299
* @return the next stage of deployment update
244
300
*/
245
301
Update withMemory (int sizeInGB );
246
302
303
+ /**
304
+ * Specifies the memory of the deployment.
305
+ * @param size the size of the memory, 1 GB can be represented by 1Gi or 1024Mi
306
+ * @return the next stage of deployment update
307
+ */
308
+ Update withMemory (String size );
309
+
247
310
/**
248
311
* Specifies the runtime version of the deployment.
249
312
* @param version the runtime version of Java
@@ -285,6 +348,14 @@ interface WithSettings {
285
348
* @return the next stage of deployment update
286
349
*/
287
350
Update withActivation ();
351
+
352
+ /**
353
+ * Specifies the config file patterns for the deployment.
354
+ * @param configFilePatterns Config file patterns to decide which patterns of Application Configuration Service will be used.
355
+ * Use null or empty list to clear existing configurations.
356
+ * @return the next stage of deployment update
357
+ */
358
+ Update withConfigFilePatterns (List <String > configFilePatterns );
288
359
}
289
360
290
361
/** The stage of a deployment update allowing to specify the source code or package. */
@@ -296,6 +367,18 @@ interface WithSource {
296
367
*/
297
368
Update withJarFile (File jar );
298
369
370
+ /**
371
+ * (Enterprise Tier Only)
372
+ * Specifies the jar package for the deployment.
373
+ * @param jar the file of the jar
374
+ * @param configFilePatterns config file patterns to decide which patterns of Application Configuration Service will be used
375
+ * (App has to have a binding to the Configuration Service first in order to read the config files
376
+ * {@link com.azure.resourcemanager.appplatform.models.SpringApp.DefinitionStages.WithConfigurationServiceBinding})
377
+ * use null or empty list to clear existing configurations
378
+ * @return the next stage of deployment update
379
+ */
380
+ Update withJarFile (File jar , List <String > configFilePatterns );
381
+
299
382
// /**
300
383
// * Specifies the source code for the deployment.
301
384
// * @param sourceCodeFolder the folder of the source code
@@ -310,6 +393,18 @@ interface WithSource {
310
393
*/
311
394
WithModule withSourceCodeTarGzFile (File sourceCodeTarGz );
312
395
396
+ /**
397
+ * (Enterprise Tier Only)
398
+ * Specifies the source code for the deployment.
399
+ * @param sourceCodeTarGz a tar.gz file of the source code
400
+ * @param configFilePatterns config file patterns to decide which patterns of Application Configuration Service will be used
401
+ * (App has to have a binding to the Configuration Service first in order to read the config files
402
+ * {@link com.azure.resourcemanager.appplatform.models.SpringApp.DefinitionStages.WithConfigurationServiceBinding})
403
+ * use null or empty list to clear existing configurations.
404
+ * @return the next stage of deployment update
405
+ */
406
+ WithModule withSourceCodeTarGzFile (File sourceCodeTarGz , List <String > configFilePatterns );
407
+
313
408
/**
314
409
* Specifies the a existing source in the cloud storage.
315
410
* @param type the source type in previous upload
0 commit comments