Debian Codegraph @

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

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/apphub/apiv1",
4 "version": "0.3.1",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.cloud.apphub.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "apphub_v1_generated_AppHub_CancelOperation_sync",
16 "title": "apphub CancelOperation Sample",
17 "description": "CancelOperation is a utility method from google.longrunning.Operations.",
18 "file": "Client/CancelOperation/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "CancelOperation",
22 "fullName": "google.cloud.apphub.v1.Client.CancelOperation",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "longrunningpb.CancelOperationRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "client": {
38 "shortName": "Client",
39 "fullName": "google.cloud.apphub.v1.Client"
40 },
41 "method": {
42 "shortName": "CancelOperation",
43 "fullName": "google.longrunning.Operations.CancelOperation",
44 "service": {
45 "shortName": "Operations",
46 "fullName": "google.longrunning.Operations"
47 }
48 }
49 },
50 "origin": "API_DEFINITION",
51 "segments": [
52 {
53 "start": 18,
54 "end": 51,
55 "type": "FULL"
56 }
57 ]
58 },
59 {
60 "regionTag": "apphub_v1_generated_AppHub_CreateApplication_sync",
61 "title": "apphub CreateApplication Sample",
62 "description": "CreateApplication creates an Application in a host project and location.",
63 "file": "Client/CreateApplication/main.go",
64 "language": "GO",
65 "clientMethod": {
66 "shortName": "CreateApplication",
67 "fullName": "google.cloud.apphub.v1.Client.CreateApplication",
68 "parameters": [
69 {
70 "type": "context.Context",
71 "name": "ctx"
72 },
73 {
74 "type": "apphubpb.CreateApplicationRequest",
75 "name": "req"
76 },
77 {
78 "type": "...gax.CallOption",
79 "name": "opts"
80 }
81 ],
82 "resultType": "CreateApplicationOperation",
83 "client": {
84 "shortName": "Client",
85 "fullName": "google.cloud.apphub.v1.Client"
86 },
87 "method": {
88 "shortName": "CreateApplication",
89 "fullName": "google.cloud.apphub.v1.AppHub.CreateApplication",
90 "service": {
91 "shortName": "AppHub",
92 "fullName": "google.cloud.apphub.v1.AppHub"
93 }
94 }
95 },
96 "origin": "API_DEFINITION",
97 "segments": [
98 {
99 "start": 18,
100 "end": 58,
101 "type": "FULL"
102 }
103 ]
104 },
105 {
106 "regionTag": "apphub_v1_generated_AppHub_CreateService_sync",
107 "title": "apphub CreateService Sample",
108 "description": "CreateService creates a Service in an Application.",
109 "file": "Client/CreateService/main.go",
110 "language": "GO",
111 "clientMethod": {
112 "shortName": "CreateService",
113 "fullName": "google.cloud.apphub.v1.Client.CreateService",
114 "parameters": [
115 {
116 "type": "context.Context",
117 "name": "ctx"
118 },
119 {
120 "type": "apphubpb.CreateServiceRequest",
121 "name": "req"
122 },
123 {
124 "type": "...gax.CallOption",
125 "name": "opts"
126 }
127 ],
128 "resultType": "CreateServiceOperation",
129 "client": {
130 "shortName": "Client",
131 "fullName": "google.cloud.apphub.v1.Client"
132 },
133 "method": {
134 "shortName": "CreateService",
135 "fullName": "google.cloud.apphub.v1.AppHub.CreateService",
136 "service": {
137 "shortName": "AppHub",
138 "fullName": "google.cloud.apphub.v1.AppHub"
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": "apphub_v1_generated_AppHub_CreateServiceProjectAttachment_sync",
153 "title": "apphub CreateServiceProjectAttachment Sample",
154 "description": "CreateServiceProjectAttachment attaches a service project to the host project.",
155 "file": "Client/CreateServiceProjectAttachment/main.go",
156 "language": "GO",
157 "clientMethod": {
158 "shortName": "CreateServiceProjectAttachment",
159 "fullName": "google.cloud.apphub.v1.Client.CreateServiceProjectAttachment",
160 "parameters": [
161 {
162 "type": "context.Context",
163 "name": "ctx"
164 },
165 {
166 "type": "apphubpb.CreateServiceProjectAttachmentRequest",
167 "name": "req"
168 },
169 {
170 "type": "...gax.CallOption",
171 "name": "opts"
172 }
173 ],
174 "resultType": "CreateServiceProjectAttachmentOperation",
175 "client": {
176 "shortName": "Client",
177 "fullName": "google.cloud.apphub.v1.Client"
178 },
179 "method": {
180 "shortName": "CreateServiceProjectAttachment",
181 "fullName": "google.cloud.apphub.v1.AppHub.CreateServiceProjectAttachment",
182 "service": {
183 "shortName": "AppHub",
184 "fullName": "google.cloud.apphub.v1.AppHub"
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": "apphub_v1_generated_AppHub_CreateWorkload_sync",
199 "title": "apphub CreateWorkload Sample",
200 "description": "CreateWorkload creates a Workload in an Application.",
201 "file": "Client/CreateWorkload/main.go",
202 "language": "GO",
203 "clientMethod": {
204 "shortName": "CreateWorkload",
205 "fullName": "google.cloud.apphub.v1.Client.CreateWorkload",
206 "parameters": [
207 {
208 "type": "context.Context",
209 "name": "ctx"
210 },
211 {
212 "type": "apphubpb.CreateWorkloadRequest",
213 "name": "req"
214 },
215 {
216 "type": "...gax.CallOption",
217 "name": "opts"
218 }
219 ],
220 "resultType": "CreateWorkloadOperation",
221 "client": {
222 "shortName": "Client",
223 "fullName": "google.cloud.apphub.v1.Client"
224 },
225 "method": {
226 "shortName": "CreateWorkload",
227 "fullName": "google.cloud.apphub.v1.AppHub.CreateWorkload",
228 "service": {
229 "shortName": "AppHub",
230 "fullName": "google.cloud.apphub.v1.AppHub"
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": "apphub_v1_generated_AppHub_DeleteApplication_sync",
245 "title": "apphub DeleteApplication Sample",
246 "description": "DeleteApplication deletes an Application in a host project and location.",
247 "file": "Client/DeleteApplication/main.go",
248 "language": "GO",
249 "clientMethod": {
250 "shortName": "DeleteApplication",
251 "fullName": "google.cloud.apphub.v1.Client.DeleteApplication",
252 "parameters": [
253 {
254 "type": "context.Context",
255 "name": "ctx"
256 },
257 {
258 "type": "apphubpb.DeleteApplicationRequest",
259 "name": "req"
260 },
261 {
262 "type": "...gax.CallOption",
263 "name": "opts"
264 }
265 ],
266 "resultType": "DeleteApplicationOperation",
267 "client": {
268 "shortName": "Client",
269 "fullName": "google.cloud.apphub.v1.Client"
270 },
271 "method": {
272 "shortName": "DeleteApplication",
273 "fullName": "google.cloud.apphub.v1.AppHub.DeleteApplication",
274 "service": {
275 "shortName": "AppHub",
276 "fullName": "google.cloud.apphub.v1.AppHub"
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": "apphub_v1_generated_AppHub_DeleteOperation_sync",
291 "title": "apphub DeleteOperation Sample",
292 "description": "DeleteOperation is a utility method from google.longrunning.Operations.",
293 "file": "Client/DeleteOperation/main.go",
294 "language": "GO",
295 "clientMethod": {
296 "shortName": "DeleteOperation",
297 "fullName": "google.cloud.apphub.v1.Client.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": "Client",
314 "fullName": "google.cloud.apphub.v1.Client"
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": "apphub_v1_generated_AppHub_DeleteService_sync",
336 "title": "apphub DeleteService Sample",
337 "description": "DeleteService deletes a Service from an Application.",
338 "file": "Client/DeleteService/main.go",
339 "language": "GO",
340 "clientMethod": {
341 "shortName": "DeleteService",
342 "fullName": "google.cloud.apphub.v1.Client.DeleteService",
343 "parameters": [
344 {
345 "type": "context.Context",
346 "name": "ctx"
347 },
348 {
349 "type": "apphubpb.DeleteServiceRequest",
350 "name": "req"
351 },
352 {
353 "type": "...gax.CallOption",
354 "name": "opts"
355 }
356 ],
357 "resultType": "DeleteServiceOperation",
358 "client": {
359 "shortName": "Client",
360 "fullName": "google.cloud.apphub.v1.Client"
361 },
362 "method": {
363 "shortName": "DeleteService",
364 "fullName": "google.cloud.apphub.v1.AppHub.DeleteService",
365 "service": {
366 "shortName": "AppHub",
367 "fullName": "google.cloud.apphub.v1.AppHub"
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": "apphub_v1_generated_AppHub_DeleteServiceProjectAttachment_sync",
382 "title": "apphub DeleteServiceProjectAttachment Sample",
383 "description": "DeleteServiceProjectAttachment deletes a service project attachment.",
384 "file": "Client/DeleteServiceProjectAttachment/main.go",
385 "language": "GO",
386 "clientMethod": {
387 "shortName": "DeleteServiceProjectAttachment",
388 "fullName": "google.cloud.apphub.v1.Client.DeleteServiceProjectAttachment",
389 "parameters": [
390 {
391 "type": "context.Context",
392 "name": "ctx"
393 },
394 {
395 "type": "apphubpb.DeleteServiceProjectAttachmentRequest",
396 "name": "req"
397 },
398 {
399 "type": "...gax.CallOption",
400 "name": "opts"
401 }
402 ],
403 "resultType": "DeleteServiceProjectAttachmentOperation",
404 "client": {
405 "shortName": "Client",
406 "fullName": "google.cloud.apphub.v1.Client"
407 },
408 "method": {
409 "shortName": "DeleteServiceProjectAttachment",
410 "fullName": "google.cloud.apphub.v1.AppHub.DeleteServiceProjectAttachment",
411 "service": {
412 "shortName": "AppHub",
413 "fullName": "google.cloud.apphub.v1.AppHub"
414 }
415 }
416 },
417 "origin": "API_DEFINITION",
418 "segments": [
419 {
420 "start": 18,
421 "end": 56,
422 "type": "FULL"
423 }
424 ]
425 },
426 {
427 "regionTag": "apphub_v1_generated_AppHub_DeleteWorkload_sync",
428 "title": "apphub DeleteWorkload Sample",
429 "description": "DeleteWorkload deletes a Workload from an Application.",
430 "file": "Client/DeleteWorkload/main.go",
431 "language": "GO",
432 "clientMethod": {
433 "shortName": "DeleteWorkload",
434 "fullName": "google.cloud.apphub.v1.Client.DeleteWorkload",
435 "parameters": [
436 {
437 "type": "context.Context",
438 "name": "ctx"
439 },
440 {
441 "type": "apphubpb.DeleteWorkloadRequest",
442 "name": "req"
443 },
444 {
445 "type": "...gax.CallOption",
446 "name": "opts"
447 }
448 ],
449 "resultType": "DeleteWorkloadOperation",
450 "client": {
451 "shortName": "Client",
452 "fullName": "google.cloud.apphub.v1.Client"
453 },
454 "method": {
455 "shortName": "DeleteWorkload",
456 "fullName": "google.cloud.apphub.v1.AppHub.DeleteWorkload",
457 "service": {
458 "shortName": "AppHub",
459 "fullName": "google.cloud.apphub.v1.AppHub"
460 }
461 }
462 },
463 "origin": "API_DEFINITION",
464 "segments": [
465 {
466 "start": 18,
467 "end": 56,
468 "type": "FULL"
469 }
470 ]
471 },
472 {
473 "regionTag": "apphub_v1_generated_AppHub_DetachServiceProjectAttachment_sync",
474 "title": "apphub DetachServiceProjectAttachment Sample",
475 "description": "DetachServiceProjectAttachment detaches a service project from a host project.\nYou can call this API from any service project without needing access to\nthe host project that it is attached to.",
476 "file": "Client/DetachServiceProjectAttachment/main.go",
477 "language": "GO",
478 "clientMethod": {
479 "shortName": "DetachServiceProjectAttachment",
480 "fullName": "google.cloud.apphub.v1.Client.DetachServiceProjectAttachment",
481 "parameters": [
482 {
483 "type": "context.Context",
484 "name": "ctx"
485 },
486 {
487 "type": "apphubpb.DetachServiceProjectAttachmentRequest",
488 "name": "req"
489 },
490 {
491 "type": "...gax.CallOption",
492 "name": "opts"
493 }
494 ],
495 "resultType": "*apphubpb.DetachServiceProjectAttachmentResponse",
496 "client": {
497 "shortName": "Client",
498 "fullName": "google.cloud.apphub.v1.Client"
499 },
500 "method": {
501 "shortName": "DetachServiceProjectAttachment",
502 "fullName": "google.cloud.apphub.v1.AppHub.DetachServiceProjectAttachment",
503 "service": {
504 "shortName": "AppHub",
505 "fullName": "google.cloud.apphub.v1.AppHub"
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": "apphub_v1_generated_AppHub_GetApplication_sync",
520 "title": "apphub GetApplication Sample",
521 "description": "GetApplication gets an Application in a host project and location.",
522 "file": "Client/GetApplication/main.go",
523 "language": "GO",
524 "clientMethod": {
525 "shortName": "GetApplication",
526 "fullName": "google.cloud.apphub.v1.Client.GetApplication",
527 "parameters": [
528 {
529 "type": "context.Context",
530 "name": "ctx"
531 },
532 {
533 "type": "apphubpb.GetApplicationRequest",
534 "name": "req"
535 },
536 {
537 "type": "...gax.CallOption",
538 "name": "opts"
539 }
540 ],
541 "resultType": "*apphubpb.Application",
542 "client": {
543 "shortName": "Client",
544 "fullName": "google.cloud.apphub.v1.Client"
545 },
546 "method": {
547 "shortName": "GetApplication",
548 "fullName": "google.cloud.apphub.v1.AppHub.GetApplication",
549 "service": {
550 "shortName": "AppHub",
551 "fullName": "google.cloud.apphub.v1.AppHub"
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": "apphub_v1_generated_AppHub_GetDiscoveredService_sync",
566 "title": "apphub GetDiscoveredService Sample",
567 "description": "GetDiscoveredService gets a Discovered Service in a host project and location.",
568 "file": "Client/GetDiscoveredService/main.go",
569 "language": "GO",
570 "clientMethod": {
571 "shortName": "GetDiscoveredService",
572 "fullName": "google.cloud.apphub.v1.Client.GetDiscoveredService",
573 "parameters": [
574 {
575 "type": "context.Context",
576 "name": "ctx"
577 },
578 {
579 "type": "apphubpb.GetDiscoveredServiceRequest",
580 "name": "req"
581 },
582 {
583 "type": "...gax.CallOption",
584 "name": "opts"
585 }
586 ],
587 "resultType": "*apphubpb.DiscoveredService",
588 "client": {
589 "shortName": "Client",
590 "fullName": "google.cloud.apphub.v1.Client"
591 },
592 "method": {
593 "shortName": "GetDiscoveredService",
594 "fullName": "google.cloud.apphub.v1.AppHub.GetDiscoveredService",
595 "service": {
596 "shortName": "AppHub",
597 "fullName": "google.cloud.apphub.v1.AppHub"
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": "apphub_v1_generated_AppHub_GetDiscoveredWorkload_sync",
612 "title": "apphub GetDiscoveredWorkload Sample",
613 "description": "GetDiscoveredWorkload gets a Discovered Workload in a host project and location.",
614 "file": "Client/GetDiscoveredWorkload/main.go",
615 "language": "GO",
616 "clientMethod": {
617 "shortName": "GetDiscoveredWorkload",
618 "fullName": "google.cloud.apphub.v1.Client.GetDiscoveredWorkload",
619 "parameters": [
620 {
621 "type": "context.Context",
622 "name": "ctx"
623 },
624 {
625 "type": "apphubpb.GetDiscoveredWorkloadRequest",
626 "name": "req"
627 },
628 {
629 "type": "...gax.CallOption",
630 "name": "opts"
631 }
632 ],
633 "resultType": "*apphubpb.DiscoveredWorkload",
634 "client": {
635 "shortName": "Client",
636 "fullName": "google.cloud.apphub.v1.Client"
637 },
638 "method": {
639 "shortName": "GetDiscoveredWorkload",
640 "fullName": "google.cloud.apphub.v1.AppHub.GetDiscoveredWorkload",
641 "service": {
642 "shortName": "AppHub",
643 "fullName": "google.cloud.apphub.v1.AppHub"
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": "apphub_v1_generated_AppHub_GetIamPolicy_sync",
658 "title": "apphub GetIamPolicy Sample",
659 "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.",
660 "file": "Client/GetIamPolicy/main.go",
661 "language": "GO",
662 "clientMethod": {
663 "shortName": "GetIamPolicy",
664 "fullName": "google.cloud.apphub.v1.Client.GetIamPolicy",
665 "parameters": [
666 {
667 "type": "context.Context",
668 "name": "ctx"
669 },
670 {
671 "type": "iampb.GetIamPolicyRequest",
672 "name": "req"
673 },
674 {
675 "type": "...gax.CallOption",
676 "name": "opts"
677 }
678 ],
679 "resultType": "*iampb.Policy",
680 "client": {
681 "shortName": "Client",
682 "fullName": "google.cloud.apphub.v1.Client"
683 },
684 "method": {
685 "shortName": "GetIamPolicy",
686 "fullName": "google.iam.v1.IAMPolicy.GetIamPolicy",
687 "service": {
688 "shortName": "IAMPolicy",
689 "fullName": "google.iam.v1.IAMPolicy"
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": "apphub_v1_generated_AppHub_GetLocation_sync",
704 "title": "apphub GetLocation Sample",
705 "description": "GetLocation gets information about a location.",
706 "file": "Client/GetLocation/main.go",
707 "language": "GO",
708 "clientMethod": {
709 "shortName": "GetLocation",
710 "fullName": "google.cloud.apphub.v1.Client.GetLocation",
711 "parameters": [
712 {
713 "type": "context.Context",
714 "name": "ctx"
715 },
716 {
717 "type": "locationpb.GetLocationRequest",
718 "name": "req"
719 },
720 {
721 "type": "...gax.CallOption",
722 "name": "opts"
723 }
724 ],
725 "resultType": "*locationpb.Location",
726 "client": {
727 "shortName": "Client",
728 "fullName": "google.cloud.apphub.v1.Client"
729 },
730 "method": {
731 "shortName": "GetLocation",
732 "fullName": "google.cloud.location.Locations.GetLocation",
733 "service": {
734 "shortName": "Locations",
735 "fullName": "google.cloud.location.Locations"
736 }
737 }
738 },
739 "origin": "API_DEFINITION",
740 "segments": [
741 {
742 "start": 18,
743 "end": 53,
744 "type": "FULL"
745 }
746 ]
747 },
748 {
749 "regionTag": "apphub_v1_generated_AppHub_GetOperation_sync",
750 "title": "apphub GetOperation Sample",
751 "description": "GetOperation is a utility method from google.longrunning.Operations.",
752 "file": "Client/GetOperation/main.go",
753 "language": "GO",
754 "clientMethod": {
755 "shortName": "GetOperation",
756 "fullName": "google.cloud.apphub.v1.Client.GetOperation",
757 "parameters": [
758 {
759 "type": "context.Context",
760 "name": "ctx"
761 },
762 {
763 "type": "longrunningpb.GetOperationRequest",
764 "name": "req"
765 },
766 {
767 "type": "...gax.CallOption",
768 "name": "opts"
769 }
770 ],
771 "resultType": "*longrunningpb.Operation",
772 "client": {
773 "shortName": "Client",
774 "fullName": "google.cloud.apphub.v1.Client"
775 },
776 "method": {
777 "shortName": "GetOperation",
778 "fullName": "google.longrunning.Operations.GetOperation",
779 "service": {
780 "shortName": "Operations",
781 "fullName": "google.longrunning.Operations"
782 }
783 }
784 },
785 "origin": "API_DEFINITION",
786 "segments": [
787 {
788 "start": 18,
789 "end": 53,
790 "type": "FULL"
791 }
792 ]
793 },
794 {
795 "regionTag": "apphub_v1_generated_AppHub_GetService_sync",
796 "title": "apphub GetService Sample",
797 "description": "GetService gets a Service in an Application.",
798 "file": "Client/GetService/main.go",
799 "language": "GO",
800 "clientMethod": {
801 "shortName": "GetService",
802 "fullName": "google.cloud.apphub.v1.Client.GetService",
803 "parameters": [
804 {
805 "type": "context.Context",
806 "name": "ctx"
807 },
808 {
809 "type": "apphubpb.GetServiceRequest",
810 "name": "req"
811 },
812 {
813 "type": "...gax.CallOption",
814 "name": "opts"
815 }
816 ],
817 "resultType": "*apphubpb.Service",
818 "client": {
819 "shortName": "Client",
820 "fullName": "google.cloud.apphub.v1.Client"
821 },
822 "method": {
823 "shortName": "GetService",
824 "fullName": "google.cloud.apphub.v1.AppHub.GetService",
825 "service": {
826 "shortName": "AppHub",
827 "fullName": "google.cloud.apphub.v1.AppHub"
828 }
829 }
830 },
831 "origin": "API_DEFINITION",
832 "segments": [
833 {
834 "start": 18,
835 "end": 53,
836 "type": "FULL"
837 }
838 ]
839 },
840 {
841 "regionTag": "apphub_v1_generated_AppHub_GetServiceProjectAttachment_sync",
842 "title": "apphub GetServiceProjectAttachment Sample",
843 "description": "GetServiceProjectAttachment gets a service project attachment.",
844 "file": "Client/GetServiceProjectAttachment/main.go",
845 "language": "GO",
846 "clientMethod": {
847 "shortName": "GetServiceProjectAttachment",
848 "fullName": "google.cloud.apphub.v1.Client.GetServiceProjectAttachment",
849 "parameters": [
850 {
851 "type": "context.Context",
852 "name": "ctx"
853 },
854 {
855 "type": "apphubpb.GetServiceProjectAttachmentRequest",
856 "name": "req"
857 },
858 {
859 "type": "...gax.CallOption",
860 "name": "opts"
861 }
862 ],
863 "resultType": "*apphubpb.ServiceProjectAttachment",
864 "client": {
865 "shortName": "Client",
866 "fullName": "google.cloud.apphub.v1.Client"
867 },
868 "method": {
869 "shortName": "GetServiceProjectAttachment",
870 "fullName": "google.cloud.apphub.v1.AppHub.GetServiceProjectAttachment",
871 "service": {
872 "shortName": "AppHub",
873 "fullName": "google.cloud.apphub.v1.AppHub"
874 }
875 }
876 },
877 "origin": "API_DEFINITION",
878 "segments": [
879 {
880 "start": 18,
881 "end": 53,
882 "type": "FULL"
883 }
884 ]
885 },
886 {
887 "regionTag": "apphub_v1_generated_AppHub_GetWorkload_sync",
888 "title": "apphub GetWorkload Sample",
889 "description": "GetWorkload gets a Workload in an Application.",
890 "file": "Client/GetWorkload/main.go",
891 "language": "GO",
892 "clientMethod": {
893 "shortName": "GetWorkload",
894 "fullName": "google.cloud.apphub.v1.Client.GetWorkload",
895 "parameters": [
896 {
897 "type": "context.Context",
898 "name": "ctx"
899 },
900 {
901 "type": "apphubpb.GetWorkloadRequest",
902 "name": "req"
903 },
904 {
905 "type": "...gax.CallOption",
906 "name": "opts"
907 }
908 ],
909 "resultType": "*apphubpb.Workload",
910 "client": {
911 "shortName": "Client",
912 "fullName": "google.cloud.apphub.v1.Client"
913 },
914 "method": {
915 "shortName": "GetWorkload",
916 "fullName": "google.cloud.apphub.v1.AppHub.GetWorkload",
917 "service": {
918 "shortName": "AppHub",
919 "fullName": "google.cloud.apphub.v1.AppHub"
920 }
921 }
922 },
923 "origin": "API_DEFINITION",
924 "segments": [
925 {
926 "start": 18,
927 "end": 53,
928 "type": "FULL"
929 }
930 ]
931 },
932 {
933 "regionTag": "apphub_v1_generated_AppHub_ListApplications_sync",
934 "title": "apphub ListApplications Sample",
935 "description": "ListApplications lists Applications in a host project and location.",
936 "file": "Client/ListApplications/main.go",
937 "language": "GO",
938 "clientMethod": {
939 "shortName": "ListApplications",
940 "fullName": "google.cloud.apphub.v1.Client.ListApplications",
941 "parameters": [
942 {
943 "type": "context.Context",
944 "name": "ctx"
945 },
946 {
947 "type": "apphubpb.ListApplicationsRequest",
948 "name": "req"
949 },
950 {
951 "type": "...gax.CallOption",
952 "name": "opts"
953 }
954 ],
955 "resultType": "ApplicationIterator",
956 "client": {
957 "shortName": "Client",
958 "fullName": "google.cloud.apphub.v1.Client"
959 },
960 "method": {
961 "shortName": "ListApplications",
962 "fullName": "google.cloud.apphub.v1.AppHub.ListApplications",
963 "service": {
964 "shortName": "AppHub",
965 "fullName": "google.cloud.apphub.v1.AppHub"
966 }
967 }
968 },
969 "origin": "API_DEFINITION",
970 "segments": [
971 {
972 "start": 18,
973 "end": 66,
974 "type": "FULL"
975 }
976 ]
977 },
978 {
979 "regionTag": "apphub_v1_generated_AppHub_ListDiscoveredServices_sync",
980 "title": "apphub ListDiscoveredServices Sample",
981 "description": "ListDiscoveredServices lists Discovered Services that can be added to an Application in a host\nproject and location.",
982 "file": "Client/ListDiscoveredServices/main.go",
983 "language": "GO",
984 "clientMethod": {
985 "shortName": "ListDiscoveredServices",
986 "fullName": "google.cloud.apphub.v1.Client.ListDiscoveredServices",
987 "parameters": [
988 {
989 "type": "context.Context",
990 "name": "ctx"
991 },
992 {
993 "type": "apphubpb.ListDiscoveredServicesRequest",
994 "name": "req"
995 },
996 {
997 "type": "...gax.CallOption",
998 "name": "opts"
999 }
1000 ],
1001 "resultType": "DiscoveredServiceIterator",
1002 "client": {
1003 "shortName": "Client",
1004 "fullName": "google.cloud.apphub.v1.Client"
1005 },
1006 "method": {
1007 "shortName": "ListDiscoveredServices",
1008 "fullName": "google.cloud.apphub.v1.AppHub.ListDiscoveredServices",
1009 "service": {
1010 "shortName": "AppHub",
1011 "fullName": "google.cloud.apphub.v1.AppHub"
1012 }
1013 }
1014 },
1015 "origin": "API_DEFINITION",
1016 "segments": [
1017 {
1018 "start": 18,
1019 "end": 66,
1020 "type": "FULL"
1021 }
1022 ]
1023 },
1024 {
1025 "regionTag": "apphub_v1_generated_AppHub_ListDiscoveredWorkloads_sync",
1026 "title": "apphub ListDiscoveredWorkloads Sample",
1027 "description": "ListDiscoveredWorkloads lists Discovered Workloads that can be added to an Application in a host\nproject and location.",
1028 "file": "Client/ListDiscoveredWorkloads/main.go",
1029 "language": "GO",
1030 "clientMethod": {
1031 "shortName": "ListDiscoveredWorkloads",
1032 "fullName": "google.cloud.apphub.v1.Client.ListDiscoveredWorkloads",
1033 "parameters": [
1034 {
1035 "type": "context.Context",
1036 "name": "ctx"
1037 },
1038 {
1039 "type": "apphubpb.ListDiscoveredWorkloadsRequest",
1040 "name": "req"
1041 },
1042 {
1043 "type": "...gax.CallOption",
1044 "name": "opts"
1045 }
1046 ],
1047 "resultType": "DiscoveredWorkloadIterator",
1048 "client": {
1049 "shortName": "Client",
1050 "fullName": "google.cloud.apphub.v1.Client"
1051 },
1052 "method": {
1053 "shortName": "ListDiscoveredWorkloads",
1054 "fullName": "google.cloud.apphub.v1.AppHub.ListDiscoveredWorkloads",
1055 "service": {
1056 "shortName": "AppHub",
1057 "fullName": "google.cloud.apphub.v1.AppHub"
1058 }
1059 }
1060 },
1061 "origin": "API_DEFINITION",
1062 "segments": [
1063 {
1064 "start": 18,
1065 "end": 66,
1066 "type": "FULL"
1067 }
1068 ]
1069 },
1070 {
1071 "regionTag": "apphub_v1_generated_AppHub_ListLocations_sync",
1072 "title": "apphub ListLocations Sample",
1073 "description": "ListLocations lists information about the supported locations for this service.",
1074 "file": "Client/ListLocations/main.go",
1075 "language": "GO",
1076 "clientMethod": {
1077 "shortName": "ListLocations",
1078 "fullName": "google.cloud.apphub.v1.Client.ListLocations",
1079 "parameters": [
1080 {
1081 "type": "context.Context",
1082 "name": "ctx"
1083 },
1084 {
1085 "type": "locationpb.ListLocationsRequest",
1086 "name": "req"
1087 },
1088 {
1089 "type": "...gax.CallOption",
1090 "name": "opts"
1091 }
1092 ],
1093 "resultType": "LocationIterator",
1094 "client": {
1095 "shortName": "Client",
1096 "fullName": "google.cloud.apphub.v1.Client"
1097 },
1098 "method": {
1099 "shortName": "ListLocations",
1100 "fullName": "google.cloud.location.Locations.ListLocations",
1101 "service": {
1102 "shortName": "Locations",
1103 "fullName": "google.cloud.location.Locations"
1104 }
1105 }
1106 },
1107 "origin": "API_DEFINITION",
1108 "segments": [
1109 {
1110 "start": 18,
1111 "end": 66,
1112 "type": "FULL"
1113 }
1114 ]
1115 },
1116 {
1117 "regionTag": "apphub_v1_generated_AppHub_ListOperations_sync",
1118 "title": "apphub ListOperations Sample",
1119 "description": "ListOperations is a utility method from google.longrunning.Operations.",
1120 "file": "Client/ListOperations/main.go",
1121 "language": "GO",
1122 "clientMethod": {
1123 "shortName": "ListOperations",
1124 "fullName": "google.cloud.apphub.v1.Client.ListOperations",
1125 "parameters": [
1126 {
1127 "type": "context.Context",
1128 "name": "ctx"
1129 },
1130 {
1131 "type": "longrunningpb.ListOperationsRequest",
1132 "name": "req"
1133 },
1134 {
1135 "type": "...gax.CallOption",
1136 "name": "opts"
1137 }
1138 ],
1139 "resultType": "OperationIterator",
1140 "client": {
1141 "shortName": "Client",
1142 "fullName": "google.cloud.apphub.v1.Client"
1143 },
1144 "method": {
1145 "shortName": "ListOperations",
1146 "fullName": "google.longrunning.Operations.ListOperations",
1147 "service": {
1148 "shortName": "Operations",
1149 "fullName": "google.longrunning.Operations"
1150 }
1151 }
1152 },
1153 "origin": "API_DEFINITION",
1154 "segments": [
1155 {
1156 "start": 18,
1157 "end": 66,
1158 "type": "FULL"
1159 }
1160 ]
1161 },
1162 {
1163 "regionTag": "apphub_v1_generated_AppHub_ListServiceProjectAttachments_sync",
1164 "title": "apphub ListServiceProjectAttachments Sample",
1165 "description": "ListServiceProjectAttachments lists service projects attached to the host project.",
1166 "file": "Client/ListServiceProjectAttachments/main.go",
1167 "language": "GO",
1168 "clientMethod": {
1169 "shortName": "ListServiceProjectAttachments",
1170 "fullName": "google.cloud.apphub.v1.Client.ListServiceProjectAttachments",
1171 "parameters": [
1172 {
1173 "type": "context.Context",
1174 "name": "ctx"
1175 },
1176 {
1177 "type": "apphubpb.ListServiceProjectAttachmentsRequest",
1178 "name": "req"
1179 },
1180 {
1181 "type": "...gax.CallOption",
1182 "name": "opts"
1183 }
1184 ],
1185 "resultType": "ServiceProjectAttachmentIterator",
1186 "client": {
1187 "shortName": "Client",
1188 "fullName": "google.cloud.apphub.v1.Client"
1189 },
1190 "method": {
1191 "shortName": "ListServiceProjectAttachments",
1192 "fullName": "google.cloud.apphub.v1.AppHub.ListServiceProjectAttachments",
1193 "service": {
1194 "shortName": "AppHub",
1195 "fullName": "google.cloud.apphub.v1.AppHub"
1196 }
1197 }
1198 },
1199 "origin": "API_DEFINITION",
1200 "segments": [
1201 {
1202 "start": 18,
1203 "end": 66,
1204 "type": "FULL"
1205 }
1206 ]
1207 },
1208 {
1209 "regionTag": "apphub_v1_generated_AppHub_ListServices_sync",
1210 "title": "apphub ListServices Sample",
1211 "description": "ListServices lists Services in an Application.",
1212 "file": "Client/ListServices/main.go",
1213 "language": "GO",
1214 "clientMethod": {
1215 "shortName": "ListServices",
1216 "fullName": "google.cloud.apphub.v1.Client.ListServices",
1217 "parameters": [
1218 {
1219 "type": "context.Context",
1220 "name": "ctx"
1221 },
1222 {
1223 "type": "apphubpb.ListServicesRequest",
1224 "name": "req"
1225 },
1226 {
1227 "type": "...gax.CallOption",
1228 "name": "opts"
1229 }
1230 ],
1231 "resultType": "ServiceIterator",
1232 "client": {
1233 "shortName": "Client",
1234 "fullName": "google.cloud.apphub.v1.Client"
1235 },
1236 "method": {
1237 "shortName": "ListServices",
1238 "fullName": "google.cloud.apphub.v1.AppHub.ListServices",
1239 "service": {
1240 "shortName": "AppHub",
1241 "fullName": "google.cloud.apphub.v1.AppHub"
1242 }
1243 }
1244 },
1245 "origin": "API_DEFINITION",
1246 "segments": [
1247 {
1248 "start": 18,
1249 "end": 66,
1250 "type": "FULL"
1251 }
1252 ]
1253 },
1254 {
1255 "regionTag": "apphub_v1_generated_AppHub_ListWorkloads_sync",
1256 "title": "apphub ListWorkloads Sample",
1257 "description": "ListWorkloads lists Workloads in an Application.",
1258 "file": "Client/ListWorkloads/main.go",
1259 "language": "GO",
1260 "clientMethod": {
1261 "shortName": "ListWorkloads",
1262 "fullName": "google.cloud.apphub.v1.Client.ListWorkloads",
1263 "parameters": [
1264 {
1265 "type": "context.Context",
1266 "name": "ctx"
1267 },
1268 {
1269 "type": "apphubpb.ListWorkloadsRequest",
1270 "name": "req"
1271 },
1272 {
1273 "type": "...gax.CallOption",
1274 "name": "opts"
1275 }
1276 ],
1277 "resultType": "WorkloadIterator",
1278 "client": {
1279 "shortName": "Client",
1280 "fullName": "google.cloud.apphub.v1.Client"
1281 },
1282 "method": {
1283 "shortName": "ListWorkloads",
1284 "fullName": "google.cloud.apphub.v1.AppHub.ListWorkloads",
1285 "service": {
1286 "shortName": "AppHub",
1287 "fullName": "google.cloud.apphub.v1.AppHub"
1288 }
1289 }
1290 },
1291 "origin": "API_DEFINITION",
1292 "segments": [
1293 {
1294 "start": 18,
1295 "end": 66,
1296 "type": "FULL"
1297 }
1298 ]
1299 },
1300 {
1301 "regionTag": "apphub_v1_generated_AppHub_LookupDiscoveredService_sync",
1302 "title": "apphub LookupDiscoveredService Sample",
1303 "description": "LookupDiscoveredService lists a Discovered Service in a host project and location, with a\ngiven resource URI.",
1304 "file": "Client/LookupDiscoveredService/main.go",
1305 "language": "GO",
1306 "clientMethod": {
1307 "shortName": "LookupDiscoveredService",
1308 "fullName": "google.cloud.apphub.v1.Client.LookupDiscoveredService",
1309 "parameters": [
1310 {
1311 "type": "context.Context",
1312 "name": "ctx"
1313 },
1314 {
1315 "type": "apphubpb.LookupDiscoveredServiceRequest",
1316 "name": "req"
1317 },
1318 {
1319 "type": "...gax.CallOption",
1320 "name": "opts"
1321 }
1322 ],
1323 "resultType": "*apphubpb.LookupDiscoveredServiceResponse",
1324 "client": {
1325 "shortName": "Client",
1326 "fullName": "google.cloud.apphub.v1.Client"
1327 },
1328 "method": {
1329 "shortName": "LookupDiscoveredService",
1330 "fullName": "google.cloud.apphub.v1.AppHub.LookupDiscoveredService",
1331 "service": {
1332 "shortName": "AppHub",
1333 "fullName": "google.cloud.apphub.v1.AppHub"
1334 }
1335 }
1336 },
1337 "origin": "API_DEFINITION",
1338 "segments": [
1339 {
1340 "start": 18,
1341 "end": 53,
1342 "type": "FULL"
1343 }
1344 ]
1345 },
1346 {
1347 "regionTag": "apphub_v1_generated_AppHub_LookupDiscoveredWorkload_sync",
1348 "title": "apphub LookupDiscoveredWorkload Sample",
1349 "description": "LookupDiscoveredWorkload lists a Discovered Workload in a host project and location, with a\ngiven resource URI.",
1350 "file": "Client/LookupDiscoveredWorkload/main.go",
1351 "language": "GO",
1352 "clientMethod": {
1353 "shortName": "LookupDiscoveredWorkload",
1354 "fullName": "google.cloud.apphub.v1.Client.LookupDiscoveredWorkload",
1355 "parameters": [
1356 {
1357 "type": "context.Context",
1358 "name": "ctx"
1359 },
1360 {
1361 "type": "apphubpb.LookupDiscoveredWorkloadRequest",
1362 "name": "req"
1363 },
1364 {
1365 "type": "...gax.CallOption",
1366 "name": "opts"
1367 }
1368 ],
1369 "resultType": "*apphubpb.LookupDiscoveredWorkloadResponse",
1370 "client": {
1371 "shortName": "Client",
1372 "fullName": "google.cloud.apphub.v1.Client"
1373 },
1374 "method": {
1375 "shortName": "LookupDiscoveredWorkload",
1376 "fullName": "google.cloud.apphub.v1.AppHub.LookupDiscoveredWorkload",
1377 "service": {
1378 "shortName": "AppHub",
1379 "fullName": "google.cloud.apphub.v1.AppHub"
1380 }
1381 }
1382 },
1383 "origin": "API_DEFINITION",
1384 "segments": [
1385 {
1386 "start": 18,
1387 "end": 53,
1388 "type": "FULL"
1389 }
1390 ]
1391 },
1392 {
1393 "regionTag": "apphub_v1_generated_AppHub_LookupServiceProjectAttachment_sync",
1394 "title": "apphub LookupServiceProjectAttachment Sample",
1395 "description": "LookupServiceProjectAttachment lists a service project attachment for a given service project. You can\ncall this API from any project to find if it is attached to a host project.",
1396 "file": "Client/LookupServiceProjectAttachment/main.go",
1397 "language": "GO",
1398 "clientMethod": {
1399 "shortName": "LookupServiceProjectAttachment",
1400 "fullName": "google.cloud.apphub.v1.Client.LookupServiceProjectAttachment",
1401 "parameters": [
1402 {
1403 "type": "context.Context",
1404 "name": "ctx"
1405 },
1406 {
1407 "type": "apphubpb.LookupServiceProjectAttachmentRequest",
1408 "name": "req"
1409 },
1410 {
1411 "type": "...gax.CallOption",
1412 "name": "opts"
1413 }
1414 ],
1415 "resultType": "*apphubpb.LookupServiceProjectAttachmentResponse",
1416 "client": {
1417 "shortName": "Client",
1418 "fullName": "google.cloud.apphub.v1.Client"
1419 },
1420 "method": {
1421 "shortName": "LookupServiceProjectAttachment",
1422 "fullName": "google.cloud.apphub.v1.AppHub.LookupServiceProjectAttachment",
1423 "service": {
1424 "shortName": "AppHub",
1425 "fullName": "google.cloud.apphub.v1.AppHub"
1426 }
1427 }
1428 },
1429 "origin": "API_DEFINITION",
1430 "segments": [
1431 {
1432 "start": 18,
1433 "end": 53,
1434 "type": "FULL"
1435 }
1436 ]
1437 },
1438 {
1439 "regionTag": "apphub_v1_generated_AppHub_SetIamPolicy_sync",
1440 "title": "apphub SetIamPolicy Sample",
1441 "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.",
1442 "file": "Client/SetIamPolicy/main.go",
1443 "language": "GO",
1444 "clientMethod": {
1445 "shortName": "SetIamPolicy",
1446 "fullName": "google.cloud.apphub.v1.Client.SetIamPolicy",
1447 "parameters": [
1448 {
1449 "type": "context.Context",
1450 "name": "ctx"
1451 },
1452 {
1453 "type": "iampb.SetIamPolicyRequest",
1454 "name": "req"
1455 },
1456 {
1457 "type": "...gax.CallOption",
1458 "name": "opts"
1459 }
1460 ],
1461 "resultType": "*iampb.Policy",
1462 "client": {
1463 "shortName": "Client",
1464 "fullName": "google.cloud.apphub.v1.Client"
1465 },
1466 "method": {
1467 "shortName": "SetIamPolicy",
1468 "fullName": "google.iam.v1.IAMPolicy.SetIamPolicy",
1469 "service": {
1470 "shortName": "IAMPolicy",
1471 "fullName": "google.iam.v1.IAMPolicy"
1472 }
1473 }
1474 },
1475 "origin": "API_DEFINITION",
1476 "segments": [
1477 {
1478 "start": 18,
1479 "end": 53,
1480 "type": "FULL"
1481 }
1482 ]
1483 },
1484 {
1485 "regionTag": "apphub_v1_generated_AppHub_TestIamPermissions_sync",
1486 "title": "apphub TestIamPermissions Sample",
1487 "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.",
1488 "file": "Client/TestIamPermissions/main.go",
1489 "language": "GO",
1490 "clientMethod": {
1491 "shortName": "TestIamPermissions",
1492 "fullName": "google.cloud.apphub.v1.Client.TestIamPermissions",
1493 "parameters": [
1494 {
1495 "type": "context.Context",
1496 "name": "ctx"
1497 },
1498 {
1499 "type": "iampb.TestIamPermissionsRequest",
1500 "name": "req"
1501 },
1502 {
1503 "type": "...gax.CallOption",
1504 "name": "opts"
1505 }
1506 ],
1507 "resultType": "*iampb.TestIamPermissionsResponse",
1508 "client": {
1509 "shortName": "Client",
1510 "fullName": "google.cloud.apphub.v1.Client"
1511 },
1512 "method": {
1513 "shortName": "TestIamPermissions",
1514 "fullName": "google.iam.v1.IAMPolicy.TestIamPermissions",
1515 "service": {
1516 "shortName": "IAMPolicy",
1517 "fullName": "google.iam.v1.IAMPolicy"
1518 }
1519 }
1520 },
1521 "origin": "API_DEFINITION",
1522 "segments": [
1523 {
1524 "start": 18,
1525 "end": 53,
1526 "type": "FULL"
1527 }
1528 ]
1529 },
1530 {
1531 "regionTag": "apphub_v1_generated_AppHub_UpdateApplication_sync",
1532 "title": "apphub UpdateApplication Sample",
1533 "description": "UpdateApplication updates an Application in a host project and location.",
1534 "file": "Client/UpdateApplication/main.go",
1535 "language": "GO",
1536 "clientMethod": {
1537 "shortName": "UpdateApplication",
1538 "fullName": "google.cloud.apphub.v1.Client.UpdateApplication",
1539 "parameters": [
1540 {
1541 "type": "context.Context",
1542 "name": "ctx"
1543 },
1544 {
1545 "type": "apphubpb.UpdateApplicationRequest",
1546 "name": "req"
1547 },
1548 {
1549 "type": "...gax.CallOption",
1550 "name": "opts"
1551 }
1552 ],
1553 "resultType": "UpdateApplicationOperation",
1554 "client": {
1555 "shortName": "Client",
1556 "fullName": "google.cloud.apphub.v1.Client"
1557 },
1558 "method": {
1559 "shortName": "UpdateApplication",
1560 "fullName": "google.cloud.apphub.v1.AppHub.UpdateApplication",
1561 "service": {
1562 "shortName": "AppHub",
1563 "fullName": "google.cloud.apphub.v1.AppHub"
1564 }
1565 }
1566 },
1567 "origin": "API_DEFINITION",
1568 "segments": [
1569 {
1570 "start": 18,
1571 "end": 58,
1572 "type": "FULL"
1573 }
1574 ]
1575 },
1576 {
1577 "regionTag": "apphub_v1_generated_AppHub_UpdateService_sync",
1578 "title": "apphub UpdateService Sample",
1579 "description": "UpdateService updates a Service in an Application.",
1580 "file": "Client/UpdateService/main.go",
1581 "language": "GO",
1582 "clientMethod": {
1583 "shortName": "UpdateService",
1584 "fullName": "google.cloud.apphub.v1.Client.UpdateService",
1585 "parameters": [
1586 {
1587 "type": "context.Context",
1588 "name": "ctx"
1589 },
1590 {
1591 "type": "apphubpb.UpdateServiceRequest",
1592 "name": "req"
1593 },
1594 {
1595 "type": "...gax.CallOption",
1596 "name": "opts"
1597 }
1598 ],
1599 "resultType": "UpdateServiceOperation",
1600 "client": {
1601 "shortName": "Client",
1602 "fullName": "google.cloud.apphub.v1.Client"
1603 },
1604 "method": {
1605 "shortName": "UpdateService",
1606 "fullName": "google.cloud.apphub.v1.AppHub.UpdateService",
1607 "service": {
1608 "shortName": "AppHub",
1609 "fullName": "google.cloud.apphub.v1.AppHub"
1610 }
1611 }
1612 },
1613 "origin": "API_DEFINITION",
1614 "segments": [
1615 {
1616 "start": 18,
1617 "end": 58,
1618 "type": "FULL"
1619 }
1620 ]
1621 },
1622 {
1623 "regionTag": "apphub_v1_generated_AppHub_UpdateWorkload_sync",
1624 "title": "apphub UpdateWorkload Sample",
1625 "description": "UpdateWorkload updates a Workload in an Application.",
1626 "file": "Client/UpdateWorkload/main.go",
1627 "language": "GO",
1628 "clientMethod": {
1629 "shortName": "UpdateWorkload",
1630 "fullName": "google.cloud.apphub.v1.Client.UpdateWorkload",
1631 "parameters": [
1632 {
1633 "type": "context.Context",
1634 "name": "ctx"
1635 },
1636 {
1637 "type": "apphubpb.UpdateWorkloadRequest",
1638 "name": "req"
1639 },
1640 {
1641 "type": "...gax.CallOption",
1642 "name": "opts"
1643 }
1644 ],
1645 "resultType": "UpdateWorkloadOperation",
1646 "client": {
1647 "shortName": "Client",
1648 "fullName": "google.cloud.apphub.v1.Client"
1649 },
1650 "method": {
1651 "shortName": "UpdateWorkload",
1652 "fullName": "google.cloud.apphub.v1.AppHub.UpdateWorkload",
1653 "service": {
1654 "shortName": "AppHub",
1655 "fullName": "google.cloud.apphub.v1.AppHub"
1656 }
1657 }
1658 },
1659 "origin": "API_DEFINITION",
1660 "segments": [
1661 {
1662 "start": 18,
1663 "end": 58,
1664 "type": "FULL"
1665 }
1666 ]
1667 }
1668 ]
1669 }