Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit cb7249d

Browse files
chore: Use gapic-generator-python 0.65.0 (#89)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 440970084 Source-Link: googleapis/googleapis@5e0a3d5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b0c628a3fade768f225d76992791ea1ba2a881be Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBjNjI4YTNmYWRlNzY4ZjIyNWQ3Njk5Mjc5MWVhMWJhMmE4ODFiZSJ9 docs: fix type in docstring for map fields
1 parent fda521e commit cb7249d

File tree

12 files changed

+196
-140
lines changed

12 files changed

+196
-140
lines changed

google/cloud/datastream_v1/services/datastream/async_client.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core.client_options import ClientOptions
@@ -228,7 +228,6 @@ async def list_connection_profiles(
228228
r"""Use this method to list connection profiles created
229229
in a project and location.
230230
231-
232231
.. code-block:: python
233232
234233
from google.cloud import datastream_v1
@@ -338,7 +337,6 @@ async def get_connection_profile(
338337
r"""Use this method to get details about a connection
339338
profile.
340339
341-
342340
.. code-block:: python
343341
344342
from google.cloud import datastream_v1
@@ -438,7 +436,6 @@ async def create_connection_profile(
438436
r"""Use this method to create a connection profile in a
439437
project and location.
440438
441-
442439
.. code-block:: python
443440
444441
from google.cloud import datastream_v1
@@ -577,7 +574,6 @@ async def update_connection_profile(
577574
r"""Use this method to update the parameters of a
578575
connection profile.
579576
580-
581577
.. code-block:: python
582578
583579
from google.cloud import datastream_v1
@@ -832,7 +828,6 @@ async def discover_connection_profile(
832828
returns children data objects of a parent data object
833829
that's optionally supplied in the request.
834830
835-
836831
.. code-block:: python
837832
838833
from google.cloud import datastream_v1
@@ -915,7 +910,6 @@ async def list_streams(
915910
r"""Use this method to list streams in a project and
916911
location.
917912
918-
919913
.. code-block:: python
920914
921915
from google.cloud import datastream_v1
@@ -1255,7 +1249,6 @@ async def update_stream(
12551249
r"""Use this method to update the configuration of a
12561250
stream.
12571251
1258-
12591252
.. code-block:: python
12601253
12611254
from google.cloud import datastream_v1
@@ -1602,7 +1595,6 @@ async def lookup_stream_object(
16021595
r"""Use this method to look up a stream object by its
16031596
source object identifier.
16041597
1605-
16061598
.. code-block:: python
16071599
16081600
from google.cloud import datastream_v1
@@ -1683,7 +1675,6 @@ async def list_stream_objects(
16831675
r"""Use this method to list the objects of a specific
16841676
stream.
16851677
1686-
16871678
.. code-block:: python
16881679
16891680
from google.cloud import datastream_v1
@@ -1793,7 +1784,6 @@ async def start_backfill_job(
17931784
r"""Use this method to start a backfill job for the
17941785
specified stream object.
17951786
1796-
17971787
.. code-block:: python
17981788
17991789
from google.cloud import datastream_v1
@@ -1892,7 +1882,6 @@ async def stop_backfill_job(
18921882
r"""Use this method to stop a backfill job for the
18931883
specified stream object.
18941884
1895-
18961885
.. code-block:: python
18971886
18981887
from google.cloud import datastream_v1
@@ -1990,7 +1979,6 @@ async def fetch_static_ips(
19901979
r"""The FetchStaticIps API call exposes the static IP
19911980
addresses used by Datastream.
19921981
1993-
19941982
.. code-block:: python
19951983
19961984
from google.cloud import datastream_v1
@@ -2103,7 +2091,6 @@ async def create_private_connection(
21032091
r"""Use this method to create a private connectivity
21042092
configuration.
21052093
2106-
21072094
.. code-block:: python
21082095
21092096
from google.cloud import datastream_v1
@@ -2237,7 +2224,6 @@ async def get_private_connection(
22372224
r"""Use this method to get details about a private
22382225
connectivity configuration.
22392226
2240-
22412227
.. code-block:: python
22422228
22432229
from google.cloud import datastream_v1
@@ -2336,7 +2322,6 @@ async def list_private_connections(
23362322
r"""Use this method to list private connectivity
23372323
configurations in a project and location.
23382324
2339-
23402325
.. code-block:: python
23412326
23422327
from google.cloud import datastream_v1
@@ -2447,7 +2432,6 @@ async def delete_private_connection(
24472432
r"""Use this method to delete a private connectivity
24482433
configuration.
24492434
2450-
24512435
.. code-block:: python
24522436
24532437
from google.cloud import datastream_v1
@@ -2571,7 +2555,6 @@ async def create_route(
25712555
r"""Use this method to create a route for a private
25722556
connectivity configuration in a project and location.
25732557
2574-
25752558
.. code-block:: python
25762559
25772560
from google.cloud import datastream_v1
@@ -2799,7 +2782,6 @@ async def list_routes(
27992782
r"""Use this method to list routes created for a private
28002783
connectivity configuration in a project and location.
28012784
2802-
28032785
.. code-block:: python
28042786
28052787
from google.cloud import datastream_v1

google/cloud/datastream_v1/services/datastream/client.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -553,7 +553,6 @@ def list_connection_profiles(
553553
r"""Use this method to list connection profiles created
554554
in a project and location.
555555
556-
557556
.. code-block:: python
558557
559558
from google.cloud import datastream_v1
@@ -663,7 +662,6 @@ def get_connection_profile(
663662
r"""Use this method to get details about a connection
664663
profile.
665664
666-
667665
.. code-block:: python
668666
669667
from google.cloud import datastream_v1
@@ -763,7 +761,6 @@ def create_connection_profile(
763761
r"""Use this method to create a connection profile in a
764762
project and location.
765763
766-
767764
.. code-block:: python
768765
769766
from google.cloud import datastream_v1
@@ -904,7 +901,6 @@ def update_connection_profile(
904901
r"""Use this method to update the parameters of a
905902
connection profile.
906903
907-
908904
.. code-block:: python
909905
910906
from google.cloud import datastream_v1
@@ -1163,7 +1159,6 @@ def discover_connection_profile(
11631159
returns children data objects of a parent data object
11641160
that's optionally supplied in the request.
11651161
1166-
11671162
.. code-block:: python
11681163
11691164
from google.cloud import datastream_v1
@@ -1249,7 +1244,6 @@ def list_streams(
12491244
r"""Use this method to list streams in a project and
12501245
location.
12511246
1252-
12531247
.. code-block:: python
12541248
12551249
from google.cloud import datastream_v1
@@ -1589,7 +1583,6 @@ def update_stream(
15891583
r"""Use this method to update the configuration of a
15901584
stream.
15911585
1592-
15931586
.. code-block:: python
15941587
15951588
from google.cloud import datastream_v1
@@ -1936,7 +1929,6 @@ def lookup_stream_object(
19361929
r"""Use this method to look up a stream object by its
19371930
source object identifier.
19381931
1939-
19401932
.. code-block:: python
19411933
19421934
from google.cloud import datastream_v1
@@ -2018,7 +2010,6 @@ def list_stream_objects(
20182010
r"""Use this method to list the objects of a specific
20192011
stream.
20202012
2021-
20222013
.. code-block:: python
20232014
20242015
from google.cloud import datastream_v1
@@ -2128,7 +2119,6 @@ def start_backfill_job(
21282119
r"""Use this method to start a backfill job for the
21292120
specified stream object.
21302121
2131-
21322122
.. code-block:: python
21332123
21342124
from google.cloud import datastream_v1
@@ -2227,7 +2217,6 @@ def stop_backfill_job(
22272217
r"""Use this method to stop a backfill job for the
22282218
specified stream object.
22292219
2230-
22312220
.. code-block:: python
22322221
22332222
from google.cloud import datastream_v1
@@ -2325,7 +2314,6 @@ def fetch_static_ips(
23252314
r"""The FetchStaticIps API call exposes the static IP
23262315
addresses used by Datastream.
23272316
2328-
23292317
.. code-block:: python
23302318
23312319
from google.cloud import datastream_v1
@@ -2438,7 +2426,6 @@ def create_private_connection(
24382426
r"""Use this method to create a private connectivity
24392427
configuration.
24402428
2441-
24422429
.. code-block:: python
24432430
24442431
from google.cloud import datastream_v1
@@ -2574,7 +2561,6 @@ def get_private_connection(
25742561
r"""Use this method to get details about a private
25752562
connectivity configuration.
25762563
2577-
25782564
.. code-block:: python
25792565
25802566
from google.cloud import datastream_v1
@@ -2673,7 +2659,6 @@ def list_private_connections(
26732659
r"""Use this method to list private connectivity
26742660
configurations in a project and location.
26752661
2676-
26772662
.. code-block:: python
26782663
26792664
from google.cloud import datastream_v1
@@ -2784,7 +2769,6 @@ def delete_private_connection(
27842769
r"""Use this method to delete a private connectivity
27852770
configuration.
27862771
2787-
27882772
.. code-block:: python
27892773
27902774
from google.cloud import datastream_v1
@@ -2910,7 +2894,6 @@ def create_route(
29102894
r"""Use this method to create a route for a private
29112895
connectivity configuration in a project and location.
29122896
2913-
29142897
.. code-block:: python
29152898
29162899
from google.cloud import datastream_v1
@@ -3138,7 +3121,6 @@ def list_routes(
31383121
r"""Use this method to list routes created for a private
31393122
connectivity configuration in a project and location.
31403123
3141-
31423124
.. code-block:: python
31433125
31443126
from google.cloud import datastream_v1

google/cloud/datastream_v1/services/datastream/transports/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def __init__(
8383
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
8484
be used for service account credentials.
8585
"""
86+
8687
# Save the hostname. Default to port 443 (HTTPS) if none is specified.
8788
if ":" not in host:
8889
host += ":443"
@@ -524,5 +525,9 @@ def delete_route(
524525
]:
525526
raise NotImplementedError()
526527

528+
@property
529+
def kind(self) -> str:
530+
raise NotImplementedError()
531+
527532

528533
__all__ = ("DatastreamTransport",)

google/cloud/datastream_v1/services/datastream/transports/grpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,5 +954,9 @@ def delete_route(
954954
def close(self):
955955
self.grpc_channel.close()
956956

957+
@property
958+
def kind(self) -> str:
959+
return "grpc"
960+
957961

958962
__all__ = ("DatastreamGrpcTransport",)

google/cloud/datastream_v1/types/datastream_resources.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class OracleProfile(proto.Message):
7575
Required. Password for the Oracle connection.
7676
database_service (str):
7777
Required. Database for the Oracle connection.
78-
connection_attributes (Sequence[google.cloud.datastream_v1.types.OracleProfile.ConnectionAttributesEntry]):
78+
connection_attributes (Mapping[str, str]):
7979
Connection string attributes
8080
"""
8181

@@ -258,7 +258,7 @@ class PrivateConnection(proto.Message):
258258
Output only. The create time of the resource.
259259
update_time (google.protobuf.timestamp_pb2.Timestamp):
260260
Output only. The update time of the resource.
261-
labels (Sequence[google.cloud.datastream_v1.types.PrivateConnection.LabelsEntry]):
261+
labels (Mapping[str, str]):
262262
Labels.
263263
display_name (str):
264264
Required. Display name.
@@ -348,7 +348,7 @@ class Route(proto.Message):
348348
Output only. The create time of the resource.
349349
update_time (google.protobuf.timestamp_pb2.Timestamp):
350350
Output only. The update time of the resource.
351-
labels (Sequence[google.cloud.datastream_v1.types.Route.LabelsEntry]):
351+
labels (Mapping[str, str]):
352352
Labels.
353353
display_name (str):
354354
Required. Display name.
@@ -463,7 +463,7 @@ class ConnectionProfile(proto.Message):
463463
Output only. The create time of the resource.
464464
update_time (google.protobuf.timestamp_pb2.Timestamp):
465465
Output only. The update time of the resource.
466-
labels (Sequence[google.cloud.datastream_v1.types.ConnectionProfile.LabelsEntry]):
466+
labels (Mapping[str, str]):
467467
Labels.
468468
display_name (str):
469469
Required. Display name.
@@ -1023,7 +1023,7 @@ class Stream(proto.Message):
10231023
update_time (google.protobuf.timestamp_pb2.Timestamp):
10241024
Output only. The last update time of the
10251025
stream.
1026-
labels (Sequence[google.cloud.datastream_v1.types.Stream.LabelsEntry]):
1026+
labels (Mapping[str, str]):
10271027
Labels.
10281028
display_name (str):
10291029
Required. Display name.
@@ -1381,7 +1381,7 @@ class Error(proto.Message):
13811381
the error that occurred.
13821382
error_time (google.protobuf.timestamp_pb2.Timestamp):
13831383
The time when the error occurred.
1384-
details (Sequence[google.cloud.datastream_v1.types.Error.DetailsEntry]):
1384+
details (Mapping[str, str]):
13851385
Additional information about the error.
13861386
"""
13871387

@@ -1474,7 +1474,7 @@ class ValidationMessage(proto.Message):
14741474
The result of the validation.
14751475
level (google.cloud.datastream_v1.types.ValidationMessage.Level):
14761476
Message severity level (warning or error).
1477-
metadata (Sequence[google.cloud.datastream_v1.types.ValidationMessage.MetadataEntry]):
1477+
metadata (Mapping[str, str]):
14781478
Additional metadata related to the result.
14791479
code (str):
14801480
A custom code identifying this specific

0 commit comments

Comments
 (0)