Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Oct 16, 2023
1 parent 8ed4a5f commit 02e3781
Show file tree
Hide file tree
Showing 147 changed files with 52 additions and 61,038 deletions.
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
18 changes: 9 additions & 9 deletions google/pubsub_v1/services/subscriber/transports/grpc_asyncio.py
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
13 changes: 0 additions & 13 deletions owl-bot-staging/v1/.coveragerc

This file was deleted.

33 changes: 0 additions & 33 deletions owl-bot-staging/v1/.flake8

This file was deleted.

2 changes: 0 additions & 2 deletions owl-bot-staging/v1/MANIFEST.in

This file was deleted.

49 changes: 0 additions & 49 deletions owl-bot-staging/v1/README.rst

This file was deleted.

3 changes: 0 additions & 3 deletions owl-bot-staging/v1/docs/_static/custom.css

This file was deleted.

Loading

0 comments on commit 02e3781

Please sign in to comment.