Debian Codegraph @

internal/generated/snippets/shopping/merchant/notifications/apiv1beta/snippet_metadata.google.shopping.merchant.notifications.v1beta.json

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/shopping/merchant/notifications/apiv1beta",
4 "version": "1.1.0",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.shopping.merchant.notifications.v1beta",
9 "version": "v1beta"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "merchantapi_v1beta_generated_NotificationsApiService_CreateNotificationSubscription_sync",
16 "title": "merchantapi CreateNotificationSubscription Sample",
17 "description": "CreateNotificationSubscription creates a notification subscription for a merchant. We will allow the\nfollowing types of notification subscriptions to exist together (per\nmerchant as a subscriber per event type): \n1. Subscription for all managed accounts + subscription for self\n2. Multiple \"partial\" subscriptions for managed accounts + subscription\nfor self\n\nwe will not allow (per merchant as a subscriber per event type): \n1. multiple self subscriptions.\n2. multiple \"all managed accounts\" subscriptions.\n3. all and partial subscriptions at the same time.\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.v1beta.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.v1beta.NotificationsApiClient"
41 },
42 "method": {
43 "shortName": "CreateNotificationSubscription",
44 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.CreateNotificationSubscription",
45 "service": {
46 "shortName": "NotificationsApiService",
47 "fullName": "google.shopping.merchant.notifications.v1beta.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_v1beta_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.v1beta.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.v1beta.NotificationsApiClient"
86 },
87 "method": {
88 "shortName": "DeleteNotificationSubscription",
89 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.DeleteNotificationSubscription",
90 "service": {
91 "shortName": "NotificationsApiService",
92 "fullName": "google.shopping.merchant.notifications.v1beta.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_v1beta_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.v1beta.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.v1beta.NotificationsApiClient"
132 },
133 "method": {
134 "shortName": "GetNotificationSubscription",
135 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.GetNotificationSubscription",
136 "service": {
137 "shortName": "NotificationsApiService",
138 "fullName": "google.shopping.merchant.notifications.v1beta.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_v1beta_generated_NotificationsApiService_ListNotificationSubscriptions_sync",
153 "title": "merchantapi ListNotificationSubscriptions Sample",
154 "description": "ListNotificationSubscriptions gets all the notification subscriptions for a merchant.",
155 "file": "NotificationsApiClient/ListNotificationSubscriptions/main.go",
156 "language": "GO",
157 "clientMethod": {
158 "shortName": "ListNotificationSubscriptions",
159 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiClient.ListNotificationSubscriptions",
160 "parameters": [
161 {
162 "type": "context.Context",
163 "name": "ctx"
164 },
165 {
166 "type": "notificationspb.ListNotificationSubscriptionsRequest",
167 "name": "req"
168 },
169 {
170 "type": "...gax.CallOption",
171 "name": "opts"
172 }
173 ],
174 "resultType": "NotificationSubscriptionIterator",
175 "client": {
176 "shortName": "NotificationsApiClient",
177 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiClient"
178 },
179 "method": {
180 "shortName": "ListNotificationSubscriptions",
181 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.ListNotificationSubscriptions",
182 "service": {
183 "shortName": "NotificationsApiService",
184 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService"
185 }
186 }
187 },
188 "origin": "API_DEFINITION",
189 "segments": [
190 {
191 "start": 18,
192 "end": 66,
193 "type": "FULL"
194 }
195 ]
196 },
197 {
198 "regionTag": "merchantapi_v1beta_generated_NotificationsApiService_UpdateNotificationSubscription_sync",
199 "title": "merchantapi UpdateNotificationSubscription Sample",
200 "description": "UpdateNotificationSubscription updates an existing notification subscription for a merchant.",
201 "file": "NotificationsApiClient/UpdateNotificationSubscription/main.go",
202 "language": "GO",
203 "clientMethod": {
204 "shortName": "UpdateNotificationSubscription",
205 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiClient.UpdateNotificationSubscription",
206 "parameters": [
207 {
208 "type": "context.Context",
209 "name": "ctx"
210 },
211 {
212 "type": "notificationspb.UpdateNotificationSubscriptionRequest",
213 "name": "req"
214 },
215 {
216 "type": "...gax.CallOption",
217 "name": "opts"
218 }
219 ],
220 "resultType": "*notificationspb.NotificationSubscription",
221 "client": {
222 "shortName": "NotificationsApiClient",
223 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiClient"
224 },
225 "method": {
226 "shortName": "UpdateNotificationSubscription",
227 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.UpdateNotificationSubscription",
228 "service": {
229 "shortName": "NotificationsApiService",
230 "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService"
231 }
232 }
233 },
234 "origin": "API_DEFINITION",
235 "segments": [
236 {
237 "start": 18,
238 "end": 53,
239 "type": "FULL"
240 }
241 ]
242 }
243 ]
244 }