Debian Codegraph @

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

raw
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/metastore/apiv1",
4 "version": "1.14.7",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.cloud.metastore.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "metastore_v1_generated_DataprocMetastore_AlterMetadataResourceLocation_sync",
16 "title": "metastore AlterMetadataResourceLocation Sample",
17 "description": "AlterMetadataResourceLocation alter metadata resource location. The metadata resource can be a database,\ntable, or partition. This functionality only updates the parent directory\nfor the respective metadata resource and does not transfer any existing\ndata to the new location.",
18 "file": "DataprocMetastoreClient/AlterMetadataResourceLocation/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "AlterMetadataResourceLocation",
22 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.AlterMetadataResourceLocation",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "metastorepb.AlterMetadataResourceLocationRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "AlterMetadataResourceLocationOperation",
38 "client": {
39 "shortName": "DataprocMetastoreClient",
40 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
41 },
42 "method": {
43 "shortName": "AlterMetadataResourceLocation",
44 "fullName": "google.cloud.metastore.v1.DataprocMetastore.AlterMetadataResourceLocation",
45 "service": {
46 "shortName": "DataprocMetastore",
47 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
48 }
49 }
50 },
51 "origin": "API_DEFINITION",
52 "segments": [
53 {
54 "start": 18,
55 "end": 58,
56 "type": "FULL"
57 }
58 ]
59 },
60 {
61 "regionTag": "metastore_v1_generated_DataprocMetastore_CancelOperation_sync",
62 "title": "metastore CancelOperation Sample",
63 "description": "CancelOperation is a utility method from google.longrunning.Operations.",
64 "file": "DataprocMetastoreClient/CancelOperation/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "CancelOperation",
68 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.CancelOperation",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "longrunningpb.CancelOperationRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "client": {
84 "shortName": "DataprocMetastoreClient",
85 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
86 },
87 "method": {
88 "shortName": "CancelOperation",
89 "fullName": "google.longrunning.Operations.CancelOperation",
90 "service": {
91 "shortName": "Operations",
92 "fullName": "google.longrunning.Operations"
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": "metastore_v1_generated_DataprocMetastore_CreateBackup_sync",
107 "title": "metastore CreateBackup Sample",
108 "description": "CreateBackup creates a new backup in a given project and location.",
109 "file": "DataprocMetastoreClient/CreateBackup/main.go",
110 "language": "GO",
111 "clientMethod": {
112 "shortName": "CreateBackup",
113 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.CreateBackup",
114 "parameters": [
115 {
116 "type": "context.Context",
117 "name": "ctx"
118 },
119 {
120 "type": "metastorepb.CreateBackupRequest",
121 "name": "req"
122 },
123 {
124 "type": "...gax.CallOption",
125 "name": "opts"
126 }
127 ],
128 "resultType": "CreateBackupOperation",
129 "client": {
130 "shortName": "DataprocMetastoreClient",
131 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
132 },
133 "method": {
134 "shortName": "CreateBackup",
135 "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateBackup",
136 "service": {
137 "shortName": "DataprocMetastore",
138 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
139 }
140 }
141 },
142 "origin": "API_DEFINITION",
143 "segments": [
144 {
145 "start": 18,
146 "end": 58,
147 "type": "FULL"
148 }
149 ]
150 },
151 {
152 "regionTag": "metastore_v1_generated_DataprocMetastore_CreateMetadataImport_sync",
153 "title": "metastore CreateMetadataImport Sample",
154 "description": "CreateMetadataImport creates a new MetadataImport in a given project and location.",
155 "file": "DataprocMetastoreClient/CreateMetadataImport/main.go",
156 "language": "GO",
157 "clientMethod": {
158 "shortName": "CreateMetadataImport",
159 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.CreateMetadataImport",
160 "parameters": [
161 {
162 "type": "context.Context",
163 "name": "ctx"
164 },
165 {
166 "type": "metastorepb.CreateMetadataImportRequest",
167 "name": "req"
168 },
169 {
170 "type": "...gax.CallOption",
171 "name": "opts"
172 }
173 ],
174 "resultType": "CreateMetadataImportOperation",
175 "client": {
176 "shortName": "DataprocMetastoreClient",
177 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
178 },
179 "method": {
180 "shortName": "CreateMetadataImport",
181 "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateMetadataImport",
182 "service": {
183 "shortName": "DataprocMetastore",
184 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
185 }
186 }
187 },
188 "origin": "API_DEFINITION",
189 "segments": [
190 {
191 "start": 18,
192 "end": 58,
193 "type": "FULL"
194 }
195 ]
196 },
197 {
198 "regionTag": "metastore_v1_generated_DataprocMetastore_CreateService_sync",
199 "title": "metastore CreateService Sample",
200 "description": "CreateService creates a metastore service in a project and location.",
201 "file": "DataprocMetastoreClient/CreateService/main.go",
202 "language": "GO",
203 "clientMethod": {
204 "shortName": "CreateService",
205 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.CreateService",
206 "parameters": [
207 {
208 "type": "context.Context",
209 "name": "ctx"
210 },
211 {
212 "type": "metastorepb.CreateServiceRequest",
213 "name": "req"
214 },
215 {
216 "type": "...gax.CallOption",
217 "name": "opts"
218 }
219 ],
220 "resultType": "CreateServiceOperation",
221 "client": {
222 "shortName": "DataprocMetastoreClient",
223 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
224 },
225 "method": {
226 "shortName": "CreateService",
227 "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateService",
228 "service": {
229 "shortName": "DataprocMetastore",
230 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
231 }
232 }
233 },
234 "origin": "API_DEFINITION",
235 "segments": [
236 {
237 "start": 18,
238 "end": 58,
239 "type": "FULL"
240 }
241 ]
242 },
243 {
244 "regionTag": "metastore_v1_generated_DataprocMetastore_DeleteBackup_sync",
245 "title": "metastore DeleteBackup Sample",
246 "description": "DeleteBackup deletes a single backup.",
247 "file": "DataprocMetastoreClient/DeleteBackup/main.go",
248 "language": "GO",
249 "clientMethod": {
250 "shortName": "DeleteBackup",
251 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.DeleteBackup",
252 "parameters": [
253 {
254 "type": "context.Context",
255 "name": "ctx"
256 },
257 {
258 "type": "metastorepb.DeleteBackupRequest",
259 "name": "req"
260 },
261 {
262 "type": "...gax.CallOption",
263 "name": "opts"
264 }
265 ],
266 "resultType": "DeleteBackupOperation",
267 "client": {
268 "shortName": "DataprocMetastoreClient",
269 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
270 },
271 "method": {
272 "shortName": "DeleteBackup",
273 "fullName": "google.cloud.metastore.v1.DataprocMetastore.DeleteBackup",
274 "service": {
275 "shortName": "DataprocMetastore",
276 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
277 }
278 }
279 },
280 "origin": "API_DEFINITION",
281 "segments": [
282 {
283 "start": 18,
284 "end": 56,
285 "type": "FULL"
286 }
287 ]
288 },
289 {
290 "regionTag": "metastore_v1_generated_DataprocMetastore_DeleteOperation_sync",
291 "title": "metastore DeleteOperation Sample",
292 "description": "DeleteOperation is a utility method from google.longrunning.Operations.",
293 "file": "DataprocMetastoreClient/DeleteOperation/main.go",
294 "language": "GO",
295 "clientMethod": {
296 "shortName": "DeleteOperation",
297 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.DeleteOperation",
298 "parameters": [
299 {
300 "type": "context.Context",
301 "name": "ctx"
302 },
303 {
304 "type": "longrunningpb.DeleteOperationRequest",
305 "name": "req"
306 },
307 {
308 "type": "...gax.CallOption",
309 "name": "opts"
310 }
311 ],
312 "client": {
313 "shortName": "DataprocMetastoreClient",
314 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
315 },
316 "method": {
317 "shortName": "DeleteOperation",
318 "fullName": "google.longrunning.Operations.DeleteOperation",
319 "service": {
320 "shortName": "Operations",
321 "fullName": "google.longrunning.Operations"
322 }
323 }
324 },
325 "origin": "API_DEFINITION",
326 "segments": [
327 {
328 "start": 18,
329 "end": 51,
330 "type": "FULL"
331 }
332 ]
333 },
334 {
335 "regionTag": "metastore_v1_generated_DataprocMetastore_DeleteService_sync",
336 "title": "metastore DeleteService Sample",
337 "description": "DeleteService deletes a single service.",
338 "file": "DataprocMetastoreClient/DeleteService/main.go",
339 "language": "GO",
340 "clientMethod": {
341 "shortName": "DeleteService",
342 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.DeleteService",
343 "parameters": [
344 {
345 "type": "context.Context",
346 "name": "ctx"
347 },
348 {
349 "type": "metastorepb.DeleteServiceRequest",
350 "name": "req"
351 },
352 {
353 "type": "...gax.CallOption",
354 "name": "opts"
355 }
356 ],
357 "resultType": "DeleteServiceOperation",
358 "client": {
359 "shortName": "DataprocMetastoreClient",
360 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
361 },
362 "method": {
363 "shortName": "DeleteService",
364 "fullName": "google.cloud.metastore.v1.DataprocMetastore.DeleteService",
365 "service": {
366 "shortName": "DataprocMetastore",
367 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
368 }
369 }
370 },
371 "origin": "API_DEFINITION",
372 "segments": [
373 {
374 "start": 18,
375 "end": 56,
376 "type": "FULL"
377 }
378 ]
379 },
380 {
381 "regionTag": "metastore_v1_generated_DataprocMetastore_ExportMetadata_sync",
382 "title": "metastore ExportMetadata Sample",
383 "description": "ExportMetadata exports metadata from a service.",
384 "file": "DataprocMetastoreClient/ExportMetadata/main.go",
385 "language": "GO",
386 "clientMethod": {
387 "shortName": "ExportMetadata",
388 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ExportMetadata",
389 "parameters": [
390 {
391 "type": "context.Context",
392 "name": "ctx"
393 },
394 {
395 "type": "metastorepb.ExportMetadataRequest",
396 "name": "req"
397 },
398 {
399 "type": "...gax.CallOption",
400 "name": "opts"
401 }
402 ],
403 "resultType": "ExportMetadataOperation",
404 "client": {
405 "shortName": "DataprocMetastoreClient",
406 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
407 },
408 "method": {
409 "shortName": "ExportMetadata",
410 "fullName": "google.cloud.metastore.v1.DataprocMetastore.ExportMetadata",
411 "service": {
412 "shortName": "DataprocMetastore",
413 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
414 }
415 }
416 },
417 "origin": "API_DEFINITION",
418 "segments": [
419 {
420 "start": 18,
421 "end": 58,
422 "type": "FULL"
423 }
424 ]
425 },
426 {
427 "regionTag": "metastore_v1_generated_DataprocMetastore_GetBackup_sync",
428 "title": "metastore GetBackup Sample",
429 "description": "GetBackup gets details of a single backup.",
430 "file": "DataprocMetastoreClient/GetBackup/main.go",
431 "language": "GO",
432 "clientMethod": {
433 "shortName": "GetBackup",
434 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetBackup",
435 "parameters": [
436 {
437 "type": "context.Context",
438 "name": "ctx"
439 },
440 {
441 "type": "metastorepb.GetBackupRequest",
442 "name": "req"
443 },
444 {
445 "type": "...gax.CallOption",
446 "name": "opts"
447 }
448 ],
449 "resultType": "*metastorepb.Backup",
450 "client": {
451 "shortName": "DataprocMetastoreClient",
452 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
453 },
454 "method": {
455 "shortName": "GetBackup",
456 "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetBackup",
457 "service": {
458 "shortName": "DataprocMetastore",
459 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
460 }
461 }
462 },
463 "origin": "API_DEFINITION",
464 "segments": [
465 {
466 "start": 18,
467 "end": 53,
468 "type": "FULL"
469 }
470 ]
471 },
472 {
473 "regionTag": "metastore_v1_generated_DataprocMetastore_GetIamPolicy_sync",
474 "title": "metastore GetIamPolicy Sample",
475 "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.",
476 "file": "DataprocMetastoreClient/GetIamPolicy/main.go",
477 "language": "GO",
478 "clientMethod": {
479 "shortName": "GetIamPolicy",
480 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetIamPolicy",
481 "parameters": [
482 {
483 "type": "context.Context",
484 "name": "ctx"
485 },
486 {
487 "type": "iampb.GetIamPolicyRequest",
488 "name": "req"
489 },
490 {
491 "type": "...gax.CallOption",
492 "name": "opts"
493 }
494 ],
495 "resultType": "*iampb.Policy",
496 "client": {
497 "shortName": "DataprocMetastoreClient",
498 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
499 },
500 "method": {
501 "shortName": "GetIamPolicy",
502 "fullName": "google.iam.v1.IAMPolicy.GetIamPolicy",
503 "service": {
504 "shortName": "IAMPolicy",
505 "fullName": "google.iam.v1.IAMPolicy"
506 }
507 }
508 },
509 "origin": "API_DEFINITION",
510 "segments": [
511 {
512 "start": 18,
513 "end": 53,
514 "type": "FULL"
515 }
516 ]
517 },
518 {
519 "regionTag": "metastore_v1_generated_DataprocMetastore_GetLocation_sync",
520 "title": "metastore GetLocation Sample",
521 "description": "GetLocation gets information about a location.",
522 "file": "DataprocMetastoreClient/GetLocation/main.go",
523 "language": "GO",
524 "clientMethod": {
525 "shortName": "GetLocation",
526 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetLocation",
527 "parameters": [
528 {
529 "type": "context.Context",
530 "name": "ctx"
531 },
532 {
533 "type": "locationpb.GetLocationRequest",
534 "name": "req"
535 },
536 {
537 "type": "...gax.CallOption",
538 "name": "opts"
539 }
540 ],
541 "resultType": "*locationpb.Location",
542 "client": {
543 "shortName": "DataprocMetastoreClient",
544 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
545 },
546 "method": {
547 "shortName": "GetLocation",
548 "fullName": "google.cloud.location.Locations.GetLocation",
549 "service": {
550 "shortName": "Locations",
551 "fullName": "google.cloud.location.Locations"
552 }
553 }
554 },
555 "origin": "API_DEFINITION",
556 "segments": [
557 {
558 "start": 18,
559 "end": 53,
560 "type": "FULL"
561 }
562 ]
563 },
564 {
565 "regionTag": "metastore_v1_generated_DataprocMetastore_GetMetadataImport_sync",
566 "title": "metastore GetMetadataImport Sample",
567 "description": "GetMetadataImport gets details of a single import.",
568 "file": "DataprocMetastoreClient/GetMetadataImport/main.go",
569 "language": "GO",
570 "clientMethod": {
571 "shortName": "GetMetadataImport",
572 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetMetadataImport",
573 "parameters": [
574 {
575 "type": "context.Context",
576 "name": "ctx"
577 },
578 {
579 "type": "metastorepb.GetMetadataImportRequest",
580 "name": "req"
581 },
582 {
583 "type": "...gax.CallOption",
584 "name": "opts"
585 }
586 ],
587 "resultType": "*metastorepb.MetadataImport",
588 "client": {
589 "shortName": "DataprocMetastoreClient",
590 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
591 },
592 "method": {
593 "shortName": "GetMetadataImport",
594 "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetMetadataImport",
595 "service": {
596 "shortName": "DataprocMetastore",
597 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
598 }
599 }
600 },
601 "origin": "API_DEFINITION",
602 "segments": [
603 {
604 "start": 18,
605 "end": 53,
606 "type": "FULL"
607 }
608 ]
609 },
610 {
611 "regionTag": "metastore_v1_generated_DataprocMetastore_GetOperation_sync",
612 "title": "metastore GetOperation Sample",
613 "description": "GetOperation is a utility method from google.longrunning.Operations.",
614 "file": "DataprocMetastoreClient/GetOperation/main.go",
615 "language": "GO",
616 "clientMethod": {
617 "shortName": "GetOperation",
618 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetOperation",
619 "parameters": [
620 {
621 "type": "context.Context",
622 "name": "ctx"
623 },
624 {
625 "type": "longrunningpb.GetOperationRequest",
626 "name": "req"
627 },
628 {
629 "type": "...gax.CallOption",
630 "name": "opts"
631 }
632 ],
633 "resultType": "*longrunningpb.Operation",
634 "client": {
635 "shortName": "DataprocMetastoreClient",
636 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
637 },
638 "method": {
639 "shortName": "GetOperation",
640 "fullName": "google.longrunning.Operations.GetOperation",
641 "service": {
642 "shortName": "Operations",
643 "fullName": "google.longrunning.Operations"
644 }
645 }
646 },
647 "origin": "API_DEFINITION",
648 "segments": [
649 {
650 "start": 18,
651 "end": 53,
652 "type": "FULL"
653 }
654 ]
655 },
656 {
657 "regionTag": "metastore_v1_generated_DataprocMetastore_GetService_sync",
658 "title": "metastore GetService Sample",
659 "description": "GetService gets the details of a single service.",
660 "file": "DataprocMetastoreClient/GetService/main.go",
661 "language": "GO",
662 "clientMethod": {
663 "shortName": "GetService",
664 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.GetService",
665 "parameters": [
666 {
667 "type": "context.Context",
668 "name": "ctx"
669 },
670 {
671 "type": "metastorepb.GetServiceRequest",
672 "name": "req"
673 },
674 {
675 "type": "...gax.CallOption",
676 "name": "opts"
677 }
678 ],
679 "resultType": "*metastorepb.Service",
680 "client": {
681 "shortName": "DataprocMetastoreClient",
682 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
683 },
684 "method": {
685 "shortName": "GetService",
686 "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetService",
687 "service": {
688 "shortName": "DataprocMetastore",
689 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
690 }
691 }
692 },
693 "origin": "API_DEFINITION",
694 "segments": [
695 {
696 "start": 18,
697 "end": 53,
698 "type": "FULL"
699 }
700 ]
701 },
702 {
703 "regionTag": "metastore_v1_generated_DataprocMetastore_ListBackups_sync",
704 "title": "metastore ListBackups Sample",
705 "description": "ListBackups lists backups in a service.",
706 "file": "DataprocMetastoreClient/ListBackups/main.go",
707 "language": "GO",
708 "clientMethod": {
709 "shortName": "ListBackups",
710 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListBackups",
711 "parameters": [
712 {
713 "type": "context.Context",
714 "name": "ctx"
715 },
716 {
717 "type": "metastorepb.ListBackupsRequest",
718 "name": "req"
719 },
720 {
721 "type": "...gax.CallOption",
722 "name": "opts"
723 }
724 ],
725 "resultType": "BackupIterator",
726 "client": {
727 "shortName": "DataprocMetastoreClient",
728 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
729 },
730 "method": {
731 "shortName": "ListBackups",
732 "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListBackups",
733 "service": {
734 "shortName": "DataprocMetastore",
735 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
736 }
737 }
738 },
739 "origin": "API_DEFINITION",
740 "segments": [
741 {
742 "start": 18,
743 "end": 66,
744 "type": "FULL"
745 }
746 ]
747 },
748 {
749 "regionTag": "metastore_v1_generated_DataprocMetastore_ListLocations_sync",
750 "title": "metastore ListLocations Sample",
751 "description": "ListLocations lists information about the supported locations for this service.",
752 "file": "DataprocMetastoreClient/ListLocations/main.go",
753 "language": "GO",
754 "clientMethod": {
755 "shortName": "ListLocations",
756 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListLocations",
757 "parameters": [
758 {
759 "type": "context.Context",
760 "name": "ctx"
761 },
762 {
763 "type": "locationpb.ListLocationsRequest",
764 "name": "req"
765 },
766 {
767 "type": "...gax.CallOption",
768 "name": "opts"
769 }
770 ],
771 "resultType": "LocationIterator",
772 "client": {
773 "shortName": "DataprocMetastoreClient",
774 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
775 },
776 "method": {
777 "shortName": "ListLocations",
778 "fullName": "google.cloud.location.Locations.ListLocations",
779 "service": {
780 "shortName": "Locations",
781 "fullName": "google.cloud.location.Locations"
782 }
783 }
784 },
785 "origin": "API_DEFINITION",
786 "segments": [
787 {
788 "start": 18,
789 "end": 66,
790 "type": "FULL"
791 }
792 ]
793 },
794 {
795 "regionTag": "metastore_v1_generated_DataprocMetastore_ListMetadataImports_sync",
796 "title": "metastore ListMetadataImports Sample",
797 "description": "ListMetadataImports lists imports in a service.",
798 "file": "DataprocMetastoreClient/ListMetadataImports/main.go",
799 "language": "GO",
800 "clientMethod": {
801 "shortName": "ListMetadataImports",
802 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListMetadataImports",
803 "parameters": [
804 {
805 "type": "context.Context",
806 "name": "ctx"
807 },
808 {
809 "type": "metastorepb.ListMetadataImportsRequest",
810 "name": "req"
811 },
812 {
813 "type": "...gax.CallOption",
814 "name": "opts"
815 }
816 ],
817 "resultType": "MetadataImportIterator",
818 "client": {
819 "shortName": "DataprocMetastoreClient",
820 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
821 },
822 "method": {
823 "shortName": "ListMetadataImports",
824 "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListMetadataImports",
825 "service": {
826 "shortName": "DataprocMetastore",
827 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
828 }
829 }
830 },
831 "origin": "API_DEFINITION",
832 "segments": [
833 {
834 "start": 18,
835 "end": 66,
836 "type": "FULL"
837 }
838 ]
839 },
840 {
841 "regionTag": "metastore_v1_generated_DataprocMetastore_ListOperations_sync",
842 "title": "metastore ListOperations Sample",
843 "description": "ListOperations is a utility method from google.longrunning.Operations.",
844 "file": "DataprocMetastoreClient/ListOperations/main.go",
845 "language": "GO",
846 "clientMethod": {
847 "shortName": "ListOperations",
848 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListOperations",
849 "parameters": [
850 {
851 "type": "context.Context",
852 "name": "ctx"
853 },
854 {
855 "type": "longrunningpb.ListOperationsRequest",
856 "name": "req"
857 },
858 {
859 "type": "...gax.CallOption",
860 "name": "opts"
861 }
862 ],
863 "resultType": "OperationIterator",
864 "client": {
865 "shortName": "DataprocMetastoreClient",
866 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
867 },
868 "method": {
869 "shortName": "ListOperations",
870 "fullName": "google.longrunning.Operations.ListOperations",
871 "service": {
872 "shortName": "Operations",
873 "fullName": "google.longrunning.Operations"
874 }
875 }
876 },
877 "origin": "API_DEFINITION",
878 "segments": [
879 {
880 "start": 18,
881 "end": 66,
882 "type": "FULL"
883 }
884 ]
885 },
886 {
887 "regionTag": "metastore_v1_generated_DataprocMetastore_ListServices_sync",
888 "title": "metastore ListServices Sample",
889 "description": "ListServices lists services in a project and location.",
890 "file": "DataprocMetastoreClient/ListServices/main.go",
891 "language": "GO",
892 "clientMethod": {
893 "shortName": "ListServices",
894 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.ListServices",
895 "parameters": [
896 {
897 "type": "context.Context",
898 "name": "ctx"
899 },
900 {
901 "type": "metastorepb.ListServicesRequest",
902 "name": "req"
903 },
904 {
905 "type": "...gax.CallOption",
906 "name": "opts"
907 }
908 ],
909 "resultType": "ServiceIterator",
910 "client": {
911 "shortName": "DataprocMetastoreClient",
912 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
913 },
914 "method": {
915 "shortName": "ListServices",
916 "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListServices",
917 "service": {
918 "shortName": "DataprocMetastore",
919 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
920 }
921 }
922 },
923 "origin": "API_DEFINITION",
924 "segments": [
925 {
926 "start": 18,
927 "end": 66,
928 "type": "FULL"
929 }
930 ]
931 },
932 {
933 "regionTag": "metastore_v1_generated_DataprocMetastore_MoveTableToDatabase_sync",
934 "title": "metastore MoveTableToDatabase Sample",
935 "description": "MoveTableToDatabase move a table to another database.",
936 "file": "DataprocMetastoreClient/MoveTableToDatabase/main.go",
937 "language": "GO",
938 "clientMethod": {
939 "shortName": "MoveTableToDatabase",
940 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.MoveTableToDatabase",
941 "parameters": [
942 {
943 "type": "context.Context",
944 "name": "ctx"
945 },
946 {
947 "type": "metastorepb.MoveTableToDatabaseRequest",
948 "name": "req"
949 },
950 {
951 "type": "...gax.CallOption",
952 "name": "opts"
953 }
954 ],
955 "resultType": "MoveTableToDatabaseOperation",
956 "client": {
957 "shortName": "DataprocMetastoreClient",
958 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
959 },
960 "method": {
961 "shortName": "MoveTableToDatabase",
962 "fullName": "google.cloud.metastore.v1.DataprocMetastore.MoveTableToDatabase",
963 "service": {
964 "shortName": "DataprocMetastore",
965 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
966 }
967 }
968 },
969 "origin": "API_DEFINITION",
970 "segments": [
971 {
972 "start": 18,
973 "end": 58,
974 "type": "FULL"
975 }
976 ]
977 },
978 {
979 "regionTag": "metastore_v1_generated_DataprocMetastore_QueryMetadata_sync",
980 "title": "metastore QueryMetadata Sample",
981 "description": "QueryMetadata query DPMS metadata.",
982 "file": "DataprocMetastoreClient/QueryMetadata/main.go",
983 "language": "GO",
984 "clientMethod": {
985 "shortName": "QueryMetadata",
986 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.QueryMetadata",
987 "parameters": [
988 {
989 "type": "context.Context",
990 "name": "ctx"
991 },
992 {
993 "type": "metastorepb.QueryMetadataRequest",
994 "name": "req"
995 },
996 {
997 "type": "...gax.CallOption",
998 "name": "opts"
999 }
1000 ],
1001 "resultType": "QueryMetadataOperation",
1002 "client": {
1003 "shortName": "DataprocMetastoreClient",
1004 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
1005 },
1006 "method": {
1007 "shortName": "QueryMetadata",
1008 "fullName": "google.cloud.metastore.v1.DataprocMetastore.QueryMetadata",
1009 "service": {
1010 "shortName": "DataprocMetastore",
1011 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
1012 }
1013 }
1014 },
1015 "origin": "API_DEFINITION",
1016 "segments": [
1017 {
1018 "start": 18,
1019 "end": 58,
1020 "type": "FULL"
1021 }
1022 ]
1023 },
1024 {
1025 "regionTag": "metastore_v1_generated_DataprocMetastore_RestoreService_sync",
1026 "title": "metastore RestoreService Sample",
1027 "description": "RestoreService restores a service from a backup.",
1028 "file": "DataprocMetastoreClient/RestoreService/main.go",
1029 "language": "GO",
1030 "clientMethod": {
1031 "shortName": "RestoreService",
1032 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.RestoreService",
1033 "parameters": [
1034 {
1035 "type": "context.Context",
1036 "name": "ctx"
1037 },
1038 {
1039 "type": "metastorepb.RestoreServiceRequest",
1040 "name": "req"
1041 },
1042 {
1043 "type": "...gax.CallOption",
1044 "name": "opts"
1045 }
1046 ],
1047 "resultType": "RestoreServiceOperation",
1048 "client": {
1049 "shortName": "DataprocMetastoreClient",
1050 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
1051 },
1052 "method": {
1053 "shortName": "RestoreService",
1054 "fullName": "google.cloud.metastore.v1.DataprocMetastore.RestoreService",
1055 "service": {
1056 "shortName": "DataprocMetastore",
1057 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
1058 }
1059 }
1060 },
1061 "origin": "API_DEFINITION",
1062 "segments": [
1063 {
1064 "start": 18,
1065 "end": 58,
1066 "type": "FULL"
1067 }
1068 ]
1069 },
1070 {
1071 "regionTag": "metastore_v1_generated_DataprocMetastore_SetIamPolicy_sync",
1072 "title": "metastore SetIamPolicy Sample",
1073 "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`\nerrors.",
1074 "file": "DataprocMetastoreClient/SetIamPolicy/main.go",
1075 "language": "GO",
1076 "clientMethod": {
1077 "shortName": "SetIamPolicy",
1078 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.SetIamPolicy",
1079 "parameters": [
1080 {
1081 "type": "context.Context",
1082 "name": "ctx"
1083 },
1084 {
1085 "type": "iampb.SetIamPolicyRequest",
1086 "name": "req"
1087 },
1088 {
1089 "type": "...gax.CallOption",
1090 "name": "opts"
1091 }
1092 ],
1093 "resultType": "*iampb.Policy",
1094 "client": {
1095 "shortName": "DataprocMetastoreClient",
1096 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
1097 },
1098 "method": {
1099 "shortName": "SetIamPolicy",
1100 "fullName": "google.iam.v1.IAMPolicy.SetIamPolicy",
1101 "service": {
1102 "shortName": "IAMPolicy",
1103 "fullName": "google.iam.v1.IAMPolicy"
1104 }
1105 }
1106 },
1107 "origin": "API_DEFINITION",
1108 "segments": [
1109 {
1110 "start": 18,
1111 "end": 53,
1112 "type": "FULL"
1113 }
1114 ]
1115 },
1116 {
1117 "regionTag": "metastore_v1_generated_DataprocMetastore_TestIamPermissions_sync",
1118 "title": "metastore TestIamPermissions Sample",
1119 "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a `NOT_FOUND` error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may \"fail open\" without warning.",
1120 "file": "DataprocMetastoreClient/TestIamPermissions/main.go",
1121 "language": "GO",
1122 "clientMethod": {
1123 "shortName": "TestIamPermissions",
1124 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.TestIamPermissions",
1125 "parameters": [
1126 {
1127 "type": "context.Context",
1128 "name": "ctx"
1129 },
1130 {
1131 "type": "iampb.TestIamPermissionsRequest",
1132 "name": "req"
1133 },
1134 {
1135 "type": "...gax.CallOption",
1136 "name": "opts"
1137 }
1138 ],
1139 "resultType": "*iampb.TestIamPermissionsResponse",
1140 "client": {
1141 "shortName": "DataprocMetastoreClient",
1142 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
1143 },
1144 "method": {
1145 "shortName": "TestIamPermissions",
1146 "fullName": "google.iam.v1.IAMPolicy.TestIamPermissions",
1147 "service": {
1148 "shortName": "IAMPolicy",
1149 "fullName": "google.iam.v1.IAMPolicy"
1150 }
1151 }
1152 },
1153 "origin": "API_DEFINITION",
1154 "segments": [
1155 {
1156 "start": 18,
1157 "end": 53,
1158 "type": "FULL"
1159 }
1160 ]
1161 },
1162 {
1163 "regionTag": "metastore_v1_generated_DataprocMetastore_UpdateMetadataImport_sync",
1164 "title": "metastore UpdateMetadataImport Sample",
1165 "description": "UpdateMetadataImport updates a single import.\nOnly the description field of MetadataImport is supported to be updated.",
1166 "file": "DataprocMetastoreClient/UpdateMetadataImport/main.go",
1167 "language": "GO",
1168 "clientMethod": {
1169 "shortName": "UpdateMetadataImport",
1170 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.UpdateMetadataImport",
1171 "parameters": [
1172 {
1173 "type": "context.Context",
1174 "name": "ctx"
1175 },
1176 {
1177 "type": "metastorepb.UpdateMetadataImportRequest",
1178 "name": "req"
1179 },
1180 {
1181 "type": "...gax.CallOption",
1182 "name": "opts"
1183 }
1184 ],
1185 "resultType": "UpdateMetadataImportOperation",
1186 "client": {
1187 "shortName": "DataprocMetastoreClient",
1188 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
1189 },
1190 "method": {
1191 "shortName": "UpdateMetadataImport",
1192 "fullName": "google.cloud.metastore.v1.DataprocMetastore.UpdateMetadataImport",
1193 "service": {
1194 "shortName": "DataprocMetastore",
1195 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
1196 }
1197 }
1198 },
1199 "origin": "API_DEFINITION",
1200 "segments": [
1201 {
1202 "start": 18,
1203 "end": 58,
1204 "type": "FULL"
1205 }
1206 ]
1207 },
1208 {
1209 "regionTag": "metastore_v1_generated_DataprocMetastore_UpdateService_sync",
1210 "title": "metastore UpdateService Sample",
1211 "description": "UpdateService updates the parameters of a single service.",
1212 "file": "DataprocMetastoreClient/UpdateService/main.go",
1213 "language": "GO",
1214 "clientMethod": {
1215 "shortName": "UpdateService",
1216 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient.UpdateService",
1217 "parameters": [
1218 {
1219 "type": "context.Context",
1220 "name": "ctx"
1221 },
1222 {
1223 "type": "metastorepb.UpdateServiceRequest",
1224 "name": "req"
1225 },
1226 {
1227 "type": "...gax.CallOption",
1228 "name": "opts"
1229 }
1230 ],
1231 "resultType": "UpdateServiceOperation",
1232 "client": {
1233 "shortName": "DataprocMetastoreClient",
1234 "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient"
1235 },
1236 "method": {
1237 "shortName": "UpdateService",
1238 "fullName": "google.cloud.metastore.v1.DataprocMetastore.UpdateService",
1239 "service": {
1240 "shortName": "DataprocMetastore",
1241 "fullName": "google.cloud.metastore.v1.DataprocMetastore"
1242 }
1243 }
1244 },
1245 "origin": "API_DEFINITION",
1246 "segments": [
1247 {
1248 "start": 18,
1249 "end": 58,
1250 "type": "FULL"
1251 }
1252 ]
1253 },
1254 {
1255 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_CancelOperation_sync",
1256 "title": "metastore CancelOperation Sample",
1257 "description": "CancelOperation is a utility method from google.longrunning.Operations.",
1258 "file": "DataprocMetastoreFederationClient/CancelOperation/main.go",
1259 "language": "GO",
1260 "clientMethod": {
1261 "shortName": "CancelOperation",
1262 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.CancelOperation",
1263 "parameters": [
1264 {
1265 "type": "context.Context",
1266 "name": "ctx"
1267 },
1268 {
1269 "type": "longrunningpb.CancelOperationRequest",
1270 "name": "req"
1271 },
1272 {
1273 "type": "...gax.CallOption",
1274 "name": "opts"
1275 }
1276 ],
1277 "client": {
1278 "shortName": "DataprocMetastoreFederationClient",
1279 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1280 },
1281 "method": {
1282 "shortName": "CancelOperation",
1283 "fullName": "google.longrunning.Operations.CancelOperation",
1284 "service": {
1285 "shortName": "Operations",
1286 "fullName": "google.longrunning.Operations"
1287 }
1288 }
1289 },
1290 "origin": "API_DEFINITION",
1291 "segments": [
1292 {
1293 "start": 18,
1294 "end": 51,
1295 "type": "FULL"
1296 }
1297 ]
1298 },
1299 {
1300 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_CreateFederation_sync",
1301 "title": "metastore CreateFederation Sample",
1302 "description": "CreateFederation creates a metastore federation in a project and location.",
1303 "file": "DataprocMetastoreFederationClient/CreateFederation/main.go",
1304 "language": "GO",
1305 "clientMethod": {
1306 "shortName": "CreateFederation",
1307 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.CreateFederation",
1308 "parameters": [
1309 {
1310 "type": "context.Context",
1311 "name": "ctx"
1312 },
1313 {
1314 "type": "metastorepb.CreateFederationRequest",
1315 "name": "req"
1316 },
1317 {
1318 "type": "...gax.CallOption",
1319 "name": "opts"
1320 }
1321 ],
1322 "resultType": "CreateFederationOperation",
1323 "client": {
1324 "shortName": "DataprocMetastoreFederationClient",
1325 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1326 },
1327 "method": {
1328 "shortName": "CreateFederation",
1329 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.CreateFederation",
1330 "service": {
1331 "shortName": "DataprocMetastoreFederation",
1332 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation"
1333 }
1334 }
1335 },
1336 "origin": "API_DEFINITION",
1337 "segments": [
1338 {
1339 "start": 18,
1340 "end": 58,
1341 "type": "FULL"
1342 }
1343 ]
1344 },
1345 {
1346 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_DeleteFederation_sync",
1347 "title": "metastore DeleteFederation Sample",
1348 "description": "DeleteFederation deletes a single federation.",
1349 "file": "DataprocMetastoreFederationClient/DeleteFederation/main.go",
1350 "language": "GO",
1351 "clientMethod": {
1352 "shortName": "DeleteFederation",
1353 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.DeleteFederation",
1354 "parameters": [
1355 {
1356 "type": "context.Context",
1357 "name": "ctx"
1358 },
1359 {
1360 "type": "metastorepb.DeleteFederationRequest",
1361 "name": "req"
1362 },
1363 {
1364 "type": "...gax.CallOption",
1365 "name": "opts"
1366 }
1367 ],
1368 "resultType": "DeleteFederationOperation",
1369 "client": {
1370 "shortName": "DataprocMetastoreFederationClient",
1371 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1372 },
1373 "method": {
1374 "shortName": "DeleteFederation",
1375 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.DeleteFederation",
1376 "service": {
1377 "shortName": "DataprocMetastoreFederation",
1378 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation"
1379 }
1380 }
1381 },
1382 "origin": "API_DEFINITION",
1383 "segments": [
1384 {
1385 "start": 18,
1386 "end": 56,
1387 "type": "FULL"
1388 }
1389 ]
1390 },
1391 {
1392 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_DeleteOperation_sync",
1393 "title": "metastore DeleteOperation Sample",
1394 "description": "DeleteOperation is a utility method from google.longrunning.Operations.",
1395 "file": "DataprocMetastoreFederationClient/DeleteOperation/main.go",
1396 "language": "GO",
1397 "clientMethod": {
1398 "shortName": "DeleteOperation",
1399 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.DeleteOperation",
1400 "parameters": [
1401 {
1402 "type": "context.Context",
1403 "name": "ctx"
1404 },
1405 {
1406 "type": "longrunningpb.DeleteOperationRequest",
1407 "name": "req"
1408 },
1409 {
1410 "type": "...gax.CallOption",
1411 "name": "opts"
1412 }
1413 ],
1414 "client": {
1415 "shortName": "DataprocMetastoreFederationClient",
1416 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1417 },
1418 "method": {
1419 "shortName": "DeleteOperation",
1420 "fullName": "google.longrunning.Operations.DeleteOperation",
1421 "service": {
1422 "shortName": "Operations",
1423 "fullName": "google.longrunning.Operations"
1424 }
1425 }
1426 },
1427 "origin": "API_DEFINITION",
1428 "segments": [
1429 {
1430 "start": 18,
1431 "end": 51,
1432 "type": "FULL"
1433 }
1434 ]
1435 },
1436 {
1437 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_GetFederation_sync",
1438 "title": "metastore GetFederation Sample",
1439 "description": "GetFederation gets the details of a single federation.",
1440 "file": "DataprocMetastoreFederationClient/GetFederation/main.go",
1441 "language": "GO",
1442 "clientMethod": {
1443 "shortName": "GetFederation",
1444 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.GetFederation",
1445 "parameters": [
1446 {
1447 "type": "context.Context",
1448 "name": "ctx"
1449 },
1450 {
1451 "type": "metastorepb.GetFederationRequest",
1452 "name": "req"
1453 },
1454 {
1455 "type": "...gax.CallOption",
1456 "name": "opts"
1457 }
1458 ],
1459 "resultType": "*metastorepb.Federation",
1460 "client": {
1461 "shortName": "DataprocMetastoreFederationClient",
1462 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1463 },
1464 "method": {
1465 "shortName": "GetFederation",
1466 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.GetFederation",
1467 "service": {
1468 "shortName": "DataprocMetastoreFederation",
1469 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation"
1470 }
1471 }
1472 },
1473 "origin": "API_DEFINITION",
1474 "segments": [
1475 {
1476 "start": 18,
1477 "end": 53,
1478 "type": "FULL"
1479 }
1480 ]
1481 },
1482 {
1483 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_GetIamPolicy_sync",
1484 "title": "metastore GetIamPolicy Sample",
1485 "description": "GetIamPolicy gets the access control policy for a resource. Returns an empty policy\nif the resource exists and does not have a policy set.",
1486 "file": "DataprocMetastoreFederationClient/GetIamPolicy/main.go",
1487 "language": "GO",
1488 "clientMethod": {
1489 "shortName": "GetIamPolicy",
1490 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.GetIamPolicy",
1491 "parameters": [
1492 {
1493 "type": "context.Context",
1494 "name": "ctx"
1495 },
1496 {
1497 "type": "iampb.GetIamPolicyRequest",
1498 "name": "req"
1499 },
1500 {
1501 "type": "...gax.CallOption",
1502 "name": "opts"
1503 }
1504 ],
1505 "resultType": "*iampb.Policy",
1506 "client": {
1507 "shortName": "DataprocMetastoreFederationClient",
1508 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1509 },
1510 "method": {
1511 "shortName": "GetIamPolicy",
1512 "fullName": "google.iam.v1.IAMPolicy.GetIamPolicy",
1513 "service": {
1514 "shortName": "IAMPolicy",
1515 "fullName": "google.iam.v1.IAMPolicy"
1516 }
1517 }
1518 },
1519 "origin": "API_DEFINITION",
1520 "segments": [
1521 {
1522 "start": 18,
1523 "end": 53,
1524 "type": "FULL"
1525 }
1526 ]
1527 },
1528 {
1529 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_GetLocation_sync",
1530 "title": "metastore GetLocation Sample",
1531 "description": "GetLocation gets information about a location.",
1532 "file": "DataprocMetastoreFederationClient/GetLocation/main.go",
1533 "language": "GO",
1534 "clientMethod": {
1535 "shortName": "GetLocation",
1536 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.GetLocation",
1537 "parameters": [
1538 {
1539 "type": "context.Context",
1540 "name": "ctx"
1541 },
1542 {
1543 "type": "locationpb.GetLocationRequest",
1544 "name": "req"
1545 },
1546 {
1547 "type": "...gax.CallOption",
1548 "name": "opts"
1549 }
1550 ],
1551 "resultType": "*locationpb.Location",
1552 "client": {
1553 "shortName": "DataprocMetastoreFederationClient",
1554 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1555 },
1556 "method": {
1557 "shortName": "GetLocation",
1558 "fullName": "google.cloud.location.Locations.GetLocation",
1559 "service": {
1560 "shortName": "Locations",
1561 "fullName": "google.cloud.location.Locations"
1562 }
1563 }
1564 },
1565 "origin": "API_DEFINITION",
1566 "segments": [
1567 {
1568 "start": 18,
1569 "end": 53,
1570 "type": "FULL"
1571 }
1572 ]
1573 },
1574 {
1575 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_GetOperation_sync",
1576 "title": "metastore GetOperation Sample",
1577 "description": "GetOperation is a utility method from google.longrunning.Operations.",
1578 "file": "DataprocMetastoreFederationClient/GetOperation/main.go",
1579 "language": "GO",
1580 "clientMethod": {
1581 "shortName": "GetOperation",
1582 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.GetOperation",
1583 "parameters": [
1584 {
1585 "type": "context.Context",
1586 "name": "ctx"
1587 },
1588 {
1589 "type": "longrunningpb.GetOperationRequest",
1590 "name": "req"
1591 },
1592 {
1593 "type": "...gax.CallOption",
1594 "name": "opts"
1595 }
1596 ],
1597 "resultType": "*longrunningpb.Operation",
1598 "client": {
1599 "shortName": "DataprocMetastoreFederationClient",
1600 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1601 },
1602 "method": {
1603 "shortName": "GetOperation",
1604 "fullName": "google.longrunning.Operations.GetOperation",
1605 "service": {
1606 "shortName": "Operations",
1607 "fullName": "google.longrunning.Operations"
1608 }
1609 }
1610 },
1611 "origin": "API_DEFINITION",
1612 "segments": [
1613 {
1614 "start": 18,
1615 "end": 53,
1616 "type": "FULL"
1617 }
1618 ]
1619 },
1620 {
1621 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_ListFederations_sync",
1622 "title": "metastore ListFederations Sample",
1623 "description": "ListFederations lists federations in a project and location.",
1624 "file": "DataprocMetastoreFederationClient/ListFederations/main.go",
1625 "language": "GO",
1626 "clientMethod": {
1627 "shortName": "ListFederations",
1628 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListFederations",
1629 "parameters": [
1630 {
1631 "type": "context.Context",
1632 "name": "ctx"
1633 },
1634 {
1635 "type": "metastorepb.ListFederationsRequest",
1636 "name": "req"
1637 },
1638 {
1639 "type": "...gax.CallOption",
1640 "name": "opts"
1641 }
1642 ],
1643 "resultType": "FederationIterator",
1644 "client": {
1645 "shortName": "DataprocMetastoreFederationClient",
1646 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1647 },
1648 "method": {
1649 "shortName": "ListFederations",
1650 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.ListFederations",
1651 "service": {
1652 "shortName": "DataprocMetastoreFederation",
1653 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation"
1654 }
1655 }
1656 },
1657 "origin": "API_DEFINITION",
1658 "segments": [
1659 {
1660 "start": 18,
1661 "end": 66,
1662 "type": "FULL"
1663 }
1664 ]
1665 },
1666 {
1667 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_ListLocations_sync",
1668 "title": "metastore ListLocations Sample",
1669 "description": "ListLocations lists information about the supported locations for this service.",
1670 "file": "DataprocMetastoreFederationClient/ListLocations/main.go",
1671 "language": "GO",
1672 "clientMethod": {
1673 "shortName": "ListLocations",
1674 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListLocations",
1675 "parameters": [
1676 {
1677 "type": "context.Context",
1678 "name": "ctx"
1679 },
1680 {
1681 "type": "locationpb.ListLocationsRequest",
1682 "name": "req"
1683 },
1684 {
1685 "type": "...gax.CallOption",
1686 "name": "opts"
1687 }
1688 ],
1689 "resultType": "LocationIterator",
1690 "client": {
1691 "shortName": "DataprocMetastoreFederationClient",
1692 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1693 },
1694 "method": {
1695 "shortName": "ListLocations",
1696 "fullName": "google.cloud.location.Locations.ListLocations",
1697 "service": {
1698 "shortName": "Locations",
1699 "fullName": "google.cloud.location.Locations"
1700 }
1701 }
1702 },
1703 "origin": "API_DEFINITION",
1704 "segments": [
1705 {
1706 "start": 18,
1707 "end": 66,
1708 "type": "FULL"
1709 }
1710 ]
1711 },
1712 {
1713 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_ListOperations_sync",
1714 "title": "metastore ListOperations Sample",
1715 "description": "ListOperations is a utility method from google.longrunning.Operations.",
1716 "file": "DataprocMetastoreFederationClient/ListOperations/main.go",
1717 "language": "GO",
1718 "clientMethod": {
1719 "shortName": "ListOperations",
1720 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.ListOperations",
1721 "parameters": [
1722 {
1723 "type": "context.Context",
1724 "name": "ctx"
1725 },
1726 {
1727 "type": "longrunningpb.ListOperationsRequest",
1728 "name": "req"
1729 },
1730 {
1731 "type": "...gax.CallOption",
1732 "name": "opts"
1733 }
1734 ],
1735 "resultType": "OperationIterator",
1736 "client": {
1737 "shortName": "DataprocMetastoreFederationClient",
1738 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1739 },
1740 "method": {
1741 "shortName": "ListOperations",
1742 "fullName": "google.longrunning.Operations.ListOperations",
1743 "service": {
1744 "shortName": "Operations",
1745 "fullName": "google.longrunning.Operations"
1746 }
1747 }
1748 },
1749 "origin": "API_DEFINITION",
1750 "segments": [
1751 {
1752 "start": 18,
1753 "end": 66,
1754 "type": "FULL"
1755 }
1756 ]
1757 },
1758 {
1759 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_SetIamPolicy_sync",
1760 "title": "metastore SetIamPolicy Sample",
1761 "description": "SetIamPolicy sets the access control policy on the specified resource. Replaces\nany existing policy.\n\nCan return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`\nerrors.",
1762 "file": "DataprocMetastoreFederationClient/SetIamPolicy/main.go",
1763 "language": "GO",
1764 "clientMethod": {
1765 "shortName": "SetIamPolicy",
1766 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.SetIamPolicy",
1767 "parameters": [
1768 {
1769 "type": "context.Context",
1770 "name": "ctx"
1771 },
1772 {
1773 "type": "iampb.SetIamPolicyRequest",
1774 "name": "req"
1775 },
1776 {
1777 "type": "...gax.CallOption",
1778 "name": "opts"
1779 }
1780 ],
1781 "resultType": "*iampb.Policy",
1782 "client": {
1783 "shortName": "DataprocMetastoreFederationClient",
1784 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1785 },
1786 "method": {
1787 "shortName": "SetIamPolicy",
1788 "fullName": "google.iam.v1.IAMPolicy.SetIamPolicy",
1789 "service": {
1790 "shortName": "IAMPolicy",
1791 "fullName": "google.iam.v1.IAMPolicy"
1792 }
1793 }
1794 },
1795 "origin": "API_DEFINITION",
1796 "segments": [
1797 {
1798 "start": 18,
1799 "end": 53,
1800 "type": "FULL"
1801 }
1802 ]
1803 },
1804 {
1805 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_TestIamPermissions_sync",
1806 "title": "metastore TestIamPermissions Sample",
1807 "description": "TestIamPermissions returns permissions that a caller has on the specified resource. If the\nresource does not exist, this will return an empty set of\npermissions, not a `NOT_FOUND` error.\n\nNote: This operation is designed to be used for building\npermission-aware UIs and command-line tools, not for authorization\nchecking. This operation may \"fail open\" without warning.",
1808 "file": "DataprocMetastoreFederationClient/TestIamPermissions/main.go",
1809 "language": "GO",
1810 "clientMethod": {
1811 "shortName": "TestIamPermissions",
1812 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.TestIamPermissions",
1813 "parameters": [
1814 {
1815 "type": "context.Context",
1816 "name": "ctx"
1817 },
1818 {
1819 "type": "iampb.TestIamPermissionsRequest",
1820 "name": "req"
1821 },
1822 {
1823 "type": "...gax.CallOption",
1824 "name": "opts"
1825 }
1826 ],
1827 "resultType": "*iampb.TestIamPermissionsResponse",
1828 "client": {
1829 "shortName": "DataprocMetastoreFederationClient",
1830 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1831 },
1832 "method": {
1833 "shortName": "TestIamPermissions",
1834 "fullName": "google.iam.v1.IAMPolicy.TestIamPermissions",
1835 "service": {
1836 "shortName": "IAMPolicy",
1837 "fullName": "google.iam.v1.IAMPolicy"
1838 }
1839 }
1840 },
1841 "origin": "API_DEFINITION",
1842 "segments": [
1843 {
1844 "start": 18,
1845 "end": 53,
1846 "type": "FULL"
1847 }
1848 ]
1849 },
1850 {
1851 "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_UpdateFederation_sync",
1852 "title": "metastore UpdateFederation Sample",
1853 "description": "UpdateFederation updates the fields of a federation.",
1854 "file": "DataprocMetastoreFederationClient/UpdateFederation/main.go",
1855 "language": "GO",
1856 "clientMethod": {
1857 "shortName": "UpdateFederation",
1858 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient.UpdateFederation",
1859 "parameters": [
1860 {
1861 "type": "context.Context",
1862 "name": "ctx"
1863 },
1864 {
1865 "type": "metastorepb.UpdateFederationRequest",
1866 "name": "req"
1867 },
1868 {
1869 "type": "...gax.CallOption",
1870 "name": "opts"
1871 }
1872 ],
1873 "resultType": "UpdateFederationOperation",
1874 "client": {
1875 "shortName": "DataprocMetastoreFederationClient",
1876 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient"
1877 },
1878 "method": {
1879 "shortName": "UpdateFederation",
1880 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.UpdateFederation",
1881 "service": {
1882 "shortName": "DataprocMetastoreFederation",
1883 "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation"
1884 }
1885 }
1886 },
1887 "origin": "API_DEFINITION",
1888 "segments": [
1889 {
1890 "start": 18,
1891 "end": 58,
1892 "type": "FULL"
1893 }
1894 ]
1895 }
1896 ]
1897 }