Debian Codegraph @

internal/generated/snippets/shopping/merchant/notifications/apiv1/snippet_metadata.google.shopping.merchant.notifications.v1.json

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/shopping/merchant/notifications/apiv1",
4 "version": "1.1.0",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.shopping.merchant.notifications.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "merchantapi_v1_generated_NotificationsApiService_CreateNotificationSubscription_sync",
16 "title": "merchantapi CreateNotificationSubscription Sample",
17 "description": "CreateNotificationSubscription creates a notification subscription for a business.\nFor standalone or subaccounts accounts, the business can create a\nsubscription for self. For MCAs, the business can create a\nsubscription for all managed accounts or for a specific subaccount.\n\nWe will allow the following types of notification subscriptions to exist\ntogether (per business as a subscriber per event type): \n\n1. Subscription for all managed accounts + subscription for self.\n\n2. Multiple \"partial\" subscriptions for managed accounts + subscription\nfor self.\n\nwe will not allow (per business as a subscriber per event type): \n\n1. Multiple self subscriptions.\n\n2. Multiple \"all managed accounts\" subscriptions.\n\n3. \"All managed accounts\" subscription and partial subscriptions at the\nsame time.\n\n4. Multiple partial subscriptions for the same target account.",
18 "file": "NotificationsApiClient/CreateNotificationSubscription/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "CreateNotificationSubscription",
22 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient.CreateNotificationSubscription",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "notificationspb.CreateNotificationSubscriptionRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "*notificationspb.NotificationSubscription",
38 "client": {
39 "shortName": "NotificationsApiClient",
40 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient"
41 },
42 "method": {
43 "shortName": "CreateNotificationSubscription",
44 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.CreateNotificationSubscription",
45 "service": {
46 "shortName": "NotificationsApiService",
47 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService"
48 }
49 }
50 },
51 "origin": "API_DEFINITION",
52 "segments": [
53 {
54 "start": 18,
55 "end": 53,
56 "type": "FULL"
57 }
58 ]
59 },
60 {
61 "regionTag": "merchantapi_v1_generated_NotificationsApiService_DeleteNotificationSubscription_sync",
62 "title": "merchantapi DeleteNotificationSubscription Sample",
63 "description": "DeleteNotificationSubscription deletes a notification subscription for a merchant.",
64 "file": "NotificationsApiClient/DeleteNotificationSubscription/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "DeleteNotificationSubscription",
68 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient.DeleteNotificationSubscription",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "notificationspb.DeleteNotificationSubscriptionRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "client": {
84 "shortName": "NotificationsApiClient",
85 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient"
86 },
87 "method": {
88 "shortName": "DeleteNotificationSubscription",
89 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.DeleteNotificationSubscription",
90 "service": {
91 "shortName": "NotificationsApiService",
92 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService"
93 }
94 }
95 },
96 "origin": "API_DEFINITION",
97 "segments": [
98 {
99 "start": 18,
100 "end": 51,
101 "type": "FULL"
102 }
103 ]
104 },
105 {
106 "regionTag": "merchantapi_v1_generated_NotificationsApiService_GetNotificationSubscription_sync",
107 "title": "merchantapi GetNotificationSubscription Sample",
108 "description": "GetNotificationSubscription gets notification subscriptions for an account.",
109 "file": "NotificationsApiClient/GetNotificationSubscription/main.go",
110 "language": "GO",
111 "clientMethod": {
112 "shortName": "GetNotificationSubscription",
113 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient.GetNotificationSubscription",
114 "parameters": [
115 {
116 "type": "context.Context",
117 "name": "ctx"
118 },
119 {
120 "type": "notificationspb.GetNotificationSubscriptionRequest",
121 "name": "req"
122 },
123 {
124 "type": "...gax.CallOption",
125 "name": "opts"
126 }
127 ],
128 "resultType": "*notificationspb.NotificationSubscription",
129 "client": {
130 "shortName": "NotificationsApiClient",
131 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient"
132 },
133 "method": {
134 "shortName": "GetNotificationSubscription",
135 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.GetNotificationSubscription",
136 "service": {
137 "shortName": "NotificationsApiService",
138 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService"
139 }
140 }
141 },
142 "origin": "API_DEFINITION",
143 "segments": [
144 {
145 "start": 18,
146 "end": 53,
147 "type": "FULL"
148 }
149 ]
150 },
151 {
152 "regionTag": "merchantapi_v1_generated_NotificationsApiService_GetNotificationSubscriptionHealthMetrics_sync",
153 "title": "merchantapi GetNotificationSubscriptionHealthMetrics Sample",
154 "description": "GetNotificationSubscriptionHealthMetrics retrieves notification subscription health metrics for a merchant.\nWe recommend calling this periodically (hourly or daily) to monitor health\nof your callback endpoint.",
155 "file": "NotificationsApiClient/GetNotificationSubscriptionHealthMetrics/main.go",
156 "language": "GO",
157 "clientMethod": {
158 "shortName": "GetNotificationSubscriptionHealthMetrics",
159 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient.GetNotificationSubscriptionHealthMetrics",
160 "parameters": [
161 {
162 "type": "context.Context",
163 "name": "ctx"
164 },
165 {
166 "type": "notificationspb.GetNotificationSubscriptionHealthMetricsRequest",
167 "name": "req"
168 },
169 {
170 "type": "...gax.CallOption",
171 "name": "opts"
172 }
173 ],
174 "resultType": "*notificationspb.NotificationSubscriptionHealthMetrics",
175 "client": {
176 "shortName": "NotificationsApiClient",
177 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient"
178 },
179 "method": {
180 "shortName": "GetNotificationSubscriptionHealthMetrics",
181 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.GetNotificationSubscriptionHealthMetrics",
182 "service": {
183 "shortName": "NotificationsApiService",
184 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService"
185 }
186 }
187 },
188 "origin": "API_DEFINITION",
189 "segments": [
190 {
191 "start": 18,
192 "end": 53,
193 "type": "FULL"
194 }
195 ]
196 },
197 {
198 "regionTag": "merchantapi_v1_generated_NotificationsApiService_ListNotificationSubscriptions_sync",
199 "title": "merchantapi ListNotificationSubscriptions Sample",
200 "description": "ListNotificationSubscriptions gets all the notification subscriptions for a merchant.",
201 "file": "NotificationsApiClient/ListNotificationSubscriptions/main.go",
202 "language": "GO",
203 "clientMethod": {
204 "shortName": "ListNotificationSubscriptions",
205 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient.ListNotificationSubscriptions",
206 "parameters": [
207 {
208 "type": "context.Context",
209 "name": "ctx"
210 },
211 {
212 "type": "notificationspb.ListNotificationSubscriptionsRequest",
213 "name": "req"
214 },
215 {
216 "type": "...gax.CallOption",
217 "name": "opts"
218 }
219 ],
220 "resultType": "NotificationSubscriptionIterator",
221 "client": {
222 "shortName": "NotificationsApiClient",
223 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient"
224 },
225 "method": {
226 "shortName": "ListNotificationSubscriptions",
227 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.ListNotificationSubscriptions",
228 "service": {
229 "shortName": "NotificationsApiService",
230 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService"
231 }
232 }
233 },
234 "origin": "API_DEFINITION",
235 "segments": [
236 {
237 "start": 18,
238 "end": 66,
239 "type": "FULL"
240 }
241 ]
242 },
243 {
244 "regionTag": "merchantapi_v1_generated_NotificationsApiService_UpdateNotificationSubscription_sync",
245 "title": "merchantapi UpdateNotificationSubscription Sample",
246 "description": "UpdateNotificationSubscription updates an existing notification subscription for a merchant.",
247 "file": "NotificationsApiClient/UpdateNotificationSubscription/main.go",
248 "language": "GO",
249 "clientMethod": {
250 "shortName": "UpdateNotificationSubscription",
251 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient.UpdateNotificationSubscription",
252 "parameters": [
253 {
254 "type": "context.Context",
255 "name": "ctx"
256 },
257 {
258 "type": "notificationspb.UpdateNotificationSubscriptionRequest",
259 "name": "req"
260 },
261 {
262 "type": "...gax.CallOption",
263 "name": "opts"
264 }
265 ],
266 "resultType": "*notificationspb.NotificationSubscription",
267 "client": {
268 "shortName": "NotificationsApiClient",
269 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiClient"
270 },
271 "method": {
272 "shortName": "UpdateNotificationSubscription",
273 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.UpdateNotificationSubscription",
274 "service": {
275 "shortName": "NotificationsApiService",
276 "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService"
277 }
278 }
279 },
280 "origin": "API_DEFINITION",
281 "segments": [
282 {
283 "start": 18,
284 "end": 53,
285 "type": "FULL"
286 }
287 ]
288 }
289 ]
290 }