google-apis-discoveryengine_v1 0.60.0 → 0.62.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 +8 -0
- data/lib/google/apis/discoveryengine_v1/classes.rb +183 -36
- data/lib/google/apis/discoveryengine_v1/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1/representations.rb +79 -0
- data/lib/google/apis/discoveryengine_v1/service.rb +225 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb53aa14eb58b19049f0ca604f7810eab07a50a4815976f90f382a3bb56b9d44
|
|
4
|
+
data.tar.gz: 00364ae1e9f32498569b35670ec66b9b68a501d52f935fce92798868e83cd9ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61ce5983010f4dc58f73a8ab72c0943686418369fea2bc8d2d689cb1edd641c7f763cb07a432f7d226ee8a50a360857abd3074086bfb29ba7fc2468da038f0b7
|
|
7
|
+
data.tar.gz: daefe29e8918121e987fc51697f20569ed840d728feae8d565dfb96c3518984e79b79faf9c863a481a759433881baafa75ce9e0a6ccc7fb38800371747e4dd14
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-discoveryengine_v1
|
|
2
2
|
|
|
3
|
+
### v0.62.0 (2025-12-21)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20251217
|
|
6
|
+
|
|
7
|
+
### v0.61.0 (2025-12-14)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20251209
|
|
10
|
+
|
|
3
11
|
### v0.60.0 (2025-12-07)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20251203
|
|
@@ -6727,6 +6727,11 @@ module Google
|
|
|
6727
6727
|
# @return [String]
|
|
6728
6728
|
attr_accessor :name
|
|
6729
6729
|
|
|
6730
|
+
# Configuration for Natural Language Query Understanding.
|
|
6731
|
+
# Corresponds to the JSON property `naturalLanguageQueryUnderstandingConfig`
|
|
6732
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig]
|
|
6733
|
+
attr_accessor :natural_language_query_understanding_config
|
|
6734
|
+
|
|
6730
6735
|
# Stores information regarding the serving configurations at DataStore level.
|
|
6731
6736
|
# Corresponds to the JSON property `servingConfigDataStore`
|
|
6732
6737
|
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore]
|
|
@@ -6773,6 +6778,7 @@ module Google
|
|
|
6773
6778
|
@is_infobot_faq_data_store = args[:is_infobot_faq_data_store] if args.key?(:is_infobot_faq_data_store)
|
|
6774
6779
|
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
|
6775
6780
|
@name = args[:name] if args.key?(:name)
|
|
6781
|
+
@natural_language_query_understanding_config = args[:natural_language_query_understanding_config] if args.key?(:natural_language_query_understanding_config)
|
|
6776
6782
|
@serving_config_data_store = args[:serving_config_data_store] if args.key?(:serving_config_data_store)
|
|
6777
6783
|
@solution_types = args[:solution_types] if args.key?(:solution_types)
|
|
6778
6784
|
@starting_schema = args[:starting_schema] if args.key?(:starting_schema)
|
|
@@ -10024,6 +10030,26 @@ module Google
|
|
|
10024
10030
|
end
|
|
10025
10031
|
end
|
|
10026
10032
|
|
|
10033
|
+
# Configuration for Natural Language Query Understanding.
|
|
10034
|
+
class GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig
|
|
10035
|
+
include Google::Apis::Core::Hashable
|
|
10036
|
+
|
|
10037
|
+
# Mode of Natural Language Query Understanding. If this field is unset, the
|
|
10038
|
+
# behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.
|
|
10039
|
+
# Corresponds to the JSON property `mode`
|
|
10040
|
+
# @return [String]
|
|
10041
|
+
attr_accessor :mode
|
|
10042
|
+
|
|
10043
|
+
def initialize(**args)
|
|
10044
|
+
update!(**args)
|
|
10045
|
+
end
|
|
10046
|
+
|
|
10047
|
+
# Update properties of this object
|
|
10048
|
+
def update!(**args)
|
|
10049
|
+
@mode = args[:mode] if args.key?(:mode)
|
|
10050
|
+
end
|
|
10051
|
+
end
|
|
10052
|
+
|
|
10027
10053
|
# Detailed page information.
|
|
10028
10054
|
class GoogleCloudDiscoveryengineV1PageInfo
|
|
10029
10055
|
include Google::Apis::Core::Hashable
|
|
@@ -11545,11 +11571,12 @@ module Google
|
|
|
11545
11571
|
# be the same as UserEvent.PageInfo.page_category. This field is the equivalent
|
|
11546
11572
|
# of the query for browse (navigation) queries. It's used by the browse model
|
|
11547
11573
|
# when the query is empty. If the field is empty, it will not be used by the
|
|
11548
|
-
# browse model.
|
|
11549
|
-
#
|
|
11550
|
-
#
|
|
11551
|
-
#
|
|
11552
|
-
#
|
|
11574
|
+
# browse model. If the field contains more than one element, only the first
|
|
11575
|
+
# element will be used. To represent full path of a category, use '>' character
|
|
11576
|
+
# to separate different hierarchies. If '>' is part of the category name,
|
|
11577
|
+
# replace it with other character(s). For example, `Graphics Cards > RTX>4090 >
|
|
11578
|
+
# Founders Edition` where "RTX > 4090" represents one level, can be rewritten as
|
|
11579
|
+
# `Graphics Cards > RTX_4090 > Founders Edition`
|
|
11553
11580
|
# Corresponds to the JSON property `pageCategories`
|
|
11554
11581
|
# @return [Array<String>]
|
|
11555
11582
|
attr_accessor :page_categories
|
|
@@ -11657,10 +11684,12 @@ module Google
|
|
|
11657
11684
|
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec]
|
|
11658
11685
|
attr_accessor :relevance_score_spec
|
|
11659
11686
|
|
|
11660
|
-
# The relevance threshold of the search results.
|
|
11661
|
-
# threshold, leveraging a balance of precision and recall to deliver
|
|
11662
|
-
# accurate results and comprehensive coverage of relevant
|
|
11663
|
-
#
|
|
11687
|
+
# The global relevance threshold of the search results. Defaults to Google
|
|
11688
|
+
# defined threshold, leveraging a balance of precision and recall to deliver
|
|
11689
|
+
# both highly accurate results and comprehensive coverage of relevant
|
|
11690
|
+
# information. If more granular relevance filtering is required, use the `
|
|
11691
|
+
# relevance_filter_spec` instead. This feature is not supported for healthcare
|
|
11692
|
+
# search.
|
|
11664
11693
|
# Corresponds to the JSON property `relevanceThreshold`
|
|
11665
11694
|
# @return [String]
|
|
11666
11695
|
attr_accessor :relevance_threshold
|
|
@@ -14775,15 +14804,15 @@ module Google
|
|
|
14775
14804
|
# @return [String]
|
|
14776
14805
|
attr_accessor :event_type
|
|
14777
14806
|
|
|
14778
|
-
# The filter syntax consists of an expression language for
|
|
14779
|
-
# predicate from one or more fields of the documents being
|
|
14780
|
-
# is for `search` events, the associated SearchRequest may
|
|
14781
|
-
# expression in SearchRequest.filter conforming to https://
|
|
14782
|
-
# filtering. Similarly, for `view-item-list` events that are
|
|
14783
|
-
# RecommendRequest, this field may be populated directly from
|
|
14784
|
-
# filter conforming to https://google.aip.dev/160#filtering.
|
|
14785
|
-
# UTF-8 encoded string with a length limit of 1,000
|
|
14786
|
-
# INVALID_ARGUMENT` error is returned.
|
|
14807
|
+
# Optional. The filter syntax consists of an expression language for
|
|
14808
|
+
# constructing a predicate from one or more fields of the documents being
|
|
14809
|
+
# filtered. One example is for `search` events, the associated SearchRequest may
|
|
14810
|
+
# contain a filter expression in SearchRequest.filter conforming to https://
|
|
14811
|
+
# google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are
|
|
14812
|
+
# generated from a RecommendRequest, this field may be populated directly from
|
|
14813
|
+
# RecommendRequest.filter conforming to https://google.aip.dev/160#filtering.
|
|
14814
|
+
# The value must be a UTF-8 encoded string with a length limit of 1,000
|
|
14815
|
+
# characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
14787
14816
|
# Corresponds to the JSON property `filter`
|
|
14788
14817
|
# @return [String]
|
|
14789
14818
|
attr_accessor :filter
|
|
@@ -23074,11 +23103,12 @@ module Google
|
|
|
23074
23103
|
# be the same as UserEvent.PageInfo.page_category. This field is the equivalent
|
|
23075
23104
|
# of the query for browse (navigation) queries. It's used by the browse model
|
|
23076
23105
|
# when the query is empty. If the field is empty, it will not be used by the
|
|
23077
|
-
# browse model.
|
|
23078
|
-
#
|
|
23079
|
-
#
|
|
23080
|
-
#
|
|
23081
|
-
#
|
|
23106
|
+
# browse model. If the field contains more than one element, only the first
|
|
23107
|
+
# element will be used. To represent full path of a category, use '>' character
|
|
23108
|
+
# to separate different hierarchies. If '>' is part of the category name,
|
|
23109
|
+
# replace it with other character(s). For example, `Graphics Cards > RTX>4090 >
|
|
23110
|
+
# Founders Edition` where "RTX > 4090" represents one level, can be rewritten as
|
|
23111
|
+
# `Graphics Cards > RTX_4090 > Founders Edition`
|
|
23082
23112
|
# Corresponds to the JSON property `pageCategories`
|
|
23083
23113
|
# @return [Array<String>]
|
|
23084
23114
|
attr_accessor :page_categories
|
|
@@ -23194,15 +23224,22 @@ module Google
|
|
|
23194
23224
|
# @return [String]
|
|
23195
23225
|
attr_accessor :region_code
|
|
23196
23226
|
|
|
23227
|
+
# Relevance filtering specification.
|
|
23228
|
+
# Corresponds to the JSON property `relevanceFilterSpec`
|
|
23229
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec]
|
|
23230
|
+
attr_accessor :relevance_filter_spec
|
|
23231
|
+
|
|
23197
23232
|
# The specification for returning the document relevance score.
|
|
23198
23233
|
# Corresponds to the JSON property `relevanceScoreSpec`
|
|
23199
23234
|
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec]
|
|
23200
23235
|
attr_accessor :relevance_score_spec
|
|
23201
23236
|
|
|
23202
|
-
# The relevance threshold of the search results.
|
|
23203
|
-
# threshold, leveraging a balance of precision and recall to deliver
|
|
23204
|
-
# accurate results and comprehensive coverage of relevant
|
|
23205
|
-
#
|
|
23237
|
+
# The global relevance threshold of the search results. Defaults to Google
|
|
23238
|
+
# defined threshold, leveraging a balance of precision and recall to deliver
|
|
23239
|
+
# both highly accurate results and comprehensive coverage of relevant
|
|
23240
|
+
# information. If more granular relevance filtering is required, use the `
|
|
23241
|
+
# relevance_filter_spec` instead. This feature is not supported for healthcare
|
|
23242
|
+
# search.
|
|
23206
23243
|
# Corresponds to the JSON property `relevanceThreshold`
|
|
23207
23244
|
# @return [String]
|
|
23208
23245
|
attr_accessor :relevance_threshold
|
|
@@ -23338,6 +23375,7 @@ module Google
|
|
|
23338
23375
|
@ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
|
|
23339
23376
|
@ranking_expression_backend = args[:ranking_expression_backend] if args.key?(:ranking_expression_backend)
|
|
23340
23377
|
@region_code = args[:region_code] if args.key?(:region_code)
|
|
23378
|
+
@relevance_filter_spec = args[:relevance_filter_spec] if args.key?(:relevance_filter_spec)
|
|
23341
23379
|
@relevance_score_spec = args[:relevance_score_spec] if args.key?(:relevance_score_spec)
|
|
23342
23380
|
@relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
|
|
23343
23381
|
@safe_search = args[:safe_search] if args.key?(:safe_search)
|
|
@@ -24291,6 +24329,56 @@ module Google
|
|
|
24291
24329
|
end
|
|
24292
24330
|
end
|
|
24293
24331
|
|
|
24332
|
+
# Relevance filtering specification.
|
|
24333
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec
|
|
24334
|
+
include Google::Apis::Core::Hashable
|
|
24335
|
+
|
|
24336
|
+
# Specification for relevance filtering on a specific sub-search.
|
|
24337
|
+
# Corresponds to the JSON property `keywordSearchThreshold`
|
|
24338
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
|
|
24339
|
+
attr_accessor :keyword_search_threshold
|
|
24340
|
+
|
|
24341
|
+
# Specification for relevance filtering on a specific sub-search.
|
|
24342
|
+
# Corresponds to the JSON property `semanticSearchThreshold`
|
|
24343
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
|
|
24344
|
+
attr_accessor :semantic_search_threshold
|
|
24345
|
+
|
|
24346
|
+
def initialize(**args)
|
|
24347
|
+
update!(**args)
|
|
24348
|
+
end
|
|
24349
|
+
|
|
24350
|
+
# Update properties of this object
|
|
24351
|
+
def update!(**args)
|
|
24352
|
+
@keyword_search_threshold = args[:keyword_search_threshold] if args.key?(:keyword_search_threshold)
|
|
24353
|
+
@semantic_search_threshold = args[:semantic_search_threshold] if args.key?(:semantic_search_threshold)
|
|
24354
|
+
end
|
|
24355
|
+
end
|
|
24356
|
+
|
|
24357
|
+
# Specification for relevance filtering on a specific sub-search.
|
|
24358
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
|
|
24359
|
+
include Google::Apis::Core::Hashable
|
|
24360
|
+
|
|
24361
|
+
# Pre-defined relevance threshold for the sub-search.
|
|
24362
|
+
# Corresponds to the JSON property `relevanceThreshold`
|
|
24363
|
+
# @return [String]
|
|
24364
|
+
attr_accessor :relevance_threshold
|
|
24365
|
+
|
|
24366
|
+
# Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
|
|
24367
|
+
# Corresponds to the JSON property `semanticRelevanceThreshold`
|
|
24368
|
+
# @return [Float]
|
|
24369
|
+
attr_accessor :semantic_relevance_threshold
|
|
24370
|
+
|
|
24371
|
+
def initialize(**args)
|
|
24372
|
+
update!(**args)
|
|
24373
|
+
end
|
|
24374
|
+
|
|
24375
|
+
# Update properties of this object
|
|
24376
|
+
def update!(**args)
|
|
24377
|
+
@relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
|
|
24378
|
+
@semantic_relevance_threshold = args[:semantic_relevance_threshold] if args.key?(:semantic_relevance_threshold)
|
|
24379
|
+
end
|
|
24380
|
+
end
|
|
24381
|
+
|
|
24294
24382
|
# The specification for returning the document relevance score.
|
|
24295
24383
|
class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec
|
|
24296
24384
|
include Google::Apis::Core::Hashable
|
|
@@ -28958,11 +29046,12 @@ module Google
|
|
|
28958
29046
|
# be the same as UserEvent.PageInfo.page_category. This field is the equivalent
|
|
28959
29047
|
# of the query for browse (navigation) queries. It's used by the browse model
|
|
28960
29048
|
# when the query is empty. If the field is empty, it will not be used by the
|
|
28961
|
-
# browse model.
|
|
28962
|
-
#
|
|
28963
|
-
#
|
|
28964
|
-
#
|
|
28965
|
-
#
|
|
29049
|
+
# browse model. If the field contains more than one element, only the first
|
|
29050
|
+
# element will be used. To represent full path of a category, use '>' character
|
|
29051
|
+
# to separate different hierarchies. If '>' is part of the category name,
|
|
29052
|
+
# replace it with other character(s). For example, `Graphics Cards > RTX>4090 >
|
|
29053
|
+
# Founders Edition` where "RTX > 4090" represents one level, can be rewritten as
|
|
29054
|
+
# `Graphics Cards > RTX_4090 > Founders Edition`
|
|
28966
29055
|
# Corresponds to the JSON property `pageCategories`
|
|
28967
29056
|
# @return [Array<String>]
|
|
28968
29057
|
attr_accessor :page_categories
|
|
@@ -29078,15 +29167,22 @@ module Google
|
|
|
29078
29167
|
# @return [String]
|
|
29079
29168
|
attr_accessor :region_code
|
|
29080
29169
|
|
|
29170
|
+
# Relevance filtering specification.
|
|
29171
|
+
# Corresponds to the JSON property `relevanceFilterSpec`
|
|
29172
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec]
|
|
29173
|
+
attr_accessor :relevance_filter_spec
|
|
29174
|
+
|
|
29081
29175
|
# The specification for returning the document relevance score.
|
|
29082
29176
|
# Corresponds to the JSON property `relevanceScoreSpec`
|
|
29083
29177
|
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec]
|
|
29084
29178
|
attr_accessor :relevance_score_spec
|
|
29085
29179
|
|
|
29086
|
-
# The relevance threshold of the search results.
|
|
29087
|
-
# threshold, leveraging a balance of precision and recall to deliver
|
|
29088
|
-
# accurate results and comprehensive coverage of relevant
|
|
29089
|
-
#
|
|
29180
|
+
# The global relevance threshold of the search results. Defaults to Google
|
|
29181
|
+
# defined threshold, leveraging a balance of precision and recall to deliver
|
|
29182
|
+
# both highly accurate results and comprehensive coverage of relevant
|
|
29183
|
+
# information. If more granular relevance filtering is required, use the `
|
|
29184
|
+
# relevance_filter_spec` instead. This feature is not supported for healthcare
|
|
29185
|
+
# search.
|
|
29090
29186
|
# Corresponds to the JSON property `relevanceThreshold`
|
|
29091
29187
|
# @return [String]
|
|
29092
29188
|
attr_accessor :relevance_threshold
|
|
@@ -29212,6 +29308,7 @@ module Google
|
|
|
29212
29308
|
@ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
|
|
29213
29309
|
@ranking_expression_backend = args[:ranking_expression_backend] if args.key?(:ranking_expression_backend)
|
|
29214
29310
|
@region_code = args[:region_code] if args.key?(:region_code)
|
|
29311
|
+
@relevance_filter_spec = args[:relevance_filter_spec] if args.key?(:relevance_filter_spec)
|
|
29215
29312
|
@relevance_score_spec = args[:relevance_score_spec] if args.key?(:relevance_score_spec)
|
|
29216
29313
|
@relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
|
|
29217
29314
|
@safe_search = args[:safe_search] if args.key?(:safe_search)
|
|
@@ -30164,6 +30261,56 @@ module Google
|
|
|
30164
30261
|
end
|
|
30165
30262
|
end
|
|
30166
30263
|
|
|
30264
|
+
# Relevance filtering specification.
|
|
30265
|
+
class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec
|
|
30266
|
+
include Google::Apis::Core::Hashable
|
|
30267
|
+
|
|
30268
|
+
# Specification for relevance filtering on a specific sub-search.
|
|
30269
|
+
# Corresponds to the JSON property `keywordSearchThreshold`
|
|
30270
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
|
|
30271
|
+
attr_accessor :keyword_search_threshold
|
|
30272
|
+
|
|
30273
|
+
# Specification for relevance filtering on a specific sub-search.
|
|
30274
|
+
# Corresponds to the JSON property `semanticSearchThreshold`
|
|
30275
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec]
|
|
30276
|
+
attr_accessor :semantic_search_threshold
|
|
30277
|
+
|
|
30278
|
+
def initialize(**args)
|
|
30279
|
+
update!(**args)
|
|
30280
|
+
end
|
|
30281
|
+
|
|
30282
|
+
# Update properties of this object
|
|
30283
|
+
def update!(**args)
|
|
30284
|
+
@keyword_search_threshold = args[:keyword_search_threshold] if args.key?(:keyword_search_threshold)
|
|
30285
|
+
@semantic_search_threshold = args[:semantic_search_threshold] if args.key?(:semantic_search_threshold)
|
|
30286
|
+
end
|
|
30287
|
+
end
|
|
30288
|
+
|
|
30289
|
+
# Specification for relevance filtering on a specific sub-search.
|
|
30290
|
+
class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
|
|
30291
|
+
include Google::Apis::Core::Hashable
|
|
30292
|
+
|
|
30293
|
+
# Pre-defined relevance threshold for the sub-search.
|
|
30294
|
+
# Corresponds to the JSON property `relevanceThreshold`
|
|
30295
|
+
# @return [String]
|
|
30296
|
+
attr_accessor :relevance_threshold
|
|
30297
|
+
|
|
30298
|
+
# Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
|
|
30299
|
+
# Corresponds to the JSON property `semanticRelevanceThreshold`
|
|
30300
|
+
# @return [Float]
|
|
30301
|
+
attr_accessor :semantic_relevance_threshold
|
|
30302
|
+
|
|
30303
|
+
def initialize(**args)
|
|
30304
|
+
update!(**args)
|
|
30305
|
+
end
|
|
30306
|
+
|
|
30307
|
+
# Update properties of this object
|
|
30308
|
+
def update!(**args)
|
|
30309
|
+
@relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
|
|
30310
|
+
@semantic_relevance_threshold = args[:semantic_relevance_threshold] if args.key?(:semantic_relevance_threshold)
|
|
30311
|
+
end
|
|
30312
|
+
end
|
|
30313
|
+
|
|
30167
30314
|
# The specification for returning the document relevance score.
|
|
30168
30315
|
class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec
|
|
30169
30316
|
include Google::Apis::Core::Hashable
|
|
@@ -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.62.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20251217"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -1654,6 +1654,12 @@ module Google
|
|
|
1654
1654
|
include Google::Apis::Core::JsonObjectSupport
|
|
1655
1655
|
end
|
|
1656
1656
|
|
|
1657
|
+
class GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig
|
|
1658
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1659
|
+
|
|
1660
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
1661
|
+
end
|
|
1662
|
+
|
|
1657
1663
|
class GoogleCloudDiscoveryengineV1PageInfo
|
|
1658
1664
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
1659
1665
|
|
|
@@ -3712,6 +3718,18 @@ module Google
|
|
|
3712
3718
|
include Google::Apis::Core::JsonObjectSupport
|
|
3713
3719
|
end
|
|
3714
3720
|
|
|
3721
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec
|
|
3722
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
3723
|
+
|
|
3724
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
3725
|
+
end
|
|
3726
|
+
|
|
3727
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
|
|
3728
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
3729
|
+
|
|
3730
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
3731
|
+
end
|
|
3732
|
+
|
|
3715
3733
|
class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec
|
|
3716
3734
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
3717
3735
|
|
|
@@ -4636,6 +4654,18 @@ module Google
|
|
|
4636
4654
|
include Google::Apis::Core::JsonObjectSupport
|
|
4637
4655
|
end
|
|
4638
4656
|
|
|
4657
|
+
class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec
|
|
4658
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
4659
|
+
|
|
4660
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
4661
|
+
end
|
|
4662
|
+
|
|
4663
|
+
class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
|
|
4664
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
4665
|
+
|
|
4666
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
4667
|
+
end
|
|
4668
|
+
|
|
4639
4669
|
class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec
|
|
4640
4670
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
4641
4671
|
|
|
@@ -6668,6 +6698,8 @@ module Google
|
|
|
6668
6698
|
property :is_infobot_faq_data_store, as: 'isInfobotFaqDataStore'
|
|
6669
6699
|
property :kms_key_name, as: 'kmsKeyName'
|
|
6670
6700
|
property :name, as: 'name'
|
|
6701
|
+
property :natural_language_query_understanding_config, as: 'naturalLanguageQueryUnderstandingConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig::Representation
|
|
6702
|
+
|
|
6671
6703
|
property :serving_config_data_store, as: 'servingConfigDataStore', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DataStoreServingConfigDataStore::Representation
|
|
6672
6704
|
|
|
6673
6705
|
collection :solution_types, as: 'solutionTypes'
|
|
@@ -7619,6 +7651,13 @@ module Google
|
|
|
7619
7651
|
end
|
|
7620
7652
|
end
|
|
7621
7653
|
|
|
7654
|
+
class GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig
|
|
7655
|
+
# @private
|
|
7656
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
7657
|
+
property :mode, as: 'mode'
|
|
7658
|
+
end
|
|
7659
|
+
end
|
|
7660
|
+
|
|
7622
7661
|
class GoogleCloudDiscoveryengineV1PageInfo
|
|
7623
7662
|
# @private
|
|
7624
7663
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -11020,6 +11059,8 @@ module Google
|
|
|
11020
11059
|
property :ranking_expression, as: 'rankingExpression'
|
|
11021
11060
|
property :ranking_expression_backend, as: 'rankingExpressionBackend'
|
|
11022
11061
|
property :region_code, as: 'regionCode'
|
|
11062
|
+
property :relevance_filter_spec, as: 'relevanceFilterSpec', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec::Representation
|
|
11063
|
+
|
|
11023
11064
|
property :relevance_score_spec, as: 'relevanceScoreSpec', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec::Representation
|
|
11024
11065
|
|
|
11025
11066
|
property :relevance_threshold, as: 'relevanceThreshold'
|
|
@@ -11263,6 +11304,24 @@ module Google
|
|
|
11263
11304
|
end
|
|
11264
11305
|
end
|
|
11265
11306
|
|
|
11307
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec
|
|
11308
|
+
# @private
|
|
11309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
11310
|
+
property :keyword_search_threshold, as: 'keywordSearchThreshold', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation
|
|
11311
|
+
|
|
11312
|
+
property :semantic_search_threshold, as: 'semanticSearchThreshold', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation
|
|
11313
|
+
|
|
11314
|
+
end
|
|
11315
|
+
end
|
|
11316
|
+
|
|
11317
|
+
class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
|
|
11318
|
+
# @private
|
|
11319
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
11320
|
+
property :relevance_threshold, as: 'relevanceThreshold'
|
|
11321
|
+
property :semantic_relevance_threshold, as: 'semanticRelevanceThreshold'
|
|
11322
|
+
end
|
|
11323
|
+
end
|
|
11324
|
+
|
|
11266
11325
|
class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec
|
|
11267
11326
|
# @private
|
|
11268
11327
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -12569,6 +12628,8 @@ module Google
|
|
|
12569
12628
|
property :ranking_expression, as: 'rankingExpression'
|
|
12570
12629
|
property :ranking_expression_backend, as: 'rankingExpressionBackend'
|
|
12571
12630
|
property :region_code, as: 'regionCode'
|
|
12631
|
+
property :relevance_filter_spec, as: 'relevanceFilterSpec', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec::Representation
|
|
12632
|
+
|
|
12572
12633
|
property :relevance_score_spec, as: 'relevanceScoreSpec', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec::Representation
|
|
12573
12634
|
|
|
12574
12635
|
property :relevance_threshold, as: 'relevanceThreshold'
|
|
@@ -12811,6 +12872,24 @@ module Google
|
|
|
12811
12872
|
end
|
|
12812
12873
|
end
|
|
12813
12874
|
|
|
12875
|
+
class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec
|
|
12876
|
+
# @private
|
|
12877
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
12878
|
+
property :keyword_search_threshold, as: 'keywordSearchThreshold', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation
|
|
12879
|
+
|
|
12880
|
+
property :semantic_search_threshold, as: 'semanticSearchThreshold', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation
|
|
12881
|
+
|
|
12882
|
+
end
|
|
12883
|
+
end
|
|
12884
|
+
|
|
12885
|
+
class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec
|
|
12886
|
+
# @private
|
|
12887
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
12888
|
+
property :relevance_threshold, as: 'relevanceThreshold'
|
|
12889
|
+
property :semantic_relevance_threshold, as: 'semanticRelevanceThreshold'
|
|
12890
|
+
end
|
|
12891
|
+
end
|
|
12892
|
+
|
|
12814
12893
|
class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec
|
|
12815
12894
|
# @private
|
|
12816
12895
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2456,6 +2456,81 @@ module Google
|
|
|
2456
2456
|
execute_or_queue_command(command, &block)
|
|
2457
2457
|
end
|
|
2458
2458
|
|
|
2459
|
+
# Creates a ServingConfig. Note: The Google Cloud console works only with the
|
|
2460
|
+
# default serving config. Additional ServingConfigs can be created and managed
|
|
2461
|
+
# only via the API. A maximum of 100 ServingConfigs are allowed in an Engine,
|
|
2462
|
+
# otherwise a RESOURCE_EXHAUSTED error is returned.
|
|
2463
|
+
# @param [String] parent
|
|
2464
|
+
# Required. Full resource name of parent. Format: `projects/`project`/locations/`
|
|
2465
|
+
# location`/collections/`collection`/engines/`engine``
|
|
2466
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] google_cloud_discoveryengine_v1_serving_config_object
|
|
2467
|
+
# @param [String] serving_config_id
|
|
2468
|
+
# Required. The ID to use for the ServingConfig, which will become the final
|
|
2469
|
+
# component of the ServingConfig's resource name. This value should be 4-63
|
|
2470
|
+
# characters, and valid characters are /a-zA-Z0-9+/.
|
|
2471
|
+
# @param [String] fields
|
|
2472
|
+
# Selector specifying which fields to include in a partial response.
|
|
2473
|
+
# @param [String] quota_user
|
|
2474
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2475
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2476
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2477
|
+
# Request-specific options
|
|
2478
|
+
#
|
|
2479
|
+
# @yield [result, err] Result & error if block supplied
|
|
2480
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] parsed result object
|
|
2481
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2482
|
+
#
|
|
2483
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig]
|
|
2484
|
+
#
|
|
2485
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2486
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2487
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2488
|
+
def create_project_location_collection_data_store_serving_config(parent, google_cloud_discoveryengine_v1_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
2489
|
+
command = make_simple_command(:post, 'v1/{+parent}/servingConfigs', options)
|
|
2490
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation
|
|
2491
|
+
command.request_object = google_cloud_discoveryengine_v1_serving_config_object
|
|
2492
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation
|
|
2493
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig
|
|
2494
|
+
command.params['parent'] = parent unless parent.nil?
|
|
2495
|
+
command.query['servingConfigId'] = serving_config_id unless serving_config_id.nil?
|
|
2496
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2497
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2498
|
+
execute_or_queue_command(command, &block)
|
|
2499
|
+
end
|
|
2500
|
+
|
|
2501
|
+
# Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does
|
|
2502
|
+
# not exist.
|
|
2503
|
+
# @param [String] name
|
|
2504
|
+
# Required. The resource name of the ServingConfig to delete. Format: `projects/`
|
|
2505
|
+
# project`/locations/`location`/collections/`collection`/engines/`engine`/
|
|
2506
|
+
# servingConfigs/`serving_config_id``
|
|
2507
|
+
# @param [String] fields
|
|
2508
|
+
# Selector specifying which fields to include in a partial response.
|
|
2509
|
+
# @param [String] quota_user
|
|
2510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2512
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2513
|
+
# Request-specific options
|
|
2514
|
+
#
|
|
2515
|
+
# @yield [result, err] Result & error if block supplied
|
|
2516
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty] parsed result object
|
|
2517
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2518
|
+
#
|
|
2519
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty]
|
|
2520
|
+
#
|
|
2521
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2522
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2523
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2524
|
+
def delete_project_location_collection_data_store_serving_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
2525
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
2526
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty::Representation
|
|
2527
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty
|
|
2528
|
+
command.params['name'] = name unless name.nil?
|
|
2529
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2530
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2531
|
+
execute_or_queue_command(command, &block)
|
|
2532
|
+
end
|
|
2533
|
+
|
|
2459
2534
|
# Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not
|
|
2460
2535
|
# exist.
|
|
2461
2536
|
# @param [String] name
|
|
@@ -5005,6 +5080,81 @@ module Google
|
|
|
5005
5080
|
execute_or_queue_command(command, &block)
|
|
5006
5081
|
end
|
|
5007
5082
|
|
|
5083
|
+
# Creates a ServingConfig. Note: The Google Cloud console works only with the
|
|
5084
|
+
# default serving config. Additional ServingConfigs can be created and managed
|
|
5085
|
+
# only via the API. A maximum of 100 ServingConfigs are allowed in an Engine,
|
|
5086
|
+
# otherwise a RESOURCE_EXHAUSTED error is returned.
|
|
5087
|
+
# @param [String] parent
|
|
5088
|
+
# Required. Full resource name of parent. Format: `projects/`project`/locations/`
|
|
5089
|
+
# location`/collections/`collection`/engines/`engine``
|
|
5090
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] google_cloud_discoveryengine_v1_serving_config_object
|
|
5091
|
+
# @param [String] serving_config_id
|
|
5092
|
+
# Required. The ID to use for the ServingConfig, which will become the final
|
|
5093
|
+
# component of the ServingConfig's resource name. This value should be 4-63
|
|
5094
|
+
# characters, and valid characters are /a-zA-Z0-9+/.
|
|
5095
|
+
# @param [String] fields
|
|
5096
|
+
# Selector specifying which fields to include in a partial response.
|
|
5097
|
+
# @param [String] quota_user
|
|
5098
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
5099
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
5100
|
+
# @param [Google::Apis::RequestOptions] options
|
|
5101
|
+
# Request-specific options
|
|
5102
|
+
#
|
|
5103
|
+
# @yield [result, err] Result & error if block supplied
|
|
5104
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] parsed result object
|
|
5105
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
5106
|
+
#
|
|
5107
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig]
|
|
5108
|
+
#
|
|
5109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
5111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
5112
|
+
def create_project_location_collection_engine_serving_config(parent, google_cloud_discoveryengine_v1_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
5113
|
+
command = make_simple_command(:post, 'v1/{+parent}/servingConfigs', options)
|
|
5114
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation
|
|
5115
|
+
command.request_object = google_cloud_discoveryengine_v1_serving_config_object
|
|
5116
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation
|
|
5117
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig
|
|
5118
|
+
command.params['parent'] = parent unless parent.nil?
|
|
5119
|
+
command.query['servingConfigId'] = serving_config_id unless serving_config_id.nil?
|
|
5120
|
+
command.query['fields'] = fields unless fields.nil?
|
|
5121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5122
|
+
execute_or_queue_command(command, &block)
|
|
5123
|
+
end
|
|
5124
|
+
|
|
5125
|
+
# Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does
|
|
5126
|
+
# not exist.
|
|
5127
|
+
# @param [String] name
|
|
5128
|
+
# Required. The resource name of the ServingConfig to delete. Format: `projects/`
|
|
5129
|
+
# project`/locations/`location`/collections/`collection`/engines/`engine`/
|
|
5130
|
+
# servingConfigs/`serving_config_id``
|
|
5131
|
+
# @param [String] fields
|
|
5132
|
+
# Selector specifying which fields to include in a partial response.
|
|
5133
|
+
# @param [String] quota_user
|
|
5134
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
5135
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
5136
|
+
# @param [Google::Apis::RequestOptions] options
|
|
5137
|
+
# Request-specific options
|
|
5138
|
+
#
|
|
5139
|
+
# @yield [result, err] Result & error if block supplied
|
|
5140
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty] parsed result object
|
|
5141
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
5142
|
+
#
|
|
5143
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty]
|
|
5144
|
+
#
|
|
5145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
5147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
5148
|
+
def delete_project_location_collection_engine_serving_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
5149
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
5150
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty::Representation
|
|
5151
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty
|
|
5152
|
+
command.params['name'] = name unless name.nil?
|
|
5153
|
+
command.query['fields'] = fields unless fields.nil?
|
|
5154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5155
|
+
execute_or_queue_command(command, &block)
|
|
5156
|
+
end
|
|
5157
|
+
|
|
5008
5158
|
# Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not
|
|
5009
5159
|
# exist.
|
|
5010
5160
|
# @param [String] name
|
|
@@ -7341,6 +7491,81 @@ module Google
|
|
|
7341
7491
|
execute_or_queue_command(command, &block)
|
|
7342
7492
|
end
|
|
7343
7493
|
|
|
7494
|
+
# Creates a ServingConfig. Note: The Google Cloud console works only with the
|
|
7495
|
+
# default serving config. Additional ServingConfigs can be created and managed
|
|
7496
|
+
# only via the API. A maximum of 100 ServingConfigs are allowed in an Engine,
|
|
7497
|
+
# otherwise a RESOURCE_EXHAUSTED error is returned.
|
|
7498
|
+
# @param [String] parent
|
|
7499
|
+
# Required. Full resource name of parent. Format: `projects/`project`/locations/`
|
|
7500
|
+
# location`/collections/`collection`/engines/`engine``
|
|
7501
|
+
# @param [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] google_cloud_discoveryengine_v1_serving_config_object
|
|
7502
|
+
# @param [String] serving_config_id
|
|
7503
|
+
# Required. The ID to use for the ServingConfig, which will become the final
|
|
7504
|
+
# component of the ServingConfig's resource name. This value should be 4-63
|
|
7505
|
+
# characters, and valid characters are /a-zA-Z0-9+/.
|
|
7506
|
+
# @param [String] fields
|
|
7507
|
+
# Selector specifying which fields to include in a partial response.
|
|
7508
|
+
# @param [String] quota_user
|
|
7509
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7510
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7511
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7512
|
+
# Request-specific options
|
|
7513
|
+
#
|
|
7514
|
+
# @yield [result, err] Result & error if block supplied
|
|
7515
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] parsed result object
|
|
7516
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7517
|
+
#
|
|
7518
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig]
|
|
7519
|
+
#
|
|
7520
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7521
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7522
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7523
|
+
def create_project_location_data_store_serving_config(parent, google_cloud_discoveryengine_v1_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
7524
|
+
command = make_simple_command(:post, 'v1/{+parent}/servingConfigs', options)
|
|
7525
|
+
command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation
|
|
7526
|
+
command.request_object = google_cloud_discoveryengine_v1_serving_config_object
|
|
7527
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation
|
|
7528
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig
|
|
7529
|
+
command.params['parent'] = parent unless parent.nil?
|
|
7530
|
+
command.query['servingConfigId'] = serving_config_id unless serving_config_id.nil?
|
|
7531
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7532
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7533
|
+
execute_or_queue_command(command, &block)
|
|
7534
|
+
end
|
|
7535
|
+
|
|
7536
|
+
# Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does
|
|
7537
|
+
# not exist.
|
|
7538
|
+
# @param [String] name
|
|
7539
|
+
# Required. The resource name of the ServingConfig to delete. Format: `projects/`
|
|
7540
|
+
# project`/locations/`location`/collections/`collection`/engines/`engine`/
|
|
7541
|
+
# servingConfigs/`serving_config_id``
|
|
7542
|
+
# @param [String] fields
|
|
7543
|
+
# Selector specifying which fields to include in a partial response.
|
|
7544
|
+
# @param [String] quota_user
|
|
7545
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
7546
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
7547
|
+
# @param [Google::Apis::RequestOptions] options
|
|
7548
|
+
# Request-specific options
|
|
7549
|
+
#
|
|
7550
|
+
# @yield [result, err] Result & error if block supplied
|
|
7551
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty] parsed result object
|
|
7552
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
7553
|
+
#
|
|
7554
|
+
# @return [Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty]
|
|
7555
|
+
#
|
|
7556
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
7557
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
7558
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
7559
|
+
def delete_project_location_data_store_serving_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
7560
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
7561
|
+
command.response_representation = Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty::Representation
|
|
7562
|
+
command.response_class = Google::Apis::DiscoveryengineV1::GoogleProtobufEmpty
|
|
7563
|
+
command.params['name'] = name unless name.nil?
|
|
7564
|
+
command.query['fields'] = fields unless fields.nil?
|
|
7565
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
7566
|
+
execute_or_queue_command(command, &block)
|
|
7567
|
+
end
|
|
7568
|
+
|
|
7344
7569
|
# Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not
|
|
7345
7570
|
# exist.
|
|
7346
7571
|
# @param [String] name
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.62.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1/v0.62.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|