{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/876","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/876/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/876/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/876/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/876","id":76072302,"number":876,"title":"Remove 'Bucket.connection' property","user":{"login":"tseaver","id":242750,"avatar_url":"https://avatars.githubusercontent.com/u/242750?v=3","gravatar_id":"","url":"https://api.github.com/users/tseaver","html_url":"https://github.com/tseaver","followers_url":"https://api.github.com/users/tseaver/followers","following_url":"https://api.github.com/users/tseaver/following{/other_user}","gists_url":"https://api.github.com/users/tseaver/gists{/gist_id}","starred_url":"https://api.github.com/users/tseaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tseaver/subscriptions","organizations_url":"https://api.github.com/users/tseaver/orgs","repos_url":"https://api.github.com/users/tseaver/repos","events_url":"https://api.github.com/users/tseaver/events{/privacy}","received_events_url":"https://api.github.com/users/tseaver/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/labels/cla:%20yes","name":"cla: yes","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-13T18:08:16Z","updated_at":"2015-05-13T19:44:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/pulls/876","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/876","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/876.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/876.patch"},"body":"Uses #873 as a diffbase.\r\n\r\nAlso, remove `Bucket.__iter__` and `Bucket.__contains__`, as they provide no means of passing an explicit connection.\r\n\r\nSee #825."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/comments/101792159","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/pull/876#issuecomment-101792159","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/876","id":101792159,"user":{"login":"tseaver","id":242750,"avatar_url":"https://avatars.githubusercontent.com/u/242750?v=3","gravatar_id":"","url":"https://api.github.com/users/tseaver","html_url":"https://github.com/tseaver","followers_url":"https://api.github.com/users/tseaver/followers","following_url":"https://api.github.com/users/tseaver/following{/other_user}","gists_url":"https://api.github.com/users/tseaver/gists{/gist_id}","starred_url":"https://api.github.com/users/tseaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tseaver/subscriptions","organizations_url":"https://api.github.com/users/tseaver/orgs","repos_url":"https://api.github.com/users/tseaver/repos","events_url":"https://api.github.com/users/tseaver/events{/privacy}","received_events_url":"https://api.github.com/users/tseaver/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T19:44:38Z","updated_at":"2015-05-13T19:44:38Z","body":"I can put them back, but it seemed better to reduce the MOOTDI factor:\r\n\r\n- `__iter__` has the same scaling issues that worry you about `make_public(recursive=True)` and `delete(force=True)`, and is redunant to `list_blobs()` in every way except the syntax sugar (which doesn't allow an explicit connection).\r\n- `__contains__` is just sugar (w/o explicit connection support) for `Blob(name, bucket).exists()`."}}