google-cloud-channel-v1 0.19.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/channel/v1/channel_partner_links_pb.rb +26 -23
  3. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +4 -2
  4. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +3 -1
  5. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/client.rb +4 -2
  6. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/operations.rb +7 -5
  7. data/lib/google/cloud/channel/v1/cloud_channel_reports_service/rest/service_stub.rb +3 -3
  8. data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +257 -2
  9. data/lib/google/cloud/channel/v1/cloud_channel_service/operations.rb +3 -1
  10. data/lib/google/cloud/channel/v1/cloud_channel_service/paths.rb +17 -0
  11. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/client.rb +203 -2
  12. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/operations.rb +7 -5
  13. data/lib/google/cloud/channel/v1/cloud_channel_service/rest/service_stub.rb +164 -46
  14. data/lib/google/cloud/channel/v1/common_pb.rb +25 -50
  15. data/lib/google/cloud/channel/v1/customers_pb.rb +27 -24
  16. data/lib/google/cloud/channel/v1/entitlement_changes_pb.rb +26 -54
  17. data/lib/google/cloud/channel/v1/entitlements_pb.rb +28 -73
  18. data/lib/google/cloud/channel/v1/offers_pb.rb +28 -104
  19. data/lib/google/cloud/channel/v1/operations_pb.rb +24 -18
  20. data/lib/google/cloud/channel/v1/products_pb.rb +24 -24
  21. data/lib/google/cloud/channel/v1/reports_service_pb.rb +29 -94
  22. data/lib/google/cloud/channel/v1/repricing_pb.rb +27 -52
  23. data/lib/google/cloud/channel/v1/service_pb.rb +39 -345
  24. data/lib/google/cloud/channel/v1/service_services_pb.rb +40 -0
  25. data/lib/google/cloud/channel/v1/subscriber_event_pb.rb +24 -35
  26. data/lib/google/cloud/channel/v1/version.rb +1 -1
  27. data/proto_docs/google/cloud/channel/v1/service.rb +112 -0
  28. data/proto_docs/google/protobuf/any.rb +7 -4
  29. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  30. metadata +4 -4
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_customers_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_customer_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_check_cloud_identity_accounts_exist_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_create_customer_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_update_customer_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_customer_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_import_customer_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_provision_cloud_identity_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_list_entitlements_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_list_transferable_skus_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_list_transferable_offers_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_get_entitlement_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -515,7 +515,7 @@ module Google
515
515
 
516
516
  verb, uri, query_string_params, body = ServiceStub.transcode_create_entitlement_request request_pb
517
517
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
519
  else
520
520
  {}
521
521
  end
@@ -553,7 +553,7 @@ module Google
553
553
 
554
554
  verb, uri, query_string_params, body = ServiceStub.transcode_change_parameters_request request_pb
555
555
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
557
  else
558
558
  {}
559
559
  end
@@ -591,7 +591,7 @@ module Google
591
591
 
592
592
  verb, uri, query_string_params, body = ServiceStub.transcode_change_renewal_settings_request request_pb
593
593
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
595
  else
596
596
  {}
597
597
  end
@@ -629,7 +629,7 @@ module Google
629
629
 
630
630
  verb, uri, query_string_params, body = ServiceStub.transcode_change_offer_request request_pb
631
631
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
633
633
  else
634
634
  {}
635
635
  end
@@ -667,7 +667,7 @@ module Google
667
667
 
668
668
  verb, uri, query_string_params, body = ServiceStub.transcode_start_paid_service_request request_pb
669
669
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
670
+ query_string_params.to_h { |p| p.split "=", 2 }
671
671
  else
672
672
  {}
673
673
  end
@@ -705,7 +705,7 @@ module Google
705
705
 
706
706
  verb, uri, query_string_params, body = ServiceStub.transcode_suspend_entitlement_request request_pb
707
707
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
709
709
  else
710
710
  {}
711
711
  end
@@ -743,7 +743,7 @@ module Google
743
743
 
744
744
  verb, uri, query_string_params, body = ServiceStub.transcode_cancel_entitlement_request request_pb
745
745
  query_string_params = if query_string_params.any?
746
- query_string_params.to_h { |p| p.split("=", 2) }
746
+ query_string_params.to_h { |p| p.split "=", 2 }
747
747
  else
748
748
  {}
749
749
  end
@@ -781,7 +781,7 @@ module Google
781
781
 
782
782
  verb, uri, query_string_params, body = ServiceStub.transcode_activate_entitlement_request request_pb
783
783
  query_string_params = if query_string_params.any?
784
- query_string_params.to_h { |p| p.split("=", 2) }
784
+ query_string_params.to_h { |p| p.split "=", 2 }
785
785
  else
786
786
  {}
787
787
  end
@@ -819,7 +819,7 @@ module Google
819
819
 
820
820
  verb, uri, query_string_params, body = ServiceStub.transcode_transfer_entitlements_request request_pb
821
821
  query_string_params = if query_string_params.any?
822
- query_string_params.to_h { |p| p.split("=", 2) }
822
+ query_string_params.to_h { |p| p.split "=", 2 }
823
823
  else
824
824
  {}
825
825
  end
@@ -857,7 +857,7 @@ module Google
857
857
 
858
858
  verb, uri, query_string_params, body = ServiceStub.transcode_transfer_entitlements_to_google_request request_pb
859
859
  query_string_params = if query_string_params.any?
860
- query_string_params.to_h { |p| p.split("=", 2) }
860
+ query_string_params.to_h { |p| p.split "=", 2 }
861
861
  else
862
862
  {}
863
863
  end
@@ -895,7 +895,7 @@ module Google
895
895
 
896
896
  verb, uri, query_string_params, body = ServiceStub.transcode_list_channel_partner_links_request request_pb
897
897
  query_string_params = if query_string_params.any?
898
- query_string_params.to_h { |p| p.split("=", 2) }
898
+ query_string_params.to_h { |p| p.split "=", 2 }
899
899
  else
900
900
  {}
901
901
  end
@@ -933,7 +933,7 @@ module Google
933
933
 
934
934
  verb, uri, query_string_params, body = ServiceStub.transcode_get_channel_partner_link_request request_pb
935
935
  query_string_params = if query_string_params.any?
936
- query_string_params.to_h { |p| p.split("=", 2) }
936
+ query_string_params.to_h { |p| p.split "=", 2 }
937
937
  else
938
938
  {}
939
939
  end
@@ -971,7 +971,7 @@ module Google
971
971
 
972
972
  verb, uri, query_string_params, body = ServiceStub.transcode_create_channel_partner_link_request request_pb
973
973
  query_string_params = if query_string_params.any?
974
- query_string_params.to_h { |p| p.split("=", 2) }
974
+ query_string_params.to_h { |p| p.split "=", 2 }
975
975
  else
976
976
  {}
977
977
  end
@@ -1009,7 +1009,7 @@ module Google
1009
1009
 
1010
1010
  verb, uri, query_string_params, body = ServiceStub.transcode_update_channel_partner_link_request request_pb
1011
1011
  query_string_params = if query_string_params.any?
1012
- query_string_params.to_h { |p| p.split("=", 2) }
1012
+ query_string_params.to_h { |p| p.split "=", 2 }
1013
1013
  else
1014
1014
  {}
1015
1015
  end
@@ -1047,7 +1047,7 @@ module Google
1047
1047
 
1048
1048
  verb, uri, query_string_params, body = ServiceStub.transcode_get_customer_repricing_config_request request_pb
1049
1049
  query_string_params = if query_string_params.any?
1050
- query_string_params.to_h { |p| p.split("=", 2) }
1050
+ query_string_params.to_h { |p| p.split "=", 2 }
1051
1051
  else
1052
1052
  {}
1053
1053
  end
@@ -1085,7 +1085,7 @@ module Google
1085
1085
 
1086
1086
  verb, uri, query_string_params, body = ServiceStub.transcode_list_customer_repricing_configs_request request_pb
1087
1087
  query_string_params = if query_string_params.any?
1088
- query_string_params.to_h { |p| p.split("=", 2) }
1088
+ query_string_params.to_h { |p| p.split "=", 2 }
1089
1089
  else
1090
1090
  {}
1091
1091
  end
@@ -1123,7 +1123,7 @@ module Google
1123
1123
 
1124
1124
  verb, uri, query_string_params, body = ServiceStub.transcode_create_customer_repricing_config_request request_pb
1125
1125
  query_string_params = if query_string_params.any?
1126
- query_string_params.to_h { |p| p.split("=", 2) }
1126
+ query_string_params.to_h { |p| p.split "=", 2 }
1127
1127
  else
1128
1128
  {}
1129
1129
  end
@@ -1161,7 +1161,7 @@ module Google
1161
1161
 
1162
1162
  verb, uri, query_string_params, body = ServiceStub.transcode_update_customer_repricing_config_request request_pb
1163
1163
  query_string_params = if query_string_params.any?
1164
- query_string_params.to_h { |p| p.split("=", 2) }
1164
+ query_string_params.to_h { |p| p.split "=", 2 }
1165
1165
  else
1166
1166
  {}
1167
1167
  end
@@ -1199,7 +1199,7 @@ module Google
1199
1199
 
1200
1200
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_customer_repricing_config_request request_pb
1201
1201
  query_string_params = if query_string_params.any?
1202
- query_string_params.to_h { |p| p.split("=", 2) }
1202
+ query_string_params.to_h { |p| p.split "=", 2 }
1203
1203
  else
1204
1204
  {}
1205
1205
  end
@@ -1237,7 +1237,7 @@ module Google
1237
1237
 
1238
1238
  verb, uri, query_string_params, body = ServiceStub.transcode_get_channel_partner_repricing_config_request request_pb
1239
1239
  query_string_params = if query_string_params.any?
1240
- query_string_params.to_h { |p| p.split("=", 2) }
1240
+ query_string_params.to_h { |p| p.split "=", 2 }
1241
1241
  else
1242
1242
  {}
1243
1243
  end
@@ -1275,7 +1275,7 @@ module Google
1275
1275
 
1276
1276
  verb, uri, query_string_params, body = ServiceStub.transcode_list_channel_partner_repricing_configs_request request_pb
1277
1277
  query_string_params = if query_string_params.any?
1278
- query_string_params.to_h { |p| p.split("=", 2) }
1278
+ query_string_params.to_h { |p| p.split "=", 2 }
1279
1279
  else
1280
1280
  {}
1281
1281
  end
@@ -1313,7 +1313,7 @@ module Google
1313
1313
 
1314
1314
  verb, uri, query_string_params, body = ServiceStub.transcode_create_channel_partner_repricing_config_request request_pb
1315
1315
  query_string_params = if query_string_params.any?
1316
- query_string_params.to_h { |p| p.split("=", 2) }
1316
+ query_string_params.to_h { |p| p.split "=", 2 }
1317
1317
  else
1318
1318
  {}
1319
1319
  end
@@ -1351,7 +1351,7 @@ module Google
1351
1351
 
1352
1352
  verb, uri, query_string_params, body = ServiceStub.transcode_update_channel_partner_repricing_config_request request_pb
1353
1353
  query_string_params = if query_string_params.any?
1354
- query_string_params.to_h { |p| p.split("=", 2) }
1354
+ query_string_params.to_h { |p| p.split "=", 2 }
1355
1355
  else
1356
1356
  {}
1357
1357
  end
@@ -1389,7 +1389,7 @@ module Google
1389
1389
 
1390
1390
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_channel_partner_repricing_config_request request_pb
1391
1391
  query_string_params = if query_string_params.any?
1392
- query_string_params.to_h { |p| p.split("=", 2) }
1392
+ query_string_params.to_h { |p| p.split "=", 2 }
1393
1393
  else
1394
1394
  {}
1395
1395
  end
@@ -1408,6 +1408,82 @@ module Google
1408
1408
  result
1409
1409
  end
1410
1410
 
1411
+ ##
1412
+ # Baseline implementation for the list_sku_groups REST call
1413
+ #
1414
+ # @param request_pb [::Google::Cloud::Channel::V1::ListSkuGroupsRequest]
1415
+ # A request object representing the call parameters. Required.
1416
+ # @param options [::Gapic::CallOptions]
1417
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1418
+ #
1419
+ # @yield [result, operation] Access the result along with the TransportOperation object
1420
+ # @yieldparam result [::Google::Cloud::Channel::V1::ListSkuGroupsResponse]
1421
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1422
+ #
1423
+ # @return [::Google::Cloud::Channel::V1::ListSkuGroupsResponse]
1424
+ # A result object deserialized from the server's reply
1425
+ def list_sku_groups request_pb, options = nil
1426
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1427
+
1428
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_sku_groups_request request_pb
1429
+ query_string_params = if query_string_params.any?
1430
+ query_string_params.to_h { |p| p.split "=", 2 }
1431
+ else
1432
+ {}
1433
+ end
1434
+
1435
+ response = @client_stub.make_http_request(
1436
+ verb,
1437
+ uri: uri,
1438
+ body: body || "",
1439
+ params: query_string_params,
1440
+ options: options
1441
+ )
1442
+ operation = ::Gapic::Rest::TransportOperation.new response
1443
+ result = ::Google::Cloud::Channel::V1::ListSkuGroupsResponse.decode_json response.body, ignore_unknown_fields: true
1444
+
1445
+ yield result, operation if block_given?
1446
+ result
1447
+ end
1448
+
1449
+ ##
1450
+ # Baseline implementation for the list_sku_group_billable_skus REST call
1451
+ #
1452
+ # @param request_pb [::Google::Cloud::Channel::V1::ListSkuGroupBillableSkusRequest]
1453
+ # A request object representing the call parameters. Required.
1454
+ # @param options [::Gapic::CallOptions]
1455
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1456
+ #
1457
+ # @yield [result, operation] Access the result along with the TransportOperation object
1458
+ # @yieldparam result [::Google::Cloud::Channel::V1::ListSkuGroupBillableSkusResponse]
1459
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1460
+ #
1461
+ # @return [::Google::Cloud::Channel::V1::ListSkuGroupBillableSkusResponse]
1462
+ # A result object deserialized from the server's reply
1463
+ def list_sku_group_billable_skus request_pb, options = nil
1464
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1465
+
1466
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_sku_group_billable_skus_request request_pb
1467
+ query_string_params = if query_string_params.any?
1468
+ query_string_params.to_h { |p| p.split "=", 2 }
1469
+ else
1470
+ {}
1471
+ end
1472
+
1473
+ response = @client_stub.make_http_request(
1474
+ verb,
1475
+ uri: uri,
1476
+ body: body || "",
1477
+ params: query_string_params,
1478
+ options: options
1479
+ )
1480
+ operation = ::Gapic::Rest::TransportOperation.new response
1481
+ result = ::Google::Cloud::Channel::V1::ListSkuGroupBillableSkusResponse.decode_json response.body, ignore_unknown_fields: true
1482
+
1483
+ yield result, operation if block_given?
1484
+ result
1485
+ end
1486
+
1411
1487
  ##
1412
1488
  # Baseline implementation for the lookup_offer REST call
1413
1489
  #
@@ -1427,7 +1503,7 @@ module Google
1427
1503
 
1428
1504
  verb, uri, query_string_params, body = ServiceStub.transcode_lookup_offer_request request_pb
1429
1505
  query_string_params = if query_string_params.any?
1430
- query_string_params.to_h { |p| p.split("=", 2) }
1506
+ query_string_params.to_h { |p| p.split "=", 2 }
1431
1507
  else
1432
1508
  {}
1433
1509
  end
@@ -1465,7 +1541,7 @@ module Google
1465
1541
 
1466
1542
  verb, uri, query_string_params, body = ServiceStub.transcode_list_products_request request_pb
1467
1543
  query_string_params = if query_string_params.any?
1468
- query_string_params.to_h { |p| p.split("=", 2) }
1544
+ query_string_params.to_h { |p| p.split "=", 2 }
1469
1545
  else
1470
1546
  {}
1471
1547
  end
@@ -1503,7 +1579,7 @@ module Google
1503
1579
 
1504
1580
  verb, uri, query_string_params, body = ServiceStub.transcode_list_skus_request request_pb
1505
1581
  query_string_params = if query_string_params.any?
1506
- query_string_params.to_h { |p| p.split("=", 2) }
1582
+ query_string_params.to_h { |p| p.split "=", 2 }
1507
1583
  else
1508
1584
  {}
1509
1585
  end
@@ -1541,7 +1617,7 @@ module Google
1541
1617
 
1542
1618
  verb, uri, query_string_params, body = ServiceStub.transcode_list_offers_request request_pb
1543
1619
  query_string_params = if query_string_params.any?
1544
- query_string_params.to_h { |p| p.split("=", 2) }
1620
+ query_string_params.to_h { |p| p.split "=", 2 }
1545
1621
  else
1546
1622
  {}
1547
1623
  end
@@ -1579,7 +1655,7 @@ module Google
1579
1655
 
1580
1656
  verb, uri, query_string_params, body = ServiceStub.transcode_list_purchasable_skus_request request_pb
1581
1657
  query_string_params = if query_string_params.any?
1582
- query_string_params.to_h { |p| p.split("=", 2) }
1658
+ query_string_params.to_h { |p| p.split "=", 2 }
1583
1659
  else
1584
1660
  {}
1585
1661
  end
@@ -1617,7 +1693,7 @@ module Google
1617
1693
 
1618
1694
  verb, uri, query_string_params, body = ServiceStub.transcode_list_purchasable_offers_request request_pb
1619
1695
  query_string_params = if query_string_params.any?
1620
- query_string_params.to_h { |p| p.split("=", 2) }
1696
+ query_string_params.to_h { |p| p.split "=", 2 }
1621
1697
  else
1622
1698
  {}
1623
1699
  end
@@ -1655,7 +1731,7 @@ module Google
1655
1731
 
1656
1732
  verb, uri, query_string_params, body = ServiceStub.transcode_register_subscriber_request request_pb
1657
1733
  query_string_params = if query_string_params.any?
1658
- query_string_params.to_h { |p| p.split("=", 2) }
1734
+ query_string_params.to_h { |p| p.split "=", 2 }
1659
1735
  else
1660
1736
  {}
1661
1737
  end
@@ -1693,7 +1769,7 @@ module Google
1693
1769
 
1694
1770
  verb, uri, query_string_params, body = ServiceStub.transcode_unregister_subscriber_request request_pb
1695
1771
  query_string_params = if query_string_params.any?
1696
- query_string_params.to_h { |p| p.split("=", 2) }
1772
+ query_string_params.to_h { |p| p.split "=", 2 }
1697
1773
  else
1698
1774
  {}
1699
1775
  end
@@ -1731,7 +1807,7 @@ module Google
1731
1807
 
1732
1808
  verb, uri, query_string_params, body = ServiceStub.transcode_list_subscribers_request request_pb
1733
1809
  query_string_params = if query_string_params.any?
1734
- query_string_params.to_h { |p| p.split("=", 2) }
1810
+ query_string_params.to_h { |p| p.split "=", 2 }
1735
1811
  else
1736
1812
  {}
1737
1813
  end
@@ -1769,7 +1845,7 @@ module Google
1769
1845
 
1770
1846
  verb, uri, query_string_params, body = ServiceStub.transcode_list_entitlement_changes_request request_pb
1771
1847
  query_string_params = if query_string_params.any?
1772
- query_string_params.to_h { |p| p.split("=", 2) }
1848
+ query_string_params.to_h { |p| p.split "=", 2 }
1773
1849
  else
1774
1850
  {}
1775
1851
  end
@@ -2612,6 +2688,48 @@ module Google
2612
2688
  transcoder.transcode request_pb
2613
2689
  end
2614
2690
 
2691
+ ##
2692
+ # @private
2693
+ #
2694
+ # GRPC transcoding helper method for the list_sku_groups REST call
2695
+ #
2696
+ # @param request_pb [::Google::Cloud::Channel::V1::ListSkuGroupsRequest]
2697
+ # A request object representing the call parameters. Required.
2698
+ # @return [Array(String, [String, nil], Hash{String => String})]
2699
+ # Uri, Body, Query string parameters
2700
+ def self.transcode_list_sku_groups_request request_pb
2701
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2702
+ .with_bindings(
2703
+ uri_method: :get,
2704
+ uri_template: "/v1/{parent}/skuGroups",
2705
+ matches: [
2706
+ ["parent", %r{^accounts/[^/]+/?$}, false]
2707
+ ]
2708
+ )
2709
+ transcoder.transcode request_pb
2710
+ end
2711
+
2712
+ ##
2713
+ # @private
2714
+ #
2715
+ # GRPC transcoding helper method for the list_sku_group_billable_skus REST call
2716
+ #
2717
+ # @param request_pb [::Google::Cloud::Channel::V1::ListSkuGroupBillableSkusRequest]
2718
+ # A request object representing the call parameters. Required.
2719
+ # @return [Array(String, [String, nil], Hash{String => String})]
2720
+ # Uri, Body, Query string parameters
2721
+ def self.transcode_list_sku_group_billable_skus_request request_pb
2722
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2723
+ .with_bindings(
2724
+ uri_method: :get,
2725
+ uri_template: "/v1/{parent}/billableSkus",
2726
+ matches: [
2727
+ ["parent", %r{^accounts/[^/]+/skuGroups/[^/]+/?$}, false]
2728
+ ]
2729
+ )
2730
+ transcoder.transcode request_pb
2731
+ end
2732
+
2615
2733
  ##
2616
2734
  # @private
2617
2735
  #
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/channel/v1/common.proto
3
4
 
@@ -6,58 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/protobuf/any_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/channel/v1/common.proto", :syntax => :proto3) do
11
- add_message "google.cloud.channel.v1.EduData" do
12
- optional :institute_type, :enum, 1, "google.cloud.channel.v1.EduData.InstituteType"
13
- optional :institute_size, :enum, 2, "google.cloud.channel.v1.EduData.InstituteSize"
14
- optional :website, :string, 3
15
- end
16
- add_enum "google.cloud.channel.v1.EduData.InstituteType" do
17
- value :INSTITUTE_TYPE_UNSPECIFIED, 0
18
- value :K12, 1
19
- value :UNIVERSITY, 2
20
- end
21
- add_enum "google.cloud.channel.v1.EduData.InstituteSize" do
22
- value :INSTITUTE_SIZE_UNSPECIFIED, 0
23
- value :SIZE_1_100, 1
24
- value :SIZE_101_500, 2
25
- value :SIZE_501_1000, 3
26
- value :SIZE_1001_2000, 4
27
- value :SIZE_2001_5000, 5
28
- value :SIZE_5001_10000, 6
29
- value :SIZE_10001_OR_MORE, 7
30
- end
31
- add_message "google.cloud.channel.v1.CloudIdentityInfo" do
32
- optional :customer_type, :enum, 1, "google.cloud.channel.v1.CloudIdentityInfo.CustomerType"
33
- optional :primary_domain, :string, 9
34
- optional :is_domain_verified, :bool, 4
35
- optional :alternate_email, :string, 6
36
- optional :phone_number, :string, 7
37
- optional :language_code, :string, 8
38
- optional :admin_console_uri, :string, 10
39
- optional :edu_data, :message, 22, "google.cloud.channel.v1.EduData"
40
- end
41
- add_enum "google.cloud.channel.v1.CloudIdentityInfo.CustomerType" do
42
- value :CUSTOMER_TYPE_UNSPECIFIED, 0
43
- value :DOMAIN, 1
44
- value :TEAM, 2
45
- end
46
- add_message "google.cloud.channel.v1.Value" do
47
- oneof :kind do
48
- optional :int64_value, :int64, 1
49
- optional :string_value, :string, 2
50
- optional :double_value, :double, 3
51
- optional :proto_value, :message, 4, "google.protobuf.Any"
52
- optional :bool_value, :bool, 5
53
- end
54
- end
55
- add_message "google.cloud.channel.v1.AdminUser" do
56
- optional :email, :string, 1
57
- optional :given_name, :string, 2
58
- optional :family_name, :string, 3
10
+
11
+ descriptor_data = "\n$google/cloud/channel/v1/common.proto\x12\x17google.cloud.channel.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/protobuf/any.proto\"\xb0\x03\n\x07\x45\x64uData\x12\x46\n\x0einstitute_type\x18\x01 \x01(\x0e\x32..google.cloud.channel.v1.EduData.InstituteType\x12\x46\n\x0einstitute_size\x18\x02 \x01(\x0e\x32..google.cloud.channel.v1.EduData.InstituteSize\x12\x0f\n\x07website\x18\x03 \x01(\t\"H\n\rInstituteType\x12\x1e\n\x1aINSTITUTE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03K12\x10\x01\x12\x0e\n\nUNIVERSITY\x10\x02\"\xb9\x01\n\rInstituteSize\x12\x1e\n\x1aINSTITUTE_SIZE_UNSPECIFIED\x10\x00\x12\x0e\n\nSIZE_1_100\x10\x01\x12\x10\n\x0cSIZE_101_500\x10\x02\x12\x11\n\rSIZE_501_1000\x10\x03\x12\x12\n\x0eSIZE_1001_2000\x10\x04\x12\x12\n\x0eSIZE_2001_5000\x10\x05\x12\x13\n\x0fSIZE_5001_10000\x10\x06\x12\x16\n\x12SIZE_10001_OR_MORE\x10\x07\"\x80\x03\n\x11\x43loudIdentityInfo\x12N\n\rcustomer_type\x18\x01 \x01(\x0e\x32\x37.google.cloud.channel.v1.CloudIdentityInfo.CustomerType\x12\x1b\n\x0eprimary_domain\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12is_domain_verified\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x17\n\x0f\x61lternate_email\x18\x06 \x01(\t\x12\x14\n\x0cphone_number\x18\x07 \x01(\t\x12\x15\n\rlanguage_code\x18\x08 \x01(\t\x12\x1e\n\x11\x61\x64min_console_uri\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x32\n\x08\x65\x64u_data\x18\x16 \x01(\x0b\x32 .google.cloud.channel.v1.EduData\"C\n\x0c\x43ustomerType\x12\x1d\n\x19\x43USTOMER_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44OMAIN\x10\x01\x12\x08\n\x04TEAM\x10\x02\"\x99\x01\n\x05Value\x12\x15\n\x0bint64_value\x18\x01 \x01(\x03H\x00\x12\x16\n\x0cstring_value\x18\x02 \x01(\tH\x00\x12\x16\n\x0c\x64ouble_value\x18\x03 \x01(\x01H\x00\x12+\n\x0bproto_value\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x14\n\nbool_value\x18\x05 \x01(\x08H\x00\x42\x06\n\x04kind\"C\n\tAdminUser\x12\r\n\x05\x65mail\x18\x01 \x01(\t\x12\x12\n\ngiven_name\x18\x02 \x01(\t\x12\x13\n\x0b\x66\x61mily_name\x18\x03 \x01(\tBc\n\x1b\x63om.google.cloud.channel.v1B\x0b\x43ommonProtoP\x01Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
27
+ ]
28
+ imports.each do |type_name, expected_filename|
29
+ import_file = pool.lookup(type_name).file_descriptor
30
+ if import_file.name != expected_filename
31
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
59
32
  end
60
33
  end
34
+ warn "Each proto file must use a consistent fully-qualified name."
35
+ warn "This will become an error in the next major version."
61
36
  end
62
37
 
63
38
  module Google