google-cloud-billing-v1 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 537787e064b423ab6baf7e90f22c1ad962cd9ef58d51a2a9a00d3198765d0711
|
4
|
+
data.tar.gz: 8294ce97c47e11a5c7271db9f465bda066e5c0e143a3189bb6bd553eee4202c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d88bd7796f341339d1a0e55141f13b4af52e6a4d71bb374083a0aac2a8aa637ee1176551f6642993444e78d8451eb91acc354a73d6c4bf19b21fb8108c3d805
|
7
|
+
data.tar.gz: 1db8cc301903e010e58708f971d8390f2ceb2755ca74b69134216c2e1d27268fe8e782185331b9eab9822207409cbb86358d5b94d05bdc2ac40709c1fc01536a
|
@@ -204,7 +204,8 @@ module Google
|
|
204
204
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
205
205
|
credentials = Credentials.new credentials, scope: @config.scope
|
206
206
|
end
|
207
|
-
@quota_project_id =
|
207
|
+
@quota_project_id = @config.quota_project
|
208
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
208
209
|
|
209
210
|
@cloud_billing_stub = ::Gapic::ServiceStub.new(
|
210
211
|
::Google::Cloud::Billing::V1::CloudBilling::Stub,
|
@@ -1056,24 +1057,28 @@ module Google
|
|
1056
1057
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
1057
1058
|
# trigger a retry.
|
1058
1059
|
# @return [::Hash]
|
1060
|
+
# @!attribute [rw] quota_project
|
1061
|
+
# A separate project against which to charge quota.
|
1062
|
+
# @return [::String]
|
1059
1063
|
#
|
1060
1064
|
class Configuration
|
1061
1065
|
extend ::Gapic::Config
|
1062
1066
|
|
1063
|
-
config_attr :endpoint,
|
1064
|
-
config_attr :credentials,
|
1067
|
+
config_attr :endpoint, "cloudbilling.googleapis.com", ::String
|
1068
|
+
config_attr :credentials, nil do |value|
|
1065
1069
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1066
1070
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1067
1071
|
allowed.any? { |klass| klass === value }
|
1068
1072
|
end
|
1069
|
-
config_attr :scope,
|
1070
|
-
config_attr :lib_name,
|
1071
|
-
config_attr :lib_version,
|
1072
|
-
config_attr(:channel_args,
|
1073
|
-
config_attr :interceptors,
|
1074
|
-
config_attr :timeout,
|
1075
|
-
config_attr :metadata,
|
1076
|
-
config_attr :retry_policy,
|
1073
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
1074
|
+
config_attr :lib_name, nil, ::String, nil
|
1075
|
+
config_attr :lib_version, nil, ::String, nil
|
1076
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
1077
|
+
config_attr :interceptors, nil, ::Array, nil
|
1078
|
+
config_attr :timeout, nil, ::Numeric, nil
|
1079
|
+
config_attr :metadata, nil, ::Hash, nil
|
1080
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1081
|
+
config_attr :quota_project, nil, ::String, nil
|
1077
1082
|
|
1078
1083
|
# @private
|
1079
1084
|
def initialize parent_config = nil
|
@@ -136,7 +136,8 @@ module Google
|
|
136
136
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
137
137
|
credentials = Credentials.new credentials, scope: @config.scope
|
138
138
|
end
|
139
|
-
@quota_project_id =
|
139
|
+
@quota_project_id = @config.quota_project
|
140
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
140
141
|
|
141
142
|
@cloud_catalog_stub = ::Gapic::ServiceStub.new(
|
142
143
|
::Google::Cloud::Billing::V1::CloudCatalog::Stub,
|
@@ -382,24 +383,28 @@ module Google
|
|
382
383
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
383
384
|
# trigger a retry.
|
384
385
|
# @return [::Hash]
|
386
|
+
# @!attribute [rw] quota_project
|
387
|
+
# A separate project against which to charge quota.
|
388
|
+
# @return [::String]
|
385
389
|
#
|
386
390
|
class Configuration
|
387
391
|
extend ::Gapic::Config
|
388
392
|
|
389
|
-
config_attr :endpoint,
|
390
|
-
config_attr :credentials,
|
393
|
+
config_attr :endpoint, "cloudbilling.googleapis.com", ::String
|
394
|
+
config_attr :credentials, nil do |value|
|
391
395
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
392
396
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
393
397
|
allowed.any? { |klass| klass === value }
|
394
398
|
end
|
395
|
-
config_attr :scope,
|
396
|
-
config_attr :lib_name,
|
397
|
-
config_attr :lib_version,
|
398
|
-
config_attr(:channel_args,
|
399
|
-
config_attr :interceptors,
|
400
|
-
config_attr :timeout,
|
401
|
-
config_attr :metadata,
|
402
|
-
config_attr :retry_policy,
|
399
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
400
|
+
config_attr :lib_name, nil, ::String, nil
|
401
|
+
config_attr :lib_version, nil, ::String, nil
|
402
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
403
|
+
config_attr :interceptors, nil, ::Array, nil
|
404
|
+
config_attr :timeout, nil, ::Numeric, nil
|
405
|
+
config_attr :metadata, nil, ::Hash, nil
|
406
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
407
|
+
config_attr :quota_project, nil, ::String, nil
|
403
408
|
|
404
409
|
# @private
|
405
410
|
def initialize parent_config = nil
|
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.5.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: 2020-05-
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -78,14 +78,42 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '5.
|
81
|
+
version: '5.14'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '5.
|
88
|
+
version: '5.14'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: minitest-focus
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.1'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.1'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: minitest-rg
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '5.2'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '5.2'
|
89
117
|
- !ruby/object:Gem::Dependency
|
90
118
|
name: rake
|
91
119
|
requirement: !ruby/object:Gem::Requirement
|