{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/605","labels_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/605/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/605/comments","events_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/605/events","html_url":"https://github.com/chrsmith/google-api-java-client/issues/605","id":59535665,"number":605,"title":"remove getResponseHeaders() from model classes [backwards incompatible]","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Component-Google-APIs","name":"Component-Google-APIs","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Milestone-Version1.12.0","name":"Milestone-Version1.12.0","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Priority-High","name":"Priority-High","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-02T19:39:39Z","updated_at":"2015-03-02T19:39:40Z","closed_at":"2015-03-02T19:39:39Z","body":"```\nExternal references, such as a standards document, or specification?\n\nhttp://javadoc.google-api-java-client.googlecode.com/hg/apis/calendar/v3/com/goo\ngle/api/services/calendar/model/Calendar.html#getResponseHeaders()\n\nhttp://javadoc.google-http-java-client.googlecode.com/hg/1.11.0-beta/com/google/\napi/client/http/json/JsonHttpRequest.html?is-external=true#getLastResponseHeader\ns()\n\nJava environments (e.g. Java 6, Android 2.3, App Engine, or All)?\n\nAll\n\nPlease describe the feature requested.\n\nSome model classes -- such as com.google.api.services.calendar.model.Calendar \n-- have a getResponseHeaders() method.  This unnecessarily adds a dependency on \nHTTP headers into the model classes.  It is also usually redundant.  One can \ninstead call getEtag() directly from the JSON model class if that's available, \nor more generally use request.getLastResponseHeaders().\n\nFor example, instead of:\n\nresponseObject.getResponseHeaders().getETag()\n\nyou can normally just do:\n\nresponseObject.getETag()\n\nor more generally:\n\nrequestObject.getLastResponseHeaders().getETag()\n\nSo this is a backwards-incompatible change to remove getResponseHeaders() from \nthe JSON model classes.\n```\n\nOriginal issue reported on code.google.com by `yan...@google.com` on 7 Sep 2012 at 5:55"},"comment":{"url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/comments/76794893","html_url":"https://github.com/chrsmith/google-api-java-client/issues/605#issuecomment-76794893","issue_url":"https://api.github.com/repos/chrsmith/google-api-java-client/issues/605","id":76794893,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T19:39:40Z","updated_at":"2015-03-02T19:39:40Z","body":"\n\nOriginal comment by `yan...@google.com` on 22 Oct 2012 at 7:59\n* Changed state: **Fixed**"}}