google-cloud-discovery_engine 0.3.0 → 0.4.0

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: 508ee58df630ee196a80270d6f469bd02c3d23488363d1e8b6d4a2a797ea4dc9
4
- data.tar.gz: 6941e368fa2708fcde131d87d0160acbd070f99b652f0bd9c42799e04e46b300
3
+ metadata.gz: 5188ced016496f4477ba293c19455c03146dfcc466d4daf7940a137d23f7c6b2
4
+ data.tar.gz: 366250390327a811fba9bd7d13c32bc8e459dd6d8641b27aaffe570f0b1c278d
5
5
  SHA512:
6
- metadata.gz: 4cf58407d52c89b1d517cb877b253e99b0fc8945402b45922eb0860a0bb54bef14e237512b6e00d1f478a36c826987fbc3cbe12def4cce430e1aa4215ce923c5
7
- data.tar.gz: 57074a5fe9f8ecba3a3fdf3d297f6b9a4e0908f1f1c75a1203facdba080521706e9e9ed151512f6b4872b86c7755ff18aaffb5b8342b5fadaafe7fbcf7217a0d
6
+ metadata.gz: 4f385d09657573aa6faa8b8eda52d477825e7385b178d4b1a4d8e8c39f0f0e8f8ce58a8cae359cb394c32b3f92ecad84112593beeac3afd72c011e84c5e7f866
7
+ data.tar.gz: 7ab19b1710702e7665eeab6214d4f48fff54edc788b9b9fc44aaa54c29b7436a95ab9060ed2c320cfb39b7cd787c383b438a8833ff1cf3c4cc7ba4d36efcbedf
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
- VERSION = "0.3.0"
23
+ VERSION = "0.4.0"
24
24
  end
25
25
  end
26
26
  end
@@ -147,6 +147,41 @@ module Google
147
147
  service_module.const_get(:Client).new(&block)
148
148
  end
149
149
 
150
+ ##
151
+ # Create a new client object for DataStoreService.
152
+ #
153
+ # By default, this returns an instance of
154
+ # [Google::Cloud::DiscoveryEngine::V1::DataStoreService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-DataStoreService-Client)
155
+ # for a gRPC client for version V1 of the API.
156
+ # However, you can specify a different API version by passing it in the
157
+ # `version` parameter. If the DataStoreService service is
158
+ # supported by that API version, and the corresponding gem is available, the
159
+ # appropriate versioned client will be returned.
160
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
161
+ # the `transport` parameter.
162
+ #
163
+ # ## About DataStoreService
164
+ #
165
+ # Service for managing DataStore
166
+ # configuration.
167
+ #
168
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
169
+ # Defaults to `:v1`.
170
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
171
+ # @return [::Object] A client object for the specified version.
172
+ #
173
+ def self.data_store_service version: :v1, transport: :grpc, &block
174
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
175
+
176
+ package_name = Google::Cloud::DiscoveryEngine
177
+ .constants
178
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
179
+ .first
180
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:DataStoreService)
181
+ service_module = service_module.const_get(:Rest) if transport == :rest
182
+ service_module.const_get(:Client).new(&block)
183
+ end
184
+
150
185
  ##
151
186
  # Create a new client object for DocumentService.
152
187
  #
@@ -182,6 +217,41 @@ module Google
182
217
  service_module.const_get(:Client).new(&block)
183
218
  end
184
219
 
220
+ ##
221
+ # Create a new client object for EngineService.
222
+ #
223
+ # By default, this returns an instance of
224
+ # [Google::Cloud::DiscoveryEngine::V1::EngineService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-EngineService-Client)
225
+ # for a gRPC client for version V1 of the API.
226
+ # However, you can specify a different API version by passing it in the
227
+ # `version` parameter. If the EngineService service is
228
+ # supported by that API version, and the corresponding gem is available, the
229
+ # appropriate versioned client will be returned.
230
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
231
+ # the `transport` parameter.
232
+ #
233
+ # ## About EngineService
234
+ #
235
+ # Service for managing Engine
236
+ # configuration.
237
+ #
238
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
239
+ # Defaults to `:v1`.
240
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
241
+ # @return [::Object] A client object for the specified version.
242
+ #
243
+ def self.engine_service version: :v1, transport: :grpc, &block
244
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
245
+
246
+ package_name = Google::Cloud::DiscoveryEngine
247
+ .constants
248
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
249
+ .first
250
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:EngineService)
251
+ service_module = service_module.const_get(:Rest) if transport == :rest
252
+ service_module.const_get(:Client).new(&block)
253
+ end
254
+
185
255
  ##
186
256
  # Create a new client object for SchemaService.
187
257
  #
@@ -216,6 +286,40 @@ module Google
216
286
  service_module.const_get(:Client).new(&block)
217
287
  end
218
288
 
289
+ ##
290
+ # Create a new client object for SiteSearchEngineService.
291
+ #
292
+ # By default, this returns an instance of
293
+ # [Google::Cloud::DiscoveryEngine::V1::SiteSearchEngineService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SiteSearchEngineService-Client)
294
+ # for a gRPC client for version V1 of the API.
295
+ # However, you can specify a different API version by passing it in the
296
+ # `version` parameter. If the SiteSearchEngineService service is
297
+ # supported by that API version, and the corresponding gem is available, the
298
+ # appropriate versioned client will be returned.
299
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
300
+ # the `transport` parameter.
301
+ #
302
+ # ## About SiteSearchEngineService
303
+ #
304
+ # Service for managing site search related resources.
305
+ #
306
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
307
+ # Defaults to `:v1`.
308
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
309
+ # @return [::Object] A client object for the specified version.
310
+ #
311
+ def self.site_search_engine_service version: :v1, transport: :grpc, &block
312
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
313
+
314
+ package_name = Google::Cloud::DiscoveryEngine
315
+ .constants
316
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
317
+ .first
318
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:SiteSearchEngineService)
319
+ service_module = service_module.const_get(:Rest) if transport == :rest
320
+ service_module.const_get(:Client).new(&block)
321
+ end
322
+
219
323
  ##
220
324
  # Create a new client object for UserEventService.
221
325
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-discovery_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-15 00:00:00.000000000 Z
11
+ date: 2024-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core