Debian Codegraph @

internal/generated/snippets/servicehealth/apiv1/snippet_metadata.google.cloud.servicehealth.v1.json

raw
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/servicehealth/apiv1",
4 "version": "1.2.3",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.cloud.servicehealth.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "servicehealth_v1_generated_ServiceHealth_GetEvent_sync",
16 "title": "servicehealth GetEvent Sample",
17 "description": "GetEvent retrieves a resource containing information about an event.",
18 "file": "Client/GetEvent/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "GetEvent",
22 "fullName": "google.cloud.servicehealth.v1.Client.GetEvent",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "servicehealthpb.GetEventRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "*servicehealthpb.Event",
38 "client": {
39 "shortName": "Client",
40 "fullName": "google.cloud.servicehealth.v1.Client"
41 },
42 "method": {
43 "shortName": "GetEvent",
44 "fullName": "google.cloud.servicehealth.v1.ServiceHealth.GetEvent",
45 "service": {
46 "shortName": "ServiceHealth",
47 "fullName": "google.cloud.servicehealth.v1.ServiceHealth"
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": "servicehealth_v1_generated_ServiceHealth_GetLocation_sync",
62 "title": "servicehealth GetLocation Sample",
63 "description": "GetLocation gets information about a location.",
64 "file": "Client/GetLocation/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "GetLocation",
68 "fullName": "google.cloud.servicehealth.v1.Client.GetLocation",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "locationpb.GetLocationRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "resultType": "*locationpb.Location",
84 "client": {
85 "shortName": "Client",
86 "fullName": "google.cloud.servicehealth.v1.Client"
87 },
88 "method": {
89 "shortName": "GetLocation",
90 "fullName": "google.cloud.location.Locations.GetLocation",
91 "service": {
92 "shortName": "Locations",
93 "fullName": "google.cloud.location.Locations"
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": "servicehealth_v1_generated_ServiceHealth_GetOrganizationEvent_sync",
108 "title": "servicehealth GetOrganizationEvent Sample",
109 "description": "GetOrganizationEvent retrieves a resource containing information about an event affecting an\norganization .",
110 "file": "Client/GetOrganizationEvent/main.go",
111 "language": "GO",
112 "clientMethod": {
113 "shortName": "GetOrganizationEvent",
114 "fullName": "google.cloud.servicehealth.v1.Client.GetOrganizationEvent",
115 "parameters": [
116 {
117 "type": "context.Context",
118 "name": "ctx"
119 },
120 {
121 "type": "servicehealthpb.GetOrganizationEventRequest",
122 "name": "req"
123 },
124 {
125 "type": "...gax.CallOption",
126 "name": "opts"
127 }
128 ],
129 "resultType": "*servicehealthpb.OrganizationEvent",
130 "client": {
131 "shortName": "Client",
132 "fullName": "google.cloud.servicehealth.v1.Client"
133 },
134 "method": {
135 "shortName": "GetOrganizationEvent",
136 "fullName": "google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationEvent",
137 "service": {
138 "shortName": "ServiceHealth",
139 "fullName": "google.cloud.servicehealth.v1.ServiceHealth"
140 }
141 }
142 },
143 "origin": "API_DEFINITION",
144 "segments": [
145 {
146 "start": 18,
147 "end": 53,
148 "type": "FULL"
149 }
150 ]
151 },
152 {
153 "regionTag": "servicehealth_v1_generated_ServiceHealth_GetOrganizationImpact_sync",
154 "title": "servicehealth GetOrganizationImpact Sample",
155 "description": "GetOrganizationImpact retrieves a resource containing information about impact to an asset under\nan organization affected by a service health event.",
156 "file": "Client/GetOrganizationImpact/main.go",
157 "language": "GO",
158 "clientMethod": {
159 "shortName": "GetOrganizationImpact",
160 "fullName": "google.cloud.servicehealth.v1.Client.GetOrganizationImpact",
161 "parameters": [
162 {
163 "type": "context.Context",
164 "name": "ctx"
165 },
166 {
167 "type": "servicehealthpb.GetOrganizationImpactRequest",
168 "name": "req"
169 },
170 {
171 "type": "...gax.CallOption",
172 "name": "opts"
173 }
174 ],
175 "resultType": "*servicehealthpb.OrganizationImpact",
176 "client": {
177 "shortName": "Client",
178 "fullName": "google.cloud.servicehealth.v1.Client"
179 },
180 "method": {
181 "shortName": "GetOrganizationImpact",
182 "fullName": "google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationImpact",
183 "service": {
184 "shortName": "ServiceHealth",
185 "fullName": "google.cloud.servicehealth.v1.ServiceHealth"
186 }
187 }
188 },
189 "origin": "API_DEFINITION",
190 "segments": [
191 {
192 "start": 18,
193 "end": 53,
194 "type": "FULL"
195 }
196 ]
197 },
198 {
199 "regionTag": "servicehealth_v1_generated_ServiceHealth_ListEvents_sync",
200 "title": "servicehealth ListEvents Sample",
201 "description": "ListEvents lists events under a given project and location.",
202 "file": "Client/ListEvents/main.go",
203 "language": "GO",
204 "clientMethod": {
205 "shortName": "ListEvents",
206 "fullName": "google.cloud.servicehealth.v1.Client.ListEvents",
207 "parameters": [
208 {
209 "type": "context.Context",
210 "name": "ctx"
211 },
212 {
213 "type": "servicehealthpb.ListEventsRequest",
214 "name": "req"
215 },
216 {
217 "type": "...gax.CallOption",
218 "name": "opts"
219 }
220 ],
221 "resultType": "EventIterator",
222 "client": {
223 "shortName": "Client",
224 "fullName": "google.cloud.servicehealth.v1.Client"
225 },
226 "method": {
227 "shortName": "ListEvents",
228 "fullName": "google.cloud.servicehealth.v1.ServiceHealth.ListEvents",
229 "service": {
230 "shortName": "ServiceHealth",
231 "fullName": "google.cloud.servicehealth.v1.ServiceHealth"
232 }
233 }
234 },
235 "origin": "API_DEFINITION",
236 "segments": [
237 {
238 "start": 18,
239 "end": 66,
240 "type": "FULL"
241 }
242 ]
243 },
244 {
245 "regionTag": "servicehealth_v1_generated_ServiceHealth_ListLocations_sync",
246 "title": "servicehealth ListLocations Sample",
247 "description": "ListLocations lists information about the supported locations for this service.",
248 "file": "Client/ListLocations/main.go",
249 "language": "GO",
250 "clientMethod": {
251 "shortName": "ListLocations",
252 "fullName": "google.cloud.servicehealth.v1.Client.ListLocations",
253 "parameters": [
254 {
255 "type": "context.Context",
256 "name": "ctx"
257 },
258 {
259 "type": "locationpb.ListLocationsRequest",
260 "name": "req"
261 },
262 {
263 "type": "...gax.CallOption",
264 "name": "opts"
265 }
266 ],
267 "resultType": "LocationIterator",
268 "client": {
269 "shortName": "Client",
270 "fullName": "google.cloud.servicehealth.v1.Client"
271 },
272 "method": {
273 "shortName": "ListLocations",
274 "fullName": "google.cloud.location.Locations.ListLocations",
275 "service": {
276 "shortName": "Locations",
277 "fullName": "google.cloud.location.Locations"
278 }
279 }
280 },
281 "origin": "API_DEFINITION",
282 "segments": [
283 {
284 "start": 18,
285 "end": 66,
286 "type": "FULL"
287 }
288 ]
289 },
290 {
291 "regionTag": "servicehealth_v1_generated_ServiceHealth_ListOrganizationEvents_sync",
292 "title": "servicehealth ListOrganizationEvents Sample",
293 "description": "ListOrganizationEvents lists organization events under a given organization and location.",
294 "file": "Client/ListOrganizationEvents/main.go",
295 "language": "GO",
296 "clientMethod": {
297 "shortName": "ListOrganizationEvents",
298 "fullName": "google.cloud.servicehealth.v1.Client.ListOrganizationEvents",
299 "parameters": [
300 {
301 "type": "context.Context",
302 "name": "ctx"
303 },
304 {
305 "type": "servicehealthpb.ListOrganizationEventsRequest",
306 "name": "req"
307 },
308 {
309 "type": "...gax.CallOption",
310 "name": "opts"
311 }
312 ],
313 "resultType": "OrganizationEventIterator",
314 "client": {
315 "shortName": "Client",
316 "fullName": "google.cloud.servicehealth.v1.Client"
317 },
318 "method": {
319 "shortName": "ListOrganizationEvents",
320 "fullName": "google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationEvents",
321 "service": {
322 "shortName": "ServiceHealth",
323 "fullName": "google.cloud.servicehealth.v1.ServiceHealth"
324 }
325 }
326 },
327 "origin": "API_DEFINITION",
328 "segments": [
329 {
330 "start": 18,
331 "end": 66,
332 "type": "FULL"
333 }
334 ]
335 },
336 {
337 "regionTag": "servicehealth_v1_generated_ServiceHealth_ListOrganizationImpacts_sync",
338 "title": "servicehealth ListOrganizationImpacts Sample",
339 "description": "ListOrganizationImpacts lists assets impacted by organization events under a given organization and\nlocation.",
340 "file": "Client/ListOrganizationImpacts/main.go",
341 "language": "GO",
342 "clientMethod": {
343 "shortName": "ListOrganizationImpacts",
344 "fullName": "google.cloud.servicehealth.v1.Client.ListOrganizationImpacts",
345 "parameters": [
346 {
347 "type": "context.Context",
348 "name": "ctx"
349 },
350 {
351 "type": "servicehealthpb.ListOrganizationImpactsRequest",
352 "name": "req"
353 },
354 {
355 "type": "...gax.CallOption",
356 "name": "opts"
357 }
358 ],
359 "resultType": "OrganizationImpactIterator",
360 "client": {
361 "shortName": "Client",
362 "fullName": "google.cloud.servicehealth.v1.Client"
363 },
364 "method": {
365 "shortName": "ListOrganizationImpacts",
366 "fullName": "google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationImpacts",
367 "service": {
368 "shortName": "ServiceHealth",
369 "fullName": "google.cloud.servicehealth.v1.ServiceHealth"
370 }
371 }
372 },
373 "origin": "API_DEFINITION",
374 "segments": [
375 {
376 "start": 18,
377 "end": 66,
378 "type": "FULL"
379 }
380 ]
381 }
382 ]
383 }