google-cloud-billing-v1 0.17.4 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/billing/v1/cloud_billing/client.rb +25 -11
- data/lib/google/cloud/billing/v1/cloud_billing/rest/client.rb +25 -11
- data/lib/google/cloud/billing/v1/cloud_catalog/client.rb +8 -3
- data/lib/google/cloud/billing/v1/cloud_catalog/rest/client.rb +8 -3
- data/lib/google/cloud/billing/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/billing/v1/cloud_catalog.rb +6 -6
- metadata +4 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aec0e08cef966ff72248c36b7753f47aa3bb8ca51f095e439a21e246aebaf01c
|
4
|
+
data.tar.gz: 60e0ac2f5e762d5a7ed9f9903b3b0dc2c4685d193431956ded9fdae4ab31ee97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87f75ff1e3eca9c6de5fee5956e733fa8fbb5f4026c46c59ca4649abf02ef888ba6070ff71e11d0b386762e1f49dc34818daa0fc2b46afa34da468b94da41879
|
7
|
+
data.tar.gz: 76604c9112f3e2e18ea7b16f5c4c2360813bcc15e8a460f15f608b26444cd774d9382f3822312a785f782445b8cf34136b23c08fe8d34bda1c2accb91bde01e2
|
data/README.md
CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.7+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# projects.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudbilling.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -266,10 +269,11 @@ module Google
|
|
266
269
|
# Customize the options with defaults
|
267
270
|
metadata = @config.rpcs.get_billing_account.metadata.to_h
|
268
271
|
|
269
|
-
# Set x-goog-api-client
|
272
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
270
273
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
271
274
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
272
275
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
276
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
273
277
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
274
278
|
|
275
279
|
header_params = {}
|
@@ -377,10 +381,11 @@ module Google
|
|
377
381
|
# Customize the options with defaults
|
378
382
|
metadata = @config.rpcs.list_billing_accounts.metadata.to_h
|
379
383
|
|
380
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
381
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
382
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
383
387
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
384
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
385
390
|
|
386
391
|
options.apply_defaults timeout: @config.rpcs.list_billing_accounts.timeout,
|
@@ -466,10 +471,11 @@ module Google
|
|
466
471
|
# Customize the options with defaults
|
467
472
|
metadata = @config.rpcs.update_billing_account.metadata.to_h
|
468
473
|
|
469
|
-
# Set x-goog-api-client
|
474
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
470
475
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
471
476
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
472
477
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
478
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
473
479
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
474
480
|
|
475
481
|
header_params = {}
|
@@ -573,10 +579,11 @@ module Google
|
|
573
579
|
# Customize the options with defaults
|
574
580
|
metadata = @config.rpcs.create_billing_account.metadata.to_h
|
575
581
|
|
576
|
-
# Set x-goog-api-client
|
582
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
577
583
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
578
584
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
579
585
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
586
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
580
587
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
581
588
|
|
582
589
|
options.apply_defaults timeout: @config.rpcs.create_billing_account.timeout,
|
@@ -666,10 +673,11 @@ module Google
|
|
666
673
|
# Customize the options with defaults
|
667
674
|
metadata = @config.rpcs.list_project_billing_info.metadata.to_h
|
668
675
|
|
669
|
-
# Set x-goog-api-client
|
676
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
670
677
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
671
678
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
672
679
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
680
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
673
681
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
674
682
|
|
675
683
|
header_params = {}
|
@@ -757,10 +765,11 @@ module Google
|
|
757
765
|
# Customize the options with defaults
|
758
766
|
metadata = @config.rpcs.get_project_billing_info.metadata.to_h
|
759
767
|
|
760
|
-
# Set x-goog-api-client
|
768
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
761
769
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
762
770
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
763
771
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
772
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
764
773
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
765
774
|
|
766
775
|
header_params = {}
|
@@ -879,10 +888,11 @@ module Google
|
|
879
888
|
# Customize the options with defaults
|
880
889
|
metadata = @config.rpcs.update_project_billing_info.metadata.to_h
|
881
890
|
|
882
|
-
# Set x-goog-api-client
|
891
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
883
892
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
884
893
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
885
894
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
895
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
886
896
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
887
897
|
|
888
898
|
header_params = {}
|
@@ -971,10 +981,11 @@ module Google
|
|
971
981
|
# Customize the options with defaults
|
972
982
|
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
973
983
|
|
974
|
-
# Set x-goog-api-client
|
984
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
975
985
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
976
986
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
977
987
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
988
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
978
989
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
979
990
|
|
980
991
|
header_params = {}
|
@@ -1072,10 +1083,11 @@ module Google
|
|
1072
1083
|
# Customize the options with defaults
|
1073
1084
|
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1074
1085
|
|
1075
|
-
# Set x-goog-api-client
|
1086
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1076
1087
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1077
1088
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1078
1089
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
1090
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1079
1091
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1080
1092
|
|
1081
1093
|
header_params = {}
|
@@ -1165,10 +1177,11 @@ module Google
|
|
1165
1177
|
# Customize the options with defaults
|
1166
1178
|
metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1167
1179
|
|
1168
|
-
# Set x-goog-api-client
|
1180
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1169
1181
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1170
1182
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1171
1183
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
1184
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1172
1185
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1173
1186
|
|
1174
1187
|
header_params = {}
|
@@ -1257,10 +1270,11 @@ module Google
|
|
1257
1270
|
# Customize the options with defaults
|
1258
1271
|
metadata = @config.rpcs.move_billing_account.metadata.to_h
|
1259
1272
|
|
1260
|
-
# Set x-goog-api-client
|
1273
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1261
1274
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1262
1275
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1263
1276
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
1277
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1264
1278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1265
1279
|
|
1266
1280
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# projects.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudbilling.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -258,12 +261,13 @@ module Google
|
|
258
261
|
# Customize the options with defaults
|
259
262
|
call_metadata = @config.rpcs.get_billing_account.metadata.to_h
|
260
263
|
|
261
|
-
# Set x-goog-api-client
|
264
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
262
265
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
263
266
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
264
267
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
265
268
|
transports_version_send: [:rest]
|
266
269
|
|
270
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
267
271
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
268
272
|
|
269
273
|
options.apply_defaults timeout: @config.rpcs.get_billing_account.timeout,
|
@@ -362,12 +366,13 @@ module Google
|
|
362
366
|
# Customize the options with defaults
|
363
367
|
call_metadata = @config.rpcs.list_billing_accounts.metadata.to_h
|
364
368
|
|
365
|
-
# Set x-goog-api-client
|
369
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
366
370
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
367
371
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
368
372
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
369
373
|
transports_version_send: [:rest]
|
370
374
|
|
375
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
371
376
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
372
377
|
|
373
378
|
options.apply_defaults timeout: @config.rpcs.list_billing_accounts.timeout,
|
@@ -452,12 +457,13 @@ module Google
|
|
452
457
|
# Customize the options with defaults
|
453
458
|
call_metadata = @config.rpcs.update_billing_account.metadata.to_h
|
454
459
|
|
455
|
-
# Set x-goog-api-client
|
460
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
456
461
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
457
462
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
458
463
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
459
464
|
transports_version_send: [:rest]
|
460
465
|
|
466
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
461
467
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
462
468
|
|
463
469
|
options.apply_defaults timeout: @config.rpcs.update_billing_account.timeout,
|
@@ -552,12 +558,13 @@ module Google
|
|
552
558
|
# Customize the options with defaults
|
553
559
|
call_metadata = @config.rpcs.create_billing_account.metadata.to_h
|
554
560
|
|
555
|
-
# Set x-goog-api-client
|
561
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
556
562
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
557
563
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
558
564
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
559
565
|
transports_version_send: [:rest]
|
560
566
|
|
567
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
561
568
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
562
569
|
|
563
570
|
options.apply_defaults timeout: @config.rpcs.create_billing_account.timeout,
|
@@ -646,12 +653,13 @@ module Google
|
|
646
653
|
# Customize the options with defaults
|
647
654
|
call_metadata = @config.rpcs.list_project_billing_info.metadata.to_h
|
648
655
|
|
649
|
-
# Set x-goog-api-client
|
656
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
650
657
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
651
658
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
652
659
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
653
660
|
transports_version_send: [:rest]
|
654
661
|
|
662
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
655
663
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
656
664
|
|
657
665
|
options.apply_defaults timeout: @config.rpcs.list_project_billing_info.timeout,
|
@@ -730,12 +738,13 @@ module Google
|
|
730
738
|
# Customize the options with defaults
|
731
739
|
call_metadata = @config.rpcs.get_project_billing_info.metadata.to_h
|
732
740
|
|
733
|
-
# Set x-goog-api-client
|
741
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
734
742
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
735
743
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
736
744
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
737
745
|
transports_version_send: [:rest]
|
738
746
|
|
747
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
739
748
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
740
749
|
|
741
750
|
options.apply_defaults timeout: @config.rpcs.get_project_billing_info.timeout,
|
@@ -845,12 +854,13 @@ module Google
|
|
845
854
|
# Customize the options with defaults
|
846
855
|
call_metadata = @config.rpcs.update_project_billing_info.metadata.to_h
|
847
856
|
|
848
|
-
# Set x-goog-api-client
|
857
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
849
858
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
850
859
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
851
860
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
852
861
|
transports_version_send: [:rest]
|
853
862
|
|
863
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
854
864
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
855
865
|
|
856
866
|
options.apply_defaults timeout: @config.rpcs.update_project_billing_info.timeout,
|
@@ -930,12 +940,13 @@ module Google
|
|
930
940
|
# Customize the options with defaults
|
931
941
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
932
942
|
|
933
|
-
# Set x-goog-api-client
|
943
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
934
944
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
935
945
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
936
946
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
937
947
|
transports_version_send: [:rest]
|
938
948
|
|
949
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
939
950
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
940
951
|
|
941
952
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
@@ -1024,12 +1035,13 @@ module Google
|
|
1024
1035
|
# Customize the options with defaults
|
1025
1036
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
1026
1037
|
|
1027
|
-
# Set x-goog-api-client
|
1038
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1028
1039
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1029
1040
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1030
1041
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
1031
1042
|
transports_version_send: [:rest]
|
1032
1043
|
|
1044
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1033
1045
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1034
1046
|
|
1035
1047
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
@@ -1110,12 +1122,13 @@ module Google
|
|
1110
1122
|
# Customize the options with defaults
|
1111
1123
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1112
1124
|
|
1113
|
-
# Set x-goog-api-client
|
1125
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1114
1126
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1115
1127
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1116
1128
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
1117
1129
|
transports_version_send: [:rest]
|
1118
1130
|
|
1131
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1119
1132
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1120
1133
|
|
1121
1134
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
@@ -1195,12 +1208,13 @@ module Google
|
|
1195
1208
|
# Customize the options with defaults
|
1196
1209
|
call_metadata = @config.rpcs.move_billing_account.metadata.to_h
|
1197
1210
|
|
1198
|
-
# Set x-goog-api-client
|
1211
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1199
1212
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1200
1213
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1201
1214
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
1202
1215
|
transports_version_send: [:rest]
|
1203
1216
|
|
1217
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1204
1218
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1205
1219
|
|
1206
1220
|
options.apply_defaults timeout: @config.rpcs.move_billing_account.timeout,
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# and SKUs.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudbilling.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -229,10 +232,11 @@ module Google
|
|
229
232
|
# Customize the options with defaults
|
230
233
|
metadata = @config.rpcs.list_services.metadata.to_h
|
231
234
|
|
232
|
-
# Set x-goog-api-client
|
235
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
233
236
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
234
237
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
235
238
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
239
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
236
240
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
237
241
|
|
238
242
|
options.apply_defaults timeout: @config.rpcs.list_services.timeout,
|
@@ -272,7 +276,7 @@ module Google
|
|
272
276
|
#
|
273
277
|
# @param parent [::String]
|
274
278
|
# Required. The name of the service.
|
275
|
-
# Example: "services/
|
279
|
+
# Example: "services/6F81-5844-456A"
|
276
280
|
# @param start_time [::Google::Protobuf::Timestamp, ::Hash]
|
277
281
|
# Optional inclusive start time of the time range for which the pricing
|
278
282
|
# versions will be returned. Timestamps in the future are not allowed.
|
@@ -336,10 +340,11 @@ module Google
|
|
336
340
|
# Customize the options with defaults
|
337
341
|
metadata = @config.rpcs.list_skus.metadata.to_h
|
338
342
|
|
339
|
-
# Set x-goog-api-client
|
343
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
340
344
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
341
345
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
342
346
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION
|
347
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
343
348
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
344
349
|
|
345
350
|
header_params = {}
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# and SKUs.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudbilling.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -221,12 +224,13 @@ module Google
|
|
221
224
|
# Customize the options with defaults
|
222
225
|
call_metadata = @config.rpcs.list_services.metadata.to_h
|
223
226
|
|
224
|
-
# Set x-goog-api-client
|
227
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
225
228
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
226
229
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
227
230
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
228
231
|
transports_version_send: [:rest]
|
229
232
|
|
233
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
230
234
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
231
235
|
|
232
236
|
options.apply_defaults timeout: @config.rpcs.list_services.timeout,
|
@@ -266,7 +270,7 @@ module Google
|
|
266
270
|
#
|
267
271
|
# @param parent [::String]
|
268
272
|
# Required. The name of the service.
|
269
|
-
# Example: "services/
|
273
|
+
# Example: "services/6F81-5844-456A"
|
270
274
|
# @param start_time [::Google::Protobuf::Timestamp, ::Hash]
|
271
275
|
# Optional inclusive start time of the time range for which the pricing
|
272
276
|
# versions will be returned. Timestamps in the future are not allowed.
|
@@ -329,12 +333,13 @@ module Google
|
|
329
333
|
# Customize the options with defaults
|
330
334
|
call_metadata = @config.rpcs.list_skus.metadata.to_h
|
331
335
|
|
332
|
-
# Set x-goog-api-client
|
336
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
333
337
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
334
338
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
335
339
|
gapic_version: ::Google::Cloud::Billing::V1::VERSION,
|
336
340
|
transports_version_send: [:rest]
|
337
341
|
|
342
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
338
343
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
339
344
|
|
340
345
|
options.apply_defaults timeout: @config.rpcs.list_skus.timeout,
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -25,11 +25,11 @@ module Google
|
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
27
|
# The resource name for the service.
|
28
|
-
# Example: "services/
|
28
|
+
# Example: "services/6F81-5844-456A"
|
29
29
|
# @!attribute [rw] service_id
|
30
30
|
# @return [::String]
|
31
31
|
# The identifier for the service.
|
32
|
-
# Example: "
|
32
|
+
# Example: "6F81-5844-456A"
|
33
33
|
# @!attribute [rw] display_name
|
34
34
|
# @return [::String]
|
35
35
|
# A human readable display name for this service.
|
@@ -42,15 +42,15 @@ module Google
|
|
42
42
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
43
|
end
|
44
44
|
|
45
|
-
# Encapsulates a single SKU in Google Cloud
|
45
|
+
# Encapsulates a single SKU in Google Cloud
|
46
46
|
# @!attribute [rw] name
|
47
47
|
# @return [::String]
|
48
48
|
# The resource name for the SKU.
|
49
|
-
# Example: "services/
|
49
|
+
# Example: "services/6F81-5844-456A/skus/D041-B8A1-6E0B"
|
50
50
|
# @!attribute [rw] sku_id
|
51
51
|
# @return [::String]
|
52
52
|
# The identifier for the SKU.
|
53
|
-
# Example: "
|
53
|
+
# Example: "D041-B8A1-6E0B"
|
54
54
|
# @!attribute [rw] description
|
55
55
|
# @return [::String]
|
56
56
|
# A human readable description of the SKU, has a maximum length of 256
|
@@ -298,7 +298,7 @@ module Google
|
|
298
298
|
# @!attribute [rw] parent
|
299
299
|
# @return [::String]
|
300
300
|
# Required. The name of the service.
|
301
|
-
# Example: "services/
|
301
|
+
# Example: "services/6F81-5844-456A"
|
302
302
|
# @!attribute [rw] start_time
|
303
303
|
# @return [::Google::Protobuf::Timestamp]
|
304
304
|
# Optional inclusive start time of the time range for which the pricing
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-billing-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -58,118 +58,6 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '1.1'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: google-style
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: 1.26.3
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 1.26.3
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: minitest
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '5.16'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '5.16'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: minitest-focus
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '1.1'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '1.1'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: minitest-rg
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '5.2'
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - "~>"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '5.2'
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: rake
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - ">="
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: '13.0'
|
124
|
-
type: :development
|
125
|
-
prerelease: false
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
- - ">="
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: '13.0'
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: redcarpet
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - "~>"
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '3.0'
|
138
|
-
type: :development
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - "~>"
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '3.0'
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: simplecov
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - "~>"
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '0.18'
|
152
|
-
type: :development
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - "~>"
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '0.18'
|
159
|
-
- !ruby/object:Gem::Dependency
|
160
|
-
name: yard
|
161
|
-
requirement: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - "~>"
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0.9'
|
166
|
-
type: :development
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
requirements:
|
170
|
-
- - "~>"
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: '0.9'
|
173
61
|
description: Allows developers to manage billing for their Google Cloud Platform projects
|
174
62
|
programmatically. Note that google-cloud-billing-v1 is a version-specific client
|
175
63
|
library. For most uses, we recommend installing the main client library google-cloud-billing
|
@@ -232,14 +120,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
120
|
requirements:
|
233
121
|
- - ">="
|
234
122
|
- !ruby/object:Gem::Version
|
235
|
-
version: '2.
|
123
|
+
version: '2.7'
|
236
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
125
|
requirements:
|
238
126
|
- - ">="
|
239
127
|
- !ruby/object:Gem::Version
|
240
128
|
version: '0'
|
241
129
|
requirements: []
|
242
|
-
rubygems_version: 3.5.
|
130
|
+
rubygems_version: 3.5.6
|
243
131
|
signing_key:
|
244
132
|
specification_version: 4
|
245
133
|
summary: Allows developers to manage billing for their Google Cloud Platform projects
|