export default (function (projectId) {
  return {
    autoQuery: true,
    selection: false,
    paging: false,
    fields: [{
      name: 'id',
      type: 'string'
    }, {
      name: 'name',
      type: 'string'
    }, {
      name: 'projectId',
      type: 'number'
    }],
    transport: {
      read: {
        url: "/devops/v1/projects/".concat(projectId, "/env_groups/list_by_project"),
        method: 'get'
      }
    }
  };
});