use of bio.terra.workspace.service.resource.referenced.cloud.gcp.datareposnapshot.ReferencedDataRepoSnapshotResource in project terra-workspace-manager by DataBiosphere.
the class ReferencedGcpResourceController method getDataRepoSnapshotReferenceByName.
@Override
public ResponseEntity<ApiDataRepoSnapshotResource> getDataRepoSnapshotReferenceByName(UUID id, String name) {
AuthenticatedUserRequest userRequest = getAuthenticatedInfo();
ReferencedDataRepoSnapshotResource referenceResource = referenceResourceService.getReferenceResourceByName(id, name, userRequest).castByEnum(WsmResourceType.REFERENCED_ANY_DATA_REPO_SNAPSHOT);
return new ResponseEntity<>(referenceResource.toApiResource(), HttpStatus.OK);
}
Aggregations