google-cloud-discovery_engine 1.0.1 → 1.1.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: 5fffcc2ba722b4adbf1157328db92aeeacece91539ba331e663e30d1e850f16f
4
- data.tar.gz: 68011ab687ee594f8e45c42c932d747fdc042ff32a5b9aafbac8ae120f06e975
3
+ metadata.gz: 9b8fd7e5f5c4fa81bfbcb051478a5814d7ed0eb2d6fd2cfeb71d923a64bc847e
4
+ data.tar.gz: 5f143bc16c2bb7c550e8bf645524d4235773b5918ab1a16eceb6050f2903156c
5
5
  SHA512:
6
- metadata.gz: 83bfe3312e0a9667f18600cf50c5c9ce674c538c53d5e1fd0109be2789d9b931d9f10540da200cff9f5af9d2b33bdd64de8c0e947b9fd002e94419a1b68a94b8
7
- data.tar.gz: 865f819c4bb88d4a353f43f4d1aa50ee2d7d6d23ba5b01a43350324c3da10c72b2647eaf933a345cc020fed83d9c67be9f7335b58be8aa3b85a76d8256686aeb
6
+ metadata.gz: 6fb9cc75a87c09a7a900c8b3c31472919d5a5d402f60ca4a15ce6702d496914f2ffe818cc6f8da16a0e97a4aa5023e63b2d6214716fabd46e1d6961812bde6e2
7
+ data.tar.gz: 924511aec06c4de23012a3bdf3aa7411b53d90e92e5b20b13c7fb4cc6968bc975713376d42c73d0e7df3aad84c350baeb1cdd627929bd0ca0abcaa45b88c9472
data/README.md CHANGED
@@ -34,6 +34,31 @@ In order to use this library, you first need to go through the following steps:
34
34
  1. [Enable the API.](https://console.cloud.google.com/apis/library/discoveryengine.googleapis.com)
35
35
  1. {file:AUTHENTICATION.md Set up authentication.}
36
36
 
37
+ ## Debug Logging
38
+
39
+ This library comes with opt-in Debug Logging that can help you troubleshoot
40
+ your application's integration with the API. When logging is activated, key
41
+ events such as requests and responses, along with data payloads and metadata
42
+ such as headers and client configuration, are logged to the standard error
43
+ stream.
44
+
45
+ **WARNING:** Client Library Debug Logging includes your data payloads in
46
+ plaintext, which could include sensitive data such as PII for yourself or your
47
+ customers, private keys, or other security data that could be compromising if
48
+ leaked. Always practice good data hygiene with your application logs, and follow
49
+ the principle of least access. Google also recommends that Client Library Debug
50
+ Logging be enabled only temporarily during active debugging, and not used
51
+ permanently in production.
52
+
53
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
54
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
55
+ list of client library gem names. This will select the default logging behavior,
56
+ which writes logs to the standard error stream. On a local workstation, this may
57
+ result in logs appearing on the console. When running on a Google Cloud hosting
58
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
59
+ results in logs appearing alongside your application logs in the
60
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
61
+
37
62
  ## Supported Ruby Versions
38
63
 
39
64
  This library is supported on Ruby 2.7+.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
- VERSION = "1.0.1"
23
+ VERSION = "1.1.0"
24
24
  end
25
25
  end
26
26
  end
@@ -460,6 +460,40 @@ module Google
460
460
  service_module.const_get(:Client).new(&block)
461
461
  end
462
462
 
463
+ ##
464
+ # Create a new client object for SearchTuningService.
465
+ #
466
+ # By default, this returns an instance of
467
+ # [Google::Cloud::DiscoveryEngine::V1::SearchTuningService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-SearchTuningService-Client)
468
+ # for a gRPC client for version V1 of the API.
469
+ # However, you can specify a different API version by passing it in the
470
+ # `version` parameter. If the SearchTuningService service is
471
+ # supported by that API version, and the corresponding gem is available, the
472
+ # appropriate versioned client will be returned.
473
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
474
+ # the `transport` parameter.
475
+ #
476
+ # ## About SearchTuningService
477
+ #
478
+ # Service for search tuning.
479
+ #
480
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
481
+ # Defaults to `:v1`.
482
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
483
+ # @return [::Object] A client object for the specified version.
484
+ #
485
+ def self.search_tuning_service version: :v1, transport: :grpc, &block
486
+ require "google/cloud/discovery_engine/#{version.to_s.downcase}"
487
+
488
+ package_name = Google::Cloud::DiscoveryEngine
489
+ .constants
490
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
491
+ .first
492
+ service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:SearchTuningService)
493
+ service_module = service_module.const_get(:Rest) if transport == :rest
494
+ service_module.const_get(:Client).new(&block)
495
+ end
496
+
463
497
  ##
464
498
  # Create a new client object for SiteSearchEngineService.
465
499
  #
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: 1.0.1
4
+ version: 1.1.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-08-09 00:00:00.000000000 Z
11
+ date: 2024-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -28,29 +28,23 @@ dependencies:
28
28
  name: google-cloud-discovery_engine-v1
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0.4'
34
- - - "<"
31
+ - - "~>"
35
32
  - !ruby/object:Gem::Version
36
- version: 2.a
33
+ version: '1.1'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '0.4'
44
- - - "<"
38
+ - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: 2.a
40
+ version: '1.1'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: google-cloud-discovery_engine-v1beta
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - ">="
52
46
  - !ruby/object:Gem::Version
53
- version: '0.7'
47
+ version: '0.15'
54
48
  - - "<"
55
49
  - !ruby/object:Gem::Version
56
50
  version: 2.a
@@ -60,7 +54,7 @@ dependencies:
60
54
  requirements:
61
55
  - - ">="
62
56
  - !ruby/object:Gem::Version
63
- version: '0.7'
57
+ version: '0.15'
64
58
  - - "<"
65
59
  - !ruby/object:Gem::Version
66
60
  version: 2.a
@@ -96,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
90
  - !ruby/object:Gem::Version
97
91
  version: '0'
98
92
  requirements: []
99
- rubygems_version: 3.5.6
93
+ rubygems_version: 3.5.23
100
94
  signing_key:
101
95
  specification_version: 4
102
96
  summary: Discovery Engine API.