Class MlModelServiceResource
java.lang.Object
org.openmetadata.service.resources.EntityResource<T,R>
org.openmetadata.service.resources.services.ServiceEntityResource<MlModelService,MlModelServiceRepository,MlModelConnection>
org.openmetadata.service.resources.services.mlmodel.MlModelServiceResource
@Path("/v1/services/mlmodelServices")
@Produces("application/json")
@Consumes("application/json")
public class MlModelServiceResource
extends ServiceEntityResource<MlModelService,MlModelServiceRepository,MlModelConnection>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.openmetadata.service.resources.EntityResource
allowedFields, authorizer, entityClass, entityType, fieldsToViewOperations, repository, VIEW_ALL_OPERATIONS, VIEW_BASIC_OPERATIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHref(javax.ws.rs.core.UriInfo uriInfo, MlModelService service) addTestConnectionResult(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, UUID id, @Valid TestConnectionResult testConnectionResult) javax.ws.rs.core.Responsecreate(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, @Valid CreateMlModelService create) javax.ws.rs.core.ResponsecreateOrUpdate(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, @Valid CreateMlModelService update) javax.ws.rs.core.Responsedelete(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, boolean recursive, boolean hardDelete, String name) javax.ws.rs.core.Responsedelete(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, boolean recursive, boolean hardDelete, UUID id) protected StringextractServiceType(MlModelService service) get(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, UUID id, String fieldsParam, Include include) getByName(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, String name, String fieldsParam, Include include) protected List<MetadataOperation>getVersion(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, UUID id, String version) list(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, String fieldsParam, String domain, @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(1000000L) int limitParam, String before, String after, Include include) listVersions(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, UUID id) protected MlModelServicenullifyConnection(MlModelService service) javax.ws.rs.core.Responsepatch(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, UUID id, javax.json.JsonPatch patch) javax.ws.rs.core.ResponserestoreTable(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, @Valid RestoreEntity restore) Methods inherited from class org.openmetadata.service.resources.services.ServiceEntityResource
decryptOrNullify, decryptOrNullify, listInternal, unmaskMethods inherited from class org.openmetadata.service.resources.EntityResource
addHref, addViewOperation, create, createOrUpdate, delete, deleteByName, exportCsvInternal, getByNameInternal, getByNameInternal, getEntityReference, getEntityReferences, getFields, getInternal, getInternal, getResourceContext, getResourceContextById, getResourceContextByName, getVersionInternal, getVersionInternal, importCsvInternal, initialize, listInternal, listInternal, listVersionsInternal, listVersionsInternal, patchInternal, restoreEntity, upgrade
-
Field Details
-
COLLECTION_PATH
- See Also:
-
FIELDS
- See Also:
-
-
Constructor Details
-
MlModelServiceResource
-
-
Method Details
-
addHref
- Overrides:
addHrefin classEntityResource<MlModelService,MlModelServiceRepository>
-
getEntitySpecificOperations
- Overrides:
getEntitySpecificOperationsin classEntityResource<MlModelService,MlModelServiceRepository>
-
list
@GET public ResultList<MlModelService> list(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @QueryParam("fields") String fieldsParam, @QueryParam("domain") String domain, @DefaultValue("10") @Min(0L) @Max(1000000L) @QueryParam("limit") @javax.validation.constraints.Min(0L),@javax.validation.constraints.Max(1000000L) int limitParam, @QueryParam("before") String before, @QueryParam("after") String after, @QueryParam("include") @DefaultValue("non-deleted") Include include) -
get
@GET @Path("/{id}") public MlModelService get(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @PathParam("id") UUID id, @QueryParam("fields") String fieldsParam, @QueryParam("include") @DefaultValue("non-deleted") Include include) -
getByName
@GET @Path("/name/{name}") public MlModelService getByName(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @PathParam("name") String name, @QueryParam("fields") String fieldsParam, @QueryParam("include") @DefaultValue("non-deleted") Include include) -
addTestConnectionResult
@PUT @Path("/{id}/testConnectionResult") public MlModelService addTestConnectionResult(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @PathParam("id") UUID id, @Valid @Valid TestConnectionResult testConnectionResult) -
listVersions
@GET @Path("/{id}/versions") public EntityHistory listVersions(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @PathParam("id") UUID id) -
getVersion
@GET @Path("/{id}/versions/{version}") public MlModelService getVersion(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @PathParam("id") UUID id, @PathParam("version") String version) -
create
@POST public javax.ws.rs.core.Response create(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @Valid @Valid CreateMlModelService create) -
createOrUpdate
@PUT public javax.ws.rs.core.Response createOrUpdate(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @Valid @Valid CreateMlModelService update) -
patch
@PATCH @Path("/{id}") @Consumes("application/json-patch+json") public javax.ws.rs.core.Response patch(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @PathParam("id") UUID id, javax.json.JsonPatch patch) -
delete
@DELETE @Path("/{id}") public javax.ws.rs.core.Response delete(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @DefaultValue("false") @QueryParam("recursive") boolean recursive, @QueryParam("hardDelete") @DefaultValue("false") boolean hardDelete, @PathParam("id") UUID id) -
delete
@DELETE @Path("/name/{name}") public javax.ws.rs.core.Response delete(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @DefaultValue("false") @QueryParam("recursive") boolean recursive, @QueryParam("hardDelete") @DefaultValue("false") boolean hardDelete, @PathParam("name") String name) -
restoreTable
@PUT @Path("/restore") public javax.ws.rs.core.Response restoreTable(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @Valid @Valid RestoreEntity restore) -
nullifyConnection
- Specified by:
nullifyConnectionin classServiceEntityResource<MlModelService,MlModelServiceRepository, MlModelConnection>
-
extractServiceType
- Specified by:
extractServiceTypein classServiceEntityResource<MlModelService,MlModelServiceRepository, MlModelConnection>
-