-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
snippet_metadata.google.cloud.channel.v1.json
2630 lines (2630 loc) · 120 KB
/
snippet_metadata.google.cloud.channel.v1.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"clientLibrary": {
"name": "cloud.google.com/go/channel/apiv1",
"version": "1.13.0",
"language": "GO",
"apis": [
{
"id": "google.cloud.channel.v1",
"version": "v1"
}
]
},
"snippets": [
{
"regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_CancelOperation_sync",
"title": "cloudchannel CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "CloudChannelReportsClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "CloudChannelReportsClient",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.longrunning.Operations.CancelOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_DeleteOperation_sync",
"title": "cloudchannel DeleteOperation Sample",
"description": "DeleteOperation is a utility method from google.longrunning.Operations.",
"file": "CloudChannelReportsClient/DeleteOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteOperation",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient.DeleteOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.DeleteOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "CloudChannelReportsClient",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
},
"method": {
"shortName": "DeleteOperation",
"fullName": "google.longrunning.Operations.DeleteOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_FetchReportResults_sync",
"title": "cloudchannel FetchReportResults Sample",
"description": "FetchReportResults retrieves data generated by\n[CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob].",
"file": "CloudChannelReportsClient/FetchReportResults/main.go",
"language": "GO",
"clientMethod": {
"shortName": "FetchReportResults",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient.FetchReportResults",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.FetchReportResultsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RowIterator",
"client": {
"shortName": "CloudChannelReportsClient",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
},
"method": {
"shortName": "FetchReportResults",
"fullName": "google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults",
"service": {
"shortName": "CloudChannelReportsService",
"fullName": "google.cloud.channel.v1.CloudChannelReportsService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 60,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_GetOperation_sync",
"title": "cloudchannel GetOperation Sample",
"description": "GetOperation is a utility method from google.longrunning.Operations.",
"file": "CloudChannelReportsClient/GetOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "GetOperation",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient.GetOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.GetOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*longrunningpb.Operation",
"client": {
"shortName": "CloudChannelReportsClient",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
},
"method": {
"shortName": "GetOperation",
"fullName": "google.longrunning.Operations.GetOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_ListOperations_sync",
"title": "cloudchannel ListOperations Sample",
"description": "ListOperations is a utility method from google.longrunning.Operations.",
"file": "CloudChannelReportsClient/ListOperations/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListOperations",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient.ListOperations",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.ListOperationsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "OperationIterator",
"client": {
"shortName": "CloudChannelReportsClient",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
},
"method": {
"shortName": "ListOperations",
"fullName": "google.longrunning.Operations.ListOperations",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 60,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_ListReports_sync",
"title": "cloudchannel ListReports Sample",
"description": "ListReports lists the reports that RunReportJob can run. These reports include an ID,\na description, and the list of columns that will be in the result.",
"file": "CloudChannelReportsClient/ListReports/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ListReports",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient.ListReports",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.ListReportsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ReportIterator",
"client": {
"shortName": "CloudChannelReportsClient",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
},
"method": {
"shortName": "ListReports",
"fullName": "google.cloud.channel.v1.CloudChannelReportsService.ListReports",
"service": {
"shortName": "CloudChannelReportsService",
"fullName": "google.cloud.channel.v1.CloudChannelReportsService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 60,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_RunReportJob_sync",
"title": "cloudchannel RunReportJob Sample",
"description": "RunReportJob begins generation of data for a given report. The report\nidentifier is a UID (for example, `613bf59q`).\n\nPossible error codes: \n\n* PERMISSION_DENIED: The user doesn't have access to this report.\n* INVALID_ARGUMENT: Required request parameters are missing\nor invalid.\n* NOT_FOUND: The report identifier was not found.\n* INTERNAL: Any non-user error related to a technical issue\nin the backend. Contact Cloud Channel support.\n* UNKNOWN: Any non-user error related to a technical issue\nin the backend. Contact Cloud Channel support.\n\nReturn value: \nThe ID of a long-running operation.\n\nTo get the results of the operation, call the GetOperation method of\nCloudChannelOperationsService. The Operation metadata contains an\ninstance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].\n\nTo get the results of report generation, call\n[CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults]\nwith the\n[RunReportJobResponse.report_job][google.cloud.channel.v1.RunReportJobResponse.report_job].",
"file": "CloudChannelReportsClient/RunReportJob/main.go",
"language": "GO",
"clientMethod": {
"shortName": "RunReportJob",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient.RunReportJob",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.RunReportJobRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "RunReportJobOperation",
"client": {
"shortName": "CloudChannelReportsClient",
"fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
},
"method": {
"shortName": "RunReportJob",
"fullName": "google.cloud.channel.v1.CloudChannelReportsService.RunReportJob",
"service": {
"shortName": "CloudChannelReportsService",
"fullName": "google.cloud.channel.v1.CloudChannelReportsService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_ActivateEntitlement_sync",
"title": "cloudchannel ActivateEntitlement Sample",
"description": "ActivateEntitlement activates a previously suspended entitlement. Entitlements suspended for\npending ToS acceptance can't be activated using this method.\n\nAn entitlement activation is a long-running operation and it updates\nthe state of the customer entitlement.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The reseller account making the request is different\nfrom the reseller account in the API request.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* NOT_FOUND: Entitlement resource not found.\n* SUSPENSION_NOT_RESELLER_INITIATED: Can only activate reseller-initiated\nsuspensions and entitlements that have accepted the TOS.\n* NOT_SUSPENDED: Can only activate suspended entitlements not in an ACTIVE\nstate.\n* INTERNAL: Any non-user error related to a technical issue in the\nbackend. Contact Cloud Channel support.\n* UNKNOWN: Any non-user error related to a technical issue in the backend.\nContact Cloud Channel support.\n\nReturn value: \nThe ID of a long-running operation.\n\nTo get the results of the operation, call the GetOperation method of\nCloudChannelOperationsService. The Operation metadata will contain an\ninstance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].",
"file": "CloudChannelClient/ActivateEntitlement/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ActivateEntitlement",
"fullName": "google.cloud.channel.v1.CloudChannelClient.ActivateEntitlement",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.ActivateEntitlementRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ActivateEntitlementOperation",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "ActivateEntitlement",
"fullName": "google.cloud.channel.v1.CloudChannelService.ActivateEntitlement",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_CancelEntitlement_sync",
"title": "cloudchannel CancelEntitlement Sample",
"description": "CancelEntitlement cancels a previously fulfilled entitlement.\n\nAn entitlement cancellation is a long-running operation.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The reseller account making the request is different\nfrom the reseller account in the API request.\n* FAILED_PRECONDITION: There are Google Cloud projects linked to the\nGoogle Cloud entitlement's Cloud Billing subaccount.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* NOT_FOUND: Entitlement resource not found.\n* DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google Workspace\nadd-ons, or entitlements for Google Cloud's development platform.\n* INTERNAL: Any non-user error related to a technical issue in the\nbackend. Contact Cloud Channel support.\n* UNKNOWN: Any non-user error related to a technical issue in the backend.\nContact Cloud Channel support.\n\nReturn value: \nThe ID of a long-running operation.\n\nTo get the results of the operation, call the GetOperation method of\nCloudChannelOperationsService. The response will contain\ngoogle.protobuf.Empty on success. The Operation metadata will contain an\ninstance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].",
"file": "CloudChannelClient/CancelEntitlement/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelEntitlement",
"fullName": "google.cloud.channel.v1.CloudChannelClient.CancelEntitlement",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.CancelEntitlementRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CancelEntitlementOperation",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "CancelEntitlement",
"fullName": "google.cloud.channel.v1.CloudChannelService.CancelEntitlement",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 56,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_CancelOperation_sync",
"title": "cloudchannel CancelOperation Sample",
"description": "CancelOperation is a utility method from google.longrunning.Operations.",
"file": "CloudChannelClient/CancelOperation/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CancelOperation",
"fullName": "google.cloud.channel.v1.CloudChannelClient.CancelOperation",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "longrunningpb.CancelOperationRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "CancelOperation",
"fullName": "google.longrunning.Operations.CancelOperation",
"service": {
"shortName": "Operations",
"fullName": "google.longrunning.Operations"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_ChangeOffer_sync",
"title": "cloudchannel ChangeOffer Sample",
"description": "ChangeOffer updates the Offer for an existing customer entitlement.\n\nAn entitlement update is a long-running operation and it updates the\nentitlement as a result of fulfillment.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The customer doesn't belong to the reseller.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* NOT_FOUND: Offer or Entitlement resource not found.\n* INTERNAL: Any non-user error related to a technical issue in the\nbackend. Contact Cloud Channel support.\n* UNKNOWN: Any non-user error related to a technical issue in the backend.\nContact Cloud Channel support.\n\nReturn value: \nThe ID of a long-running operation.\n\nTo get the results of the operation, call the GetOperation method of\nCloudChannelOperationsService. The Operation metadata will contain an\ninstance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].",
"file": "CloudChannelClient/ChangeOffer/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ChangeOffer",
"fullName": "google.cloud.channel.v1.CloudChannelClient.ChangeOffer",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.ChangeOfferRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ChangeOfferOperation",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "ChangeOffer",
"fullName": "google.cloud.channel.v1.CloudChannelService.ChangeOffer",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_ChangeParameters_sync",
"title": "cloudchannel ChangeParameters Sample",
"description": "ChangeParameters change parameters of the entitlement.\n\nAn entitlement update is a long-running operation and it updates the\nentitlement as a result of fulfillment.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The customer doesn't belong to the reseller.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\nFor example, the number of seats being changed is greater than the allowed\nnumber of max seats, or decreasing seats for a commitment based plan.\n* NOT_FOUND: Entitlement resource not found.\n* INTERNAL: Any non-user error related to a technical issue in the\nbackend. Contact Cloud Channel support.\n* UNKNOWN: Any non-user error related to a technical issue in the backend.\nContact Cloud Channel support.\n\nReturn value: \nThe ID of a long-running operation.\n\nTo get the results of the operation, call the GetOperation method of\nCloudChannelOperationsService. The Operation metadata will contain an\ninstance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].",
"file": "CloudChannelClient/ChangeParameters/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ChangeParameters",
"fullName": "google.cloud.channel.v1.CloudChannelClient.ChangeParameters",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.ChangeParametersRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ChangeParametersOperation",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "ChangeParameters",
"fullName": "google.cloud.channel.v1.CloudChannelService.ChangeParameters",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_ChangeRenewalSettings_sync",
"title": "cloudchannel ChangeRenewalSettings Sample",
"description": "ChangeRenewalSettings updates the renewal settings for an existing customer entitlement.\n\nAn entitlement update is a long-running operation and it updates the\nentitlement as a result of fulfillment.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The customer doesn't belong to the reseller.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* NOT_FOUND: Entitlement resource not found.\n* NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a\ncommitment plan. Can't enable or disable renewals for non-commitment plans.\n* INTERNAL: Any non-user error related to a technical issue in the\nbackend. Contact Cloud Channel support.\n* UNKNOWN: Any non-user error related to a technical issue in the backend.\nContact Cloud Channel support.\n\nReturn value: \nThe ID of a long-running operation.\n\nTo get the results of the operation, call the GetOperation method of\nCloudChannelOperationsService. The Operation metadata will contain an\ninstance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].",
"file": "CloudChannelClient/ChangeRenewalSettings/main.go",
"language": "GO",
"clientMethod": {
"shortName": "ChangeRenewalSettings",
"fullName": "google.cloud.channel.v1.CloudChannelClient.ChangeRenewalSettings",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.ChangeRenewalSettingsRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "ChangeRenewalSettingsOperation",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "ChangeRenewalSettings",
"fullName": "google.cloud.channel.v1.CloudChannelService.ChangeRenewalSettings",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_CheckCloudIdentityAccountsExist_sync",
"title": "cloudchannel CheckCloudIdentityAccountsExist Sample",
"description": "CheckCloudIdentityAccountsExist confirms the existence of Cloud Identity accounts based on the domain and\nif the Cloud Identity accounts are owned by the reseller.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The reseller account making the request is different\nfrom the reseller account in the API request.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* INVALID_VALUE: Invalid domain value in the request.\n\nReturn value: \nA list of\n[CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount]\nresources for the domain (may be empty)\n\nNote: in the v1alpha1 version of the API, a NOT_FOUND error returns if\nno\n[CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount]\nresources match the domain.",
"file": "CloudChannelClient/CheckCloudIdentityAccountsExist/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CheckCloudIdentityAccountsExist",
"fullName": "google.cloud.channel.v1.CloudChannelClient.CheckCloudIdentityAccountsExist",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.CheckCloudIdentityAccountsExistRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*channelpb.CheckCloudIdentityAccountsExistResponse",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "CheckCloudIdentityAccountsExist",
"fullName": "google.cloud.channel.v1.CloudChannelService.CheckCloudIdentityAccountsExist",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerLink_sync",
"title": "cloudchannel CreateChannelPartnerLink Sample",
"description": "CreateChannelPartnerLink initiates a channel partner link between a distributor and a reseller, or\nbetween resellers in an n-tier reseller channel.\nInvited partners need to follow the invite_link_uri provided in the\nresponse to accept. After accepting the invitation, a link is set up\nbetween the two parties.\nYou must be a distributor to call this method.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The reseller account making the request is different\nfrom the reseller account in the API request.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* ALREADY_EXISTS: The ChannelPartnerLink sent in the request already\nexists.\n* NOT_FOUND: No Cloud Identity customer exists for provided domain.\n* INTERNAL: Any non-user error related to a technical issue in the\nbackend. Contact Cloud Channel support.\n* UNKNOWN: Any non-user error related to a technical issue in the backend.\nContact Cloud Channel support.\n\nReturn value: \nThe new [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]\nresource.",
"file": "CloudChannelClient/CreateChannelPartnerLink/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateChannelPartnerLink",
"fullName": "google.cloud.channel.v1.CloudChannelClient.CreateChannelPartnerLink",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.CreateChannelPartnerLinkRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*channelpb.ChannelPartnerLink",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "CreateChannelPartnerLink",
"fullName": "google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerLink",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerRepricingConfig_sync",
"title": "cloudchannel CreateChannelPartnerRepricingConfig Sample",
"description": "CreateChannelPartnerRepricingConfig creates a ChannelPartnerRepricingConfig. Call this method to set\nmodifications for a specific ChannelPartner's bill. You can only create\nconfigs if the\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]\nis a future month. If needed, you can create a config for the current\nmonth, with some restrictions.\n\nWhen creating a config for a future month, make sure there are no existing\nconfigs for that\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].\n\nThe following restrictions are for creating configs in the current month.\n\n* This functionality is reserved for recovering from an erroneous config,\nand should not be used for regular business cases.\n* The new config will not modify exports used with other configs.\nChanges to the config may be immediate, but may take up to 24 hours.\n* There is a limit of ten configs for any ChannelPartner or\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].\n* The contained\n[ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config]\nvaule must be different from the value used in the current config for a\nChannelPartner.\n\nPossible Error Codes: \n\n* PERMISSION_DENIED: If the account making the request and the account\nbeing queried are different.\n* INVALID_ARGUMENT: Missing or invalid required parameters in the\nrequest. Also displays if the updated config is for the current month or\npast months.\n* NOT_FOUND: The\n[ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]\nspecified does not exist or is not associated with the given account.\n* INTERNAL: Any non-user error related to technical issues in the\nbackend. In this case, contact Cloud Channel support.\n\nReturn Value: \nIf successful, the updated\n[ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]\nresource, otherwise returns an error.",
"file": "CloudChannelClient/CreateChannelPartnerRepricingConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateChannelPartnerRepricingConfig",
"fullName": "google.cloud.channel.v1.CloudChannelClient.CreateChannelPartnerRepricingConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.CreateChannelPartnerRepricingConfigRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*channelpb.ChannelPartnerRepricingConfig",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "CreateChannelPartnerRepricingConfig",
"fullName": "google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateCustomer_sync",
"title": "cloudchannel CreateCustomer Sample",
"description": "CreateCustomer creates a new [Customer][google.cloud.channel.v1.Customer] resource under\nthe reseller or distributor account.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The reseller account making the request is different\nfrom the reseller account in the API request.\n* INVALID_ARGUMENT: \n* Required request parameters are missing or invalid.\n* Domain field value doesn't match the primary email domain.\n\nReturn value: \nThe newly created [Customer][google.cloud.channel.v1.Customer] resource.",
"file": "CloudChannelClient/CreateCustomer/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateCustomer",
"fullName": "google.cloud.channel.v1.CloudChannelClient.CreateCustomer",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.CreateCustomerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*channelpb.Customer",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "CreateCustomer",
"fullName": "google.cloud.channel.v1.CloudChannelService.CreateCustomer",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateCustomerRepricingConfig_sync",
"title": "cloudchannel CreateCustomerRepricingConfig Sample",
"description": "CreateCustomerRepricingConfig creates a CustomerRepricingConfig. Call this method to set modifications\nfor a specific customer's bill. You can only create configs if the\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]\nis a future month. If needed, you can create a config for the current\nmonth, with some restrictions.\n\nWhen creating a config for a future month, make sure there are no existing\nconfigs for that\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].\n\nThe following restrictions are for creating configs in the current month.\n\n* This functionality is reserved for recovering from an erroneous config,\nand should not be used for regular business cases.\n* The new config will not modify exports used with other configs.\nChanges to the config may be immediate, but may take up to 24 hours.\n* There is a limit of ten configs for any\n[RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]\nor\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].\n* The contained\n[CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config]\nvaule must be different from the value used in the current config for a\n[RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement].\n\nPossible Error Codes: \n\n* PERMISSION_DENIED: If the account making the request and the account\nbeing queried are different.\n* INVALID_ARGUMENT: Missing or invalid required parameters in the\nrequest. Also displays if the updated config is for the current month or\npast months.\n* NOT_FOUND: The\n[CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]\nspecified does not exist or is not associated with the given account.\n* INTERNAL: Any non-user error related to technical issues in the\nbackend. In this case, contact Cloud Channel support.\n\nReturn Value: \nIf successful, the updated\n[CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]\nresource, otherwise returns an error.",
"file": "CloudChannelClient/CreateCustomerRepricingConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateCustomerRepricingConfig",
"fullName": "google.cloud.channel.v1.CloudChannelClient.CreateCustomerRepricingConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.CreateCustomerRepricingConfigRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "*channelpb.CustomerRepricingConfig",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "CreateCustomerRepricingConfig",
"fullName": "google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 53,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateEntitlement_sync",
"title": "cloudchannel CreateEntitlement Sample",
"description": "CreateEntitlement creates an entitlement for a customer.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The customer doesn't belong to the reseller.\n* INVALID_ARGUMENT: \n* Required request parameters are missing or invalid.\n* There is already a customer entitlement for a SKU from the same\nproduct family.\n* INVALID_VALUE: Make sure the OfferId is valid. If it is, contact\nGoogle Channel support for further troubleshooting.\n* NOT_FOUND: The customer or offer resource was not found.\n* ALREADY_EXISTS: \n* The SKU was already purchased for the customer.\n* The customer's primary email already exists. Retry\nafter changing the customer's primary contact email.\n* CONDITION_NOT_MET or FAILED_PRECONDITION: \n* The domain required for purchasing a SKU has not been verified.\n* A pre-requisite SKU required to purchase an Add-On SKU is missing.\nFor example, Google Workspace Business Starter is required to purchase\nVault or Drive.\n* (Developer accounts only) Reseller and resold domain must meet the\nfollowing naming requirements: \n* Domain names must start with goog-test.\n* Domain names must include the reseller domain.\n* INTERNAL: Any non-user error related to a technical issue in the\nbackend. Contact Cloud Channel support.\n* UNKNOWN: Any non-user error related to a technical issue in the backend.\nContact Cloud Channel support.\n\nReturn value: \nThe ID of a long-running operation.\n\nTo get the results of the operation, call the GetOperation method of\nCloudChannelOperationsService. The Operation metadata will contain an\ninstance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].",
"file": "CloudChannelClient/CreateEntitlement/main.go",
"language": "GO",
"clientMethod": {
"shortName": "CreateEntitlement",
"fullName": "google.cloud.channel.v1.CloudChannelClient.CreateEntitlement",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.CreateEntitlementRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"resultType": "CreateEntitlementOperation",
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "CreateEntitlement",
"fullName": "google.cloud.channel.v1.CloudChannelService.CreateEntitlement",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 58,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteChannelPartnerRepricingConfig_sync",
"title": "cloudchannel DeleteChannelPartnerRepricingConfig Sample",
"description": "DeleteChannelPartnerRepricingConfig deletes the given\n[ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]\npermanently. You can only delete configs if their\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]\nis set to a date after the current month.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The account making the request does not own\nthis customer.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* FAILED_PRECONDITION: The\n[ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]\nis active or in the past.\n* NOT_FOUND: No\n[ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]\nfound for the name in the request.",
"file": "CloudChannelClient/DeleteChannelPartnerRepricingConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteChannelPartnerRepricingConfig",
"fullName": "google.cloud.channel.v1.CloudChannelClient.DeleteChannelPartnerRepricingConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.DeleteChannelPartnerRepricingConfigRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "DeleteChannelPartnerRepricingConfig",
"fullName": "google.cloud.channel.v1.CloudChannelService.DeleteChannelPartnerRepricingConfig",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteCustomer_sync",
"title": "cloudchannel DeleteCustomer Sample",
"description": "DeleteCustomer deletes the given [Customer][google.cloud.channel.v1.Customer] permanently.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The account making the request does not own\nthis customer.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* FAILED_PRECONDITION: The customer has existing entitlements.\n* NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found\nfor the name in the request.",
"file": "CloudChannelClient/DeleteCustomer/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteCustomer",
"fullName": "google.cloud.channel.v1.CloudChannelClient.DeleteCustomer",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.DeleteCustomerRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"
},
"method": {
"shortName": "DeleteCustomer",
"fullName": "google.cloud.channel.v1.CloudChannelService.DeleteCustomer",
"service": {
"shortName": "CloudChannelService",
"fullName": "google.cloud.channel.v1.CloudChannelService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 18,
"end": 51,
"type": "FULL"
}
]
},
{
"regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteCustomerRepricingConfig_sync",
"title": "cloudchannel DeleteCustomerRepricingConfig Sample",
"description": "DeleteCustomerRepricingConfig deletes the given\n[CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]\npermanently. You can only delete configs if their\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]\nis set to a date after the current month.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The account making the request does not own\nthis customer.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* FAILED_PRECONDITION: The\n[CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]\nis active or in the past.\n* NOT_FOUND: No\n[CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]\nfound for the name in the request.",
"file": "CloudChannelClient/DeleteCustomerRepricingConfig/main.go",
"language": "GO",
"clientMethod": {
"shortName": "DeleteCustomerRepricingConfig",
"fullName": "google.cloud.channel.v1.CloudChannelClient.DeleteCustomerRepricingConfig",
"parameters": [
{
"type": "context.Context",
"name": "ctx"
},
{
"type": "channelpb.DeleteCustomerRepricingConfigRequest",
"name": "req"
},
{
"type": "...gax.CallOption",
"name": "opts"
}
],
"client": {
"shortName": "CloudChannelClient",
"fullName": "google.cloud.channel.v1.CloudChannelClient"