From 873c60516704765ceedfc20d37693c79fde3e87e Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Thu, 16 Feb 2017 16:10:52 -0800 Subject: [PATCH] Renaming all remaining connection.py modules as _http.py. --- .../google/cloud/resource_manager/__init__.py | 1 - .../google/cloud/resource_manager/{connection.py => _http.py} | 0 .../google/cloud/resource_manager/client.py | 3 ++- .../unit_tests/{test_connection.py => test__http.py} | 2 +- .../google-cloud-resource-manager/unit_tests/test_client.py | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename packages/google-cloud-resource-manager/google/cloud/resource_manager/{connection.py => _http.py} (100%) rename packages/google-cloud-resource-manager/unit_tests/{test_connection.py => test__http.py} (95%) diff --git a/packages/google-cloud-resource-manager/google/cloud/resource_manager/__init__.py b/packages/google-cloud-resource-manager/google/cloud/resource_manager/__init__.py index 9b172f4f3223..65a45126b52b 100644 --- a/packages/google-cloud-resource-manager/google/cloud/resource_manager/__init__.py +++ b/packages/google-cloud-resource-manager/google/cloud/resource_manager/__init__.py @@ -16,7 +16,6 @@ from google.cloud.resource_manager.client import Client -from google.cloud.resource_manager.connection import Connection from google.cloud.resource_manager.project import Project diff --git a/packages/google-cloud-resource-manager/google/cloud/resource_manager/connection.py b/packages/google-cloud-resource-manager/google/cloud/resource_manager/_http.py similarity index 100% rename from packages/google-cloud-resource-manager/google/cloud/resource_manager/connection.py rename to packages/google-cloud-resource-manager/google/cloud/resource_manager/_http.py diff --git a/packages/google-cloud-resource-manager/google/cloud/resource_manager/client.py b/packages/google-cloud-resource-manager/google/cloud/resource_manager/client.py index e1258ea1af70..83623d4f6629 100644 --- a/packages/google-cloud-resource-manager/google/cloud/resource_manager/client.py +++ b/packages/google-cloud-resource-manager/google/cloud/resource_manager/client.py @@ -17,7 +17,8 @@ from google.cloud.client import Client as BaseClient from google.cloud.iterator import HTTPIterator -from google.cloud.resource_manager.connection import Connection + +from google.cloud.resource_manager._http import Connection from google.cloud.resource_manager.project import Project diff --git a/packages/google-cloud-resource-manager/unit_tests/test_connection.py b/packages/google-cloud-resource-manager/unit_tests/test__http.py similarity index 95% rename from packages/google-cloud-resource-manager/unit_tests/test_connection.py rename to packages/google-cloud-resource-manager/unit_tests/test__http.py index 59747cd0541b..f9204492eeac 100644 --- a/packages/google-cloud-resource-manager/unit_tests/test_connection.py +++ b/packages/google-cloud-resource-manager/unit_tests/test__http.py @@ -19,7 +19,7 @@ class TestConnection(unittest.TestCase): @staticmethod def _get_target_class(): - from google.cloud.resource_manager.connection import Connection + from google.cloud.resource_manager._http import Connection return Connection diff --git a/packages/google-cloud-resource-manager/unit_tests/test_client.py b/packages/google-cloud-resource-manager/unit_tests/test_client.py index 4425e76c5f9f..0b9535cf34b8 100644 --- a/packages/google-cloud-resource-manager/unit_tests/test_client.py +++ b/packages/google-cloud-resource-manager/unit_tests/test_client.py @@ -35,7 +35,7 @@ def _make_one(self, *args, **kw): return self._get_target_class()(*args, **kw) def test_constructor(self): - from google.cloud.resource_manager.connection import Connection + from google.cloud.resource_manager._http import Connection http = object() credentials = _make_credentials()