google-cloud-billing-budgets-v1beta1 0.6.1 → 0.6.2
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: 1b0d19d63ab0f08964249db89374a812e8d51bfc6d3294062b951230daa8c08e
|
4
|
+
data.tar.gz: 5fd478ccc7917ab30cde55265019dbc112cb2ef84dfccac272896f1a26edf432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efe1bf11cc843d2bcffd980e253dfe61e32b77d36cab4dd1d1db0a7176217dad53633d2eb61111be4d337a5290982abb933caf7907c2b7e1ad4f4e4d6855e686
|
7
|
+
data.tar.gz: e973753651d4f19660ec882d3b5f9aec72635f5680f2e792fabe3ddc30c1b2347a191f4442fe3f57e87393de3a8ebb07d7e8ae1bb6d81dfc9c826b044101a131
|
@@ -43,13 +43,12 @@ module Google
|
|
43
43
|
# See {::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client::Configuration}
|
44
44
|
# for a description of the configuration fields.
|
45
45
|
#
|
46
|
-
#
|
46
|
+
# @example
|
47
47
|
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
# end
|
48
|
+
# # Modify the configuration for all BudgetService clients
|
49
|
+
# ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.configure do |config|
|
50
|
+
# config.timeout = 10.0
|
51
|
+
# end
|
53
52
|
#
|
54
53
|
# @yield [config] Configure the Client client.
|
55
54
|
# @yieldparam config [Client::Configuration]
|
@@ -118,19 +117,15 @@ module Google
|
|
118
117
|
##
|
119
118
|
# Create a new BudgetService client object.
|
120
119
|
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
# To create a new BudgetService client with the default
|
124
|
-
# configuration:
|
125
|
-
#
|
126
|
-
# client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new
|
120
|
+
# @example
|
127
121
|
#
|
128
|
-
#
|
129
|
-
#
|
122
|
+
# # Create a client using the default configuration
|
123
|
+
# client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new
|
130
124
|
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
125
|
+
# # Create a client using a custom configuration
|
126
|
+
# client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new do |config|
|
127
|
+
# config.timeout = 10.0
|
128
|
+
# end
|
134
129
|
#
|
135
130
|
# @yield [config] Configure the BudgetService client.
|
136
131
|
# @yieldparam config [Client::Configuration]
|
@@ -150,10 +145,9 @@ module Google
|
|
150
145
|
|
151
146
|
# Create credentials
|
152
147
|
credentials = @config.credentials
|
153
|
-
# Use self-signed JWT if the
|
148
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
154
149
|
# but only if the default endpoint does not have a region prefix.
|
155
|
-
enable_self_signed_jwt = @config.
|
156
|
-
@config.endpoint == Client.configure.endpoint &&
|
150
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
157
151
|
!@config.endpoint.split(".").first.include?("-")
|
158
152
|
credentials ||= Credentials.default scope: @config.scope,
|
159
153
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -234,7 +228,9 @@ module Google
|
|
234
228
|
options.apply_defaults timeout: @config.rpcs.create_budget.timeout,
|
235
229
|
metadata: metadata,
|
236
230
|
retry_policy: @config.rpcs.create_budget.retry_policy
|
237
|
-
|
231
|
+
|
232
|
+
options.apply_defaults timeout: @config.timeout,
|
233
|
+
metadata: @config.metadata,
|
238
234
|
retry_policy: @config.retry_policy
|
239
235
|
|
240
236
|
@budget_service_stub.call_rpc :create_budget, request, options: options do |response, operation|
|
@@ -312,7 +308,9 @@ module Google
|
|
312
308
|
options.apply_defaults timeout: @config.rpcs.update_budget.timeout,
|
313
309
|
metadata: metadata,
|
314
310
|
retry_policy: @config.rpcs.update_budget.retry_policy
|
315
|
-
|
311
|
+
|
312
|
+
options.apply_defaults timeout: @config.timeout,
|
313
|
+
metadata: @config.metadata,
|
316
314
|
retry_policy: @config.retry_policy
|
317
315
|
|
318
316
|
@budget_service_stub.call_rpc :update_budget, request, options: options do |response, operation|
|
@@ -384,7 +382,9 @@ module Google
|
|
384
382
|
options.apply_defaults timeout: @config.rpcs.get_budget.timeout,
|
385
383
|
metadata: metadata,
|
386
384
|
retry_policy: @config.rpcs.get_budget.retry_policy
|
387
|
-
|
385
|
+
|
386
|
+
options.apply_defaults timeout: @config.timeout,
|
387
|
+
metadata: @config.metadata,
|
388
388
|
retry_policy: @config.retry_policy
|
389
389
|
|
390
390
|
@budget_service_stub.call_rpc :get_budget, request, options: options do |response, operation|
|
@@ -463,7 +463,9 @@ module Google
|
|
463
463
|
options.apply_defaults timeout: @config.rpcs.list_budgets.timeout,
|
464
464
|
metadata: metadata,
|
465
465
|
retry_policy: @config.rpcs.list_budgets.retry_policy
|
466
|
-
|
466
|
+
|
467
|
+
options.apply_defaults timeout: @config.timeout,
|
468
|
+
metadata: @config.metadata,
|
467
469
|
retry_policy: @config.retry_policy
|
468
470
|
|
469
471
|
@budget_service_stub.call_rpc :list_budgets, request, options: options do |response, operation|
|
@@ -531,7 +533,9 @@ module Google
|
|
531
533
|
options.apply_defaults timeout: @config.rpcs.delete_budget.timeout,
|
532
534
|
metadata: metadata,
|
533
535
|
retry_policy: @config.rpcs.delete_budget.retry_policy
|
534
|
-
|
536
|
+
|
537
|
+
options.apply_defaults timeout: @config.timeout,
|
538
|
+
metadata: @config.metadata,
|
535
539
|
retry_policy: @config.retry_policy
|
536
540
|
|
537
541
|
@budget_service_stub.call_rpc :delete_budget, request, options: options do |response, operation|
|
@@ -555,22 +559,21 @@ module Google
|
|
555
559
|
# Configuration can be applied globally to all clients, or to a single client
|
556
560
|
# on construction.
|
557
561
|
#
|
558
|
-
#
|
559
|
-
#
|
560
|
-
#
|
561
|
-
# to 20 seconds,
|
562
|
-
#
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
#
|
567
|
-
#
|
568
|
-
#
|
569
|
-
#
|
570
|
-
#
|
571
|
-
#
|
572
|
-
#
|
573
|
-
# end
|
562
|
+
# @example
|
563
|
+
#
|
564
|
+
# # Modify the global config, setting the timeout for
|
565
|
+
# # create_budget to 20 seconds,
|
566
|
+
# # and all remaining timeouts to 10 seconds.
|
567
|
+
# ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.configure do |config|
|
568
|
+
# config.timeout = 10.0
|
569
|
+
# config.rpcs.create_budget.timeout = 20.0
|
570
|
+
# end
|
571
|
+
#
|
572
|
+
# # Apply the above configuration only to a new client.
|
573
|
+
# client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new do |config|
|
574
|
+
# config.timeout = 10.0
|
575
|
+
# config.rpcs.create_budget.timeout = 20.0
|
576
|
+
# end
|
574
577
|
#
|
575
578
|
# @!attribute [rw] endpoint
|
576
579
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-billing-budgets-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 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
|
+
version: '0.7'
|
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.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|