Skip to content

Commit

Permalink
chore: Use gapic-generator-python 0.65.0 (#89)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 440970084

Source-Link: googleapis/googleapis@5e0a3d5

Source-Link: googleapis/googleapis-gen@b0c628a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBjNjI4YTNmYWRlNzY4ZjIyNWQ3Njk5Mjc5MWVhMWJhMmE4ODFiZSJ9

docs: fix type in docstring for map fields
  • Loading branch information
gcf-owl-bot[bot] authored Apr 11, 2022
1 parent d067394 commit 2a417ca
Show file tree
Hide file tree
Showing 12 changed files with 196 additions and 140 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -228,7 +228,6 @@ async def list_connection_profiles(
r"""Use this method to list connection profiles created
in a project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -338,7 +337,6 @@ async def get_connection_profile(
r"""Use this method to get details about a connection
profile.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -438,7 +436,6 @@ async def create_connection_profile(
r"""Use this method to create a connection profile in a
project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -577,7 +574,6 @@ async def update_connection_profile(
r"""Use this method to update the parameters of a
connection profile.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -832,7 +828,6 @@ async def discover_connection_profile(
returns children data objects of a parent data object
that's optionally supplied in the request.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -915,7 +910,6 @@ async def list_streams(
r"""Use this method to list streams in a project and
location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1255,7 +1249,6 @@ async def update_stream(
r"""Use this method to update the configuration of a
stream.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1602,7 +1595,6 @@ async def lookup_stream_object(
r"""Use this method to look up a stream object by its
source object identifier.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1683,7 +1675,6 @@ async def list_stream_objects(
r"""Use this method to list the objects of a specific
stream.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1793,7 +1784,6 @@ async def start_backfill_job(
r"""Use this method to start a backfill job for the
specified stream object.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1892,7 +1882,6 @@ async def stop_backfill_job(
r"""Use this method to stop a backfill job for the
specified stream object.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1990,7 +1979,6 @@ async def fetch_static_ips(
r"""The FetchStaticIps API call exposes the static IP
addresses used by Datastream.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2103,7 +2091,6 @@ async def create_private_connection(
r"""Use this method to create a private connectivity
configuration.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2237,7 +2224,6 @@ async def get_private_connection(
r"""Use this method to get details about a private
connectivity configuration.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2336,7 +2322,6 @@ async def list_private_connections(
r"""Use this method to list private connectivity
configurations in a project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2447,7 +2432,6 @@ async def delete_private_connection(
r"""Use this method to delete a private connectivity
configuration.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2571,7 +2555,6 @@ async def create_route(
r"""Use this method to create a route for a private
connectivity configuration in a project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2799,7 +2782,6 @@ async def list_routes(
r"""Use this method to list routes created for a private
connectivity configuration in a project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -553,7 +553,6 @@ def list_connection_profiles(
r"""Use this method to list connection profiles created
in a project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -663,7 +662,6 @@ def get_connection_profile(
r"""Use this method to get details about a connection
profile.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -763,7 +761,6 @@ def create_connection_profile(
r"""Use this method to create a connection profile in a
project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -904,7 +901,6 @@ def update_connection_profile(
r"""Use this method to update the parameters of a
connection profile.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1163,7 +1159,6 @@ def discover_connection_profile(
returns children data objects of a parent data object
that's optionally supplied in the request.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1249,7 +1244,6 @@ def list_streams(
r"""Use this method to list streams in a project and
location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1589,7 +1583,6 @@ def update_stream(
r"""Use this method to update the configuration of a
stream.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -1936,7 +1929,6 @@ def lookup_stream_object(
r"""Use this method to look up a stream object by its
source object identifier.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2018,7 +2010,6 @@ def list_stream_objects(
r"""Use this method to list the objects of a specific
stream.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2128,7 +2119,6 @@ def start_backfill_job(
r"""Use this method to start a backfill job for the
specified stream object.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2227,7 +2217,6 @@ def stop_backfill_job(
r"""Use this method to stop a backfill job for the
specified stream object.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2325,7 +2314,6 @@ def fetch_static_ips(
r"""The FetchStaticIps API call exposes the static IP
addresses used by Datastream.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2438,7 +2426,6 @@ def create_private_connection(
r"""Use this method to create a private connectivity
configuration.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2574,7 +2561,6 @@ def get_private_connection(
r"""Use this method to get details about a private
connectivity configuration.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2673,7 +2659,6 @@ def list_private_connections(
r"""Use this method to list private connectivity
configurations in a project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2784,7 +2769,6 @@ def delete_private_connection(
r"""Use this method to delete a private connectivity
configuration.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -2910,7 +2894,6 @@ def create_route(
r"""Use this method to create a route for a private
connectivity configuration in a project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down Expand Up @@ -3138,7 +3121,6 @@ def list_routes(
r"""Use this method to list routes created for a private
connectivity configuration in a project and location.
.. code-block:: python
from google.cloud import datastream_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -524,5 +525,9 @@ def delete_route(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("DatastreamTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -954,5 +954,9 @@ def delete_route(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("DatastreamGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class OracleProfile(proto.Message):
Required. Password for the Oracle connection.
database_service (str):
Required. Database for the Oracle connection.
connection_attributes (Sequence[google.cloud.datastream_v1.types.OracleProfile.ConnectionAttributesEntry]):
connection_attributes (Mapping[str, str]):
Connection string attributes
"""

Expand Down Expand Up @@ -258,7 +258,7 @@ class PrivateConnection(proto.Message):
Output only. The create time of the resource.
update_time (google.protobuf.timestamp_pb2.Timestamp):
Output only. The update time of the resource.
labels (Sequence[google.cloud.datastream_v1.types.PrivateConnection.LabelsEntry]):
labels (Mapping[str, str]):
Labels.
display_name (str):
Required. Display name.
Expand Down Expand Up @@ -348,7 +348,7 @@ class Route(proto.Message):
Output only. The create time of the resource.
update_time (google.protobuf.timestamp_pb2.Timestamp):
Output only. The update time of the resource.
labels (Sequence[google.cloud.datastream_v1.types.Route.LabelsEntry]):
labels (Mapping[str, str]):
Labels.
display_name (str):
Required. Display name.
Expand Down Expand Up @@ -463,7 +463,7 @@ class ConnectionProfile(proto.Message):
Output only. The create time of the resource.
update_time (google.protobuf.timestamp_pb2.Timestamp):
Output only. The update time of the resource.
labels (Sequence[google.cloud.datastream_v1.types.ConnectionProfile.LabelsEntry]):
labels (Mapping[str, str]):
Labels.
display_name (str):
Required. Display name.
Expand Down Expand Up @@ -1023,7 +1023,7 @@ class Stream(proto.Message):
update_time (google.protobuf.timestamp_pb2.Timestamp):
Output only. The last update time of the
stream.
labels (Sequence[google.cloud.datastream_v1.types.Stream.LabelsEntry]):
labels (Mapping[str, str]):
Labels.
display_name (str):
Required. Display name.
Expand Down Expand Up @@ -1381,7 +1381,7 @@ class Error(proto.Message):
the error that occurred.
error_time (google.protobuf.timestamp_pb2.Timestamp):
The time when the error occurred.
details (Sequence[google.cloud.datastream_v1.types.Error.DetailsEntry]):
details (Mapping[str, str]):
Additional information about the error.
"""

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

0 comments on commit 2a417ca

Please sign in to comment.