@googleapis/discoveryengine 28.0.0 → 28.2.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.
- package/CHANGELOG.md +15 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +691 -17
- package/build/v1.js +198 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha.d.ts +1136 -406
- package/build/v1alpha.js +198 -0
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +720 -36
- package/build/v1beta.js +198 -0
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1554 -382
- package/v1alpha.ts +1483 -256
- package/v1beta.ts +1561 -379
package/v1.ts
CHANGED
|
@@ -4281,7 +4281,7 @@ export namespace discoveryengine_v1 {
|
|
|
4281
4281
|
*/
|
|
4282
4282
|
orderBy?: string | null;
|
|
4283
4283
|
/**
|
|
4284
|
-
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
4284
|
+
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
4285
4285
|
*/
|
|
4286
4286
|
pageCategories?: string[] | null;
|
|
4287
4287
|
/**
|
|
@@ -4320,12 +4320,16 @@ export namespace discoveryengine_v1 {
|
|
|
4320
4320
|
* The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided.
|
|
4321
4321
|
*/
|
|
4322
4322
|
regionCode?: string | null;
|
|
4323
|
+
/**
|
|
4324
|
+
* Optional. The granular relevance filtering specification. If not specified, the global `relevance_threshold` will be used for all sub-searches. If specified, this overrides the global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is currently supported only for custom and site search.
|
|
4325
|
+
*/
|
|
4326
|
+
relevanceFilterSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec;
|
|
4323
4327
|
/**
|
|
4324
4328
|
* Optional. The specification for returning the relevance score.
|
|
4325
4329
|
*/
|
|
4326
4330
|
relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec;
|
|
4327
4331
|
/**
|
|
4328
|
-
* The relevance threshold of the search results.
|
|
4332
|
+
* The global relevance threshold of the search results. Defaults to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. If more granular relevance filtering is required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare search.
|
|
4329
4333
|
*/
|
|
4330
4334
|
relevanceThreshold?: string | null;
|
|
4331
4335
|
/**
|
|
@@ -4764,6 +4768,32 @@ export namespace discoveryengine_v1 {
|
|
|
4764
4768
|
*/
|
|
4765
4769
|
pinUnexpandedResults?: boolean | null;
|
|
4766
4770
|
}
|
|
4771
|
+
/**
|
|
4772
|
+
* Relevance filtering specification.
|
|
4773
|
+
*/
|
|
4774
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec {
|
|
4775
|
+
/**
|
|
4776
|
+
* Optional. Relevance filtering threshold specification for keyword search.
|
|
4777
|
+
*/
|
|
4778
|
+
keywordSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
|
|
4779
|
+
/**
|
|
4780
|
+
* Optional. Relevance filtering threshold specification for semantic search.
|
|
4781
|
+
*/
|
|
4782
|
+
semanticSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
|
|
4783
|
+
}
|
|
4784
|
+
/**
|
|
4785
|
+
* Specification for relevance filtering on a specific sub-search.
|
|
4786
|
+
*/
|
|
4787
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
|
|
4788
|
+
/**
|
|
4789
|
+
* Pre-defined relevance threshold for the sub-search.
|
|
4790
|
+
*/
|
|
4791
|
+
relevanceThreshold?: string | null;
|
|
4792
|
+
/**
|
|
4793
|
+
* Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
|
|
4794
|
+
*/
|
|
4795
|
+
semanticRelevanceThreshold?: number | null;
|
|
4796
|
+
}
|
|
4767
4797
|
/**
|
|
4768
4798
|
* The specification for returning the document relevance score.
|
|
4769
4799
|
*/
|
|
@@ -8440,7 +8470,7 @@ export namespace discoveryengine_v1 {
|
|
|
8440
8470
|
*/
|
|
8441
8471
|
orderBy?: string | null;
|
|
8442
8472
|
/**
|
|
8443
|
-
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
8473
|
+
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
8444
8474
|
*/
|
|
8445
8475
|
pageCategories?: string[] | null;
|
|
8446
8476
|
/**
|
|
@@ -8479,12 +8509,16 @@ export namespace discoveryengine_v1 {
|
|
|
8479
8509
|
* The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided.
|
|
8480
8510
|
*/
|
|
8481
8511
|
regionCode?: string | null;
|
|
8512
|
+
/**
|
|
8513
|
+
* Optional. The granular relevance filtering specification. If not specified, the global `relevance_threshold` will be used for all sub-searches. If specified, this overrides the global `relevance_threshold` to use thresholds on a per sub-search basis. This feature is currently supported only for custom and site search.
|
|
8514
|
+
*/
|
|
8515
|
+
relevanceFilterSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec;
|
|
8482
8516
|
/**
|
|
8483
8517
|
* Optional. The specification for returning the relevance score.
|
|
8484
8518
|
*/
|
|
8485
8519
|
relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec;
|
|
8486
8520
|
/**
|
|
8487
|
-
* The relevance threshold of the search results.
|
|
8521
|
+
* The global relevance threshold of the search results. Defaults to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. If more granular relevance filtering is required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare search.
|
|
8488
8522
|
*/
|
|
8489
8523
|
relevanceThreshold?: string | null;
|
|
8490
8524
|
/**
|
|
@@ -8919,6 +8953,32 @@ export namespace discoveryengine_v1 {
|
|
|
8919
8953
|
*/
|
|
8920
8954
|
pinUnexpandedResults?: boolean | null;
|
|
8921
8955
|
}
|
|
8956
|
+
/**
|
|
8957
|
+
* Relevance filtering specification.
|
|
8958
|
+
*/
|
|
8959
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec {
|
|
8960
|
+
/**
|
|
8961
|
+
* Optional. Relevance filtering threshold specification for keyword search.
|
|
8962
|
+
*/
|
|
8963
|
+
keywordSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
|
|
8964
|
+
/**
|
|
8965
|
+
* Optional. Relevance filtering threshold specification for semantic search.
|
|
8966
|
+
*/
|
|
8967
|
+
semanticSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
|
|
8968
|
+
}
|
|
8969
|
+
/**
|
|
8970
|
+
* Specification for relevance filtering on a specific sub-search.
|
|
8971
|
+
*/
|
|
8972
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
|
|
8973
|
+
/**
|
|
8974
|
+
* Pre-defined relevance threshold for the sub-search.
|
|
8975
|
+
*/
|
|
8976
|
+
relevanceThreshold?: string | null;
|
|
8977
|
+
/**
|
|
8978
|
+
* Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
|
|
8979
|
+
*/
|
|
8980
|
+
semanticRelevanceThreshold?: number | null;
|
|
8981
|
+
}
|
|
8922
8982
|
/**
|
|
8923
8983
|
* The specification for returning the document relevance score.
|
|
8924
8984
|
*/
|
|
@@ -10564,6 +10624,10 @@ export namespace discoveryengine_v1 {
|
|
|
10564
10624
|
* Immutable. Identifier. The full resource name of the data store. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
|
|
10565
10625
|
*/
|
|
10566
10626
|
name?: string | null;
|
|
10627
|
+
/**
|
|
10628
|
+
* Optional. Configuration for Natural Language Query Understanding.
|
|
10629
|
+
*/
|
|
10630
|
+
naturalLanguageQueryUnderstandingConfig?: Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig;
|
|
10567
10631
|
/**
|
|
10568
10632
|
* Optional. Stores serving config at DataStore level.
|
|
10569
10633
|
*/
|
|
@@ -12150,6 +12214,15 @@ export namespace discoveryengine_v1 {
|
|
|
12150
12214
|
*/
|
|
12151
12215
|
mediaProgressPercentage?: number | null;
|
|
12152
12216
|
}
|
|
12217
|
+
/**
|
|
12218
|
+
* Configuration for Natural Language Query Understanding.
|
|
12219
|
+
*/
|
|
12220
|
+
export interface Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig {
|
|
12221
|
+
/**
|
|
12222
|
+
* Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.
|
|
12223
|
+
*/
|
|
12224
|
+
mode?: string | null;
|
|
12225
|
+
}
|
|
12153
12226
|
/**
|
|
12154
12227
|
* Detailed page information.
|
|
12155
12228
|
*/
|
|
@@ -12853,7 +12926,7 @@ export namespace discoveryengine_v1 {
|
|
|
12853
12926
|
*/
|
|
12854
12927
|
orderBy?: string | null;
|
|
12855
12928
|
/**
|
|
12856
|
-
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
12929
|
+
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
12857
12930
|
*/
|
|
12858
12931
|
pageCategories?: string[] | null;
|
|
12859
12932
|
/**
|
|
@@ -12889,7 +12962,7 @@ export namespace discoveryengine_v1 {
|
|
|
12889
12962
|
*/
|
|
12890
12963
|
relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec;
|
|
12891
12964
|
/**
|
|
12892
|
-
* The relevance threshold of the search results.
|
|
12965
|
+
* The global relevance threshold of the search results. Defaults to Google defined threshold, leveraging a balance of precision and recall to deliver both highly accurate results and comprehensive coverage of relevant information. If more granular relevance filtering is required, use the `relevance_filter_spec` instead. This feature is not supported for healthcare search.
|
|
12893
12966
|
*/
|
|
12894
12967
|
relevanceThreshold?: string | null;
|
|
12895
12968
|
/**
|
|
@@ -14316,7 +14389,7 @@ export namespace discoveryengine_v1 {
|
|
|
14316
14389
|
*/
|
|
14317
14390
|
eventType?: string | null;
|
|
14318
14391
|
/**
|
|
14319
|
-
* The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
14392
|
+
* Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
14320
14393
|
*/
|
|
14321
14394
|
filter?: string | null;
|
|
14322
14395
|
/**
|
|
@@ -17496,7 +17569,7 @@ export namespace discoveryengine_v1 {
|
|
|
17496
17569
|
* await discoveryengine.projects.locations.collections.updateDataConnector({
|
|
17497
17570
|
* // Output only. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
|
|
17498
17571
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataConnector',
|
|
17499
|
-
* // Indicates which fields in the provided DataConnector to update. Supported field paths include: - refresh_interval - params - auto_run_disabled - action_config - action_config.action_params - action_config.service_name - destination_configs - blocking_reasons - sync_mode - incremental_sync_disabled - incremental_refresh_interval Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.
|
|
17572
|
+
* // Indicates which fields in the provided DataConnector to update. Supported field paths include: - `refresh_interval` - `params` - `auto_run_disabled` - `action_config` - `action_config.action_params` - `action_config.service_name` - `destination_configs` - `blocking_reasons` - `sync_mode` - `incremental_sync_disabled` - `incremental_refresh_interval` - `data_protection_policy` Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.
|
|
17500
17573
|
* updateMask: 'placeholder-value',
|
|
17501
17574
|
*
|
|
17502
17575
|
* // Request body metadata
|
|
@@ -17714,7 +17787,7 @@ export namespace discoveryengine_v1 {
|
|
|
17714
17787
|
*/
|
|
17715
17788
|
name?: string;
|
|
17716
17789
|
/**
|
|
17717
|
-
* Indicates which fields in the provided DataConnector to update. Supported field paths include: - refresh_interval - params - auto_run_disabled - action_config - action_config.action_params - action_config.service_name - destination_configs - blocking_reasons - sync_mode - incremental_sync_disabled - incremental_refresh_interval Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.
|
|
17790
|
+
* Indicates which fields in the provided DataConnector to update. Supported field paths include: - `refresh_interval` - `params` - `auto_run_disabled` - `action_config` - `action_config.action_params` - `action_config.service_name` - `destination_configs` - `blocking_reasons` - `sync_mode` - `incremental_sync_disabled` - `incremental_refresh_interval` - `data_protection_policy` Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error.
|
|
17718
17791
|
*/
|
|
17719
17792
|
updateMask?: string;
|
|
17720
17793
|
|
|
@@ -18404,6 +18477,7 @@ export namespace discoveryengine_v1 {
|
|
|
18404
18477
|
* // "isInfobotFaqDataStore": false,
|
|
18405
18478
|
* // "kmsKeyName": "my_kmsKeyName",
|
|
18406
18479
|
* // "name": "my_name",
|
|
18480
|
+
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
18407
18481
|
* // "servingConfigDataStore": {},
|
|
18408
18482
|
* // "solutionTypes": [],
|
|
18409
18483
|
* // "startingSchema": {},
|
|
@@ -18731,6 +18805,7 @@ export namespace discoveryengine_v1 {
|
|
|
18731
18805
|
* // "isInfobotFaqDataStore": false,
|
|
18732
18806
|
* // "kmsKeyName": "my_kmsKeyName",
|
|
18733
18807
|
* // "name": "my_name",
|
|
18808
|
+
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
18734
18809
|
* // "servingConfigDataStore": {},
|
|
18735
18810
|
* // "solutionTypes": [],
|
|
18736
18811
|
* // "startingSchema": {},
|
|
@@ -19216,6 +19291,7 @@ export namespace discoveryengine_v1 {
|
|
|
19216
19291
|
* // "isInfobotFaqDataStore": false,
|
|
19217
19292
|
* // "kmsKeyName": "my_kmsKeyName",
|
|
19218
19293
|
* // "name": "my_name",
|
|
19294
|
+
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
19219
19295
|
* // "servingConfigDataStore": {},
|
|
19220
19296
|
* // "solutionTypes": [],
|
|
19221
19297
|
* // "startingSchema": {},
|
|
@@ -19244,6 +19320,7 @@ export namespace discoveryengine_v1 {
|
|
|
19244
19320
|
* // "isInfobotFaqDataStore": false,
|
|
19245
19321
|
* // "kmsKeyName": "my_kmsKeyName",
|
|
19246
19322
|
* // "name": "my_name",
|
|
19323
|
+
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
19247
19324
|
* // "servingConfigDataStore": {},
|
|
19248
19325
|
* // "solutionTypes": [],
|
|
19249
19326
|
* // "startingSchema": {},
|
|
@@ -26395,7 +26472,7 @@ export namespace discoveryengine_v1 {
|
|
|
26395
26472
|
}
|
|
26396
26473
|
|
|
26397
26474
|
/**
|
|
26398
|
-
*
|
|
26475
|
+
* Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned.
|
|
26399
26476
|
* @example
|
|
26400
26477
|
* ```js
|
|
26401
26478
|
* // Before running the sample:
|
|
@@ -26428,10 +26505,40 @@ export namespace discoveryengine_v1 {
|
|
|
26428
26505
|
*
|
|
26429
26506
|
* // Do the magic
|
|
26430
26507
|
* const res =
|
|
26431
|
-
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.
|
|
26508
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.create(
|
|
26432
26509
|
* {
|
|
26433
|
-
* // Required.
|
|
26434
|
-
*
|
|
26510
|
+
* // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
26511
|
+
* parent:
|
|
26512
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
26513
|
+
* // Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
|
|
26514
|
+
* servingConfigId: 'placeholder-value',
|
|
26515
|
+
*
|
|
26516
|
+
* // Request body metadata
|
|
26517
|
+
* requestBody: {
|
|
26518
|
+
* // request body parameters
|
|
26519
|
+
* // {
|
|
26520
|
+
* // "answerGenerationSpec": {},
|
|
26521
|
+
* // "boostControlIds": [],
|
|
26522
|
+
* // "createTime": "my_createTime",
|
|
26523
|
+
* // "displayName": "my_displayName",
|
|
26524
|
+
* // "dissociateControlIds": [],
|
|
26525
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
26526
|
+
* // "filterControlIds": [],
|
|
26527
|
+
* // "genericConfig": {},
|
|
26528
|
+
* // "ignoreControlIds": [],
|
|
26529
|
+
* // "mediaConfig": {},
|
|
26530
|
+
* // "modelId": "my_modelId",
|
|
26531
|
+
* // "name": "my_name",
|
|
26532
|
+
* // "onewaySynonymsControlIds": [],
|
|
26533
|
+
* // "promoteControlIds": [],
|
|
26534
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
26535
|
+
* // "redirectControlIds": [],
|
|
26536
|
+
* // "replacementControlIds": [],
|
|
26537
|
+
* // "solutionType": "my_solutionType",
|
|
26538
|
+
* // "synonymsControlIds": [],
|
|
26539
|
+
* // "updateTime": "my_updateTime"
|
|
26540
|
+
* // }
|
|
26541
|
+
* },
|
|
26435
26542
|
* },
|
|
26436
26543
|
* );
|
|
26437
26544
|
* console.log(res.data);
|
|
@@ -26473,38 +26580,38 @@ export namespace discoveryengine_v1 {
|
|
|
26473
26580
|
* @param callback - Optional callback that handles the response.
|
|
26474
26581
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
26475
26582
|
*/
|
|
26476
|
-
|
|
26477
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26583
|
+
create(
|
|
26584
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26478
26585
|
options: StreamMethodOptions
|
|
26479
26586
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
26480
|
-
|
|
26481
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26587
|
+
create(
|
|
26588
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26482
26589
|
options?: MethodOptions
|
|
26483
26590
|
): Promise<
|
|
26484
26591
|
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26485
26592
|
>;
|
|
26486
|
-
|
|
26487
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26593
|
+
create(
|
|
26594
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26488
26595
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
26489
26596
|
callback: BodyResponseCallback<Readable>
|
|
26490
26597
|
): void;
|
|
26491
|
-
|
|
26492
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26598
|
+
create(
|
|
26599
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26493
26600
|
options:
|
|
26494
26601
|
| MethodOptions
|
|
26495
26602
|
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
26496
26603
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26497
26604
|
): void;
|
|
26498
|
-
|
|
26499
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26605
|
+
create(
|
|
26606
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26500
26607
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26501
26608
|
): void;
|
|
26502
|
-
|
|
26609
|
+
create(
|
|
26503
26610
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26504
26611
|
): void;
|
|
26505
|
-
|
|
26612
|
+
create(
|
|
26506
26613
|
paramsOrCallback?:
|
|
26507
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26614
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create
|
|
26508
26615
|
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26509
26616
|
| BodyResponseCallback<Readable>,
|
|
26510
26617
|
optionsOrCallback?:
|
|
@@ -26522,13 +26629,13 @@ export namespace discoveryengine_v1 {
|
|
|
26522
26629
|
>
|
|
26523
26630
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
26524
26631
|
let params = (paramsOrCallback ||
|
|
26525
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26632
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
|
|
26526
26633
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
26527
26634
|
|
|
26528
26635
|
if (typeof paramsOrCallback === 'function') {
|
|
26529
26636
|
callback = paramsOrCallback;
|
|
26530
26637
|
params =
|
|
26531
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26638
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
|
|
26532
26639
|
options = {};
|
|
26533
26640
|
}
|
|
26534
26641
|
|
|
@@ -26542,15 +26649,18 @@ export namespace discoveryengine_v1 {
|
|
|
26542
26649
|
const parameters = {
|
|
26543
26650
|
options: Object.assign(
|
|
26544
26651
|
{
|
|
26545
|
-
url: (rootUrl + '/v1/{+
|
|
26546
|
-
|
|
26652
|
+
url: (rootUrl + '/v1/{+parent}/servingConfigs').replace(
|
|
26653
|
+
/([^:]\/)\/+/g,
|
|
26654
|
+
'$1'
|
|
26655
|
+
),
|
|
26656
|
+
method: 'POST',
|
|
26547
26657
|
apiVersion: '',
|
|
26548
26658
|
},
|
|
26549
26659
|
options
|
|
26550
26660
|
),
|
|
26551
26661
|
params,
|
|
26552
|
-
requiredParams: ['
|
|
26553
|
-
pathParams: ['
|
|
26662
|
+
requiredParams: ['parent'],
|
|
26663
|
+
pathParams: ['parent'],
|
|
26554
26664
|
context: this.context,
|
|
26555
26665
|
};
|
|
26556
26666
|
if (callback) {
|
|
@@ -26566,7 +26676,7 @@ export namespace discoveryengine_v1 {
|
|
|
26566
26676
|
}
|
|
26567
26677
|
|
|
26568
26678
|
/**
|
|
26569
|
-
*
|
|
26679
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
26570
26680
|
* @example
|
|
26571
26681
|
* ```js
|
|
26572
26682
|
* // Before running the sample:
|
|
@@ -26599,24 +26709,16 @@ export namespace discoveryengine_v1 {
|
|
|
26599
26709
|
*
|
|
26600
26710
|
* // Do the magic
|
|
26601
26711
|
* const res =
|
|
26602
|
-
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.
|
|
26712
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
|
|
26603
26713
|
* {
|
|
26604
|
-
* //
|
|
26605
|
-
*
|
|
26606
|
-
* // Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
|
|
26607
|
-
* pageToken: 'placeholder-value',
|
|
26608
|
-
* // Required. Full resource name of the parent resource. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
26609
|
-
* parent:
|
|
26610
|
-
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
26714
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
26715
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
26611
26716
|
* },
|
|
26612
26717
|
* );
|
|
26613
26718
|
* console.log(res.data);
|
|
26614
26719
|
*
|
|
26615
26720
|
* // Example response
|
|
26616
|
-
* // {
|
|
26617
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
26618
|
-
* // "servingConfigs": []
|
|
26619
|
-
* // }
|
|
26721
|
+
* // {}
|
|
26620
26722
|
* }
|
|
26621
26723
|
*
|
|
26622
26724
|
* main().catch(e => {
|
|
@@ -26631,62 +26733,54 @@ export namespace discoveryengine_v1 {
|
|
|
26631
26733
|
* @param callback - Optional callback that handles the response.
|
|
26632
26734
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
26633
26735
|
*/
|
|
26634
|
-
|
|
26635
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26736
|
+
delete(
|
|
26737
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26636
26738
|
options: StreamMethodOptions
|
|
26637
26739
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
26638
|
-
|
|
26639
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26740
|
+
delete(
|
|
26741
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26640
26742
|
options?: MethodOptions
|
|
26641
|
-
): Promise<
|
|
26642
|
-
|
|
26643
|
-
|
|
26644
|
-
list(
|
|
26645
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
26743
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
26744
|
+
delete(
|
|
26745
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26646
26746
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
26647
26747
|
callback: BodyResponseCallback<Readable>
|
|
26648
26748
|
): void;
|
|
26649
|
-
|
|
26650
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26651
|
-
options:
|
|
26652
|
-
|
|
26653
|
-
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>,
|
|
26654
|
-
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
26655
|
-
): void;
|
|
26656
|
-
list(
|
|
26657
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
26658
|
-
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
26749
|
+
delete(
|
|
26750
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26751
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
26752
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26659
26753
|
): void;
|
|
26660
|
-
|
|
26661
|
-
|
|
26754
|
+
delete(
|
|
26755
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26756
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26662
26757
|
): void;
|
|
26663
|
-
|
|
26758
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
26759
|
+
delete(
|
|
26664
26760
|
paramsOrCallback?:
|
|
26665
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26666
|
-
| BodyResponseCallback<Schema$
|
|
26761
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete
|
|
26762
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26667
26763
|
| BodyResponseCallback<Readable>,
|
|
26668
26764
|
optionsOrCallback?:
|
|
26669
26765
|
| MethodOptions
|
|
26670
26766
|
| StreamMethodOptions
|
|
26671
|
-
| BodyResponseCallback<Schema$
|
|
26767
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26672
26768
|
| BodyResponseCallback<Readable>,
|
|
26673
26769
|
callback?:
|
|
26674
|
-
| BodyResponseCallback<Schema$
|
|
26770
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26675
26771
|
| BodyResponseCallback<Readable>
|
|
26676
26772
|
):
|
|
26677
26773
|
| void
|
|
26678
|
-
| Promise<
|
|
26679
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
26680
|
-
>
|
|
26774
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
26681
26775
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
26682
26776
|
let params = (paramsOrCallback ||
|
|
26683
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26777
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
|
|
26684
26778
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
26685
26779
|
|
|
26686
26780
|
if (typeof paramsOrCallback === 'function') {
|
|
26687
26781
|
callback = paramsOrCallback;
|
|
26688
26782
|
params =
|
|
26689
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26783
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
|
|
26690
26784
|
options = {};
|
|
26691
26785
|
}
|
|
26692
26786
|
|
|
@@ -26700,34 +26794,29 @@ export namespace discoveryengine_v1 {
|
|
|
26700
26794
|
const parameters = {
|
|
26701
26795
|
options: Object.assign(
|
|
26702
26796
|
{
|
|
26703
|
-
url: (rootUrl + '/v1/{+
|
|
26704
|
-
|
|
26705
|
-
'$1'
|
|
26706
|
-
),
|
|
26707
|
-
method: 'GET',
|
|
26797
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
26798
|
+
method: 'DELETE',
|
|
26708
26799
|
apiVersion: '',
|
|
26709
26800
|
},
|
|
26710
26801
|
options
|
|
26711
26802
|
),
|
|
26712
26803
|
params,
|
|
26713
|
-
requiredParams: ['
|
|
26714
|
-
pathParams: ['
|
|
26804
|
+
requiredParams: ['name'],
|
|
26805
|
+
pathParams: ['name'],
|
|
26715
26806
|
context: this.context,
|
|
26716
26807
|
};
|
|
26717
26808
|
if (callback) {
|
|
26718
|
-
createAPIRequest<Schema$
|
|
26809
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
26719
26810
|
parameters,
|
|
26720
26811
|
callback as BodyResponseCallback<unknown>
|
|
26721
26812
|
);
|
|
26722
26813
|
} else {
|
|
26723
|
-
return createAPIRequest<Schema$
|
|
26724
|
-
parameters
|
|
26725
|
-
);
|
|
26814
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
26726
26815
|
}
|
|
26727
26816
|
}
|
|
26728
26817
|
|
|
26729
26818
|
/**
|
|
26730
|
-
*
|
|
26819
|
+
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
26731
26820
|
* @example
|
|
26732
26821
|
* ```js
|
|
26733
26822
|
* // Before running the sample:
|
|
@@ -26760,39 +26849,10 @@ export namespace discoveryengine_v1 {
|
|
|
26760
26849
|
*
|
|
26761
26850
|
* // Do the magic
|
|
26762
26851
|
* const res =
|
|
26763
|
-
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.
|
|
26852
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.get(
|
|
26764
26853
|
* {
|
|
26765
|
-
* //
|
|
26854
|
+
* // Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
26766
26855
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
26767
|
-
* // Indicates which fields in the provided ServingConfig to update. The following are NOT supported: * ServingConfig.name If not set, all supported fields are updated.
|
|
26768
|
-
* updateMask: 'placeholder-value',
|
|
26769
|
-
*
|
|
26770
|
-
* // Request body metadata
|
|
26771
|
-
* requestBody: {
|
|
26772
|
-
* // request body parameters
|
|
26773
|
-
* // {
|
|
26774
|
-
* // "answerGenerationSpec": {},
|
|
26775
|
-
* // "boostControlIds": [],
|
|
26776
|
-
* // "createTime": "my_createTime",
|
|
26777
|
-
* // "displayName": "my_displayName",
|
|
26778
|
-
* // "dissociateControlIds": [],
|
|
26779
|
-
* // "diversityLevel": "my_diversityLevel",
|
|
26780
|
-
* // "filterControlIds": [],
|
|
26781
|
-
* // "genericConfig": {},
|
|
26782
|
-
* // "ignoreControlIds": [],
|
|
26783
|
-
* // "mediaConfig": {},
|
|
26784
|
-
* // "modelId": "my_modelId",
|
|
26785
|
-
* // "name": "my_name",
|
|
26786
|
-
* // "onewaySynonymsControlIds": [],
|
|
26787
|
-
* // "promoteControlIds": [],
|
|
26788
|
-
* // "rankingExpression": "my_rankingExpression",
|
|
26789
|
-
* // "redirectControlIds": [],
|
|
26790
|
-
* // "replacementControlIds": [],
|
|
26791
|
-
* // "solutionType": "my_solutionType",
|
|
26792
|
-
* // "synonymsControlIds": [],
|
|
26793
|
-
* // "updateTime": "my_updateTime"
|
|
26794
|
-
* // }
|
|
26795
|
-
* },
|
|
26796
26856
|
* },
|
|
26797
26857
|
* );
|
|
26798
26858
|
* console.log(res.data);
|
|
@@ -26834,38 +26894,38 @@ export namespace discoveryengine_v1 {
|
|
|
26834
26894
|
* @param callback - Optional callback that handles the response.
|
|
26835
26895
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
26836
26896
|
*/
|
|
26837
|
-
|
|
26838
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26897
|
+
get(
|
|
26898
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26839
26899
|
options: StreamMethodOptions
|
|
26840
26900
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
26841
|
-
|
|
26842
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26901
|
+
get(
|
|
26902
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26843
26903
|
options?: MethodOptions
|
|
26844
26904
|
): Promise<
|
|
26845
26905
|
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26846
26906
|
>;
|
|
26847
|
-
|
|
26848
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26907
|
+
get(
|
|
26908
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26849
26909
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
26850
26910
|
callback: BodyResponseCallback<Readable>
|
|
26851
26911
|
): void;
|
|
26852
|
-
|
|
26853
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26912
|
+
get(
|
|
26913
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26854
26914
|
options:
|
|
26855
26915
|
| MethodOptions
|
|
26856
26916
|
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
26857
26917
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26858
26918
|
): void;
|
|
26859
|
-
|
|
26860
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26919
|
+
get(
|
|
26920
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26861
26921
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26862
26922
|
): void;
|
|
26863
|
-
|
|
26923
|
+
get(
|
|
26864
26924
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26865
26925
|
): void;
|
|
26866
|
-
|
|
26926
|
+
get(
|
|
26867
26927
|
paramsOrCallback?:
|
|
26868
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26928
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get
|
|
26869
26929
|
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26870
26930
|
| BodyResponseCallback<Readable>,
|
|
26871
26931
|
optionsOrCallback?:
|
|
@@ -26883,13 +26943,13 @@ export namespace discoveryengine_v1 {
|
|
|
26883
26943
|
>
|
|
26884
26944
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
26885
26945
|
let params = (paramsOrCallback ||
|
|
26886
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26946
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
|
|
26887
26947
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
26888
26948
|
|
|
26889
26949
|
if (typeof paramsOrCallback === 'function') {
|
|
26890
26950
|
callback = paramsOrCallback;
|
|
26891
26951
|
params =
|
|
26892
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26952
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
|
|
26893
26953
|
options = {};
|
|
26894
26954
|
}
|
|
26895
26955
|
|
|
@@ -26904,7 +26964,7 @@ export namespace discoveryengine_v1 {
|
|
|
26904
26964
|
options: Object.assign(
|
|
26905
26965
|
{
|
|
26906
26966
|
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
26907
|
-
method: '
|
|
26967
|
+
method: 'GET',
|
|
26908
26968
|
apiVersion: '',
|
|
26909
26969
|
},
|
|
26910
26970
|
options
|
|
@@ -26927,7 +26987,368 @@ export namespace discoveryengine_v1 {
|
|
|
26927
26987
|
}
|
|
26928
26988
|
|
|
26929
26989
|
/**
|
|
26930
|
-
*
|
|
26990
|
+
* Lists all ServingConfigs linked to this dataStore.
|
|
26991
|
+
* @example
|
|
26992
|
+
* ```js
|
|
26993
|
+
* // Before running the sample:
|
|
26994
|
+
* // - Enable the API at:
|
|
26995
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
26996
|
+
* // - Login into gcloud by running:
|
|
26997
|
+
* // ```sh
|
|
26998
|
+
* // $ gcloud auth application-default login
|
|
26999
|
+
* // ```
|
|
27000
|
+
* // - Install the npm module by running:
|
|
27001
|
+
* // ```sh
|
|
27002
|
+
* // $ npm install googleapis
|
|
27003
|
+
* // ```
|
|
27004
|
+
*
|
|
27005
|
+
* const {google} = require('googleapis');
|
|
27006
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
27007
|
+
*
|
|
27008
|
+
* async function main() {
|
|
27009
|
+
* const auth = new google.auth.GoogleAuth({
|
|
27010
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
27011
|
+
* scopes: [
|
|
27012
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
27013
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
27014
|
+
* ],
|
|
27015
|
+
* });
|
|
27016
|
+
*
|
|
27017
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
27018
|
+
* const authClient = await auth.getClient();
|
|
27019
|
+
* google.options({auth: authClient});
|
|
27020
|
+
*
|
|
27021
|
+
* // Do the magic
|
|
27022
|
+
* const res =
|
|
27023
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.list(
|
|
27024
|
+
* {
|
|
27025
|
+
* // Optional. Maximum number of results to return. If unspecified, defaults to 100. If a value greater than 100 is provided, at most 100 results are returned.
|
|
27026
|
+
* pageSize: 'placeholder-value',
|
|
27027
|
+
* // Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
|
|
27028
|
+
* pageToken: 'placeholder-value',
|
|
27029
|
+
* // Required. Full resource name of the parent resource. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
27030
|
+
* parent:
|
|
27031
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
27032
|
+
* },
|
|
27033
|
+
* );
|
|
27034
|
+
* console.log(res.data);
|
|
27035
|
+
*
|
|
27036
|
+
* // Example response
|
|
27037
|
+
* // {
|
|
27038
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
27039
|
+
* // "servingConfigs": []
|
|
27040
|
+
* // }
|
|
27041
|
+
* }
|
|
27042
|
+
*
|
|
27043
|
+
* main().catch(e => {
|
|
27044
|
+
* console.error(e);
|
|
27045
|
+
* throw e;
|
|
27046
|
+
* });
|
|
27047
|
+
*
|
|
27048
|
+
* ```
|
|
27049
|
+
*
|
|
27050
|
+
* @param params - Parameters for request
|
|
27051
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
27052
|
+
* @param callback - Optional callback that handles the response.
|
|
27053
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
27054
|
+
*/
|
|
27055
|
+
list(
|
|
27056
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27057
|
+
options: StreamMethodOptions
|
|
27058
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
27059
|
+
list(
|
|
27060
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27061
|
+
options?: MethodOptions
|
|
27062
|
+
): Promise<
|
|
27063
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27064
|
+
>;
|
|
27065
|
+
list(
|
|
27066
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27067
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
27068
|
+
callback: BodyResponseCallback<Readable>
|
|
27069
|
+
): void;
|
|
27070
|
+
list(
|
|
27071
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27072
|
+
options:
|
|
27073
|
+
| MethodOptions
|
|
27074
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>,
|
|
27075
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27076
|
+
): void;
|
|
27077
|
+
list(
|
|
27078
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27079
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27080
|
+
): void;
|
|
27081
|
+
list(
|
|
27082
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27083
|
+
): void;
|
|
27084
|
+
list(
|
|
27085
|
+
paramsOrCallback?:
|
|
27086
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List
|
|
27087
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27088
|
+
| BodyResponseCallback<Readable>,
|
|
27089
|
+
optionsOrCallback?:
|
|
27090
|
+
| MethodOptions
|
|
27091
|
+
| StreamMethodOptions
|
|
27092
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27093
|
+
| BodyResponseCallback<Readable>,
|
|
27094
|
+
callback?:
|
|
27095
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27096
|
+
| BodyResponseCallback<Readable>
|
|
27097
|
+
):
|
|
27098
|
+
| void
|
|
27099
|
+
| Promise<
|
|
27100
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27101
|
+
>
|
|
27102
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
27103
|
+
let params = (paramsOrCallback ||
|
|
27104
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
|
|
27105
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
27106
|
+
|
|
27107
|
+
if (typeof paramsOrCallback === 'function') {
|
|
27108
|
+
callback = paramsOrCallback;
|
|
27109
|
+
params =
|
|
27110
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
|
|
27111
|
+
options = {};
|
|
27112
|
+
}
|
|
27113
|
+
|
|
27114
|
+
if (typeof optionsOrCallback === 'function') {
|
|
27115
|
+
callback = optionsOrCallback;
|
|
27116
|
+
options = {};
|
|
27117
|
+
}
|
|
27118
|
+
|
|
27119
|
+
const rootUrl =
|
|
27120
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
27121
|
+
const parameters = {
|
|
27122
|
+
options: Object.assign(
|
|
27123
|
+
{
|
|
27124
|
+
url: (rootUrl + '/v1/{+parent}/servingConfigs').replace(
|
|
27125
|
+
/([^:]\/)\/+/g,
|
|
27126
|
+
'$1'
|
|
27127
|
+
),
|
|
27128
|
+
method: 'GET',
|
|
27129
|
+
apiVersion: '',
|
|
27130
|
+
},
|
|
27131
|
+
options
|
|
27132
|
+
),
|
|
27133
|
+
params,
|
|
27134
|
+
requiredParams: ['parent'],
|
|
27135
|
+
pathParams: ['parent'],
|
|
27136
|
+
context: this.context,
|
|
27137
|
+
};
|
|
27138
|
+
if (callback) {
|
|
27139
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>(
|
|
27140
|
+
parameters,
|
|
27141
|
+
callback as BodyResponseCallback<unknown>
|
|
27142
|
+
);
|
|
27143
|
+
} else {
|
|
27144
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>(
|
|
27145
|
+
parameters
|
|
27146
|
+
);
|
|
27147
|
+
}
|
|
27148
|
+
}
|
|
27149
|
+
|
|
27150
|
+
/**
|
|
27151
|
+
* Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
27152
|
+
* @example
|
|
27153
|
+
* ```js
|
|
27154
|
+
* // Before running the sample:
|
|
27155
|
+
* // - Enable the API at:
|
|
27156
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
27157
|
+
* // - Login into gcloud by running:
|
|
27158
|
+
* // ```sh
|
|
27159
|
+
* // $ gcloud auth application-default login
|
|
27160
|
+
* // ```
|
|
27161
|
+
* // - Install the npm module by running:
|
|
27162
|
+
* // ```sh
|
|
27163
|
+
* // $ npm install googleapis
|
|
27164
|
+
* // ```
|
|
27165
|
+
*
|
|
27166
|
+
* const {google} = require('googleapis');
|
|
27167
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
27168
|
+
*
|
|
27169
|
+
* async function main() {
|
|
27170
|
+
* const auth = new google.auth.GoogleAuth({
|
|
27171
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
27172
|
+
* scopes: [
|
|
27173
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
27174
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
27175
|
+
* ],
|
|
27176
|
+
* });
|
|
27177
|
+
*
|
|
27178
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
27179
|
+
* const authClient = await auth.getClient();
|
|
27180
|
+
* google.options({auth: authClient});
|
|
27181
|
+
*
|
|
27182
|
+
* // Do the magic
|
|
27183
|
+
* const res =
|
|
27184
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.patch(
|
|
27185
|
+
* {
|
|
27186
|
+
* // Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/engines/{engine_id\}/servingConfigs/{serving_config_id\}`
|
|
27187
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
27188
|
+
* // Indicates which fields in the provided ServingConfig to update. The following are NOT supported: * ServingConfig.name If not set, all supported fields are updated.
|
|
27189
|
+
* updateMask: 'placeholder-value',
|
|
27190
|
+
*
|
|
27191
|
+
* // Request body metadata
|
|
27192
|
+
* requestBody: {
|
|
27193
|
+
* // request body parameters
|
|
27194
|
+
* // {
|
|
27195
|
+
* // "answerGenerationSpec": {},
|
|
27196
|
+
* // "boostControlIds": [],
|
|
27197
|
+
* // "createTime": "my_createTime",
|
|
27198
|
+
* // "displayName": "my_displayName",
|
|
27199
|
+
* // "dissociateControlIds": [],
|
|
27200
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
27201
|
+
* // "filterControlIds": [],
|
|
27202
|
+
* // "genericConfig": {},
|
|
27203
|
+
* // "ignoreControlIds": [],
|
|
27204
|
+
* // "mediaConfig": {},
|
|
27205
|
+
* // "modelId": "my_modelId",
|
|
27206
|
+
* // "name": "my_name",
|
|
27207
|
+
* // "onewaySynonymsControlIds": [],
|
|
27208
|
+
* // "promoteControlIds": [],
|
|
27209
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
27210
|
+
* // "redirectControlIds": [],
|
|
27211
|
+
* // "replacementControlIds": [],
|
|
27212
|
+
* // "solutionType": "my_solutionType",
|
|
27213
|
+
* // "synonymsControlIds": [],
|
|
27214
|
+
* // "updateTime": "my_updateTime"
|
|
27215
|
+
* // }
|
|
27216
|
+
* },
|
|
27217
|
+
* },
|
|
27218
|
+
* );
|
|
27219
|
+
* console.log(res.data);
|
|
27220
|
+
*
|
|
27221
|
+
* // Example response
|
|
27222
|
+
* // {
|
|
27223
|
+
* // "answerGenerationSpec": {},
|
|
27224
|
+
* // "boostControlIds": [],
|
|
27225
|
+
* // "createTime": "my_createTime",
|
|
27226
|
+
* // "displayName": "my_displayName",
|
|
27227
|
+
* // "dissociateControlIds": [],
|
|
27228
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
27229
|
+
* // "filterControlIds": [],
|
|
27230
|
+
* // "genericConfig": {},
|
|
27231
|
+
* // "ignoreControlIds": [],
|
|
27232
|
+
* // "mediaConfig": {},
|
|
27233
|
+
* // "modelId": "my_modelId",
|
|
27234
|
+
* // "name": "my_name",
|
|
27235
|
+
* // "onewaySynonymsControlIds": [],
|
|
27236
|
+
* // "promoteControlIds": [],
|
|
27237
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
27238
|
+
* // "redirectControlIds": [],
|
|
27239
|
+
* // "replacementControlIds": [],
|
|
27240
|
+
* // "solutionType": "my_solutionType",
|
|
27241
|
+
* // "synonymsControlIds": [],
|
|
27242
|
+
* // "updateTime": "my_updateTime"
|
|
27243
|
+
* // }
|
|
27244
|
+
* }
|
|
27245
|
+
*
|
|
27246
|
+
* main().catch(e => {
|
|
27247
|
+
* console.error(e);
|
|
27248
|
+
* throw e;
|
|
27249
|
+
* });
|
|
27250
|
+
*
|
|
27251
|
+
* ```
|
|
27252
|
+
*
|
|
27253
|
+
* @param params - Parameters for request
|
|
27254
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
27255
|
+
* @param callback - Optional callback that handles the response.
|
|
27256
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
27257
|
+
*/
|
|
27258
|
+
patch(
|
|
27259
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
27260
|
+
options: StreamMethodOptions
|
|
27261
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
27262
|
+
patch(
|
|
27263
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
27264
|
+
options?: MethodOptions
|
|
27265
|
+
): Promise<
|
|
27266
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
27267
|
+
>;
|
|
27268
|
+
patch(
|
|
27269
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
27270
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
27271
|
+
callback: BodyResponseCallback<Readable>
|
|
27272
|
+
): void;
|
|
27273
|
+
patch(
|
|
27274
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
27275
|
+
options:
|
|
27276
|
+
| MethodOptions
|
|
27277
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
27278
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
27279
|
+
): void;
|
|
27280
|
+
patch(
|
|
27281
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch,
|
|
27282
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
27283
|
+
): void;
|
|
27284
|
+
patch(
|
|
27285
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
27286
|
+
): void;
|
|
27287
|
+
patch(
|
|
27288
|
+
paramsOrCallback?:
|
|
27289
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch
|
|
27290
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
27291
|
+
| BodyResponseCallback<Readable>,
|
|
27292
|
+
optionsOrCallback?:
|
|
27293
|
+
| MethodOptions
|
|
27294
|
+
| StreamMethodOptions
|
|
27295
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
27296
|
+
| BodyResponseCallback<Readable>,
|
|
27297
|
+
callback?:
|
|
27298
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
27299
|
+
| BodyResponseCallback<Readable>
|
|
27300
|
+
):
|
|
27301
|
+
| void
|
|
27302
|
+
| Promise<
|
|
27303
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
27304
|
+
>
|
|
27305
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
27306
|
+
let params = (paramsOrCallback ||
|
|
27307
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch;
|
|
27308
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
27309
|
+
|
|
27310
|
+
if (typeof paramsOrCallback === 'function') {
|
|
27311
|
+
callback = paramsOrCallback;
|
|
27312
|
+
params =
|
|
27313
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch;
|
|
27314
|
+
options = {};
|
|
27315
|
+
}
|
|
27316
|
+
|
|
27317
|
+
if (typeof optionsOrCallback === 'function') {
|
|
27318
|
+
callback = optionsOrCallback;
|
|
27319
|
+
options = {};
|
|
27320
|
+
}
|
|
27321
|
+
|
|
27322
|
+
const rootUrl =
|
|
27323
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
27324
|
+
const parameters = {
|
|
27325
|
+
options: Object.assign(
|
|
27326
|
+
{
|
|
27327
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
27328
|
+
method: 'PATCH',
|
|
27329
|
+
apiVersion: '',
|
|
27330
|
+
},
|
|
27331
|
+
options
|
|
27332
|
+
),
|
|
27333
|
+
params,
|
|
27334
|
+
requiredParams: ['name'],
|
|
27335
|
+
pathParams: ['name'],
|
|
27336
|
+
context: this.context,
|
|
27337
|
+
};
|
|
27338
|
+
if (callback) {
|
|
27339
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
27340
|
+
parameters,
|
|
27341
|
+
callback as BodyResponseCallback<unknown>
|
|
27342
|
+
);
|
|
27343
|
+
} else {
|
|
27344
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
27345
|
+
parameters
|
|
27346
|
+
);
|
|
27347
|
+
}
|
|
27348
|
+
}
|
|
27349
|
+
|
|
27350
|
+
/**
|
|
27351
|
+
* Makes a recommendation, which requires a contextual user event.
|
|
26931
27352
|
* @example
|
|
26932
27353
|
* ```js
|
|
26933
27354
|
* // Before running the sample:
|
|
@@ -27703,6 +28124,27 @@ export namespace discoveryengine_v1 {
|
|
|
27703
28124
|
*/
|
|
27704
28125
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
|
|
27705
28126
|
}
|
|
28127
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create extends StandardParameters {
|
|
28128
|
+
/**
|
|
28129
|
+
* Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
28130
|
+
*/
|
|
28131
|
+
parent?: string;
|
|
28132
|
+
/**
|
|
28133
|
+
* Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
|
|
28134
|
+
*/
|
|
28135
|
+
servingConfigId?: string;
|
|
28136
|
+
|
|
28137
|
+
/**
|
|
28138
|
+
* Request body metadata
|
|
28139
|
+
*/
|
|
28140
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1ServingConfig;
|
|
28141
|
+
}
|
|
28142
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
28143
|
+
/**
|
|
28144
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
28145
|
+
*/
|
|
28146
|
+
name?: string;
|
|
28147
|
+
}
|
|
27706
28148
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get extends StandardParameters {
|
|
27707
28149
|
/**
|
|
27708
28150
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -38624,7 +39066,7 @@ export namespace discoveryengine_v1 {
|
|
|
38624
39066
|
}
|
|
38625
39067
|
|
|
38626
39068
|
/**
|
|
38627
|
-
*
|
|
39069
|
+
* Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned.
|
|
38628
39070
|
* @example
|
|
38629
39071
|
* ```js
|
|
38630
39072
|
* // Before running the sample:
|
|
@@ -38657,10 +39099,40 @@ export namespace discoveryengine_v1 {
|
|
|
38657
39099
|
*
|
|
38658
39100
|
* // Do the magic
|
|
38659
39101
|
* const res =
|
|
38660
|
-
* await discoveryengine.projects.locations.collections.engines.servingConfigs.
|
|
39102
|
+
* await discoveryengine.projects.locations.collections.engines.servingConfigs.create(
|
|
38661
39103
|
* {
|
|
38662
|
-
* // Required.
|
|
38663
|
-
*
|
|
39104
|
+
* // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
39105
|
+
* parent:
|
|
39106
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
|
|
39107
|
+
* // Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
|
|
39108
|
+
* servingConfigId: 'placeholder-value',
|
|
39109
|
+
*
|
|
39110
|
+
* // Request body metadata
|
|
39111
|
+
* requestBody: {
|
|
39112
|
+
* // request body parameters
|
|
39113
|
+
* // {
|
|
39114
|
+
* // "answerGenerationSpec": {},
|
|
39115
|
+
* // "boostControlIds": [],
|
|
39116
|
+
* // "createTime": "my_createTime",
|
|
39117
|
+
* // "displayName": "my_displayName",
|
|
39118
|
+
* // "dissociateControlIds": [],
|
|
39119
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
39120
|
+
* // "filterControlIds": [],
|
|
39121
|
+
* // "genericConfig": {},
|
|
39122
|
+
* // "ignoreControlIds": [],
|
|
39123
|
+
* // "mediaConfig": {},
|
|
39124
|
+
* // "modelId": "my_modelId",
|
|
39125
|
+
* // "name": "my_name",
|
|
39126
|
+
* // "onewaySynonymsControlIds": [],
|
|
39127
|
+
* // "promoteControlIds": [],
|
|
39128
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
39129
|
+
* // "redirectControlIds": [],
|
|
39130
|
+
* // "replacementControlIds": [],
|
|
39131
|
+
* // "solutionType": "my_solutionType",
|
|
39132
|
+
* // "synonymsControlIds": [],
|
|
39133
|
+
* // "updateTime": "my_updateTime"
|
|
39134
|
+
* // }
|
|
39135
|
+
* },
|
|
38664
39136
|
* },
|
|
38665
39137
|
* );
|
|
38666
39138
|
* console.log(res.data);
|
|
@@ -38702,38 +39174,38 @@ export namespace discoveryengine_v1 {
|
|
|
38702
39174
|
* @param callback - Optional callback that handles the response.
|
|
38703
39175
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
38704
39176
|
*/
|
|
38705
|
-
|
|
38706
|
-
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39177
|
+
create(
|
|
39178
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
38707
39179
|
options: StreamMethodOptions
|
|
38708
39180
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
38709
|
-
|
|
38710
|
-
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39181
|
+
create(
|
|
39182
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
38711
39183
|
options?: MethodOptions
|
|
38712
39184
|
): Promise<
|
|
38713
39185
|
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38714
39186
|
>;
|
|
38715
|
-
|
|
38716
|
-
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39187
|
+
create(
|
|
39188
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
38717
39189
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
38718
39190
|
callback: BodyResponseCallback<Readable>
|
|
38719
39191
|
): void;
|
|
38720
|
-
|
|
38721
|
-
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39192
|
+
create(
|
|
39193
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
38722
39194
|
options:
|
|
38723
39195
|
| MethodOptions
|
|
38724
39196
|
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
38725
39197
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38726
39198
|
): void;
|
|
38727
|
-
|
|
38728
|
-
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39199
|
+
create(
|
|
39200
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
38729
39201
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38730
39202
|
): void;
|
|
38731
|
-
|
|
39203
|
+
create(
|
|
38732
39204
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38733
39205
|
): void;
|
|
38734
|
-
|
|
39206
|
+
create(
|
|
38735
39207
|
paramsOrCallback?:
|
|
38736
|
-
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39208
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create
|
|
38737
39209
|
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38738
39210
|
| BodyResponseCallback<Readable>,
|
|
38739
39211
|
optionsOrCallback?:
|
|
@@ -38751,13 +39223,13 @@ export namespace discoveryengine_v1 {
|
|
|
38751
39223
|
>
|
|
38752
39224
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
38753
39225
|
let params = (paramsOrCallback ||
|
|
38754
|
-
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39226
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
|
|
38755
39227
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
38756
39228
|
|
|
38757
39229
|
if (typeof paramsOrCallback === 'function') {
|
|
38758
39230
|
callback = paramsOrCallback;
|
|
38759
39231
|
params =
|
|
38760
|
-
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39232
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
|
|
38761
39233
|
options = {};
|
|
38762
39234
|
}
|
|
38763
39235
|
|
|
@@ -38771,15 +39243,18 @@ export namespace discoveryengine_v1 {
|
|
|
38771
39243
|
const parameters = {
|
|
38772
39244
|
options: Object.assign(
|
|
38773
39245
|
{
|
|
38774
|
-
url: (rootUrl + '/v1/{+
|
|
38775
|
-
|
|
39246
|
+
url: (rootUrl + '/v1/{+parent}/servingConfigs').replace(
|
|
39247
|
+
/([^:]\/)\/+/g,
|
|
39248
|
+
'$1'
|
|
39249
|
+
),
|
|
39250
|
+
method: 'POST',
|
|
38776
39251
|
apiVersion: '',
|
|
38777
39252
|
},
|
|
38778
39253
|
options
|
|
38779
39254
|
),
|
|
38780
39255
|
params,
|
|
38781
|
-
requiredParams: ['
|
|
38782
|
-
pathParams: ['
|
|
39256
|
+
requiredParams: ['parent'],
|
|
39257
|
+
pathParams: ['parent'],
|
|
38783
39258
|
context: this.context,
|
|
38784
39259
|
};
|
|
38785
39260
|
if (callback) {
|
|
@@ -38795,7 +39270,7 @@ export namespace discoveryengine_v1 {
|
|
|
38795
39270
|
}
|
|
38796
39271
|
|
|
38797
39272
|
/**
|
|
38798
|
-
*
|
|
39273
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
38799
39274
|
* @example
|
|
38800
39275
|
* ```js
|
|
38801
39276
|
* // Before running the sample:
|
|
@@ -38828,23 +39303,176 @@ export namespace discoveryengine_v1 {
|
|
|
38828
39303
|
*
|
|
38829
39304
|
* // Do the magic
|
|
38830
39305
|
* const res =
|
|
38831
|
-
* await discoveryengine.projects.locations.collections.engines.servingConfigs.
|
|
39306
|
+
* await discoveryengine.projects.locations.collections.engines.servingConfigs.delete(
|
|
38832
39307
|
* {
|
|
38833
|
-
* //
|
|
38834
|
-
*
|
|
38835
|
-
*
|
|
38836
|
-
*
|
|
38837
|
-
*
|
|
38838
|
-
*
|
|
38839
|
-
*
|
|
39308
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
39309
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/servingConfigs/my-servingConfig',
|
|
39310
|
+
* },
|
|
39311
|
+
* );
|
|
39312
|
+
* console.log(res.data);
|
|
39313
|
+
*
|
|
39314
|
+
* // Example response
|
|
39315
|
+
* // {}
|
|
39316
|
+
* }
|
|
39317
|
+
*
|
|
39318
|
+
* main().catch(e => {
|
|
39319
|
+
* console.error(e);
|
|
39320
|
+
* throw e;
|
|
39321
|
+
* });
|
|
39322
|
+
*
|
|
39323
|
+
* ```
|
|
39324
|
+
*
|
|
39325
|
+
* @param params - Parameters for request
|
|
39326
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
39327
|
+
* @param callback - Optional callback that handles the response.
|
|
39328
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
39329
|
+
*/
|
|
39330
|
+
delete(
|
|
39331
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
39332
|
+
options: StreamMethodOptions
|
|
39333
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
39334
|
+
delete(
|
|
39335
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
39336
|
+
options?: MethodOptions
|
|
39337
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
39338
|
+
delete(
|
|
39339
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
39340
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
39341
|
+
callback: BodyResponseCallback<Readable>
|
|
39342
|
+
): void;
|
|
39343
|
+
delete(
|
|
39344
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
39345
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
39346
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
39347
|
+
): void;
|
|
39348
|
+
delete(
|
|
39349
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
39350
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
39351
|
+
): void;
|
|
39352
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
39353
|
+
delete(
|
|
39354
|
+
paramsOrCallback?:
|
|
39355
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete
|
|
39356
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
39357
|
+
| BodyResponseCallback<Readable>,
|
|
39358
|
+
optionsOrCallback?:
|
|
39359
|
+
| MethodOptions
|
|
39360
|
+
| StreamMethodOptions
|
|
39361
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
39362
|
+
| BodyResponseCallback<Readable>,
|
|
39363
|
+
callback?:
|
|
39364
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
39365
|
+
| BodyResponseCallback<Readable>
|
|
39366
|
+
):
|
|
39367
|
+
| void
|
|
39368
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
39369
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
39370
|
+
let params = (paramsOrCallback ||
|
|
39371
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete;
|
|
39372
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
39373
|
+
|
|
39374
|
+
if (typeof paramsOrCallback === 'function') {
|
|
39375
|
+
callback = paramsOrCallback;
|
|
39376
|
+
params =
|
|
39377
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete;
|
|
39378
|
+
options = {};
|
|
39379
|
+
}
|
|
39380
|
+
|
|
39381
|
+
if (typeof optionsOrCallback === 'function') {
|
|
39382
|
+
callback = optionsOrCallback;
|
|
39383
|
+
options = {};
|
|
39384
|
+
}
|
|
39385
|
+
|
|
39386
|
+
const rootUrl =
|
|
39387
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
39388
|
+
const parameters = {
|
|
39389
|
+
options: Object.assign(
|
|
39390
|
+
{
|
|
39391
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
39392
|
+
method: 'DELETE',
|
|
39393
|
+
apiVersion: '',
|
|
39394
|
+
},
|
|
39395
|
+
options
|
|
39396
|
+
),
|
|
39397
|
+
params,
|
|
39398
|
+
requiredParams: ['name'],
|
|
39399
|
+
pathParams: ['name'],
|
|
39400
|
+
context: this.context,
|
|
39401
|
+
};
|
|
39402
|
+
if (callback) {
|
|
39403
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
39404
|
+
parameters,
|
|
39405
|
+
callback as BodyResponseCallback<unknown>
|
|
39406
|
+
);
|
|
39407
|
+
} else {
|
|
39408
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
39409
|
+
}
|
|
39410
|
+
}
|
|
39411
|
+
|
|
39412
|
+
/**
|
|
39413
|
+
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
39414
|
+
* @example
|
|
39415
|
+
* ```js
|
|
39416
|
+
* // Before running the sample:
|
|
39417
|
+
* // - Enable the API at:
|
|
39418
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
39419
|
+
* // - Login into gcloud by running:
|
|
39420
|
+
* // ```sh
|
|
39421
|
+
* // $ gcloud auth application-default login
|
|
39422
|
+
* // ```
|
|
39423
|
+
* // - Install the npm module by running:
|
|
39424
|
+
* // ```sh
|
|
39425
|
+
* // $ npm install googleapis
|
|
39426
|
+
* // ```
|
|
39427
|
+
*
|
|
39428
|
+
* const {google} = require('googleapis');
|
|
39429
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
39430
|
+
*
|
|
39431
|
+
* async function main() {
|
|
39432
|
+
* const auth = new google.auth.GoogleAuth({
|
|
39433
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
39434
|
+
* scopes: [
|
|
39435
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
39436
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
39437
|
+
* ],
|
|
39438
|
+
* });
|
|
39439
|
+
*
|
|
39440
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
39441
|
+
* const authClient = await auth.getClient();
|
|
39442
|
+
* google.options({auth: authClient});
|
|
39443
|
+
*
|
|
39444
|
+
* // Do the magic
|
|
39445
|
+
* const res =
|
|
39446
|
+
* await discoveryengine.projects.locations.collections.engines.servingConfigs.get(
|
|
39447
|
+
* {
|
|
39448
|
+
* // Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
39449
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/servingConfigs/my-servingConfig',
|
|
38840
39450
|
* },
|
|
38841
39451
|
* );
|
|
38842
39452
|
* console.log(res.data);
|
|
38843
39453
|
*
|
|
38844
39454
|
* // Example response
|
|
38845
39455
|
* // {
|
|
38846
|
-
* // "
|
|
38847
|
-
* // "
|
|
39456
|
+
* // "answerGenerationSpec": {},
|
|
39457
|
+
* // "boostControlIds": [],
|
|
39458
|
+
* // "createTime": "my_createTime",
|
|
39459
|
+
* // "displayName": "my_displayName",
|
|
39460
|
+
* // "dissociateControlIds": [],
|
|
39461
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
39462
|
+
* // "filterControlIds": [],
|
|
39463
|
+
* // "genericConfig": {},
|
|
39464
|
+
* // "ignoreControlIds": [],
|
|
39465
|
+
* // "mediaConfig": {},
|
|
39466
|
+
* // "modelId": "my_modelId",
|
|
39467
|
+
* // "name": "my_name",
|
|
39468
|
+
* // "onewaySynonymsControlIds": [],
|
|
39469
|
+
* // "promoteControlIds": [],
|
|
39470
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
39471
|
+
* // "redirectControlIds": [],
|
|
39472
|
+
* // "replacementControlIds": [],
|
|
39473
|
+
* // "solutionType": "my_solutionType",
|
|
39474
|
+
* // "synonymsControlIds": [],
|
|
39475
|
+
* // "updateTime": "my_updateTime"
|
|
38848
39476
|
* // }
|
|
38849
39477
|
* }
|
|
38850
39478
|
*
|
|
@@ -38860,62 +39488,62 @@ export namespace discoveryengine_v1 {
|
|
|
38860
39488
|
* @param callback - Optional callback that handles the response.
|
|
38861
39489
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
38862
39490
|
*/
|
|
38863
|
-
|
|
38864
|
-
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39491
|
+
get(
|
|
39492
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
38865
39493
|
options: StreamMethodOptions
|
|
38866
39494
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
38867
|
-
|
|
38868
|
-
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39495
|
+
get(
|
|
39496
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
38869
39497
|
options?: MethodOptions
|
|
38870
39498
|
): Promise<
|
|
38871
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
39499
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38872
39500
|
>;
|
|
38873
|
-
|
|
38874
|
-
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39501
|
+
get(
|
|
39502
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
38875
39503
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
38876
39504
|
callback: BodyResponseCallback<Readable>
|
|
38877
39505
|
): void;
|
|
38878
|
-
|
|
38879
|
-
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39506
|
+
get(
|
|
39507
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
38880
39508
|
options:
|
|
38881
39509
|
| MethodOptions
|
|
38882
|
-
| BodyResponseCallback<Schema$
|
|
38883
|
-
callback: BodyResponseCallback<Schema$
|
|
39510
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
39511
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38884
39512
|
): void;
|
|
38885
|
-
|
|
38886
|
-
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
38887
|
-
callback: BodyResponseCallback<Schema$
|
|
39513
|
+
get(
|
|
39514
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get,
|
|
39515
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38888
39516
|
): void;
|
|
38889
|
-
|
|
38890
|
-
callback: BodyResponseCallback<Schema$
|
|
39517
|
+
get(
|
|
39518
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38891
39519
|
): void;
|
|
38892
|
-
|
|
39520
|
+
get(
|
|
38893
39521
|
paramsOrCallback?:
|
|
38894
|
-
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
38895
|
-
| BodyResponseCallback<Schema$
|
|
39522
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get
|
|
39523
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38896
39524
|
| BodyResponseCallback<Readable>,
|
|
38897
39525
|
optionsOrCallback?:
|
|
38898
39526
|
| MethodOptions
|
|
38899
39527
|
| StreamMethodOptions
|
|
38900
|
-
| BodyResponseCallback<Schema$
|
|
39528
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38901
39529
|
| BodyResponseCallback<Readable>,
|
|
38902
39530
|
callback?:
|
|
38903
|
-
| BodyResponseCallback<Schema$
|
|
39531
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38904
39532
|
| BodyResponseCallback<Readable>
|
|
38905
39533
|
):
|
|
38906
39534
|
| void
|
|
38907
39535
|
| Promise<
|
|
38908
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
39536
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
38909
39537
|
>
|
|
38910
39538
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
38911
39539
|
let params = (paramsOrCallback ||
|
|
38912
|
-
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39540
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get;
|
|
38913
39541
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
38914
39542
|
|
|
38915
39543
|
if (typeof paramsOrCallback === 'function') {
|
|
38916
39544
|
callback = paramsOrCallback;
|
|
38917
39545
|
params =
|
|
38918
|
-
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$
|
|
39546
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get;
|
|
38919
39547
|
options = {};
|
|
38920
39548
|
}
|
|
38921
39549
|
|
|
@@ -38929,34 +39557,192 @@ export namespace discoveryengine_v1 {
|
|
|
38929
39557
|
const parameters = {
|
|
38930
39558
|
options: Object.assign(
|
|
38931
39559
|
{
|
|
38932
|
-
url: (rootUrl + '/v1/{+
|
|
38933
|
-
/([^:]\/)\/+/g,
|
|
38934
|
-
'$1'
|
|
38935
|
-
),
|
|
39560
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
38936
39561
|
method: 'GET',
|
|
38937
39562
|
apiVersion: '',
|
|
38938
39563
|
},
|
|
38939
39564
|
options
|
|
38940
39565
|
),
|
|
38941
39566
|
params,
|
|
38942
|
-
requiredParams: ['
|
|
38943
|
-
pathParams: ['
|
|
39567
|
+
requiredParams: ['name'],
|
|
39568
|
+
pathParams: ['name'],
|
|
38944
39569
|
context: this.context,
|
|
38945
39570
|
};
|
|
38946
39571
|
if (callback) {
|
|
38947
|
-
createAPIRequest<Schema$
|
|
39572
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
38948
39573
|
parameters,
|
|
38949
39574
|
callback as BodyResponseCallback<unknown>
|
|
38950
39575
|
);
|
|
38951
39576
|
} else {
|
|
38952
|
-
return createAPIRequest<Schema$
|
|
39577
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
38953
39578
|
parameters
|
|
38954
39579
|
);
|
|
38955
39580
|
}
|
|
38956
39581
|
}
|
|
38957
39582
|
|
|
38958
39583
|
/**
|
|
38959
|
-
*
|
|
39584
|
+
* Lists all ServingConfigs linked to this dataStore.
|
|
39585
|
+
* @example
|
|
39586
|
+
* ```js
|
|
39587
|
+
* // Before running the sample:
|
|
39588
|
+
* // - Enable the API at:
|
|
39589
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
39590
|
+
* // - Login into gcloud by running:
|
|
39591
|
+
* // ```sh
|
|
39592
|
+
* // $ gcloud auth application-default login
|
|
39593
|
+
* // ```
|
|
39594
|
+
* // - Install the npm module by running:
|
|
39595
|
+
* // ```sh
|
|
39596
|
+
* // $ npm install googleapis
|
|
39597
|
+
* // ```
|
|
39598
|
+
*
|
|
39599
|
+
* const {google} = require('googleapis');
|
|
39600
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
39601
|
+
*
|
|
39602
|
+
* async function main() {
|
|
39603
|
+
* const auth = new google.auth.GoogleAuth({
|
|
39604
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
39605
|
+
* scopes: [
|
|
39606
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
39607
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
39608
|
+
* ],
|
|
39609
|
+
* });
|
|
39610
|
+
*
|
|
39611
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
39612
|
+
* const authClient = await auth.getClient();
|
|
39613
|
+
* google.options({auth: authClient});
|
|
39614
|
+
*
|
|
39615
|
+
* // Do the magic
|
|
39616
|
+
* const res =
|
|
39617
|
+
* await discoveryengine.projects.locations.collections.engines.servingConfigs.list(
|
|
39618
|
+
* {
|
|
39619
|
+
* // Optional. Maximum number of results to return. If unspecified, defaults to 100. If a value greater than 100 is provided, at most 100 results are returned.
|
|
39620
|
+
* pageSize: 'placeholder-value',
|
|
39621
|
+
* // Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
|
|
39622
|
+
* pageToken: 'placeholder-value',
|
|
39623
|
+
* // Required. Full resource name of the parent resource. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
39624
|
+
* parent:
|
|
39625
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
|
|
39626
|
+
* },
|
|
39627
|
+
* );
|
|
39628
|
+
* console.log(res.data);
|
|
39629
|
+
*
|
|
39630
|
+
* // Example response
|
|
39631
|
+
* // {
|
|
39632
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
39633
|
+
* // "servingConfigs": []
|
|
39634
|
+
* // }
|
|
39635
|
+
* }
|
|
39636
|
+
*
|
|
39637
|
+
* main().catch(e => {
|
|
39638
|
+
* console.error(e);
|
|
39639
|
+
* throw e;
|
|
39640
|
+
* });
|
|
39641
|
+
*
|
|
39642
|
+
* ```
|
|
39643
|
+
*
|
|
39644
|
+
* @param params - Parameters for request
|
|
39645
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
39646
|
+
* @param callback - Optional callback that handles the response.
|
|
39647
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
39648
|
+
*/
|
|
39649
|
+
list(
|
|
39650
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
39651
|
+
options: StreamMethodOptions
|
|
39652
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
39653
|
+
list(
|
|
39654
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
39655
|
+
options?: MethodOptions
|
|
39656
|
+
): Promise<
|
|
39657
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
39658
|
+
>;
|
|
39659
|
+
list(
|
|
39660
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
39661
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
39662
|
+
callback: BodyResponseCallback<Readable>
|
|
39663
|
+
): void;
|
|
39664
|
+
list(
|
|
39665
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
39666
|
+
options:
|
|
39667
|
+
| MethodOptions
|
|
39668
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>,
|
|
39669
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
39670
|
+
): void;
|
|
39671
|
+
list(
|
|
39672
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List,
|
|
39673
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
39674
|
+
): void;
|
|
39675
|
+
list(
|
|
39676
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
39677
|
+
): void;
|
|
39678
|
+
list(
|
|
39679
|
+
paramsOrCallback?:
|
|
39680
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List
|
|
39681
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
39682
|
+
| BodyResponseCallback<Readable>,
|
|
39683
|
+
optionsOrCallback?:
|
|
39684
|
+
| MethodOptions
|
|
39685
|
+
| StreamMethodOptions
|
|
39686
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
39687
|
+
| BodyResponseCallback<Readable>,
|
|
39688
|
+
callback?:
|
|
39689
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
39690
|
+
| BodyResponseCallback<Readable>
|
|
39691
|
+
):
|
|
39692
|
+
| void
|
|
39693
|
+
| Promise<
|
|
39694
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
39695
|
+
>
|
|
39696
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
39697
|
+
let params = (paramsOrCallback ||
|
|
39698
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List;
|
|
39699
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
39700
|
+
|
|
39701
|
+
if (typeof paramsOrCallback === 'function') {
|
|
39702
|
+
callback = paramsOrCallback;
|
|
39703
|
+
params =
|
|
39704
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$List;
|
|
39705
|
+
options = {};
|
|
39706
|
+
}
|
|
39707
|
+
|
|
39708
|
+
if (typeof optionsOrCallback === 'function') {
|
|
39709
|
+
callback = optionsOrCallback;
|
|
39710
|
+
options = {};
|
|
39711
|
+
}
|
|
39712
|
+
|
|
39713
|
+
const rootUrl =
|
|
39714
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
39715
|
+
const parameters = {
|
|
39716
|
+
options: Object.assign(
|
|
39717
|
+
{
|
|
39718
|
+
url: (rootUrl + '/v1/{+parent}/servingConfigs').replace(
|
|
39719
|
+
/([^:]\/)\/+/g,
|
|
39720
|
+
'$1'
|
|
39721
|
+
),
|
|
39722
|
+
method: 'GET',
|
|
39723
|
+
apiVersion: '',
|
|
39724
|
+
},
|
|
39725
|
+
options
|
|
39726
|
+
),
|
|
39727
|
+
params,
|
|
39728
|
+
requiredParams: ['parent'],
|
|
39729
|
+
pathParams: ['parent'],
|
|
39730
|
+
context: this.context,
|
|
39731
|
+
};
|
|
39732
|
+
if (callback) {
|
|
39733
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>(
|
|
39734
|
+
parameters,
|
|
39735
|
+
callback as BodyResponseCallback<unknown>
|
|
39736
|
+
);
|
|
39737
|
+
} else {
|
|
39738
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>(
|
|
39739
|
+
parameters
|
|
39740
|
+
);
|
|
39741
|
+
}
|
|
39742
|
+
}
|
|
39743
|
+
|
|
39744
|
+
/**
|
|
39745
|
+
* Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
38960
39746
|
* @example
|
|
38961
39747
|
* ```js
|
|
38962
39748
|
* // Before running the sample:
|
|
@@ -39932,6 +40718,27 @@ export namespace discoveryengine_v1 {
|
|
|
39932
40718
|
*/
|
|
39933
40719
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
|
|
39934
40720
|
}
|
|
40721
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create extends StandardParameters {
|
|
40722
|
+
/**
|
|
40723
|
+
* Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
40724
|
+
*/
|
|
40725
|
+
parent?: string;
|
|
40726
|
+
/**
|
|
40727
|
+
* Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
|
|
40728
|
+
*/
|
|
40729
|
+
servingConfigId?: string;
|
|
40730
|
+
|
|
40731
|
+
/**
|
|
40732
|
+
* Request body metadata
|
|
40733
|
+
*/
|
|
40734
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1ServingConfig;
|
|
40735
|
+
}
|
|
40736
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
|
|
40737
|
+
/**
|
|
40738
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
40739
|
+
*/
|
|
40740
|
+
name?: string;
|
|
40741
|
+
}
|
|
39935
40742
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get extends StandardParameters {
|
|
39936
40743
|
/**
|
|
39937
40744
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -42200,6 +43007,7 @@ export namespace discoveryengine_v1 {
|
|
|
42200
43007
|
* // "isInfobotFaqDataStore": false,
|
|
42201
43008
|
* // "kmsKeyName": "my_kmsKeyName",
|
|
42202
43009
|
* // "name": "my_name",
|
|
43010
|
+
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
42203
43011
|
* // "servingConfigDataStore": {},
|
|
42204
43012
|
* // "solutionTypes": [],
|
|
42205
43013
|
* // "startingSchema": {},
|
|
@@ -42523,6 +43331,7 @@ export namespace discoveryengine_v1 {
|
|
|
42523
43331
|
* // "isInfobotFaqDataStore": false,
|
|
42524
43332
|
* // "kmsKeyName": "my_kmsKeyName",
|
|
42525
43333
|
* // "name": "my_name",
|
|
43334
|
+
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
42526
43335
|
* // "servingConfigDataStore": {},
|
|
42527
43336
|
* // "solutionTypes": [],
|
|
42528
43337
|
* // "startingSchema": {},
|
|
@@ -43001,6 +43810,7 @@ export namespace discoveryengine_v1 {
|
|
|
43001
43810
|
* // "isInfobotFaqDataStore": false,
|
|
43002
43811
|
* // "kmsKeyName": "my_kmsKeyName",
|
|
43003
43812
|
* // "name": "my_name",
|
|
43813
|
+
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
43004
43814
|
* // "servingConfigDataStore": {},
|
|
43005
43815
|
* // "solutionTypes": [],
|
|
43006
43816
|
* // "startingSchema": {},
|
|
@@ -43029,6 +43839,7 @@ export namespace discoveryengine_v1 {
|
|
|
43029
43839
|
* // "isInfobotFaqDataStore": false,
|
|
43030
43840
|
* // "kmsKeyName": "my_kmsKeyName",
|
|
43031
43841
|
* // "name": "my_name",
|
|
43842
|
+
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
43032
43843
|
* // "servingConfigDataStore": {},
|
|
43033
43844
|
* // "solutionTypes": [],
|
|
43034
43845
|
* // "startingSchema": {},
|
|
@@ -49063,33 +49874,465 @@ export namespace discoveryengine_v1 {
|
|
|
49063
49874
|
* google.options({auth: authClient});
|
|
49064
49875
|
*
|
|
49065
49876
|
* // Do the magic
|
|
49066
|
-
* const res = await discoveryengine.projects.locations.dataStores.schemas.patch(
|
|
49067
|
-
* {
|
|
49068
|
-
* // If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
|
|
49069
|
-
* allowMissing: 'placeholder-value',
|
|
49070
|
-
* // Immutable. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
|
|
49071
|
-
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/schemas/my-schema',
|
|
49877
|
+
* const res = await discoveryengine.projects.locations.dataStores.schemas.patch(
|
|
49878
|
+
* {
|
|
49879
|
+
* // If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
|
|
49880
|
+
* allowMissing: 'placeholder-value',
|
|
49881
|
+
* // Immutable. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
|
|
49882
|
+
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/schemas/my-schema',
|
|
49883
|
+
*
|
|
49884
|
+
* // Request body metadata
|
|
49885
|
+
* requestBody: {
|
|
49886
|
+
* // request body parameters
|
|
49887
|
+
* // {
|
|
49888
|
+
* // "jsonSchema": "my_jsonSchema",
|
|
49889
|
+
* // "name": "my_name",
|
|
49890
|
+
* // "structSchema": {}
|
|
49891
|
+
* // }
|
|
49892
|
+
* },
|
|
49893
|
+
* },
|
|
49894
|
+
* );
|
|
49895
|
+
* console.log(res.data);
|
|
49896
|
+
*
|
|
49897
|
+
* // Example response
|
|
49898
|
+
* // {
|
|
49899
|
+
* // "done": false,
|
|
49900
|
+
* // "error": {},
|
|
49901
|
+
* // "metadata": {},
|
|
49902
|
+
* // "name": "my_name",
|
|
49903
|
+
* // "response": {}
|
|
49904
|
+
* // }
|
|
49905
|
+
* }
|
|
49906
|
+
*
|
|
49907
|
+
* main().catch(e => {
|
|
49908
|
+
* console.error(e);
|
|
49909
|
+
* throw e;
|
|
49910
|
+
* });
|
|
49911
|
+
*
|
|
49912
|
+
* ```
|
|
49913
|
+
*
|
|
49914
|
+
* @param params - Parameters for request
|
|
49915
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
49916
|
+
* @param callback - Optional callback that handles the response.
|
|
49917
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
49918
|
+
*/
|
|
49919
|
+
patch(
|
|
49920
|
+
params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49921
|
+
options: StreamMethodOptions
|
|
49922
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
49923
|
+
patch(
|
|
49924
|
+
params?: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49925
|
+
options?: MethodOptions
|
|
49926
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
49927
|
+
patch(
|
|
49928
|
+
params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49929
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
49930
|
+
callback: BodyResponseCallback<Readable>
|
|
49931
|
+
): void;
|
|
49932
|
+
patch(
|
|
49933
|
+
params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49934
|
+
options:
|
|
49935
|
+
| MethodOptions
|
|
49936
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
49937
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49938
|
+
): void;
|
|
49939
|
+
patch(
|
|
49940
|
+
params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49941
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49942
|
+
): void;
|
|
49943
|
+
patch(
|
|
49944
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49945
|
+
): void;
|
|
49946
|
+
patch(
|
|
49947
|
+
paramsOrCallback?:
|
|
49948
|
+
| Params$Resource$Projects$Locations$Datastores$Schemas$Patch
|
|
49949
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49950
|
+
| BodyResponseCallback<Readable>,
|
|
49951
|
+
optionsOrCallback?:
|
|
49952
|
+
| MethodOptions
|
|
49953
|
+
| StreamMethodOptions
|
|
49954
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49955
|
+
| BodyResponseCallback<Readable>,
|
|
49956
|
+
callback?:
|
|
49957
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49958
|
+
| BodyResponseCallback<Readable>
|
|
49959
|
+
):
|
|
49960
|
+
| void
|
|
49961
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
|
|
49962
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
49963
|
+
let params = (paramsOrCallback ||
|
|
49964
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Schemas$Patch;
|
|
49965
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
49966
|
+
|
|
49967
|
+
if (typeof paramsOrCallback === 'function') {
|
|
49968
|
+
callback = paramsOrCallback;
|
|
49969
|
+
params =
|
|
49970
|
+
{} as Params$Resource$Projects$Locations$Datastores$Schemas$Patch;
|
|
49971
|
+
options = {};
|
|
49972
|
+
}
|
|
49973
|
+
|
|
49974
|
+
if (typeof optionsOrCallback === 'function') {
|
|
49975
|
+
callback = optionsOrCallback;
|
|
49976
|
+
options = {};
|
|
49977
|
+
}
|
|
49978
|
+
|
|
49979
|
+
const rootUrl =
|
|
49980
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
49981
|
+
const parameters = {
|
|
49982
|
+
options: Object.assign(
|
|
49983
|
+
{
|
|
49984
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
49985
|
+
method: 'PATCH',
|
|
49986
|
+
apiVersion: '',
|
|
49987
|
+
},
|
|
49988
|
+
options
|
|
49989
|
+
),
|
|
49990
|
+
params,
|
|
49991
|
+
requiredParams: ['name'],
|
|
49992
|
+
pathParams: ['name'],
|
|
49993
|
+
context: this.context,
|
|
49994
|
+
};
|
|
49995
|
+
if (callback) {
|
|
49996
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
49997
|
+
parameters,
|
|
49998
|
+
callback as BodyResponseCallback<unknown>
|
|
49999
|
+
);
|
|
50000
|
+
} else {
|
|
50001
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
50002
|
+
}
|
|
50003
|
+
}
|
|
50004
|
+
}
|
|
50005
|
+
|
|
50006
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Create extends StandardParameters {
|
|
50007
|
+
/**
|
|
50008
|
+
* Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
|
|
50009
|
+
*/
|
|
50010
|
+
parent?: string;
|
|
50011
|
+
/**
|
|
50012
|
+
* Required. The ID to use for the Schema, which becomes the final component of the Schema.name. This field should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
|
|
50013
|
+
*/
|
|
50014
|
+
schemaId?: string;
|
|
50015
|
+
|
|
50016
|
+
/**
|
|
50017
|
+
* Request body metadata
|
|
50018
|
+
*/
|
|
50019
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
50020
|
+
}
|
|
50021
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Delete extends StandardParameters {
|
|
50022
|
+
/**
|
|
50023
|
+
* Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
|
|
50024
|
+
*/
|
|
50025
|
+
name?: string;
|
|
50026
|
+
}
|
|
50027
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Get extends StandardParameters {
|
|
50028
|
+
/**
|
|
50029
|
+
* Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
|
|
50030
|
+
*/
|
|
50031
|
+
name?: string;
|
|
50032
|
+
}
|
|
50033
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$List extends StandardParameters {
|
|
50034
|
+
/**
|
|
50035
|
+
* The maximum number of Schemas to return. The service may return fewer than this value. If unspecified, at most 100 Schemas are returned. The maximum value is 1000; values above 1000 are set to 1000.
|
|
50036
|
+
*/
|
|
50037
|
+
pageSize?: number;
|
|
50038
|
+
/**
|
|
50039
|
+
* A page token, received from a previous SchemaService.ListSchemas call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SchemaService.ListSchemas must match the call that provided the page token.
|
|
50040
|
+
*/
|
|
50041
|
+
pageToken?: string;
|
|
50042
|
+
/**
|
|
50043
|
+
* Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
|
|
50044
|
+
*/
|
|
50045
|
+
parent?: string;
|
|
50046
|
+
}
|
|
50047
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Patch extends StandardParameters {
|
|
50048
|
+
/**
|
|
50049
|
+
* If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
|
|
50050
|
+
*/
|
|
50051
|
+
allowMissing?: boolean;
|
|
50052
|
+
/**
|
|
50053
|
+
* Immutable. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
|
|
50054
|
+
*/
|
|
50055
|
+
name?: string;
|
|
50056
|
+
|
|
50057
|
+
/**
|
|
50058
|
+
* Request body metadata
|
|
50059
|
+
*/
|
|
50060
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
50061
|
+
}
|
|
50062
|
+
|
|
50063
|
+
export class Resource$Projects$Locations$Datastores$Servingconfigs {
|
|
50064
|
+
context: APIRequestContext;
|
|
50065
|
+
constructor(context: APIRequestContext) {
|
|
50066
|
+
this.context = context;
|
|
50067
|
+
}
|
|
50068
|
+
|
|
50069
|
+
/**
|
|
50070
|
+
* Answer query method.
|
|
50071
|
+
* @example
|
|
50072
|
+
* ```js
|
|
50073
|
+
* // Before running the sample:
|
|
50074
|
+
* // - Enable the API at:
|
|
50075
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
50076
|
+
* // - Login into gcloud by running:
|
|
50077
|
+
* // ```sh
|
|
50078
|
+
* // $ gcloud auth application-default login
|
|
50079
|
+
* // ```
|
|
50080
|
+
* // - Install the npm module by running:
|
|
50081
|
+
* // ```sh
|
|
50082
|
+
* // $ npm install googleapis
|
|
50083
|
+
* // ```
|
|
50084
|
+
*
|
|
50085
|
+
* const {google} = require('googleapis');
|
|
50086
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
50087
|
+
*
|
|
50088
|
+
* async function main() {
|
|
50089
|
+
* const auth = new google.auth.GoogleAuth({
|
|
50090
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
50091
|
+
* scopes: [
|
|
50092
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
50093
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
50094
|
+
* ],
|
|
50095
|
+
* });
|
|
50096
|
+
*
|
|
50097
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
50098
|
+
* const authClient = await auth.getClient();
|
|
50099
|
+
* google.options({auth: authClient});
|
|
50100
|
+
*
|
|
50101
|
+
* // Do the magic
|
|
50102
|
+
* const res =
|
|
50103
|
+
* await discoveryengine.projects.locations.dataStores.servingConfigs.answer({
|
|
50104
|
+
* // Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/engines/x/servingConfigs/default_serving_config`, or `projects/x/locations/global/collections/default_collection/dataStores/x/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
|
|
50105
|
+
* servingConfig:
|
|
50106
|
+
* 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
50107
|
+
*
|
|
50108
|
+
* // Request body metadata
|
|
50109
|
+
* requestBody: {
|
|
50110
|
+
* // request body parameters
|
|
50111
|
+
* // {
|
|
50112
|
+
* // "answerGenerationSpec": {},
|
|
50113
|
+
* // "asynchronousMode": false,
|
|
50114
|
+
* // "endUserSpec": {},
|
|
50115
|
+
* // "groundingSpec": {},
|
|
50116
|
+
* // "query": {},
|
|
50117
|
+
* // "queryUnderstandingSpec": {},
|
|
50118
|
+
* // "relatedQuestionsSpec": {},
|
|
50119
|
+
* // "safetySpec": {},
|
|
50120
|
+
* // "searchSpec": {},
|
|
50121
|
+
* // "session": "my_session",
|
|
50122
|
+
* // "userLabels": {},
|
|
50123
|
+
* // "userPseudoId": "my_userPseudoId"
|
|
50124
|
+
* // }
|
|
50125
|
+
* },
|
|
50126
|
+
* });
|
|
50127
|
+
* console.log(res.data);
|
|
50128
|
+
*
|
|
50129
|
+
* // Example response
|
|
50130
|
+
* // {
|
|
50131
|
+
* // "answer": {},
|
|
50132
|
+
* // "answerQueryToken": "my_answerQueryToken",
|
|
50133
|
+
* // "session": {}
|
|
50134
|
+
* // }
|
|
50135
|
+
* }
|
|
50136
|
+
*
|
|
50137
|
+
* main().catch(e => {
|
|
50138
|
+
* console.error(e);
|
|
50139
|
+
* throw e;
|
|
50140
|
+
* });
|
|
50141
|
+
*
|
|
50142
|
+
* ```
|
|
50143
|
+
*
|
|
50144
|
+
* @param params - Parameters for request
|
|
50145
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
50146
|
+
* @param callback - Optional callback that handles the response.
|
|
50147
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
50148
|
+
*/
|
|
50149
|
+
answer(
|
|
50150
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
50151
|
+
options: StreamMethodOptions
|
|
50152
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
50153
|
+
answer(
|
|
50154
|
+
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
50155
|
+
options?: MethodOptions
|
|
50156
|
+
): Promise<
|
|
50157
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50158
|
+
>;
|
|
50159
|
+
answer(
|
|
50160
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
50161
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
50162
|
+
callback: BodyResponseCallback<Readable>
|
|
50163
|
+
): void;
|
|
50164
|
+
answer(
|
|
50165
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
50166
|
+
options:
|
|
50167
|
+
| MethodOptions
|
|
50168
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>,
|
|
50169
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50170
|
+
): void;
|
|
50171
|
+
answer(
|
|
50172
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
50173
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50174
|
+
): void;
|
|
50175
|
+
answer(
|
|
50176
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50177
|
+
): void;
|
|
50178
|
+
answer(
|
|
50179
|
+
paramsOrCallback?:
|
|
50180
|
+
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer
|
|
50181
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50182
|
+
| BodyResponseCallback<Readable>,
|
|
50183
|
+
optionsOrCallback?:
|
|
50184
|
+
| MethodOptions
|
|
50185
|
+
| StreamMethodOptions
|
|
50186
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50187
|
+
| BodyResponseCallback<Readable>,
|
|
50188
|
+
callback?:
|
|
50189
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50190
|
+
| BodyResponseCallback<Readable>
|
|
50191
|
+
):
|
|
50192
|
+
| void
|
|
50193
|
+
| Promise<
|
|
50194
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50195
|
+
>
|
|
50196
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
50197
|
+
let params = (paramsOrCallback ||
|
|
50198
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer;
|
|
50199
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
50200
|
+
|
|
50201
|
+
if (typeof paramsOrCallback === 'function') {
|
|
50202
|
+
callback = paramsOrCallback;
|
|
50203
|
+
params =
|
|
50204
|
+
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer;
|
|
50205
|
+
options = {};
|
|
50206
|
+
}
|
|
50207
|
+
|
|
50208
|
+
if (typeof optionsOrCallback === 'function') {
|
|
50209
|
+
callback = optionsOrCallback;
|
|
50210
|
+
options = {};
|
|
50211
|
+
}
|
|
50212
|
+
|
|
50213
|
+
const rootUrl =
|
|
50214
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
50215
|
+
const parameters = {
|
|
50216
|
+
options: Object.assign(
|
|
50217
|
+
{
|
|
50218
|
+
url: (rootUrl + '/v1/{+servingConfig}:answer').replace(
|
|
50219
|
+
/([^:]\/)\/+/g,
|
|
50220
|
+
'$1'
|
|
50221
|
+
),
|
|
50222
|
+
method: 'POST',
|
|
50223
|
+
apiVersion: '',
|
|
50224
|
+
},
|
|
50225
|
+
options
|
|
50226
|
+
),
|
|
50227
|
+
params,
|
|
50228
|
+
requiredParams: ['servingConfig'],
|
|
50229
|
+
pathParams: ['servingConfig'],
|
|
50230
|
+
context: this.context,
|
|
50231
|
+
};
|
|
50232
|
+
if (callback) {
|
|
50233
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>(
|
|
50234
|
+
parameters,
|
|
50235
|
+
callback as BodyResponseCallback<unknown>
|
|
50236
|
+
);
|
|
50237
|
+
} else {
|
|
50238
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>(
|
|
50239
|
+
parameters
|
|
50240
|
+
);
|
|
50241
|
+
}
|
|
50242
|
+
}
|
|
50243
|
+
|
|
50244
|
+
/**
|
|
50245
|
+
* Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned.
|
|
50246
|
+
* @example
|
|
50247
|
+
* ```js
|
|
50248
|
+
* // Before running the sample:
|
|
50249
|
+
* // - Enable the API at:
|
|
50250
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
50251
|
+
* // - Login into gcloud by running:
|
|
50252
|
+
* // ```sh
|
|
50253
|
+
* // $ gcloud auth application-default login
|
|
50254
|
+
* // ```
|
|
50255
|
+
* // - Install the npm module by running:
|
|
50256
|
+
* // ```sh
|
|
50257
|
+
* // $ npm install googleapis
|
|
50258
|
+
* // ```
|
|
50259
|
+
*
|
|
50260
|
+
* const {google} = require('googleapis');
|
|
50261
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
50262
|
+
*
|
|
50263
|
+
* async function main() {
|
|
50264
|
+
* const auth = new google.auth.GoogleAuth({
|
|
50265
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
50266
|
+
* scopes: [
|
|
50267
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
50268
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
50269
|
+
* ],
|
|
50270
|
+
* });
|
|
50271
|
+
*
|
|
50272
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
50273
|
+
* const authClient = await auth.getClient();
|
|
50274
|
+
* google.options({auth: authClient});
|
|
50275
|
+
*
|
|
50276
|
+
* // Do the magic
|
|
50277
|
+
* const res =
|
|
50278
|
+
* await discoveryengine.projects.locations.dataStores.servingConfigs.create({
|
|
50279
|
+
* // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
50280
|
+
* parent:
|
|
50281
|
+
* 'projects/my-project/locations/my-location/dataStores/my-dataStore',
|
|
50282
|
+
* // Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
|
|
50283
|
+
* servingConfigId: 'placeholder-value',
|
|
49072
50284
|
*
|
|
49073
50285
|
* // Request body metadata
|
|
49074
50286
|
* requestBody: {
|
|
49075
50287
|
* // request body parameters
|
|
49076
50288
|
* // {
|
|
49077
|
-
* // "
|
|
50289
|
+
* // "answerGenerationSpec": {},
|
|
50290
|
+
* // "boostControlIds": [],
|
|
50291
|
+
* // "createTime": "my_createTime",
|
|
50292
|
+
* // "displayName": "my_displayName",
|
|
50293
|
+
* // "dissociateControlIds": [],
|
|
50294
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
50295
|
+
* // "filterControlIds": [],
|
|
50296
|
+
* // "genericConfig": {},
|
|
50297
|
+
* // "ignoreControlIds": [],
|
|
50298
|
+
* // "mediaConfig": {},
|
|
50299
|
+
* // "modelId": "my_modelId",
|
|
49078
50300
|
* // "name": "my_name",
|
|
49079
|
-
* // "
|
|
50301
|
+
* // "onewaySynonymsControlIds": [],
|
|
50302
|
+
* // "promoteControlIds": [],
|
|
50303
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
50304
|
+
* // "redirectControlIds": [],
|
|
50305
|
+
* // "replacementControlIds": [],
|
|
50306
|
+
* // "solutionType": "my_solutionType",
|
|
50307
|
+
* // "synonymsControlIds": [],
|
|
50308
|
+
* // "updateTime": "my_updateTime"
|
|
49080
50309
|
* // }
|
|
49081
50310
|
* },
|
|
49082
|
-
* }
|
|
49083
|
-
* );
|
|
50311
|
+
* });
|
|
49084
50312
|
* console.log(res.data);
|
|
49085
50313
|
*
|
|
49086
50314
|
* // Example response
|
|
49087
50315
|
* // {
|
|
49088
|
-
* // "
|
|
49089
|
-
* // "
|
|
49090
|
-
* // "
|
|
50316
|
+
* // "answerGenerationSpec": {},
|
|
50317
|
+
* // "boostControlIds": [],
|
|
50318
|
+
* // "createTime": "my_createTime",
|
|
50319
|
+
* // "displayName": "my_displayName",
|
|
50320
|
+
* // "dissociateControlIds": [],
|
|
50321
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
50322
|
+
* // "filterControlIds": [],
|
|
50323
|
+
* // "genericConfig": {},
|
|
50324
|
+
* // "ignoreControlIds": [],
|
|
50325
|
+
* // "mediaConfig": {},
|
|
50326
|
+
* // "modelId": "my_modelId",
|
|
49091
50327
|
* // "name": "my_name",
|
|
49092
|
-
* // "
|
|
50328
|
+
* // "onewaySynonymsControlIds": [],
|
|
50329
|
+
* // "promoteControlIds": [],
|
|
50330
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
50331
|
+
* // "redirectControlIds": [],
|
|
50332
|
+
* // "replacementControlIds": [],
|
|
50333
|
+
* // "solutionType": "my_solutionType",
|
|
50334
|
+
* // "synonymsControlIds": [],
|
|
50335
|
+
* // "updateTime": "my_updateTime"
|
|
49093
50336
|
* // }
|
|
49094
50337
|
* }
|
|
49095
50338
|
*
|
|
@@ -49105,58 +50348,62 @@ export namespace discoveryengine_v1 {
|
|
|
49105
50348
|
* @param callback - Optional callback that handles the response.
|
|
49106
50349
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
49107
50350
|
*/
|
|
49108
|
-
|
|
49109
|
-
params: Params$Resource$Projects$Locations$Datastores$
|
|
50351
|
+
create(
|
|
50352
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
49110
50353
|
options: StreamMethodOptions
|
|
49111
50354
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
49112
|
-
|
|
49113
|
-
params?: Params$Resource$Projects$Locations$Datastores$
|
|
50355
|
+
create(
|
|
50356
|
+
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
49114
50357
|
options?: MethodOptions
|
|
49115
|
-
): Promise<
|
|
49116
|
-
|
|
49117
|
-
|
|
50358
|
+
): Promise<
|
|
50359
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
50360
|
+
>;
|
|
50361
|
+
create(
|
|
50362
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
49118
50363
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
49119
50364
|
callback: BodyResponseCallback<Readable>
|
|
49120
50365
|
): void;
|
|
49121
|
-
|
|
49122
|
-
params: Params$Resource$Projects$Locations$Datastores$
|
|
50366
|
+
create(
|
|
50367
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
49123
50368
|
options:
|
|
49124
50369
|
| MethodOptions
|
|
49125
|
-
| BodyResponseCallback<Schema$
|
|
49126
|
-
callback: BodyResponseCallback<Schema$
|
|
50370
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
50371
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49127
50372
|
): void;
|
|
49128
|
-
|
|
49129
|
-
params: Params$Resource$Projects$Locations$Datastores$
|
|
49130
|
-
callback: BodyResponseCallback<Schema$
|
|
50373
|
+
create(
|
|
50374
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
50375
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49131
50376
|
): void;
|
|
49132
|
-
|
|
49133
|
-
callback: BodyResponseCallback<Schema$
|
|
50377
|
+
create(
|
|
50378
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49134
50379
|
): void;
|
|
49135
|
-
|
|
50380
|
+
create(
|
|
49136
50381
|
paramsOrCallback?:
|
|
49137
|
-
| Params$Resource$Projects$Locations$Datastores$
|
|
49138
|
-
| BodyResponseCallback<Schema$
|
|
50382
|
+
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create
|
|
50383
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49139
50384
|
| BodyResponseCallback<Readable>,
|
|
49140
50385
|
optionsOrCallback?:
|
|
49141
50386
|
| MethodOptions
|
|
49142
50387
|
| StreamMethodOptions
|
|
49143
|
-
| BodyResponseCallback<Schema$
|
|
50388
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49144
50389
|
| BodyResponseCallback<Readable>,
|
|
49145
50390
|
callback?:
|
|
49146
|
-
| BodyResponseCallback<Schema$
|
|
50391
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49147
50392
|
| BodyResponseCallback<Readable>
|
|
49148
50393
|
):
|
|
49149
50394
|
| void
|
|
49150
|
-
| Promise<
|
|
50395
|
+
| Promise<
|
|
50396
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
50397
|
+
>
|
|
49151
50398
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
49152
50399
|
let params = (paramsOrCallback ||
|
|
49153
|
-
{}) as Params$Resource$Projects$Locations$Datastores$
|
|
50400
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
|
|
49154
50401
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
49155
50402
|
|
|
49156
50403
|
if (typeof paramsOrCallback === 'function') {
|
|
49157
50404
|
callback = paramsOrCallback;
|
|
49158
50405
|
params =
|
|
49159
|
-
{} as Params$Resource$Projects$Locations$Datastores$
|
|
50406
|
+
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
|
|
49160
50407
|
options = {};
|
|
49161
50408
|
}
|
|
49162
50409
|
|
|
@@ -49170,93 +50417,34 @@ export namespace discoveryengine_v1 {
|
|
|
49170
50417
|
const parameters = {
|
|
49171
50418
|
options: Object.assign(
|
|
49172
50419
|
{
|
|
49173
|
-
url: (rootUrl + '/v1/{+
|
|
49174
|
-
|
|
50420
|
+
url: (rootUrl + '/v1/{+parent}/servingConfigs').replace(
|
|
50421
|
+
/([^:]\/)\/+/g,
|
|
50422
|
+
'$1'
|
|
50423
|
+
),
|
|
50424
|
+
method: 'POST',
|
|
49175
50425
|
apiVersion: '',
|
|
49176
50426
|
},
|
|
49177
50427
|
options
|
|
49178
50428
|
),
|
|
49179
50429
|
params,
|
|
49180
|
-
requiredParams: ['
|
|
49181
|
-
pathParams: ['
|
|
50430
|
+
requiredParams: ['parent'],
|
|
50431
|
+
pathParams: ['parent'],
|
|
49182
50432
|
context: this.context,
|
|
49183
50433
|
};
|
|
49184
50434
|
if (callback) {
|
|
49185
|
-
createAPIRequest<Schema$
|
|
50435
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
49186
50436
|
parameters,
|
|
49187
50437
|
callback as BodyResponseCallback<unknown>
|
|
49188
50438
|
);
|
|
49189
50439
|
} else {
|
|
49190
|
-
return createAPIRequest<Schema$
|
|
50440
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
50441
|
+
parameters
|
|
50442
|
+
);
|
|
49191
50443
|
}
|
|
49192
50444
|
}
|
|
49193
|
-
}
|
|
49194
|
-
|
|
49195
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Create extends StandardParameters {
|
|
49196
|
-
/**
|
|
49197
|
-
* Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
|
|
49198
|
-
*/
|
|
49199
|
-
parent?: string;
|
|
49200
|
-
/**
|
|
49201
|
-
* Required. The ID to use for the Schema, which becomes the final component of the Schema.name. This field should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters.
|
|
49202
|
-
*/
|
|
49203
|
-
schemaId?: string;
|
|
49204
|
-
|
|
49205
|
-
/**
|
|
49206
|
-
* Request body metadata
|
|
49207
|
-
*/
|
|
49208
|
-
requestBody?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
49209
|
-
}
|
|
49210
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Delete extends StandardParameters {
|
|
49211
|
-
/**
|
|
49212
|
-
* Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
|
|
49213
|
-
*/
|
|
49214
|
-
name?: string;
|
|
49215
|
-
}
|
|
49216
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Get extends StandardParameters {
|
|
49217
|
-
/**
|
|
49218
|
-
* Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
|
|
49219
|
-
*/
|
|
49220
|
-
name?: string;
|
|
49221
|
-
}
|
|
49222
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$List extends StandardParameters {
|
|
49223
|
-
/**
|
|
49224
|
-
* The maximum number of Schemas to return. The service may return fewer than this value. If unspecified, at most 100 Schemas are returned. The maximum value is 1000; values above 1000 are set to 1000.
|
|
49225
|
-
*/
|
|
49226
|
-
pageSize?: number;
|
|
49227
|
-
/**
|
|
49228
|
-
* A page token, received from a previous SchemaService.ListSchemas call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SchemaService.ListSchemas must match the call that provided the page token.
|
|
49229
|
-
*/
|
|
49230
|
-
pageToken?: string;
|
|
49231
|
-
/**
|
|
49232
|
-
* Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
|
|
49233
|
-
*/
|
|
49234
|
-
parent?: string;
|
|
49235
|
-
}
|
|
49236
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Patch extends StandardParameters {
|
|
49237
|
-
/**
|
|
49238
|
-
* If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
|
|
49239
|
-
*/
|
|
49240
|
-
allowMissing?: boolean;
|
|
49241
|
-
/**
|
|
49242
|
-
* Immutable. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
|
|
49243
|
-
*/
|
|
49244
|
-
name?: string;
|
|
49245
|
-
|
|
49246
|
-
/**
|
|
49247
|
-
* Request body metadata
|
|
49248
|
-
*/
|
|
49249
|
-
requestBody?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
49250
|
-
}
|
|
49251
|
-
|
|
49252
|
-
export class Resource$Projects$Locations$Datastores$Servingconfigs {
|
|
49253
|
-
context: APIRequestContext;
|
|
49254
|
-
constructor(context: APIRequestContext) {
|
|
49255
|
-
this.context = context;
|
|
49256
|
-
}
|
|
49257
50445
|
|
|
49258
50446
|
/**
|
|
49259
|
-
*
|
|
50447
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
49260
50448
|
* @example
|
|
49261
50449
|
* ```js
|
|
49262
50450
|
* // Before running the sample:
|
|
@@ -49289,38 +50477,14 @@ export namespace discoveryengine_v1 {
|
|
|
49289
50477
|
*
|
|
49290
50478
|
* // Do the magic
|
|
49291
50479
|
* const res =
|
|
49292
|
-
* await discoveryengine.projects.locations.dataStores.servingConfigs.
|
|
49293
|
-
* // Required. The resource name of the
|
|
49294
|
-
* servingConfig
|
|
49295
|
-
* 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
49296
|
-
*
|
|
49297
|
-
* // Request body metadata
|
|
49298
|
-
* requestBody: {
|
|
49299
|
-
* // request body parameters
|
|
49300
|
-
* // {
|
|
49301
|
-
* // "answerGenerationSpec": {},
|
|
49302
|
-
* // "asynchronousMode": false,
|
|
49303
|
-
* // "endUserSpec": {},
|
|
49304
|
-
* // "groundingSpec": {},
|
|
49305
|
-
* // "query": {},
|
|
49306
|
-
* // "queryUnderstandingSpec": {},
|
|
49307
|
-
* // "relatedQuestionsSpec": {},
|
|
49308
|
-
* // "safetySpec": {},
|
|
49309
|
-
* // "searchSpec": {},
|
|
49310
|
-
* // "session": "my_session",
|
|
49311
|
-
* // "userLabels": {},
|
|
49312
|
-
* // "userPseudoId": "my_userPseudoId"
|
|
49313
|
-
* // }
|
|
49314
|
-
* },
|
|
50480
|
+
* await discoveryengine.projects.locations.dataStores.servingConfigs.delete({
|
|
50481
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
50482
|
+
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
49315
50483
|
* });
|
|
49316
50484
|
* console.log(res.data);
|
|
49317
50485
|
*
|
|
49318
50486
|
* // Example response
|
|
49319
|
-
* // {
|
|
49320
|
-
* // "answer": {},
|
|
49321
|
-
* // "answerQueryToken": "my_answerQueryToken",
|
|
49322
|
-
* // "session": {}
|
|
49323
|
-
* // }
|
|
50487
|
+
* // {}
|
|
49324
50488
|
* }
|
|
49325
50489
|
*
|
|
49326
50490
|
* main().catch(e => {
|
|
@@ -49335,62 +50499,54 @@ export namespace discoveryengine_v1 {
|
|
|
49335
50499
|
* @param callback - Optional callback that handles the response.
|
|
49336
50500
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
49337
50501
|
*/
|
|
49338
|
-
|
|
49339
|
-
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50502
|
+
delete(
|
|
50503
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
49340
50504
|
options: StreamMethodOptions
|
|
49341
50505
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
49342
|
-
|
|
49343
|
-
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50506
|
+
delete(
|
|
50507
|
+
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
49344
50508
|
options?: MethodOptions
|
|
49345
|
-
): Promise<
|
|
49346
|
-
|
|
49347
|
-
|
|
49348
|
-
answer(
|
|
49349
|
-
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
50509
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
50510
|
+
delete(
|
|
50511
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
49350
50512
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
49351
50513
|
callback: BodyResponseCallback<Readable>
|
|
49352
50514
|
): void;
|
|
49353
|
-
|
|
49354
|
-
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
49355
|
-
options:
|
|
49356
|
-
|
|
49357
|
-
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>,
|
|
49358
|
-
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
49359
|
-
): void;
|
|
49360
|
-
answer(
|
|
49361
|
-
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
49362
|
-
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50515
|
+
delete(
|
|
50516
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
50517
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
50518
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49363
50519
|
): void;
|
|
49364
|
-
|
|
49365
|
-
|
|
50520
|
+
delete(
|
|
50521
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
50522
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49366
50523
|
): void;
|
|
49367
|
-
|
|
50524
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
50525
|
+
delete(
|
|
49368
50526
|
paramsOrCallback?:
|
|
49369
|
-
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
49370
|
-
| BodyResponseCallback<Schema$
|
|
50527
|
+
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete
|
|
50528
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49371
50529
|
| BodyResponseCallback<Readable>,
|
|
49372
50530
|
optionsOrCallback?:
|
|
49373
50531
|
| MethodOptions
|
|
49374
50532
|
| StreamMethodOptions
|
|
49375
|
-
| BodyResponseCallback<Schema$
|
|
50533
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49376
50534
|
| BodyResponseCallback<Readable>,
|
|
49377
50535
|
callback?:
|
|
49378
|
-
| BodyResponseCallback<Schema$
|
|
50536
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49379
50537
|
| BodyResponseCallback<Readable>
|
|
49380
50538
|
):
|
|
49381
50539
|
| void
|
|
49382
|
-
| Promise<
|
|
49383
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
49384
|
-
>
|
|
50540
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
49385
50541
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
49386
50542
|
let params = (paramsOrCallback ||
|
|
49387
|
-
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50543
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete;
|
|
49388
50544
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
49389
50545
|
|
|
49390
50546
|
if (typeof paramsOrCallback === 'function') {
|
|
49391
50547
|
callback = paramsOrCallback;
|
|
49392
50548
|
params =
|
|
49393
|
-
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50549
|
+
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete;
|
|
49394
50550
|
options = {};
|
|
49395
50551
|
}
|
|
49396
50552
|
|
|
@@ -49404,29 +50560,24 @@ export namespace discoveryengine_v1 {
|
|
|
49404
50560
|
const parameters = {
|
|
49405
50561
|
options: Object.assign(
|
|
49406
50562
|
{
|
|
49407
|
-
url: (rootUrl + '/v1/{+
|
|
49408
|
-
|
|
49409
|
-
'$1'
|
|
49410
|
-
),
|
|
49411
|
-
method: 'POST',
|
|
50563
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
50564
|
+
method: 'DELETE',
|
|
49412
50565
|
apiVersion: '',
|
|
49413
50566
|
},
|
|
49414
50567
|
options
|
|
49415
50568
|
),
|
|
49416
50569
|
params,
|
|
49417
|
-
requiredParams: ['
|
|
49418
|
-
pathParams: ['
|
|
50570
|
+
requiredParams: ['name'],
|
|
50571
|
+
pathParams: ['name'],
|
|
49419
50572
|
context: this.context,
|
|
49420
50573
|
};
|
|
49421
50574
|
if (callback) {
|
|
49422
|
-
createAPIRequest<Schema$
|
|
50575
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
49423
50576
|
parameters,
|
|
49424
50577
|
callback as BodyResponseCallback<unknown>
|
|
49425
50578
|
);
|
|
49426
50579
|
} else {
|
|
49427
|
-
return createAPIRequest<Schema$
|
|
49428
|
-
parameters
|
|
49429
|
-
);
|
|
50580
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
49430
50581
|
}
|
|
49431
50582
|
}
|
|
49432
50583
|
|
|
@@ -50731,6 +51882,27 @@ export namespace discoveryengine_v1 {
|
|
|
50731
51882
|
*/
|
|
50732
51883
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
|
|
50733
51884
|
}
|
|
51885
|
+
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create extends StandardParameters {
|
|
51886
|
+
/**
|
|
51887
|
+
* Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
51888
|
+
*/
|
|
51889
|
+
parent?: string;
|
|
51890
|
+
/**
|
|
51891
|
+
* Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
|
|
51892
|
+
*/
|
|
51893
|
+
servingConfigId?: string;
|
|
51894
|
+
|
|
51895
|
+
/**
|
|
51896
|
+
* Request body metadata
|
|
51897
|
+
*/
|
|
51898
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1ServingConfig;
|
|
51899
|
+
}
|
|
51900
|
+
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
51901
|
+
/**
|
|
51902
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
51903
|
+
*/
|
|
51904
|
+
name?: string;
|
|
51905
|
+
}
|
|
50734
51906
|
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get extends StandardParameters {
|
|
50735
51907
|
/**
|
|
50736
51908
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|