Debian Codegraph @

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

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/shopping/merchant/promotions/apiv1",
4 "version": "1.1.0",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.shopping.merchant.promotions.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "merchantapi_v1_generated_PromotionsService_GetPromotion_sync",
16 "title": "merchantapi GetPromotion Sample",
17 "description": "GetPromotion retrieves the promotion from your Merchant Center account.\n\nAfter inserting or updating a promotion input, it may take several\nminutes before the updated promotion can be retrieved.",
18 "file": "Client/GetPromotion/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "GetPromotion",
22 "fullName": "google.shopping.merchant.promotions.v1.Client.GetPromotion",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "promotionspb.GetPromotionRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "*promotionspb.Promotion",
38 "client": {
39 "shortName": "Client",
40 "fullName": "google.shopping.merchant.promotions.v1.Client"
41 },
42 "method": {
43 "shortName": "GetPromotion",
44 "fullName": "google.shopping.merchant.promotions.v1.PromotionsService.GetPromotion",
45 "service": {
46 "shortName": "PromotionsService",
47 "fullName": "google.shopping.merchant.promotions.v1.PromotionsService"
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_PromotionsService_InsertPromotion_sync",
62 "title": "merchantapi InsertPromotion Sample",
63 "description": "InsertPromotion inserts a promotion for your Merchant Center account. If the promotion\nalready exists, then it updates the promotion instead.",
64 "file": "Client/InsertPromotion/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "InsertPromotion",
68 "fullName": "google.shopping.merchant.promotions.v1.Client.InsertPromotion",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "promotionspb.InsertPromotionRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "resultType": "*promotionspb.Promotion",
84 "client": {
85 "shortName": "Client",
86 "fullName": "google.shopping.merchant.promotions.v1.Client"
87 },
88 "method": {
89 "shortName": "InsertPromotion",
90 "fullName": "google.shopping.merchant.promotions.v1.PromotionsService.InsertPromotion",
91 "service": {
92 "shortName": "PromotionsService",
93 "fullName": "google.shopping.merchant.promotions.v1.PromotionsService"
94 }
95 }
96 },
97 "origin": "API_DEFINITION",
98 "segments": [
99 {
100 "start": 18,
101 "end": 53,
102 "type": "FULL"
103 }
104 ]
105 },
106 {
107 "regionTag": "merchantapi_v1_generated_PromotionsService_ListPromotions_sync",
108 "title": "merchantapi ListPromotions Sample",
109 "description": "ListPromotions lists the promotions in your Merchant Center account. The\nresponse might contain fewer items than specified by `pageSize`. Rely on\n`pageToken` to determine if there are more items to be requested.\n\nAfter inserting or updating a promotion, it may take several minutes before\nthe updated processed promotion can be retrieved.",
110 "file": "Client/ListPromotions/main.go",
111 "language": "GO",
112 "clientMethod": {
113 "shortName": "ListPromotions",
114 "fullName": "google.shopping.merchant.promotions.v1.Client.ListPromotions",
115 "parameters": [
116 {
117 "type": "context.Context",
118 "name": "ctx"
119 },
120 {
121 "type": "promotionspb.ListPromotionsRequest",
122 "name": "req"
123 },
124 {
125 "type": "...gax.CallOption",
126 "name": "opts"
127 }
128 ],
129 "resultType": "PromotionIterator",
130 "client": {
131 "shortName": "Client",
132 "fullName": "google.shopping.merchant.promotions.v1.Client"
133 },
134 "method": {
135 "shortName": "ListPromotions",
136 "fullName": "google.shopping.merchant.promotions.v1.PromotionsService.ListPromotions",
137 "service": {
138 "shortName": "PromotionsService",
139 "fullName": "google.shopping.merchant.promotions.v1.PromotionsService"
140 }
141 }
142 },
143 "origin": "API_DEFINITION",
144 "segments": [
145 {
146 "start": 18,
147 "end": 66,
148 "type": "FULL"
149 }
150 ]
151 }
152 ]
153 }