Debian Codegraph @

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

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/scheduler/apiv1",
4 "version": "1.11.7",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.cloud.scheduler.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "cloudscheduler_v1_generated_CloudScheduler_CreateJob_sync",
16 "title": "cloudscheduler CreateJob Sample",
17 "description": "CreateJob creates a job.",
18 "file": "CloudSchedulerClient/CreateJob/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "CreateJob",
22 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.CreateJob",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "schedulerpb.CreateJobRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "*schedulerpb.Job",
38 "client": {
39 "shortName": "CloudSchedulerClient",
40 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
41 },
42 "method": {
43 "shortName": "CreateJob",
44 "fullName": "google.cloud.scheduler.v1.CloudScheduler.CreateJob",
45 "service": {
46 "shortName": "CloudScheduler",
47 "fullName": "google.cloud.scheduler.v1.CloudScheduler"
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": "cloudscheduler_v1_generated_CloudScheduler_DeleteJob_sync",
62 "title": "cloudscheduler DeleteJob Sample",
63 "description": "DeleteJob deletes a job.",
64 "file": "CloudSchedulerClient/DeleteJob/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "DeleteJob",
68 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.DeleteJob",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "schedulerpb.DeleteJobRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "client": {
84 "shortName": "CloudSchedulerClient",
85 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
86 },
87 "method": {
88 "shortName": "DeleteJob",
89 "fullName": "google.cloud.scheduler.v1.CloudScheduler.DeleteJob",
90 "service": {
91 "shortName": "CloudScheduler",
92 "fullName": "google.cloud.scheduler.v1.CloudScheduler"
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": "cloudscheduler_v1_generated_CloudScheduler_GetJob_sync",
107 "title": "cloudscheduler GetJob Sample",
108 "description": "GetJob gets a job.",
109 "file": "CloudSchedulerClient/GetJob/main.go",
110 "language": "GO",
111 "clientMethod": {
112 "shortName": "GetJob",
113 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.GetJob",
114 "parameters": [
115 {
116 "type": "context.Context",
117 "name": "ctx"
118 },
119 {
120 "type": "schedulerpb.GetJobRequest",
121 "name": "req"
122 },
123 {
124 "type": "...gax.CallOption",
125 "name": "opts"
126 }
127 ],
128 "resultType": "*schedulerpb.Job",
129 "client": {
130 "shortName": "CloudSchedulerClient",
131 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
132 },
133 "method": {
134 "shortName": "GetJob",
135 "fullName": "google.cloud.scheduler.v1.CloudScheduler.GetJob",
136 "service": {
137 "shortName": "CloudScheduler",
138 "fullName": "google.cloud.scheduler.v1.CloudScheduler"
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": "cloudscheduler_v1_generated_CloudScheduler_GetLocation_sync",
153 "title": "cloudscheduler GetLocation Sample",
154 "description": "GetLocation gets information about a location.",
155 "file": "CloudSchedulerClient/GetLocation/main.go",
156 "language": "GO",
157 "clientMethod": {
158 "shortName": "GetLocation",
159 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.GetLocation",
160 "parameters": [
161 {
162 "type": "context.Context",
163 "name": "ctx"
164 },
165 {
166 "type": "locationpb.GetLocationRequest",
167 "name": "req"
168 },
169 {
170 "type": "...gax.CallOption",
171 "name": "opts"
172 }
173 ],
174 "resultType": "*locationpb.Location",
175 "client": {
176 "shortName": "CloudSchedulerClient",
177 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
178 },
179 "method": {
180 "shortName": "GetLocation",
181 "fullName": "google.cloud.location.Locations.GetLocation",
182 "service": {
183 "shortName": "Locations",
184 "fullName": "google.cloud.location.Locations"
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": "cloudscheduler_v1_generated_CloudScheduler_ListJobs_sync",
199 "title": "cloudscheduler ListJobs Sample",
200 "description": "ListJobs lists jobs.",
201 "file": "CloudSchedulerClient/ListJobs/main.go",
202 "language": "GO",
203 "clientMethod": {
204 "shortName": "ListJobs",
205 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.ListJobs",
206 "parameters": [
207 {
208 "type": "context.Context",
209 "name": "ctx"
210 },
211 {
212 "type": "schedulerpb.ListJobsRequest",
213 "name": "req"
214 },
215 {
216 "type": "...gax.CallOption",
217 "name": "opts"
218 }
219 ],
220 "resultType": "JobIterator",
221 "client": {
222 "shortName": "CloudSchedulerClient",
223 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
224 },
225 "method": {
226 "shortName": "ListJobs",
227 "fullName": "google.cloud.scheduler.v1.CloudScheduler.ListJobs",
228 "service": {
229 "shortName": "CloudScheduler",
230 "fullName": "google.cloud.scheduler.v1.CloudScheduler"
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": "cloudscheduler_v1_generated_CloudScheduler_ListLocations_sync",
245 "title": "cloudscheduler ListLocations Sample",
246 "description": "ListLocations lists information about the supported locations for this service.",
247 "file": "CloudSchedulerClient/ListLocations/main.go",
248 "language": "GO",
249 "clientMethod": {
250 "shortName": "ListLocations",
251 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.ListLocations",
252 "parameters": [
253 {
254 "type": "context.Context",
255 "name": "ctx"
256 },
257 {
258 "type": "locationpb.ListLocationsRequest",
259 "name": "req"
260 },
261 {
262 "type": "...gax.CallOption",
263 "name": "opts"
264 }
265 ],
266 "resultType": "LocationIterator",
267 "client": {
268 "shortName": "CloudSchedulerClient",
269 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
270 },
271 "method": {
272 "shortName": "ListLocations",
273 "fullName": "google.cloud.location.Locations.ListLocations",
274 "service": {
275 "shortName": "Locations",
276 "fullName": "google.cloud.location.Locations"
277 }
278 }
279 },
280 "origin": "API_DEFINITION",
281 "segments": [
282 {
283 "start": 18,
284 "end": 66,
285 "type": "FULL"
286 }
287 ]
288 },
289 {
290 "regionTag": "cloudscheduler_v1_generated_CloudScheduler_PauseJob_sync",
291 "title": "cloudscheduler PauseJob Sample",
292 "description": "PauseJob pauses a job.\n\nIf a job is paused then the system will stop executing the job\nuntil it is re-enabled via\n[ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state\nof the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if\npaused it will be set to\n[Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must\nbe in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to\nbe paused.",
293 "file": "CloudSchedulerClient/PauseJob/main.go",
294 "language": "GO",
295 "clientMethod": {
296 "shortName": "PauseJob",
297 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.PauseJob",
298 "parameters": [
299 {
300 "type": "context.Context",
301 "name": "ctx"
302 },
303 {
304 "type": "schedulerpb.PauseJobRequest",
305 "name": "req"
306 },
307 {
308 "type": "...gax.CallOption",
309 "name": "opts"
310 }
311 ],
312 "resultType": "*schedulerpb.Job",
313 "client": {
314 "shortName": "CloudSchedulerClient",
315 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
316 },
317 "method": {
318 "shortName": "PauseJob",
319 "fullName": "google.cloud.scheduler.v1.CloudScheduler.PauseJob",
320 "service": {
321 "shortName": "CloudScheduler",
322 "fullName": "google.cloud.scheduler.v1.CloudScheduler"
323 }
324 }
325 },
326 "origin": "API_DEFINITION",
327 "segments": [
328 {
329 "start": 18,
330 "end": 53,
331 "type": "FULL"
332 }
333 ]
334 },
335 {
336 "regionTag": "cloudscheduler_v1_generated_CloudScheduler_ResumeJob_sync",
337 "title": "cloudscheduler ResumeJob Sample",
338 "description": "ResumeJob resume a job.\n\nThis method reenables a job after it has been\n[Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state\nof a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state];\nafter calling this method it will be set to\n[Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job\nmust be in [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]\nto be resumed.",
339 "file": "CloudSchedulerClient/ResumeJob/main.go",
340 "language": "GO",
341 "clientMethod": {
342 "shortName": "ResumeJob",
343 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.ResumeJob",
344 "parameters": [
345 {
346 "type": "context.Context",
347 "name": "ctx"
348 },
349 {
350 "type": "schedulerpb.ResumeJobRequest",
351 "name": "req"
352 },
353 {
354 "type": "...gax.CallOption",
355 "name": "opts"
356 }
357 ],
358 "resultType": "*schedulerpb.Job",
359 "client": {
360 "shortName": "CloudSchedulerClient",
361 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
362 },
363 "method": {
364 "shortName": "ResumeJob",
365 "fullName": "google.cloud.scheduler.v1.CloudScheduler.ResumeJob",
366 "service": {
367 "shortName": "CloudScheduler",
368 "fullName": "google.cloud.scheduler.v1.CloudScheduler"
369 }
370 }
371 },
372 "origin": "API_DEFINITION",
373 "segments": [
374 {
375 "start": 18,
376 "end": 53,
377 "type": "FULL"
378 }
379 ]
380 },
381 {
382 "regionTag": "cloudscheduler_v1_generated_CloudScheduler_RunJob_sync",
383 "title": "cloudscheduler RunJob Sample",
384 "description": "RunJob forces a job to run now.\n\nWhen this method is called, Cloud Scheduler will dispatch the job, even\nif the job is already running.",
385 "file": "CloudSchedulerClient/RunJob/main.go",
386 "language": "GO",
387 "clientMethod": {
388 "shortName": "RunJob",
389 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.RunJob",
390 "parameters": [
391 {
392 "type": "context.Context",
393 "name": "ctx"
394 },
395 {
396 "type": "schedulerpb.RunJobRequest",
397 "name": "req"
398 },
399 {
400 "type": "...gax.CallOption",
401 "name": "opts"
402 }
403 ],
404 "resultType": "*schedulerpb.Job",
405 "client": {
406 "shortName": "CloudSchedulerClient",
407 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
408 },
409 "method": {
410 "shortName": "RunJob",
411 "fullName": "google.cloud.scheduler.v1.CloudScheduler.RunJob",
412 "service": {
413 "shortName": "CloudScheduler",
414 "fullName": "google.cloud.scheduler.v1.CloudScheduler"
415 }
416 }
417 },
418 "origin": "API_DEFINITION",
419 "segments": [
420 {
421 "start": 18,
422 "end": 53,
423 "type": "FULL"
424 }
425 ]
426 },
427 {
428 "regionTag": "cloudscheduler_v1_generated_CloudScheduler_UpdateJob_sync",
429 "title": "cloudscheduler UpdateJob Sample",
430 "description": "UpdateJob updates a job.\n\nIf successful, the updated [Job][google.cloud.scheduler.v1.Job] is\nreturned. If the job does not exist, `NOT_FOUND` is returned.\n\nIf UpdateJob does not successfully return, it is possible for the\njob to be in an\n[Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED]\nstate. A job in this state may not be executed. If this happens, retry the\nUpdateJob request until a successful response is received.",
431 "file": "CloudSchedulerClient/UpdateJob/main.go",
432 "language": "GO",
433 "clientMethod": {
434 "shortName": "UpdateJob",
435 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient.UpdateJob",
436 "parameters": [
437 {
438 "type": "context.Context",
439 "name": "ctx"
440 },
441 {
442 "type": "schedulerpb.UpdateJobRequest",
443 "name": "req"
444 },
445 {
446 "type": "...gax.CallOption",
447 "name": "opts"
448 }
449 ],
450 "resultType": "*schedulerpb.Job",
451 "client": {
452 "shortName": "CloudSchedulerClient",
453 "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient"
454 },
455 "method": {
456 "shortName": "UpdateJob",
457 "fullName": "google.cloud.scheduler.v1.CloudScheduler.UpdateJob",
458 "service": {
459 "shortName": "CloudScheduler",
460 "fullName": "google.cloud.scheduler.v1.CloudScheduler"
461 }
462 }
463 },
464 "origin": "API_DEFINITION",
465 "segments": [
466 {
467 "start": 18,
468 "end": 53,
469 "type": "FULL"
470 }
471 ]
472 }
473 ]
474 }