google-cloud-bigquery-connection-v1 0.5.0 → 0.5.1

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: 62d11bcfff98ed5e5e2d68104d6afab2bfa9fe717f2f432b7577359944b6e689
4
- data.tar.gz: 44d1194ea1f7027e026ba3cb4f7f0aa09f894bd5e00dc664982ab8a4030cca6b
3
+ metadata.gz: 66f974959ff00f1b2d16bd6069d509214eb2ae80fe9c08496ea68b0df4517900
4
+ data.tar.gz: 2333219c4b472e93c639a1807a6b942e7533385d4b7bbb6d59f92ba701ab32c7
5
5
  SHA512:
6
- metadata.gz: b45c82b0d70ac3711cc8cb4179b23fed4825cec8a063188bf8fe8b4f0a141177fbdbe9bacea762197ed37f0ec44469141bd7d1dda034365f3cd557023128bb03
7
- data.tar.gz: 649ca756e0d90535e8dc2cb3f36ef285716f1b7163325d12286df5a2e3d596ecb2b32de5140c61cdb31b42946959c8be145c4af80ab4f34e6db0eca3652ec319
6
+ metadata.gz: 7eb8669f8e38c45da9149b4be2091af27c721fb698b1320b24c2d5a2fa26b1403ced670eec4b7667c1800067a134eef30955cf2ef3546943b11129f0d876b202
7
+ data.tar.gz: 5f85ce3e139489908ee1dae7ee8fcf0920c47b9c36390e902724eb9538df96ad6f4118477c04c185ea168795e665be2461c513dc7ade022252afc85f3321c6b6
@@ -42,13 +42,12 @@ module Google
42
42
  # See {::Google::Cloud::Bigquery::Connection::V1::ConnectionService::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 ConnectionService clients:
48
- #
49
- # ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.configure do |config|
50
- # config.timeout = 10.0
51
- # end
47
+ # # Modify the configuration for all ConnectionService clients
48
+ # ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::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]
@@ -120,19 +119,15 @@ module Google
120
119
  ##
121
120
  # Create a new ConnectionService client object.
122
121
  #
123
- # ## Examples
124
- #
125
- # To create a new ConnectionService client with the default
126
- # configuration:
122
+ # @example
127
123
  #
128
- # client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
124
+ # # Create a client using the default configuration
125
+ # client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
129
126
  #
130
- # To create a new ConnectionService client with a custom
131
- # configuration:
132
- #
133
- # client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new do |config|
134
- # config.timeout = 10.0
135
- # end
127
+ # # Create a client using a custom configuration
128
+ # client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new do |config|
129
+ # config.timeout = 10.0
130
+ # end
136
131
  #
137
132
  # @yield [config] Configure the ConnectionService client.
138
133
  # @yieldparam config [Client::Configuration]
@@ -152,10 +147,9 @@ module Google
152
147
 
153
148
  # Create credentials
154
149
  credentials = @config.credentials
155
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
150
+ # Use self-signed JWT if the endpoint is unchanged from default,
156
151
  # but only if the default endpoint does not have a region prefix.
157
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
158
- @config.endpoint == Client.configure.endpoint &&
152
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
159
153
  !@config.endpoint.split(".").first.include?("-")
160
154
  credentials ||= Credentials.default scope: @config.scope,
161
155
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -236,7 +230,9 @@ module Google
236
230
  options.apply_defaults timeout: @config.rpcs.create_connection.timeout,
237
231
  metadata: metadata,
238
232
  retry_policy: @config.rpcs.create_connection.retry_policy
239
- options.apply_defaults metadata: @config.metadata,
233
+
234
+ options.apply_defaults timeout: @config.timeout,
235
+ metadata: @config.metadata,
240
236
  retry_policy: @config.retry_policy
241
237
 
242
238
  @connection_service_stub.call_rpc :create_connection, request, options: options do |response, operation|
@@ -303,7 +299,9 @@ module Google
303
299
  options.apply_defaults timeout: @config.rpcs.get_connection.timeout,
304
300
  metadata: metadata,
305
301
  retry_policy: @config.rpcs.get_connection.retry_policy
306
- options.apply_defaults metadata: @config.metadata,
302
+
303
+ options.apply_defaults timeout: @config.timeout,
304
+ metadata: @config.metadata,
307
305
  retry_policy: @config.retry_policy
308
306
 
309
307
  @connection_service_stub.call_rpc :get_connection, request, options: options do |response, operation|
@@ -374,7 +372,9 @@ module Google
374
372
  options.apply_defaults timeout: @config.rpcs.list_connections.timeout,
375
373
  metadata: metadata,
376
374
  retry_policy: @config.rpcs.list_connections.retry_policy
377
- options.apply_defaults metadata: @config.metadata,
375
+
376
+ options.apply_defaults timeout: @config.timeout,
377
+ metadata: @config.metadata,
378
378
  retry_policy: @config.retry_policy
379
379
 
380
380
  @connection_service_stub.call_rpc :list_connections, request, options: options do |response, operation|
@@ -447,7 +447,9 @@ module Google
447
447
  options.apply_defaults timeout: @config.rpcs.update_connection.timeout,
448
448
  metadata: metadata,
449
449
  retry_policy: @config.rpcs.update_connection.retry_policy
450
- options.apply_defaults metadata: @config.metadata,
450
+
451
+ options.apply_defaults timeout: @config.timeout,
452
+ metadata: @config.metadata,
451
453
  retry_policy: @config.retry_policy
452
454
 
453
455
  @connection_service_stub.call_rpc :update_connection, request, options: options do |response, operation|
@@ -514,7 +516,9 @@ module Google
514
516
  options.apply_defaults timeout: @config.rpcs.delete_connection.timeout,
515
517
  metadata: metadata,
516
518
  retry_policy: @config.rpcs.delete_connection.retry_policy
517
- options.apply_defaults metadata: @config.metadata,
519
+
520
+ options.apply_defaults timeout: @config.timeout,
521
+ metadata: @config.metadata,
518
522
  retry_policy: @config.retry_policy
519
523
 
520
524
  @connection_service_stub.call_rpc :delete_connection, request, options: options do |response, operation|
@@ -586,7 +590,9 @@ module Google
586
590
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
587
591
  metadata: metadata,
588
592
  retry_policy: @config.rpcs.get_iam_policy.retry_policy
589
- options.apply_defaults metadata: @config.metadata,
593
+
594
+ options.apply_defaults timeout: @config.timeout,
595
+ metadata: @config.metadata,
590
596
  retry_policy: @config.retry_policy
591
597
 
592
598
  @connection_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
@@ -661,7 +667,9 @@ module Google
661
667
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
662
668
  metadata: metadata,
663
669
  retry_policy: @config.rpcs.set_iam_policy.retry_policy
664
- options.apply_defaults metadata: @config.metadata,
670
+
671
+ options.apply_defaults timeout: @config.timeout,
672
+ metadata: @config.metadata,
665
673
  retry_policy: @config.retry_policy
666
674
 
667
675
  @connection_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
@@ -739,7 +747,9 @@ module Google
739
747
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
740
748
  metadata: metadata,
741
749
  retry_policy: @config.rpcs.test_iam_permissions.retry_policy
742
- options.apply_defaults metadata: @config.metadata,
750
+
751
+ options.apply_defaults timeout: @config.timeout,
752
+ metadata: @config.metadata,
743
753
  retry_policy: @config.retry_policy
744
754
 
745
755
  @connection_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
@@ -763,22 +773,21 @@ module Google
763
773
  # Configuration can be applied globally to all clients, or to a single client
764
774
  # on construction.
765
775
  #
766
- # # Examples
767
- #
768
- # To modify the global config, setting the timeout for create_connection
769
- # to 20 seconds, and all remaining timeouts to 10 seconds:
770
- #
771
- # ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.configure do |config|
772
- # config.timeout = 10.0
773
- # config.rpcs.create_connection.timeout = 20.0
774
- # end
775
- #
776
- # To apply the above configuration only to a new client:
777
- #
778
- # client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new do |config|
779
- # config.timeout = 10.0
780
- # config.rpcs.create_connection.timeout = 20.0
781
- # end
776
+ # @example
777
+ #
778
+ # # Modify the global config, setting the timeout for
779
+ # # create_connection to 20 seconds,
780
+ # # and all remaining timeouts to 10 seconds.
781
+ # ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.configure do |config|
782
+ # config.timeout = 10.0
783
+ # config.rpcs.create_connection.timeout = 20.0
784
+ # end
785
+ #
786
+ # # Apply the above configuration only to a new client.
787
+ # client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new do |config|
788
+ # config.timeout = 10.0
789
+ # config.rpcs.create_connection.timeout = 20.0
790
+ # end
782
791
  #
783
792
  # @!attribute [rw] endpoint
784
793
  # The hostname or hostname:port of the service endpoint.
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Connection
24
24
  module V1
25
- VERSION = "0.5.0"
25
+ VERSION = "0.5.1"
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-bigquery-connection-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
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-14 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