Debian Codegraph @

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

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/channel/apiv1",
4 "version": "1.20.0",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.cloud.channel.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_CancelOperation_sync",
16 "title": "cloudchannel CancelOperation Sample",
17 "description": "CancelOperation is a utility method from google.longrunning.Operations.",
18 "file": "CloudChannelReportsClient/CancelOperation/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "CancelOperation",
22 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient.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": "CloudChannelReportsClient",
39 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
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": "cloudchannel_v1_generated_CloudChannelReportsService_DeleteOperation_sync",
61 "title": "cloudchannel DeleteOperation Sample",
62 "description": "DeleteOperation is a utility method from google.longrunning.Operations.",
63 "file": "CloudChannelReportsClient/DeleteOperation/main.go",
64 "language": "GO",
65 "clientMethod": {
66 "shortName": "DeleteOperation",
67 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient.DeleteOperation",
68 "parameters": [
69 {
70 "type": "context.Context",
71 "name": "ctx"
72 },
73 {
74 "type": "longrunningpb.DeleteOperationRequest",
75 "name": "req"
76 },
77 {
78 "type": "...gax.CallOption",
79 "name": "opts"
80 }
81 ],
82 "client": {
83 "shortName": "CloudChannelReportsClient",
84 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
85 },
86 "method": {
87 "shortName": "DeleteOperation",
88 "fullName": "google.longrunning.Operations.DeleteOperation",
89 "service": {
90 "shortName": "Operations",
91 "fullName": "google.longrunning.Operations"
92 }
93 }
94 },
95 "origin": "API_DEFINITION",
96 "segments": [
97 {
98 "start": 18,
99 "end": 51,
100 "type": "FULL"
101 }
102 ]
103 },
104 {
105 "regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_FetchReportResults_sync",
106 "title": "cloudchannel FetchReportResults Sample",
107 "description": "FetchReportResults retrieves data generated by\n[CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob].\n\nDeprecated: Please use [Export Channel Services data to\nBigQuery](https: //cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)\ninstead.\n\n\nDeprecated: FetchReportResults may be removed in a future version.",
108 "file": "CloudChannelReportsClient/FetchReportResults/main.go",
109 "language": "GO",
110 "clientMethod": {
111 "shortName": "FetchReportResults",
112 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient.FetchReportResults",
113 "parameters": [
114 {
115 "type": "context.Context",
116 "name": "ctx"
117 },
118 {
119 "type": "channelpb.FetchReportResultsRequest",
120 "name": "req"
121 },
122 {
123 "type": "...gax.CallOption",
124 "name": "opts"
125 }
126 ],
127 "resultType": "RowIterator",
128 "client": {
129 "shortName": "CloudChannelReportsClient",
130 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
131 },
132 "method": {
133 "shortName": "FetchReportResults",
134 "fullName": "google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults",
135 "service": {
136 "shortName": "CloudChannelReportsService",
137 "fullName": "google.cloud.channel.v1.CloudChannelReportsService"
138 }
139 }
140 },
141 "origin": "API_DEFINITION",
142 "segments": [
143 {
144 "start": 18,
145 "end": 66,
146 "type": "FULL"
147 }
148 ]
149 },
150 {
151 "regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_GetOperation_sync",
152 "title": "cloudchannel GetOperation Sample",
153 "description": "GetOperation is a utility method from google.longrunning.Operations.",
154 "file": "CloudChannelReportsClient/GetOperation/main.go",
155 "language": "GO",
156 "clientMethod": {
157 "shortName": "GetOperation",
158 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient.GetOperation",
159 "parameters": [
160 {
161 "type": "context.Context",
162 "name": "ctx"
163 },
164 {
165 "type": "longrunningpb.GetOperationRequest",
166 "name": "req"
167 },
168 {
169 "type": "...gax.CallOption",
170 "name": "opts"
171 }
172 ],
173 "resultType": "*longrunningpb.Operation",
174 "client": {
175 "shortName": "CloudChannelReportsClient",
176 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
177 },
178 "method": {
179 "shortName": "GetOperation",
180 "fullName": "google.longrunning.Operations.GetOperation",
181 "service": {
182 "shortName": "Operations",
183 "fullName": "google.longrunning.Operations"
184 }
185 }
186 },
187 "origin": "API_DEFINITION",
188 "segments": [
189 {
190 "start": 18,
191 "end": 53,
192 "type": "FULL"
193 }
194 ]
195 },
196 {
197 "regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_ListOperations_sync",
198 "title": "cloudchannel ListOperations Sample",
199 "description": "ListOperations is a utility method from google.longrunning.Operations.",
200 "file": "CloudChannelReportsClient/ListOperations/main.go",
201 "language": "GO",
202 "clientMethod": {
203 "shortName": "ListOperations",
204 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient.ListOperations",
205 "parameters": [
206 {
207 "type": "context.Context",
208 "name": "ctx"
209 },
210 {
211 "type": "longrunningpb.ListOperationsRequest",
212 "name": "req"
213 },
214 {
215 "type": "...gax.CallOption",
216 "name": "opts"
217 }
218 ],
219 "resultType": "OperationIterator",
220 "client": {
221 "shortName": "CloudChannelReportsClient",
222 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
223 },
224 "method": {
225 "shortName": "ListOperations",
226 "fullName": "google.longrunning.Operations.ListOperations",
227 "service": {
228 "shortName": "Operations",
229 "fullName": "google.longrunning.Operations"
230 }
231 }
232 },
233 "origin": "API_DEFINITION",
234 "segments": [
235 {
236 "start": 18,
237 "end": 66,
238 "type": "FULL"
239 }
240 ]
241 },
242 {
243 "regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_ListReports_sync",
244 "title": "cloudchannel ListReports Sample",
245 "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.\n\nDeprecated: Please use [Export Channel Services data to\nBigQuery](https: //cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)\ninstead.\n\n\nDeprecated: ListReports may be removed in a future version.",
246 "file": "CloudChannelReportsClient/ListReports/main.go",
247 "language": "GO",
248 "clientMethod": {
249 "shortName": "ListReports",
250 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient.ListReports",
251 "parameters": [
252 {
253 "type": "context.Context",
254 "name": "ctx"
255 },
256 {
257 "type": "channelpb.ListReportsRequest",
258 "name": "req"
259 },
260 {
261 "type": "...gax.CallOption",
262 "name": "opts"
263 }
264 ],
265 "resultType": "ReportIterator",
266 "client": {
267 "shortName": "CloudChannelReportsClient",
268 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
269 },
270 "method": {
271 "shortName": "ListReports",
272 "fullName": "google.cloud.channel.v1.CloudChannelReportsService.ListReports",
273 "service": {
274 "shortName": "CloudChannelReportsService",
275 "fullName": "google.cloud.channel.v1.CloudChannelReportsService"
276 }
277 }
278 },
279 "origin": "API_DEFINITION",
280 "segments": [
281 {
282 "start": 18,
283 "end": 66,
284 "type": "FULL"
285 }
286 ]
287 },
288 {
289 "regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_RunReportJob_sync",
290 "title": "cloudchannel RunReportJob Sample",
291 "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].\n\nDeprecated: Please use [Export Channel Services data to\nBigQuery](https: //cloud.google.com/channel/docs/rebilling/export-data-to-bigquery)\ninstead.\n\n\nDeprecated: RunReportJob may be removed in a future version.",
292 "file": "CloudChannelReportsClient/RunReportJob/main.go",
293 "language": "GO",
294 "clientMethod": {
295 "shortName": "RunReportJob",
296 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient.RunReportJob",
297 "parameters": [
298 {
299 "type": "context.Context",
300 "name": "ctx"
301 },
302 {
303 "type": "channelpb.RunReportJobRequest",
304 "name": "req"
305 },
306 {
307 "type": "...gax.CallOption",
308 "name": "opts"
309 }
310 ],
311 "resultType": "RunReportJobOperation",
312 "client": {
313 "shortName": "CloudChannelReportsClient",
314 "fullName": "google.cloud.channel.v1.CloudChannelReportsClient"
315 },
316 "method": {
317 "shortName": "RunReportJob",
318 "fullName": "google.cloud.channel.v1.CloudChannelReportsService.RunReportJob",
319 "service": {
320 "shortName": "CloudChannelReportsService",
321 "fullName": "google.cloud.channel.v1.CloudChannelReportsService"
322 }
323 }
324 },
325 "origin": "API_DEFINITION",
326 "segments": [
327 {
328 "start": 18,
329 "end": 58,
330 "type": "FULL"
331 }
332 ]
333 },
334 {
335 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ActivateEntitlement_sync",
336 "title": "cloudchannel ActivateEntitlement Sample",
337 "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].",
338 "file": "CloudChannelClient/ActivateEntitlement/main.go",
339 "language": "GO",
340 "clientMethod": {
341 "shortName": "ActivateEntitlement",
342 "fullName": "google.cloud.channel.v1.CloudChannelClient.ActivateEntitlement",
343 "parameters": [
344 {
345 "type": "context.Context",
346 "name": "ctx"
347 },
348 {
349 "type": "channelpb.ActivateEntitlementRequest",
350 "name": "req"
351 },
352 {
353 "type": "...gax.CallOption",
354 "name": "opts"
355 }
356 ],
357 "resultType": "ActivateEntitlementOperation",
358 "client": {
359 "shortName": "CloudChannelClient",
360 "fullName": "google.cloud.channel.v1.CloudChannelClient"
361 },
362 "method": {
363 "shortName": "ActivateEntitlement",
364 "fullName": "google.cloud.channel.v1.CloudChannelService.ActivateEntitlement",
365 "service": {
366 "shortName": "CloudChannelService",
367 "fullName": "google.cloud.channel.v1.CloudChannelService"
368 }
369 }
370 },
371 "origin": "API_DEFINITION",
372 "segments": [
373 {
374 "start": 18,
375 "end": 58,
376 "type": "FULL"
377 }
378 ]
379 },
380 {
381 "regionTag": "cloudchannel_v1_generated_CloudChannelService_CancelEntitlement_sync",
382 "title": "cloudchannel CancelEntitlement Sample",
383 "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].",
384 "file": "CloudChannelClient/CancelEntitlement/main.go",
385 "language": "GO",
386 "clientMethod": {
387 "shortName": "CancelEntitlement",
388 "fullName": "google.cloud.channel.v1.CloudChannelClient.CancelEntitlement",
389 "parameters": [
390 {
391 "type": "context.Context",
392 "name": "ctx"
393 },
394 {
395 "type": "channelpb.CancelEntitlementRequest",
396 "name": "req"
397 },
398 {
399 "type": "...gax.CallOption",
400 "name": "opts"
401 }
402 ],
403 "resultType": "CancelEntitlementOperation",
404 "client": {
405 "shortName": "CloudChannelClient",
406 "fullName": "google.cloud.channel.v1.CloudChannelClient"
407 },
408 "method": {
409 "shortName": "CancelEntitlement",
410 "fullName": "google.cloud.channel.v1.CloudChannelService.CancelEntitlement",
411 "service": {
412 "shortName": "CloudChannelService",
413 "fullName": "google.cloud.channel.v1.CloudChannelService"
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": "cloudchannel_v1_generated_CloudChannelService_CancelOperation_sync",
428 "title": "cloudchannel CancelOperation Sample",
429 "description": "CancelOperation is a utility method from google.longrunning.Operations.",
430 "file": "CloudChannelClient/CancelOperation/main.go",
431 "language": "GO",
432 "clientMethod": {
433 "shortName": "CancelOperation",
434 "fullName": "google.cloud.channel.v1.CloudChannelClient.CancelOperation",
435 "parameters": [
436 {
437 "type": "context.Context",
438 "name": "ctx"
439 },
440 {
441 "type": "longrunningpb.CancelOperationRequest",
442 "name": "req"
443 },
444 {
445 "type": "...gax.CallOption",
446 "name": "opts"
447 }
448 ],
449 "client": {
450 "shortName": "CloudChannelClient",
451 "fullName": "google.cloud.channel.v1.CloudChannelClient"
452 },
453 "method": {
454 "shortName": "CancelOperation",
455 "fullName": "google.longrunning.Operations.CancelOperation",
456 "service": {
457 "shortName": "Operations",
458 "fullName": "google.longrunning.Operations"
459 }
460 }
461 },
462 "origin": "API_DEFINITION",
463 "segments": [
464 {
465 "start": 18,
466 "end": 51,
467 "type": "FULL"
468 }
469 ]
470 },
471 {
472 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ChangeOffer_sync",
473 "title": "cloudchannel ChangeOffer Sample",
474 "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].",
475 "file": "CloudChannelClient/ChangeOffer/main.go",
476 "language": "GO",
477 "clientMethod": {
478 "shortName": "ChangeOffer",
479 "fullName": "google.cloud.channel.v1.CloudChannelClient.ChangeOffer",
480 "parameters": [
481 {
482 "type": "context.Context",
483 "name": "ctx"
484 },
485 {
486 "type": "channelpb.ChangeOfferRequest",
487 "name": "req"
488 },
489 {
490 "type": "...gax.CallOption",
491 "name": "opts"
492 }
493 ],
494 "resultType": "ChangeOfferOperation",
495 "client": {
496 "shortName": "CloudChannelClient",
497 "fullName": "google.cloud.channel.v1.CloudChannelClient"
498 },
499 "method": {
500 "shortName": "ChangeOffer",
501 "fullName": "google.cloud.channel.v1.CloudChannelService.ChangeOffer",
502 "service": {
503 "shortName": "CloudChannelService",
504 "fullName": "google.cloud.channel.v1.CloudChannelService"
505 }
506 }
507 },
508 "origin": "API_DEFINITION",
509 "segments": [
510 {
511 "start": 18,
512 "end": 58,
513 "type": "FULL"
514 }
515 ]
516 },
517 {
518 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ChangeParameters_sync",
519 "title": "cloudchannel ChangeParameters Sample",
520 "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].",
521 "file": "CloudChannelClient/ChangeParameters/main.go",
522 "language": "GO",
523 "clientMethod": {
524 "shortName": "ChangeParameters",
525 "fullName": "google.cloud.channel.v1.CloudChannelClient.ChangeParameters",
526 "parameters": [
527 {
528 "type": "context.Context",
529 "name": "ctx"
530 },
531 {
532 "type": "channelpb.ChangeParametersRequest",
533 "name": "req"
534 },
535 {
536 "type": "...gax.CallOption",
537 "name": "opts"
538 }
539 ],
540 "resultType": "ChangeParametersOperation",
541 "client": {
542 "shortName": "CloudChannelClient",
543 "fullName": "google.cloud.channel.v1.CloudChannelClient"
544 },
545 "method": {
546 "shortName": "ChangeParameters",
547 "fullName": "google.cloud.channel.v1.CloudChannelService.ChangeParameters",
548 "service": {
549 "shortName": "CloudChannelService",
550 "fullName": "google.cloud.channel.v1.CloudChannelService"
551 }
552 }
553 },
554 "origin": "API_DEFINITION",
555 "segments": [
556 {
557 "start": 18,
558 "end": 58,
559 "type": "FULL"
560 }
561 ]
562 },
563 {
564 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ChangeRenewalSettings_sync",
565 "title": "cloudchannel ChangeRenewalSettings Sample",
566 "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].",
567 "file": "CloudChannelClient/ChangeRenewalSettings/main.go",
568 "language": "GO",
569 "clientMethod": {
570 "shortName": "ChangeRenewalSettings",
571 "fullName": "google.cloud.channel.v1.CloudChannelClient.ChangeRenewalSettings",
572 "parameters": [
573 {
574 "type": "context.Context",
575 "name": "ctx"
576 },
577 {
578 "type": "channelpb.ChangeRenewalSettingsRequest",
579 "name": "req"
580 },
581 {
582 "type": "...gax.CallOption",
583 "name": "opts"
584 }
585 ],
586 "resultType": "ChangeRenewalSettingsOperation",
587 "client": {
588 "shortName": "CloudChannelClient",
589 "fullName": "google.cloud.channel.v1.CloudChannelClient"
590 },
591 "method": {
592 "shortName": "ChangeRenewalSettings",
593 "fullName": "google.cloud.channel.v1.CloudChannelService.ChangeRenewalSettings",
594 "service": {
595 "shortName": "CloudChannelService",
596 "fullName": "google.cloud.channel.v1.CloudChannelService"
597 }
598 }
599 },
600 "origin": "API_DEFINITION",
601 "segments": [
602 {
603 "start": 18,
604 "end": 58,
605 "type": "FULL"
606 }
607 ]
608 },
609 {
610 "regionTag": "cloudchannel_v1_generated_CloudChannelService_CheckCloudIdentityAccountsExist_sync",
611 "title": "cloudchannel CheckCloudIdentityAccountsExist Sample",
612 "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.",
613 "file": "CloudChannelClient/CheckCloudIdentityAccountsExist/main.go",
614 "language": "GO",
615 "clientMethod": {
616 "shortName": "CheckCloudIdentityAccountsExist",
617 "fullName": "google.cloud.channel.v1.CloudChannelClient.CheckCloudIdentityAccountsExist",
618 "parameters": [
619 {
620 "type": "context.Context",
621 "name": "ctx"
622 },
623 {
624 "type": "channelpb.CheckCloudIdentityAccountsExistRequest",
625 "name": "req"
626 },
627 {
628 "type": "...gax.CallOption",
629 "name": "opts"
630 }
631 ],
632 "resultType": "*channelpb.CheckCloudIdentityAccountsExistResponse",
633 "client": {
634 "shortName": "CloudChannelClient",
635 "fullName": "google.cloud.channel.v1.CloudChannelClient"
636 },
637 "method": {
638 "shortName": "CheckCloudIdentityAccountsExist",
639 "fullName": "google.cloud.channel.v1.CloudChannelService.CheckCloudIdentityAccountsExist",
640 "service": {
641 "shortName": "CloudChannelService",
642 "fullName": "google.cloud.channel.v1.CloudChannelService"
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": "cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerLink_sync",
657 "title": "cloudchannel CreateChannelPartnerLink Sample",
658 "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.",
659 "file": "CloudChannelClient/CreateChannelPartnerLink/main.go",
660 "language": "GO",
661 "clientMethod": {
662 "shortName": "CreateChannelPartnerLink",
663 "fullName": "google.cloud.channel.v1.CloudChannelClient.CreateChannelPartnerLink",
664 "parameters": [
665 {
666 "type": "context.Context",
667 "name": "ctx"
668 },
669 {
670 "type": "channelpb.CreateChannelPartnerLinkRequest",
671 "name": "req"
672 },
673 {
674 "type": "...gax.CallOption",
675 "name": "opts"
676 }
677 ],
678 "resultType": "*channelpb.ChannelPartnerLink",
679 "client": {
680 "shortName": "CloudChannelClient",
681 "fullName": "google.cloud.channel.v1.CloudChannelClient"
682 },
683 "method": {
684 "shortName": "CreateChannelPartnerLink",
685 "fullName": "google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerLink",
686 "service": {
687 "shortName": "CloudChannelService",
688 "fullName": "google.cloud.channel.v1.CloudChannelService"
689 }
690 }
691 },
692 "origin": "API_DEFINITION",
693 "segments": [
694 {
695 "start": 18,
696 "end": 53,
697 "type": "FULL"
698 }
699 ]
700 },
701 {
702 "regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerRepricingConfig_sync",
703 "title": "cloudchannel CreateChannelPartnerRepricingConfig Sample",
704 "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.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement],\nfor any\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]\nvalue 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.",
705 "file": "CloudChannelClient/CreateChannelPartnerRepricingConfig/main.go",
706 "language": "GO",
707 "clientMethod": {
708 "shortName": "CreateChannelPartnerRepricingConfig",
709 "fullName": "google.cloud.channel.v1.CloudChannelClient.CreateChannelPartnerRepricingConfig",
710 "parameters": [
711 {
712 "type": "context.Context",
713 "name": "ctx"
714 },
715 {
716 "type": "channelpb.CreateChannelPartnerRepricingConfigRequest",
717 "name": "req"
718 },
719 {
720 "type": "...gax.CallOption",
721 "name": "opts"
722 }
723 ],
724 "resultType": "*channelpb.ChannelPartnerRepricingConfig",
725 "client": {
726 "shortName": "CloudChannelClient",
727 "fullName": "google.cloud.channel.v1.CloudChannelClient"
728 },
729 "method": {
730 "shortName": "CreateChannelPartnerRepricingConfig",
731 "fullName": "google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig",
732 "service": {
733 "shortName": "CloudChannelService",
734 "fullName": "google.cloud.channel.v1.CloudChannelService"
735 }
736 }
737 },
738 "origin": "API_DEFINITION",
739 "segments": [
740 {
741 "start": 18,
742 "end": 53,
743 "type": "FULL"
744 }
745 ]
746 },
747 {
748 "regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateCustomer_sync",
749 "title": "cloudchannel CreateCustomer Sample",
750 "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: \n* The reseller account making the request is different from the\nreseller account in the API request.\n* You are not authorized to create a customer. See\nhttps: //support.google.com/channelservices/answer/9759265\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.",
751 "file": "CloudChannelClient/CreateCustomer/main.go",
752 "language": "GO",
753 "clientMethod": {
754 "shortName": "CreateCustomer",
755 "fullName": "google.cloud.channel.v1.CloudChannelClient.CreateCustomer",
756 "parameters": [
757 {
758 "type": "context.Context",
759 "name": "ctx"
760 },
761 {
762 "type": "channelpb.CreateCustomerRequest",
763 "name": "req"
764 },
765 {
766 "type": "...gax.CallOption",
767 "name": "opts"
768 }
769 ],
770 "resultType": "*channelpb.Customer",
771 "client": {
772 "shortName": "CloudChannelClient",
773 "fullName": "google.cloud.channel.v1.CloudChannelClient"
774 },
775 "method": {
776 "shortName": "CreateCustomer",
777 "fullName": "google.cloud.channel.v1.CloudChannelService.CreateCustomer",
778 "service": {
779 "shortName": "CloudChannelService",
780 "fullName": "google.cloud.channel.v1.CloudChannelService"
781 }
782 }
783 },
784 "origin": "API_DEFINITION",
785 "segments": [
786 {
787 "start": 18,
788 "end": 53,
789 "type": "FULL"
790 }
791 ]
792 },
793 {
794 "regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateCustomerRepricingConfig_sync",
795 "title": "cloudchannel CreateCustomerRepricingConfig Sample",
796 "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],\nfor any\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]\nvalue 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.",
797 "file": "CloudChannelClient/CreateCustomerRepricingConfig/main.go",
798 "language": "GO",
799 "clientMethod": {
800 "shortName": "CreateCustomerRepricingConfig",
801 "fullName": "google.cloud.channel.v1.CloudChannelClient.CreateCustomerRepricingConfig",
802 "parameters": [
803 {
804 "type": "context.Context",
805 "name": "ctx"
806 },
807 {
808 "type": "channelpb.CreateCustomerRepricingConfigRequest",
809 "name": "req"
810 },
811 {
812 "type": "...gax.CallOption",
813 "name": "opts"
814 }
815 ],
816 "resultType": "*channelpb.CustomerRepricingConfig",
817 "client": {
818 "shortName": "CloudChannelClient",
819 "fullName": "google.cloud.channel.v1.CloudChannelClient"
820 },
821 "method": {
822 "shortName": "CreateCustomerRepricingConfig",
823 "fullName": "google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig",
824 "service": {
825 "shortName": "CloudChannelService",
826 "fullName": "google.cloud.channel.v1.CloudChannelService"
827 }
828 }
829 },
830 "origin": "API_DEFINITION",
831 "segments": [
832 {
833 "start": 18,
834 "end": 53,
835 "type": "FULL"
836 }
837 ]
838 },
839 {
840 "regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateEntitlement_sync",
841 "title": "cloudchannel CreateEntitlement Sample",
842 "description": "CreateEntitlement creates an entitlement for a customer.\n\nPossible error codes: \n\n* PERMISSION_DENIED: \n* The customer doesn't belong to the reseller.\n* The reseller is not authorized to transact on this Product. See\nhttps: //support.google.com/channelservices/answer/9759265\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].",
843 "file": "CloudChannelClient/CreateEntitlement/main.go",
844 "language": "GO",
845 "clientMethod": {
846 "shortName": "CreateEntitlement",
847 "fullName": "google.cloud.channel.v1.CloudChannelClient.CreateEntitlement",
848 "parameters": [
849 {
850 "type": "context.Context",
851 "name": "ctx"
852 },
853 {
854 "type": "channelpb.CreateEntitlementRequest",
855 "name": "req"
856 },
857 {
858 "type": "...gax.CallOption",
859 "name": "opts"
860 }
861 ],
862 "resultType": "CreateEntitlementOperation",
863 "client": {
864 "shortName": "CloudChannelClient",
865 "fullName": "google.cloud.channel.v1.CloudChannelClient"
866 },
867 "method": {
868 "shortName": "CreateEntitlement",
869 "fullName": "google.cloud.channel.v1.CloudChannelService.CreateEntitlement",
870 "service": {
871 "shortName": "CloudChannelService",
872 "fullName": "google.cloud.channel.v1.CloudChannelService"
873 }
874 }
875 },
876 "origin": "API_DEFINITION",
877 "segments": [
878 {
879 "start": 18,
880 "end": 58,
881 "type": "FULL"
882 }
883 ]
884 },
885 {
886 "regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteChannelPartnerRepricingConfig_sync",
887 "title": "cloudchannel DeleteChannelPartnerRepricingConfig Sample",
888 "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.",
889 "file": "CloudChannelClient/DeleteChannelPartnerRepricingConfig/main.go",
890 "language": "GO",
891 "clientMethod": {
892 "shortName": "DeleteChannelPartnerRepricingConfig",
893 "fullName": "google.cloud.channel.v1.CloudChannelClient.DeleteChannelPartnerRepricingConfig",
894 "parameters": [
895 {
896 "type": "context.Context",
897 "name": "ctx"
898 },
899 {
900 "type": "channelpb.DeleteChannelPartnerRepricingConfigRequest",
901 "name": "req"
902 },
903 {
904 "type": "...gax.CallOption",
905 "name": "opts"
906 }
907 ],
908 "client": {
909 "shortName": "CloudChannelClient",
910 "fullName": "google.cloud.channel.v1.CloudChannelClient"
911 },
912 "method": {
913 "shortName": "DeleteChannelPartnerRepricingConfig",
914 "fullName": "google.cloud.channel.v1.CloudChannelService.DeleteChannelPartnerRepricingConfig",
915 "service": {
916 "shortName": "CloudChannelService",
917 "fullName": "google.cloud.channel.v1.CloudChannelService"
918 }
919 }
920 },
921 "origin": "API_DEFINITION",
922 "segments": [
923 {
924 "start": 18,
925 "end": 51,
926 "type": "FULL"
927 }
928 ]
929 },
930 {
931 "regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteCustomer_sync",
932 "title": "cloudchannel DeleteCustomer Sample",
933 "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.",
934 "file": "CloudChannelClient/DeleteCustomer/main.go",
935 "language": "GO",
936 "clientMethod": {
937 "shortName": "DeleteCustomer",
938 "fullName": "google.cloud.channel.v1.CloudChannelClient.DeleteCustomer",
939 "parameters": [
940 {
941 "type": "context.Context",
942 "name": "ctx"
943 },
944 {
945 "type": "channelpb.DeleteCustomerRequest",
946 "name": "req"
947 },
948 {
949 "type": "...gax.CallOption",
950 "name": "opts"
951 }
952 ],
953 "client": {
954 "shortName": "CloudChannelClient",
955 "fullName": "google.cloud.channel.v1.CloudChannelClient"
956 },
957 "method": {
958 "shortName": "DeleteCustomer",
959 "fullName": "google.cloud.channel.v1.CloudChannelService.DeleteCustomer",
960 "service": {
961 "shortName": "CloudChannelService",
962 "fullName": "google.cloud.channel.v1.CloudChannelService"
963 }
964 }
965 },
966 "origin": "API_DEFINITION",
967 "segments": [
968 {
969 "start": 18,
970 "end": 51,
971 "type": "FULL"
972 }
973 ]
974 },
975 {
976 "regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteCustomerRepricingConfig_sync",
977 "title": "cloudchannel DeleteCustomerRepricingConfig Sample",
978 "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.",
979 "file": "CloudChannelClient/DeleteCustomerRepricingConfig/main.go",
980 "language": "GO",
981 "clientMethod": {
982 "shortName": "DeleteCustomerRepricingConfig",
983 "fullName": "google.cloud.channel.v1.CloudChannelClient.DeleteCustomerRepricingConfig",
984 "parameters": [
985 {
986 "type": "context.Context",
987 "name": "ctx"
988 },
989 {
990 "type": "channelpb.DeleteCustomerRepricingConfigRequest",
991 "name": "req"
992 },
993 {
994 "type": "...gax.CallOption",
995 "name": "opts"
996 }
997 ],
998 "client": {
999 "shortName": "CloudChannelClient",
1000 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1001 },
1002 "method": {
1003 "shortName": "DeleteCustomerRepricingConfig",
1004 "fullName": "google.cloud.channel.v1.CloudChannelService.DeleteCustomerRepricingConfig",
1005 "service": {
1006 "shortName": "CloudChannelService",
1007 "fullName": "google.cloud.channel.v1.CloudChannelService"
1008 }
1009 }
1010 },
1011 "origin": "API_DEFINITION",
1012 "segments": [
1013 {
1014 "start": 18,
1015 "end": 51,
1016 "type": "FULL"
1017 }
1018 ]
1019 },
1020 {
1021 "regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteOperation_sync",
1022 "title": "cloudchannel DeleteOperation Sample",
1023 "description": "DeleteOperation is a utility method from google.longrunning.Operations.",
1024 "file": "CloudChannelClient/DeleteOperation/main.go",
1025 "language": "GO",
1026 "clientMethod": {
1027 "shortName": "DeleteOperation",
1028 "fullName": "google.cloud.channel.v1.CloudChannelClient.DeleteOperation",
1029 "parameters": [
1030 {
1031 "type": "context.Context",
1032 "name": "ctx"
1033 },
1034 {
1035 "type": "longrunningpb.DeleteOperationRequest",
1036 "name": "req"
1037 },
1038 {
1039 "type": "...gax.CallOption",
1040 "name": "opts"
1041 }
1042 ],
1043 "client": {
1044 "shortName": "CloudChannelClient",
1045 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1046 },
1047 "method": {
1048 "shortName": "DeleteOperation",
1049 "fullName": "google.longrunning.Operations.DeleteOperation",
1050 "service": {
1051 "shortName": "Operations",
1052 "fullName": "google.longrunning.Operations"
1053 }
1054 }
1055 },
1056 "origin": "API_DEFINITION",
1057 "segments": [
1058 {
1059 "start": 18,
1060 "end": 51,
1061 "type": "FULL"
1062 }
1063 ]
1064 },
1065 {
1066 "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerLink_sync",
1067 "title": "cloudchannel GetChannelPartnerLink Sample",
1068 "description": "GetChannelPartnerLink returns the requested\n[ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.\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* NOT_FOUND: ChannelPartnerLink resource not found because of an\ninvalid channel partner link name.\n\nReturn value: \nThe [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]\nresource.",
1069 "file": "CloudChannelClient/GetChannelPartnerLink/main.go",
1070 "language": "GO",
1071 "clientMethod": {
1072 "shortName": "GetChannelPartnerLink",
1073 "fullName": "google.cloud.channel.v1.CloudChannelClient.GetChannelPartnerLink",
1074 "parameters": [
1075 {
1076 "type": "context.Context",
1077 "name": "ctx"
1078 },
1079 {
1080 "type": "channelpb.GetChannelPartnerLinkRequest",
1081 "name": "req"
1082 },
1083 {
1084 "type": "...gax.CallOption",
1085 "name": "opts"
1086 }
1087 ],
1088 "resultType": "*channelpb.ChannelPartnerLink",
1089 "client": {
1090 "shortName": "CloudChannelClient",
1091 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1092 },
1093 "method": {
1094 "shortName": "GetChannelPartnerLink",
1095 "fullName": "google.cloud.channel.v1.CloudChannelService.GetChannelPartnerLink",
1096 "service": {
1097 "shortName": "CloudChannelService",
1098 "fullName": "google.cloud.channel.v1.CloudChannelService"
1099 }
1100 }
1101 },
1102 "origin": "API_DEFINITION",
1103 "segments": [
1104 {
1105 "start": 18,
1106 "end": 53,
1107 "type": "FULL"
1108 }
1109 ]
1110 },
1111 {
1112 "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerRepricingConfig_sync",
1113 "title": "cloudchannel GetChannelPartnerRepricingConfig Sample",
1114 "description": "GetChannelPartnerRepricingConfig gets information about how a Distributor modifies their bill before sending\nit to a ChannelPartner.\n\nPossible Error Codes: \n\n* PERMISSION_DENIED: If the account making the request and the account\nbeing queried are different.\n* NOT_FOUND: The\n[ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]\nwas not found.\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\n[ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]\nresource, otherwise returns an error.",
1115 "file": "CloudChannelClient/GetChannelPartnerRepricingConfig/main.go",
1116 "language": "GO",
1117 "clientMethod": {
1118 "shortName": "GetChannelPartnerRepricingConfig",
1119 "fullName": "google.cloud.channel.v1.CloudChannelClient.GetChannelPartnerRepricingConfig",
1120 "parameters": [
1121 {
1122 "type": "context.Context",
1123 "name": "ctx"
1124 },
1125 {
1126 "type": "channelpb.GetChannelPartnerRepricingConfigRequest",
1127 "name": "req"
1128 },
1129 {
1130 "type": "...gax.CallOption",
1131 "name": "opts"
1132 }
1133 ],
1134 "resultType": "*channelpb.ChannelPartnerRepricingConfig",
1135 "client": {
1136 "shortName": "CloudChannelClient",
1137 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1138 },
1139 "method": {
1140 "shortName": "GetChannelPartnerRepricingConfig",
1141 "fullName": "google.cloud.channel.v1.CloudChannelService.GetChannelPartnerRepricingConfig",
1142 "service": {
1143 "shortName": "CloudChannelService",
1144 "fullName": "google.cloud.channel.v1.CloudChannelService"
1145 }
1146 }
1147 },
1148 "origin": "API_DEFINITION",
1149 "segments": [
1150 {
1151 "start": 18,
1152 "end": 53,
1153 "type": "FULL"
1154 }
1155 ]
1156 },
1157 {
1158 "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetCustomer_sync",
1159 "title": "cloudchannel GetCustomer Sample",
1160 "description": "GetCustomer returns the requested [Customer][google.cloud.channel.v1.Customer]\nresource.\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: The customer resource doesn't exist. Usually the result of an\ninvalid name parameter.\n\nReturn value: \nThe [Customer][google.cloud.channel.v1.Customer] resource.",
1161 "file": "CloudChannelClient/GetCustomer/main.go",
1162 "language": "GO",
1163 "clientMethod": {
1164 "shortName": "GetCustomer",
1165 "fullName": "google.cloud.channel.v1.CloudChannelClient.GetCustomer",
1166 "parameters": [
1167 {
1168 "type": "context.Context",
1169 "name": "ctx"
1170 },
1171 {
1172 "type": "channelpb.GetCustomerRequest",
1173 "name": "req"
1174 },
1175 {
1176 "type": "...gax.CallOption",
1177 "name": "opts"
1178 }
1179 ],
1180 "resultType": "*channelpb.Customer",
1181 "client": {
1182 "shortName": "CloudChannelClient",
1183 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1184 },
1185 "method": {
1186 "shortName": "GetCustomer",
1187 "fullName": "google.cloud.channel.v1.CloudChannelService.GetCustomer",
1188 "service": {
1189 "shortName": "CloudChannelService",
1190 "fullName": "google.cloud.channel.v1.CloudChannelService"
1191 }
1192 }
1193 },
1194 "origin": "API_DEFINITION",
1195 "segments": [
1196 {
1197 "start": 18,
1198 "end": 53,
1199 "type": "FULL"
1200 }
1201 ]
1202 },
1203 {
1204 "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetCustomerRepricingConfig_sync",
1205 "title": "cloudchannel GetCustomerRepricingConfig Sample",
1206 "description": "GetCustomerRepricingConfig gets information about how a Reseller modifies their bill before sending\nit to a Customer.\n\nPossible Error Codes: \n\n* PERMISSION_DENIED: If the account making the request and the account\nbeing queried are different.\n* NOT_FOUND: The\n[CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]\nwas not found.\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\n[CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]\nresource, otherwise returns an error.",
1207 "file": "CloudChannelClient/GetCustomerRepricingConfig/main.go",
1208 "language": "GO",
1209 "clientMethod": {
1210 "shortName": "GetCustomerRepricingConfig",
1211 "fullName": "google.cloud.channel.v1.CloudChannelClient.GetCustomerRepricingConfig",
1212 "parameters": [
1213 {
1214 "type": "context.Context",
1215 "name": "ctx"
1216 },
1217 {
1218 "type": "channelpb.GetCustomerRepricingConfigRequest",
1219 "name": "req"
1220 },
1221 {
1222 "type": "...gax.CallOption",
1223 "name": "opts"
1224 }
1225 ],
1226 "resultType": "*channelpb.CustomerRepricingConfig",
1227 "client": {
1228 "shortName": "CloudChannelClient",
1229 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1230 },
1231 "method": {
1232 "shortName": "GetCustomerRepricingConfig",
1233 "fullName": "google.cloud.channel.v1.CloudChannelService.GetCustomerRepricingConfig",
1234 "service": {
1235 "shortName": "CloudChannelService",
1236 "fullName": "google.cloud.channel.v1.CloudChannelService"
1237 }
1238 }
1239 },
1240 "origin": "API_DEFINITION",
1241 "segments": [
1242 {
1243 "start": 18,
1244 "end": 53,
1245 "type": "FULL"
1246 }
1247 ]
1248 },
1249 {
1250 "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetEntitlement_sync",
1251 "title": "cloudchannel GetEntitlement Sample",
1252 "description": "GetEntitlement returns the requested [Entitlement][google.cloud.channel.v1.Entitlement]\nresource.\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: The customer entitlement was not found.\n\nReturn value: \nThe requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.",
1253 "file": "CloudChannelClient/GetEntitlement/main.go",
1254 "language": "GO",
1255 "clientMethod": {
1256 "shortName": "GetEntitlement",
1257 "fullName": "google.cloud.channel.v1.CloudChannelClient.GetEntitlement",
1258 "parameters": [
1259 {
1260 "type": "context.Context",
1261 "name": "ctx"
1262 },
1263 {
1264 "type": "channelpb.GetEntitlementRequest",
1265 "name": "req"
1266 },
1267 {
1268 "type": "...gax.CallOption",
1269 "name": "opts"
1270 }
1271 ],
1272 "resultType": "*channelpb.Entitlement",
1273 "client": {
1274 "shortName": "CloudChannelClient",
1275 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1276 },
1277 "method": {
1278 "shortName": "GetEntitlement",
1279 "fullName": "google.cloud.channel.v1.CloudChannelService.GetEntitlement",
1280 "service": {
1281 "shortName": "CloudChannelService",
1282 "fullName": "google.cloud.channel.v1.CloudChannelService"
1283 }
1284 }
1285 },
1286 "origin": "API_DEFINITION",
1287 "segments": [
1288 {
1289 "start": 18,
1290 "end": 53,
1291 "type": "FULL"
1292 }
1293 ]
1294 },
1295 {
1296 "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetOperation_sync",
1297 "title": "cloudchannel GetOperation Sample",
1298 "description": "GetOperation is a utility method from google.longrunning.Operations.",
1299 "file": "CloudChannelClient/GetOperation/main.go",
1300 "language": "GO",
1301 "clientMethod": {
1302 "shortName": "GetOperation",
1303 "fullName": "google.cloud.channel.v1.CloudChannelClient.GetOperation",
1304 "parameters": [
1305 {
1306 "type": "context.Context",
1307 "name": "ctx"
1308 },
1309 {
1310 "type": "longrunningpb.GetOperationRequest",
1311 "name": "req"
1312 },
1313 {
1314 "type": "...gax.CallOption",
1315 "name": "opts"
1316 }
1317 ],
1318 "resultType": "*longrunningpb.Operation",
1319 "client": {
1320 "shortName": "CloudChannelClient",
1321 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1322 },
1323 "method": {
1324 "shortName": "GetOperation",
1325 "fullName": "google.longrunning.Operations.GetOperation",
1326 "service": {
1327 "shortName": "Operations",
1328 "fullName": "google.longrunning.Operations"
1329 }
1330 }
1331 },
1332 "origin": "API_DEFINITION",
1333 "segments": [
1334 {
1335 "start": 18,
1336 "end": 53,
1337 "type": "FULL"
1338 }
1339 ]
1340 },
1341 {
1342 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ImportCustomer_sync",
1343 "title": "cloudchannel ImportCustomer Sample",
1344 "description": "ImportCustomer imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud\nIdentity associated with the provided Cloud Identity ID or domain before a\nTransferEntitlements call. If a linked Customer already exists and\noverwrite_if_exists is true, it will update that Customer's data.\n\nPossible error codes: \n\n* PERMISSION_DENIED: \n* The reseller account making the request is different from the\nreseller account in the API request.\n* You are not authorized to import the customer. See\nhttps: //support.google.com/channelservices/answer/9759265\n* NOT_FOUND: Cloud Identity doesn't exist or was deleted.\n* INVALID_ARGUMENT: Required parameters are missing, or the auth_token is\nexpired or invalid.\n* ALREADY_EXISTS: A customer already exists and has conflicting critical\nfields. Requires an overwrite.\n\nReturn value: \nThe [Customer][google.cloud.channel.v1.Customer].",
1345 "file": "CloudChannelClient/ImportCustomer/main.go",
1346 "language": "GO",
1347 "clientMethod": {
1348 "shortName": "ImportCustomer",
1349 "fullName": "google.cloud.channel.v1.CloudChannelClient.ImportCustomer",
1350 "parameters": [
1351 {
1352 "type": "context.Context",
1353 "name": "ctx"
1354 },
1355 {
1356 "type": "channelpb.ImportCustomerRequest",
1357 "name": "req"
1358 },
1359 {
1360 "type": "...gax.CallOption",
1361 "name": "opts"
1362 }
1363 ],
1364 "resultType": "*channelpb.Customer",
1365 "client": {
1366 "shortName": "CloudChannelClient",
1367 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1368 },
1369 "method": {
1370 "shortName": "ImportCustomer",
1371 "fullName": "google.cloud.channel.v1.CloudChannelService.ImportCustomer",
1372 "service": {
1373 "shortName": "CloudChannelService",
1374 "fullName": "google.cloud.channel.v1.CloudChannelService"
1375 }
1376 }
1377 },
1378 "origin": "API_DEFINITION",
1379 "segments": [
1380 {
1381 "start": 18,
1382 "end": 53,
1383 "type": "FULL"
1384 }
1385 ]
1386 },
1387 {
1388 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerLinks_sync",
1389 "title": "cloudchannel ListChannelPartnerLinks Sample",
1390 "description": "ListChannelPartnerLinks list [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s\nbelonging to a distributor. You 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\nReturn value: \nThe list of the distributor account's\n[ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resources.",
1391 "file": "CloudChannelClient/ListChannelPartnerLinks/main.go",
1392 "language": "GO",
1393 "clientMethod": {
1394 "shortName": "ListChannelPartnerLinks",
1395 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListChannelPartnerLinks",
1396 "parameters": [
1397 {
1398 "type": "context.Context",
1399 "name": "ctx"
1400 },
1401 {
1402 "type": "channelpb.ListChannelPartnerLinksRequest",
1403 "name": "req"
1404 },
1405 {
1406 "type": "...gax.CallOption",
1407 "name": "opts"
1408 }
1409 ],
1410 "resultType": "ChannelPartnerLinkIterator",
1411 "client": {
1412 "shortName": "CloudChannelClient",
1413 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1414 },
1415 "method": {
1416 "shortName": "ListChannelPartnerLinks",
1417 "fullName": "google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks",
1418 "service": {
1419 "shortName": "CloudChannelService",
1420 "fullName": "google.cloud.channel.v1.CloudChannelService"
1421 }
1422 }
1423 },
1424 "origin": "API_DEFINITION",
1425 "segments": [
1426 {
1427 "start": 18,
1428 "end": 66,
1429 "type": "FULL"
1430 }
1431 ]
1432 },
1433 {
1434 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerRepricingConfigs_sync",
1435 "title": "cloudchannel ListChannelPartnerRepricingConfigs Sample",
1436 "description": "ListChannelPartnerRepricingConfigs lists information about how a Reseller modifies their bill before sending\nit to a ChannelPartner.\n\nPossible Error Codes: \n\n* PERMISSION_DENIED: If the account making the request and the account\nbeing queried are different.\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\n[ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]\nresources. The data for each resource is displayed in the ascending order\nof: \n\n* Channel Partner ID\n* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]\n* [ChannelPartnerRepricingConfig.update_time][google.cloud.channel.v1.ChannelPartnerRepricingConfig.update_time]\n\nIf unsuccessful, returns an error.",
1437 "file": "CloudChannelClient/ListChannelPartnerRepricingConfigs/main.go",
1438 "language": "GO",
1439 "clientMethod": {
1440 "shortName": "ListChannelPartnerRepricingConfigs",
1441 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListChannelPartnerRepricingConfigs",
1442 "parameters": [
1443 {
1444 "type": "context.Context",
1445 "name": "ctx"
1446 },
1447 {
1448 "type": "channelpb.ListChannelPartnerRepricingConfigsRequest",
1449 "name": "req"
1450 },
1451 {
1452 "type": "...gax.CallOption",
1453 "name": "opts"
1454 }
1455 ],
1456 "resultType": "ChannelPartnerRepricingConfigIterator",
1457 "client": {
1458 "shortName": "CloudChannelClient",
1459 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1460 },
1461 "method": {
1462 "shortName": "ListChannelPartnerRepricingConfigs",
1463 "fullName": "google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs",
1464 "service": {
1465 "shortName": "CloudChannelService",
1466 "fullName": "google.cloud.channel.v1.CloudChannelService"
1467 }
1468 }
1469 },
1470 "origin": "API_DEFINITION",
1471 "segments": [
1472 {
1473 "start": 18,
1474 "end": 66,
1475 "type": "FULL"
1476 }
1477 ]
1478 },
1479 {
1480 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListCustomerRepricingConfigs_sync",
1481 "title": "cloudchannel ListCustomerRepricingConfigs Sample",
1482 "description": "ListCustomerRepricingConfigs lists information about how a Reseller modifies their bill before sending\nit to a Customer.\n\nPossible Error Codes: \n\n* PERMISSION_DENIED: If the account making the request and the account\nbeing queried are different.\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\n[CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig]\nresources. The data for each resource is displayed in the ascending order\nof: \n\n* Customer ID\n* [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]\n* [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]\n* [CustomerRepricingConfig.update_time][google.cloud.channel.v1.CustomerRepricingConfig.update_time]\n\nIf unsuccessful, returns an error.",
1483 "file": "CloudChannelClient/ListCustomerRepricingConfigs/main.go",
1484 "language": "GO",
1485 "clientMethod": {
1486 "shortName": "ListCustomerRepricingConfigs",
1487 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListCustomerRepricingConfigs",
1488 "parameters": [
1489 {
1490 "type": "context.Context",
1491 "name": "ctx"
1492 },
1493 {
1494 "type": "channelpb.ListCustomerRepricingConfigsRequest",
1495 "name": "req"
1496 },
1497 {
1498 "type": "...gax.CallOption",
1499 "name": "opts"
1500 }
1501 ],
1502 "resultType": "CustomerRepricingConfigIterator",
1503 "client": {
1504 "shortName": "CloudChannelClient",
1505 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1506 },
1507 "method": {
1508 "shortName": "ListCustomerRepricingConfigs",
1509 "fullName": "google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs",
1510 "service": {
1511 "shortName": "CloudChannelService",
1512 "fullName": "google.cloud.channel.v1.CloudChannelService"
1513 }
1514 }
1515 },
1516 "origin": "API_DEFINITION",
1517 "segments": [
1518 {
1519 "start": 18,
1520 "end": 66,
1521 "type": "FULL"
1522 }
1523 ]
1524 },
1525 {
1526 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListCustomers_sync",
1527 "title": "cloudchannel ListCustomers Sample",
1528 "description": "ListCustomers list [Customer][google.cloud.channel.v1.Customer]s.\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\nReturn value: \nList of [Customer][google.cloud.channel.v1.Customer]s, or an empty list if\nthere are no customers.",
1529 "file": "CloudChannelClient/ListCustomers/main.go",
1530 "language": "GO",
1531 "clientMethod": {
1532 "shortName": "ListCustomers",
1533 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListCustomers",
1534 "parameters": [
1535 {
1536 "type": "context.Context",
1537 "name": "ctx"
1538 },
1539 {
1540 "type": "channelpb.ListCustomersRequest",
1541 "name": "req"
1542 },
1543 {
1544 "type": "...gax.CallOption",
1545 "name": "opts"
1546 }
1547 ],
1548 "resultType": "CustomerIterator",
1549 "client": {
1550 "shortName": "CloudChannelClient",
1551 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1552 },
1553 "method": {
1554 "shortName": "ListCustomers",
1555 "fullName": "google.cloud.channel.v1.CloudChannelService.ListCustomers",
1556 "service": {
1557 "shortName": "CloudChannelService",
1558 "fullName": "google.cloud.channel.v1.CloudChannelService"
1559 }
1560 }
1561 },
1562 "origin": "API_DEFINITION",
1563 "segments": [
1564 {
1565 "start": 18,
1566 "end": 66,
1567 "type": "FULL"
1568 }
1569 ]
1570 },
1571 {
1572 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListEntitlementChanges_sync",
1573 "title": "cloudchannel ListEntitlementChanges Sample",
1574 "description": "ListEntitlementChanges list entitlement history.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The reseller account making the request and the\nprovided reseller account are different.\n* INVALID_ARGUMENT: Missing or invalid required fields in the request.\n* NOT_FOUND: The parent resource doesn't exist. Usually the result of an\ninvalid name parameter.\n* INTERNAL: Any non-user error related to a technical issue in the backend.\nIn this case, contact CloudChannel support.\n* UNKNOWN: Any non-user error related to a technical issue in the backend.\nIn this case, contact Cloud Channel support.\n\nReturn value: \nList of [EntitlementChange][google.cloud.channel.v1.EntitlementChange]s.",
1575 "file": "CloudChannelClient/ListEntitlementChanges/main.go",
1576 "language": "GO",
1577 "clientMethod": {
1578 "shortName": "ListEntitlementChanges",
1579 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListEntitlementChanges",
1580 "parameters": [
1581 {
1582 "type": "context.Context",
1583 "name": "ctx"
1584 },
1585 {
1586 "type": "channelpb.ListEntitlementChangesRequest",
1587 "name": "req"
1588 },
1589 {
1590 "type": "...gax.CallOption",
1591 "name": "opts"
1592 }
1593 ],
1594 "resultType": "EntitlementChangeIterator",
1595 "client": {
1596 "shortName": "CloudChannelClient",
1597 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1598 },
1599 "method": {
1600 "shortName": "ListEntitlementChanges",
1601 "fullName": "google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges",
1602 "service": {
1603 "shortName": "CloudChannelService",
1604 "fullName": "google.cloud.channel.v1.CloudChannelService"
1605 }
1606 }
1607 },
1608 "origin": "API_DEFINITION",
1609 "segments": [
1610 {
1611 "start": 18,
1612 "end": 66,
1613 "type": "FULL"
1614 }
1615 ]
1616 },
1617 {
1618 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListEntitlements_sync",
1619 "title": "cloudchannel ListEntitlements Sample",
1620 "description": "ListEntitlements lists [Entitlement][google.cloud.channel.v1.Entitlement]s belonging to a\ncustomer.\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\nReturn value: \nA list of the customer's\n[Entitlement][google.cloud.channel.v1.Entitlement]s.",
1621 "file": "CloudChannelClient/ListEntitlements/main.go",
1622 "language": "GO",
1623 "clientMethod": {
1624 "shortName": "ListEntitlements",
1625 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListEntitlements",
1626 "parameters": [
1627 {
1628 "type": "context.Context",
1629 "name": "ctx"
1630 },
1631 {
1632 "type": "channelpb.ListEntitlementsRequest",
1633 "name": "req"
1634 },
1635 {
1636 "type": "...gax.CallOption",
1637 "name": "opts"
1638 }
1639 ],
1640 "resultType": "EntitlementIterator",
1641 "client": {
1642 "shortName": "CloudChannelClient",
1643 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1644 },
1645 "method": {
1646 "shortName": "ListEntitlements",
1647 "fullName": "google.cloud.channel.v1.CloudChannelService.ListEntitlements",
1648 "service": {
1649 "shortName": "CloudChannelService",
1650 "fullName": "google.cloud.channel.v1.CloudChannelService"
1651 }
1652 }
1653 },
1654 "origin": "API_DEFINITION",
1655 "segments": [
1656 {
1657 "start": 18,
1658 "end": 66,
1659 "type": "FULL"
1660 }
1661 ]
1662 },
1663 {
1664 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListOffers_sync",
1665 "title": "cloudchannel ListOffers Sample",
1666 "description": "ListOffers lists the Offers the reseller can sell.\n\nPossible error codes: \n\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.",
1667 "file": "CloudChannelClient/ListOffers/main.go",
1668 "language": "GO",
1669 "clientMethod": {
1670 "shortName": "ListOffers",
1671 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListOffers",
1672 "parameters": [
1673 {
1674 "type": "context.Context",
1675 "name": "ctx"
1676 },
1677 {
1678 "type": "channelpb.ListOffersRequest",
1679 "name": "req"
1680 },
1681 {
1682 "type": "...gax.CallOption",
1683 "name": "opts"
1684 }
1685 ],
1686 "resultType": "OfferIterator",
1687 "client": {
1688 "shortName": "CloudChannelClient",
1689 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1690 },
1691 "method": {
1692 "shortName": "ListOffers",
1693 "fullName": "google.cloud.channel.v1.CloudChannelService.ListOffers",
1694 "service": {
1695 "shortName": "CloudChannelService",
1696 "fullName": "google.cloud.channel.v1.CloudChannelService"
1697 }
1698 }
1699 },
1700 "origin": "API_DEFINITION",
1701 "segments": [
1702 {
1703 "start": 18,
1704 "end": 66,
1705 "type": "FULL"
1706 }
1707 ]
1708 },
1709 {
1710 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListOperations_sync",
1711 "title": "cloudchannel ListOperations Sample",
1712 "description": "ListOperations is a utility method from google.longrunning.Operations.",
1713 "file": "CloudChannelClient/ListOperations/main.go",
1714 "language": "GO",
1715 "clientMethod": {
1716 "shortName": "ListOperations",
1717 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListOperations",
1718 "parameters": [
1719 {
1720 "type": "context.Context",
1721 "name": "ctx"
1722 },
1723 {
1724 "type": "longrunningpb.ListOperationsRequest",
1725 "name": "req"
1726 },
1727 {
1728 "type": "...gax.CallOption",
1729 "name": "opts"
1730 }
1731 ],
1732 "resultType": "OperationIterator",
1733 "client": {
1734 "shortName": "CloudChannelClient",
1735 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1736 },
1737 "method": {
1738 "shortName": "ListOperations",
1739 "fullName": "google.longrunning.Operations.ListOperations",
1740 "service": {
1741 "shortName": "Operations",
1742 "fullName": "google.longrunning.Operations"
1743 }
1744 }
1745 },
1746 "origin": "API_DEFINITION",
1747 "segments": [
1748 {
1749 "start": 18,
1750 "end": 66,
1751 "type": "FULL"
1752 }
1753 ]
1754 },
1755 {
1756 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListProducts_sync",
1757 "title": "cloudchannel ListProducts Sample",
1758 "description": "ListProducts lists the Products the reseller is authorized to sell.\n\nPossible error codes: \n\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.",
1759 "file": "CloudChannelClient/ListProducts/main.go",
1760 "language": "GO",
1761 "clientMethod": {
1762 "shortName": "ListProducts",
1763 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListProducts",
1764 "parameters": [
1765 {
1766 "type": "context.Context",
1767 "name": "ctx"
1768 },
1769 {
1770 "type": "channelpb.ListProductsRequest",
1771 "name": "req"
1772 },
1773 {
1774 "type": "...gax.CallOption",
1775 "name": "opts"
1776 }
1777 ],
1778 "resultType": "ProductIterator",
1779 "client": {
1780 "shortName": "CloudChannelClient",
1781 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1782 },
1783 "method": {
1784 "shortName": "ListProducts",
1785 "fullName": "google.cloud.channel.v1.CloudChannelService.ListProducts",
1786 "service": {
1787 "shortName": "CloudChannelService",
1788 "fullName": "google.cloud.channel.v1.CloudChannelService"
1789 }
1790 }
1791 },
1792 "origin": "API_DEFINITION",
1793 "segments": [
1794 {
1795 "start": 18,
1796 "end": 66,
1797 "type": "FULL"
1798 }
1799 ]
1800 },
1801 {
1802 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListPurchasableOffers_sync",
1803 "title": "cloudchannel ListPurchasableOffers Sample",
1804 "description": "ListPurchasableOffers lists the following: \n\n* Offers that you can purchase for a customer.\n* Offers that you can change for an entitlement.\n\nPossible error codes: \n\n* PERMISSION_DENIED: \n* The customer doesn't belong to the reseller\n* The reseller is not authorized to transact on this Product. See\nhttps: //support.google.com/channelservices/answer/9759265\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.",
1805 "file": "CloudChannelClient/ListPurchasableOffers/main.go",
1806 "language": "GO",
1807 "clientMethod": {
1808 "shortName": "ListPurchasableOffers",
1809 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListPurchasableOffers",
1810 "parameters": [
1811 {
1812 "type": "context.Context",
1813 "name": "ctx"
1814 },
1815 {
1816 "type": "channelpb.ListPurchasableOffersRequest",
1817 "name": "req"
1818 },
1819 {
1820 "type": "...gax.CallOption",
1821 "name": "opts"
1822 }
1823 ],
1824 "resultType": "PurchasableOfferIterator",
1825 "client": {
1826 "shortName": "CloudChannelClient",
1827 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1828 },
1829 "method": {
1830 "shortName": "ListPurchasableOffers",
1831 "fullName": "google.cloud.channel.v1.CloudChannelService.ListPurchasableOffers",
1832 "service": {
1833 "shortName": "CloudChannelService",
1834 "fullName": "google.cloud.channel.v1.CloudChannelService"
1835 }
1836 }
1837 },
1838 "origin": "API_DEFINITION",
1839 "segments": [
1840 {
1841 "start": 18,
1842 "end": 66,
1843 "type": "FULL"
1844 }
1845 ]
1846 },
1847 {
1848 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListPurchasableSkus_sync",
1849 "title": "cloudchannel ListPurchasableSkus Sample",
1850 "description": "ListPurchasableSkus lists the following: \n\n* SKUs that you can purchase for a customer\n* SKUs that you can upgrade or downgrade for an entitlement.\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.",
1851 "file": "CloudChannelClient/ListPurchasableSkus/main.go",
1852 "language": "GO",
1853 "clientMethod": {
1854 "shortName": "ListPurchasableSkus",
1855 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListPurchasableSkus",
1856 "parameters": [
1857 {
1858 "type": "context.Context",
1859 "name": "ctx"
1860 },
1861 {
1862 "type": "channelpb.ListPurchasableSkusRequest",
1863 "name": "req"
1864 },
1865 {
1866 "type": "...gax.CallOption",
1867 "name": "opts"
1868 }
1869 ],
1870 "resultType": "PurchasableSkuIterator",
1871 "client": {
1872 "shortName": "CloudChannelClient",
1873 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1874 },
1875 "method": {
1876 "shortName": "ListPurchasableSkus",
1877 "fullName": "google.cloud.channel.v1.CloudChannelService.ListPurchasableSkus",
1878 "service": {
1879 "shortName": "CloudChannelService",
1880 "fullName": "google.cloud.channel.v1.CloudChannelService"
1881 }
1882 }
1883 },
1884 "origin": "API_DEFINITION",
1885 "segments": [
1886 {
1887 "start": 18,
1888 "end": 66,
1889 "type": "FULL"
1890 }
1891 ]
1892 },
1893 {
1894 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListSkuGroupBillableSkus_sync",
1895 "title": "cloudchannel ListSkuGroupBillableSkus Sample",
1896 "description": "ListSkuGroupBillableSkus lists the Billable SKUs in a given SKU group.\n\nPossible error codes: \nPERMISSION_DENIED: If the account making the request and the account\nbeing queried for are different, or the account doesn't exist.\nINVALID_ARGUMENT: Missing or invalid required parameters in the\nrequest.\nINTERNAL: Any non-user error related to technical issue in the\nbackend. In this case, contact cloud channel support.\n\nReturn Value: \nIf successful, the [BillableSku][google.cloud.channel.v1.BillableSku]\nresources. The data for each resource is displayed in the ascending order\nof: \n\n* [BillableSku.service_display_name][google.cloud.channel.v1.BillableSku.service_display_name]\n* [BillableSku.sku_display_name][google.cloud.channel.v1.BillableSku.sku_display_name]\n\nIf unsuccessful, returns an error.",
1897 "file": "CloudChannelClient/ListSkuGroupBillableSkus/main.go",
1898 "language": "GO",
1899 "clientMethod": {
1900 "shortName": "ListSkuGroupBillableSkus",
1901 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListSkuGroupBillableSkus",
1902 "parameters": [
1903 {
1904 "type": "context.Context",
1905 "name": "ctx"
1906 },
1907 {
1908 "type": "channelpb.ListSkuGroupBillableSkusRequest",
1909 "name": "req"
1910 },
1911 {
1912 "type": "...gax.CallOption",
1913 "name": "opts"
1914 }
1915 ],
1916 "resultType": "BillableSkuIterator",
1917 "client": {
1918 "shortName": "CloudChannelClient",
1919 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1920 },
1921 "method": {
1922 "shortName": "ListSkuGroupBillableSkus",
1923 "fullName": "google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus",
1924 "service": {
1925 "shortName": "CloudChannelService",
1926 "fullName": "google.cloud.channel.v1.CloudChannelService"
1927 }
1928 }
1929 },
1930 "origin": "API_DEFINITION",
1931 "segments": [
1932 {
1933 "start": 18,
1934 "end": 66,
1935 "type": "FULL"
1936 }
1937 ]
1938 },
1939 {
1940 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListSkuGroups_sync",
1941 "title": "cloudchannel ListSkuGroups Sample",
1942 "description": "ListSkuGroups lists the Rebilling supported SKU groups the account is authorized to\nsell.\nReference: https: //cloud.google.com/skus/sku-groups\n\nPossible Error Codes: \n\n* PERMISSION_DENIED: If the account making the request and the account\nbeing queried are different, or the account doesn't exist.\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 [SkuGroup][google.cloud.channel.v1.SkuGroup] resources.\nThe data for each resource is displayed in the alphabetical order of SKU\ngroup display name.\nThe data for each resource is displayed in the ascending order of\n[SkuGroup.display_name][google.cloud.channel.v1.SkuGroup.display_name]\n\nIf unsuccessful, returns an error.",
1943 "file": "CloudChannelClient/ListSkuGroups/main.go",
1944 "language": "GO",
1945 "clientMethod": {
1946 "shortName": "ListSkuGroups",
1947 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListSkuGroups",
1948 "parameters": [
1949 {
1950 "type": "context.Context",
1951 "name": "ctx"
1952 },
1953 {
1954 "type": "channelpb.ListSkuGroupsRequest",
1955 "name": "req"
1956 },
1957 {
1958 "type": "...gax.CallOption",
1959 "name": "opts"
1960 }
1961 ],
1962 "resultType": "SkuGroupIterator",
1963 "client": {
1964 "shortName": "CloudChannelClient",
1965 "fullName": "google.cloud.channel.v1.CloudChannelClient"
1966 },
1967 "method": {
1968 "shortName": "ListSkuGroups",
1969 "fullName": "google.cloud.channel.v1.CloudChannelService.ListSkuGroups",
1970 "service": {
1971 "shortName": "CloudChannelService",
1972 "fullName": "google.cloud.channel.v1.CloudChannelService"
1973 }
1974 }
1975 },
1976 "origin": "API_DEFINITION",
1977 "segments": [
1978 {
1979 "start": 18,
1980 "end": 66,
1981 "type": "FULL"
1982 }
1983 ]
1984 },
1985 {
1986 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListSkus_sync",
1987 "title": "cloudchannel ListSkus Sample",
1988 "description": "ListSkus lists the SKUs for a product the reseller is authorized to sell.\n\nPossible error codes: \n\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.",
1989 "file": "CloudChannelClient/ListSkus/main.go",
1990 "language": "GO",
1991 "clientMethod": {
1992 "shortName": "ListSkus",
1993 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListSkus",
1994 "parameters": [
1995 {
1996 "type": "context.Context",
1997 "name": "ctx"
1998 },
1999 {
2000 "type": "channelpb.ListSkusRequest",
2001 "name": "req"
2002 },
2003 {
2004 "type": "...gax.CallOption",
2005 "name": "opts"
2006 }
2007 ],
2008 "resultType": "SkuIterator",
2009 "client": {
2010 "shortName": "CloudChannelClient",
2011 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2012 },
2013 "method": {
2014 "shortName": "ListSkus",
2015 "fullName": "google.cloud.channel.v1.CloudChannelService.ListSkus",
2016 "service": {
2017 "shortName": "CloudChannelService",
2018 "fullName": "google.cloud.channel.v1.CloudChannelService"
2019 }
2020 }
2021 },
2022 "origin": "API_DEFINITION",
2023 "segments": [
2024 {
2025 "start": 18,
2026 "end": 66,
2027 "type": "FULL"
2028 }
2029 ]
2030 },
2031 {
2032 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListSubscribers_sync",
2033 "title": "cloudchannel ListSubscribers Sample",
2034 "description": "ListSubscribers lists service accounts with subscriber privileges on the Cloud Pub/Sub\ntopic created for this Channel Services account.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The reseller account making the request and the\nprovided reseller account are different, or the impersonated user\nis not a super admin.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* NOT_FOUND: The topic resource doesn't exist.\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: \nA list of service email addresses.",
2035 "file": "CloudChannelClient/ListSubscribers/main.go",
2036 "language": "GO",
2037 "clientMethod": {
2038 "shortName": "ListSubscribers",
2039 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListSubscribers",
2040 "parameters": [
2041 {
2042 "type": "context.Context",
2043 "name": "ctx"
2044 },
2045 {
2046 "type": "channelpb.ListSubscribersRequest",
2047 "name": "req"
2048 },
2049 {
2050 "type": "...gax.CallOption",
2051 "name": "opts"
2052 }
2053 ],
2054 "resultType": "StringIterator",
2055 "client": {
2056 "shortName": "CloudChannelClient",
2057 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2058 },
2059 "method": {
2060 "shortName": "ListSubscribers",
2061 "fullName": "google.cloud.channel.v1.CloudChannelService.ListSubscribers",
2062 "service": {
2063 "shortName": "CloudChannelService",
2064 "fullName": "google.cloud.channel.v1.CloudChannelService"
2065 }
2066 }
2067 },
2068 "origin": "API_DEFINITION",
2069 "segments": [
2070 {
2071 "start": 18,
2072 "end": 66,
2073 "type": "FULL"
2074 }
2075 ]
2076 },
2077 {
2078 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListTransferableOffers_sync",
2079 "title": "cloudchannel ListTransferableOffers Sample",
2080 "description": "ListTransferableOffers list [TransferableOffer][google.cloud.channel.v1.TransferableOffer]s of a\ncustomer based on Cloud Identity ID or Customer Name in the request.\n\nUse this method when a reseller gets the entitlement information of an\nunowned customer. The reseller should provide the customer's\nCloud Identity ID or Customer Name.\n\nPossible error codes: \n\n* PERMISSION_DENIED: \n* The customer doesn't belong to the reseller and has no auth token.\n* The customer provided incorrect reseller information when generating\nauth token.\n* The reseller account making the request is different\nfrom the reseller account in the query.\n* The reseller is not authorized to transact on this Product. See\nhttps: //support.google.com/channelservices/answer/9759265\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n\nReturn value: \nList of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for\nthe given customer and SKU.",
2081 "file": "CloudChannelClient/ListTransferableOffers/main.go",
2082 "language": "GO",
2083 "clientMethod": {
2084 "shortName": "ListTransferableOffers",
2085 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListTransferableOffers",
2086 "parameters": [
2087 {
2088 "type": "context.Context",
2089 "name": "ctx"
2090 },
2091 {
2092 "type": "channelpb.ListTransferableOffersRequest",
2093 "name": "req"
2094 },
2095 {
2096 "type": "...gax.CallOption",
2097 "name": "opts"
2098 }
2099 ],
2100 "resultType": "TransferableOfferIterator",
2101 "client": {
2102 "shortName": "CloudChannelClient",
2103 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2104 },
2105 "method": {
2106 "shortName": "ListTransferableOffers",
2107 "fullName": "google.cloud.channel.v1.CloudChannelService.ListTransferableOffers",
2108 "service": {
2109 "shortName": "CloudChannelService",
2110 "fullName": "google.cloud.channel.v1.CloudChannelService"
2111 }
2112 }
2113 },
2114 "origin": "API_DEFINITION",
2115 "segments": [
2116 {
2117 "start": 18,
2118 "end": 66,
2119 "type": "FULL"
2120 }
2121 ]
2122 },
2123 {
2124 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListTransferableSkus_sync",
2125 "title": "cloudchannel ListTransferableSkus Sample",
2126 "description": "ListTransferableSkus list [TransferableSku][google.cloud.channel.v1.TransferableSku]s of a\ncustomer based on the Cloud Identity ID or Customer Name in the request.\n\nUse this method to list the entitlements information of an\nunowned customer. You should provide the customer's\nCloud Identity ID or Customer Name.\n\nPossible error codes: \n\n* PERMISSION_DENIED: \n* The customer doesn't belong to the reseller and has no auth token.\n* The supplied auth token is invalid.\n* The reseller account making the request is different\nfrom the reseller account in the query.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n\nReturn value: \nA list of the customer's\n[TransferableSku][google.cloud.channel.v1.TransferableSku].",
2127 "file": "CloudChannelClient/ListTransferableSkus/main.go",
2128 "language": "GO",
2129 "clientMethod": {
2130 "shortName": "ListTransferableSkus",
2131 "fullName": "google.cloud.channel.v1.CloudChannelClient.ListTransferableSkus",
2132 "parameters": [
2133 {
2134 "type": "context.Context",
2135 "name": "ctx"
2136 },
2137 {
2138 "type": "channelpb.ListTransferableSkusRequest",
2139 "name": "req"
2140 },
2141 {
2142 "type": "...gax.CallOption",
2143 "name": "opts"
2144 }
2145 ],
2146 "resultType": "TransferableSkuIterator",
2147 "client": {
2148 "shortName": "CloudChannelClient",
2149 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2150 },
2151 "method": {
2152 "shortName": "ListTransferableSkus",
2153 "fullName": "google.cloud.channel.v1.CloudChannelService.ListTransferableSkus",
2154 "service": {
2155 "shortName": "CloudChannelService",
2156 "fullName": "google.cloud.channel.v1.CloudChannelService"
2157 }
2158 }
2159 },
2160 "origin": "API_DEFINITION",
2161 "segments": [
2162 {
2163 "start": 18,
2164 "end": 66,
2165 "type": "FULL"
2166 }
2167 ]
2168 },
2169 {
2170 "regionTag": "cloudchannel_v1_generated_CloudChannelService_LookupOffer_sync",
2171 "title": "cloudchannel LookupOffer Sample",
2172 "description": "LookupOffer returns the requested [Offer][google.cloud.channel.v1.Offer] resource.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The entitlement doesn't belong to the reseller.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* NOT_FOUND: Entitlement or offer was not found.\n\nReturn value: \nThe [Offer][google.cloud.channel.v1.Offer] resource.",
2173 "file": "CloudChannelClient/LookupOffer/main.go",
2174 "language": "GO",
2175 "clientMethod": {
2176 "shortName": "LookupOffer",
2177 "fullName": "google.cloud.channel.v1.CloudChannelClient.LookupOffer",
2178 "parameters": [
2179 {
2180 "type": "context.Context",
2181 "name": "ctx"
2182 },
2183 {
2184 "type": "channelpb.LookupOfferRequest",
2185 "name": "req"
2186 },
2187 {
2188 "type": "...gax.CallOption",
2189 "name": "opts"
2190 }
2191 ],
2192 "resultType": "*channelpb.Offer",
2193 "client": {
2194 "shortName": "CloudChannelClient",
2195 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2196 },
2197 "method": {
2198 "shortName": "LookupOffer",
2199 "fullName": "google.cloud.channel.v1.CloudChannelService.LookupOffer",
2200 "service": {
2201 "shortName": "CloudChannelService",
2202 "fullName": "google.cloud.channel.v1.CloudChannelService"
2203 }
2204 }
2205 },
2206 "origin": "API_DEFINITION",
2207 "segments": [
2208 {
2209 "start": 18,
2210 "end": 53,
2211 "type": "FULL"
2212 }
2213 ]
2214 },
2215 {
2216 "regionTag": "cloudchannel_v1_generated_CloudChannelService_ProvisionCloudIdentity_sync",
2217 "title": "cloudchannel ProvisionCloudIdentity Sample",
2218 "description": "ProvisionCloudIdentity creates a Cloud Identity for the given customer using the customer's\ninformation, or the information provided here.\n\nPossible error codes: \n\n* PERMISSION_DENIED: \n* The customer doesn't belong to the reseller.\n* You are not authorized to provision cloud identity id. See\nhttps: //support.google.com/channelservices/answer/9759265\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* NOT_FOUND: The customer was not found.\n* ALREADY_EXISTS: The customer's primary email already exists. Retry\nafter changing the customer's primary contact email.\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 contains an\ninstance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].",
2219 "file": "CloudChannelClient/ProvisionCloudIdentity/main.go",
2220 "language": "GO",
2221 "clientMethod": {
2222 "shortName": "ProvisionCloudIdentity",
2223 "fullName": "google.cloud.channel.v1.CloudChannelClient.ProvisionCloudIdentity",
2224 "parameters": [
2225 {
2226 "type": "context.Context",
2227 "name": "ctx"
2228 },
2229 {
2230 "type": "channelpb.ProvisionCloudIdentityRequest",
2231 "name": "req"
2232 },
2233 {
2234 "type": "...gax.CallOption",
2235 "name": "opts"
2236 }
2237 ],
2238 "resultType": "ProvisionCloudIdentityOperation",
2239 "client": {
2240 "shortName": "CloudChannelClient",
2241 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2242 },
2243 "method": {
2244 "shortName": "ProvisionCloudIdentity",
2245 "fullName": "google.cloud.channel.v1.CloudChannelService.ProvisionCloudIdentity",
2246 "service": {
2247 "shortName": "CloudChannelService",
2248 "fullName": "google.cloud.channel.v1.CloudChannelService"
2249 }
2250 }
2251 },
2252 "origin": "API_DEFINITION",
2253 "segments": [
2254 {
2255 "start": 18,
2256 "end": 58,
2257 "type": "FULL"
2258 }
2259 ]
2260 },
2261 {
2262 "regionTag": "cloudchannel_v1_generated_CloudChannelService_QueryEligibleBillingAccounts_sync",
2263 "title": "cloudchannel QueryEligibleBillingAccounts Sample",
2264 "description": "QueryEligibleBillingAccounts lists the billing accounts that are eligible to purchase particular SKUs\nfor a given customer.\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\nReturn value: \nBased on the provided list of SKUs, returns a list of SKU groups that must\nbe purchased using the same billing account and the billing accounts\neligible to purchase each SKU group.",
2265 "file": "CloudChannelClient/QueryEligibleBillingAccounts/main.go",
2266 "language": "GO",
2267 "clientMethod": {
2268 "shortName": "QueryEligibleBillingAccounts",
2269 "fullName": "google.cloud.channel.v1.CloudChannelClient.QueryEligibleBillingAccounts",
2270 "parameters": [
2271 {
2272 "type": "context.Context",
2273 "name": "ctx"
2274 },
2275 {
2276 "type": "channelpb.QueryEligibleBillingAccountsRequest",
2277 "name": "req"
2278 },
2279 {
2280 "type": "...gax.CallOption",
2281 "name": "opts"
2282 }
2283 ],
2284 "resultType": "*channelpb.QueryEligibleBillingAccountsResponse",
2285 "client": {
2286 "shortName": "CloudChannelClient",
2287 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2288 },
2289 "method": {
2290 "shortName": "QueryEligibleBillingAccounts",
2291 "fullName": "google.cloud.channel.v1.CloudChannelService.QueryEligibleBillingAccounts",
2292 "service": {
2293 "shortName": "CloudChannelService",
2294 "fullName": "google.cloud.channel.v1.CloudChannelService"
2295 }
2296 }
2297 },
2298 "origin": "API_DEFINITION",
2299 "segments": [
2300 {
2301 "start": 18,
2302 "end": 53,
2303 "type": "FULL"
2304 }
2305 ]
2306 },
2307 {
2308 "regionTag": "cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_sync",
2309 "title": "cloudchannel RegisterSubscriber Sample",
2310 "description": "RegisterSubscriber registers a service account with subscriber privileges on the Cloud Pub/Sub\ntopic for this Channel Services account. After you create a\nsubscriber, you get the events through\n[SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]\n\nPossible error codes: \n\n* PERMISSION_DENIED: The reseller account making the request and the\nprovided reseller account are different, or the impersonated user\nis not a super admin.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\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 topic name with the registered service email address.",
2311 "file": "CloudChannelClient/RegisterSubscriber/main.go",
2312 "language": "GO",
2313 "clientMethod": {
2314 "shortName": "RegisterSubscriber",
2315 "fullName": "google.cloud.channel.v1.CloudChannelClient.RegisterSubscriber",
2316 "parameters": [
2317 {
2318 "type": "context.Context",
2319 "name": "ctx"
2320 },
2321 {
2322 "type": "channelpb.RegisterSubscriberRequest",
2323 "name": "req"
2324 },
2325 {
2326 "type": "...gax.CallOption",
2327 "name": "opts"
2328 }
2329 ],
2330 "resultType": "*channelpb.RegisterSubscriberResponse",
2331 "client": {
2332 "shortName": "CloudChannelClient",
2333 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2334 },
2335 "method": {
2336 "shortName": "RegisterSubscriber",
2337 "fullName": "google.cloud.channel.v1.CloudChannelService.RegisterSubscriber",
2338 "service": {
2339 "shortName": "CloudChannelService",
2340 "fullName": "google.cloud.channel.v1.CloudChannelService"
2341 }
2342 }
2343 },
2344 "origin": "API_DEFINITION",
2345 "segments": [
2346 {
2347 "start": 18,
2348 "end": 53,
2349 "type": "FULL"
2350 }
2351 ]
2352 },
2353 {
2354 "regionTag": "cloudchannel_v1_generated_CloudChannelService_StartPaidService_sync",
2355 "title": "cloudchannel StartPaidService Sample",
2356 "description": "StartPaidService starts paid service for a trial entitlement.\n\nStarts paid service for a trial entitlement immediately. This method is\nonly applicable if a plan is set up for a trial entitlement but has some\ntrial days remaining.\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* FAILED_PRECONDITION/NOT_IN_TRIAL: This method only works for\nentitlement on trial 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].",
2357 "file": "CloudChannelClient/StartPaidService/main.go",
2358 "language": "GO",
2359 "clientMethod": {
2360 "shortName": "StartPaidService",
2361 "fullName": "google.cloud.channel.v1.CloudChannelClient.StartPaidService",
2362 "parameters": [
2363 {
2364 "type": "context.Context",
2365 "name": "ctx"
2366 },
2367 {
2368 "type": "channelpb.StartPaidServiceRequest",
2369 "name": "req"
2370 },
2371 {
2372 "type": "...gax.CallOption",
2373 "name": "opts"
2374 }
2375 ],
2376 "resultType": "StartPaidServiceOperation",
2377 "client": {
2378 "shortName": "CloudChannelClient",
2379 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2380 },
2381 "method": {
2382 "shortName": "StartPaidService",
2383 "fullName": "google.cloud.channel.v1.CloudChannelService.StartPaidService",
2384 "service": {
2385 "shortName": "CloudChannelService",
2386 "fullName": "google.cloud.channel.v1.CloudChannelService"
2387 }
2388 }
2389 },
2390 "origin": "API_DEFINITION",
2391 "segments": [
2392 {
2393 "start": 18,
2394 "end": 58,
2395 "type": "FULL"
2396 }
2397 ]
2398 },
2399 {
2400 "regionTag": "cloudchannel_v1_generated_CloudChannelService_SuspendEntitlement_sync",
2401 "title": "cloudchannel SuspendEntitlement Sample",
2402 "description": "SuspendEntitlement suspends a previously fulfilled entitlement.\n\nAn entitlement suspension is a long-running operation.\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_ACTIVE: Entitlement is not active.\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].",
2403 "file": "CloudChannelClient/SuspendEntitlement/main.go",
2404 "language": "GO",
2405 "clientMethod": {
2406 "shortName": "SuspendEntitlement",
2407 "fullName": "google.cloud.channel.v1.CloudChannelClient.SuspendEntitlement",
2408 "parameters": [
2409 {
2410 "type": "context.Context",
2411 "name": "ctx"
2412 },
2413 {
2414 "type": "channelpb.SuspendEntitlementRequest",
2415 "name": "req"
2416 },
2417 {
2418 "type": "...gax.CallOption",
2419 "name": "opts"
2420 }
2421 ],
2422 "resultType": "SuspendEntitlementOperation",
2423 "client": {
2424 "shortName": "CloudChannelClient",
2425 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2426 },
2427 "method": {
2428 "shortName": "SuspendEntitlement",
2429 "fullName": "google.cloud.channel.v1.CloudChannelService.SuspendEntitlement",
2430 "service": {
2431 "shortName": "CloudChannelService",
2432 "fullName": "google.cloud.channel.v1.CloudChannelService"
2433 }
2434 }
2435 },
2436 "origin": "API_DEFINITION",
2437 "segments": [
2438 {
2439 "start": 18,
2440 "end": 58,
2441 "type": "FULL"
2442 }
2443 ]
2444 },
2445 {
2446 "regionTag": "cloudchannel_v1_generated_CloudChannelService_TransferEntitlements_sync",
2447 "title": "cloudchannel TransferEntitlements Sample",
2448 "description": "TransferEntitlements transfers customer entitlements to new reseller.\n\nPossible error codes: \n\n* PERMISSION_DENIED: \n* The customer doesn't belong to the reseller.\n* The reseller is not authorized to transact on this Product. See\nhttps: //support.google.com/channelservices/answer/9759265\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* NOT_FOUND: The customer or offer resource was not found.\n* ALREADY_EXISTS: The SKU was already transferred for the customer.\n* CONDITION_NOT_MET or FAILED_PRECONDITION: \n* The SKU requires domain verification to transfer, but the domain is\nnot verified.\n* An Add-On SKU (example, Vault or Drive) is missing the\npre-requisite SKU (example, G Suite Basic).\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* Specify all transferring entitlements.\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].",
2449 "file": "CloudChannelClient/TransferEntitlements/main.go",
2450 "language": "GO",
2451 "clientMethod": {
2452 "shortName": "TransferEntitlements",
2453 "fullName": "google.cloud.channel.v1.CloudChannelClient.TransferEntitlements",
2454 "parameters": [
2455 {
2456 "type": "context.Context",
2457 "name": "ctx"
2458 },
2459 {
2460 "type": "channelpb.TransferEntitlementsRequest",
2461 "name": "req"
2462 },
2463 {
2464 "type": "...gax.CallOption",
2465 "name": "opts"
2466 }
2467 ],
2468 "resultType": "TransferEntitlementsOperation",
2469 "client": {
2470 "shortName": "CloudChannelClient",
2471 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2472 },
2473 "method": {
2474 "shortName": "TransferEntitlements",
2475 "fullName": "google.cloud.channel.v1.CloudChannelService.TransferEntitlements",
2476 "service": {
2477 "shortName": "CloudChannelService",
2478 "fullName": "google.cloud.channel.v1.CloudChannelService"
2479 }
2480 }
2481 },
2482 "origin": "API_DEFINITION",
2483 "segments": [
2484 {
2485 "start": 18,
2486 "end": 58,
2487 "type": "FULL"
2488 }
2489 ]
2490 },
2491 {
2492 "regionTag": "cloudchannel_v1_generated_CloudChannelService_TransferEntitlementsToGoogle_sync",
2493 "title": "cloudchannel TransferEntitlementsToGoogle Sample",
2494 "description": "TransferEntitlementsToGoogle transfers customer entitlements from their current reseller to Google.\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: The customer or offer resource was not found.\n* ALREADY_EXISTS: The SKU was already transferred for the customer.\n* CONDITION_NOT_MET or FAILED_PRECONDITION: \n* The SKU requires domain verification to transfer, but the domain is\nnot verified.\n* An Add-On SKU (example, Vault or Drive) is missing the\npre-requisite SKU (example, G Suite Basic).\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 response will contain\ngoogle.protobuf.Empty on success. The Operation metadata will contain an\ninstance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].",
2495 "file": "CloudChannelClient/TransferEntitlementsToGoogle/main.go",
2496 "language": "GO",
2497 "clientMethod": {
2498 "shortName": "TransferEntitlementsToGoogle",
2499 "fullName": "google.cloud.channel.v1.CloudChannelClient.TransferEntitlementsToGoogle",
2500 "parameters": [
2501 {
2502 "type": "context.Context",
2503 "name": "ctx"
2504 },
2505 {
2506 "type": "channelpb.TransferEntitlementsToGoogleRequest",
2507 "name": "req"
2508 },
2509 {
2510 "type": "...gax.CallOption",
2511 "name": "opts"
2512 }
2513 ],
2514 "resultType": "TransferEntitlementsToGoogleOperation",
2515 "client": {
2516 "shortName": "CloudChannelClient",
2517 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2518 },
2519 "method": {
2520 "shortName": "TransferEntitlementsToGoogle",
2521 "fullName": "google.cloud.channel.v1.CloudChannelService.TransferEntitlementsToGoogle",
2522 "service": {
2523 "shortName": "CloudChannelService",
2524 "fullName": "google.cloud.channel.v1.CloudChannelService"
2525 }
2526 }
2527 },
2528 "origin": "API_DEFINITION",
2529 "segments": [
2530 {
2531 "start": 18,
2532 "end": 56,
2533 "type": "FULL"
2534 }
2535 ]
2536 },
2537 {
2538 "regionTag": "cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_sync",
2539 "title": "cloudchannel UnregisterSubscriber Sample",
2540 "description": "UnregisterSubscriber unregisters a service account with subscriber privileges on the Cloud\nPub/Sub topic created for this Channel Services account. If there are no\nservice accounts left with subscriber privileges, this deletes the topic.\nYou can call ListSubscribers to check for these accounts.\n\nPossible error codes: \n\n* PERMISSION_DENIED: The reseller account making the request and the\nprovided reseller account are different, or the impersonated user\nis not a super admin.\n* INVALID_ARGUMENT: Required request parameters are missing or invalid.\n* NOT_FOUND: The topic resource doesn't exist.\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 topic name that unregistered the service email address.\nReturns a success response if the service email address wasn't registered\nwith the topic.",
2541 "file": "CloudChannelClient/UnregisterSubscriber/main.go",
2542 "language": "GO",
2543 "clientMethod": {
2544 "shortName": "UnregisterSubscriber",
2545 "fullName": "google.cloud.channel.v1.CloudChannelClient.UnregisterSubscriber",
2546 "parameters": [
2547 {
2548 "type": "context.Context",
2549 "name": "ctx"
2550 },
2551 {
2552 "type": "channelpb.UnregisterSubscriberRequest",
2553 "name": "req"
2554 },
2555 {
2556 "type": "...gax.CallOption",
2557 "name": "opts"
2558 }
2559 ],
2560 "resultType": "*channelpb.UnregisterSubscriberResponse",
2561 "client": {
2562 "shortName": "CloudChannelClient",
2563 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2564 },
2565 "method": {
2566 "shortName": "UnregisterSubscriber",
2567 "fullName": "google.cloud.channel.v1.CloudChannelService.UnregisterSubscriber",
2568 "service": {
2569 "shortName": "CloudChannelService",
2570 "fullName": "google.cloud.channel.v1.CloudChannelService"
2571 }
2572 }
2573 },
2574 "origin": "API_DEFINITION",
2575 "segments": [
2576 {
2577 "start": 18,
2578 "end": 53,
2579 "type": "FULL"
2580 }
2581 ]
2582 },
2583 {
2584 "regionTag": "cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerLink_sync",
2585 "title": "cloudchannel UpdateChannelPartnerLink Sample",
2586 "description": "UpdateChannelPartnerLink updates a channel partner link. Distributors call this method to change a\nlink's status. For example, to suspend a partner link.\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: \n* Required request parameters are missing or invalid.\n* Link state cannot change from invited to active or suspended.\n* Cannot send reseller_cloud_identity_id, invite_url, or name in update\nmask.\n* NOT_FOUND: ChannelPartnerLink 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 updated\n[ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.",
2587 "file": "CloudChannelClient/UpdateChannelPartnerLink/main.go",
2588 "language": "GO",
2589 "clientMethod": {
2590 "shortName": "UpdateChannelPartnerLink",
2591 "fullName": "google.cloud.channel.v1.CloudChannelClient.UpdateChannelPartnerLink",
2592 "parameters": [
2593 {
2594 "type": "context.Context",
2595 "name": "ctx"
2596 },
2597 {
2598 "type": "channelpb.UpdateChannelPartnerLinkRequest",
2599 "name": "req"
2600 },
2601 {
2602 "type": "...gax.CallOption",
2603 "name": "opts"
2604 }
2605 ],
2606 "resultType": "*channelpb.ChannelPartnerLink",
2607 "client": {
2608 "shortName": "CloudChannelClient",
2609 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2610 },
2611 "method": {
2612 "shortName": "UpdateChannelPartnerLink",
2613 "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateChannelPartnerLink",
2614 "service": {
2615 "shortName": "CloudChannelService",
2616 "fullName": "google.cloud.channel.v1.CloudChannelService"
2617 }
2618 }
2619 },
2620 "origin": "API_DEFINITION",
2621 "segments": [
2622 {
2623 "start": 18,
2624 "end": 53,
2625 "type": "FULL"
2626 }
2627 ]
2628 },
2629 {
2630 "regionTag": "cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerRepricingConfig_sync",
2631 "title": "cloudchannel UpdateChannelPartnerRepricingConfig Sample",
2632 "description": "UpdateChannelPartnerRepricingConfig updates a ChannelPartnerRepricingConfig. Call this method to set\nmodifications for a specific ChannelPartner's bill. This method overwrites\nthe existing CustomerRepricingConfig.\n\nYou can only update configs if the\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]\nis a future month. To make changes to configs for the current month, use\n[CreateChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig],\ntaking note of its restrictions. You cannot update the\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].\n\nWhen updating a config in the future: \n\n* This config must already exist.\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.",
2633 "file": "CloudChannelClient/UpdateChannelPartnerRepricingConfig/main.go",
2634 "language": "GO",
2635 "clientMethod": {
2636 "shortName": "UpdateChannelPartnerRepricingConfig",
2637 "fullName": "google.cloud.channel.v1.CloudChannelClient.UpdateChannelPartnerRepricingConfig",
2638 "parameters": [
2639 {
2640 "type": "context.Context",
2641 "name": "ctx"
2642 },
2643 {
2644 "type": "channelpb.UpdateChannelPartnerRepricingConfigRequest",
2645 "name": "req"
2646 },
2647 {
2648 "type": "...gax.CallOption",
2649 "name": "opts"
2650 }
2651 ],
2652 "resultType": "*channelpb.ChannelPartnerRepricingConfig",
2653 "client": {
2654 "shortName": "CloudChannelClient",
2655 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2656 },
2657 "method": {
2658 "shortName": "UpdateChannelPartnerRepricingConfig",
2659 "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateChannelPartnerRepricingConfig",
2660 "service": {
2661 "shortName": "CloudChannelService",
2662 "fullName": "google.cloud.channel.v1.CloudChannelService"
2663 }
2664 }
2665 },
2666 "origin": "API_DEFINITION",
2667 "segments": [
2668 {
2669 "start": 18,
2670 "end": 53,
2671 "type": "FULL"
2672 }
2673 ]
2674 },
2675 {
2676 "regionTag": "cloudchannel_v1_generated_CloudChannelService_UpdateCustomer_sync",
2677 "title": "cloudchannel UpdateCustomer Sample",
2678 "description": "UpdateCustomer updates an existing [Customer][google.cloud.channel.v1.Customer] resource\nfor the reseller or distributor.\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: No [Customer][google.cloud.channel.v1.Customer] resource found\nfor the name in the request.\n\nReturn value: \nThe updated [Customer][google.cloud.channel.v1.Customer] resource.",
2679 "file": "CloudChannelClient/UpdateCustomer/main.go",
2680 "language": "GO",
2681 "clientMethod": {
2682 "shortName": "UpdateCustomer",
2683 "fullName": "google.cloud.channel.v1.CloudChannelClient.UpdateCustomer",
2684 "parameters": [
2685 {
2686 "type": "context.Context",
2687 "name": "ctx"
2688 },
2689 {
2690 "type": "channelpb.UpdateCustomerRequest",
2691 "name": "req"
2692 },
2693 {
2694 "type": "...gax.CallOption",
2695 "name": "opts"
2696 }
2697 ],
2698 "resultType": "*channelpb.Customer",
2699 "client": {
2700 "shortName": "CloudChannelClient",
2701 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2702 },
2703 "method": {
2704 "shortName": "UpdateCustomer",
2705 "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateCustomer",
2706 "service": {
2707 "shortName": "CloudChannelService",
2708 "fullName": "google.cloud.channel.v1.CloudChannelService"
2709 }
2710 }
2711 },
2712 "origin": "API_DEFINITION",
2713 "segments": [
2714 {
2715 "start": 18,
2716 "end": 53,
2717 "type": "FULL"
2718 }
2719 ]
2720 },
2721 {
2722 "regionTag": "cloudchannel_v1_generated_CloudChannelService_UpdateCustomerRepricingConfig_sync",
2723 "title": "cloudchannel UpdateCustomerRepricingConfig Sample",
2724 "description": "UpdateCustomerRepricingConfig updates a CustomerRepricingConfig. Call this method to set modifications\nfor a specific customer's bill. This method overwrites the existing\nCustomerRepricingConfig.\n\nYou can only update configs if the\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]\nis a future month. To make changes to configs for the current month, use\n[CreateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig],\ntaking note of its restrictions. You cannot update the\n[RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month].\n\nWhen updating a config in the future: \n\n* This config must already exist.\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.",
2725 "file": "CloudChannelClient/UpdateCustomerRepricingConfig/main.go",
2726 "language": "GO",
2727 "clientMethod": {
2728 "shortName": "UpdateCustomerRepricingConfig",
2729 "fullName": "google.cloud.channel.v1.CloudChannelClient.UpdateCustomerRepricingConfig",
2730 "parameters": [
2731 {
2732 "type": "context.Context",
2733 "name": "ctx"
2734 },
2735 {
2736 "type": "channelpb.UpdateCustomerRepricingConfigRequest",
2737 "name": "req"
2738 },
2739 {
2740 "type": "...gax.CallOption",
2741 "name": "opts"
2742 }
2743 ],
2744 "resultType": "*channelpb.CustomerRepricingConfig",
2745 "client": {
2746 "shortName": "CloudChannelClient",
2747 "fullName": "google.cloud.channel.v1.CloudChannelClient"
2748 },
2749 "method": {
2750 "shortName": "UpdateCustomerRepricingConfig",
2751 "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateCustomerRepricingConfig",
2752 "service": {
2753 "shortName": "CloudChannelService",
2754 "fullName": "google.cloud.channel.v1.CloudChannelService"
2755 }
2756 }
2757 },
2758 "origin": "API_DEFINITION",
2759 "segments": [
2760 {
2761 "start": 18,
2762 "end": 53,
2763 "type": "FULL"
2764 }
2765 ]
2766 }
2767 ]
2768 }