google-cloud-private_catalog-v1beta1 0.1.1 → 0.1.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: d2c86fe967dc153b0c2453703159515ec6dfe72ffecfc275a7e3015bb2c89b28
4
- data.tar.gz: c35d12a06be18c4da020e5c718c9ccbb2ca0b5d3a1190a60a0c32bb948ee9144
3
+ metadata.gz: a5edee6b3cf4a59df578f7793ef2846c7c24afc3b9f8a235f50bb7cbea984eb3
4
+ data.tar.gz: 44b38276e264bbbc8ffc627dff7585d47baa9fa58a4c35c820f0aae2462dfa74
5
5
  SHA512:
6
- metadata.gz: '09b37b0107d1bcd15196be5195815fe6b6c5ef9ff0c437af430b03c71dbe55da27ed4ed03fd208d1f675eb4d4f7d3f0c16a275244657e12502cb135d6ae3b7f4'
7
- data.tar.gz: f5ab4256881137cb93ad9f5c7285315d6bc04a2650d581ac7fbca5a760683e975f74c1e691cdd950e6ef2d527d8d252d51a5e3b7d8b0a3e298742ec6062e58b0
6
+ metadata.gz: 44321f2312d03f3bc8af8e45b60f3af0d8a67cfbf6f8b58c960e8d05e978d239a4714cc483204724ce47e708fe029781fc0f73580c5b4c659f365c3b9ff77400
7
+ data.tar.gz: fe772a7b10807f6ad8b0311164ecdfaf97eb69d0b35ddaffc88144b6376d3fe06bb81b7f80804f6992d9468367529d554243ca0551afab8b0cd640359f77d976
@@ -59,13 +59,12 @@ module Google
59
59
  # See {::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client::Configuration}
60
60
  # for a description of the configuration fields.
61
61
  #
62
- # ## Example
62
+ # @example
63
63
  #
64
- # To modify the configuration for all PrivateCatalog clients:
65
- #
66
- # ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.configure do |config|
67
- # config.timeout = 10.0
68
- # end
64
+ # # Modify the configuration for all PrivateCatalog clients
65
+ # ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.configure do |config|
66
+ # config.timeout = 10.0
67
+ # end
69
68
  #
70
69
  # @yield [config] Configure the Client client.
71
70
  # @yieldparam config [Client::Configuration]
@@ -112,19 +111,15 @@ module Google
112
111
  ##
113
112
  # Create a new PrivateCatalog client object.
114
113
  #
115
- # ## Examples
116
- #
117
- # To create a new PrivateCatalog client with the default
118
- # configuration:
119
- #
120
- # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new
114
+ # @example
121
115
  #
122
- # To create a new PrivateCatalog client with a custom
123
- # configuration:
116
+ # # Create a client using the default configuration
117
+ # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new
124
118
  #
125
- # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
126
- # config.timeout = 10.0
127
- # end
119
+ # # Create a client using a custom configuration
120
+ # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
121
+ # config.timeout = 10.0
122
+ # end
128
123
  #
129
124
  # @yield [config] Configure the PrivateCatalog client.
130
125
  # @yieldparam config [Client::Configuration]
@@ -144,10 +139,9 @@ module Google
144
139
 
145
140
  # Create credentials
146
141
  credentials = @config.credentials
147
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
142
+ # Use self-signed JWT if the endpoint is unchanged from default,
148
143
  # but only if the default endpoint does not have a region prefix.
149
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
150
- @config.endpoint == Client.configure.endpoint &&
144
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
151
145
  !@config.endpoint.split(".").first.include?("-")
152
146
  credentials ||= Credentials.default scope: @config.scope,
153
147
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -237,7 +231,9 @@ module Google
237
231
  options.apply_defaults timeout: @config.rpcs.search_catalogs.timeout,
238
232
  metadata: metadata,
239
233
  retry_policy: @config.rpcs.search_catalogs.retry_policy
240
- options.apply_defaults metadata: @config.metadata,
234
+
235
+ options.apply_defaults timeout: @config.timeout,
236
+ metadata: @config.metadata,
241
237
  retry_policy: @config.retry_policy
242
238
 
243
239
  @private_catalog_stub.call_rpc :search_catalogs, request, options: options do |response, operation|
@@ -319,7 +315,9 @@ module Google
319
315
  options.apply_defaults timeout: @config.rpcs.search_products.timeout,
320
316
  metadata: metadata,
321
317
  retry_policy: @config.rpcs.search_products.retry_policy
322
- options.apply_defaults metadata: @config.metadata,
318
+
319
+ options.apply_defaults timeout: @config.timeout,
320
+ metadata: @config.metadata,
323
321
  retry_policy: @config.retry_policy
324
322
 
325
323
  @private_catalog_stub.call_rpc :search_products, request, options: options do |response, operation|
@@ -401,7 +399,9 @@ module Google
401
399
  options.apply_defaults timeout: @config.rpcs.search_versions.timeout,
402
400
  metadata: metadata,
403
401
  retry_policy: @config.rpcs.search_versions.retry_policy
404
- options.apply_defaults metadata: @config.metadata,
402
+
403
+ options.apply_defaults timeout: @config.timeout,
404
+ metadata: @config.metadata,
405
405
  retry_policy: @config.retry_policy
406
406
 
407
407
  @private_catalog_stub.call_rpc :search_versions, request, options: options do |response, operation|
@@ -426,22 +426,21 @@ module Google
426
426
  # Configuration can be applied globally to all clients, or to a single client
427
427
  # on construction.
428
428
  #
429
- # # Examples
430
- #
431
- # To modify the global config, setting the timeout for search_catalogs
432
- # to 20 seconds, and all remaining timeouts to 10 seconds:
433
- #
434
- # ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.configure do |config|
435
- # config.timeout = 10.0
436
- # config.rpcs.search_catalogs.timeout = 20.0
437
- # end
438
- #
439
- # To apply the above configuration only to a new client:
440
- #
441
- # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
442
- # config.timeout = 10.0
443
- # config.rpcs.search_catalogs.timeout = 20.0
444
- # end
429
+ # @example
430
+ #
431
+ # # Modify the global config, setting the timeout for
432
+ # # search_catalogs to 20 seconds,
433
+ # # and all remaining timeouts to 10 seconds.
434
+ # ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.configure do |config|
435
+ # config.timeout = 10.0
436
+ # config.rpcs.search_catalogs.timeout = 20.0
437
+ # end
438
+ #
439
+ # # Apply the above configuration only to a new client.
440
+ # client = ::Google::Cloud::PrivateCatalog::V1beta1::PrivateCatalog::Client.new do |config|
441
+ # config.timeout = 10.0
442
+ # config.rpcs.search_catalogs.timeout = 20.0
443
+ # end
445
444
  #
446
445
  # @!attribute [rw] endpoint
447
446
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PrivateCatalog
23
23
  module V1beta1
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-private_catalog-v1beta1
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