google-cloud-billing-budgets-v1beta1 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8da1c6e522919f540f03478792a3fb9db1205782459a58d5943d48905daa1f5e
4
- data.tar.gz: 1471a2a295b72ce71dd908bdda9706dca141cc8c132a55c98e8c9b8e328575fa
3
+ metadata.gz: 1b0d19d63ab0f08964249db89374a812e8d51bfc6d3294062b951230daa8c08e
4
+ data.tar.gz: 5fd478ccc7917ab30cde55265019dbc112cb2ef84dfccac272896f1a26edf432
5
5
  SHA512:
6
- metadata.gz: a8087e67aad748be0993aff6bcd41da358fc6b814c0a80c7c2f0b8d7266a2c04d940ee6c073753b96c684dcfb57aecca738a4e0a81c793a02361580cc93d67b7
7
- data.tar.gz: 54a15527a75427d488c9ea3fbd774e065c44fd6a545948dbe76a29157cfa72ccabd89ef8932cab0aed836c2a742e9ab8de5bf02c11870a69502bc42694cec8a7
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
- # ## Example
46
+ # @example
47
47
  #
48
- # To modify the configuration for all BudgetService clients:
49
- #
50
- # ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.configure do |config|
51
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new BudgetService client with a custom
129
- # configuration:
122
+ # # Create a client using the default configuration
123
+ # client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new
130
124
  #
131
- # client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new do |config|
132
- # config.timeout = 10.0
133
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
559
- #
560
- # To modify the global config, setting the timeout for create_budget
561
- # to 20 seconds, and all remaining timeouts to 10 seconds:
562
- #
563
- # ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.configure do |config|
564
- # config.timeout = 10.0
565
- # config.rpcs.create_budget.timeout = 20.0
566
- # end
567
- #
568
- # To apply the above configuration only to a new client:
569
- #
570
- # client = ::Google::Cloud::Billing::Budgets::V1beta1::BudgetService::Client.new do |config|
571
- # config.timeout = 10.0
572
- # config.rpcs.create_budget.timeout = 20.0
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.
@@ -22,7 +22,7 @@ module Google
22
22
  module Billing
23
23
  module Budgets
24
24
  module V1beta1
25
- VERSION = "0.6.1"
25
+ VERSION = "0.6.2"
26
26
  end
27
27
  end
28
28
  end
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.1
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a