Skip to content

Commit 9462b82

Browse files
feat: add notifications API client libraries for v1 (googleapis#14173)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 791352257 Source-Link: googleapis/googleapis@885e1cb Source-Link: https://github.com/googleapis/googleapis-gen/commit/ec16252c5f155c1fd01c59ce49fb9f0e870b1132 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LW5vdGlmaWNhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImVjMTYyNTJjNWYxNTVjMWZkMDFjNTljZTQ5ZmI5ZjBlODcwYjExMzIifQ== feat: add notifications API client libraries for v1 PiperOrigin-RevId: 790723245 Source-Link: googleapis/googleapis@cc9fc0f Source-Link: https://github.com/googleapis/googleapis-gen/commit/be502e8301cf39716498cdd6f87824c604396efe Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LW5vdGlmaWNhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImJlNTAyZTgzMDFjZjM5NzE2NDk4Y2RkNmY4NzgyNGM2MDQzOTZlZmUifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent f2d8f3e commit 9462b82

File tree

41 files changed

+15660
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+15660
-3
lines changed

packages/google-shopping-merchant-notifications/docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of Merchant API.
6+
By default, you will get version ``merchant_notifications_v1beta``.
7+
58

69
API Reference
710
-------------
@@ -11,6 +14,14 @@ API Reference
1114
merchant_notifications_v1beta/services_
1215
merchant_notifications_v1beta/types_
1316

17+
API Reference
18+
-------------
19+
.. toctree::
20+
:maxdepth: 2
21+
22+
merchant_notifications_v1/services_
23+
merchant_notifications_v1/types_
24+
1425

1526
Changelog
1627
---------
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
NotificationsApiService
2+
-----------------------------------------
3+
4+
.. automodule:: google.shopping.merchant_notifications_v1.services.notifications_api_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.shopping.merchant_notifications_v1.services.notifications_api_service.pagers
9+
:members:
10+
:inherited-members:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Shopping Merchant Notifications v1 API
2+
==========================================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
notifications_api_service
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Shopping Merchant Notifications v1 API
2+
=======================================================
3+
4+
.. automodule:: google.shopping.merchant_notifications_v1.types
5+
:members:
6+
:show-inheritance:

packages/google-shopping-merchant-notifications/google/shopping/merchant_notifications/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__ = "0.1.8" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from google.shopping.merchant_notifications_v1 import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from .services.notifications_api_service import (
22+
NotificationsApiServiceAsyncClient,
23+
NotificationsApiServiceClient,
24+
)
25+
from .types.notificationsapi import (
26+
CreateNotificationSubscriptionRequest,
27+
DeleteNotificationSubscriptionRequest,
28+
GetNotificationSubscriptionHealthMetricsRequest,
29+
GetNotificationSubscriptionRequest,
30+
ListNotificationSubscriptionsRequest,
31+
ListNotificationSubscriptionsResponse,
32+
NotificationSubscription,
33+
NotificationSubscriptionHealthMetrics,
34+
UpdateNotificationSubscriptionRequest,
35+
)
36+
37+
__all__ = (
38+
"NotificationsApiServiceAsyncClient",
39+
"CreateNotificationSubscriptionRequest",
40+
"DeleteNotificationSubscriptionRequest",
41+
"GetNotificationSubscriptionHealthMetricsRequest",
42+
"GetNotificationSubscriptionRequest",
43+
"ListNotificationSubscriptionsRequest",
44+
"ListNotificationSubscriptionsResponse",
45+
"NotificationSubscription",
46+
"NotificationSubscriptionHealthMetrics",
47+
"NotificationsApiServiceClient",
48+
"UpdateNotificationSubscriptionRequest",
49+
)
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.shopping.merchant_notifications_v1",
5+
"protoPackage": "google.shopping.merchant.notifications.v1",
6+
"schema": "1.0",
7+
"services": {
8+
"NotificationsApiService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "NotificationsApiServiceClient",
12+
"rpcs": {
13+
"CreateNotificationSubscription": {
14+
"methods": [
15+
"create_notification_subscription"
16+
]
17+
},
18+
"DeleteNotificationSubscription": {
19+
"methods": [
20+
"delete_notification_subscription"
21+
]
22+
},
23+
"GetNotificationSubscription": {
24+
"methods": [
25+
"get_notification_subscription"
26+
]
27+
},
28+
"GetNotificationSubscriptionHealthMetrics": {
29+
"methods": [
30+
"get_notification_subscription_health_metrics"
31+
]
32+
},
33+
"ListNotificationSubscriptions": {
34+
"methods": [
35+
"list_notification_subscriptions"
36+
]
37+
},
38+
"UpdateNotificationSubscription": {
39+
"methods": [
40+
"update_notification_subscription"
41+
]
42+
}
43+
}
44+
},
45+
"grpc-async": {
46+
"libraryClient": "NotificationsApiServiceAsyncClient",
47+
"rpcs": {
48+
"CreateNotificationSubscription": {
49+
"methods": [
50+
"create_notification_subscription"
51+
]
52+
},
53+
"DeleteNotificationSubscription": {
54+
"methods": [
55+
"delete_notification_subscription"
56+
]
57+
},
58+
"GetNotificationSubscription": {
59+
"methods": [
60+
"get_notification_subscription"
61+
]
62+
},
63+
"GetNotificationSubscriptionHealthMetrics": {
64+
"methods": [
65+
"get_notification_subscription_health_metrics"
66+
]
67+
},
68+
"ListNotificationSubscriptions": {
69+
"methods": [
70+
"list_notification_subscriptions"
71+
]
72+
},
73+
"UpdateNotificationSubscription": {
74+
"methods": [
75+
"update_notification_subscription"
76+
]
77+
}
78+
}
79+
},
80+
"rest": {
81+
"libraryClient": "NotificationsApiServiceClient",
82+
"rpcs": {
83+
"CreateNotificationSubscription": {
84+
"methods": [
85+
"create_notification_subscription"
86+
]
87+
},
88+
"DeleteNotificationSubscription": {
89+
"methods": [
90+
"delete_notification_subscription"
91+
]
92+
},
93+
"GetNotificationSubscription": {
94+
"methods": [
95+
"get_notification_subscription"
96+
]
97+
},
98+
"GetNotificationSubscriptionHealthMetrics": {
99+
"methods": [
100+
"get_notification_subscription_health_metrics"
101+
]
102+
},
103+
"ListNotificationSubscriptions": {
104+
"methods": [
105+
"list_notification_subscriptions"
106+
]
107+
},
108+
"UpdateNotificationSubscription": {
109+
"methods": [
110+
"update_notification_subscription"
111+
]
112+
}
113+
}
114+
}
115+
}
116+
}
117+
}
118+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
__version__ = "0.0.0" # {x-release-please-version}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-shopping-merchant-notifications package uses inline types.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#

0 commit comments

Comments
 (0)