google-cloud-discovery_engine 0.3.0 → 0.5.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: d9f44985b1db31360ee11e941ac87438b1abd08d8fe9f0c163561e035dcbc24a
4
+ data.tar.gz: 46b441ee467e71a52afc4f09ba3ee8a88f69c8d838c75202bcbe6e3650d34c40
5
5
  SHA512:
6
- metadata.gz: 4cf58407d52c89b1d517cb877b253e99b0fc8945402b45922eb0860a0bb54bef14e237512b6e00d1f478a36c826987fbc3cbe12def4cce430e1aa4215ce923c5
7
- data.tar.gz: 57074a5fe9f8ecba3a3fdf3d297f6b9a4e0908f1f1c75a1203facdba080521706e9e9ed151512f6b4872b86c7755ff18aaffb5b8342b5fadaafe7fbcf7217a0d
6
+ metadata.gz: 394cbdcd0cc14786a062d3ec43e41e5cdfa3759b1ba6dbf5735a6cc138dbb4d9cde026b01252427852a7cb8765a7448ae48465cbad728d8a667ca57284e83eeb
7
+ data.tar.gz: f608d8e172f18f0b8f8e1ef955b32652de3c64a7932bb21d0545f28db2b0f5e977ebd20fcb3cd405afd661b4b40d54ef500d602f4d501f1a565bd5a28860bb28
data/README.md CHANGED
@@ -37,7 +37,7 @@ In order to use this library, you first need to go through the following steps:
37
37
 
38
38
  ## Supported Ruby Versions
39
39
 
40
- This library is supported on Ruby 2.6+.
40
+ This library is supported on Ruby 2.7+.
41
41
 
42
42
  Google provides official support for Ruby versions that are actively supported
43
43
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
- VERSION = "0.3.0"
23
+ VERSION = "0.5.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.5.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-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -64,118 +64,6 @@ dependencies:
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
67
- - !ruby/object:Gem::Dependency
68
- name: google-style
69
- requirement: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: 1.26.1
74
- type: :development
75
- prerelease: false
76
- version_requirements: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - "~>"
79
- - !ruby/object:Gem::Version
80
- version: 1.26.1
81
- - !ruby/object:Gem::Dependency
82
- name: minitest
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '5.16'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: '5.16'
95
- - !ruby/object:Gem::Dependency
96
- name: minitest-focus
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '1.1'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '1.1'
109
- - !ruby/object:Gem::Dependency
110
- name: minitest-rg
111
- requirement: !ruby/object:Gem::Requirement
112
- requirements:
113
- - - "~>"
114
- - !ruby/object:Gem::Version
115
- version: '5.2'
116
- type: :development
117
- prerelease: false
118
- version_requirements: !ruby/object:Gem::Requirement
119
- requirements:
120
- - - "~>"
121
- - !ruby/object:Gem::Version
122
- version: '5.2'
123
- - !ruby/object:Gem::Dependency
124
- name: rake
125
- requirement: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: '13.0'
130
- type: :development
131
- prerelease: false
132
- version_requirements: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- version: '13.0'
137
- - !ruby/object:Gem::Dependency
138
- name: redcarpet
139
- requirement: !ruby/object:Gem::Requirement
140
- requirements:
141
- - - "~>"
142
- - !ruby/object:Gem::Version
143
- version: '3.0'
144
- type: :development
145
- prerelease: false
146
- version_requirements: !ruby/object:Gem::Requirement
147
- requirements:
148
- - - "~>"
149
- - !ruby/object:Gem::Version
150
- version: '3.0'
151
- - !ruby/object:Gem::Dependency
152
- name: simplecov
153
- requirement: !ruby/object:Gem::Requirement
154
- requirements:
155
- - - "~>"
156
- - !ruby/object:Gem::Version
157
- version: '0.9'
158
- type: :development
159
- prerelease: false
160
- version_requirements: !ruby/object:Gem::Requirement
161
- requirements:
162
- - - "~>"
163
- - !ruby/object:Gem::Version
164
- version: '0.9'
165
- - !ruby/object:Gem::Dependency
166
- name: yard
167
- requirement: !ruby/object:Gem::Requirement
168
- requirements:
169
- - - "~>"
170
- - !ruby/object:Gem::Version
171
- version: '0.9'
172
- type: :development
173
- prerelease: false
174
- version_requirements: !ruby/object:Gem::Requirement
175
- requirements:
176
- - - "~>"
177
- - !ruby/object:Gem::Version
178
- version: '0.9'
179
67
  description: Discovery Engine API.
180
68
  email: googleapis-packages@google.com
181
69
  executables: []
@@ -201,14 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
201
89
  requirements:
202
90
  - - ">="
203
91
  - !ruby/object:Gem::Version
204
- version: '2.6'
92
+ version: '2.7'
205
93
  required_rubygems_version: !ruby/object:Gem::Requirement
206
94
  requirements:
207
95
  - - ">="
208
96
  - !ruby/object:Gem::Version
209
97
  version: '0'
210
98
  requirements: []
211
- rubygems_version: 3.5.3
99
+ rubygems_version: 3.5.6
212
100
  signing_key:
213
101
  specification_version: 4
214
102
  summary: Discovery Engine API.