Skip to content

Commit 3e3399f

Browse files
authored
Merge branch 'main' into onboard-librarian-generate
2 parents a2f3a85 + ac6cc25 commit 3e3399f

34 files changed

+313
-124
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/.OwlBot.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/release-please.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/release-trigger.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
".": "2.32.0"
2+
".": "2.33.0"
33
}
44

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55
[1]: https://pypi.org/project/google-cloud-pubsub/#history
66

77

8+
## [2.33.0](https://github.com/googleapis/python-pubsub/compare/v2.32.0...v2.33.0) (2025-10-30)
9+
10+
11+
### Features
12+
13+
* Add AwsKinesisFailureReason.ApiViolationReason ([ac68093](https://github.com/googleapis/python-pubsub/commit/ac6809350758306f28fa1ab46939bc438b5a5e19))
14+
* Add tags to Subscription, Topic, and CreateSnapshotRequest messages for use in CreateSubscription, CreateTopic, and CreateSnapshot requests respectively ([ac68093](https://github.com/googleapis/python-pubsub/commit/ac6809350758306f28fa1ab46939bc438b5a5e19))
15+
* Annotate some resource fields with their corresponding API types ([ac68093](https://github.com/googleapis/python-pubsub/commit/ac6809350758306f28fa1ab46939bc438b5a5e19))
16+
17+
18+
### Bug Fixes
19+
20+
* Deprecate credentials_file argument ([ac68093](https://github.com/googleapis/python-pubsub/commit/ac6809350758306f28fa1ab46939bc438b5a5e19))
21+
22+
23+
### Documentation
24+
25+
* A comment for field `received_messages` in message `.google.pubsub.v1.StreamingPullResponse` is changed ([ac68093](https://github.com/googleapis/python-pubsub/commit/ac6809350758306f28fa1ab46939bc438b5a5e19))
26+
827
## [2.32.0](https://github.com/googleapis/python-pubsub/compare/v2.31.1...v2.32.0) (2025-10-28)
928

1029

google/pubsub/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.32.0" # {x-release-please-version}
16+
__version__ = "2.33.0" # {x-release-please-version}

google/pubsub_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.32.0" # {x-release-please-version}
16+
__version__ = "2.33.0" # {x-release-please-version}

google/pubsub_v1/services/publisher/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,12 @@ class PublisherAsyncClient:
8080
_DEFAULT_ENDPOINT_TEMPLATE = PublisherClient._DEFAULT_ENDPOINT_TEMPLATE
8181
_DEFAULT_UNIVERSE = PublisherClient._DEFAULT_UNIVERSE
8282

83+
crypto_key_path = staticmethod(PublisherClient.crypto_key_path)
84+
parse_crypto_key_path = staticmethod(PublisherClient.parse_crypto_key_path)
8385
schema_path = staticmethod(PublisherClient.schema_path)
8486
parse_schema_path = staticmethod(PublisherClient.parse_schema_path)
87+
snapshot_path = staticmethod(PublisherClient.snapshot_path)
88+
parse_snapshot_path = staticmethod(PublisherClient.parse_snapshot_path)
8589
subscription_path = staticmethod(PublisherClient.subscription_path)
8690
parse_subscription_path = staticmethod(PublisherClient.parse_subscription_path)
8791
topic_path = staticmethod(PublisherClient.topic_path)

google/pubsub_v1/services/publisher/client.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,30 @@ def transport(self) -> PublisherTransport:
215215
"""
216216
return self._transport
217217

218+
@staticmethod
219+
def crypto_key_path(
220+
project: str,
221+
location: str,
222+
key_ring: str,
223+
crypto_key: str,
224+
) -> str:
225+
"""Returns a fully-qualified crypto_key string."""
226+
return "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}".format(
227+
project=project,
228+
location=location,
229+
key_ring=key_ring,
230+
crypto_key=crypto_key,
231+
)
232+
233+
@staticmethod
234+
def parse_crypto_key_path(path: str) -> Dict[str, str]:
235+
"""Parses a crypto_key path into its component segments."""
236+
m = re.match(
237+
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/keyRings/(?P<key_ring>.+?)/cryptoKeys/(?P<crypto_key>.+?)$",
238+
path,
239+
)
240+
return m.groupdict() if m else {}
241+
218242
@staticmethod
219243
def schema_path(
220244
project: str,
@@ -232,6 +256,23 @@ def parse_schema_path(path: str) -> Dict[str, str]:
232256
m = re.match(r"^projects/(?P<project>.+?)/schemas/(?P<schema>.+?)$", path)
233257
return m.groupdict() if m else {}
234258

259+
@staticmethod
260+
def snapshot_path(
261+
project: str,
262+
snapshot: str,
263+
) -> str:
264+
"""Returns a fully-qualified snapshot string."""
265+
return "projects/{project}/snapshots/{snapshot}".format(
266+
project=project,
267+
snapshot=snapshot,
268+
)
269+
270+
@staticmethod
271+
def parse_snapshot_path(path: str) -> Dict[str, str]:
272+
"""Parses a snapshot path into its component segments."""
273+
m = re.match(r"^projects/(?P<project>.+?)/snapshots/(?P<snapshot>.+?)$", path)
274+
return m.groupdict() if m else {}
275+
235276
@staticmethod
236277
def subscription_path(
237278
project: str,

0 commit comments

Comments
 (0)