org.openmetadata.client.api.MlModelsApi Maven / Gradle / Ivy
package org.openmetadata.client.api;
import org.openmetadata.client.ApiClient;
import org.openmetadata.client.EncodingUtils;
import org.openmetadata.client.model.ApiResponse;
import org.openmetadata.client.model.ChangeEvent;
import org.openmetadata.client.model.CreateMlModel;
import org.openmetadata.client.model.EntityHistory;
import org.openmetadata.client.model.MlModel;
import org.openmetadata.client.model.MlModelList;
import org.openmetadata.client.model.RestoreEntity;
import java.util.UUID;
import org.openmetadata.client.model.VoteRequest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import feign.*;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-03T19:44:33.436780642Z[Etc/UTC]")
public interface MlModelsApi extends ApiClient.Api {
/**
* Add a follower
* Add a user identified by `userId` as follower of this model
* @param id Id of the ML Model (required)
* @param body Id of the user to be added as follower (optional)
* @return ChangeEvent
*/
@RequestLine("PUT /v1/mlmodels/{id}/followers")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ChangeEvent addFollower1(@Param("id") UUID id, UUID body);
/**
* Add a follower
* Similar to addFollower1
but it also returns the http response headers .
* Add a user identified by `userId` as follower of this model
* @param id Id of the ML Model (required)
* @param body Id of the user to be added as follower (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/mlmodels/{id}/followers")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse addFollower1WithHttpInfo(@Param("id") UUID id, UUID body);
/**
* Create an ML model
* Create a new ML model.
* @param createMlModel (optional)
* @return MlModel
*/
@RequestLine("POST /v1/mlmodels")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
MlModel createMlModel(CreateMlModel createMlModel);
/**
* Create an ML model
* Similar to createMlModel
but it also returns the http response headers .
* Create a new ML model.
* @param createMlModel (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("POST /v1/mlmodels")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse createMlModelWithHttpInfo(CreateMlModel createMlModel);
/**
* Create or update an ML model
* Create a new ML model, if it does not exist or update an existing model.
* @param createMlModel (optional)
* @return MlModel
*/
@RequestLine("PUT /v1/mlmodels")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
MlModel createOrUpdateMlModel(CreateMlModel createMlModel);
/**
* Create or update an ML model
* Similar to createOrUpdateMlModel
but it also returns the http response headers .
* Create a new ML model, if it does not exist or update an existing model.
* @param createMlModel (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/mlmodels")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse createOrUpdateMlModelWithHttpInfo(CreateMlModel createMlModel);
/**
* Remove a follower
* Remove the user identified `userId` as a follower of the model.
* @param id Id of the ML Model (required)
* @param userId Id of the user being removed as follower (required)
* @return ChangeEvent
*/
@RequestLine("DELETE /v1/mlmodels/{id}/followers/{userId}")
@Headers({
"Accept: application/json",
})
ChangeEvent deleteFollower2(@Param("id") UUID id, @Param("userId") UUID userId);
/**
* Remove a follower
* Similar to deleteFollower2
but it also returns the http response headers .
* Remove the user identified `userId` as a follower of the model.
* @param id Id of the ML Model (required)
* @param userId Id of the user being removed as follower (required)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("DELETE /v1/mlmodels/{id}/followers/{userId}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteFollower2WithHttpInfo(@Param("id") UUID id, @Param("userId") UUID userId);
/**
* Delete an ML model by Id
* Delete an ML model by `Id`.
* @param id Id of the ML Model (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/mlmodels/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteMlModel(@Param("id") UUID id, @Param("hardDelete") Boolean hardDelete);
/**
* Delete an ML model by Id
* Similar to deleteMlModel
but it also returns the http response headers .
* Delete an ML model by `Id`.
* @param id Id of the ML Model (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/mlmodels/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteMlModelWithHttpInfo(@Param("id") UUID id, @Param("hardDelete") Boolean hardDelete);
/**
* Delete an ML model by Id
* Delete an ML model by `Id`.
* Note, this is equivalent to the other deleteMlModel
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link DeleteMlModelQueryParams} class that allows for
* building up this map in a fluent style.
* @param id Id of the ML Model (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/mlmodels/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
void deleteMlModel(@Param("id") UUID id, @QueryMap(encoded=true) DeleteMlModelQueryParams queryParams);
/**
* Delete an ML model by Id
* Delete an ML model by `Id`.
* Note, this is equivalent to the other deleteMlModel
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param id Id of the ML Model (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/mlmodels/{id}?hardDelete={hardDelete}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteMlModelWithHttpInfo(@Param("id") UUID id, @QueryMap(encoded=true) DeleteMlModelQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* deleteMlModel
method in a fluent style.
*/
public static class DeleteMlModelQueryParams extends HashMap {
public DeleteMlModelQueryParams hardDelete(final Boolean value) {
put("hardDelete", EncodingUtils.encode(value));
return this;
}
}
/**
* Delete a ML model by fully qualified name
* Delete an ML model by `fullyQualifiedName`.
* @param fqn Name of the ML Model (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
* @param recursive Recursively delete this entity and it's children. (Default `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/mlmodels/name/{fqn}?hardDelete={hardDelete}&recursive={recursive}")
@Headers({
"Accept: application/json",
})
void deleteMlModelByFQN(@Param("fqn") String fqn, @Param("hardDelete") Boolean hardDelete, @Param("recursive") Boolean recursive);
/**
* Delete a ML model by fully qualified name
* Similar to deleteMlModelByFQN
but it also returns the http response headers .
* Delete an ML model by `fullyQualifiedName`.
* @param fqn Name of the ML Model (required)
* @param hardDelete Hard delete the entity. (Default = `false`) (optional, default to false)
* @param recursive Recursively delete this entity and it's children. (Default `false`) (optional, default to false)
*/
@RequestLine("DELETE /v1/mlmodels/name/{fqn}?hardDelete={hardDelete}&recursive={recursive}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteMlModelByFQNWithHttpInfo(@Param("fqn") String fqn, @Param("hardDelete") Boolean hardDelete, @Param("recursive") Boolean recursive);
/**
* Delete a ML model by fully qualified name
* Delete an ML model by `fullyQualifiedName`.
* Note, this is equivalent to the other deleteMlModelByFQN
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link DeleteMlModelByFQNQueryParams} class that allows for
* building up this map in a fluent style.
* @param fqn Name of the ML Model (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
* - recursive - Recursively delete this entity and it's children. (Default `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/mlmodels/name/{fqn}?hardDelete={hardDelete}&recursive={recursive}")
@Headers({
"Accept: application/json",
})
void deleteMlModelByFQN(@Param("fqn") String fqn, @QueryMap(encoded=true) DeleteMlModelByFQNQueryParams queryParams);
/**
* Delete a ML model by fully qualified name
* Delete an ML model by `fullyQualifiedName`.
* Note, this is equivalent to the other deleteMlModelByFQN
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param fqn Name of the ML Model (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - hardDelete - Hard delete the entity. (Default = `false`) (optional, default to false)
* - recursive - Recursively delete this entity and it's children. (Default `false`) (optional, default to false)
*
*/
@RequestLine("DELETE /v1/mlmodels/name/{fqn}?hardDelete={hardDelete}&recursive={recursive}")
@Headers({
"Accept: application/json",
})
ApiResponse deleteMlModelByFQNWithHttpInfo(@Param("fqn") String fqn, @QueryMap(encoded=true) DeleteMlModelByFQNQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* deleteMlModelByFQN
method in a fluent style.
*/
public static class DeleteMlModelByFQNQueryParams extends HashMap {
public DeleteMlModelByFQNQueryParams hardDelete(final Boolean value) {
put("hardDelete", EncodingUtils.encode(value));
return this;
}
public DeleteMlModelByFQNQueryParams recursive(final Boolean value) {
put("recursive", EncodingUtils.encode(value));
return this;
}
}
/**
* Get an ML model by fully qualified name
* Get an ML model by fully qualified name.
* @param fqn Fully qualified name of ML Model (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return MlModel
*/
@RequestLine("GET /v1/mlmodels/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
MlModel getMlModelByFQN(@Param("fqn") String fqn, @Param("fields") String fields, @Param("include") String include);
/**
* Get an ML model by fully qualified name
* Similar to getMlModelByFQN
but it also returns the http response headers .
* Get an ML model by fully qualified name.
* @param fqn Fully qualified name of ML Model (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/mlmodels/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getMlModelByFQNWithHttpInfo(@Param("fqn") String fqn, @Param("fields") String fields, @Param("include") String include);
/**
* Get an ML model by fully qualified name
* Get an ML model by fully qualified name.
* Note, this is equivalent to the other getMlModelByFQN
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link GetMlModelByFQNQueryParams} class that allows for
* building up this map in a fluent style.
* @param fqn Fully qualified name of ML Model (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return MlModel
*/
@RequestLine("GET /v1/mlmodels/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
MlModel getMlModelByFQN(@Param("fqn") String fqn, @QueryMap(encoded=true) GetMlModelByFQNQueryParams queryParams);
/**
* Get an ML model by fully qualified name
* Get an ML model by fully qualified name.
* Note, this is equivalent to the other getMlModelByFQN
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param fqn Fully qualified name of ML Model (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return MlModel
*/
@RequestLine("GET /v1/mlmodels/name/{fqn}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getMlModelByFQNWithHttpInfo(@Param("fqn") String fqn, @QueryMap(encoded=true) GetMlModelByFQNQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* getMlModelByFQN
method in a fluent style.
*/
public static class GetMlModelByFQNQueryParams extends HashMap {
public GetMlModelByFQNQueryParams fields(final String value) {
put("fields", EncodingUtils.encode(value));
return this;
}
public GetMlModelByFQNQueryParams include(final String value) {
put("include", EncodingUtils.encode(value));
return this;
}
}
/**
* Get an ML model by Id
* Get an ML model by `Id`.
* @param id Id of the ML Model (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return MlModel
*/
@RequestLine("GET /v1/mlmodels/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
MlModel getMlModelByID(@Param("id") UUID id, @Param("fields") String fields, @Param("include") String include);
/**
* Get an ML model by Id
* Similar to getMlModelByID
but it also returns the http response headers .
* Get an ML model by `Id`.
* @param id Id of the ML Model (required)
* @param fields Fields requested in the returned resource (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/mlmodels/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getMlModelByIDWithHttpInfo(@Param("id") UUID id, @Param("fields") String fields, @Param("include") String include);
/**
* Get an ML model by Id
* Get an ML model by `Id`.
* Note, this is equivalent to the other getMlModelByID
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link GetMlModelByIDQueryParams} class that allows for
* building up this map in a fluent style.
* @param id Id of the ML Model (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return MlModel
*/
@RequestLine("GET /v1/mlmodels/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
MlModel getMlModelByID(@Param("id") UUID id, @QueryMap(encoded=true) GetMlModelByIDQueryParams queryParams);
/**
* Get an ML model by Id
* Get an ML model by `Id`.
* Note, this is equivalent to the other getMlModelByID
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param id Id of the ML Model (required)
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return MlModel
*/
@RequestLine("GET /v1/mlmodels/{id}?fields={fields}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse getMlModelByIDWithHttpInfo(@Param("id") UUID id, @QueryMap(encoded=true) GetMlModelByIDQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* getMlModelByID
method in a fluent style.
*/
public static class GetMlModelByIDQueryParams extends HashMap {
public GetMlModelByIDQueryParams fields(final String value) {
put("fields", EncodingUtils.encode(value));
return this;
}
public GetMlModelByIDQueryParams include(final String value) {
put("include", EncodingUtils.encode(value));
return this;
}
}
/**
* Get a version of the ML model
* Get a version of the ML model by given `id`
* @param id Id of the ML Model (required)
* @param version ML Model version number in the form `major`.`minor` (required)
* @return MlModel
*/
@RequestLine("GET /v1/mlmodels/{id}/versions/{version}")
@Headers({
"Accept: application/json",
})
MlModel getSpecificMlModelVersion(@Param("id") UUID id, @Param("version") String version);
/**
* Get a version of the ML model
* Similar to getSpecificMlModelVersion
but it also returns the http response headers .
* Get a version of the ML model by given `id`
* @param id Id of the ML Model (required)
* @param version ML Model version number in the form `major`.`minor` (required)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/mlmodels/{id}/versions/{version}")
@Headers({
"Accept: application/json",
})
ApiResponse getSpecificMlModelVersionWithHttpInfo(@Param("id") UUID id, @Param("version") String version);
/**
* List ML model versions
* Get a list of all the versions of an ML Model identified by `id`
* @param id Id of the ML Model (required)
* @return EntityHistory
*/
@RequestLine("GET /v1/mlmodels/{id}/versions")
@Headers({
"Accept: application/json",
})
EntityHistory listAllMlModelVersion(@Param("id") UUID id);
/**
* List ML model versions
* Similar to listAllMlModelVersion
but it also returns the http response headers .
* Get a list of all the versions of an ML Model identified by `id`
* @param id Id of the ML Model (required)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/mlmodels/{id}/versions")
@Headers({
"Accept: application/json",
})
ApiResponse listAllMlModelVersionWithHttpInfo(@Param("id") UUID id);
/**
* List ML models
* Get a list of mlmodels, optionally filtered by `service` it belongs to. Use `fields` parameter to get only necessary fields. Use cursor-based pagination to limit the number entries in the list using `limit` and `before` or `after` query params.
* @param fields Fields requested in the returned resource (optional)
* @param service Filter MlModels by service name (optional)
* @param limit Limit the number models returned. (1 to 1000000, default = 10) (optional, default to 10)
* @param before Returns list of models before this cursor (optional)
* @param after Returns list of models after this cursor (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return MlModelList
*/
@RequestLine("GET /v1/mlmodels?fields={fields}&service={service}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
MlModelList listMlModels(@Param("fields") String fields, @Param("service") String service, @Param("limit") Integer limit, @Param("before") String before, @Param("after") String after, @Param("include") String include);
/**
* List ML models
* Similar to listMlModels
but it also returns the http response headers .
* Get a list of mlmodels, optionally filtered by `service` it belongs to. Use `fields` parameter to get only necessary fields. Use cursor-based pagination to limit the number entries in the list using `limit` and `before` or `after` query params.
* @param fields Fields requested in the returned resource (optional)
* @param service Filter MlModels by service name (optional)
* @param limit Limit the number models returned. (1 to 1000000, default = 10) (optional, default to 10)
* @param before Returns list of models before this cursor (optional)
* @param after Returns list of models after this cursor (optional)
* @param include Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("GET /v1/mlmodels?fields={fields}&service={service}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse listMlModelsWithHttpInfo(@Param("fields") String fields, @Param("service") String service, @Param("limit") Integer limit, @Param("before") String before, @Param("after") String after, @Param("include") String include);
/**
* List ML models
* Get a list of mlmodels, optionally filtered by `service` it belongs to. Use `fields` parameter to get only necessary fields. Use cursor-based pagination to limit the number entries in the list using `limit` and `before` or `after` query params.
* Note, this is equivalent to the other listMlModels
method,
* but with the query parameters collected into a single Map parameter. This
* is convenient for services with optional query parameters, especially when
* used with the {@link ListMlModelsQueryParams} class that allows for
* building up this map in a fluent style.
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - service - Filter MlModels by service name (optional)
* - limit - Limit the number models returned. (1 to 1000000, default = 10) (optional, default to 10)
* - before - Returns list of models before this cursor (optional)
* - after - Returns list of models after this cursor (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return MlModelList
*/
@RequestLine("GET /v1/mlmodels?fields={fields}&service={service}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
MlModelList listMlModels(@QueryMap(encoded=true) ListMlModelsQueryParams queryParams);
/**
* List ML models
* Get a list of mlmodels, optionally filtered by `service` it belongs to. Use `fields` parameter to get only necessary fields. Use cursor-based pagination to limit the number entries in the list using `limit` and `before` or `after` query params.
* Note, this is equivalent to the other listMlModels
that receives the query parameters as a map,
* but this one also exposes the Http response headers
* @param queryParams Map of query parameters as name-value pairs
* The following elements may be specified in the query map:
*
* - fields - Fields requested in the returned resource (optional)
* - service - Filter MlModels by service name (optional)
* - limit - Limit the number models returned. (1 to 1000000, default = 10) (optional, default to 10)
* - before - Returns list of models before this cursor (optional)
* - after - Returns list of models after this cursor (optional)
* - include - Include all, deleted, or non-deleted entities. (optional, default to non-deleted)
*
* @return MlModelList
*/
@RequestLine("GET /v1/mlmodels?fields={fields}&service={service}&limit={limit}&before={before}&after={after}&include={include}")
@Headers({
"Accept: application/json",
})
ApiResponse listMlModelsWithHttpInfo(@QueryMap(encoded=true) ListMlModelsQueryParams queryParams);
/**
* A convenience class for generating query parameters for the
* listMlModels
method in a fluent style.
*/
public static class ListMlModelsQueryParams extends HashMap {
public ListMlModelsQueryParams fields(final String value) {
put("fields", EncodingUtils.encode(value));
return this;
}
public ListMlModelsQueryParams service(final String value) {
put("service", EncodingUtils.encode(value));
return this;
}
public ListMlModelsQueryParams limit(final Integer value) {
put("limit", EncodingUtils.encode(value));
return this;
}
public ListMlModelsQueryParams before(final String value) {
put("before", EncodingUtils.encode(value));
return this;
}
public ListMlModelsQueryParams after(final String value) {
put("after", EncodingUtils.encode(value));
return this;
}
public ListMlModelsQueryParams include(final String value) {
put("include", EncodingUtils.encode(value));
return this;
}
}
/**
* Update an ML model by name.
* Update an existing ML model using JsonPatch.
* @param fqn Name of the ML Model (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update an ML model by name. Documentation
*/
@RequestLine("PATCH /v1/mlmodels/name/{fqn}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
void patchMlModel(@Param("fqn") String fqn, Object body);
/**
* Update an ML model by name.
* Similar to patchMlModel
but it also returns the http response headers .
* Update an existing ML model using JsonPatch.
* @param fqn Name of the ML Model (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update an ML model by name. Documentation
*/
@RequestLine("PATCH /v1/mlmodels/name/{fqn}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
ApiResponse patchMlModelWithHttpInfo(@Param("fqn") String fqn, Object body);
/**
* Update an ML model
* Update an existing ML model using JsonPatch.
* @param id Id of the ML Model (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update an ML model Documentation
*/
@RequestLine("PATCH /v1/mlmodels/{id}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
void patchMlModel1(@Param("id") UUID id, Object body);
/**
* Update an ML model
* Similar to patchMlModel1
but it also returns the http response headers .
* Update an existing ML model using JsonPatch.
* @param id Id of the ML Model (required)
* @param body JsonPatch with array of operations (optional)
* JsonPatch RFC
* @see Update an ML model Documentation
*/
@RequestLine("PATCH /v1/mlmodels/{id}")
@Headers({
"Content-Type: application/json-patch+json",
"Accept: application/json",
})
ApiResponse patchMlModel1WithHttpInfo(@Param("id") UUID id, Object body);
/**
* Restore a soft deleted ML model
* Restore a soft deleted ML Model.
* @param restoreEntity (optional)
* @return MlModel
*/
@RequestLine("PUT /v1/mlmodels/restore")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
MlModel restore15(RestoreEntity restoreEntity);
/**
* Restore a soft deleted ML model
* Similar to restore15
but it also returns the http response headers .
* Restore a soft deleted ML Model.
* @param restoreEntity (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/mlmodels/restore")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse restore15WithHttpInfo(RestoreEntity restoreEntity);
/**
* Update Vote for a Entity
* Update vote for a Entity
* @param id Id of the Entity (required)
* @param voteRequest (optional)
* @return ChangeEvent
*/
@RequestLine("PUT /v1/mlmodels/{id}/vote")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ChangeEvent updateVoteForEntity10(@Param("id") UUID id, VoteRequest voteRequest);
/**
* Update Vote for a Entity
* Similar to updateVoteForEntity10
but it also returns the http response headers .
* Update vote for a Entity
* @param id Id of the Entity (required)
* @param voteRequest (optional)
* @return A ApiResponse that wraps the response boyd and the http headers.
*/
@RequestLine("PUT /v1/mlmodels/{id}/vote")
@Headers({
"Content-Type: application/json",
"Accept: application/json",
})
ApiResponse updateVoteForEntity10WithHttpInfo(@Param("id") UUID id, VoteRequest voteRequest);
}