Class StorageServiceResource
java.lang.Object
org.openmetadata.service.resources.EntityResource<T,R>
org.openmetadata.service.resources.services.ServiceEntityResource<StorageService,StorageServiceRepository,StorageConnection>
org.openmetadata.service.resources.services.storage.StorageServiceResource
@Path("/v1/services/storageServices")
@Produces("application/json")
@Consumes("application/json")
public class StorageServiceResource
extends ServiceEntityResource<StorageService,StorageServiceRepository,StorageConnection>
-
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, StorageService 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 CreateStorageService create) javax.ws.rs.core.ResponsecreateOrUpdate(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, @Valid CreateStorageService update) javax.ws.rs.core.Responsedelete(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.SecurityContext securityContext, boolean recursive, boolean hardDelete, String fqn) 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(StorageService 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 StorageServicenullifyConnection(StorageService 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.ResponserestoreStorageService(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:
-
-
Constructor Details
-
StorageServiceResource
-
-
Method Details
-
addHref
- Overrides:
addHrefin classEntityResource<StorageService,StorageServiceRepository>
-
getEntitySpecificOperations
- Overrides:
getEntitySpecificOperationsin classEntityResource<StorageService,StorageServiceRepository>
-
list
@GET public ResultList<StorageService> 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 StorageService 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 StorageService 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 StorageService 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 StorageService 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 CreateStorageService 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 CreateStorageService 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/{fqn}") 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("fqn") String fqn) -
restoreStorageService
@PUT @Path("/restore") public javax.ws.rs.core.Response restoreStorageService(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, @Valid @Valid RestoreEntity restore) -
nullifyConnection
- Specified by:
nullifyConnectionin classServiceEntityResource<StorageService,StorageServiceRepository, StorageConnection>
-
extractServiceType
- Specified by:
extractServiceTypein classServiceEntityResource<StorageService,StorageServiceRepository, StorageConnection>
-