google-cloud-billing-v1 0.5.0 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/google/cloud/billing/v1/cloud_billing/client.rb +11 -11
- data/lib/google/cloud/billing/v1/cloud_billing_services_pb.rb +7 -7
- data/lib/google/cloud/billing/v1/cloud_catalog/client.rb +2 -2
- data/lib/google/cloud/billing/v1/cloud_catalog_services_pb.rb +2 -2
- data/lib/google/cloud/billing/v1/version.rb +1 -1
- metadata +5 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7296681aeba864309f13264f74f43c860420ea40fd6218d6f23d9be93694cb30
|
4
|
+
data.tar.gz: 6269754b3fba188216c2b1f651d5d45c708ec7f6d33a440cea6df810eafa4510
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e258b5f4200d635f26434cfd3d56641a0904e068a1a364f97e005457bb5d7db9ea93493e710c6d3ea8af5f58ef9b03fc71114405e14332d445ffbbd2df1c6a9
|
7
|
+
data.tar.gz: b87394a01baf47e17fc9a8338d884d5db9e84135b71ac9115eedccdc5c6d5b005d5e3c6f2f543cbb5ff920bdc944c714ff7d42fc1e0d61cb58e5e9c24a1134a4
|
data/README.md
CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
|
|
18
18
|
|
19
19
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
20
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/cloudbilling.googleapis.com)
|
21
22
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
23
|
|
23
24
|
## Quick Start
|
@@ -33,6 +34,9 @@ response = client.get_billing_account request
|
|
33
34
|
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-billing-v1/latest)
|
34
35
|
for class and method documentation.
|
35
36
|
|
37
|
+
See also the [Product Documentation](https://cloud.google.com/billing)
|
38
|
+
for general usage information.
|
39
|
+
|
36
40
|
## Enabling Logging
|
37
41
|
|
38
42
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
@@ -70,7 +70,7 @@ module Google
|
|
70
70
|
initial_delay: 0.1,
|
71
71
|
max_delay: 60.0,
|
72
72
|
multiplier: 1.3,
|
73
|
-
retry_codes: [
|
73
|
+
retry_codes: [4, 14]
|
74
74
|
}
|
75
75
|
|
76
76
|
default_config.rpcs.list_billing_accounts.timeout = 60.0
|
@@ -78,7 +78,7 @@ module Google
|
|
78
78
|
initial_delay: 0.1,
|
79
79
|
max_delay: 60.0,
|
80
80
|
multiplier: 1.3,
|
81
|
-
retry_codes: [
|
81
|
+
retry_codes: [4, 14]
|
82
82
|
}
|
83
83
|
|
84
84
|
default_config.rpcs.update_billing_account.timeout = 60.0
|
@@ -86,7 +86,7 @@ module Google
|
|
86
86
|
initial_delay: 0.1,
|
87
87
|
max_delay: 60.0,
|
88
88
|
multiplier: 1.3,
|
89
|
-
retry_codes: [
|
89
|
+
retry_codes: [4, 14]
|
90
90
|
}
|
91
91
|
|
92
92
|
default_config.rpcs.create_billing_account.timeout = 60.0
|
@@ -96,7 +96,7 @@ module Google
|
|
96
96
|
initial_delay: 0.1,
|
97
97
|
max_delay: 60.0,
|
98
98
|
multiplier: 1.3,
|
99
|
-
retry_codes: [
|
99
|
+
retry_codes: [4, 14]
|
100
100
|
}
|
101
101
|
|
102
102
|
default_config.rpcs.get_project_billing_info.timeout = 60.0
|
@@ -104,7 +104,7 @@ module Google
|
|
104
104
|
initial_delay: 0.1,
|
105
105
|
max_delay: 60.0,
|
106
106
|
multiplier: 1.3,
|
107
|
-
retry_codes: [
|
107
|
+
retry_codes: [4, 14]
|
108
108
|
}
|
109
109
|
|
110
110
|
default_config.rpcs.update_project_billing_info.timeout = 60.0
|
@@ -112,7 +112,7 @@ module Google
|
|
112
112
|
initial_delay: 0.1,
|
113
113
|
max_delay: 60.0,
|
114
114
|
multiplier: 1.3,
|
115
|
-
retry_codes: [
|
115
|
+
retry_codes: [4, 14]
|
116
116
|
}
|
117
117
|
|
118
118
|
default_config.rpcs.get_iam_policy.timeout = 60.0
|
@@ -120,7 +120,7 @@ module Google
|
|
120
120
|
initial_delay: 0.1,
|
121
121
|
max_delay: 60.0,
|
122
122
|
multiplier: 1.3,
|
123
|
-
retry_codes: [
|
123
|
+
retry_codes: [4, 14]
|
124
124
|
}
|
125
125
|
|
126
126
|
default_config.rpcs.set_iam_policy.timeout = 60.0
|
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
initial_delay: 0.1,
|
129
129
|
max_delay: 60.0,
|
130
130
|
multiplier: 1.3,
|
131
|
-
retry_codes: [
|
131
|
+
retry_codes: [4, 14]
|
132
132
|
}
|
133
133
|
|
134
134
|
default_config.rpcs.test_iam_permissions.timeout = 60.0
|
@@ -136,7 +136,7 @@ module Google
|
|
136
136
|
initial_delay: 0.1,
|
137
137
|
max_delay: 60.0,
|
138
138
|
multiplier: 1.3,
|
139
|
-
retry_codes: [
|
139
|
+
retry_codes: [4, 14]
|
140
140
|
}
|
141
141
|
|
142
142
|
default_config
|
@@ -1066,7 +1066,7 @@ module Google
|
|
1066
1066
|
|
1067
1067
|
config_attr :endpoint, "cloudbilling.googleapis.com", ::String
|
1068
1068
|
config_attr :credentials, nil do |value|
|
1069
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1069
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1070
1070
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1071
1071
|
allowed.any? { |klass| klass === value }
|
1072
1072
|
end
|
@@ -1094,7 +1094,7 @@ module Google
|
|
1094
1094
|
def rpcs
|
1095
1095
|
@rpcs ||= begin
|
1096
1096
|
parent_rpcs = nil
|
1097
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
1097
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
1098
1098
|
Rpcs.new parent_rpcs
|
1099
1099
|
end
|
1100
1100
|
end
|
@@ -37,18 +37,18 @@ module Google
|
|
37
37
|
# Gets information about a billing account. The current authenticated user
|
38
38
|
# must be a [viewer of the billing
|
39
39
|
# account](https://cloud.google.com/billing/docs/how-to/billing-access).
|
40
|
-
rpc :GetBillingAccount, GetBillingAccountRequest, BillingAccount
|
40
|
+
rpc :GetBillingAccount, Google::Cloud::Billing::V1::GetBillingAccountRequest, Google::Cloud::Billing::V1::BillingAccount
|
41
41
|
# Lists the billing accounts that the current authenticated user has
|
42
42
|
# permission to
|
43
43
|
# [view](https://cloud.google.com/billing/docs/how-to/billing-access).
|
44
|
-
rpc :ListBillingAccounts, ListBillingAccountsRequest, ListBillingAccountsResponse
|
44
|
+
rpc :ListBillingAccounts, Google::Cloud::Billing::V1::ListBillingAccountsRequest, Google::Cloud::Billing::V1::ListBillingAccountsResponse
|
45
45
|
# Updates a billing account's fields.
|
46
46
|
# Currently the only field that can be edited is `display_name`.
|
47
47
|
# The current authenticated user must have the `billing.accounts.update`
|
48
48
|
# IAM permission, which is typically given to the
|
49
49
|
# [administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
|
50
50
|
# of the billing account.
|
51
|
-
rpc :UpdateBillingAccount, UpdateBillingAccountRequest, BillingAccount
|
51
|
+
rpc :UpdateBillingAccount, Google::Cloud::Billing::V1::UpdateBillingAccountRequest, Google::Cloud::Billing::V1::BillingAccount
|
52
52
|
# Creates a billing account.
|
53
53
|
# This method can only be used to create
|
54
54
|
# [billing subaccounts](https://cloud.google.com/billing/docs/concepts)
|
@@ -59,17 +59,17 @@ module Google
|
|
59
59
|
# [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
|
60
60
|
# This method will return an error if the master account has not been
|
61
61
|
# provisioned as a reseller account.
|
62
|
-
rpc :CreateBillingAccount, CreateBillingAccountRequest, BillingAccount
|
62
|
+
rpc :CreateBillingAccount, Google::Cloud::Billing::V1::CreateBillingAccountRequest, Google::Cloud::Billing::V1::BillingAccount
|
63
63
|
# Lists the projects associated with a billing account. The current
|
64
64
|
# authenticated user must have the `billing.resourceAssociations.list` IAM
|
65
65
|
# permission, which is often given to billing account
|
66
66
|
# [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
|
67
|
-
rpc :ListProjectBillingInfo, ListProjectBillingInfoRequest, ListProjectBillingInfoResponse
|
67
|
+
rpc :ListProjectBillingInfo, Google::Cloud::Billing::V1::ListProjectBillingInfoRequest, Google::Cloud::Billing::V1::ListProjectBillingInfoResponse
|
68
68
|
# Gets the billing information for a project. The current authenticated user
|
69
69
|
# must have [permission to view the
|
70
70
|
# project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo
|
71
71
|
# ).
|
72
|
-
rpc :GetProjectBillingInfo, GetProjectBillingInfoRequest, ProjectBillingInfo
|
72
|
+
rpc :GetProjectBillingInfo, Google::Cloud::Billing::V1::GetProjectBillingInfoRequest, Google::Cloud::Billing::V1::ProjectBillingInfo
|
73
73
|
# Sets or updates the billing account associated with a project. You specify
|
74
74
|
# the new billing account by setting the `billing_account_name` in the
|
75
75
|
# `ProjectBillingInfo` resource to the resource name of a billing account.
|
@@ -101,7 +101,7 @@ module Google
|
|
101
101
|
# resources used by the project will be shut down. Thus, unless you wish to
|
102
102
|
# disable billing, you should always call this method with the name of an
|
103
103
|
# *open* billing account.
|
104
|
-
rpc :UpdateProjectBillingInfo, UpdateProjectBillingInfoRequest, ProjectBillingInfo
|
104
|
+
rpc :UpdateProjectBillingInfo, Google::Cloud::Billing::V1::UpdateProjectBillingInfoRequest, Google::Cloud::Billing::V1::ProjectBillingInfo
|
105
105
|
# Gets the access control policy for a billing account.
|
106
106
|
# The caller must have the `billing.accounts.getIamPolicy` permission on the
|
107
107
|
# account, which is often given to billing account
|
@@ -392,7 +392,7 @@ module Google
|
|
392
392
|
|
393
393
|
config_attr :endpoint, "cloudbilling.googleapis.com", ::String
|
394
394
|
config_attr :credentials, nil do |value|
|
395
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
395
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
396
396
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
397
397
|
allowed.any? { |klass| klass === value }
|
398
398
|
end
|
@@ -420,7 +420,7 @@ module Google
|
|
420
420
|
def rpcs
|
421
421
|
@rpcs ||= begin
|
422
422
|
parent_rpcs = nil
|
423
|
-
parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to?
|
423
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
|
424
424
|
Rpcs.new parent_rpcs
|
425
425
|
end
|
426
426
|
end
|
@@ -37,9 +37,9 @@ module Google
|
|
37
37
|
self.service_name = 'google.cloud.billing.v1.CloudCatalog'
|
38
38
|
|
39
39
|
# Lists all public cloud services.
|
40
|
-
rpc :ListServices, ListServicesRequest, ListServicesResponse
|
40
|
+
rpc :ListServices, Google::Cloud::Billing::V1::ListServicesRequest, Google::Cloud::Billing::V1::ListServicesResponse
|
41
41
|
# Lists all publicly available SKUs for a given cloud service.
|
42
|
-
rpc :ListSkus, ListSkusRequest, ListSkusResponse
|
42
|
+
rpc :ListSkus, Google::Cloud::Billing::V1::ListSkusRequest, Google::Cloud::Billing::V1::ListSkusResponse
|
43
43
|
end
|
44
44
|
|
45
45
|
Stub = Service.rpc_stub_class
|
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.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-errors
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,7 +196,6 @@ files:
|
|
196
196
|
- lib/google/cloud/billing/v1/cloud_catalog_pb.rb
|
197
197
|
- lib/google/cloud/billing/v1/cloud_catalog_services_pb.rb
|
198
198
|
- lib/google/cloud/billing/v1/version.rb
|
199
|
-
- lib/google/cloud/common_resources_pb.rb
|
200
199
|
- proto_docs/README.md
|
201
200
|
- proto_docs/google/api/field_behavior.rb
|
202
201
|
- proto_docs/google/api/resource.rb
|
@@ -228,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
227
|
- !ruby/object:Gem::Version
|
229
228
|
version: '0'
|
230
229
|
requirements: []
|
231
|
-
rubygems_version: 3.
|
230
|
+
rubygems_version: 3.1.3
|
232
231
|
signing_key:
|
233
232
|
specification_version: 4
|
234
233
|
summary: API Client library for the Billing V1 API
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/cloud/common_resources.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
require 'google/api/resource_pb'
|
7
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
-
add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
module Google
|
13
|
-
module Cloud
|
14
|
-
end
|
15
|
-
end
|