Skip to content

Commit be1308b

Browse files
algolia-botwriteens
andcommitted
chore: generated code for commit 09a235c. [skip ci]
Co-authored-by: Adewusi Victor <[email protected]>
1 parent 09a235c commit be1308b

File tree

5 files changed

+46
-37
lines changed

5 files changed

+46
-37
lines changed

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/predict/GetModelInstanceConfigStatus.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
/**
1111
* `pending` - model has just been created and the pipelines are being set up for the first train &
12-
* inference. \\ `active` - model is running and generating prediction. \\ `invalid` - model has
13-
* failed training (ex. can’t retrieve data from source). An additional error field will be set for
14-
* this status. \\ `inactive` - model has been deactivated from the dashboard. Pipelines still exist
15-
* but they are not currently running.
12+
* inference. \\ `active` - model is running and generating predictions. \\ `invalid` - model has
13+
* failed training (ex. can’t retrieve data from source). An additional `errorMessage` field will be
14+
* set for this status. \\ `inactive` - model has been deactivated from the dashboard. Pipelines
15+
* still exist but they are not currently running.
1616
*/
1717
public enum GetModelInstanceConfigStatus {
1818
PENDING("pending"),
@@ -21,8 +21,6 @@ public enum GetModelInstanceConfigStatus {
2121

2222
INVALID("invalid"),
2323

24-
ERROR("error"),
25-
2624
INACTIVE("inactive");
2725

2826
private final String value;

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/model/predict/ModelInstance.java

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public class ModelInstance {
3838
@JsonProperty("lastInference")
3939
private String lastInference;
4040

41-
@JsonProperty("error")
42-
private String error;
41+
@JsonProperty("errorMessage")
42+
private String errorMessage;
4343

44-
@JsonProperty("status")
45-
private GetModelInstanceConfigStatus status;
44+
@JsonProperty("modelStatus")
45+
private GetModelInstanceConfigStatus modelStatus;
4646

4747
public ModelInstance setModelID(String modelID) {
4848
this.modelID = modelID;
@@ -189,34 +189,34 @@ public String getLastInference() {
189189
return lastInference;
190190
}
191191

192-
public ModelInstance setError(String error) {
193-
this.error = error;
192+
public ModelInstance setErrorMessage(String errorMessage) {
193+
this.errorMessage = errorMessage;
194194
return this;
195195
}
196196

197197
/**
198-
* Get error
198+
* Get errorMessage
199199
*
200-
* @return error
200+
* @return errorMessage
201201
*/
202202
@javax.annotation.Nullable
203-
public String getError() {
204-
return error;
203+
public String getErrorMessage() {
204+
return errorMessage;
205205
}
206206

207-
public ModelInstance setStatus(GetModelInstanceConfigStatus status) {
208-
this.status = status;
207+
public ModelInstance setModelStatus(GetModelInstanceConfigStatus modelStatus) {
208+
this.modelStatus = modelStatus;
209209
return this;
210210
}
211211

212212
/**
213-
* Get status
213+
* Get modelStatus
214214
*
215-
* @return status
215+
* @return modelStatus
216216
*/
217-
@javax.annotation.Nonnull
218-
public GetModelInstanceConfigStatus getStatus() {
219-
return status;
217+
@javax.annotation.Nullable
218+
public GetModelInstanceConfigStatus getModelStatus() {
219+
return modelStatus;
220220
}
221221

222222
@Override
@@ -238,14 +238,26 @@ public boolean equals(Object o) {
238238
Objects.equals(this.contentAttributes, modelInstance.contentAttributes) &&
239239
Objects.equals(this.lastTrained, modelInstance.lastTrained) &&
240240
Objects.equals(this.lastInference, modelInstance.lastInference) &&
241-
Objects.equals(this.error, modelInstance.error) &&
242-
Objects.equals(this.status, modelInstance.status)
241+
Objects.equals(this.errorMessage, modelInstance.errorMessage) &&
242+
Objects.equals(this.modelStatus, modelInstance.modelStatus)
243243
);
244244
}
245245

246246
@Override
247247
public int hashCode() {
248-
return Objects.hash(modelID, name, type, sourceID, index, affinities, contentAttributes, lastTrained, lastInference, error, status);
248+
return Objects.hash(
249+
modelID,
250+
name,
251+
type,
252+
sourceID,
253+
index,
254+
affinities,
255+
contentAttributes,
256+
lastTrained,
257+
lastInference,
258+
errorMessage,
259+
modelStatus
260+
);
249261
}
250262

251263
@Override
@@ -261,8 +273,8 @@ public String toString() {
261273
sb.append(" contentAttributes: ").append(toIndentedString(contentAttributes)).append("\n");
262274
sb.append(" lastTrained: ").append(toIndentedString(lastTrained)).append("\n");
263275
sb.append(" lastInference: ").append(toIndentedString(lastInference)).append("\n");
264-
sb.append(" error: ").append(toIndentedString(error)).append("\n");
265-
sb.append(" status: ").append(toIndentedString(status)).append("\n");
276+
sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
277+
sb.append(" modelStatus: ").append(toIndentedString(modelStatus)).append("\n");
266278
sb.append("}");
267279
return sb.toString();
268280
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// This file is generated, manual changes will be lost - read more on https://github.com/algolia/api-clients-automation.
22

33
/**
4-
* `pending` - model has just been created and the pipelines are being set up for the first train & inference. \\ `active` - model is running and generating prediction. \\ `invalid` - model has failed training (ex. Can’t retrieve data from source). An additional error field will be set for this status. \\ `inactive` - model has been deactivated from the dashboard. Pipelines still exist but they are not currently running.
4+
* `pending` - model has just been created and the pipelines are being set up for the first train & inference. \\ `active` - model is running and generating predictions. \\ `invalid` - model has failed training (ex. Can’t retrieve data from source). An additional `errorMessage` field will be set for this status. \\ `inactive` - model has been deactivated from the dashboard. Pipelines still exist but they are not currently running.
55
*/
66
export type GetModelInstanceConfigStatus =
77
| 'active'
8-
| 'error'
98
| 'inactive'
109
| 'invalid'
1110
| 'pending';

clients/algoliasearch-client-javascript/packages/predict/model/modelInstance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export type ModelInstance = {
3636
*/
3737
lastInference: string;
3838

39-
error?: string;
39+
errorMessage?: string;
4040

41-
status: GetModelInstanceConfigStatus;
41+
modelStatus?: GetModelInstanceConfigStatus;
4242
};

specs/bundled/predict.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,16 +292,16 @@ components:
292292
- pending
293293
- active
294294
- invalid
295-
- error
296295
- inactive
297296
description: >
298297
`pending` - model has just been created and the pipelines are being set
299298
up for the first train & inference. \
300299
301-
`active` - model is running and generating prediction. \
300+
`active` - model is running and generating predictions. \
302301
303302
`invalid` - model has failed training (ex. can’t retrieve data from
304-
source). An additional error field will be set for this status. \
303+
source). An additional `errorMessage` field will be set for this status.
304+
\
305305
306306
`inactive` - model has been deactivated from the dashboard. Pipelines
307307
still exist but they are not currently running.
@@ -337,9 +337,9 @@ components:
337337
lastInference:
338338
type: string
339339
description: The date and time this model instance generated its last inference.
340-
error:
340+
errorMessage:
341341
type: string
342-
status:
342+
modelStatus:
343343
type: string
344344
$ref: '#/components/schemas/getModelInstanceConfigStatus'
345345
required:

0 commit comments

Comments
 (0)