google-cloud-dataqna-v1alpha 0.2.2 → 0.2.3

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: 80b5dac67a814ea751184acd7ede0ba18e7057af1c56cdf78d4ceac29f188f00
4
- data.tar.gz: 7c79448854b45fb1f0bd4e64ace8ab5a69a56b9ecf4e9f12188f4dfd20787eaf
3
+ metadata.gz: d0dd80763e6eff610e2f4c0784a603bbd12c6caf64f469c4b7f4422f589ae63d
4
+ data.tar.gz: 7236a56cc5292b979f10722ad8732921cdd3ed54d185437f086c6bff5119c711
5
5
  SHA512:
6
- metadata.gz: d7c8c1a14058d5b6584886adbd8838f1b7087b6165f0b3a1e697591b4273088384c3c7300b5cb61660fcc6eeef26e7a237048513f2b938694e801b10455f9204
7
- data.tar.gz: 54e040aa31a7a021c66b763a71627de2d97d413751d3e6fede5a73c25663785c7b112954624992682dc806d06aabdcf4020e92264407b815a3d18ff7b7c53a75
6
+ metadata.gz: 58787ecfb76dae0373bcc1cd9a6eb94364564d7847fe3d41dddd924bcb51eb443445995939058054b4a34d22839ffb50418b8708322b08387eb52f72c52a03f3
7
+ data.tar.gz: b315c83ef2da964712c34d418f342f3bdbe304fe2b55cd93f13a9ff055a196061db9bde58c4501a2060720b83fcd7e494ccd2e70f5cd3385565025fb98ea593f
@@ -106,13 +106,12 @@ module Google
106
106
  # See {::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client::Configuration}
107
107
  # for a description of the configuration fields.
108
108
  #
109
- # ## Example
109
+ # @example
110
110
  #
111
- # To modify the configuration for all AutoSuggestionService clients:
112
- #
113
- # ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.configure do |config|
114
- # config.timeout = 10.0
115
- # end
111
+ # # Modify the configuration for all AutoSuggestionService clients
112
+ # ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.configure do |config|
113
+ # config.timeout = 10.0
114
+ # end
116
115
  #
117
116
  # @yield [config] Configure the Client client.
118
117
  # @yieldparam config [Client::Configuration]
@@ -161,19 +160,15 @@ module Google
161
160
  ##
162
161
  # Create a new AutoSuggestionService client object.
163
162
  #
164
- # ## Examples
165
- #
166
- # To create a new AutoSuggestionService client with the default
167
- # configuration:
163
+ # @example
168
164
  #
169
- # client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new
165
+ # # Create a client using the default configuration
166
+ # client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new
170
167
  #
171
- # To create a new AutoSuggestionService client with a custom
172
- # configuration:
173
- #
174
- # client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new do |config|
175
- # config.timeout = 10.0
176
- # end
168
+ # # Create a client using a custom configuration
169
+ # client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new do |config|
170
+ # config.timeout = 10.0
171
+ # end
177
172
  #
178
173
  # @yield [config] Configure the AutoSuggestionService client.
179
174
  # @yieldparam config [Client::Configuration]
@@ -193,10 +188,9 @@ module Google
193
188
 
194
189
  # Create credentials
195
190
  credentials = @config.credentials
196
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
191
+ # Use self-signed JWT if the endpoint is unchanged from default,
197
192
  # but only if the default endpoint does not have a region prefix.
198
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
199
- @config.endpoint == Client.configure.endpoint &&
193
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
200
194
  !@config.endpoint.split(".").first.include?("-")
201
195
  credentials ||= Credentials.default scope: @config.scope,
202
196
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -289,7 +283,9 @@ module Google
289
283
  options.apply_defaults timeout: @config.rpcs.suggest_queries.timeout,
290
284
  metadata: metadata,
291
285
  retry_policy: @config.rpcs.suggest_queries.retry_policy
292
- options.apply_defaults metadata: @config.metadata,
286
+
287
+ options.apply_defaults timeout: @config.timeout,
288
+ metadata: @config.metadata,
293
289
  retry_policy: @config.retry_policy
294
290
 
295
291
  @auto_suggestion_service_stub.call_rpc :suggest_queries, request, options: options do |response, operation|
@@ -313,22 +309,21 @@ module Google
313
309
  # Configuration can be applied globally to all clients, or to a single client
314
310
  # on construction.
315
311
  #
316
- # # Examples
317
- #
318
- # To modify the global config, setting the timeout for suggest_queries
319
- # to 20 seconds, and all remaining timeouts to 10 seconds:
320
- #
321
- # ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.configure do |config|
322
- # config.timeout = 10.0
323
- # config.rpcs.suggest_queries.timeout = 20.0
324
- # end
325
- #
326
- # To apply the above configuration only to a new client:
327
- #
328
- # client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new do |config|
329
- # config.timeout = 10.0
330
- # config.rpcs.suggest_queries.timeout = 20.0
331
- # end
312
+ # @example
313
+ #
314
+ # # Modify the global config, setting the timeout for
315
+ # # suggest_queries to 20 seconds,
316
+ # # and all remaining timeouts to 10 seconds.
317
+ # ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.configure do |config|
318
+ # config.timeout = 10.0
319
+ # config.rpcs.suggest_queries.timeout = 20.0
320
+ # end
321
+ #
322
+ # # Apply the above configuration only to a new client.
323
+ # client = ::Google::Cloud::DataQnA::V1alpha::AutoSuggestionService::Client.new do |config|
324
+ # config.timeout = 10.0
325
+ # config.rpcs.suggest_queries.timeout = 20.0
326
+ # end
332
327
  #
333
328
  # @!attribute [rw] endpoint
334
329
  # The hostname or hostname:port of the service endpoint.
@@ -55,13 +55,12 @@ module Google
55
55
  # See {::Google::Cloud::DataQnA::V1alpha::QuestionService::Client::Configuration}
56
56
  # for a description of the configuration fields.
57
57
  #
58
- # ## Example
58
+ # @example
59
59
  #
60
- # To modify the configuration for all QuestionService clients:
61
- #
62
- # ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.configure do |config|
63
- # config.timeout = 10.0
64
- # end
60
+ # # Modify the configuration for all QuestionService clients
61
+ # ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.configure do |config|
62
+ # config.timeout = 10.0
63
+ # end
65
64
  #
66
65
  # @yield [config] Configure the Client client.
67
66
  # @yieldparam config [Client::Configuration]
@@ -119,19 +118,15 @@ module Google
119
118
  ##
120
119
  # Create a new QuestionService client object.
121
120
  #
122
- # ## Examples
123
- #
124
- # To create a new QuestionService client with the default
125
- # configuration:
126
- #
127
- # client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
121
+ # @example
128
122
  #
129
- # To create a new QuestionService client with a custom
130
- # configuration:
123
+ # # Create a client using the default configuration
124
+ # client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new
131
125
  #
132
- # client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new do |config|
133
- # config.timeout = 10.0
134
- # end
126
+ # # Create a client using a custom configuration
127
+ # client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new do |config|
128
+ # config.timeout = 10.0
129
+ # end
135
130
  #
136
131
  # @yield [config] Configure the QuestionService client.
137
132
  # @yieldparam config [Client::Configuration]
@@ -151,10 +146,9 @@ module Google
151
146
 
152
147
  # Create credentials
153
148
  credentials = @config.credentials
154
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
149
+ # Use self-signed JWT if the endpoint is unchanged from default,
155
150
  # but only if the default endpoint does not have a region prefix.
156
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
157
- @config.endpoint == Client.configure.endpoint &&
151
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
158
152
  !@config.endpoint.split(".").first.include?("-")
159
153
  credentials ||= Credentials.default scope: @config.scope,
160
154
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -233,7 +227,9 @@ module Google
233
227
  options.apply_defaults timeout: @config.rpcs.get_question.timeout,
234
228
  metadata: metadata,
235
229
  retry_policy: @config.rpcs.get_question.retry_policy
236
- options.apply_defaults metadata: @config.metadata,
230
+
231
+ options.apply_defaults timeout: @config.timeout,
232
+ metadata: @config.metadata,
237
233
  retry_policy: @config.retry_policy
238
234
 
239
235
  @question_service_stub.call_rpc :get_question, request, options: options do |response, operation|
@@ -302,7 +298,9 @@ module Google
302
298
  options.apply_defaults timeout: @config.rpcs.create_question.timeout,
303
299
  metadata: metadata,
304
300
  retry_policy: @config.rpcs.create_question.retry_policy
305
- options.apply_defaults metadata: @config.metadata,
301
+
302
+ options.apply_defaults timeout: @config.timeout,
303
+ metadata: @config.metadata,
306
304
  retry_policy: @config.retry_policy
307
305
 
308
306
  @question_service_stub.call_rpc :create_question, request, options: options do |response, operation|
@@ -371,7 +369,9 @@ module Google
371
369
  options.apply_defaults timeout: @config.rpcs.execute_question.timeout,
372
370
  metadata: metadata,
373
371
  retry_policy: @config.rpcs.execute_question.retry_policy
374
- options.apply_defaults metadata: @config.metadata,
372
+
373
+ options.apply_defaults timeout: @config.timeout,
374
+ metadata: @config.metadata,
375
375
  retry_policy: @config.retry_policy
376
376
 
377
377
  @question_service_stub.call_rpc :execute_question, request, options: options do |response, operation|
@@ -439,7 +439,9 @@ module Google
439
439
  options.apply_defaults timeout: @config.rpcs.get_user_feedback.timeout,
440
440
  metadata: metadata,
441
441
  retry_policy: @config.rpcs.get_user_feedback.retry_policy
442
- options.apply_defaults metadata: @config.metadata,
442
+
443
+ options.apply_defaults timeout: @config.timeout,
444
+ metadata: @config.metadata,
443
445
  retry_policy: @config.retry_policy
444
446
 
445
447
  @question_service_stub.call_rpc :get_user_feedback, request, options: options do |response, operation|
@@ -511,7 +513,9 @@ module Google
511
513
  options.apply_defaults timeout: @config.rpcs.update_user_feedback.timeout,
512
514
  metadata: metadata,
513
515
  retry_policy: @config.rpcs.update_user_feedback.retry_policy
514
- options.apply_defaults metadata: @config.metadata,
516
+
517
+ options.apply_defaults timeout: @config.timeout,
518
+ metadata: @config.metadata,
515
519
  retry_policy: @config.retry_policy
516
520
 
517
521
  @question_service_stub.call_rpc :update_user_feedback, request, options: options do |response, operation|
@@ -535,22 +539,21 @@ module Google
535
539
  # Configuration can be applied globally to all clients, or to a single client
536
540
  # on construction.
537
541
  #
538
- # # Examples
539
- #
540
- # To modify the global config, setting the timeout for get_question
541
- # to 20 seconds, and all remaining timeouts to 10 seconds:
542
- #
543
- # ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.configure do |config|
544
- # config.timeout = 10.0
545
- # config.rpcs.get_question.timeout = 20.0
546
- # end
547
- #
548
- # To apply the above configuration only to a new client:
549
- #
550
- # client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new do |config|
551
- # config.timeout = 10.0
552
- # config.rpcs.get_question.timeout = 20.0
553
- # end
542
+ # @example
543
+ #
544
+ # # Modify the global config, setting the timeout for
545
+ # # get_question to 20 seconds,
546
+ # # and all remaining timeouts to 10 seconds.
547
+ # ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.configure do |config|
548
+ # config.timeout = 10.0
549
+ # config.rpcs.get_question.timeout = 20.0
550
+ # end
551
+ #
552
+ # # Apply the above configuration only to a new client.
553
+ # client = ::Google::Cloud::DataQnA::V1alpha::QuestionService::Client.new do |config|
554
+ # config.timeout = 10.0
555
+ # config.rpcs.get_question.timeout = 20.0
556
+ # end
554
557
  #
555
558
  # @!attribute [rw] endpoint
556
559
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataQnA
23
23
  module V1alpha
24
- VERSION = "0.2.2"
24
+ VERSION = "0.2.3"
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-dataqna-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
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