Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update gapic-generator-python to v1.11.8 #1009

Merged
merged 6 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion google/pubsub_v1/services/publisher/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ async def create_topic(
) -> pubsub.Topic:
r"""Creates the given topic with the given name. See the [resource
name rules]
(https://cloud.google.com/pubsub/docs/admin#resource_names).
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).

.. code-block:: python

Expand Down
2 changes: 1 addition & 1 deletion google/pubsub_v1/services/publisher/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def create_topic(
) -> pubsub.Topic:
r"""Creates the given topic with the given name. See the [resource
name rules]
(https://cloud.google.com/pubsub/docs/admin#resource_names).
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).

.. code-block:: python

Expand Down
2 changes: 1 addition & 1 deletion google/pubsub_v1/services/publisher/transports/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def create_topic(self) -> Callable[[pubsub.Topic], pubsub.Topic]:

Creates the given topic with the given name. See the [resource
name rules]
(https://cloud.google.com/pubsub/docs/admin#resource_names).
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).

Returns:
Callable[[~.Topic],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def create_topic(self) -> Callable[[pubsub.Topic], Awaitable[pubsub.Topic]]:

Creates the given topic with the given name. See the [resource
name rules]
(https://cloud.google.com/pubsub/docs/admin#resource_names).
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).

Returns:
Callable[[~.Topic],
Expand Down
20 changes: 10 additions & 10 deletions google/pubsub_v1/services/subscriber/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,17 @@ async def create_subscription(
) -> pubsub.Subscription:
r"""Creates a subscription to a given topic. See the [resource name
rules]
(https://cloud.google.com/pubsub/docs/admin#resource_names). If
the subscription already exists, returns ``ALREADY_EXISTS``. If
the corresponding topic doesn't exist, returns ``NOT_FOUND``.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
If the subscription already exists, returns ``ALREADY_EXISTS``.
If the corresponding topic doesn't exist, returns ``NOT_FOUND``.

If the name is not provided in the request, the server will
assign a random name for this subscription on the same project
as the topic, conforming to the [resource name format]
(https://cloud.google.com/pubsub/docs/admin#resource_names). The
generated name is populated in the returned Subscription object.
Note that for REST API requests, you must specify a name in the
request.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
The generated name is populated in the returned Subscription
object. Note that for REST API requests, you must specify a name
in the request.

.. code-block:: python

Expand Down Expand Up @@ -1804,8 +1804,8 @@ async def create_snapshot(
the request, the server will assign a random name for this
snapshot on the same project as the subscription, conforming to
the [resource name format]
(https://cloud.google.com/pubsub/docs/admin#resource_names). The
generated name is populated in the returned Snapshot object.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
The generated name is populated in the returned Snapshot object.
Note that for REST API requests, you must specify a name in the
request.

Expand Down Expand Up @@ -1846,7 +1846,7 @@ async def sample_create_snapshot():
project as the subscription. Note that for REST API
requests, you must specify a name. See the `resource
name
rules <https://cloud.google.com/pubsub/docs/admin#resource_names>`__.
rules <https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names>`__.
Format is ``projects/{project}/snapshots/{snap}``.

This corresponds to the ``name`` field
Expand Down
20 changes: 10 additions & 10 deletions google/pubsub_v1/services/subscriber/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,17 +519,17 @@ def create_subscription(
) -> pubsub.Subscription:
r"""Creates a subscription to a given topic. See the [resource name
rules]
(https://cloud.google.com/pubsub/docs/admin#resource_names). If
the subscription already exists, returns ``ALREADY_EXISTS``. If
the corresponding topic doesn't exist, returns ``NOT_FOUND``.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
If the subscription already exists, returns ``ALREADY_EXISTS``.
If the corresponding topic doesn't exist, returns ``NOT_FOUND``.

If the name is not provided in the request, the server will
assign a random name for this subscription on the same project
as the topic, conforming to the [resource name format]
(https://cloud.google.com/pubsub/docs/admin#resource_names). The
generated name is populated in the returned Subscription object.
Note that for REST API requests, you must specify a name in the
request.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
The generated name is populated in the returned Subscription
object. Note that for REST API requests, you must specify a name
in the request.

.. code-block:: python

Expand Down Expand Up @@ -1961,8 +1961,8 @@ def create_snapshot(
the request, the server will assign a random name for this
snapshot on the same project as the subscription, conforming to
the [resource name format]
(https://cloud.google.com/pubsub/docs/admin#resource_names). The
generated name is populated in the returned Snapshot object.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
The generated name is populated in the returned Snapshot object.
Note that for REST API requests, you must specify a name in the
request.

Expand Down Expand Up @@ -2003,7 +2003,7 @@ def sample_create_snapshot():
project as the subscription. Note that for REST API
requests, you must specify a name. See the `resource
name
rules <https://cloud.google.com/pubsub/docs/admin#resource_names>`__.
rules <https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names>`__.
Format is ``projects/{project}/snapshots/{snap}``.

This corresponds to the ``name`` field
Expand Down
18 changes: 9 additions & 9 deletions google/pubsub_v1/services/subscriber/transports/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,17 +245,17 @@ def create_subscription(

Creates a subscription to a given topic. See the [resource name
rules]
(https://cloud.google.com/pubsub/docs/admin#resource_names). If
the subscription already exists, returns ``ALREADY_EXISTS``. If
the corresponding topic doesn't exist, returns ``NOT_FOUND``.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
If the subscription already exists, returns ``ALREADY_EXISTS``.
If the corresponding topic doesn't exist, returns ``NOT_FOUND``.

If the name is not provided in the request, the server will
assign a random name for this subscription on the same project
as the topic, conforming to the [resource name format]
(https://cloud.google.com/pubsub/docs/admin#resource_names). The
generated name is populated in the returned Subscription object.
Note that for REST API requests, you must specify a name in the
request.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
The generated name is populated in the returned Subscription
object. Note that for REST API requests, you must specify a name
in the request.

Returns:
Callable[[~.Subscription],
Expand Down Expand Up @@ -617,8 +617,8 @@ def create_snapshot(
the request, the server will assign a random name for this
snapshot on the same project as the subscription, conforming to
the [resource name format]
(https://cloud.google.com/pubsub/docs/admin#resource_names). The
generated name is populated in the returned Snapshot object.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
The generated name is populated in the returned Snapshot object.
Note that for REST API requests, you must specify a name in the
request.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,17 +248,17 @@ def create_subscription(

Creates a subscription to a given topic. See the [resource name
rules]
(https://cloud.google.com/pubsub/docs/admin#resource_names). If
the subscription already exists, returns ``ALREADY_EXISTS``. If
the corresponding topic doesn't exist, returns ``NOT_FOUND``.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
If the subscription already exists, returns ``ALREADY_EXISTS``.
If the corresponding topic doesn't exist, returns ``NOT_FOUND``.

If the name is not provided in the request, the server will
assign a random name for this subscription on the same project
as the topic, conforming to the [resource name format]
(https://cloud.google.com/pubsub/docs/admin#resource_names). The
generated name is populated in the returned Subscription object.
Note that for REST API requests, you must specify a name in the
request.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
The generated name is populated in the returned Subscription
object. Note that for REST API requests, you must specify a name
in the request.

Returns:
Callable[[~.Subscription],
Expand Down Expand Up @@ -630,8 +630,8 @@ def create_snapshot(
the request, the server will assign a random name for this
snapshot on the same project as the subscription, conforming to
the [resource name format]
(https://cloud.google.com/pubsub/docs/admin#resource_names). The
generated name is populated in the returned Snapshot object.
(https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
The generated name is populated in the returned Snapshot object.
Note that for REST API requests, you must specify a name in the
request.

Expand Down
19 changes: 10 additions & 9 deletions google/pubsub_v1/types/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,15 @@ class MessageStoragePolicy(proto.Message):

Attributes:
allowed_persistence_regions (MutableSequence[str]):
A list of IDs of GCP regions where messages
that are published to the topic may be persisted
in storage. Messages published by publishers
running in non-allowed GCP regions (or running
outside of GCP altogether) will be routed for
storage in one of the allowed regions. An empty
list means that no regions are allowed, and is
not a valid configuration.
A list of IDs of Google Cloud regions where
messages that are published to the topic may be
persisted in storage. Messages published by
publishers running in non-allowed Google Cloud
regions (or running outside of Google Cloud
altogether) are routed for storage in one of the
allowed regions. An empty list means that no
regions are allowed, and is not a valid
configuration.
"""

allowed_persistence_regions: MutableSequence[str] = proto.RepeatedField(
Expand Down Expand Up @@ -1885,7 +1886,7 @@ class CreateSnapshotRequest(proto.Message):
random name for this snapshot on the same project as the
subscription. Note that for REST API requests, you must
specify a name. See the `resource name
rules <https://cloud.google.com/pubsub/docs/admin#resource_names>`__.
rules <https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names>`__.
Format is ``projects/{project}/snapshots/{snap}``.
subscription (str):
Required. The subscription whose backlog the snapshot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-pubsub",
"version": "2.18.4"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Loading