hunk.code_window: 		return &httperror.HandlerError{http.StatusNotFound, "Unable to find an Edge job with the specified identifier inside the database", err}
   	} else if err != nil {
   		return &httperror.HandlerError{http.StatusInternalServerError, "Unable to find an Edge job with the specified identifier inside the database", err}
   	}
   	edgeJobFileContent, err := handler.FileService.GetFileContent("", edgeJob.ScriptPath)
   	if err != nil {
   		return &httperror.HandlerError{http.StatusInternalServerError, "Unable to retrieve Edge job script file from disk", err}
   	}
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit: 	edgeJobFileContent, err := handler.FileService.GetFileContent(edgeJob.ScriptPath, "")
  
hunk.file_path: api/http/handler/edgejobs/edgejob_file.go
hunk.type: replace
file: import { rawResponse } from 'Kubernetes/rest/response/transform';
  
  angular.module('portainer.kubernetes').factory('KubernetesPersistentVolumeClaims', [
    '$resource',
    'API_ENDPOINT_ENDPOINTS',
    'EndpointProvider',
    function KubernetesPersistentVolumeClaimsFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
      'use strict';
      return function (namespace) {
        const url = API_ENDPOINT_ENDPOINTS + '/:endpointId/kubernetes/api/v1' + (namespace ? '/namespaces/:namespace' : '') + '/persistentvolumeclaims/:id/:action';
        return $resource(
          url,
          {
            endpointId: EndpointProvider.endpointID,
            namespace: namespace,
          },
          {
            get: {
              method: 'GET',
              ignoreLoadingBar: true,
            },
            getYaml: {
              method: 'GET',
              headers: {
                Accept: 'application/yaml',
              },
              transformResponse: rawResponse,
              ignoreLoadingBar: true,
            },
            create: { method: 'POST' },
            update: { method: 'PUT' },
            patch: {
              method: 'PATCH',
              headers: {
                'Content-Type': 'application/json-patch+json',
              },
            },
            delete: { method: 'DELETE' },
          }
        );
      };
    },
  ]);
  