Debian Codegraph @

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

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/servicedirectory/apiv1",
4 "version": "1.12.6",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.cloud.servicedirectory.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "servicedirectory_v1_generated_LookupService_GetLocation_sync",
16 "title": "servicedirectory GetLocation Sample",
17 "description": "GetLocation gets information about a location.",
18 "file": "LookupClient/GetLocation/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "GetLocation",
22 "fullName": "google.cloud.servicedirectory.v1.LookupClient.GetLocation",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "locationpb.GetLocationRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "*locationpb.Location",
38 "client": {
39 "shortName": "LookupClient",
40 "fullName": "google.cloud.servicedirectory.v1.LookupClient"
41 },
42 "method": {
43 "shortName": "GetLocation",
44 "fullName": "google.cloud.location.Locations.GetLocation",
45 "service": {
46 "shortName": "Locations",
47 "fullName": "google.cloud.location.Locations"
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": "servicedirectory_v1_generated_LookupService_ListLocations_sync",
62 "title": "servicedirectory ListLocations Sample",
63 "description": "ListLocations lists information about the supported locations for this service.",
64 "file": "LookupClient/ListLocations/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "ListLocations",
68 "fullName": "google.cloud.servicedirectory.v1.LookupClient.ListLocations",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "locationpb.ListLocationsRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "resultType": "LocationIterator",
84 "client": {
85 "shortName": "LookupClient",
86 "fullName": "google.cloud.servicedirectory.v1.LookupClient"
87 },
88 "method": {
89 "shortName": "ListLocations",
90 "fullName": "google.cloud.location.Locations.ListLocations",
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": 66,
102 "type": "FULL"
103 }
104 ]
105 },
106 {
107 "regionTag": "servicedirectory_v1_generated_LookupService_ResolveService_sync",
108 "title": "servicedirectory ResolveService Sample",
109 "description": "ResolveService returns a [service][google.cloud.servicedirectory.v1.Service] and its\nassociated endpoints.\nResolving a service is not considered an active developer method.",
110 "file": "LookupClient/ResolveService/main.go",
111 "language": "GO",
112 "clientMethod": {
113 "shortName": "ResolveService",
114 "fullName": "google.cloud.servicedirectory.v1.LookupClient.ResolveService",
115 "parameters": [
116 {
117 "type": "context.Context",
118 "name": "ctx"
119 },
120 {
121 "type": "servicedirectorypb.ResolveServiceRequest",
122 "name": "req"
123 },
124 {
125 "type": "...gax.CallOption",
126 "name": "opts"
127 }
128 ],
129 "resultType": "*servicedirectorypb.ResolveServiceResponse",
130 "client": {
131 "shortName": "LookupClient",
132 "fullName": "google.cloud.servicedirectory.v1.LookupClient"
133 },
134 "method": {
135 "shortName": "ResolveService",
136 "fullName": "google.cloud.servicedirectory.v1.LookupService.ResolveService",
137 "service": {
138 "shortName": "LookupService",
139 "fullName": "google.cloud.servicedirectory.v1.LookupService"
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": "servicedirectory_v1_generated_RegistrationService_CreateEndpoint_sync",
154 "title": "servicedirectory CreateEndpoint Sample",
155 "description": "CreateEndpoint creates an endpoint, and returns the new endpoint.",
156 "file": "RegistrationClient/CreateEndpoint/main.go",
157 "language": "GO",
158 "clientMethod": {
159 "shortName": "CreateEndpoint",
160 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.CreateEndpoint",
161 "parameters": [
162 {
163 "type": "context.Context",
164 "name": "ctx"
165 },
166 {
167 "type": "servicedirectorypb.CreateEndpointRequest",
168 "name": "req"
169 },
170 {
171 "type": "...gax.CallOption",
172 "name": "opts"
173 }
174 ],
175 "resultType": "*servicedirectorypb.Endpoint",
176 "client": {
177 "shortName": "RegistrationClient",
178 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
179 },
180 "method": {
181 "shortName": "CreateEndpoint",
182 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint",
183 "service": {
184 "shortName": "RegistrationService",
185 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
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": "servicedirectory_v1_generated_RegistrationService_CreateNamespace_sync",
200 "title": "servicedirectory CreateNamespace Sample",
201 "description": "CreateNamespace creates a namespace, and returns the new namespace.",
202 "file": "RegistrationClient/CreateNamespace/main.go",
203 "language": "GO",
204 "clientMethod": {
205 "shortName": "CreateNamespace",
206 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.CreateNamespace",
207 "parameters": [
208 {
209 "type": "context.Context",
210 "name": "ctx"
211 },
212 {
213 "type": "servicedirectorypb.CreateNamespaceRequest",
214 "name": "req"
215 },
216 {
217 "type": "...gax.CallOption",
218 "name": "opts"
219 }
220 ],
221 "resultType": "*servicedirectorypb.Namespace",
222 "client": {
223 "shortName": "RegistrationClient",
224 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
225 },
226 "method": {
227 "shortName": "CreateNamespace",
228 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace",
229 "service": {
230 "shortName": "RegistrationService",
231 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
232 }
233 }
234 },
235 "origin": "API_DEFINITION",
236 "segments": [
237 {
238 "start": 18,
239 "end": 53,
240 "type": "FULL"
241 }
242 ]
243 },
244 {
245 "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateService_sync",
246 "title": "servicedirectory CreateService Sample",
247 "description": "CreateService creates a service, and returns the new service.",
248 "file": "RegistrationClient/CreateService/main.go",
249 "language": "GO",
250 "clientMethod": {
251 "shortName": "CreateService",
252 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.CreateService",
253 "parameters": [
254 {
255 "type": "context.Context",
256 "name": "ctx"
257 },
258 {
259 "type": "servicedirectorypb.CreateServiceRequest",
260 "name": "req"
261 },
262 {
263 "type": "...gax.CallOption",
264 "name": "opts"
265 }
266 ],
267 "resultType": "*servicedirectorypb.Service",
268 "client": {
269 "shortName": "RegistrationClient",
270 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
271 },
272 "method": {
273 "shortName": "CreateService",
274 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateService",
275 "service": {
276 "shortName": "RegistrationService",
277 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
278 }
279 }
280 },
281 "origin": "API_DEFINITION",
282 "segments": [
283 {
284 "start": 18,
285 "end": 53,
286 "type": "FULL"
287 }
288 ]
289 },
290 {
291 "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteEndpoint_sync",
292 "title": "servicedirectory DeleteEndpoint Sample",
293 "description": "DeleteEndpoint deletes an endpoint.",
294 "file": "RegistrationClient/DeleteEndpoint/main.go",
295 "language": "GO",
296 "clientMethod": {
297 "shortName": "DeleteEndpoint",
298 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.DeleteEndpoint",
299 "parameters": [
300 {
301 "type": "context.Context",
302 "name": "ctx"
303 },
304 {
305 "type": "servicedirectorypb.DeleteEndpointRequest",
306 "name": "req"
307 },
308 {
309 "type": "...gax.CallOption",
310 "name": "opts"
311 }
312 ],
313 "client": {
314 "shortName": "RegistrationClient",
315 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
316 },
317 "method": {
318 "shortName": "DeleteEndpoint",
319 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint",
320 "service": {
321 "shortName": "RegistrationService",
322 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
323 }
324 }
325 },
326 "origin": "API_DEFINITION",
327 "segments": [
328 {
329 "start": 18,
330 "end": 51,
331 "type": "FULL"
332 }
333 ]
334 },
335 {
336 "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteNamespace_sync",
337 "title": "servicedirectory DeleteNamespace Sample",
338 "description": "DeleteNamespace deletes a namespace. This also deletes all services and endpoints in\nthe namespace.",
339 "file": "RegistrationClient/DeleteNamespace/main.go",
340 "language": "GO",
341 "clientMethod": {
342 "shortName": "DeleteNamespace",
343 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.DeleteNamespace",
344 "parameters": [
345 {
346 "type": "context.Context",
347 "name": "ctx"
348 },
349 {
350 "type": "servicedirectorypb.DeleteNamespaceRequest",
351 "name": "req"
352 },
353 {
354 "type": "...gax.CallOption",
355 "name": "opts"
356 }
357 ],
358 "client": {
359 "shortName": "RegistrationClient",
360 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
361 },
362 "method": {
363 "shortName": "DeleteNamespace",
364 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace",
365 "service": {
366 "shortName": "RegistrationService",
367 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
368 }
369 }
370 },
371 "origin": "API_DEFINITION",
372 "segments": [
373 {
374 "start": 18,
375 "end": 51,
376 "type": "FULL"
377 }
378 ]
379 },
380 {
381 "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteService_sync",
382 "title": "servicedirectory DeleteService Sample",
383 "description": "DeleteService deletes a service. This also deletes all endpoints associated with\nthe service.",
384 "file": "RegistrationClient/DeleteService/main.go",
385 "language": "GO",
386 "clientMethod": {
387 "shortName": "DeleteService",
388 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.DeleteService",
389 "parameters": [
390 {
391 "type": "context.Context",
392 "name": "ctx"
393 },
394 {
395 "type": "servicedirectorypb.DeleteServiceRequest",
396 "name": "req"
397 },
398 {
399 "type": "...gax.CallOption",
400 "name": "opts"
401 }
402 ],
403 "client": {
404 "shortName": "RegistrationClient",
405 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
406 },
407 "method": {
408 "shortName": "DeleteService",
409 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteService",
410 "service": {
411 "shortName": "RegistrationService",
412 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
413 }
414 }
415 },
416 "origin": "API_DEFINITION",
417 "segments": [
418 {
419 "start": 18,
420 "end": 51,
421 "type": "FULL"
422 }
423 ]
424 },
425 {
426 "regionTag": "servicedirectory_v1_generated_RegistrationService_GetEndpoint_sync",
427 "title": "servicedirectory GetEndpoint Sample",
428 "description": "GetEndpoint gets an endpoint.",
429 "file": "RegistrationClient/GetEndpoint/main.go",
430 "language": "GO",
431 "clientMethod": {
432 "shortName": "GetEndpoint",
433 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetEndpoint",
434 "parameters": [
435 {
436 "type": "context.Context",
437 "name": "ctx"
438 },
439 {
440 "type": "servicedirectorypb.GetEndpointRequest",
441 "name": "req"
442 },
443 {
444 "type": "...gax.CallOption",
445 "name": "opts"
446 }
447 ],
448 "resultType": "*servicedirectorypb.Endpoint",
449 "client": {
450 "shortName": "RegistrationClient",
451 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
452 },
453 "method": {
454 "shortName": "GetEndpoint",
455 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint",
456 "service": {
457 "shortName": "RegistrationService",
458 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
459 }
460 }
461 },
462 "origin": "API_DEFINITION",
463 "segments": [
464 {
465 "start": 18,
466 "end": 53,
467 "type": "FULL"
468 }
469 ]
470 },
471 {
472 "regionTag": "servicedirectory_v1_generated_RegistrationService_GetIamPolicy_sync",
473 "title": "servicedirectory GetIamPolicy Sample",
474 "description": "GetIamPolicy gets the IAM Policy for a resource (namespace or service only).",
475 "file": "RegistrationClient/GetIamPolicy/main.go",
476 "language": "GO",
477 "clientMethod": {
478 "shortName": "GetIamPolicy",
479 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetIamPolicy",
480 "parameters": [
481 {
482 "type": "context.Context",
483 "name": "ctx"
484 },
485 {
486 "type": "iampb.GetIamPolicyRequest",
487 "name": "req"
488 },
489 {
490 "type": "...gax.CallOption",
491 "name": "opts"
492 }
493 ],
494 "resultType": "*iampb.Policy",
495 "client": {
496 "shortName": "RegistrationClient",
497 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
498 },
499 "method": {
500 "shortName": "GetIamPolicy",
501 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetIamPolicy",
502 "service": {
503 "shortName": "RegistrationService",
504 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
505 }
506 }
507 },
508 "origin": "API_DEFINITION",
509 "segments": [
510 {
511 "start": 18,
512 "end": 53,
513 "type": "FULL"
514 }
515 ]
516 },
517 {
518 "regionTag": "servicedirectory_v1_generated_RegistrationService_GetLocation_sync",
519 "title": "servicedirectory GetLocation Sample",
520 "description": "GetLocation gets information about a location.",
521 "file": "RegistrationClient/GetLocation/main.go",
522 "language": "GO",
523 "clientMethod": {
524 "shortName": "GetLocation",
525 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetLocation",
526 "parameters": [
527 {
528 "type": "context.Context",
529 "name": "ctx"
530 },
531 {
532 "type": "locationpb.GetLocationRequest",
533 "name": "req"
534 },
535 {
536 "type": "...gax.CallOption",
537 "name": "opts"
538 }
539 ],
540 "resultType": "*locationpb.Location",
541 "client": {
542 "shortName": "RegistrationClient",
543 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
544 },
545 "method": {
546 "shortName": "GetLocation",
547 "fullName": "google.cloud.location.Locations.GetLocation",
548 "service": {
549 "shortName": "Locations",
550 "fullName": "google.cloud.location.Locations"
551 }
552 }
553 },
554 "origin": "API_DEFINITION",
555 "segments": [
556 {
557 "start": 18,
558 "end": 53,
559 "type": "FULL"
560 }
561 ]
562 },
563 {
564 "regionTag": "servicedirectory_v1_generated_RegistrationService_GetNamespace_sync",
565 "title": "servicedirectory GetNamespace Sample",
566 "description": "GetNamespace gets a namespace.",
567 "file": "RegistrationClient/GetNamespace/main.go",
568 "language": "GO",
569 "clientMethod": {
570 "shortName": "GetNamespace",
571 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetNamespace",
572 "parameters": [
573 {
574 "type": "context.Context",
575 "name": "ctx"
576 },
577 {
578 "type": "servicedirectorypb.GetNamespaceRequest",
579 "name": "req"
580 },
581 {
582 "type": "...gax.CallOption",
583 "name": "opts"
584 }
585 ],
586 "resultType": "*servicedirectorypb.Namespace",
587 "client": {
588 "shortName": "RegistrationClient",
589 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
590 },
591 "method": {
592 "shortName": "GetNamespace",
593 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetNamespace",
594 "service": {
595 "shortName": "RegistrationService",
596 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
597 }
598 }
599 },
600 "origin": "API_DEFINITION",
601 "segments": [
602 {
603 "start": 18,
604 "end": 53,
605 "type": "FULL"
606 }
607 ]
608 },
609 {
610 "regionTag": "servicedirectory_v1_generated_RegistrationService_GetService_sync",
611 "title": "servicedirectory GetService Sample",
612 "description": "GetService gets a service.",
613 "file": "RegistrationClient/GetService/main.go",
614 "language": "GO",
615 "clientMethod": {
616 "shortName": "GetService",
617 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.GetService",
618 "parameters": [
619 {
620 "type": "context.Context",
621 "name": "ctx"
622 },
623 {
624 "type": "servicedirectorypb.GetServiceRequest",
625 "name": "req"
626 },
627 {
628 "type": "...gax.CallOption",
629 "name": "opts"
630 }
631 ],
632 "resultType": "*servicedirectorypb.Service",
633 "client": {
634 "shortName": "RegistrationClient",
635 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
636 },
637 "method": {
638 "shortName": "GetService",
639 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetService",
640 "service": {
641 "shortName": "RegistrationService",
642 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
643 }
644 }
645 },
646 "origin": "API_DEFINITION",
647 "segments": [
648 {
649 "start": 18,
650 "end": 53,
651 "type": "FULL"
652 }
653 ]
654 },
655 {
656 "regionTag": "servicedirectory_v1_generated_RegistrationService_ListEndpoints_sync",
657 "title": "servicedirectory ListEndpoints Sample",
658 "description": "ListEndpoints lists all endpoints.",
659 "file": "RegistrationClient/ListEndpoints/main.go",
660 "language": "GO",
661 "clientMethod": {
662 "shortName": "ListEndpoints",
663 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListEndpoints",
664 "parameters": [
665 {
666 "type": "context.Context",
667 "name": "ctx"
668 },
669 {
670 "type": "servicedirectorypb.ListEndpointsRequest",
671 "name": "req"
672 },
673 {
674 "type": "...gax.CallOption",
675 "name": "opts"
676 }
677 ],
678 "resultType": "EndpointIterator",
679 "client": {
680 "shortName": "RegistrationClient",
681 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
682 },
683 "method": {
684 "shortName": "ListEndpoints",
685 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints",
686 "service": {
687 "shortName": "RegistrationService",
688 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
689 }
690 }
691 },
692 "origin": "API_DEFINITION",
693 "segments": [
694 {
695 "start": 18,
696 "end": 66,
697 "type": "FULL"
698 }
699 ]
700 },
701 {
702 "regionTag": "servicedirectory_v1_generated_RegistrationService_ListLocations_sync",
703 "title": "servicedirectory ListLocations Sample",
704 "description": "ListLocations lists information about the supported locations for this service.",
705 "file": "RegistrationClient/ListLocations/main.go",
706 "language": "GO",
707 "clientMethod": {
708 "shortName": "ListLocations",
709 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListLocations",
710 "parameters": [
711 {
712 "type": "context.Context",
713 "name": "ctx"
714 },
715 {
716 "type": "locationpb.ListLocationsRequest",
717 "name": "req"
718 },
719 {
720 "type": "...gax.CallOption",
721 "name": "opts"
722 }
723 ],
724 "resultType": "LocationIterator",
725 "client": {
726 "shortName": "RegistrationClient",
727 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
728 },
729 "method": {
730 "shortName": "ListLocations",
731 "fullName": "google.cloud.location.Locations.ListLocations",
732 "service": {
733 "shortName": "Locations",
734 "fullName": "google.cloud.location.Locations"
735 }
736 }
737 },
738 "origin": "API_DEFINITION",
739 "segments": [
740 {
741 "start": 18,
742 "end": 66,
743 "type": "FULL"
744 }
745 ]
746 },
747 {
748 "regionTag": "servicedirectory_v1_generated_RegistrationService_ListNamespaces_sync",
749 "title": "servicedirectory ListNamespaces Sample",
750 "description": "ListNamespaces lists all namespaces.",
751 "file": "RegistrationClient/ListNamespaces/main.go",
752 "language": "GO",
753 "clientMethod": {
754 "shortName": "ListNamespaces",
755 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListNamespaces",
756 "parameters": [
757 {
758 "type": "context.Context",
759 "name": "ctx"
760 },
761 {
762 "type": "servicedirectorypb.ListNamespacesRequest",
763 "name": "req"
764 },
765 {
766 "type": "...gax.CallOption",
767 "name": "opts"
768 }
769 ],
770 "resultType": "NamespaceIterator",
771 "client": {
772 "shortName": "RegistrationClient",
773 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
774 },
775 "method": {
776 "shortName": "ListNamespaces",
777 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces",
778 "service": {
779 "shortName": "RegistrationService",
780 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
781 }
782 }
783 },
784 "origin": "API_DEFINITION",
785 "segments": [
786 {
787 "start": 18,
788 "end": 66,
789 "type": "FULL"
790 }
791 ]
792 },
793 {
794 "regionTag": "servicedirectory_v1_generated_RegistrationService_ListServices_sync",
795 "title": "servicedirectory ListServices Sample",
796 "description": "ListServices lists all services belonging to a namespace.",
797 "file": "RegistrationClient/ListServices/main.go",
798 "language": "GO",
799 "clientMethod": {
800 "shortName": "ListServices",
801 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.ListServices",
802 "parameters": [
803 {
804 "type": "context.Context",
805 "name": "ctx"
806 },
807 {
808 "type": "servicedirectorypb.ListServicesRequest",
809 "name": "req"
810 },
811 {
812 "type": "...gax.CallOption",
813 "name": "opts"
814 }
815 ],
816 "resultType": "ServiceIterator",
817 "client": {
818 "shortName": "RegistrationClient",
819 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
820 },
821 "method": {
822 "shortName": "ListServices",
823 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListServices",
824 "service": {
825 "shortName": "RegistrationService",
826 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
827 }
828 }
829 },
830 "origin": "API_DEFINITION",
831 "segments": [
832 {
833 "start": 18,
834 "end": 66,
835 "type": "FULL"
836 }
837 ]
838 },
839 {
840 "regionTag": "servicedirectory_v1_generated_RegistrationService_SetIamPolicy_sync",
841 "title": "servicedirectory SetIamPolicy Sample",
842 "description": "SetIamPolicy sets the IAM Policy for a resource (namespace or service only).",
843 "file": "RegistrationClient/SetIamPolicy/main.go",
844 "language": "GO",
845 "clientMethod": {
846 "shortName": "SetIamPolicy",
847 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.SetIamPolicy",
848 "parameters": [
849 {
850 "type": "context.Context",
851 "name": "ctx"
852 },
853 {
854 "type": "iampb.SetIamPolicyRequest",
855 "name": "req"
856 },
857 {
858 "type": "...gax.CallOption",
859 "name": "opts"
860 }
861 ],
862 "resultType": "*iampb.Policy",
863 "client": {
864 "shortName": "RegistrationClient",
865 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
866 },
867 "method": {
868 "shortName": "SetIamPolicy",
869 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.SetIamPolicy",
870 "service": {
871 "shortName": "RegistrationService",
872 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
873 }
874 }
875 },
876 "origin": "API_DEFINITION",
877 "segments": [
878 {
879 "start": 18,
880 "end": 53,
881 "type": "FULL"
882 }
883 ]
884 },
885 {
886 "regionTag": "servicedirectory_v1_generated_RegistrationService_TestIamPermissions_sync",
887 "title": "servicedirectory TestIamPermissions Sample",
888 "description": "TestIamPermissions tests IAM permissions for a resource (namespace or service only).",
889 "file": "RegistrationClient/TestIamPermissions/main.go",
890 "language": "GO",
891 "clientMethod": {
892 "shortName": "TestIamPermissions",
893 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.TestIamPermissions",
894 "parameters": [
895 {
896 "type": "context.Context",
897 "name": "ctx"
898 },
899 {
900 "type": "iampb.TestIamPermissionsRequest",
901 "name": "req"
902 },
903 {
904 "type": "...gax.CallOption",
905 "name": "opts"
906 }
907 ],
908 "resultType": "*iampb.TestIamPermissionsResponse",
909 "client": {
910 "shortName": "RegistrationClient",
911 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
912 },
913 "method": {
914 "shortName": "TestIamPermissions",
915 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.TestIamPermissions",
916 "service": {
917 "shortName": "RegistrationService",
918 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
919 }
920 }
921 },
922 "origin": "API_DEFINITION",
923 "segments": [
924 {
925 "start": 18,
926 "end": 53,
927 "type": "FULL"
928 }
929 ]
930 },
931 {
932 "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateEndpoint_sync",
933 "title": "servicedirectory UpdateEndpoint Sample",
934 "description": "UpdateEndpoint updates an endpoint.",
935 "file": "RegistrationClient/UpdateEndpoint/main.go",
936 "language": "GO",
937 "clientMethod": {
938 "shortName": "UpdateEndpoint",
939 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.UpdateEndpoint",
940 "parameters": [
941 {
942 "type": "context.Context",
943 "name": "ctx"
944 },
945 {
946 "type": "servicedirectorypb.UpdateEndpointRequest",
947 "name": "req"
948 },
949 {
950 "type": "...gax.CallOption",
951 "name": "opts"
952 }
953 ],
954 "resultType": "*servicedirectorypb.Endpoint",
955 "client": {
956 "shortName": "RegistrationClient",
957 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
958 },
959 "method": {
960 "shortName": "UpdateEndpoint",
961 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint",
962 "service": {
963 "shortName": "RegistrationService",
964 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
965 }
966 }
967 },
968 "origin": "API_DEFINITION",
969 "segments": [
970 {
971 "start": 18,
972 "end": 53,
973 "type": "FULL"
974 }
975 ]
976 },
977 {
978 "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateNamespace_sync",
979 "title": "servicedirectory UpdateNamespace Sample",
980 "description": "UpdateNamespace updates a namespace.",
981 "file": "RegistrationClient/UpdateNamespace/main.go",
982 "language": "GO",
983 "clientMethod": {
984 "shortName": "UpdateNamespace",
985 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.UpdateNamespace",
986 "parameters": [
987 {
988 "type": "context.Context",
989 "name": "ctx"
990 },
991 {
992 "type": "servicedirectorypb.UpdateNamespaceRequest",
993 "name": "req"
994 },
995 {
996 "type": "...gax.CallOption",
997 "name": "opts"
998 }
999 ],
1000 "resultType": "*servicedirectorypb.Namespace",
1001 "client": {
1002 "shortName": "RegistrationClient",
1003 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
1004 },
1005 "method": {
1006 "shortName": "UpdateNamespace",
1007 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace",
1008 "service": {
1009 "shortName": "RegistrationService",
1010 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
1011 }
1012 }
1013 },
1014 "origin": "API_DEFINITION",
1015 "segments": [
1016 {
1017 "start": 18,
1018 "end": 53,
1019 "type": "FULL"
1020 }
1021 ]
1022 },
1023 {
1024 "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateService_sync",
1025 "title": "servicedirectory UpdateService Sample",
1026 "description": "UpdateService updates a service.",
1027 "file": "RegistrationClient/UpdateService/main.go",
1028 "language": "GO",
1029 "clientMethod": {
1030 "shortName": "UpdateService",
1031 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient.UpdateService",
1032 "parameters": [
1033 {
1034 "type": "context.Context",
1035 "name": "ctx"
1036 },
1037 {
1038 "type": "servicedirectorypb.UpdateServiceRequest",
1039 "name": "req"
1040 },
1041 {
1042 "type": "...gax.CallOption",
1043 "name": "opts"
1044 }
1045 ],
1046 "resultType": "*servicedirectorypb.Service",
1047 "client": {
1048 "shortName": "RegistrationClient",
1049 "fullName": "google.cloud.servicedirectory.v1.RegistrationClient"
1050 },
1051 "method": {
1052 "shortName": "UpdateService",
1053 "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateService",
1054 "service": {
1055 "shortName": "RegistrationService",
1056 "fullName": "google.cloud.servicedirectory.v1.RegistrationService"
1057 }
1058 }
1059 },
1060 "origin": "API_DEFINITION",
1061 "segments": [
1062 {
1063 "start": 18,
1064 "end": 53,
1065 "type": "FULL"
1066 }
1067 ]
1068 }
1069 ]
1070 }