google-cloud-eventarc-v1 0.1.1 → 0.1.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: 9425ef155d5b6693bef433a100ea594e0955f12508d4a67bc6f3879051776800
4
- data.tar.gz: 2e54bd51e8e3350c8c25e196d19db591c3756d6850822176a0e0837d0d968956
3
+ metadata.gz: 86046a0010197e2dbf376a389b02409d1b112ac2d731d89d59aa2bc08b11f012
4
+ data.tar.gz: 2fdf50ff6327d7c64c80b7c76a9460fef173f8fb6d7e52014cba7d9c72c352b3
5
5
  SHA512:
6
- metadata.gz: e92ffc0679815dda01afc8fc14eab1194c98bab5da6aa965407622982fd814ec42101bd89bf7bbe3ccbf5e63491290451748298e236dc08cd4af50229bc43293
7
- data.tar.gz: 283e04184eedde358d9041b0866167837387fed538863c70c1b8f8dff2293372ec819432f6d4f6903e4e7a9750a223130e26183a2b1b4fb6688a855c06c6c927
6
+ metadata.gz: 3d75e03e8a53cba1fba9f03921764a356c56c1be78da4bdf969651bf5c4c1338700e512ae42264ed058c770eccfc2012779b7a2c869c1b631052b455dc244168
7
+ data.tar.gz: 6cb3720054d24f2112d3c4ebaf4f3a8480db08279c769716763873beb8c8916972917371540ca967cb1c77b59e85aeb33d0b69b690a4ff56aad334200a0c3ce1
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Eventarc::V1::Eventarc::Client::Configuration}
43
43
  # for a description of the configuration fields.
44
44
  #
45
- # ## Example
45
+ # @example
46
46
  #
47
- # To modify the configuration for all Eventarc clients:
48
- #
49
- # ::Google::Cloud::Eventarc::V1::Eventarc::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all Eventarc clients
48
+ # ::Google::Cloud::Eventarc::V1::Eventarc::Client.configure do |config|
49
+ # config.timeout = 10.0
50
+ # end
52
51
  #
53
52
  # @yield [config] Configure the Client client.
54
53
  # @yieldparam config [Client::Configuration]
@@ -95,19 +94,15 @@ module Google
95
94
  ##
96
95
  # Create a new Eventarc client object.
97
96
  #
98
- # ## Examples
99
- #
100
- # To create a new Eventarc client with the default
101
- # configuration:
102
- #
103
- # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new
97
+ # @example
104
98
  #
105
- # To create a new Eventarc client with a custom
106
- # configuration:
99
+ # # Create a client using the default configuration
100
+ # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new
107
101
  #
108
- # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new do |config|
109
- # config.timeout = 10.0
110
- # end
102
+ # # Create a client using a custom configuration
103
+ # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new do |config|
104
+ # config.timeout = 10.0
105
+ # end
111
106
  #
112
107
  # @yield [config] Configure the Eventarc client.
113
108
  # @yieldparam config [Client::Configuration]
@@ -127,10 +122,9 @@ module Google
127
122
 
128
123
  # Create credentials
129
124
  credentials = @config.credentials
130
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
125
+ # Use self-signed JWT if the endpoint is unchanged from default,
131
126
  # but only if the default endpoint does not have a region prefix.
132
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
133
- @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
134
128
  !@config.endpoint.split(".").first.include?("-")
135
129
  credentials ||= Credentials.default scope: @config.scope,
136
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -218,7 +212,9 @@ module Google
218
212
  options.apply_defaults timeout: @config.rpcs.get_trigger.timeout,
219
213
  metadata: metadata,
220
214
  retry_policy: @config.rpcs.get_trigger.retry_policy
221
- options.apply_defaults metadata: @config.metadata,
215
+
216
+ options.apply_defaults timeout: @config.timeout,
217
+ metadata: @config.metadata,
222
218
  retry_policy: @config.retry_policy
223
219
 
224
220
  @eventarc_stub.call_rpc :get_trigger, request, options: options do |response, operation|
@@ -298,7 +294,9 @@ module Google
298
294
  options.apply_defaults timeout: @config.rpcs.list_triggers.timeout,
299
295
  metadata: metadata,
300
296
  retry_policy: @config.rpcs.list_triggers.retry_policy
301
- options.apply_defaults metadata: @config.metadata,
297
+
298
+ options.apply_defaults timeout: @config.timeout,
299
+ metadata: @config.metadata,
302
300
  retry_policy: @config.retry_policy
303
301
 
304
302
  @eventarc_stub.call_rpc :list_triggers, request, options: options do |response, operation|
@@ -372,7 +370,9 @@ module Google
372
370
  options.apply_defaults timeout: @config.rpcs.create_trigger.timeout,
373
371
  metadata: metadata,
374
372
  retry_policy: @config.rpcs.create_trigger.retry_policy
375
- options.apply_defaults metadata: @config.metadata,
373
+
374
+ options.apply_defaults timeout: @config.timeout,
375
+ metadata: @config.metadata,
376
376
  retry_policy: @config.retry_policy
377
377
 
378
378
  @eventarc_stub.call_rpc :create_trigger, request, options: options do |response, operation|
@@ -449,7 +449,9 @@ module Google
449
449
  options.apply_defaults timeout: @config.rpcs.update_trigger.timeout,
450
450
  metadata: metadata,
451
451
  retry_policy: @config.rpcs.update_trigger.retry_policy
452
- options.apply_defaults metadata: @config.metadata,
452
+
453
+ options.apply_defaults timeout: @config.timeout,
454
+ metadata: @config.metadata,
453
455
  retry_policy: @config.retry_policy
454
456
 
455
457
  @eventarc_stub.call_rpc :update_trigger, request, options: options do |response, operation|
@@ -525,7 +527,9 @@ module Google
525
527
  options.apply_defaults timeout: @config.rpcs.delete_trigger.timeout,
526
528
  metadata: metadata,
527
529
  retry_policy: @config.rpcs.delete_trigger.retry_policy
528
- options.apply_defaults metadata: @config.metadata,
530
+
531
+ options.apply_defaults timeout: @config.timeout,
532
+ metadata: @config.metadata,
529
533
  retry_policy: @config.retry_policy
530
534
 
531
535
  @eventarc_stub.call_rpc :delete_trigger, request, options: options do |response, operation|
@@ -550,22 +554,21 @@ module Google
550
554
  # Configuration can be applied globally to all clients, or to a single client
551
555
  # on construction.
552
556
  #
553
- # # Examples
554
- #
555
- # To modify the global config, setting the timeout for get_trigger
556
- # to 20 seconds, and all remaining timeouts to 10 seconds:
557
- #
558
- # ::Google::Cloud::Eventarc::V1::Eventarc::Client.configure do |config|
559
- # config.timeout = 10.0
560
- # config.rpcs.get_trigger.timeout = 20.0
561
- # end
562
- #
563
- # To apply the above configuration only to a new client:
564
- #
565
- # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new do |config|
566
- # config.timeout = 10.0
567
- # config.rpcs.get_trigger.timeout = 20.0
568
- # end
557
+ # @example
558
+ #
559
+ # # Modify the global config, setting the timeout for
560
+ # # get_trigger to 20 seconds,
561
+ # # and all remaining timeouts to 10 seconds.
562
+ # ::Google::Cloud::Eventarc::V1::Eventarc::Client.configure do |config|
563
+ # config.timeout = 10.0
564
+ # config.rpcs.get_trigger.timeout = 20.0
565
+ # end
566
+ #
567
+ # # Apply the above configuration only to a new client.
568
+ # client = ::Google::Cloud::Eventarc::V1::Eventarc::Client.new do |config|
569
+ # config.timeout = 10.0
570
+ # config.rpcs.get_trigger.timeout = 20.0
571
+ # end
569
572
  #
570
573
  # @!attribute [rw] endpoint
571
574
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Eventarc
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.1.2"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-eventarc-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.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