hunk.code_window:           "StorageClasses": null,
             "UseLoadBalancer": false,
             "UseServerMetrics": false
           },
           "Flags": {
             "IsServerMetricsDetected": false,
             "IsServerStorageDetected": false
           },
           "Snapshots": []
         },
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:           "IsServerIngressClassDetected": false,
  
hunk.file_path: api/datastore/test_data/output_24_to_latest.json
hunk.type: add
file: import { genericHandler, logsHandler } from './response/handlers';
  
  angular.module('portainer.docker').factory('Container', [
    '$resource',
    'API_ENDPOINT_ENDPOINTS',
    'EndpointProvider',
    function ContainerFactory($resource, API_ENDPOINT_ENDPOINTS, EndpointProvider) {
      'use strict';
      return $resource(
        API_ENDPOINT_ENDPOINTS + '/:endpointId/docker/containers/:id/:action',
        {
          name: '@name',
          endpointId: EndpointProvider.endpointID,
        },
        {
          query: {
            method: 'GET',
            params: { all: 0, action: 'json', filters: '@filters' },
            isArray: true,
          },
          get: {
            method: 'GET',
            params: { action: 'json' },
          },
          logs: {
            method: 'GET',
            params: { id: '@id', action: 'logs' },
            ignoreLoadingBar: true,
            transformResponse: logsHandler,
          },
          stats: {
            method: 'GET',
            params: { id: '@id', stream: false, action: 'stats' },
            ignoreLoadingBar: true,
          },
          top: {
            method: 'GET',
            params: { id: '@id', action: 'top' },
            ignoreLoadingBar: true,
          },
          create: {
            method: 'POST',
            params: { action: 'create' },
            transformResponse: genericHandler,
            ignoreLoadingBar: true,
          },
          exec: {
            method: 'POST',
            params: { id: '@id', action: 'exec' },
            transformResponse: genericHandler,
            ignoreLoadingBar: true,
          },
          inspect: {
            method: 'GET',
            params: { id: '@id', action: 'json' },
          },
          update: {
            method: 'POST',
            params: { id: '@id', action: 'update' },
          },
          prune: {
            method: 'POST',
            params: { action: 'prune', filters: '@filters' },
          },
          resize: {
            method: 'POST',
            params: { id: '@id', action: 'resize', h: '@height', w: '@width' },
            transformResponse: genericHandler,
            ignoreLoadingBar: true,
          },
        }
      );
    },
  ]);
  