google-apis-discoveryengine_v1beta 0.32.0 → 0.34.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 +9 -0
- data/lib/google/apis/discoveryengine_v1beta/classes.rb +396 -2
- data/lib/google/apis/discoveryengine_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/discoveryengine_v1beta/representations.rb +153 -0
- data/lib/google/apis/discoveryengine_v1beta/service.rb +339 -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: d7feda5cad9626b3ce6486b0d60b4ddc8cf7339e6da4dbf0791059229327a7ab
|
4
|
+
data.tar.gz: e9eb961d17bc2b9488dbe93d2c94d61bd03db539011ffc2da5ed9ffa62590389
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70e60da95461a8814ab977a4248ff6bcf827987549e9cb4f53e688cf250da700c325bf177296085313d6c7f5900f14e65a042338468549565717e964a4d3c98e
|
7
|
+
data.tar.gz: 7e42c49801bdd6b846329b190f6012c05f53b24f586ec397cbd0c2a5696418e81a97c6e20461feec8880175295194da5a2ada6f07c5c3e4e6f4e52370ccb1406
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-discoveryengine_v1beta
|
2
2
|
|
3
|
+
### v0.34.0 (2024-02-11)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240206
|
6
|
+
|
7
|
+
### v0.33.0 (2024-02-04)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240129
|
10
|
+
* Regenerated using generator version 0.13.1
|
11
|
+
|
3
12
|
### v0.32.0 (2024-01-23)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240118
|
@@ -1832,6 +1832,19 @@ module Google
|
|
1832
1832
|
end
|
1833
1833
|
end
|
1834
1834
|
|
1835
|
+
# The digital parsing configurations for documents.
|
1836
|
+
class GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig
|
1837
|
+
include Google::Apis::Core::Hashable
|
1838
|
+
|
1839
|
+
def initialize(**args)
|
1840
|
+
update!(**args)
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
# Update properties of this object
|
1844
|
+
def update!(**args)
|
1845
|
+
end
|
1846
|
+
end
|
1847
|
+
|
1835
1848
|
# Metadata related to the progress of the SiteSearchEngineService.
|
1836
1849
|
# DisableAdvancedSiteSearch operation. This will be returned by the google.
|
1837
1850
|
# longrunning.Operation.metadata field.
|
@@ -1879,8 +1892,13 @@ module Google
|
|
1879
1892
|
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
|
1880
1893
|
include Google::Apis::Core::Hashable
|
1881
1894
|
|
1882
|
-
#
|
1883
|
-
# `
|
1895
|
+
# Related configurations applied to a specific type of document parser.
|
1896
|
+
# Corresponds to the JSON property `defaultParsingConfig`
|
1897
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig]
|
1898
|
+
attr_accessor :default_parsing_config
|
1899
|
+
|
1900
|
+
# The full resource name of the Document Processing Config. Format: `projects/*/
|
1901
|
+
# locations/*/collections/*/dataStores/*/documentProcessingConfig`.
|
1884
1902
|
# Corresponds to the JSON property `name`
|
1885
1903
|
# @return [String]
|
1886
1904
|
attr_accessor :name
|
@@ -1890,14 +1908,56 @@ module Google
|
|
1890
1908
|
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrConfig]
|
1891
1909
|
attr_accessor :ocr_config
|
1892
1910
|
|
1911
|
+
# Map from file type to override the default parsing configuration based on the
|
1912
|
+
# file type. Supported keys: * `pdf`: Override parsing config for PDF files,
|
1913
|
+
# either digital parsing, ocr parsing or layout parsing is supported. * `html`:
|
1914
|
+
# Override parsing config for HTML files, only digital parsing and or layout
|
1915
|
+
# parsing are supported.
|
1916
|
+
# Corresponds to the JSON property `parsingConfigOverrides`
|
1917
|
+
# @return [Hash<String,Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig>]
|
1918
|
+
attr_accessor :parsing_config_overrides
|
1919
|
+
|
1893
1920
|
def initialize(**args)
|
1894
1921
|
update!(**args)
|
1895
1922
|
end
|
1896
1923
|
|
1897
1924
|
# Update properties of this object
|
1898
1925
|
def update!(**args)
|
1926
|
+
@default_parsing_config = args[:default_parsing_config] if args.key?(:default_parsing_config)
|
1899
1927
|
@name = args[:name] if args.key?(:name)
|
1900
1928
|
@ocr_config = args[:ocr_config] if args.key?(:ocr_config)
|
1929
|
+
@parsing_config_overrides = args[:parsing_config_overrides] if args.key?(:parsing_config_overrides)
|
1930
|
+
end
|
1931
|
+
end
|
1932
|
+
|
1933
|
+
# Related configurations applied to a specific type of document parser.
|
1934
|
+
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
|
1935
|
+
include Google::Apis::Core::Hashable
|
1936
|
+
|
1937
|
+
# The digital parsing configurations for documents.
|
1938
|
+
# Corresponds to the JSON property `digitalParsingConfig`
|
1939
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig]
|
1940
|
+
attr_accessor :digital_parsing_config
|
1941
|
+
|
1942
|
+
# The layout parsing configurations for documents.
|
1943
|
+
# Corresponds to the JSON property `layoutParsingConfig`
|
1944
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig]
|
1945
|
+
attr_accessor :layout_parsing_config
|
1946
|
+
|
1947
|
+
# The OCR parsing configurations for documents.
|
1948
|
+
# Corresponds to the JSON property `ocrParsingConfig`
|
1949
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrParsingConfig]
|
1950
|
+
attr_accessor :ocr_parsing_config
|
1951
|
+
|
1952
|
+
def initialize(**args)
|
1953
|
+
update!(**args)
|
1954
|
+
end
|
1955
|
+
|
1956
|
+
# Update properties of this object
|
1957
|
+
def update!(**args)
|
1958
|
+
@digital_parsing_config = args[:digital_parsing_config] if args.key?(:digital_parsing_config)
|
1959
|
+
@layout_parsing_config = args[:layout_parsing_config] if args.key?(:layout_parsing_config)
|
1960
|
+
@ocr_parsing_config = args[:ocr_parsing_config] if args.key?(:ocr_parsing_config)
|
1901
1961
|
end
|
1902
1962
|
end
|
1903
1963
|
|
@@ -2725,6 +2785,19 @@ module Google
|
|
2725
2785
|
end
|
2726
2786
|
end
|
2727
2787
|
|
2788
|
+
# The layout parsing configurations for documents.
|
2789
|
+
class GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig
|
2790
|
+
include Google::Apis::Core::Hashable
|
2791
|
+
|
2792
|
+
def initialize(**args)
|
2793
|
+
update!(**args)
|
2794
|
+
end
|
2795
|
+
|
2796
|
+
# Update properties of this object
|
2797
|
+
def update!(**args)
|
2798
|
+
end
|
2799
|
+
end
|
2800
|
+
|
2728
2801
|
# The OCR options for parsing documents.
|
2729
2802
|
class GoogleCloudDiscoveryengineV1alphaOcrConfig
|
2730
2803
|
include Google::Apis::Core::Hashable
|
@@ -2762,6 +2835,34 @@ module Google
|
|
2762
2835
|
end
|
2763
2836
|
end
|
2764
2837
|
|
2838
|
+
# The OCR parsing configurations for documents.
|
2839
|
+
class GoogleCloudDiscoveryengineV1alphaOcrParsingConfig
|
2840
|
+
include Google::Apis::Core::Hashable
|
2841
|
+
|
2842
|
+
# Apply additional enhanced OCR processing to a list of document elements.
|
2843
|
+
# Supported values: * `table`: advanced table parsing model.
|
2844
|
+
# Corresponds to the JSON property `enhancedDocumentElements`
|
2845
|
+
# @return [Array<String>]
|
2846
|
+
attr_accessor :enhanced_document_elements
|
2847
|
+
|
2848
|
+
# If true, will use native text instead of OCR text on pages containing native
|
2849
|
+
# text.
|
2850
|
+
# Corresponds to the JSON property `useNativeText`
|
2851
|
+
# @return [Boolean]
|
2852
|
+
attr_accessor :use_native_text
|
2853
|
+
alias_method :use_native_text?, :use_native_text
|
2854
|
+
|
2855
|
+
def initialize(**args)
|
2856
|
+
update!(**args)
|
2857
|
+
end
|
2858
|
+
|
2859
|
+
# Update properties of this object
|
2860
|
+
def update!(**args)
|
2861
|
+
@enhanced_document_elements = args[:enhanced_document_elements] if args.key?(:enhanced_document_elements)
|
2862
|
+
@use_native_text = args[:use_native_text] if args.key?(:use_native_text)
|
2863
|
+
end
|
2864
|
+
end
|
2865
|
+
|
2765
2866
|
# Metadata related to the progress of the PurgeDocuments operation. This will be
|
2766
2867
|
# returned by the google.longrunning.Operation.metadata field.
|
2767
2868
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
@@ -4448,6 +4549,25 @@ module Google
|
|
4448
4549
|
end
|
4449
4550
|
end
|
4450
4551
|
|
4552
|
+
# Defines embedding config, used for bring your own embeddings feature.
|
4553
|
+
class GoogleCloudDiscoveryengineV1betaEmbeddingConfig
|
4554
|
+
include Google::Apis::Core::Hashable
|
4555
|
+
|
4556
|
+
# Full field path in the schema mapped as embedding field.
|
4557
|
+
# Corresponds to the JSON property `fieldPath`
|
4558
|
+
# @return [String]
|
4559
|
+
attr_accessor :field_path
|
4560
|
+
|
4561
|
+
def initialize(**args)
|
4562
|
+
update!(**args)
|
4563
|
+
end
|
4564
|
+
|
4565
|
+
# Update properties of this object
|
4566
|
+
def update!(**args)
|
4567
|
+
@field_path = args[:field_path] if args.key?(:field_path)
|
4568
|
+
end
|
4569
|
+
end
|
4570
|
+
|
4451
4571
|
# Metadata related to the progress of the SiteSearchEngineService.
|
4452
4572
|
# EnableAdvancedSiteSearch operation. This will be returned by the google.
|
4453
4573
|
# longrunning.Operation.metadata field.
|
@@ -5404,6 +5524,31 @@ module Google
|
|
5404
5524
|
end
|
5405
5525
|
end
|
5406
5526
|
|
5527
|
+
# Response for ListServingConfigs method.
|
5528
|
+
class GoogleCloudDiscoveryengineV1betaListServingConfigsResponse
|
5529
|
+
include Google::Apis::Core::Hashable
|
5530
|
+
|
5531
|
+
# Pagination token, if not returned indicates the last page.
|
5532
|
+
# Corresponds to the JSON property `nextPageToken`
|
5533
|
+
# @return [String]
|
5534
|
+
attr_accessor :next_page_token
|
5535
|
+
|
5536
|
+
# All the ServingConfigs for a given dataStore.
|
5537
|
+
# Corresponds to the JSON property `servingConfigs`
|
5538
|
+
# @return [Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig>]
|
5539
|
+
attr_accessor :serving_configs
|
5540
|
+
|
5541
|
+
def initialize(**args)
|
5542
|
+
update!(**args)
|
5543
|
+
end
|
5544
|
+
|
5545
|
+
# Update properties of this object
|
5546
|
+
def update!(**args)
|
5547
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
5548
|
+
@serving_configs = args[:serving_configs] if args.key?(:serving_configs)
|
5549
|
+
end
|
5550
|
+
end
|
5551
|
+
|
5407
5552
|
# Response message for SiteSearchEngineService.ListTargetSites method.
|
5408
5553
|
class GoogleCloudDiscoveryengineV1betaListTargetSitesResponse
|
5409
5554
|
include Google::Apis::Core::Hashable
|
@@ -7333,6 +7478,255 @@ module Google
|
|
7333
7478
|
end
|
7334
7479
|
end
|
7335
7480
|
|
7481
|
+
# Configures metadata that is used to generate serving time results (e.g. search
|
7482
|
+
# results or recommendation predictions). The ServingConfig is passed in the
|
7483
|
+
# search and predict request and generates results.
|
7484
|
+
class GoogleCloudDiscoveryengineV1betaServingConfig
|
7485
|
+
include Google::Apis::Core::Hashable
|
7486
|
+
|
7487
|
+
# Boost controls to use in serving path. All triggered boost controls will be
|
7488
|
+
# applied. Boost controls must be in the same data store as the serving config.
|
7489
|
+
# Maximum of 20 boost controls.
|
7490
|
+
# Corresponds to the JSON property `boostControlIds`
|
7491
|
+
# @return [Array<String>]
|
7492
|
+
attr_accessor :boost_control_ids
|
7493
|
+
|
7494
|
+
# Output only. ServingConfig created timestamp.
|
7495
|
+
# Corresponds to the JSON property `createTime`
|
7496
|
+
# @return [String]
|
7497
|
+
attr_accessor :create_time
|
7498
|
+
|
7499
|
+
# Required. The human readable serving config display name. Used in Discovery UI.
|
7500
|
+
# This field must be a UTF-8 encoded string with a length limit of 128
|
7501
|
+
# characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
7502
|
+
# Corresponds to the JSON property `displayName`
|
7503
|
+
# @return [String]
|
7504
|
+
attr_accessor :display_name
|
7505
|
+
|
7506
|
+
# Condition do not associate specifications. If multiple do not associate
|
7507
|
+
# conditions match, all matching do not associate controls in the list will
|
7508
|
+
# execute. Order does not matter. Maximum number of specifications is 100. Can
|
7509
|
+
# only be set if SolutionType is SOLUTION_TYPE_SEARCH.
|
7510
|
+
# Corresponds to the JSON property `dissociateControlIds`
|
7511
|
+
# @return [Array<String>]
|
7512
|
+
attr_accessor :dissociate_control_ids
|
7513
|
+
|
7514
|
+
# How much diversity to use in recommendation model results e.g. `medium-
|
7515
|
+
# diversity` or `high-diversity`. Currently supported values: * `no-diversity` *
|
7516
|
+
# `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If
|
7517
|
+
# not specified, we choose default based on recommendation model type. Default
|
7518
|
+
# value: `no-diversity`. Can only be set if SolutionType is
|
7519
|
+
# SOLUTION_TYPE_RECOMMENDATION.
|
7520
|
+
# Corresponds to the JSON property `diversityLevel`
|
7521
|
+
# @return [String]
|
7522
|
+
attr_accessor :diversity_level
|
7523
|
+
|
7524
|
+
# Defines embedding config, used for bring your own embeddings feature.
|
7525
|
+
# Corresponds to the JSON property `embeddingConfig`
|
7526
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEmbeddingConfig]
|
7527
|
+
attr_accessor :embedding_config
|
7528
|
+
|
7529
|
+
# Filter controls to use in serving path. All triggered filter controls will be
|
7530
|
+
# applied. Filter controls must be in the same data store as the serving config.
|
7531
|
+
# Maximum of 20 filter controls.
|
7532
|
+
# Corresponds to the JSON property `filterControlIds`
|
7533
|
+
# @return [Array<String>]
|
7534
|
+
attr_accessor :filter_control_ids
|
7535
|
+
|
7536
|
+
# Specifies the configurations needed for Generic Discovery.Currently we support:
|
7537
|
+
# * `content_search_spec`: configuration for generic content search.
|
7538
|
+
# Corresponds to the JSON property `genericConfig`
|
7539
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig]
|
7540
|
+
attr_accessor :generic_config
|
7541
|
+
|
7542
|
+
# Condition ignore specifications. If multiple ignore conditions match, all
|
7543
|
+
# matching ignore controls in the list will execute. Order does not matter.
|
7544
|
+
# Maximum number of specifications is 100.
|
7545
|
+
# Corresponds to the JSON property `ignoreControlIds`
|
7546
|
+
# @return [Array<String>]
|
7547
|
+
attr_accessor :ignore_control_ids
|
7548
|
+
|
7549
|
+
# Specifies the configurations needed for Media Discovery. Currently we support:
|
7550
|
+
# * `demote_content_watched`: Threshold for watched content demotion. Customers
|
7551
|
+
# can specify if using watched content demotion or use viewed detail page. Using
|
7552
|
+
# the content watched demotion, customers need to specify the watched minutes or
|
7553
|
+
# percentage exceeds the threshold, the content will be demoted in the
|
7554
|
+
# recommendation result. * `promote_fresh_content`: cutoff days for fresh
|
7555
|
+
# content promotion. Customers can specify if using content freshness promotion.
|
7556
|
+
# If the content was published within the cutoff days, the content will be
|
7557
|
+
# promoted in the recommendation result. Can only be set if SolutionType is
|
7558
|
+
# SOLUTION_TYPE_RECOMMENDATION.
|
7559
|
+
# Corresponds to the JSON property `mediaConfig`
|
7560
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig]
|
7561
|
+
attr_accessor :media_config
|
7562
|
+
|
7563
|
+
# The id of the model to use at serving time. Currently only
|
7564
|
+
# RecommendationModels are supported. Can be changed but only to a compatible
|
7565
|
+
# model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when
|
7566
|
+
# SolutionType is SOLUTION_TYPE_RECOMMENDATION.
|
7567
|
+
# Corresponds to the JSON property `modelId`
|
7568
|
+
# @return [String]
|
7569
|
+
attr_accessor :model_id
|
7570
|
+
|
7571
|
+
# Immutable. Fully qualified name `projects/`project`/locations/`location`/
|
7572
|
+
# collections/`collection_id`/dataStores/`data_store_id`/servingConfigs/`
|
7573
|
+
# serving_config_id``
|
7574
|
+
# Corresponds to the JSON property `name`
|
7575
|
+
# @return [String]
|
7576
|
+
attr_accessor :name
|
7577
|
+
|
7578
|
+
# Condition oneway synonyms specifications. If multiple oneway synonyms
|
7579
|
+
# conditions match, all matching oneway synonyms controls in the list will
|
7580
|
+
# execute. Maximum number of specifications is 100. Can only be set if
|
7581
|
+
# SolutionType is SOLUTION_TYPE_SEARCH.
|
7582
|
+
# Corresponds to the JSON property `onewaySynonymsControlIds`
|
7583
|
+
# @return [Array<String>]
|
7584
|
+
attr_accessor :oneway_synonyms_control_ids
|
7585
|
+
|
7586
|
+
#
|
7587
|
+
# Corresponds to the JSON property `rankingExpression`
|
7588
|
+
# @return [String]
|
7589
|
+
attr_accessor :ranking_expression
|
7590
|
+
|
7591
|
+
# IDs of the redirect controls. Only the first triggered redirect action is
|
7592
|
+
# applied, even if multiple apply. Maximum number of specifications is 100. Can
|
7593
|
+
# only be set if SolutionType is SOLUTION_TYPE_SEARCH.
|
7594
|
+
# Corresponds to the JSON property `redirectControlIds`
|
7595
|
+
# @return [Array<String>]
|
7596
|
+
attr_accessor :redirect_control_ids
|
7597
|
+
|
7598
|
+
# Condition replacement specifications. Applied according to the order in the
|
7599
|
+
# list. A previously replaced term can not be re-replaced. Maximum number of
|
7600
|
+
# specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
|
7601
|
+
# Corresponds to the JSON property `replacementControlIds`
|
7602
|
+
# @return [Array<String>]
|
7603
|
+
attr_accessor :replacement_control_ids
|
7604
|
+
|
7605
|
+
# Required. Immutable. Specifies the solution type that a serving config can be
|
7606
|
+
# associated with.
|
7607
|
+
# Corresponds to the JSON property `solutionType`
|
7608
|
+
# @return [String]
|
7609
|
+
attr_accessor :solution_type
|
7610
|
+
|
7611
|
+
# Condition synonyms specifications. If multiple synonyms conditions match, all
|
7612
|
+
# matching synonyms controls in the list will execute. Maximum number of
|
7613
|
+
# specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
|
7614
|
+
# Corresponds to the JSON property `synonymsControlIds`
|
7615
|
+
# @return [Array<String>]
|
7616
|
+
attr_accessor :synonyms_control_ids
|
7617
|
+
|
7618
|
+
# Output only. ServingConfig updated timestamp.
|
7619
|
+
# Corresponds to the JSON property `updateTime`
|
7620
|
+
# @return [String]
|
7621
|
+
attr_accessor :update_time
|
7622
|
+
|
7623
|
+
def initialize(**args)
|
7624
|
+
update!(**args)
|
7625
|
+
end
|
7626
|
+
|
7627
|
+
# Update properties of this object
|
7628
|
+
def update!(**args)
|
7629
|
+
@boost_control_ids = args[:boost_control_ids] if args.key?(:boost_control_ids)
|
7630
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7631
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
7632
|
+
@dissociate_control_ids = args[:dissociate_control_ids] if args.key?(:dissociate_control_ids)
|
7633
|
+
@diversity_level = args[:diversity_level] if args.key?(:diversity_level)
|
7634
|
+
@embedding_config = args[:embedding_config] if args.key?(:embedding_config)
|
7635
|
+
@filter_control_ids = args[:filter_control_ids] if args.key?(:filter_control_ids)
|
7636
|
+
@generic_config = args[:generic_config] if args.key?(:generic_config)
|
7637
|
+
@ignore_control_ids = args[:ignore_control_ids] if args.key?(:ignore_control_ids)
|
7638
|
+
@media_config = args[:media_config] if args.key?(:media_config)
|
7639
|
+
@model_id = args[:model_id] if args.key?(:model_id)
|
7640
|
+
@name = args[:name] if args.key?(:name)
|
7641
|
+
@oneway_synonyms_control_ids = args[:oneway_synonyms_control_ids] if args.key?(:oneway_synonyms_control_ids)
|
7642
|
+
@ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression)
|
7643
|
+
@redirect_control_ids = args[:redirect_control_ids] if args.key?(:redirect_control_ids)
|
7644
|
+
@replacement_control_ids = args[:replacement_control_ids] if args.key?(:replacement_control_ids)
|
7645
|
+
@solution_type = args[:solution_type] if args.key?(:solution_type)
|
7646
|
+
@synonyms_control_ids = args[:synonyms_control_ids] if args.key?(:synonyms_control_ids)
|
7647
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
7648
|
+
end
|
7649
|
+
end
|
7650
|
+
|
7651
|
+
# Specifies the configurations needed for Generic Discovery.Currently we support:
|
7652
|
+
# * `content_search_spec`: configuration for generic content search.
|
7653
|
+
class GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig
|
7654
|
+
include Google::Apis::Core::Hashable
|
7655
|
+
|
7656
|
+
# A specification for configuring the behavior of content search.
|
7657
|
+
# Corresponds to the JSON property `contentSearchSpec`
|
7658
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec]
|
7659
|
+
attr_accessor :content_search_spec
|
7660
|
+
|
7661
|
+
def initialize(**args)
|
7662
|
+
update!(**args)
|
7663
|
+
end
|
7664
|
+
|
7665
|
+
# Update properties of this object
|
7666
|
+
def update!(**args)
|
7667
|
+
@content_search_spec = args[:content_search_spec] if args.key?(:content_search_spec)
|
7668
|
+
end
|
7669
|
+
end
|
7670
|
+
|
7671
|
+
# Specifies the configurations needed for Media Discovery. Currently we support:
|
7672
|
+
# * `demote_content_watched`: Threshold for watched content demotion. Customers
|
7673
|
+
# can specify if using watched content demotion or use viewed detail page. Using
|
7674
|
+
# the content watched demotion, customers need to specify the watched minutes or
|
7675
|
+
# percentage exceeds the threshold, the content will be demoted in the
|
7676
|
+
# recommendation result. * `promote_fresh_content`: cutoff days for fresh
|
7677
|
+
# content promotion. Customers can specify if using content freshness promotion.
|
7678
|
+
# If the content was published within the cutoff days, the content will be
|
7679
|
+
# promoted in the recommendation result. Can only be set if SolutionType is
|
7680
|
+
# SOLUTION_TYPE_RECOMMENDATION.
|
7681
|
+
class GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig
|
7682
|
+
include Google::Apis::Core::Hashable
|
7683
|
+
|
7684
|
+
# Specifies the content freshness used for recommendation result. Contents will
|
7685
|
+
# be demoted if contents were published for more than content freshness cutoff
|
7686
|
+
# days.
|
7687
|
+
# Corresponds to the JSON property `contentFreshnessCutoffDays`
|
7688
|
+
# @return [Fixnum]
|
7689
|
+
attr_accessor :content_freshness_cutoff_days
|
7690
|
+
|
7691
|
+
# Specifies the content watched minutes threshold for demotion.
|
7692
|
+
# Corresponds to the JSON property `contentWatchedMinutesThreshold`
|
7693
|
+
# @return [Float]
|
7694
|
+
attr_accessor :content_watched_minutes_threshold
|
7695
|
+
|
7696
|
+
# Specifies the content watched percentage threshold for demotion. Threshold
|
7697
|
+
# value must be between [0, 1.0] inclusive.
|
7698
|
+
# Corresponds to the JSON property `contentWatchedPercentageThreshold`
|
7699
|
+
# @return [Float]
|
7700
|
+
attr_accessor :content_watched_percentage_threshold
|
7701
|
+
|
7702
|
+
# Specifies the content watched minutes threshold for demotion.
|
7703
|
+
# Corresponds to the JSON property `contentWatchedSecondsThreshold`
|
7704
|
+
# @return [Float]
|
7705
|
+
attr_accessor :content_watched_seconds_threshold
|
7706
|
+
|
7707
|
+
# Specifies the event type used for demoting recommendation result. Currently
|
7708
|
+
# supported values: * `view-item`: Item viewed. * `media-play`: Start/resume
|
7709
|
+
# watching a video, playing a song, etc. * `media-complete`: Finished or stopped
|
7710
|
+
# midway through a video, song, etc. If unset, watch history demotion will not
|
7711
|
+
# be applied. Content freshness demotion will still be applied.
|
7712
|
+
# Corresponds to the JSON property `demotionEventType`
|
7713
|
+
# @return [String]
|
7714
|
+
attr_accessor :demotion_event_type
|
7715
|
+
|
7716
|
+
def initialize(**args)
|
7717
|
+
update!(**args)
|
7718
|
+
end
|
7719
|
+
|
7720
|
+
# Update properties of this object
|
7721
|
+
def update!(**args)
|
7722
|
+
@content_freshness_cutoff_days = args[:content_freshness_cutoff_days] if args.key?(:content_freshness_cutoff_days)
|
7723
|
+
@content_watched_minutes_threshold = args[:content_watched_minutes_threshold] if args.key?(:content_watched_minutes_threshold)
|
7724
|
+
@content_watched_percentage_threshold = args[:content_watched_percentage_threshold] if args.key?(:content_watched_percentage_threshold)
|
7725
|
+
@content_watched_seconds_threshold = args[:content_watched_seconds_threshold] if args.key?(:content_watched_seconds_threshold)
|
7726
|
+
@demotion_event_type = args[:demotion_event_type] if args.key?(:demotion_event_type)
|
7727
|
+
end
|
7728
|
+
end
|
7729
|
+
|
7336
7730
|
# SiteSearchEngine captures DataStore level site search persisting
|
7337
7731
|
# configurations. It is a singleton value per data store.
|
7338
7732
|
class GoogleCloudDiscoveryengineV1betaSiteSearchEngine
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DiscoveryengineV1beta
|
18
18
|
# Version of the google-apis-discoveryengine_v1beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.34.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.13.
|
22
|
+
GENERATOR_VERSION = "0.13.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240206"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -364,6 +364,12 @@ module Google
|
|
364
364
|
include Google::Apis::Core::JsonObjectSupport
|
365
365
|
end
|
366
366
|
|
367
|
+
class GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
367
373
|
class GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata
|
368
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
375
|
|
@@ -382,6 +388,12 @@ module Google
|
|
382
388
|
include Google::Apis::Core::JsonObjectSupport
|
383
389
|
end
|
384
390
|
|
391
|
+
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
385
397
|
class GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata
|
386
398
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
387
399
|
|
@@ -514,12 +526,24 @@ module Google
|
|
514
526
|
include Google::Apis::Core::JsonObjectSupport
|
515
527
|
end
|
516
528
|
|
529
|
+
class GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig
|
530
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
531
|
+
|
532
|
+
include Google::Apis::Core::JsonObjectSupport
|
533
|
+
end
|
534
|
+
|
517
535
|
class GoogleCloudDiscoveryengineV1alphaOcrConfig
|
518
536
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
537
|
|
520
538
|
include Google::Apis::Core::JsonObjectSupport
|
521
539
|
end
|
522
540
|
|
541
|
+
class GoogleCloudDiscoveryengineV1alphaOcrParsingConfig
|
542
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
543
|
+
|
544
|
+
include Google::Apis::Core::JsonObjectSupport
|
545
|
+
end
|
546
|
+
|
523
547
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
524
548
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
549
|
|
@@ -832,6 +856,12 @@ module Google
|
|
832
856
|
include Google::Apis::Core::JsonObjectSupport
|
833
857
|
end
|
834
858
|
|
859
|
+
class GoogleCloudDiscoveryengineV1betaEmbeddingConfig
|
860
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
861
|
+
|
862
|
+
include Google::Apis::Core::JsonObjectSupport
|
863
|
+
end
|
864
|
+
|
835
865
|
class GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata
|
836
866
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
837
867
|
|
@@ -1012,6 +1042,12 @@ module Google
|
|
1012
1042
|
include Google::Apis::Core::JsonObjectSupport
|
1013
1043
|
end
|
1014
1044
|
|
1045
|
+
class GoogleCloudDiscoveryengineV1betaListServingConfigsResponse
|
1046
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1047
|
+
|
1048
|
+
include Google::Apis::Core::JsonObjectSupport
|
1049
|
+
end
|
1050
|
+
|
1015
1051
|
class GoogleCloudDiscoveryengineV1betaListTargetSitesResponse
|
1016
1052
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1017
1053
|
|
@@ -1306,6 +1342,24 @@ module Google
|
|
1306
1342
|
include Google::Apis::Core::JsonObjectSupport
|
1307
1343
|
end
|
1308
1344
|
|
1345
|
+
class GoogleCloudDiscoveryengineV1betaServingConfig
|
1346
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1347
|
+
|
1348
|
+
include Google::Apis::Core::JsonObjectSupport
|
1349
|
+
end
|
1350
|
+
|
1351
|
+
class GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig
|
1352
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1353
|
+
|
1354
|
+
include Google::Apis::Core::JsonObjectSupport
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
class GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig
|
1358
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1359
|
+
|
1360
|
+
include Google::Apis::Core::JsonObjectSupport
|
1361
|
+
end
|
1362
|
+
|
1309
1363
|
class GoogleCloudDiscoveryengineV1betaSiteSearchEngine
|
1310
1364
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1311
1365
|
|
@@ -1919,6 +1973,12 @@ module Google
|
|
1919
1973
|
end
|
1920
1974
|
end
|
1921
1975
|
|
1976
|
+
class GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig
|
1977
|
+
# @private
|
1978
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1979
|
+
end
|
1980
|
+
end
|
1981
|
+
|
1922
1982
|
class GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata
|
1923
1983
|
# @private
|
1924
1984
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1936,9 +1996,25 @@ module Google
|
|
1936
1996
|
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
|
1937
1997
|
# @private
|
1938
1998
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1999
|
+
property :default_parsing_config, as: 'defaultParsingConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig::Representation
|
2000
|
+
|
1939
2001
|
property :name, as: 'name'
|
1940
2002
|
property :ocr_config, as: 'ocrConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrConfig::Representation
|
1941
2003
|
|
2004
|
+
hash :parsing_config_overrides, as: 'parsingConfigOverrides', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig::Representation
|
2005
|
+
|
2006
|
+
end
|
2007
|
+
end
|
2008
|
+
|
2009
|
+
class GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
|
2010
|
+
# @private
|
2011
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2012
|
+
property :digital_parsing_config, as: 'digitalParsingConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig::Representation
|
2013
|
+
|
2014
|
+
property :layout_parsing_config, as: 'layoutParsingConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig::Representation
|
2015
|
+
|
2016
|
+
property :ocr_parsing_config, as: 'ocrParsingConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrParsingConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrParsingConfig::Representation
|
2017
|
+
|
1942
2018
|
end
|
1943
2019
|
end
|
1944
2020
|
|
@@ -2156,6 +2232,12 @@ module Google
|
|
2156
2232
|
end
|
2157
2233
|
end
|
2158
2234
|
|
2235
|
+
class GoogleCloudDiscoveryengineV1alphaLayoutParsingConfig
|
2236
|
+
# @private
|
2237
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2238
|
+
end
|
2239
|
+
end
|
2240
|
+
|
2159
2241
|
class GoogleCloudDiscoveryengineV1alphaOcrConfig
|
2160
2242
|
# @private
|
2161
2243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2165,6 +2247,14 @@ module Google
|
|
2165
2247
|
end
|
2166
2248
|
end
|
2167
2249
|
|
2250
|
+
class GoogleCloudDiscoveryengineV1alphaOcrParsingConfig
|
2251
|
+
# @private
|
2252
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2253
|
+
collection :enhanced_document_elements, as: 'enhancedDocumentElements'
|
2254
|
+
property :use_native_text, as: 'useNativeText'
|
2255
|
+
end
|
2256
|
+
end
|
2257
|
+
|
2168
2258
|
class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
|
2169
2259
|
# @private
|
2170
2260
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2640,6 +2730,13 @@ module Google
|
|
2640
2730
|
end
|
2641
2731
|
end
|
2642
2732
|
|
2733
|
+
class GoogleCloudDiscoveryengineV1betaEmbeddingConfig
|
2734
|
+
# @private
|
2735
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2736
|
+
property :field_path, as: 'fieldPath'
|
2737
|
+
end
|
2738
|
+
end
|
2739
|
+
|
2643
2740
|
class GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata
|
2644
2741
|
# @private
|
2645
2742
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2927,6 +3024,15 @@ module Google
|
|
2927
3024
|
end
|
2928
3025
|
end
|
2929
3026
|
|
3027
|
+
class GoogleCloudDiscoveryengineV1betaListServingConfigsResponse
|
3028
|
+
# @private
|
3029
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3030
|
+
property :next_page_token, as: 'nextPageToken'
|
3031
|
+
collection :serving_configs, as: 'servingConfigs', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
3032
|
+
|
3033
|
+
end
|
3034
|
+
end
|
3035
|
+
|
2930
3036
|
class GoogleCloudDiscoveryengineV1betaListTargetSitesResponse
|
2931
3037
|
# @private
|
2932
3038
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3421,6 +3527,53 @@ module Google
|
|
3421
3527
|
end
|
3422
3528
|
end
|
3423
3529
|
|
3530
|
+
class GoogleCloudDiscoveryengineV1betaServingConfig
|
3531
|
+
# @private
|
3532
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3533
|
+
collection :boost_control_ids, as: 'boostControlIds'
|
3534
|
+
property :create_time, as: 'createTime'
|
3535
|
+
property :display_name, as: 'displayName'
|
3536
|
+
collection :dissociate_control_ids, as: 'dissociateControlIds'
|
3537
|
+
property :diversity_level, as: 'diversityLevel'
|
3538
|
+
property :embedding_config, as: 'embeddingConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEmbeddingConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaEmbeddingConfig::Representation
|
3539
|
+
|
3540
|
+
collection :filter_control_ids, as: 'filterControlIds'
|
3541
|
+
property :generic_config, as: 'genericConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig::Representation
|
3542
|
+
|
3543
|
+
collection :ignore_control_ids, as: 'ignoreControlIds'
|
3544
|
+
property :media_config, as: 'mediaConfig', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig::Representation
|
3545
|
+
|
3546
|
+
property :model_id, as: 'modelId'
|
3547
|
+
property :name, as: 'name'
|
3548
|
+
collection :oneway_synonyms_control_ids, as: 'onewaySynonymsControlIds'
|
3549
|
+
property :ranking_expression, as: 'rankingExpression'
|
3550
|
+
collection :redirect_control_ids, as: 'redirectControlIds'
|
3551
|
+
collection :replacement_control_ids, as: 'replacementControlIds'
|
3552
|
+
property :solution_type, as: 'solutionType'
|
3553
|
+
collection :synonyms_control_ids, as: 'synonymsControlIds'
|
3554
|
+
property :update_time, as: 'updateTime'
|
3555
|
+
end
|
3556
|
+
end
|
3557
|
+
|
3558
|
+
class GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig
|
3559
|
+
# @private
|
3560
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3561
|
+
property :content_search_spec, as: 'contentSearchSpec', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec::Representation
|
3562
|
+
|
3563
|
+
end
|
3564
|
+
end
|
3565
|
+
|
3566
|
+
class GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig
|
3567
|
+
# @private
|
3568
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3569
|
+
property :content_freshness_cutoff_days, as: 'contentFreshnessCutoffDays'
|
3570
|
+
property :content_watched_minutes_threshold, as: 'contentWatchedMinutesThreshold'
|
3571
|
+
property :content_watched_percentage_threshold, as: 'contentWatchedPercentageThreshold'
|
3572
|
+
property :content_watched_seconds_threshold, as: 'contentWatchedSecondsThreshold'
|
3573
|
+
property :demotion_event_type, as: 'demotionEventType'
|
3574
|
+
end
|
3575
|
+
end
|
3576
|
+
|
3424
3577
|
class GoogleCloudDiscoveryengineV1betaSiteSearchEngine
|
3425
3578
|
# @private
|
3426
3579
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1399,6 +1399,119 @@ module Google
|
|
1399
1399
|
execute_or_queue_command(command, &block)
|
1400
1400
|
end
|
1401
1401
|
|
1402
|
+
# Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not
|
1403
|
+
# exist.
|
1404
|
+
# @param [String] name
|
1405
|
+
# Required. The resource name of the ServingConfig to get. Format: `projects/`
|
1406
|
+
# project_number`/locations/`location`/collections/`collection`/dataStores/`
|
1407
|
+
# data_store`/servingConfigs/`serving_config_id``
|
1408
|
+
# @param [String] fields
|
1409
|
+
# Selector specifying which fields to include in a partial response.
|
1410
|
+
# @param [String] quota_user
|
1411
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1412
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1413
|
+
# @param [Google::Apis::RequestOptions] options
|
1414
|
+
# Request-specific options
|
1415
|
+
#
|
1416
|
+
# @yield [result, err] Result & error if block supplied
|
1417
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] parsed result object
|
1418
|
+
# @yieldparam err [StandardError] error object if request failed
|
1419
|
+
#
|
1420
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig]
|
1421
|
+
#
|
1422
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1423
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1424
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1425
|
+
def get_project_location_collection_data_store_serving_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
1426
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
1427
|
+
command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
1428
|
+
command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig
|
1429
|
+
command.params['name'] = name unless name.nil?
|
1430
|
+
command.query['fields'] = fields unless fields.nil?
|
1431
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1432
|
+
execute_or_queue_command(command, &block)
|
1433
|
+
end
|
1434
|
+
|
1435
|
+
# Lists all ServingConfigs linked to this dataStore.
|
1436
|
+
# @param [String] parent
|
1437
|
+
# Required. The dataStore resource name. Format: `projects/`project_number`/
|
1438
|
+
# locations/`location`/collections/`collection`/dataStores/`data_store``
|
1439
|
+
# @param [Fixnum] page_size
|
1440
|
+
# Optional. Maximum number of results to return. If unspecified, defaults to 100.
|
1441
|
+
# If a value greater than 100 is provided, at most 100 results are returned.
|
1442
|
+
# @param [String] page_token
|
1443
|
+
# Optional. A page token, received from a previous `ListServingConfigs` call.
|
1444
|
+
# Provide this to retrieve the subsequent page.
|
1445
|
+
# @param [String] fields
|
1446
|
+
# Selector specifying which fields to include in a partial response.
|
1447
|
+
# @param [String] quota_user
|
1448
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1449
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1450
|
+
# @param [Google::Apis::RequestOptions] options
|
1451
|
+
# Request-specific options
|
1452
|
+
#
|
1453
|
+
# @yield [result, err] Result & error if block supplied
|
1454
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse] parsed result object
|
1455
|
+
# @yieldparam err [StandardError] error object if request failed
|
1456
|
+
#
|
1457
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse]
|
1458
|
+
#
|
1459
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1460
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1461
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1462
|
+
def list_project_location_collection_data_store_serving_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1463
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/servingConfigs', options)
|
1464
|
+
command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse::Representation
|
1465
|
+
command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse
|
1466
|
+
command.params['parent'] = parent unless parent.nil?
|
1467
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1468
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1469
|
+
command.query['fields'] = fields unless fields.nil?
|
1470
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1471
|
+
execute_or_queue_command(command, &block)
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
# Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does
|
1475
|
+
# not exist.
|
1476
|
+
# @param [String] name
|
1477
|
+
# Immutable. Fully qualified name `projects/`project`/locations/`location`/
|
1478
|
+
# collections/`collection_id`/dataStores/`data_store_id`/servingConfigs/`
|
1479
|
+
# serving_config_id``
|
1480
|
+
# @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] google_cloud_discoveryengine_v1beta_serving_config_object
|
1481
|
+
# @param [String] update_mask
|
1482
|
+
# Indicates which fields in the provided ServingConfig to update. The following
|
1483
|
+
# are NOT supported: * ServingConfig.name If not set, all supported fields are
|
1484
|
+
# updated.
|
1485
|
+
# @param [String] fields
|
1486
|
+
# Selector specifying which fields to include in a partial response.
|
1487
|
+
# @param [String] quota_user
|
1488
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1489
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1490
|
+
# @param [Google::Apis::RequestOptions] options
|
1491
|
+
# Request-specific options
|
1492
|
+
#
|
1493
|
+
# @yield [result, err] Result & error if block supplied
|
1494
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] parsed result object
|
1495
|
+
# @yieldparam err [StandardError] error object if request failed
|
1496
|
+
#
|
1497
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig]
|
1498
|
+
#
|
1499
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1500
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1501
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1502
|
+
def patch_project_location_collection_data_store_serving_config(name, google_cloud_discoveryengine_v1beta_serving_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1503
|
+
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
1504
|
+
command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
1505
|
+
command.request_object = google_cloud_discoveryengine_v1beta_serving_config_object
|
1506
|
+
command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
1507
|
+
command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig
|
1508
|
+
command.params['name'] = name unless name.nil?
|
1509
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1510
|
+
command.query['fields'] = fields unless fields.nil?
|
1511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1512
|
+
execute_or_queue_command(command, &block)
|
1513
|
+
end
|
1514
|
+
|
1402
1515
|
# Makes a recommendation, which requires a contextual user event.
|
1403
1516
|
# @param [String] serving_config
|
1404
1517
|
# Required. Full resource name of a ServingConfig: `projects/*/locations/global/
|
@@ -2698,6 +2811,119 @@ module Google
|
|
2698
2811
|
execute_or_queue_command(command, &block)
|
2699
2812
|
end
|
2700
2813
|
|
2814
|
+
# Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not
|
2815
|
+
# exist.
|
2816
|
+
# @param [String] name
|
2817
|
+
# Required. The resource name of the ServingConfig to get. Format: `projects/`
|
2818
|
+
# project_number`/locations/`location`/collections/`collection`/dataStores/`
|
2819
|
+
# data_store`/servingConfigs/`serving_config_id``
|
2820
|
+
# @param [String] fields
|
2821
|
+
# Selector specifying which fields to include in a partial response.
|
2822
|
+
# @param [String] quota_user
|
2823
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2824
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2825
|
+
# @param [Google::Apis::RequestOptions] options
|
2826
|
+
# Request-specific options
|
2827
|
+
#
|
2828
|
+
# @yield [result, err] Result & error if block supplied
|
2829
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] parsed result object
|
2830
|
+
# @yieldparam err [StandardError] error object if request failed
|
2831
|
+
#
|
2832
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig]
|
2833
|
+
#
|
2834
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2835
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2836
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2837
|
+
def get_project_location_collection_engine_serving_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
2838
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
2839
|
+
command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
2840
|
+
command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig
|
2841
|
+
command.params['name'] = name unless name.nil?
|
2842
|
+
command.query['fields'] = fields unless fields.nil?
|
2843
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2844
|
+
execute_or_queue_command(command, &block)
|
2845
|
+
end
|
2846
|
+
|
2847
|
+
# Lists all ServingConfigs linked to this dataStore.
|
2848
|
+
# @param [String] parent
|
2849
|
+
# Required. The dataStore resource name. Format: `projects/`project_number`/
|
2850
|
+
# locations/`location`/collections/`collection`/dataStores/`data_store``
|
2851
|
+
# @param [Fixnum] page_size
|
2852
|
+
# Optional. Maximum number of results to return. If unspecified, defaults to 100.
|
2853
|
+
# If a value greater than 100 is provided, at most 100 results are returned.
|
2854
|
+
# @param [String] page_token
|
2855
|
+
# Optional. A page token, received from a previous `ListServingConfigs` call.
|
2856
|
+
# Provide this to retrieve the subsequent page.
|
2857
|
+
# @param [String] fields
|
2858
|
+
# Selector specifying which fields to include in a partial response.
|
2859
|
+
# @param [String] quota_user
|
2860
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2861
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2862
|
+
# @param [Google::Apis::RequestOptions] options
|
2863
|
+
# Request-specific options
|
2864
|
+
#
|
2865
|
+
# @yield [result, err] Result & error if block supplied
|
2866
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse] parsed result object
|
2867
|
+
# @yieldparam err [StandardError] error object if request failed
|
2868
|
+
#
|
2869
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse]
|
2870
|
+
#
|
2871
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2872
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2873
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2874
|
+
def list_project_location_collection_engine_serving_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2875
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/servingConfigs', options)
|
2876
|
+
command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse::Representation
|
2877
|
+
command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse
|
2878
|
+
command.params['parent'] = parent unless parent.nil?
|
2879
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2880
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2881
|
+
command.query['fields'] = fields unless fields.nil?
|
2882
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2883
|
+
execute_or_queue_command(command, &block)
|
2884
|
+
end
|
2885
|
+
|
2886
|
+
# Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does
|
2887
|
+
# not exist.
|
2888
|
+
# @param [String] name
|
2889
|
+
# Immutable. Fully qualified name `projects/`project`/locations/`location`/
|
2890
|
+
# collections/`collection_id`/dataStores/`data_store_id`/servingConfigs/`
|
2891
|
+
# serving_config_id``
|
2892
|
+
# @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] google_cloud_discoveryengine_v1beta_serving_config_object
|
2893
|
+
# @param [String] update_mask
|
2894
|
+
# Indicates which fields in the provided ServingConfig to update. The following
|
2895
|
+
# are NOT supported: * ServingConfig.name If not set, all supported fields are
|
2896
|
+
# updated.
|
2897
|
+
# @param [String] fields
|
2898
|
+
# Selector specifying which fields to include in a partial response.
|
2899
|
+
# @param [String] quota_user
|
2900
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2901
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2902
|
+
# @param [Google::Apis::RequestOptions] options
|
2903
|
+
# Request-specific options
|
2904
|
+
#
|
2905
|
+
# @yield [result, err] Result & error if block supplied
|
2906
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] parsed result object
|
2907
|
+
# @yieldparam err [StandardError] error object if request failed
|
2908
|
+
#
|
2909
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig]
|
2910
|
+
#
|
2911
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2912
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2913
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2914
|
+
def patch_project_location_collection_engine_serving_config(name, google_cloud_discoveryengine_v1beta_serving_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2915
|
+
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
2916
|
+
command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
2917
|
+
command.request_object = google_cloud_discoveryengine_v1beta_serving_config_object
|
2918
|
+
command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
2919
|
+
command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig
|
2920
|
+
command.params['name'] = name unless name.nil?
|
2921
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2922
|
+
command.query['fields'] = fields unless fields.nil?
|
2923
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2924
|
+
execute_or_queue_command(command, &block)
|
2925
|
+
end
|
2926
|
+
|
2701
2927
|
# Makes a recommendation, which requires a contextual user event.
|
2702
2928
|
# @param [String] serving_config
|
2703
2929
|
# Required. Full resource name of a ServingConfig: `projects/*/locations/global/
|
@@ -4053,6 +4279,119 @@ module Google
|
|
4053
4279
|
execute_or_queue_command(command, &block)
|
4054
4280
|
end
|
4055
4281
|
|
4282
|
+
# Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not
|
4283
|
+
# exist.
|
4284
|
+
# @param [String] name
|
4285
|
+
# Required. The resource name of the ServingConfig to get. Format: `projects/`
|
4286
|
+
# project_number`/locations/`location`/collections/`collection`/dataStores/`
|
4287
|
+
# data_store`/servingConfigs/`serving_config_id``
|
4288
|
+
# @param [String] fields
|
4289
|
+
# Selector specifying which fields to include in a partial response.
|
4290
|
+
# @param [String] quota_user
|
4291
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4292
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4293
|
+
# @param [Google::Apis::RequestOptions] options
|
4294
|
+
# Request-specific options
|
4295
|
+
#
|
4296
|
+
# @yield [result, err] Result & error if block supplied
|
4297
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] parsed result object
|
4298
|
+
# @yieldparam err [StandardError] error object if request failed
|
4299
|
+
#
|
4300
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig]
|
4301
|
+
#
|
4302
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4303
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4304
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4305
|
+
def get_project_location_data_store_serving_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
4306
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
4307
|
+
command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
4308
|
+
command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig
|
4309
|
+
command.params['name'] = name unless name.nil?
|
4310
|
+
command.query['fields'] = fields unless fields.nil?
|
4311
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4312
|
+
execute_or_queue_command(command, &block)
|
4313
|
+
end
|
4314
|
+
|
4315
|
+
# Lists all ServingConfigs linked to this dataStore.
|
4316
|
+
# @param [String] parent
|
4317
|
+
# Required. The dataStore resource name. Format: `projects/`project_number`/
|
4318
|
+
# locations/`location`/collections/`collection`/dataStores/`data_store``
|
4319
|
+
# @param [Fixnum] page_size
|
4320
|
+
# Optional. Maximum number of results to return. If unspecified, defaults to 100.
|
4321
|
+
# If a value greater than 100 is provided, at most 100 results are returned.
|
4322
|
+
# @param [String] page_token
|
4323
|
+
# Optional. A page token, received from a previous `ListServingConfigs` call.
|
4324
|
+
# Provide this to retrieve the subsequent page.
|
4325
|
+
# @param [String] fields
|
4326
|
+
# Selector specifying which fields to include in a partial response.
|
4327
|
+
# @param [String] quota_user
|
4328
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4329
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4330
|
+
# @param [Google::Apis::RequestOptions] options
|
4331
|
+
# Request-specific options
|
4332
|
+
#
|
4333
|
+
# @yield [result, err] Result & error if block supplied
|
4334
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse] parsed result object
|
4335
|
+
# @yieldparam err [StandardError] error object if request failed
|
4336
|
+
#
|
4337
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse]
|
4338
|
+
#
|
4339
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4340
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4341
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4342
|
+
def list_project_location_data_store_serving_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4343
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/servingConfigs', options)
|
4344
|
+
command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse::Representation
|
4345
|
+
command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaListServingConfigsResponse
|
4346
|
+
command.params['parent'] = parent unless parent.nil?
|
4347
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4348
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4349
|
+
command.query['fields'] = fields unless fields.nil?
|
4350
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4351
|
+
execute_or_queue_command(command, &block)
|
4352
|
+
end
|
4353
|
+
|
4354
|
+
# Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does
|
4355
|
+
# not exist.
|
4356
|
+
# @param [String] name
|
4357
|
+
# Immutable. Fully qualified name `projects/`project`/locations/`location`/
|
4358
|
+
# collections/`collection_id`/dataStores/`data_store_id`/servingConfigs/`
|
4359
|
+
# serving_config_id``
|
4360
|
+
# @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] google_cloud_discoveryengine_v1beta_serving_config_object
|
4361
|
+
# @param [String] update_mask
|
4362
|
+
# Indicates which fields in the provided ServingConfig to update. The following
|
4363
|
+
# are NOT supported: * ServingConfig.name If not set, all supported fields are
|
4364
|
+
# updated.
|
4365
|
+
# @param [String] fields
|
4366
|
+
# Selector specifying which fields to include in a partial response.
|
4367
|
+
# @param [String] quota_user
|
4368
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4369
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4370
|
+
# @param [Google::Apis::RequestOptions] options
|
4371
|
+
# Request-specific options
|
4372
|
+
#
|
4373
|
+
# @yield [result, err] Result & error if block supplied
|
4374
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] parsed result object
|
4375
|
+
# @yieldparam err [StandardError] error object if request failed
|
4376
|
+
#
|
4377
|
+
# @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig]
|
4378
|
+
#
|
4379
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4380
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4381
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4382
|
+
def patch_project_location_data_store_serving_config(name, google_cloud_discoveryengine_v1beta_serving_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4383
|
+
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
4384
|
+
command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
4385
|
+
command.request_object = google_cloud_discoveryengine_v1beta_serving_config_object
|
4386
|
+
command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation
|
4387
|
+
command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig
|
4388
|
+
command.params['name'] = name unless name.nil?
|
4389
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4390
|
+
command.query['fields'] = fields unless fields.nil?
|
4391
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4392
|
+
execute_or_queue_command(command, &block)
|
4393
|
+
end
|
4394
|
+
|
4056
4395
|
# Makes a recommendation, which requires a contextual user event.
|
4057
4396
|
# @param [String] serving_config
|
4058
4397
|
# Required. Full resource name of a ServingConfig: `projects/*/locations/global/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-discoveryengine_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.34.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-
|
11
|
+
date: 2024-02-11 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_v1beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1beta/v0.34.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|