google-cloud-billing-v1 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/billing/v1/cloud_billing/client.rb +18 -19
- data/lib/google/cloud/billing/v1/cloud_billing/rest/client.rb +1143 -0
- data/lib/google/cloud/billing/v1/cloud_billing/rest/service_stub.rb +639 -0
- data/lib/google/cloud/billing/v1/cloud_billing/rest.rb +53 -0
- data/lib/google/cloud/billing/v1/cloud_billing.rb +7 -1
- data/lib/google/cloud/billing/v1/cloud_catalog/client.rb +8 -12
- data/lib/google/cloud/billing/v1/cloud_catalog/rest/client.rb +450 -0
- data/lib/google/cloud/billing/v1/cloud_catalog/rest/service_stub.rb +164 -0
- data/lib/google/cloud/billing/v1/cloud_catalog/rest.rb +54 -0
- data/lib/google/cloud/billing/v1/cloud_catalog.rb +7 -1
- data/lib/google/cloud/billing/v1/rest.rb +38 -0
- data/lib/google/cloud/billing/v1/version.rb +1 -1
- data/lib/google/cloud/billing/v1.rb +7 -2
- data/proto_docs/google/cloud/billing/v1/cloud_billing.rb +16 -12
- metadata +16 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8af908c3f6293aa7458e5ffaff9cf50e53d60397c67179946cd57ed54df9d7d8
|
4
|
+
data.tar.gz: bab2cf3bf6aec0c15bab4204d020f359a659a1b4b19e12cca07c0a8fefb1f646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 772e1df0b42de029c3a04e36d5c45badf62f88379c0781938b482891b78c1fab678e056e70e93c9d46ebf97155e64192c048c6a62a70673ba1d11a4556e476c1
|
7
|
+
data.tar.gz: 9958ebb1b3676ffaac5a5411c33ea060230238cb804e1102a9e876f8b8abe3a9ae9da3d2545e3f11c941f27cc9abf51512d3c0c5c102966083f69ea8b2ae845e
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Billing V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Allows developers to manage billing for their Google Cloud Platform projects programmatically.
|
4
4
|
|
5
5
|
Allows developers to manage billing for their Google Cloud Platform projects programmatically.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -213,8 +213,8 @@ module Google
|
|
213
213
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
214
214
|
#
|
215
215
|
# @param name [::String]
|
216
|
-
# Required. The resource name of the billing account to retrieve. For
|
217
|
-
# `billingAccounts/012345-567890-ABCDEF`.
|
216
|
+
# Required. The resource name of the billing account to retrieve. For
|
217
|
+
# example, `billingAccounts/012345-567890-ABCDEF`.
|
218
218
|
#
|
219
219
|
# @yield [response, operation] Access the result along with the RPC operation
|
220
220
|
# @yieldparam response [::Google::Cloud::Billing::V1::BillingAccount]
|
@@ -335,13 +335,11 @@ module Google
|
|
335
335
|
# # Call the list_billing_accounts method.
|
336
336
|
# result = client.list_billing_accounts request
|
337
337
|
#
|
338
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
339
|
-
# #
|
340
|
-
#
|
341
|
-
# # methods are also available for managing paging directly.
|
342
|
-
# result.each do |response|
|
338
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
339
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
340
|
+
# result.each do |item|
|
343
341
|
# # Each element is of type ::Google::Cloud::Billing::V1::BillingAccount.
|
344
|
-
# p
|
342
|
+
# p item
|
345
343
|
# end
|
346
344
|
#
|
347
345
|
def list_billing_accounts request, options = nil
|
@@ -404,7 +402,8 @@ module Google
|
|
404
402
|
# @param name [::String]
|
405
403
|
# Required. The name of the billing account resource to be updated.
|
406
404
|
# @param account [::Google::Cloud::Billing::V1::BillingAccount, ::Hash]
|
407
|
-
# Required. The billing account resource to replace the resource on the
|
405
|
+
# Required. The billing account resource to replace the resource on the
|
406
|
+
# server.
|
408
407
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
409
408
|
# The update mask applied to the resource.
|
410
409
|
# Only "display_name" is currently supported.
|
@@ -589,8 +588,9 @@ module Google
|
|
589
588
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
590
589
|
#
|
591
590
|
# @param name [::String]
|
592
|
-
# Required. The resource name of the billing account associated with the
|
593
|
-
# you want to list. For example,
|
591
|
+
# Required. The resource name of the billing account associated with the
|
592
|
+
# projects that you want to list. For example,
|
593
|
+
# `billingAccounts/012345-567890-ABCDEF`.
|
594
594
|
# @param page_size [::Integer]
|
595
595
|
# Requested page size. The maximum page size is 100; this is also the
|
596
596
|
# default.
|
@@ -619,13 +619,11 @@ module Google
|
|
619
619
|
# # Call the list_project_billing_info method.
|
620
620
|
# result = client.list_project_billing_info request
|
621
621
|
#
|
622
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
623
|
-
# #
|
624
|
-
#
|
625
|
-
# # methods are also available for managing paging directly.
|
626
|
-
# result.each do |response|
|
622
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
623
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
624
|
+
# result.each do |item|
|
627
625
|
# # Each element is of type ::Google::Cloud::Billing::V1::ProjectBillingInfo.
|
628
|
-
# p
|
626
|
+
# p item
|
629
627
|
# end
|
630
628
|
#
|
631
629
|
def list_project_billing_info request, options = nil
|
@@ -809,8 +807,9 @@ module Google
|
|
809
807
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
810
808
|
#
|
811
809
|
# @param name [::String]
|
812
|
-
# Required. The resource name of the project associated with the billing
|
813
|
-
# that you want to update. For example,
|
810
|
+
# Required. The resource name of the project associated with the billing
|
811
|
+
# information that you want to update. For example,
|
812
|
+
# `projects/tokyo-rain-123`.
|
814
813
|
# @param project_billing_info [::Google::Cloud::Billing::V1::ProjectBillingInfo, ::Hash]
|
815
814
|
# The new billing information for the project. Read-only fields are ignored;
|
816
815
|
# thus, you can leave empty all fields except `billing_account_name`.
|