google-cloud-billing-v1 0.13.2 → 0.15.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 +4 -4
- data/lib/google/cloud/billing/v1/cloud_billing/client.rb +10 -1
- data/lib/google/cloud/billing/v1/cloud_billing/paths.rb +14 -0
- data/lib/google/cloud/billing/v1/cloud_billing/rest/client.rb +168 -0
- data/lib/google/cloud/billing/v1/cloud_billing_pb.rb +1 -1
- data/lib/google/cloud/billing/v1/cloud_catalog/client.rb +10 -1
- data/lib/google/cloud/billing/v1/cloud_catalog/rest/client.rb +40 -0
- data/lib/google/cloud/billing/v1/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be36b334a1425494e4a2dd69ad0ee545ef80c095ec386731a05324981e02279b
|
4
|
+
data.tar.gz: f52fcb020bc03eefc23583f4142dc721ce9eed23fbdce0e45acc1b6e0351d61b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13e48a023067278cd26a8dd3cd01ab4163b27577747ba61211b33afffeca7ae946d669ff3520e1ba081bb29face4b2dcf98cf230c85acf3ab10f03fd941529d5
|
7
|
+
data.tar.gz: 42b4ab5b17dc2bde5ec8bed2925bb4c83f9ad677d67ff67a1156acb795962bfd1faff5b0cc57b430411e3afebe7e012df5467300078cc108ef5f9d1a86033df2
|
@@ -186,7 +186,8 @@ module Google
|
|
186
186
|
credentials: credentials,
|
187
187
|
endpoint: @config.endpoint,
|
188
188
|
channel_args: @config.channel_args,
|
189
|
-
interceptors: @config.interceptors
|
189
|
+
interceptors: @config.interceptors,
|
190
|
+
channel_pool_config: @config.channel_pool
|
190
191
|
)
|
191
192
|
end
|
192
193
|
|
@@ -1284,6 +1285,14 @@ module Google
|
|
1284
1285
|
end
|
1285
1286
|
end
|
1286
1287
|
|
1288
|
+
##
|
1289
|
+
# Configuration for the channel pool
|
1290
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1291
|
+
#
|
1292
|
+
def channel_pool
|
1293
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1294
|
+
end
|
1295
|
+
|
1287
1296
|
##
|
1288
1297
|
# Configuration RPC class for the CloudBilling API.
|
1289
1298
|
#
|
@@ -38,6 +38,20 @@ module Google
|
|
38
38
|
"billingAccounts/#{billing_account}"
|
39
39
|
end
|
40
40
|
|
41
|
+
##
|
42
|
+
# Create a fully-qualified Project resource string.
|
43
|
+
#
|
44
|
+
# The resource will be in the following format:
|
45
|
+
#
|
46
|
+
# `projects/{project}`
|
47
|
+
#
|
48
|
+
# @param project [String]
|
49
|
+
#
|
50
|
+
# @return [::String]
|
51
|
+
def project_path project:
|
52
|
+
"projects/#{project}"
|
53
|
+
end
|
54
|
+
|
41
55
|
##
|
42
56
|
# Create a fully-qualified ProjectBillingInfo resource string.
|
43
57
|
#
|
@@ -213,6 +213,22 @@ module Google
|
|
213
213
|
# @return [::Google::Cloud::Billing::V1::BillingAccount]
|
214
214
|
#
|
215
215
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
216
|
+
#
|
217
|
+
# @example Basic example
|
218
|
+
# require "google/cloud/billing/v1"
|
219
|
+
#
|
220
|
+
# # Create a client object. The client can be reused for multiple calls.
|
221
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
222
|
+
#
|
223
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
224
|
+
# request = Google::Cloud::Billing::V1::GetBillingAccountRequest.new
|
225
|
+
#
|
226
|
+
# # Call the get_billing_account method.
|
227
|
+
# result = client.get_billing_account request
|
228
|
+
#
|
229
|
+
# # The returned object is of type Google::Cloud::Billing::V1::BillingAccount.
|
230
|
+
# p result
|
231
|
+
#
|
216
232
|
def get_billing_account request, options = nil
|
217
233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
218
234
|
|
@@ -289,6 +305,26 @@ module Google
|
|
289
305
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Billing::V1::BillingAccount>]
|
290
306
|
#
|
291
307
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
308
|
+
#
|
309
|
+
# @example Basic example
|
310
|
+
# require "google/cloud/billing/v1"
|
311
|
+
#
|
312
|
+
# # Create a client object. The client can be reused for multiple calls.
|
313
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
314
|
+
#
|
315
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
316
|
+
# request = Google::Cloud::Billing::V1::ListBillingAccountsRequest.new
|
317
|
+
#
|
318
|
+
# # Call the list_billing_accounts method.
|
319
|
+
# result = client.list_billing_accounts request
|
320
|
+
#
|
321
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
322
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
323
|
+
# result.each do |item|
|
324
|
+
# # Each element is of type ::Google::Cloud::Billing::V1::BillingAccount.
|
325
|
+
# p item
|
326
|
+
# end
|
327
|
+
#
|
292
328
|
def list_billing_accounts request, options = nil
|
293
329
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
294
330
|
|
@@ -363,6 +399,22 @@ module Google
|
|
363
399
|
# @return [::Google::Cloud::Billing::V1::BillingAccount]
|
364
400
|
#
|
365
401
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
402
|
+
#
|
403
|
+
# @example Basic example
|
404
|
+
# require "google/cloud/billing/v1"
|
405
|
+
#
|
406
|
+
# # Create a client object. The client can be reused for multiple calls.
|
407
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
408
|
+
#
|
409
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
410
|
+
# request = Google::Cloud::Billing::V1::UpdateBillingAccountRequest.new
|
411
|
+
#
|
412
|
+
# # Call the update_billing_account method.
|
413
|
+
# result = client.update_billing_account request
|
414
|
+
#
|
415
|
+
# # The returned object is of type Google::Cloud::Billing::V1::BillingAccount.
|
416
|
+
# p result
|
417
|
+
#
|
366
418
|
def update_billing_account request, options = nil
|
367
419
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
368
420
|
|
@@ -442,6 +494,22 @@ module Google
|
|
442
494
|
# @return [::Google::Cloud::Billing::V1::BillingAccount]
|
443
495
|
#
|
444
496
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
497
|
+
#
|
498
|
+
# @example Basic example
|
499
|
+
# require "google/cloud/billing/v1"
|
500
|
+
#
|
501
|
+
# # Create a client object. The client can be reused for multiple calls.
|
502
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
503
|
+
#
|
504
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
505
|
+
# request = Google::Cloud::Billing::V1::CreateBillingAccountRequest.new
|
506
|
+
#
|
507
|
+
# # Call the create_billing_account method.
|
508
|
+
# result = client.create_billing_account request
|
509
|
+
#
|
510
|
+
# # The returned object is of type Google::Cloud::Billing::V1::BillingAccount.
|
511
|
+
# p result
|
512
|
+
#
|
445
513
|
def create_billing_account request, options = nil
|
446
514
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
447
515
|
|
@@ -516,6 +584,26 @@ module Google
|
|
516
584
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Billing::V1::ProjectBillingInfo>]
|
517
585
|
#
|
518
586
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
587
|
+
#
|
588
|
+
# @example Basic example
|
589
|
+
# require "google/cloud/billing/v1"
|
590
|
+
#
|
591
|
+
# # Create a client object. The client can be reused for multiple calls.
|
592
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
593
|
+
#
|
594
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
595
|
+
# request = Google::Cloud::Billing::V1::ListProjectBillingInfoRequest.new
|
596
|
+
#
|
597
|
+
# # Call the list_project_billing_info method.
|
598
|
+
# result = client.list_project_billing_info request
|
599
|
+
#
|
600
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
601
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
602
|
+
# result.each do |item|
|
603
|
+
# # Each element is of type ::Google::Cloud::Billing::V1::ProjectBillingInfo.
|
604
|
+
# p item
|
605
|
+
# end
|
606
|
+
#
|
519
607
|
def list_project_billing_info request, options = nil
|
520
608
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
521
609
|
|
@@ -584,6 +672,22 @@ module Google
|
|
584
672
|
# @return [::Google::Cloud::Billing::V1::ProjectBillingInfo]
|
585
673
|
#
|
586
674
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
675
|
+
#
|
676
|
+
# @example Basic example
|
677
|
+
# require "google/cloud/billing/v1"
|
678
|
+
#
|
679
|
+
# # Create a client object. The client can be reused for multiple calls.
|
680
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
681
|
+
#
|
682
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
683
|
+
# request = Google::Cloud::Billing::V1::GetProjectBillingInfoRequest.new
|
684
|
+
#
|
685
|
+
# # Call the get_project_billing_info method.
|
686
|
+
# result = client.get_project_billing_info request
|
687
|
+
#
|
688
|
+
# # The returned object is of type Google::Cloud::Billing::V1::ProjectBillingInfo.
|
689
|
+
# p result
|
690
|
+
#
|
587
691
|
def get_project_billing_info request, options = nil
|
588
692
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
589
693
|
|
@@ -682,6 +786,22 @@ module Google
|
|
682
786
|
# @return [::Google::Cloud::Billing::V1::ProjectBillingInfo]
|
683
787
|
#
|
684
788
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
789
|
+
#
|
790
|
+
# @example Basic example
|
791
|
+
# require "google/cloud/billing/v1"
|
792
|
+
#
|
793
|
+
# # Create a client object. The client can be reused for multiple calls.
|
794
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
795
|
+
#
|
796
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
797
|
+
# request = Google::Cloud::Billing::V1::UpdateProjectBillingInfoRequest.new
|
798
|
+
#
|
799
|
+
# # Call the update_project_billing_info method.
|
800
|
+
# result = client.update_project_billing_info request
|
801
|
+
#
|
802
|
+
# # The returned object is of type Google::Cloud::Billing::V1::ProjectBillingInfo.
|
803
|
+
# p result
|
804
|
+
#
|
685
805
|
def update_project_billing_info request, options = nil
|
686
806
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
687
807
|
|
@@ -751,6 +871,22 @@ module Google
|
|
751
871
|
# @return [::Google::Iam::V1::Policy]
|
752
872
|
#
|
753
873
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
874
|
+
#
|
875
|
+
# @example Basic example
|
876
|
+
# require "google/cloud/billing/v1"
|
877
|
+
#
|
878
|
+
# # Create a client object. The client can be reused for multiple calls.
|
879
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
880
|
+
#
|
881
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
882
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
883
|
+
#
|
884
|
+
# # Call the get_iam_policy method.
|
885
|
+
# result = client.get_iam_policy request
|
886
|
+
#
|
887
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
888
|
+
# p result
|
889
|
+
#
|
754
890
|
def get_iam_policy request, options = nil
|
755
891
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
756
892
|
|
@@ -829,6 +965,22 @@ module Google
|
|
829
965
|
# @return [::Google::Iam::V1::Policy]
|
830
966
|
#
|
831
967
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
968
|
+
#
|
969
|
+
# @example Basic example
|
970
|
+
# require "google/cloud/billing/v1"
|
971
|
+
#
|
972
|
+
# # Create a client object. The client can be reused for multiple calls.
|
973
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
974
|
+
#
|
975
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
976
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
977
|
+
#
|
978
|
+
# # Call the set_iam_policy method.
|
979
|
+
# result = client.set_iam_policy request
|
980
|
+
#
|
981
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
982
|
+
# p result
|
983
|
+
#
|
832
984
|
def set_iam_policy request, options = nil
|
833
985
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
834
986
|
|
@@ -899,6 +1051,22 @@ module Google
|
|
899
1051
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
900
1052
|
#
|
901
1053
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1054
|
+
#
|
1055
|
+
# @example Basic example
|
1056
|
+
# require "google/cloud/billing/v1"
|
1057
|
+
#
|
1058
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1059
|
+
# client = Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
1060
|
+
#
|
1061
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1062
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1063
|
+
#
|
1064
|
+
# # Call the test_iam_permissions method.
|
1065
|
+
# result = client.test_iam_permissions request
|
1066
|
+
#
|
1067
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1068
|
+
# p result
|
1069
|
+
#
|
902
1070
|
def test_iam_permissions request, options = nil
|
903
1071
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
904
1072
|
|
@@ -13,7 +13,7 @@ require 'google/iam/v1/policy_pb'
|
|
13
13
|
require 'google/protobuf/field_mask_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n+google/cloud/billing/v1/cloud_billing.proto\x12\x17google.cloud.billing.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a google/protobuf/field_mask.proto\"\x9b\x01\n\x0e\x42illingAccount\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x11\n\x04open\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1e\n\x16master_billing_account\x18\x04 \x01(\t\"\xd1\x01\n\x12ProjectBillingInfo\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nproject_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x14\x62illing_account_name\x18\x03 \x01(\t\x12\x1c\n\x0f\x62illing_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03:S\xea\x41P\n.cloudbilling.googleapis.com/ProjectBillingInfo\x12\x1eprojects/{project}/billingInfo\"\\\n\x18GetBillingAccountRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\"S\n\x1aListBillingAccountsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\"y\n\x1bListBillingAccountsResponse\x12\x41\n\x10\x62illing_accounts\x18\x01 \x03(\x0b\x32\'.google.cloud.billing.v1.BillingAccount\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1b\x43reateBillingAccountRequest\x12\x45\n\x0f\x62illing_account\x18\x01 \x01(\x0b\x32\'.google.cloud.billing.v1.BillingAccountB\x03\xe0\x41\x02\"\xcf\x01\n\x1bUpdateBillingAccountRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12=\n\x07\x61\x63\x63ount\x18\x02 \x01(\x0b\x32\'.google.cloud.billing.v1.BillingAccountB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x88\x01\n\x1dListProjectBillingInfoRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1eListProjectBillingInfoResponse\x12I\n\x14project_billing_info\x18\x01 \x03(\x0b\x32+.google.cloud.billing.v1.ProjectBillingInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"
|
16
|
+
descriptor_data = "\n+google/cloud/billing/v1/cloud_billing.proto\x12\x17google.cloud.billing.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a google/protobuf/field_mask.proto\"\x9b\x01\n\x0e\x42illingAccount\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x03\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x11\n\x04open\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1e\n\x16master_billing_account\x18\x04 \x01(\t\"\xd1\x01\n\x12ProjectBillingInfo\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nproject_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x14\x62illing_account_name\x18\x03 \x01(\t\x12\x1c\n\x0f\x62illing_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03:S\xea\x41P\n.cloudbilling.googleapis.com/ProjectBillingInfo\x12\x1eprojects/{project}/billingInfo\"\\\n\x18GetBillingAccountRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\"S\n\x1aListBillingAccountsRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x03 \x01(\t\"y\n\x1bListBillingAccountsResponse\x12\x41\n\x10\x62illing_accounts\x18\x01 \x03(\x0b\x32\'.google.cloud.billing.v1.BillingAccount\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"d\n\x1b\x43reateBillingAccountRequest\x12\x45\n\x0f\x62illing_account\x18\x01 \x01(\x0b\x32\'.google.cloud.billing.v1.BillingAccountB\x03\xe0\x41\x02\"\xcf\x01\n\x1bUpdateBillingAccountRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12=\n\x07\x61\x63\x63ount\x18\x02 \x01(\x0b\x32\'.google.cloud.billing.v1.BillingAccountB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x88\x01\n\x1dListProjectBillingInfoRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x84\x01\n\x1eListProjectBillingInfoResponse\x12I\n\x14project_billing_info\x18\x01 \x03(\x0b\x32+.google.cloud.billing.v1.ProjectBillingInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1cGetProjectBillingInfoRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\"\x7f\n\x1fUpdateProjectBillingInfoRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\x14project_billing_info\x18\x02 \x01(\x0b\x32+.google.cloud.billing.v1.ProjectBillingInfo2\xb2\x0f\n\x0c\x43loudBilling\x12\x9c\x01\n\x11GetBillingAccount\x12\x31.google.cloud.billing.v1.GetBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\"+\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/{name=billingAccounts/*}\xda\x41\x04name\x12\xa0\x01\n\x13ListBillingAccounts\x12\x33.google.cloud.billing.v1.ListBillingAccountsRequest\x1a\x34.google.cloud.billing.v1.ListBillingAccountsResponse\"\x1e\x82\xd3\xe4\x93\x02\x15\x12\x13/v1/billingAccounts\xda\x41\x00\x12\xb3\x01\n\x14UpdateBillingAccount\x12\x34.google.cloud.billing.v1.UpdateBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\"<\x82\xd3\xe4\x93\x02\'2\x1c/v1/{name=billingAccounts/*}:\x07\x61\x63\x63ount\xda\x41\x0cname,account\x12\xb5\x01\n\x14\x43reateBillingAccount\x12\x34.google.cloud.billing.v1.CreateBillingAccountRequest\x1a\'.google.cloud.billing.v1.BillingAccount\">\x82\xd3\xe4\x93\x02&\"\x13/v1/billingAccounts:\x0f\x62illing_account\xda\x41\x0f\x62illing_account\x12\xbf\x01\n\x16ListProjectBillingInfo\x12\x36.google.cloud.billing.v1.ListProjectBillingInfoRequest\x1a\x37.google.cloud.billing.v1.ListProjectBillingInfoResponse\"4\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=billingAccounts/*}/projects\xda\x41\x04name\x12\xad\x01\n\x15GetProjectBillingInfo\x12\x35.google.cloud.billing.v1.GetProjectBillingInfoRequest\x1a+.google.cloud.billing.v1.ProjectBillingInfo\"0\x82\xd3\xe4\x93\x02#\x12!/v1/{name=projects/*}/billingInfo\xda\x41\x04name\x12\xde\x01\n\x18UpdateProjectBillingInfo\x12\x38.google.cloud.billing.v1.UpdateProjectBillingInfoRequest\x1a+.google.cloud.billing.v1.ProjectBillingInfo\"[\x82\xd3\xe4\x93\x02\x39\x1a!/v1/{name=projects/*}/billingInfo:\x14project_billing_info\xda\x41\x19name,project_billing_info\x12\x8b\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"@\x82\xd3\xe4\x93\x02/\x12-/v1/{resource=billingAccounts/*}:getIamPolicy\xda\x41\x08resource\x12\x95\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"J\x82\xd3\xe4\x93\x02\x32\"-/v1/{resource=billingAccounts/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\xc0\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"U\x82\xd3\xe4\x93\x02\x38\"3/v1/{resource=billingAccounts/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x1a\xb5\x01\xca\x41\x1b\x63loudbilling.googleapis.com\xd2\x41\x93\x01https://www.googleapis.com/auth/cloud-billing,https://www.googleapis.com/auth/cloud-billing.readonly,https://www.googleapis.com/auth/cloud-platformBi\n\x1b\x63om.google.cloud.billing.v1B\x11\x43loudBillingProtoP\x01Z5cloud.google.com/go/billing/apiv1/billingpb;billingpbb\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -144,7 +144,8 @@ module Google
|
|
144
144
|
credentials: credentials,
|
145
145
|
endpoint: @config.endpoint,
|
146
146
|
channel_args: @config.channel_args,
|
147
|
-
interceptors: @config.interceptors
|
147
|
+
interceptors: @config.interceptors,
|
148
|
+
channel_pool_config: @config.channel_pool
|
148
149
|
)
|
149
150
|
end
|
150
151
|
|
@@ -470,6 +471,14 @@ module Google
|
|
470
471
|
end
|
471
472
|
end
|
472
473
|
|
474
|
+
##
|
475
|
+
# Configuration for the channel pool
|
476
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
477
|
+
#
|
478
|
+
def channel_pool
|
479
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
480
|
+
end
|
481
|
+
|
473
482
|
##
|
474
483
|
# Configuration RPC class for the CloudCatalog API.
|
475
484
|
#
|
@@ -172,6 +172,26 @@ module Google
|
|
172
172
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Billing::V1::Service>]
|
173
173
|
#
|
174
174
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
175
|
+
#
|
176
|
+
# @example Basic example
|
177
|
+
# require "google/cloud/billing/v1"
|
178
|
+
#
|
179
|
+
# # Create a client object. The client can be reused for multiple calls.
|
180
|
+
# client = Google::Cloud::Billing::V1::CloudCatalog::Rest::Client.new
|
181
|
+
#
|
182
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
183
|
+
# request = Google::Cloud::Billing::V1::ListServicesRequest.new
|
184
|
+
#
|
185
|
+
# # Call the list_services method.
|
186
|
+
# result = client.list_services request
|
187
|
+
#
|
188
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
189
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
190
|
+
# result.each do |item|
|
191
|
+
# # Each element is of type ::Google::Cloud::Billing::V1::Service.
|
192
|
+
# p item
|
193
|
+
# end
|
194
|
+
#
|
175
195
|
def list_services request, options = nil
|
176
196
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
177
197
|
|
@@ -260,6 +280,26 @@ module Google
|
|
260
280
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Billing::V1::Sku>]
|
261
281
|
#
|
262
282
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
283
|
+
#
|
284
|
+
# @example Basic example
|
285
|
+
# require "google/cloud/billing/v1"
|
286
|
+
#
|
287
|
+
# # Create a client object. The client can be reused for multiple calls.
|
288
|
+
# client = Google::Cloud::Billing::V1::CloudCatalog::Rest::Client.new
|
289
|
+
#
|
290
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
291
|
+
# request = Google::Cloud::Billing::V1::ListSkusRequest.new
|
292
|
+
#
|
293
|
+
# # Call the list_skus method.
|
294
|
+
# result = client.list_skus request
|
295
|
+
#
|
296
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
297
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
298
|
+
# result.each do |item|
|
299
|
+
# # Each element is of type ::Google::Cloud::Billing::V1::Sku.
|
300
|
+
# p item
|
301
|
+
# end
|
302
|
+
#
|
263
303
|
def list_skus request, options = nil
|
264
304
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
265
305
|
|
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.15.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: 2023-09-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|