google-cloud-discovery_engine 1.0.0 → 1.1.0

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: bc1785f9db3193afb88d0499efb42388278080f72d34b6a35382b286c2d711de
4
- data.tar.gz: 3d8f7f4559bc11f894e6d977e2a620371aa002d2232dd2fbf8e6a551a202c83e
3
+ metadata.gz: 9b8fd7e5f5c4fa81bfbcb051478a5814d7ed0eb2d6fd2cfeb71d923a64bc847e
4
+ data.tar.gz: 5f143bc16c2bb7c550e8bf645524d4235773b5918ab1a16eceb6050f2903156c
5
5
  SHA512:
6
- metadata.gz: 0fdcc3256ee9bb0cce96387bebceba653868a77e1176c738c65b5b529b7b53771a701b736bb193d4b9f2e7b5cc9014d5d865373fc81394998e4dda439d6d34fa
7
- data.tar.gz: bd67883b53889d3665ec1714767ee41cd04643ebd72638f0106b5956d24aa548c91abee94825d6caffc55625f185fae292c2e03ff17c3a40afd14d30816ab18a
6
+ metadata.gz: 6fb9cc75a87c09a7a900c8b3c31472919d5a5d402f60ca4a15ce6702d496914f2ffe818cc6f8da16a0e97a4aa5023e63b2d6214716fabd46e1d6961812bde6e2
7
+ data.tar.gz: 924511aec06c4de23012a3bdf3aa7411b53d90e92e5b20b13c7fb4cc6968bc975713376d42c73d0e7df3aad84c350baeb1cdd627929bd0ca0abcaa45b88c9472
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  Discovery Engine API.
4
4
 
5
- Discovery Engine API.
6
5
 
7
6
  Actual client classes for the various versions of this API are defined in
8
7
  _versioned_ client gems, with names of the form `google-cloud-discovery_engine-v*`.
@@ -35,6 +34,31 @@ In order to use this library, you first need to go through the following steps:
35
34
  1. [Enable the API.](https://console.cloud.google.com/apis/library/discoveryengine.googleapis.com)
36
35
  1. {file:AUTHENTICATION.md Set up authentication.}
37
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
+
38
62
  ## Supported Ruby Versions
39
63
 
40
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.0"
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.0
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-06-26 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.