google-cloud-billing-v1 0.14.0 → 0.15.1

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: c17269f89fde2ada70d1c51b913420ec9ad77c71daa9494819c7818d762b7524
4
- data.tar.gz: d33c83b39fcf61a3b9c150c70ba69aca2475e7e85b7111c406f560f60472f2c0
3
+ metadata.gz: 60bbb8a8ff06c3cb068a6b9632bba498f6bde40438945e34eb73c7e6667e2d77
4
+ data.tar.gz: f59f1346597386a1f607ca2dd61468b355e10633adda7a7fe1756a11556118b1
5
5
  SHA512:
6
- metadata.gz: d4b26928c950093858e41812b6b1541c04712250fc50e1d1bc3d38504fbf5ce1f0ca2058577bf75267a2bffbdc8b4b177bf9a961148fe4898dd0245651e5fec4
7
- data.tar.gz: 26b0657c30fe13af5d9c1d9097db7368b9ee002595b4b1faa391a85673004188717f60c4eb0d25892284a7b1d19b510bfe45e6d2ff094ec5b8ffa88f06616252
6
+ metadata.gz: 19c25b82e249cd2a79ce39fb9e32d86075f94fc6746459082abc334b64ec4dfdc2a2f71542ef06f249cfa0f2ec63de715e51c6712938861a80a568dc3125c47b
7
+ data.tar.gz: 6c95b05e6dc50db58e95ac3f0d786a0f65cbe8941a8ded0544a3d1bdbbf2d83ef96db2f4b9e6340216bbe6cc0c9674c1b363a9402b4f641ea0e01560a9b80827
@@ -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
 
@@ -309,9 +310,9 @@ module Google
309
310
  # call. If unspecified, the first page of results is returned.
310
311
  # @param filter [::String]
311
312
  # Options for how to filter the returned billing accounts.
312
- # Currently this only supports filtering for
313
+ # This only supports filtering for
313
314
  # [subaccounts](https://cloud.google.com/billing/docs/concepts) under a
314
- # single provided reseller billing account.
315
+ # single provided parent billing account.
315
316
  # (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF").
316
317
  # Boolean algebra and other fields are not currently supported.
317
318
  #
@@ -487,7 +488,7 @@ module Google
487
488
  # typically given to billing account
488
489
  # [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
489
490
  # This method will return an error if the parent account has not been
490
- # provisioned as a reseller account.
491
+ # provisioned for subaccounts.
491
492
  #
492
493
  # @overload create_billing_account(request, options = nil)
493
494
  # Pass arguments to `create_billing_account` via a request object, either of type
@@ -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
  #
@@ -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
 
@@ -277,9 +293,9 @@ module Google
277
293
  # call. If unspecified, the first page of results is returned.
278
294
  # @param filter [::String]
279
295
  # Options for how to filter the returned billing accounts.
280
- # Currently this only supports filtering for
296
+ # This only supports filtering for
281
297
  # [subaccounts](https://cloud.google.com/billing/docs/concepts) under a
282
- # single provided reseller billing account.
298
+ # single provided parent billing account.
283
299
  # (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF").
284
300
  # Boolean algebra and other fields are not currently supported.
285
301
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -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
 
@@ -413,7 +465,7 @@ module Google
413
465
  # typically given to billing account
414
466
  # [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
415
467
  # This method will return an error if the parent account has not been
416
- # provisioned as a reseller account.
468
+ # provisioned for subaccounts.
417
469
  #
418
470
  # @overload create_billing_account(request, options = nil)
419
471
  # Pass arguments to `create_billing_account` via a request object, either of type
@@ -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
 
@@ -63,7 +63,7 @@ module Google
63
63
  # typically given to billing account
64
64
  # [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
65
65
  # This method will return an error if the parent account has not been
66
- # provisioned as a reseller account.
66
+ # provisioned for subaccounts.
67
67
  rpc :CreateBillingAccount, ::Google::Cloud::Billing::V1::CreateBillingAccountRequest, ::Google::Cloud::Billing::V1::BillingAccount
68
68
  # Lists the projects associated with a billing account. The current
69
69
  # authenticated user must have the `billing.resourceAssociations.list` IAM
@@ -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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Billing
23
23
  module V1
24
- VERSION = "0.14.0"
24
+ VERSION = "0.15.1"
25
25
  end
26
26
  end
27
27
  end
@@ -104,9 +104,9 @@ module Google
104
104
  # @!attribute [rw] filter
105
105
  # @return [::String]
106
106
  # Options for how to filter the returned billing accounts.
107
- # Currently this only supports filtering for
107
+ # This only supports filtering for
108
108
  # [subaccounts](https://cloud.google.com/billing/docs/concepts) under a
109
- # single provided reseller billing account.
109
+ # single provided parent billing account.
110
110
  # (e.g. "master_billing_account=billingAccounts/012345-678901-ABCDEF").
111
111
  # Boolean algebra and other fields are not currently supported.
112
112
  class ListBillingAccountsRequest
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.14.0
4
+ version: 0.15.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: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2023-09-26 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.1
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a