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

docs: Fix formatting of request arg in docstring #165

Merged
merged 4 commits into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified datastream-v1alpha1-py.tar.gz
Binary file not shown.
16 changes: 9 additions & 7 deletions google/cloud/datastream_v1/services/datastream/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,7 @@ async def sample_get_stream():

Args:
request (Optional[Union[google.cloud.datastream_v1.types.GetStreamRequest, dict]]):
The request object. Request message for getting a
stream.
The request object. Request message for getting a stream.
name (:class:`str`):
Required. The name of the stream
resource to get.
Expand Down Expand Up @@ -1731,7 +1730,8 @@ async def sample_lookup_stream_object():
Args:
request (Optional[Union[google.cloud.datastream_v1.types.LookupStreamObjectRequest, dict]]):
The request object. Request for looking up a specific
stream object by its source object identifier.
stream object by its source object
identifier.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1813,8 +1813,8 @@ async def sample_list_stream_objects():

Args:
request (Optional[Union[google.cloud.datastream_v1.types.ListStreamObjectsRequest, dict]]):
The request object. Request for listing all objects for
a specific stream.
The request object. Request for listing all objects for a
specific stream.
parent (:class:`str`):
Required. The parent stream that owns
the collection of objects.
Expand Down Expand Up @@ -1929,7 +1929,8 @@ async def sample_start_backfill_job():
Args:
request (Optional[Union[google.cloud.datastream_v1.types.StartBackfillJobRequest, dict]]):
The request object. Request for manually initiating a
backfill job for a specific stream object.
backfill job for a specific stream
object.
object_ (:class:`str`):
Required. The name of the stream
object resource to start a backfill job
Expand Down Expand Up @@ -2034,7 +2035,8 @@ async def sample_stop_backfill_job():
Args:
request (Optional[Union[google.cloud.datastream_v1.types.StopBackfillJobRequest, dict]]):
The request object. Request for manually stopping a
running backfill job for a specific stream object.
running backfill job for a specific
stream object.
object_ (:class:`str`):
Required. The name of the stream
object resource to stop the backfill job
Expand Down
16 changes: 9 additions & 7 deletions google/cloud/datastream_v1/services/datastream/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,8 +1453,7 @@ def sample_get_stream():

Args:
request (Union[google.cloud.datastream_v1.types.GetStreamRequest, dict]):
The request object. Request message for getting a
stream.
The request object. Request message for getting a stream.
name (str):
Required. The name of the stream
resource to get.
Expand Down Expand Up @@ -2070,7 +2069,8 @@ def sample_lookup_stream_object():
Args:
request (Union[google.cloud.datastream_v1.types.LookupStreamObjectRequest, dict]):
The request object. Request for looking up a specific
stream object by its source object identifier.
stream object by its source object
identifier.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2153,8 +2153,8 @@ def sample_list_stream_objects():

Args:
request (Union[google.cloud.datastream_v1.types.ListStreamObjectsRequest, dict]):
The request object. Request for listing all objects for
a specific stream.
The request object. Request for listing all objects for a
specific stream.
parent (str):
Required. The parent stream that owns
the collection of objects.
Expand Down Expand Up @@ -2269,7 +2269,8 @@ def sample_start_backfill_job():
Args:
request (Union[google.cloud.datastream_v1.types.StartBackfillJobRequest, dict]):
The request object. Request for manually initiating a
backfill job for a specific stream object.
backfill job for a specific stream
object.
object_ (str):
Required. The name of the stream
object resource to start a backfill job
Expand Down Expand Up @@ -2374,7 +2375,8 @@ def sample_stop_backfill_job():
Args:
request (Union[google.cloud.datastream_v1.types.StopBackfillJobRequest, dict]):
The request object. Request for manually stopping a
running backfill job for a specific stream object.
running backfill job for a specific
stream object.
object_ (str):
Required. The name of the stream
object resource to stop the backfill job
Expand Down
18 changes: 0 additions & 18 deletions google/cloud/datastream_v1/services/datastream/transports/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,6 @@ def __call__(
request (~.datastream.CreateConnectionProfileRequest):
The request object. Request message for creating a
connection profile.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1267,7 +1266,6 @@ def __call__(
request (~.datastream.CreatePrivateConnectionRequest):
The request object. Request for creating a private
connection.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1467,7 +1465,6 @@ def __call__(
request (~.datastream.CreateStreamRequest):
The request object. Request message for creating a
stream.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1565,7 +1562,6 @@ def __call__(
request (~.datastream.DeleteConnectionProfileRequest):
The request object. Request message for deleting a
connection profile.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1656,7 +1652,6 @@ def __call__(
request (~.datastream.DeletePrivateConnectionRequest):
The request object. Request to delete a private
connection.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1834,7 +1829,6 @@ def __call__(
request (~.datastream.DeleteStreamRequest):
The request object. Request message for deleting a
stream.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1924,7 +1918,6 @@ def __call__(
request (~.datastream.DiscoverConnectionProfileRequest):
The request object. Request message for 'discover'
ConnectionProfile request.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2023,7 +2016,6 @@ def __call__(
request (~.datastream.FetchStaticIpsRequest):
The request object. Request message for 'FetchStaticIps'
request.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2115,7 +2107,6 @@ def __call__(
request (~.datastream.GetConnectionProfileRequest):
The request object. Request message for getting a
connection profile.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2208,7 +2199,6 @@ def __call__(
request (~.datastream.GetPrivateConnectionRequest):
The request object. Request to get a private connection
configuration.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2480,7 +2470,6 @@ def __call__(
request (~.datastream.GetStreamObjectRequest):
The request object. Request for fetching a specific
stream object.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2572,7 +2561,6 @@ def __call__(
request (~.datastream.ListConnectionProfilesRequest):
The request object. Request message for listing
connection profiles.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2664,7 +2652,6 @@ def __call__(
request (~.datastream.ListPrivateConnectionsRequest):
The request object. Request for listing private
connections.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -2842,7 +2829,6 @@ def __call__(
request (~.datastream.ListStreamObjectsRequest):
The request object. Request for listing all objects for a
specific stream.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3021,7 +3007,6 @@ def __call__(
The request object. Request for looking up a specific
stream object by its source object
identifier.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3123,7 +3108,6 @@ def __call__(
The request object. Request for manually initiating a
backfill job for a specific stream
object.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3226,7 +3210,6 @@ def __call__(
The request object. Request for manually stopping a
running backfill job for a specific
stream object.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -3425,7 +3408,6 @@ def __call__(
request (~.datastream.UpdateStreamRequest):
The request object. Request message for updating a
stream.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,6 @@ def __call__(
request (~.datastream.DiscoverConnectionProfileRequest):
The request object. Request message for 'discover'
ConnectionProfile request.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1739,7 +1738,6 @@ def __call__(
request (~.datastream.FetchErrorsRequest):
The request object. Request message for 'FetchErrors'
request.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down Expand Up @@ -1836,7 +1834,6 @@ def __call__(
request (~.datastream.FetchStaticIpsRequest):
The request object. Request message for 'FetchStaticIps'
request.

retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"proto-plus >= 1.22.0, <2.0.0dev",
"proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'",
"protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
"grpc-google-iam-v1 >= 0.12.4, < 1.0.0dev",
"grpc-google-iam-v1 >= 0.12.4, <1.0.0dev",
]
url = "https://github.com/googleapis/python-datastream"

Expand Down