google-cloud-billing-v1 0.18.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abdbb21a553db2db7150cb22e1ec91e045a1bde2e1705a66ee7e4fd01f4420b0
4
- data.tar.gz: dea3265e8816159526ee932dbcb17e14d3fd434f81c31bc2b5d57f058dfca82a
3
+ metadata.gz: f21eb0368d7198d26ce12f82ab54a6f4a514bb841f3ce243b45c3d757a40a117
4
+ data.tar.gz: 94709a0135bdb1df0fa928d941ac87024904ba6b2d0df5e0cba4469486fa3bba
5
5
  SHA512:
6
- metadata.gz: 73513dffb39c796e1b0d2b307691a5c2815a8b369256cea46a72f8a169434093f831c8ecb11c4ff5b2a223dc17eca3dfaad24f74c16b4760e6540ddf0979379f
7
- data.tar.gz: 789baca6dbb4d64e85fa3544df5ad25c5409c66591b5216640f0bbdd5b04ee3f685fc3b6429014e154e173d64cf603e29effbafa07c75f4157707d9f17bd55bc
6
+ metadata.gz: dc9cad4d64c91cdfe952ce9fcc837860da45beff0a7245746f03f52bd70c29e88f77e10d5e3071d6e4e4bb0f8a5c995f1843b4cdad3777bc842119dc2ef0e025
7
+ data.tar.gz: ea861716139e43f3f684ea0e82abeb225740064a37fb472dc8d212a46ea5d67f67ee3d84d03ef2032f6d8c88e401a86f2a275988499ccaa07bd67a0393a7bac0
@@ -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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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/DA34-426B-A397"
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 and x-goog-user-project headers
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 and x-goog-user-project headers
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/DA34-426B-A397"
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 and x-goog-user-project headers
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,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Billing
23
23
  module V1
24
- VERSION = "0.18.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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/DA34-426B-A397"
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: "DA34-426B-A397"
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 Platform
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/DA34-426B-A397/skus/AA95-CD31-42FE"
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: "AA95-CD31-42FE"
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/DA34-426B-A397"
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.18.0
4
+ version: 1.0.0
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-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common