google-apis-discoveryengine_v1 0.7.0 → 0.8.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/discoveryengine_v1/classes.rb +437 -2
- data/lib/google/apis/discoveryengine_v1/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1/representations.rb +219 -0
- data/lib/google/apis/discoveryengine_v1/service.rb +138 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ea722e7ad2bca973f634e423d590028e1f757387549fd628203daba639b47d8
|
4
|
+
data.tar.gz: 6adfb5df504b5f625d28799e55a8d25998a27b5db8ceb58099de5319a8792666
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bd464309a07a73e399a9c067c8376c83b793b32ebf0a45da2ff2579f972718a90b1ef6bf6e3045c31a01d6a1576afc273bf4283fa6a60fd783923468cff57ae
|
7
|
+
data.tar.gz: 4dc74add2f0ed0bbd608fbfdcdb635551f1f775a7ab9472df4058f9219f70b705523d8493aba2499563ec9ab5dfc09bc421f9caaa05f3882ec1a2bd800572b7f
|
data/CHANGELOG.md
CHANGED
@@ -2288,6 +2288,65 @@ module Google
|
|
2288
2288
|
end
|
2289
2289
|
end
|
2290
2290
|
|
2291
|
+
# Autocomplete suggestions that are imported from Customer.
|
2292
|
+
class GoogleCloudDiscoveryengineV1CompletionSuggestion
|
2293
|
+
include Google::Apis::Core::Hashable
|
2294
|
+
|
2295
|
+
# Alternative matching phrases for this suggestion.
|
2296
|
+
# Corresponds to the JSON property `alternativePhrases`
|
2297
|
+
# @return [Array<String>]
|
2298
|
+
attr_accessor :alternative_phrases
|
2299
|
+
|
2300
|
+
# Frequency of this suggestion. Will be used to rank suggestions when score is
|
2301
|
+
# not available.
|
2302
|
+
# Corresponds to the JSON property `frequency`
|
2303
|
+
# @return [Fixnum]
|
2304
|
+
attr_accessor :frequency
|
2305
|
+
|
2306
|
+
# Global score of this suggestion. Control how this suggestion would be scored /
|
2307
|
+
# ranked.
|
2308
|
+
# Corresponds to the JSON property `globalScore`
|
2309
|
+
# @return [Float]
|
2310
|
+
attr_accessor :global_score
|
2311
|
+
|
2312
|
+
# If two suggestions have the same groupId, they will not be returned together.
|
2313
|
+
# Instead the one ranked higher will be returned. This can be used to
|
2314
|
+
# deduplicate semantically identical suggestions.
|
2315
|
+
# Corresponds to the JSON property `groupId`
|
2316
|
+
# @return [String]
|
2317
|
+
attr_accessor :group_id
|
2318
|
+
|
2319
|
+
# The score of this suggestion within its group.
|
2320
|
+
# Corresponds to the JSON property `groupScore`
|
2321
|
+
# @return [Float]
|
2322
|
+
attr_accessor :group_score
|
2323
|
+
|
2324
|
+
# BCP-47 language code of this suggestion.
|
2325
|
+
# Corresponds to the JSON property `languageCode`
|
2326
|
+
# @return [String]
|
2327
|
+
attr_accessor :language_code
|
2328
|
+
|
2329
|
+
# Required. The suggestion text.
|
2330
|
+
# Corresponds to the JSON property `suggestion`
|
2331
|
+
# @return [String]
|
2332
|
+
attr_accessor :suggestion
|
2333
|
+
|
2334
|
+
def initialize(**args)
|
2335
|
+
update!(**args)
|
2336
|
+
end
|
2337
|
+
|
2338
|
+
# Update properties of this object
|
2339
|
+
def update!(**args)
|
2340
|
+
@alternative_phrases = args[:alternative_phrases] if args.key?(:alternative_phrases)
|
2341
|
+
@frequency = args[:frequency] if args.key?(:frequency)
|
2342
|
+
@global_score = args[:global_score] if args.key?(:global_score)
|
2343
|
+
@group_id = args[:group_id] if args.key?(:group_id)
|
2344
|
+
@group_score = args[:group_score] if args.key?(:group_score)
|
2345
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
2346
|
+
@suggestion = args[:suggestion] if args.key?(:suggestion)
|
2347
|
+
end
|
2348
|
+
end
|
2349
|
+
|
2291
2350
|
# Defines circumstances to be checked before allowing a behavior
|
2292
2351
|
class GoogleCloudDiscoveryengineV1Condition
|
2293
2352
|
include Google::Apis::Core::Hashable
|
@@ -3306,7 +3365,7 @@ module Google
|
|
3306
3365
|
|
3307
3366
|
# The URI of the content. Only Cloud Storage URIs (e.g. `gs://bucket-name/path/
|
3308
3367
|
# to/file`) are supported. The maximum file size is 2.5 MB for text-based
|
3309
|
-
# formats,
|
3368
|
+
# formats, 200 MB for other formats.
|
3310
3369
|
# Corresponds to the JSON property `uri`
|
3311
3370
|
# @return [String]
|
3312
3371
|
attr_accessor :uri
|
@@ -4057,6 +4116,128 @@ module Google
|
|
4057
4116
|
end
|
4058
4117
|
end
|
4059
4118
|
|
4119
|
+
# Metadata related to the progress of the ImportCompletionSuggestions operation.
|
4120
|
+
# This will be returned by the google.longrunning.Operation.metadata field.
|
4121
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
|
4122
|
+
include Google::Apis::Core::Hashable
|
4123
|
+
|
4124
|
+
# Operation create time.
|
4125
|
+
# Corresponds to the JSON property `createTime`
|
4126
|
+
# @return [String]
|
4127
|
+
attr_accessor :create_time
|
4128
|
+
|
4129
|
+
# Count of CompletionSuggestions that failed to be imported.
|
4130
|
+
# Corresponds to the JSON property `failureCount`
|
4131
|
+
# @return [Fixnum]
|
4132
|
+
attr_accessor :failure_count
|
4133
|
+
|
4134
|
+
# Count of CompletionSuggestions successfully imported.
|
4135
|
+
# Corresponds to the JSON property `successCount`
|
4136
|
+
# @return [Fixnum]
|
4137
|
+
attr_accessor :success_count
|
4138
|
+
|
4139
|
+
# Operation last update time. If the operation is done, this is also the finish
|
4140
|
+
# time.
|
4141
|
+
# Corresponds to the JSON property `updateTime`
|
4142
|
+
# @return [String]
|
4143
|
+
attr_accessor :update_time
|
4144
|
+
|
4145
|
+
def initialize(**args)
|
4146
|
+
update!(**args)
|
4147
|
+
end
|
4148
|
+
|
4149
|
+
# Update properties of this object
|
4150
|
+
def update!(**args)
|
4151
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
4152
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
4153
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
4154
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
4155
|
+
end
|
4156
|
+
end
|
4157
|
+
|
4158
|
+
# Request message for CompletionService.ImportCompletionSuggestions method.
|
4159
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
|
4160
|
+
include Google::Apis::Core::Hashable
|
4161
|
+
|
4162
|
+
# BigQuery source import data from.
|
4163
|
+
# Corresponds to the JSON property `bigquerySource`
|
4164
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1BigQuerySource]
|
4165
|
+
attr_accessor :bigquery_source
|
4166
|
+
|
4167
|
+
# Configuration of destination for Import related errors.
|
4168
|
+
# Corresponds to the JSON property `errorConfig`
|
4169
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig]
|
4170
|
+
attr_accessor :error_config
|
4171
|
+
|
4172
|
+
# Cloud Storage location for input content.
|
4173
|
+
# Corresponds to the JSON property `gcsSource`
|
4174
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GcsSource]
|
4175
|
+
attr_accessor :gcs_source
|
4176
|
+
|
4177
|
+
# The inline source for CompletionSuggestions.
|
4178
|
+
# Corresponds to the JSON property `inlineSource`
|
4179
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource]
|
4180
|
+
attr_accessor :inline_source
|
4181
|
+
|
4182
|
+
def initialize(**args)
|
4183
|
+
update!(**args)
|
4184
|
+
end
|
4185
|
+
|
4186
|
+
# Update properties of this object
|
4187
|
+
def update!(**args)
|
4188
|
+
@bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
|
4189
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
4190
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
4191
|
+
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
4192
|
+
end
|
4193
|
+
end
|
4194
|
+
|
4195
|
+
# The inline source for CompletionSuggestions.
|
4196
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource
|
4197
|
+
include Google::Apis::Core::Hashable
|
4198
|
+
|
4199
|
+
# Required. A list of all denylist entries to import. Max of 1000 items.
|
4200
|
+
# Corresponds to the JSON property `suggestions`
|
4201
|
+
# @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompletionSuggestion>]
|
4202
|
+
attr_accessor :suggestions
|
4203
|
+
|
4204
|
+
def initialize(**args)
|
4205
|
+
update!(**args)
|
4206
|
+
end
|
4207
|
+
|
4208
|
+
# Update properties of this object
|
4209
|
+
def update!(**args)
|
4210
|
+
@suggestions = args[:suggestions] if args.key?(:suggestions)
|
4211
|
+
end
|
4212
|
+
end
|
4213
|
+
|
4214
|
+
# Response of the CompletionService.ImportCompletionSuggestions method. If the
|
4215
|
+
# long running operation is done, this message is returned by the google.
|
4216
|
+
# longrunning.Operations.response field if the operation is successful.
|
4217
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
|
4218
|
+
include Google::Apis::Core::Hashable
|
4219
|
+
|
4220
|
+
# Configuration of destination for Import related errors.
|
4221
|
+
# Corresponds to the JSON property `errorConfig`
|
4222
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig]
|
4223
|
+
attr_accessor :error_config
|
4224
|
+
|
4225
|
+
# A sample of errors encountered while processing the request.
|
4226
|
+
# Corresponds to the JSON property `errorSamples`
|
4227
|
+
# @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
|
4228
|
+
attr_accessor :error_samples
|
4229
|
+
|
4230
|
+
def initialize(**args)
|
4231
|
+
update!(**args)
|
4232
|
+
end
|
4233
|
+
|
4234
|
+
# Update properties of this object
|
4235
|
+
def update!(**args)
|
4236
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
4237
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
4238
|
+
end
|
4239
|
+
end
|
4240
|
+
|
4060
4241
|
# Metadata related to the progress of the ImportDocuments operation. This is
|
4061
4242
|
# returned by the google.longrunning.Operation.metadata field.
|
4062
4243
|
class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
|
@@ -5034,6 +5215,72 @@ module Google
|
|
5034
5215
|
end
|
5035
5216
|
end
|
5036
5217
|
|
5218
|
+
# Metadata related to the progress of the PurgeCompletionSuggestions operation.
|
5219
|
+
# This is returned by the google.longrunning.Operation.metadata field.
|
5220
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
|
5221
|
+
include Google::Apis::Core::Hashable
|
5222
|
+
|
5223
|
+
# Operation create time.
|
5224
|
+
# Corresponds to the JSON property `createTime`
|
5225
|
+
# @return [String]
|
5226
|
+
attr_accessor :create_time
|
5227
|
+
|
5228
|
+
# Operation last update time. If the operation is done, this is also the finish
|
5229
|
+
# time.
|
5230
|
+
# Corresponds to the JSON property `updateTime`
|
5231
|
+
# @return [String]
|
5232
|
+
attr_accessor :update_time
|
5233
|
+
|
5234
|
+
def initialize(**args)
|
5235
|
+
update!(**args)
|
5236
|
+
end
|
5237
|
+
|
5238
|
+
# Update properties of this object
|
5239
|
+
def update!(**args)
|
5240
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
5241
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
5242
|
+
end
|
5243
|
+
end
|
5244
|
+
|
5245
|
+
# Request message for CompletionService.PurgeCompletionSuggestions method.
|
5246
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest
|
5247
|
+
include Google::Apis::Core::Hashable
|
5248
|
+
|
5249
|
+
def initialize(**args)
|
5250
|
+
update!(**args)
|
5251
|
+
end
|
5252
|
+
|
5253
|
+
# Update properties of this object
|
5254
|
+
def update!(**args)
|
5255
|
+
end
|
5256
|
+
end
|
5257
|
+
|
5258
|
+
# Response message for CompletionService.PurgeCompletionSuggestions method.
|
5259
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
|
5260
|
+
include Google::Apis::Core::Hashable
|
5261
|
+
|
5262
|
+
# A sample of errors encountered while processing the request.
|
5263
|
+
# Corresponds to the JSON property `errorSamples`
|
5264
|
+
# @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
|
5265
|
+
attr_accessor :error_samples
|
5266
|
+
|
5267
|
+
# Whether the completion suggestions were successfully purged.
|
5268
|
+
# Corresponds to the JSON property `purgeSucceeded`
|
5269
|
+
# @return [Boolean]
|
5270
|
+
attr_accessor :purge_succeeded
|
5271
|
+
alias_method :purge_succeeded?, :purge_succeeded
|
5272
|
+
|
5273
|
+
def initialize(**args)
|
5274
|
+
update!(**args)
|
5275
|
+
end
|
5276
|
+
|
5277
|
+
# Update properties of this object
|
5278
|
+
def update!(**args)
|
5279
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
5280
|
+
@purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
|
5281
|
+
end
|
5282
|
+
end
|
5283
|
+
|
5037
5284
|
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
5038
5285
|
# returned by the google.longrunning.Operation.metadata field.
|
5039
5286
|
class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
|
@@ -6298,7 +6545,10 @@ module Google
|
|
6298
6545
|
|
6299
6546
|
# Maximum facet values that are returned for this facet. If unspecified,
|
6300
6547
|
# defaults to 20. The maximum allowed value is 300. Values above 300 are coerced
|
6301
|
-
# to 300.
|
6548
|
+
# to 300. For aggregation in healthcare search, when the [FacetKey.key] is "
|
6549
|
+
# healthcare_aggregation_key", the limit will be overridden to 10,000 internally,
|
6550
|
+
# regardless of the value set here. If this field is negative, an `
|
6551
|
+
# INVALID_ARGUMENT` is returned.
|
6302
6552
|
# Corresponds to the JSON property `limit`
|
6303
6553
|
# @return [Fixnum]
|
6304
6554
|
attr_accessor :limit
|
@@ -9755,6 +10005,72 @@ module Google
|
|
9755
10005
|
end
|
9756
10006
|
end
|
9757
10007
|
|
10008
|
+
# Metadata related to the progress of the ImportCompletionSuggestions operation.
|
10009
|
+
# This will be returned by the google.longrunning.Operation.metadata field.
|
10010
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
|
10011
|
+
include Google::Apis::Core::Hashable
|
10012
|
+
|
10013
|
+
# Operation create time.
|
10014
|
+
# Corresponds to the JSON property `createTime`
|
10015
|
+
# @return [String]
|
10016
|
+
attr_accessor :create_time
|
10017
|
+
|
10018
|
+
# Count of CompletionSuggestions that failed to be imported.
|
10019
|
+
# Corresponds to the JSON property `failureCount`
|
10020
|
+
# @return [Fixnum]
|
10021
|
+
attr_accessor :failure_count
|
10022
|
+
|
10023
|
+
# Count of CompletionSuggestions successfully imported.
|
10024
|
+
# Corresponds to the JSON property `successCount`
|
10025
|
+
# @return [Fixnum]
|
10026
|
+
attr_accessor :success_count
|
10027
|
+
|
10028
|
+
# Operation last update time. If the operation is done, this is also the finish
|
10029
|
+
# time.
|
10030
|
+
# Corresponds to the JSON property `updateTime`
|
10031
|
+
# @return [String]
|
10032
|
+
attr_accessor :update_time
|
10033
|
+
|
10034
|
+
def initialize(**args)
|
10035
|
+
update!(**args)
|
10036
|
+
end
|
10037
|
+
|
10038
|
+
# Update properties of this object
|
10039
|
+
def update!(**args)
|
10040
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
10041
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
10042
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
10043
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
10044
|
+
end
|
10045
|
+
end
|
10046
|
+
|
10047
|
+
# Response of the CompletionService.ImportCompletionSuggestions method. If the
|
10048
|
+
# long running operation is done, this message is returned by the google.
|
10049
|
+
# longrunning.Operations.response field if the operation is successful.
|
10050
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
|
10051
|
+
include Google::Apis::Core::Hashable
|
10052
|
+
|
10053
|
+
# Configuration of destination for Import related errors.
|
10054
|
+
# Corresponds to the JSON property `errorConfig`
|
10055
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaImportErrorConfig]
|
10056
|
+
attr_accessor :error_config
|
10057
|
+
|
10058
|
+
# A sample of errors encountered while processing the request.
|
10059
|
+
# Corresponds to the JSON property `errorSamples`
|
10060
|
+
# @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
|
10061
|
+
attr_accessor :error_samples
|
10062
|
+
|
10063
|
+
def initialize(**args)
|
10064
|
+
update!(**args)
|
10065
|
+
end
|
10066
|
+
|
10067
|
+
# Update properties of this object
|
10068
|
+
def update!(**args)
|
10069
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
10070
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
10071
|
+
end
|
10072
|
+
end
|
10073
|
+
|
9758
10074
|
# Metadata related to the progress of the ImportDocuments operation. This is
|
9759
10075
|
# returned by the google.longrunning.Operation.metadata field.
|
9760
10076
|
class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
|
@@ -10147,6 +10463,59 @@ module Google
|
|
10147
10463
|
end
|
10148
10464
|
end
|
10149
10465
|
|
10466
|
+
# Metadata related to the progress of the PurgeCompletionSuggestions operation.
|
10467
|
+
# This is returned by the google.longrunning.Operation.metadata field.
|
10468
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
|
10469
|
+
include Google::Apis::Core::Hashable
|
10470
|
+
|
10471
|
+
# Operation create time.
|
10472
|
+
# Corresponds to the JSON property `createTime`
|
10473
|
+
# @return [String]
|
10474
|
+
attr_accessor :create_time
|
10475
|
+
|
10476
|
+
# Operation last update time. If the operation is done, this is also the finish
|
10477
|
+
# time.
|
10478
|
+
# Corresponds to the JSON property `updateTime`
|
10479
|
+
# @return [String]
|
10480
|
+
attr_accessor :update_time
|
10481
|
+
|
10482
|
+
def initialize(**args)
|
10483
|
+
update!(**args)
|
10484
|
+
end
|
10485
|
+
|
10486
|
+
# Update properties of this object
|
10487
|
+
def update!(**args)
|
10488
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
10489
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
10490
|
+
end
|
10491
|
+
end
|
10492
|
+
|
10493
|
+
# Response message for CompletionService.PurgeCompletionSuggestions method.
|
10494
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
|
10495
|
+
include Google::Apis::Core::Hashable
|
10496
|
+
|
10497
|
+
# A sample of errors encountered while processing the request.
|
10498
|
+
# Corresponds to the JSON property `errorSamples`
|
10499
|
+
# @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
|
10500
|
+
attr_accessor :error_samples
|
10501
|
+
|
10502
|
+
# Whether the completion suggestions were successfully purged.
|
10503
|
+
# Corresponds to the JSON property `purgeSucceeded`
|
10504
|
+
# @return [Boolean]
|
10505
|
+
attr_accessor :purge_succeeded
|
10506
|
+
alias_method :purge_succeeded?, :purge_succeeded
|
10507
|
+
|
10508
|
+
def initialize(**args)
|
10509
|
+
update!(**args)
|
10510
|
+
end
|
10511
|
+
|
10512
|
+
# Update properties of this object
|
10513
|
+
def update!(**args)
|
10514
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
10515
|
+
@purge_succeeded = args[:purge_succeeded] if args.key?(:purge_succeeded)
|
10516
|
+
end
|
10517
|
+
end
|
10518
|
+
|
10150
10519
|
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
10151
10520
|
# returned by the google.longrunning.Operation.metadata field.
|
10152
10521
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
@@ -12099,6 +12468,72 @@ module Google
|
|
12099
12468
|
end
|
12100
12469
|
end
|
12101
12470
|
|
12471
|
+
# Metadata related to the progress of the ImportCompletionSuggestions operation.
|
12472
|
+
# This will be returned by the google.longrunning.Operation.metadata field.
|
12473
|
+
class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
|
12474
|
+
include Google::Apis::Core::Hashable
|
12475
|
+
|
12476
|
+
# Operation create time.
|
12477
|
+
# Corresponds to the JSON property `createTime`
|
12478
|
+
# @return [String]
|
12479
|
+
attr_accessor :create_time
|
12480
|
+
|
12481
|
+
# Count of CompletionSuggestions that failed to be imported.
|
12482
|
+
# Corresponds to the JSON property `failureCount`
|
12483
|
+
# @return [Fixnum]
|
12484
|
+
attr_accessor :failure_count
|
12485
|
+
|
12486
|
+
# Count of CompletionSuggestions successfully imported.
|
12487
|
+
# Corresponds to the JSON property `successCount`
|
12488
|
+
# @return [Fixnum]
|
12489
|
+
attr_accessor :success_count
|
12490
|
+
|
12491
|
+
# Operation last update time. If the operation is done, this is also the finish
|
12492
|
+
# time.
|
12493
|
+
# Corresponds to the JSON property `updateTime`
|
12494
|
+
# @return [String]
|
12495
|
+
attr_accessor :update_time
|
12496
|
+
|
12497
|
+
def initialize(**args)
|
12498
|
+
update!(**args)
|
12499
|
+
end
|
12500
|
+
|
12501
|
+
# Update properties of this object
|
12502
|
+
def update!(**args)
|
12503
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
12504
|
+
@failure_count = args[:failure_count] if args.key?(:failure_count)
|
12505
|
+
@success_count = args[:success_count] if args.key?(:success_count)
|
12506
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
12507
|
+
end
|
12508
|
+
end
|
12509
|
+
|
12510
|
+
# Response of the CompletionService.ImportCompletionSuggestions method. If the
|
12511
|
+
# long running operation is done, this message is returned by the google.
|
12512
|
+
# longrunning.Operations.response field if the operation is successful.
|
12513
|
+
class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
|
12514
|
+
include Google::Apis::Core::Hashable
|
12515
|
+
|
12516
|
+
# Configuration of destination for Import related errors.
|
12517
|
+
# Corresponds to the JSON property `errorConfig`
|
12518
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaImportErrorConfig]
|
12519
|
+
attr_accessor :error_config
|
12520
|
+
|
12521
|
+
# A sample of errors encountered while processing the request.
|
12522
|
+
# Corresponds to the JSON property `errorSamples`
|
12523
|
+
# @return [Array<Google::Apis::DiscoveryengineV1::GoogleRpcStatus>]
|
12524
|
+
attr_accessor :error_samples
|
12525
|
+
|
12526
|
+
def initialize(**args)
|
12527
|
+
update!(**args)
|
12528
|
+
end
|
12529
|
+
|
12530
|
+
# Update properties of this object
|
12531
|
+
def update!(**args)
|
12532
|
+
@error_config = args[:error_config] if args.key?(:error_config)
|
12533
|
+
@error_samples = args[:error_samples] if args.key?(:error_samples)
|
12534
|
+
end
|
12535
|
+
end
|
12536
|
+
|
12102
12537
|
# Metadata related to the progress of the ImportDocuments operation. This is
|
12103
12538
|
# returned by the google.longrunning.Operation.metadata field.
|
12104
12539
|
class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DiscoveryengineV1
|
18
18
|
# Version of the google-apis-discoveryengine_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.8.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240617"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -412,6 +412,12 @@ module Google
|
|
412
412
|
include Google::Apis::Core::JsonObjectSupport
|
413
413
|
end
|
414
414
|
|
415
|
+
class GoogleCloudDiscoveryengineV1CompletionSuggestion
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
415
421
|
class GoogleCloudDiscoveryengineV1Condition
|
416
422
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
423
|
|
@@ -724,6 +730,30 @@ module Google
|
|
724
730
|
include Google::Apis::Core::JsonObjectSupport
|
725
731
|
end
|
726
732
|
|
733
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
|
734
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
735
|
+
|
736
|
+
include Google::Apis::Core::JsonObjectSupport
|
737
|
+
end
|
738
|
+
|
739
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
|
740
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
741
|
+
|
742
|
+
include Google::Apis::Core::JsonObjectSupport
|
743
|
+
end
|
744
|
+
|
745
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource
|
746
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
747
|
+
|
748
|
+
include Google::Apis::Core::JsonObjectSupport
|
749
|
+
end
|
750
|
+
|
751
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
753
|
+
|
754
|
+
include Google::Apis::Core::JsonObjectSupport
|
755
|
+
end
|
756
|
+
|
727
757
|
class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
|
728
758
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
729
759
|
|
@@ -898,6 +928,24 @@ module Google
|
|
898
928
|
include Google::Apis::Core::JsonObjectSupport
|
899
929
|
end
|
900
930
|
|
931
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
|
932
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
933
|
+
|
934
|
+
include Google::Apis::Core::JsonObjectSupport
|
935
|
+
end
|
936
|
+
|
937
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest
|
938
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
939
|
+
|
940
|
+
include Google::Apis::Core::JsonObjectSupport
|
941
|
+
end
|
942
|
+
|
943
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
|
944
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
945
|
+
|
946
|
+
include Google::Apis::Core::JsonObjectSupport
|
947
|
+
end
|
948
|
+
|
901
949
|
class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
|
902
950
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
903
951
|
|
@@ -1648,6 +1696,18 @@ module Google
|
|
1648
1696
|
include Google::Apis::Core::JsonObjectSupport
|
1649
1697
|
end
|
1650
1698
|
|
1699
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
|
1700
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1701
|
+
|
1702
|
+
include Google::Apis::Core::JsonObjectSupport
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
|
1706
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1707
|
+
|
1708
|
+
include Google::Apis::Core::JsonObjectSupport
|
1709
|
+
end
|
1710
|
+
|
1651
1711
|
class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
|
1652
1712
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1653
1713
|
|
@@ -1720,6 +1780,18 @@ module Google
|
|
1720
1780
|
include Google::Apis::Core::JsonObjectSupport
|
1721
1781
|
end
|
1722
1782
|
|
1783
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
|
1784
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1785
|
+
|
1786
|
+
include Google::Apis::Core::JsonObjectSupport
|
1787
|
+
end
|
1788
|
+
|
1789
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
|
1790
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1791
|
+
|
1792
|
+
include Google::Apis::Core::JsonObjectSupport
|
1793
|
+
end
|
1794
|
+
|
1723
1795
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
1724
1796
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1725
1797
|
|
@@ -2086,6 +2158,18 @@ module Google
|
|
2086
2158
|
include Google::Apis::Core::JsonObjectSupport
|
2087
2159
|
end
|
2088
2160
|
|
2161
|
+
class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
|
2162
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2163
|
+
|
2164
|
+
include Google::Apis::Core::JsonObjectSupport
|
2165
|
+
end
|
2166
|
+
|
2167
|
+
class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
|
2168
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2169
|
+
|
2170
|
+
include Google::Apis::Core::JsonObjectSupport
|
2171
|
+
end
|
2172
|
+
|
2089
2173
|
class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
|
2090
2174
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2091
2175
|
|
@@ -2931,6 +3015,19 @@ module Google
|
|
2931
3015
|
end
|
2932
3016
|
end
|
2933
3017
|
|
3018
|
+
class GoogleCloudDiscoveryengineV1CompletionSuggestion
|
3019
|
+
# @private
|
3020
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3021
|
+
collection :alternative_phrases, as: 'alternativePhrases'
|
3022
|
+
property :frequency, :numeric_string => true, as: 'frequency'
|
3023
|
+
property :global_score, as: 'globalScore'
|
3024
|
+
property :group_id, as: 'groupId'
|
3025
|
+
property :group_score, as: 'groupScore'
|
3026
|
+
property :language_code, as: 'languageCode'
|
3027
|
+
property :suggestion, as: 'suggestion'
|
3028
|
+
end
|
3029
|
+
end
|
3030
|
+
|
2934
3031
|
class GoogleCloudDiscoveryengineV1Condition
|
2935
3032
|
# @private
|
2936
3033
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3422,6 +3519,48 @@ module Google
|
|
3422
3519
|
end
|
3423
3520
|
end
|
3424
3521
|
|
3522
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata
|
3523
|
+
# @private
|
3524
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3525
|
+
property :create_time, as: 'createTime'
|
3526
|
+
property :failure_count, :numeric_string => true, as: 'failureCount'
|
3527
|
+
property :success_count, :numeric_string => true, as: 'successCount'
|
3528
|
+
property :update_time, as: 'updateTime'
|
3529
|
+
end
|
3530
|
+
end
|
3531
|
+
|
3532
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest
|
3533
|
+
# @private
|
3534
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3535
|
+
property :bigquery_source, as: 'bigquerySource', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1BigQuerySource, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1BigQuerySource::Representation
|
3536
|
+
|
3537
|
+
property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig::Representation
|
3538
|
+
|
3539
|
+
property :gcs_source, as: 'gcsSource', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GcsSource, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GcsSource::Representation
|
3540
|
+
|
3541
|
+
property :inline_source, as: 'inlineSource', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource::Representation
|
3542
|
+
|
3543
|
+
end
|
3544
|
+
end
|
3545
|
+
|
3546
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource
|
3547
|
+
# @private
|
3548
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3549
|
+
collection :suggestions, as: 'suggestions', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompletionSuggestion, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CompletionSuggestion::Representation
|
3550
|
+
|
3551
|
+
end
|
3552
|
+
end
|
3553
|
+
|
3554
|
+
class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse
|
3555
|
+
# @private
|
3556
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3557
|
+
property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportErrorConfig::Representation
|
3558
|
+
|
3559
|
+
collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
|
3560
|
+
|
3561
|
+
end
|
3562
|
+
end
|
3563
|
+
|
3425
3564
|
class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
|
3426
3565
|
# @private
|
3427
3566
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3715,6 +3854,29 @@ module Google
|
|
3715
3854
|
end
|
3716
3855
|
end
|
3717
3856
|
|
3857
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata
|
3858
|
+
# @private
|
3859
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3860
|
+
property :create_time, as: 'createTime'
|
3861
|
+
property :update_time, as: 'updateTime'
|
3862
|
+
end
|
3863
|
+
end
|
3864
|
+
|
3865
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest
|
3866
|
+
# @private
|
3867
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3868
|
+
end
|
3869
|
+
end
|
3870
|
+
|
3871
|
+
class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse
|
3872
|
+
# @private
|
3873
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3874
|
+
collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
|
3875
|
+
|
3876
|
+
property :purge_succeeded, as: 'purgeSucceeded'
|
3877
|
+
end
|
3878
|
+
end
|
3879
|
+
|
3718
3880
|
class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
|
3719
3881
|
# @private
|
3720
3882
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4964,6 +5126,26 @@ module Google
|
|
4964
5126
|
end
|
4965
5127
|
end
|
4966
5128
|
|
5129
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata
|
5130
|
+
# @private
|
5131
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5132
|
+
property :create_time, as: 'createTime'
|
5133
|
+
property :failure_count, :numeric_string => true, as: 'failureCount'
|
5134
|
+
property :success_count, :numeric_string => true, as: 'successCount'
|
5135
|
+
property :update_time, as: 'updateTime'
|
5136
|
+
end
|
5137
|
+
end
|
5138
|
+
|
5139
|
+
class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse
|
5140
|
+
# @private
|
5141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5142
|
+
property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaImportErrorConfig::Representation
|
5143
|
+
|
5144
|
+
collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
|
5145
|
+
|
5146
|
+
end
|
5147
|
+
end
|
5148
|
+
|
4967
5149
|
class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
|
4968
5150
|
# @private
|
4969
5151
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5078,6 +5260,23 @@ module Google
|
|
5078
5260
|
end
|
5079
5261
|
end
|
5080
5262
|
|
5263
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata
|
5264
|
+
# @private
|
5265
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5266
|
+
property :create_time, as: 'createTime'
|
5267
|
+
property :update_time, as: 'updateTime'
|
5268
|
+
end
|
5269
|
+
end
|
5270
|
+
|
5271
|
+
class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse
|
5272
|
+
# @private
|
5273
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5274
|
+
collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
|
5275
|
+
|
5276
|
+
property :purge_succeeded, as: 'purgeSucceeded'
|
5277
|
+
end
|
5278
|
+
end
|
5279
|
+
|
5081
5280
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
5082
5281
|
# @private
|
5083
5282
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5642,6 +5841,26 @@ module Google
|
|
5642
5841
|
end
|
5643
5842
|
end
|
5644
5843
|
|
5844
|
+
class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata
|
5845
|
+
# @private
|
5846
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5847
|
+
property :create_time, as: 'createTime'
|
5848
|
+
property :failure_count, :numeric_string => true, as: 'failureCount'
|
5849
|
+
property :success_count, :numeric_string => true, as: 'successCount'
|
5850
|
+
property :update_time, as: 'updateTime'
|
5851
|
+
end
|
5852
|
+
end
|
5853
|
+
|
5854
|
+
class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse
|
5855
|
+
# @private
|
5856
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5857
|
+
property :error_config, as: 'errorConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaImportErrorConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaImportErrorConfig::Representation
|
5858
|
+
|
5859
|
+
collection :error_samples, as: 'errorSamples', class: Google::Apis::DiscoveryengineV1::GoogleRpcStatus, decorator: Google::Apis::DiscoveryengineV1::GoogleRpcStatus::Representation
|
5860
|
+
|
5861
|
+
end
|
5862
|
+
end
|
5863
|
+
|
5645
5864
|
class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
|
5646
5865
|
# @private
|
5647
5866
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -852,6 +852,75 @@ module Google
|
|
852
852
|
execute_or_queue_command(command, &block)
|
853
853
|
end
|
854
854
|
|
855
|
+
# Imports CompletionSuggestions for a DataStore.
|
856
|
+
# @param [String] parent
|
857
|
+
# Required. The parent data store resource name for which to import customer
|
858
|
+
# autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
|
859
|
+
# /dataStores/*`
|
860
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1_import_completion_suggestions_request_object
|
861
|
+
# @param [String] fields
|
862
|
+
# Selector specifying which fields to include in a partial response.
|
863
|
+
# @param [String] quota_user
|
864
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
865
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
866
|
+
# @param [Google::Apis::RequestOptions] options
|
867
|
+
# Request-specific options
|
868
|
+
#
|
869
|
+
# @yield [result, err] Result & error if block supplied
|
870
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation] parsed result object
|
871
|
+
# @yieldparam err [StandardError] error object if request failed
|
872
|
+
#
|
873
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation]
|
874
|
+
#
|
875
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
876
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
877
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
878
|
+
def import_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
879
|
+
command = make_simple_command(:post, 'v1/{+parent}/completionSuggestions:import', options)
|
880
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest::Representation
|
881
|
+
command.request_object = google_cloud_discoveryengine_v1_import_completion_suggestions_request_object
|
882
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation::Representation
|
883
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation
|
884
|
+
command.params['parent'] = parent unless parent.nil?
|
885
|
+
command.query['fields'] = fields unless fields.nil?
|
886
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
887
|
+
execute_or_queue_command(command, &block)
|
888
|
+
end
|
889
|
+
|
890
|
+
# Permanently deletes all CompletionSuggestions for a DataStore.
|
891
|
+
# @param [String] parent
|
892
|
+
# Required. The parent data store resource name for which to purge completion
|
893
|
+
# suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
|
894
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object
|
895
|
+
# @param [String] fields
|
896
|
+
# Selector specifying which fields to include in a partial response.
|
897
|
+
# @param [String] quota_user
|
898
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
899
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
900
|
+
# @param [Google::Apis::RequestOptions] options
|
901
|
+
# Request-specific options
|
902
|
+
#
|
903
|
+
# @yield [result, err] Result & error if block supplied
|
904
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation] parsed result object
|
905
|
+
# @yieldparam err [StandardError] error object if request failed
|
906
|
+
#
|
907
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation]
|
908
|
+
#
|
909
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
910
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
911
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
912
|
+
def purge_project_location_collection_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
913
|
+
command = make_simple_command(:post, 'v1/{+parent}/completionSuggestions:purge', options)
|
914
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest::Representation
|
915
|
+
command.request_object = google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object
|
916
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation::Representation
|
917
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation
|
918
|
+
command.params['parent'] = parent unless parent.nil?
|
919
|
+
command.query['fields'] = fields unless fields.nil?
|
920
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
921
|
+
execute_or_queue_command(command, &block)
|
922
|
+
end
|
923
|
+
|
855
924
|
# Creates a Control. By default 1000 controls are allowed for a data store. A
|
856
925
|
# request can be submitted to adjust this limit. If the Control to create
|
857
926
|
# already exists, an ALREADY_EXISTS error is returned.
|
@@ -4535,6 +4604,75 @@ module Google
|
|
4535
4604
|
execute_or_queue_command(command, &block)
|
4536
4605
|
end
|
4537
4606
|
|
4607
|
+
# Imports CompletionSuggestions for a DataStore.
|
4608
|
+
# @param [String] parent
|
4609
|
+
# Required. The parent data store resource name for which to import customer
|
4610
|
+
# autocomplete suggestions. Follows pattern `projects/*/locations/*/collections/*
|
4611
|
+
# /dataStores/*`
|
4612
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest] google_cloud_discoveryengine_v1_import_completion_suggestions_request_object
|
4613
|
+
# @param [String] fields
|
4614
|
+
# Selector specifying which fields to include in a partial response.
|
4615
|
+
# @param [String] quota_user
|
4616
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4617
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4618
|
+
# @param [Google::Apis::RequestOptions] options
|
4619
|
+
# Request-specific options
|
4620
|
+
#
|
4621
|
+
# @yield [result, err] Result & error if block supplied
|
4622
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation] parsed result object
|
4623
|
+
# @yieldparam err [StandardError] error object if request failed
|
4624
|
+
#
|
4625
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation]
|
4626
|
+
#
|
4627
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4628
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4629
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4630
|
+
def import_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1_import_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4631
|
+
command = make_simple_command(:post, 'v1/{+parent}/completionSuggestions:import', options)
|
4632
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest::Representation
|
4633
|
+
command.request_object = google_cloud_discoveryengine_v1_import_completion_suggestions_request_object
|
4634
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation::Representation
|
4635
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation
|
4636
|
+
command.params['parent'] = parent unless parent.nil?
|
4637
|
+
command.query['fields'] = fields unless fields.nil?
|
4638
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4639
|
+
execute_or_queue_command(command, &block)
|
4640
|
+
end
|
4641
|
+
|
4642
|
+
# Permanently deletes all CompletionSuggestions for a DataStore.
|
4643
|
+
# @param [String] parent
|
4644
|
+
# Required. The parent data store resource name for which to purge completion
|
4645
|
+
# suggestions. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
|
4646
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest] google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object
|
4647
|
+
# @param [String] fields
|
4648
|
+
# Selector specifying which fields to include in a partial response.
|
4649
|
+
# @param [String] quota_user
|
4650
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4651
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4652
|
+
# @param [Google::Apis::RequestOptions] options
|
4653
|
+
# Request-specific options
|
4654
|
+
#
|
4655
|
+
# @yield [result, err] Result & error if block supplied
|
4656
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation] parsed result object
|
4657
|
+
# @yieldparam err [StandardError] error object if request failed
|
4658
|
+
#
|
4659
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation]
|
4660
|
+
#
|
4661
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4662
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4663
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4664
|
+
def purge_project_location_data_store_completion_suggestion(parent, google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4665
|
+
command = make_simple_command(:post, 'v1/{+parent}/completionSuggestions:purge', options)
|
4666
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest::Representation
|
4667
|
+
command.request_object = google_cloud_discoveryengine_v1_purge_completion_suggestions_request_object
|
4668
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation::Representation
|
4669
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleLongrunningOperation
|
4670
|
+
command.params['parent'] = parent unless parent.nil?
|
4671
|
+
command.query['fields'] = fields unless fields.nil?
|
4672
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4673
|
+
execute_or_queue_command(command, &block)
|
4674
|
+
end
|
4675
|
+
|
4538
4676
|
# Creates a Control. By default 1000 controls are allowed for a data store. A
|
4539
4677
|
# request can be submitted to adjust this limit. If the Control to create
|
4540
4678
|
# already exists, an ALREADY_EXISTS error is returned.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-discoveryengine_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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-
|
11
|
+
date: 2024-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.8.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|