Skip to content

Commit

Permalink
Merge pull request #3033 from dhermes/no-more-connection-modules
Browse files Browse the repository at this point in the history
Renaming all remaining connection.py modules as _http.py.
  • Loading branch information
dhermes authored Feb 17, 2017
2 parents abf496e + c957bb9 commit 91c56a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"""Google Stackdriver Monitoring API wrapper."""

from google.cloud.monitoring.client import Client
from google.cloud.monitoring.connection import Connection
from google.cloud.monitoring.group import Group
from google.cloud.monitoring.label import LabelDescriptor
from google.cloud.monitoring.label import LabelValueType
Expand All @@ -33,7 +32,6 @@

__all__ = (
'Client',
'Connection',
'Group',
'LabelDescriptor', 'LabelValueType',
'Metric', 'MetricDescriptor', 'MetricKind', 'ValueType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@

from google.cloud._helpers import _datetime_to_rfc3339
from google.cloud.client import ClientWithProject
from google.cloud.monitoring.connection import Connection

from google.cloud.monitoring._http import Connection
from google.cloud.monitoring.group import Group
from google.cloud.monitoring.metric import Metric
from google.cloud.monitoring.metric import MetricDescriptor
Expand All @@ -44,6 +45,7 @@
from google.cloud.monitoring.timeseries import Point
from google.cloud.monitoring.timeseries import TimeSeries


_UTCNOW = datetime.datetime.utcnow # To be replaced by tests.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TestConnection(unittest.TestCase):

@staticmethod
def _get_target_class():
from google.cloud.monitoring.connection import Connection
from google.cloud.monitoring._http import Connection

return Connection

Expand Down

0 comments on commit 91c56a7

Please sign in to comment.