Skip to content

Commit 7b420da

Browse files
Bump logging dependencies to 0.91.0 (#3079)
1 parent befc8ff commit 7b420da

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

packages/google-cloud-logging/google/cloud/logging/_gax.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
from google.gax import INITIAL_PAGE
2727
from google.gax.errors import GaxError
2828
from google.gax.grpc import exc_to_code
29-
from google.cloud.grpc.logging.v2.logging_config_pb2 import LogSink
30-
from google.cloud.grpc.logging.v2.logging_metrics_pb2 import LogMetric
31-
from google.cloud.grpc.logging.v2.log_entry_pb2 import LogEntry
29+
from google.cloud.proto.logging.v2.logging_config_pb2 import LogSink
30+
from google.cloud.proto.logging.v2.logging_metrics_pb2 import LogMetric
31+
from google.cloud.proto.logging.v2.log_entry_pb2 import LogEntry
3232
from google.protobuf.json_format import MessageToDict
3333
from google.protobuf.json_format import ParseDict
3434
from grpc import StatusCode

packages/google-cloud-logging/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@
5252
REQUIREMENTS = [
5353
'google-cloud-core >= 0.23.1, < 0.24dev',
5454
'grpcio >= 1.0.2, < 2.0dev',
55-
'gapic-google-cloud-logging-v2 >= 0.90.1, < 0.91dev',
55+
'gapic-google-cloud-logging-v2 >= 0.91.0, < 0.92dev',
5656
]
5757

5858
setup(
5959
name='google-cloud-logging',
60-
version='0.23.0',
60+
version='0.23.1',
6161
description='Python Client for Stackdriver Logging',
6262
long_description=README,
6363
namespace_packages=[

packages/google-cloud-logging/unit_tests/test__gax.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def test_list_entries_no_paging(self):
6868

6969
from google.api.monitored_resource_pb2 import MonitoredResource
7070
from google.gax import INITIAL_PAGE
71-
from google.cloud.grpc.logging.v2.log_entry_pb2 import LogEntry
71+
from google.cloud.proto.logging.v2.log_entry_pb2 import LogEntry
7272

7373
from google.cloud._helpers import _datetime_to_pb_timestamp
7474
from google.cloud._helpers import UTC
@@ -126,7 +126,7 @@ def _list_entries_with_paging_helper(self, payload, struct_pb):
126126
import datetime
127127

128128
from google.api.monitored_resource_pb2 import MonitoredResource
129-
from google.cloud.grpc.logging.v2.log_entry_pb2 import LogEntry
129+
from google.cloud.proto.logging.v2.log_entry_pb2 import LogEntry
130130
from google.cloud._helpers import _datetime_to_pb_timestamp
131131
from google.cloud._helpers import UTC
132132
from google.cloud._testing import _GAXPageIterator
@@ -217,8 +217,8 @@ def test_list_entries_with_paging_nested_payload(self):
217217

218218
def _make_log_entry_with_extras(self, labels, iid, type_url, now):
219219
from google.api.monitored_resource_pb2 import MonitoredResource
220-
from google.cloud.grpc.logging.v2.log_entry_pb2 import LogEntry
221-
from google.cloud.grpc.logging.v2.log_entry_pb2 import (
220+
from google.cloud.proto.logging.v2.log_entry_pb2 import LogEntry
221+
from google.cloud.proto.logging.v2.log_entry_pb2 import (
222222
LogEntryOperation)
223223
from google.logging.type.http_request_pb2 import HttpRequest
224224
from google.logging.type.log_severity_pb2 import WARNING
@@ -334,7 +334,7 @@ def test_list_entries_with_extra_properties(self):
334334
self.assertEqual(options.page_token, TOKEN)
335335

336336
def test_write_entries_single(self):
337-
from google.cloud.grpc.logging.v2.log_entry_pb2 import LogEntry
337+
from google.cloud.proto.logging.v2.log_entry_pb2 import LogEntry
338338

339339
TEXT = 'TEXT'
340340
ENTRY = {
@@ -368,7 +368,7 @@ def test_write_entries_w_extra_properties(self):
368368
# pylint: disable=too-many-statements
369369
from datetime import datetime
370370
from google.logging.type.log_severity_pb2 import WARNING
371-
from google.cloud.grpc.logging.v2.log_entry_pb2 import LogEntry
371+
from google.cloud.proto.logging.v2.log_entry_pb2 import LogEntry
372372
from google.cloud._helpers import UTC, _pb_timestamp_to_datetime
373373

374374
NOW = datetime.utcnow().replace(tzinfo=UTC)
@@ -464,7 +464,7 @@ def _write_entries_multiple_helper(self, json_payload, json_struct_pb):
464464
# pylint: disable=too-many-statements
465465
import datetime
466466
from google.logging.type.log_severity_pb2 import WARNING
467-
from google.cloud.grpc.logging.v2.log_entry_pb2 import LogEntry
467+
from google.cloud.proto.logging.v2.log_entry_pb2 import LogEntry
468468
from google.protobuf.any_pb2 import Any
469469
from google.cloud._helpers import _datetime_to_rfc3339
470470
from google.cloud._helpers import UTC
@@ -635,7 +635,7 @@ def test_ctor(self):
635635
def test_list_sinks_no_paging(self):
636636
import six
637637
from google.gax import INITIAL_PAGE
638-
from google.cloud.grpc.logging.v2.logging_config_pb2 import LogSink
638+
from google.cloud.proto.logging.v2.logging_config_pb2 import LogSink
639639
from google.cloud._testing import _GAXPageIterator
640640
from google.cloud.logging.sink import Sink
641641

@@ -670,7 +670,7 @@ def test_list_sinks_no_paging(self):
670670
self.assertEqual(options.page_token, INITIAL_PAGE)
671671

672672
def test_list_sinks_w_paging(self):
673-
from google.cloud.grpc.logging.v2.logging_config_pb2 import LogSink
673+
from google.cloud.proto.logging.v2.logging_config_pb2 import LogSink
674674
from google.cloud._testing import _GAXPageIterator
675675
from google.cloud.logging.sink import Sink
676676

@@ -728,7 +728,7 @@ def test_sink_create_conflict(self):
728728
self.DESTINATION_URI)
729729

730730
def test_sink_create_ok(self):
731-
from google.cloud.grpc.logging.v2.logging_config_pb2 import LogSink
731+
from google.cloud.proto.logging.v2.logging_config_pb2 import LogSink
732732

733733
gax_api = _GAXSinksAPI()
734734
api = self._make_one(gax_api, None)
@@ -764,7 +764,7 @@ def test_sink_get_miss(self):
764764
api.sink_get(self.PROJECT, self.SINK_NAME)
765765

766766
def test_sink_get_hit(self):
767-
from google.cloud.grpc.logging.v2.logging_config_pb2 import LogSink
767+
from google.cloud.proto.logging.v2.logging_config_pb2 import LogSink
768768

769769
RESPONSE = {
770770
'name': self.SINK_PATH,
@@ -808,7 +808,7 @@ def test_sink_update_miss(self):
808808
self.DESTINATION_URI)
809809

810810
def test_sink_update_hit(self):
811-
from google.cloud.grpc.logging.v2.logging_config_pb2 import LogSink
811+
from google.cloud.proto.logging.v2.logging_config_pb2 import LogSink
812812

813813
response = LogSink(name=self.SINK_NAME,
814814
destination=self.DESTINATION_URI,
@@ -877,7 +877,7 @@ def test_ctor(self):
877877
def test_list_metrics_no_paging(self):
878878
import six
879879
from google.gax import INITIAL_PAGE
880-
from google.cloud.grpc.logging.v2.logging_metrics_pb2 import LogMetric
880+
from google.cloud.proto.logging.v2.logging_metrics_pb2 import LogMetric
881881
from google.cloud._testing import _GAXPageIterator
882882
from google.cloud.logging.metric import Metric
883883

@@ -912,7 +912,7 @@ def test_list_metrics_no_paging(self):
912912
self.assertEqual(options.page_token, INITIAL_PAGE)
913913

914914
def test_list_metrics_w_paging(self):
915-
from google.cloud.grpc.logging.v2.logging_metrics_pb2 import LogMetric
915+
from google.cloud.proto.logging.v2.logging_metrics_pb2 import LogMetric
916916
from google.cloud._testing import _GAXPageIterator
917917
from google.cloud.logging.metric import Metric
918918

@@ -970,7 +970,7 @@ def test_metric_create_conflict(self):
970970
self.DESCRIPTION)
971971

972972
def test_metric_create_ok(self):
973-
from google.cloud.grpc.logging.v2.logging_metrics_pb2 import LogMetric
973+
from google.cloud.proto.logging.v2.logging_metrics_pb2 import LogMetric
974974

975975
gax_api = _GAXMetricsAPI()
976976
api = self._make_one(gax_api, None)
@@ -1006,7 +1006,7 @@ def test_metric_get_miss(self):
10061006
api.metric_get(self.PROJECT, self.METRIC_NAME)
10071007

10081008
def test_metric_get_hit(self):
1009-
from google.cloud.grpc.logging.v2.logging_metrics_pb2 import LogMetric
1009+
from google.cloud.proto.logging.v2.logging_metrics_pb2 import LogMetric
10101010

10111011
RESPONSE = {
10121012
'name': self.METRIC_PATH,
@@ -1050,7 +1050,7 @@ def test_metric_update_miss(self):
10501050
self.DESCRIPTION)
10511051

10521052
def test_metric_update_hit(self):
1053-
from google.cloud.grpc.logging.v2.logging_metrics_pb2 import LogMetric
1053+
from google.cloud.proto.logging.v2.logging_metrics_pb2 import LogMetric
10541054

10551055
response = LogMetric(name=self.METRIC_NAME,
10561056
description=self.DESCRIPTION,

0 commit comments

Comments
 (0)