google-cloud-billing-v1 0.10.0 → 0.12.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 +3 -3
- data/lib/google/cloud/billing/v1/cloud_billing/client.rb +24 -23
- data/lib/google/cloud/billing/v1/cloud_billing/rest/client.rb +1145 -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_billing_pb.rb +25 -49
- data/lib/google/cloud/billing/v1/cloud_catalog/client.rb +14 -16
- data/lib/google/cloud/billing/v1/cloud_catalog/rest/client.rb +452 -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/cloud_catalog_pb.rb +26 -88
- 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/api/client.rb +67 -4
- data/proto_docs/google/cloud/billing/v1/cloud_billing.rb +16 -12
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +16 -8
@@ -25,6 +25,7 @@ require "google/cloud/billing/v1/version"
|
|
25
25
|
require "google/cloud/billing/v1/cloud_catalog/credentials"
|
26
26
|
require "google/cloud/billing/v1/cloud_catalog/paths"
|
27
27
|
require "google/cloud/billing/v1/cloud_catalog/client"
|
28
|
+
require "google/cloud/billing/v1/cloud_catalog/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -35,11 +36,16 @@ module Google
|
|
35
36
|
# Provides pricing information and metadata on Google Cloud Platform services
|
36
37
|
# and SKUs.
|
37
38
|
#
|
38
|
-
#
|
39
|
+
# @example Load this service and instantiate a gRPC client
|
39
40
|
#
|
40
41
|
# require "google/cloud/billing/v1/cloud_catalog"
|
41
42
|
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Client.new
|
42
43
|
#
|
44
|
+
# @example Load this service and instantiate a REST client
|
45
|
+
#
|
46
|
+
# require "google/cloud/billing/v1/cloud_catalog/rest"
|
47
|
+
# client = ::Google::Cloud::Billing::V1::CloudCatalog::Rest::Client.new
|
48
|
+
#
|
43
49
|
module CloudCatalog
|
44
50
|
end
|
45
51
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/billing/v1/cloud_catalog.proto
|
3
4
|
|
@@ -10,96 +11,33 @@ require 'google/api/resource_pb'
|
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
require 'google/type/money_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
end
|
37
|
-
add_message "google.cloud.billing.v1.PricingInfo" do
|
38
|
-
optional :effective_time, :message, 1, "google.protobuf.Timestamp"
|
39
|
-
optional :summary, :string, 2
|
40
|
-
optional :pricing_expression, :message, 3, "google.cloud.billing.v1.PricingExpression"
|
41
|
-
optional :aggregation_info, :message, 4, "google.cloud.billing.v1.AggregationInfo"
|
42
|
-
optional :currency_conversion_rate, :double, 5
|
43
|
-
end
|
44
|
-
add_message "google.cloud.billing.v1.PricingExpression" do
|
45
|
-
optional :usage_unit, :string, 1
|
46
|
-
optional :display_quantity, :double, 2
|
47
|
-
repeated :tiered_rates, :message, 3, "google.cloud.billing.v1.PricingExpression.TierRate"
|
48
|
-
optional :usage_unit_description, :string, 4
|
49
|
-
optional :base_unit, :string, 5
|
50
|
-
optional :base_unit_description, :string, 6
|
51
|
-
optional :base_unit_conversion_factor, :double, 7
|
52
|
-
end
|
53
|
-
add_message "google.cloud.billing.v1.PricingExpression.TierRate" do
|
54
|
-
optional :start_usage_amount, :double, 1
|
55
|
-
optional :unit_price, :message, 2, "google.type.Money"
|
56
|
-
end
|
57
|
-
add_message "google.cloud.billing.v1.AggregationInfo" do
|
58
|
-
optional :aggregation_level, :enum, 1, "google.cloud.billing.v1.AggregationInfo.AggregationLevel"
|
59
|
-
optional :aggregation_interval, :enum, 2, "google.cloud.billing.v1.AggregationInfo.AggregationInterval"
|
60
|
-
optional :aggregation_count, :int32, 3
|
61
|
-
end
|
62
|
-
add_enum "google.cloud.billing.v1.AggregationInfo.AggregationLevel" do
|
63
|
-
value :AGGREGATION_LEVEL_UNSPECIFIED, 0
|
64
|
-
value :ACCOUNT, 1
|
65
|
-
value :PROJECT, 2
|
66
|
-
end
|
67
|
-
add_enum "google.cloud.billing.v1.AggregationInfo.AggregationInterval" do
|
68
|
-
value :AGGREGATION_INTERVAL_UNSPECIFIED, 0
|
69
|
-
value :DAILY, 1
|
70
|
-
value :MONTHLY, 2
|
71
|
-
end
|
72
|
-
add_message "google.cloud.billing.v1.GeoTaxonomy" do
|
73
|
-
optional :type, :enum, 1, "google.cloud.billing.v1.GeoTaxonomy.Type"
|
74
|
-
repeated :regions, :string, 2
|
75
|
-
end
|
76
|
-
add_enum "google.cloud.billing.v1.GeoTaxonomy.Type" do
|
77
|
-
value :TYPE_UNSPECIFIED, 0
|
78
|
-
value :GLOBAL, 1
|
79
|
-
value :REGIONAL, 2
|
80
|
-
value :MULTI_REGIONAL, 3
|
81
|
-
end
|
82
|
-
add_message "google.cloud.billing.v1.ListServicesRequest" do
|
83
|
-
optional :page_size, :int32, 1
|
84
|
-
optional :page_token, :string, 2
|
85
|
-
end
|
86
|
-
add_message "google.cloud.billing.v1.ListServicesResponse" do
|
87
|
-
repeated :services, :message, 1, "google.cloud.billing.v1.Service"
|
88
|
-
optional :next_page_token, :string, 2
|
89
|
-
end
|
90
|
-
add_message "google.cloud.billing.v1.ListSkusRequest" do
|
91
|
-
optional :parent, :string, 1
|
92
|
-
optional :start_time, :message, 2, "google.protobuf.Timestamp"
|
93
|
-
optional :end_time, :message, 3, "google.protobuf.Timestamp"
|
94
|
-
optional :currency_code, :string, 4
|
95
|
-
optional :page_size, :int32, 5
|
96
|
-
optional :page_token, :string, 6
|
97
|
-
end
|
98
|
-
add_message "google.cloud.billing.v1.ListSkusResponse" do
|
99
|
-
repeated :skus, :message, 1, "google.cloud.billing.v1.Sku"
|
100
|
-
optional :next_page_token, :string, 2
|
14
|
+
|
15
|
+
descriptor_data = "\n+google/cloud/billing/v1/cloud_catalog.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\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/type/money.proto\"\x9d\x01\n\x07Service\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nservice_id\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x1c\n\x14\x62usiness_entity_name\x18\x04 \x01(\t:<\xea\x41\x39\n#cloudbilling.googleapis.com/Service\x12\x12services/{service}\"\xe2\x02\n\x03Sku\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06sku_id\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x33\n\x08\x63\x61tegory\x18\x04 \x01(\x0b\x32!.google.cloud.billing.v1.Category\x12\x17\n\x0fservice_regions\x18\x05 \x03(\t\x12:\n\x0cpricing_info\x18\x06 \x03(\x0b\x32$.google.cloud.billing.v1.PricingInfo\x12\x1d\n\x15service_provider_name\x18\x07 \x01(\t\x12:\n\x0cgeo_taxonomy\x18\x08 \x01(\x0b\x32$.google.cloud.billing.v1.GeoTaxonomy:C\xea\x41@\n\x1f\x63loudbilling.googleapis.com/Sku\x12\x1dservices/{service}/skus/{sku}\"m\n\x08\x43\x61tegory\x12\x1c\n\x14service_display_name\x18\x01 \x01(\t\x12\x17\n\x0fresource_family\x18\x02 \x01(\t\x12\x16\n\x0eresource_group\x18\x03 \x01(\t\x12\x12\n\nusage_type\x18\x04 \x01(\t\"\x80\x02\n\x0bPricingInfo\x12\x32\n\x0e\x65\x66\x66\x65\x63tive_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07summary\x18\x02 \x01(\t\x12\x46\n\x12pricing_expression\x18\x03 \x01(\x0b\x32*.google.cloud.billing.v1.PricingExpression\x12\x42\n\x10\x61ggregation_info\x18\x04 \x01(\x0b\x32(.google.cloud.billing.v1.AggregationInfo\x12 \n\x18\x63urrency_conversion_rate\x18\x05 \x01(\x01\"\xd3\x02\n\x11PricingExpression\x12\x12\n\nusage_unit\x18\x01 \x01(\t\x12\x18\n\x10\x64isplay_quantity\x18\x02 \x01(\x01\x12I\n\x0ctiered_rates\x18\x03 \x03(\x0b\x32\x33.google.cloud.billing.v1.PricingExpression.TierRate\x12\x1e\n\x16usage_unit_description\x18\x04 \x01(\t\x12\x11\n\tbase_unit\x18\x05 \x01(\t\x12\x1d\n\x15\x62\x61se_unit_description\x18\x06 \x01(\t\x12#\n\x1b\x62\x61se_unit_conversion_factor\x18\x07 \x01(\x01\x1aN\n\x08TierRate\x12\x1a\n\x12start_usage_amount\x18\x01 \x01(\x01\x12&\n\nunit_price\x18\x02 \x01(\x0b\x32\x12.google.type.Money\"\x84\x03\n\x0f\x41ggregationInfo\x12T\n\x11\x61ggregation_level\x18\x01 \x01(\x0e\x32\x39.google.cloud.billing.v1.AggregationInfo.AggregationLevel\x12Z\n\x14\x61ggregation_interval\x18\x02 \x01(\x0e\x32<.google.cloud.billing.v1.AggregationInfo.AggregationInterval\x12\x19\n\x11\x61ggregation_count\x18\x03 \x01(\x05\"O\n\x10\x41ggregationLevel\x12!\n\x1d\x41GGREGATION_LEVEL_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41\x43\x43OUNT\x10\x01\x12\x0b\n\x07PROJECT\x10\x02\"S\n\x13\x41ggregationInterval\x12$\n AGGREGATION_INTERVAL_UNSPECIFIED\x10\x00\x12\t\n\x05\x44\x41ILY\x10\x01\x12\x0b\n\x07MONTHLY\x10\x02\"\xa3\x01\n\x0bGeoTaxonomy\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32).google.cloud.billing.v1.GeoTaxonomy.Type\x12\x0f\n\x07regions\x18\x02 \x03(\t\"J\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06GLOBAL\x10\x01\x12\x0c\n\x08REGIONAL\x10\x02\x12\x12\n\x0eMULTI_REGIONAL\x10\x03\"<\n\x13ListServicesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x12\n\npage_token\x18\x02 \x01(\t\"c\n\x14ListServicesResponse\x12\x32\n\x08services\x18\x01 \x03(\x0b\x32 .google.cloud.billing.v1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xea\x01\n\x0fListSkusRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#cloudbilling.googleapis.com/Service\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rcurrency_code\x18\x04 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\"W\n\x10ListSkusResponse\x12*\n\x04skus\x18\x01 \x03(\x0b\x32\x1c.google.cloud.billing.v1.Sku\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xde\x03\n\x0c\x43loudCatalog\x12\x84\x01\n\x0cListServices\x12,.google.cloud.billing.v1.ListServicesRequest\x1a-.google.cloud.billing.v1.ListServicesResponse\"\x17\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1/services\xda\x41\x00\x12\x8e\x01\n\x08ListSkus\x12(.google.cloud.billing.v1.ListSkusRequest\x1a).google.cloud.billing.v1.ListSkusResponse\"-\x82\xd3\xe4\x93\x02\x1e\x12\x1c/v1/{parent=services/*}/skus\xda\x41\x06parent\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-platformB\x8d\x01\n\x1b\x63om.google.cloud.billing.v1B\x11\x43loudCatalogProtoP\x01Z5cloud.google.com/go/billing/apiv1/billingpb;billingpb\xa2\x02\x07\x43LDCTLG\xaa\x02\x17Google.Cloud.Billing.V1b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.type.Money", "google/type/money.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
101
37
|
end
|
102
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
103
41
|
end
|
104
42
|
|
105
43
|
module Google
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/billing/v1/cloud_billing/rest"
|
20
|
+
require "google/cloud/billing/v1/cloud_catalog/rest"
|
21
|
+
require "google/cloud/billing/v1/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module Billing
|
26
|
+
##
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/billing/v1/rest"
|
32
|
+
# client = ::Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -24,13 +24,18 @@ module Google
|
|
24
24
|
module Cloud
|
25
25
|
module Billing
|
26
26
|
##
|
27
|
-
#
|
27
|
+
# API client module.
|
28
28
|
#
|
29
|
-
# @example
|
29
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
30
30
|
#
|
31
31
|
# require "google/cloud/billing/v1"
|
32
32
|
# client = ::Google::Cloud::Billing::V1::CloudBilling::Client.new
|
33
33
|
#
|
34
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
35
|
+
#
|
36
|
+
# require "google/cloud/billing/v1"
|
37
|
+
# client = ::Google::Cloud::Billing::V1::CloudBilling::Rest::Client.new
|
38
|
+
#
|
34
39
|
module V1
|
35
40
|
end
|
36
41
|
end
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -26,15 +26,16 @@ module Google
|
|
26
26
|
# billing account to one or more projects.
|
27
27
|
# @!attribute [r] name
|
28
28
|
# @return [::String]
|
29
|
-
# Output only. The resource name of the billing account. The resource name
|
30
|
-
# `billingAccounts/{billing_account_id}`. For example,
|
29
|
+
# Output only. The resource name of the billing account. The resource name
|
30
|
+
# has the form `billingAccounts/{billing_account_id}`. For example,
|
31
31
|
# `billingAccounts/012345-567890-ABCDEF` would be the resource name for
|
32
32
|
# billing account `012345-567890-ABCDEF`.
|
33
33
|
# @!attribute [r] open
|
34
34
|
# @return [::Boolean]
|
35
|
-
# Output only. True if the billing account is open, and will therefore be
|
36
|
-
# usage on associated projects. False if the billing account
|
37
|
-
# therefore projects associated with it will be unable to use
|
35
|
+
# Output only. True if the billing account is open, and will therefore be
|
36
|
+
# charged for any usage on associated projects. False if the billing account
|
37
|
+
# is closed, and therefore projects associated with it will be unable to use
|
38
|
+
# paid services.
|
38
39
|
# @!attribute [rw] display_name
|
39
40
|
# @return [::String]
|
40
41
|
# The display name given to the billing account, such as `My Billing
|
@@ -83,8 +84,8 @@ module Google
|
|
83
84
|
# Request message for `GetBillingAccount`.
|
84
85
|
# @!attribute [rw] name
|
85
86
|
# @return [::String]
|
86
|
-
# Required. The resource name of the billing account to retrieve. For
|
87
|
-
# `billingAccounts/012345-567890-ABCDEF`.
|
87
|
+
# Required. The resource name of the billing account to retrieve. For
|
88
|
+
# example, `billingAccounts/012345-567890-ABCDEF`.
|
88
89
|
class GetBillingAccountRequest
|
89
90
|
include ::Google::Protobuf::MessageExts
|
90
91
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -145,7 +146,8 @@ module Google
|
|
145
146
|
# Required. The name of the billing account resource to be updated.
|
146
147
|
# @!attribute [rw] account
|
147
148
|
# @return [::Google::Cloud::Billing::V1::BillingAccount]
|
148
|
-
# Required. The billing account resource to replace the resource on the
|
149
|
+
# Required. The billing account resource to replace the resource on the
|
150
|
+
# server.
|
149
151
|
# @!attribute [rw] update_mask
|
150
152
|
# @return [::Google::Protobuf::FieldMask]
|
151
153
|
# The update mask applied to the resource.
|
@@ -158,8 +160,9 @@ module Google
|
|
158
160
|
# Request message for `ListProjectBillingInfo`.
|
159
161
|
# @!attribute [rw] name
|
160
162
|
# @return [::String]
|
161
|
-
# Required. The resource name of the billing account associated with the
|
162
|
-
# you want to list. For example,
|
163
|
+
# Required. The resource name of the billing account associated with the
|
164
|
+
# projects that you want to list. For example,
|
165
|
+
# `billingAccounts/012345-567890-ABCDEF`.
|
163
166
|
# @!attribute [rw] page_size
|
164
167
|
# @return [::Integer]
|
165
168
|
# Requested page size. The maximum page size is 100; this is also the
|
@@ -202,8 +205,9 @@ module Google
|
|
202
205
|
# Request message for `UpdateProjectBillingInfo`.
|
203
206
|
# @!attribute [rw] name
|
204
207
|
# @return [::String]
|
205
|
-
# Required. The resource name of the project associated with the billing
|
206
|
-
# that you want to update. For example,
|
208
|
+
# Required. The resource name of the project associated with the billing
|
209
|
+
# information that you want to update. For example,
|
210
|
+
# `projects/tokyo-rain-123`.
|
207
211
|
# @!attribute [rw] project_billing_info
|
208
212
|
# @return [::Google::Cloud::Billing::V1::ProjectBillingInfo]
|
209
213
|
# The new billing information for the project. Read-only fields are ignored;
|
@@ -35,7 +35,8 @@ module Google
|
|
35
35
|
# only if the expression evaluates to `true`. A condition can add constraints
|
36
36
|
# based on attributes of the request, the resource, or both. To learn which
|
37
37
|
# resources support conditions in their IAM policies, see the
|
38
|
-
# [IAM
|
38
|
+
# [IAM
|
39
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
39
40
|
#
|
40
41
|
# **JSON example:**
|
41
42
|
#
|
@@ -58,7 +59,8 @@ module Google
|
|
58
59
|
# "condition": {
|
59
60
|
# "title": "expirable access",
|
60
61
|
# "description": "Does not grant access after Sep 2020",
|
61
|
-
# "expression": "request.time <
|
62
|
+
# "expression": "request.time <
|
63
|
+
# timestamp('2020-10-01T00:00:00.000Z')",
|
62
64
|
# }
|
63
65
|
# }
|
64
66
|
# ],
|
@@ -112,7 +114,8 @@ module Google
|
|
112
114
|
# specify any valid version or leave the field unset.
|
113
115
|
#
|
114
116
|
# To learn which resources support conditions in their IAM policies, see the
|
115
|
-
# [IAM
|
117
|
+
# [IAM
|
118
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
116
119
|
# @!attribute [rw] bindings
|
117
120
|
# @return [::Array<::Google::Iam::V1::Binding>]
|
118
121
|
# Associates a list of `members`, or principals, with a `role`. Optionally,
|
@@ -305,7 +308,8 @@ module Google
|
|
305
308
|
# @return [::Array<::String>]
|
306
309
|
# Specifies the identities that do not cause logging for this type of
|
307
310
|
# permission.
|
308
|
-
# Follows the same format of
|
311
|
+
# Follows the same format of
|
312
|
+
# {::Google::Iam::V1::Binding#members Binding.members}.
|
309
313
|
class AuditLogConfig
|
310
314
|
include ::Google::Protobuf::MessageExts
|
311
315
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
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.12.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:
|
11
|
+
date: 2023-06-06 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:
|
19
|
+
version: 0.19.1
|
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:
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.26.
|
67
|
+
version: 1.26.3
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.26.
|
74
|
+
version: 1.26.3
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -189,14 +189,21 @@ files:
|
|
189
189
|
- lib/google/cloud/billing/v1/cloud_billing/client.rb
|
190
190
|
- lib/google/cloud/billing/v1/cloud_billing/credentials.rb
|
191
191
|
- lib/google/cloud/billing/v1/cloud_billing/paths.rb
|
192
|
+
- lib/google/cloud/billing/v1/cloud_billing/rest.rb
|
193
|
+
- lib/google/cloud/billing/v1/cloud_billing/rest/client.rb
|
194
|
+
- lib/google/cloud/billing/v1/cloud_billing/rest/service_stub.rb
|
192
195
|
- lib/google/cloud/billing/v1/cloud_billing_pb.rb
|
193
196
|
- lib/google/cloud/billing/v1/cloud_billing_services_pb.rb
|
194
197
|
- lib/google/cloud/billing/v1/cloud_catalog.rb
|
195
198
|
- lib/google/cloud/billing/v1/cloud_catalog/client.rb
|
196
199
|
- lib/google/cloud/billing/v1/cloud_catalog/credentials.rb
|
197
200
|
- lib/google/cloud/billing/v1/cloud_catalog/paths.rb
|
201
|
+
- lib/google/cloud/billing/v1/cloud_catalog/rest.rb
|
202
|
+
- lib/google/cloud/billing/v1/cloud_catalog/rest/client.rb
|
203
|
+
- lib/google/cloud/billing/v1/cloud_catalog/rest/service_stub.rb
|
198
204
|
- lib/google/cloud/billing/v1/cloud_catalog_pb.rb
|
199
205
|
- lib/google/cloud/billing/v1/cloud_catalog_services_pb.rb
|
206
|
+
- lib/google/cloud/billing/v1/rest.rb
|
200
207
|
- lib/google/cloud/billing/v1/version.rb
|
201
208
|
- proto_docs/README.md
|
202
209
|
- proto_docs/google/api/client.rb
|
@@ -232,8 +239,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
239
|
- !ruby/object:Gem::Version
|
233
240
|
version: '0'
|
234
241
|
requirements: []
|
235
|
-
rubygems_version: 3.
|
242
|
+
rubygems_version: 3.4.2
|
236
243
|
signing_key:
|
237
244
|
specification_version: 4
|
238
|
-
summary:
|
245
|
+
summary: Allows developers to manage billing for their Google Cloud Platform projects
|
246
|
+
programmatically.
|
239
247
|
test_files: []
|