Debian Codegraph @

internal/generated/snippets/asset/apiv1p2beta1/snippet_metadata.google.cloud.asset.v1p2beta1.json

raw
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/asset/apiv1p2beta1",
4 "version": "1.21.1",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.cloud.asset.v1p2beta1",
9 "version": "v1p2beta1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "cloudasset_v1p2beta1_generated_AssetService_CreateFeed_sync",
16 "title": "cloudasset CreateFeed Sample",
17 "description": "CreateFeed creates a feed in a parent project/folder/organization to listen to its\nasset updates.",
18 "file": "Client/CreateFeed/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "CreateFeed",
22 "fullName": "google.cloud.asset.v1p2beta1.Client.CreateFeed",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "assetpb.CreateFeedRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "*assetpb.Feed",
38 "client": {
39 "shortName": "Client",
40 "fullName": "google.cloud.asset.v1p2beta1.Client"
41 },
42 "method": {
43 "shortName": "CreateFeed",
44 "fullName": "google.cloud.asset.v1p2beta1.AssetService.CreateFeed",
45 "service": {
46 "shortName": "AssetService",
47 "fullName": "google.cloud.asset.v1p2beta1.AssetService"
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": "cloudasset_v1p2beta1_generated_AssetService_DeleteFeed_sync",
62 "title": "cloudasset DeleteFeed Sample",
63 "description": "DeleteFeed deletes an asset feed.",
64 "file": "Client/DeleteFeed/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "DeleteFeed",
68 "fullName": "google.cloud.asset.v1p2beta1.Client.DeleteFeed",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "assetpb.DeleteFeedRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "client": {
84 "shortName": "Client",
85 "fullName": "google.cloud.asset.v1p2beta1.Client"
86 },
87 "method": {
88 "shortName": "DeleteFeed",
89 "fullName": "google.cloud.asset.v1p2beta1.AssetService.DeleteFeed",
90 "service": {
91 "shortName": "AssetService",
92 "fullName": "google.cloud.asset.v1p2beta1.AssetService"
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": "cloudasset_v1p2beta1_generated_AssetService_GetFeed_sync",
107 "title": "cloudasset GetFeed Sample",
108 "description": "GetFeed gets details about an asset feed.",
109 "file": "Client/GetFeed/main.go",
110 "language": "GO",
111 "clientMethod": {
112 "shortName": "GetFeed",
113 "fullName": "google.cloud.asset.v1p2beta1.Client.GetFeed",
114 "parameters": [
115 {
116 "type": "context.Context",
117 "name": "ctx"
118 },
119 {
120 "type": "assetpb.GetFeedRequest",
121 "name": "req"
122 },
123 {
124 "type": "...gax.CallOption",
125 "name": "opts"
126 }
127 ],
128 "resultType": "*assetpb.Feed",
129 "client": {
130 "shortName": "Client",
131 "fullName": "google.cloud.asset.v1p2beta1.Client"
132 },
133 "method": {
134 "shortName": "GetFeed",
135 "fullName": "google.cloud.asset.v1p2beta1.AssetService.GetFeed",
136 "service": {
137 "shortName": "AssetService",
138 "fullName": "google.cloud.asset.v1p2beta1.AssetService"
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": "cloudasset_v1p2beta1_generated_AssetService_GetOperation_sync",
153 "title": "cloudasset GetOperation Sample",
154 "description": "GetOperation is a utility method from google.longrunning.Operations.",
155 "file": "Client/GetOperation/main.go",
156 "language": "GO",
157 "clientMethod": {
158 "shortName": "GetOperation",
159 "fullName": "google.cloud.asset.v1p2beta1.Client.GetOperation",
160 "parameters": [
161 {
162 "type": "context.Context",
163 "name": "ctx"
164 },
165 {
166 "type": "longrunningpb.GetOperationRequest",
167 "name": "req"
168 },
169 {
170 "type": "...gax.CallOption",
171 "name": "opts"
172 }
173 ],
174 "resultType": "*longrunningpb.Operation",
175 "client": {
176 "shortName": "Client",
177 "fullName": "google.cloud.asset.v1p2beta1.Client"
178 },
179 "method": {
180 "shortName": "GetOperation",
181 "fullName": "google.longrunning.Operations.GetOperation",
182 "service": {
183 "shortName": "Operations",
184 "fullName": "google.longrunning.Operations"
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": "cloudasset_v1p2beta1_generated_AssetService_ListFeeds_sync",
199 "title": "cloudasset ListFeeds Sample",
200 "description": "ListFeeds lists all asset feeds in a parent project/folder/organization.",
201 "file": "Client/ListFeeds/main.go",
202 "language": "GO",
203 "clientMethod": {
204 "shortName": "ListFeeds",
205 "fullName": "google.cloud.asset.v1p2beta1.Client.ListFeeds",
206 "parameters": [
207 {
208 "type": "context.Context",
209 "name": "ctx"
210 },
211 {
212 "type": "assetpb.ListFeedsRequest",
213 "name": "req"
214 },
215 {
216 "type": "...gax.CallOption",
217 "name": "opts"
218 }
219 ],
220 "resultType": "*assetpb.ListFeedsResponse",
221 "client": {
222 "shortName": "Client",
223 "fullName": "google.cloud.asset.v1p2beta1.Client"
224 },
225 "method": {
226 "shortName": "ListFeeds",
227 "fullName": "google.cloud.asset.v1p2beta1.AssetService.ListFeeds",
228 "service": {
229 "shortName": "AssetService",
230 "fullName": "google.cloud.asset.v1p2beta1.AssetService"
231 }
232 }
233 },
234 "origin": "API_DEFINITION",
235 "segments": [
236 {
237 "start": 18,
238 "end": 53,
239 "type": "FULL"
240 }
241 ]
242 },
243 {
244 "regionTag": "cloudasset_v1p2beta1_generated_AssetService_UpdateFeed_sync",
245 "title": "cloudasset UpdateFeed Sample",
246 "description": "UpdateFeed updates an asset feed configuration.",
247 "file": "Client/UpdateFeed/main.go",
248 "language": "GO",
249 "clientMethod": {
250 "shortName": "UpdateFeed",
251 "fullName": "google.cloud.asset.v1p2beta1.Client.UpdateFeed",
252 "parameters": [
253 {
254 "type": "context.Context",
255 "name": "ctx"
256 },
257 {
258 "type": "assetpb.UpdateFeedRequest",
259 "name": "req"
260 },
261 {
262 "type": "...gax.CallOption",
263 "name": "opts"
264 }
265 ],
266 "resultType": "*assetpb.Feed",
267 "client": {
268 "shortName": "Client",
269 "fullName": "google.cloud.asset.v1p2beta1.Client"
270 },
271 "method": {
272 "shortName": "UpdateFeed",
273 "fullName": "google.cloud.asset.v1p2beta1.AssetService.UpdateFeed",
274 "service": {
275 "shortName": "AssetService",
276 "fullName": "google.cloud.asset.v1p2beta1.AssetService"
277 }
278 }
279 },
280 "origin": "API_DEFINITION",
281 "segments": [
282 {
283 "start": 18,
284 "end": 53,
285 "type": "FULL"
286 }
287 ]
288 }
289 ]
290 }