@googleapis/discoveryengine 28.1.0 → 28.3.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 +459 -5
- package/build/v1.js +99 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha.d.ts +513 -4
- package/build/v1alpha.js +99 -0
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +478 -2
- package/build/v1beta.js +99 -0
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +1105 -381
- package/v1alpha.ts +783 -4
- package/v1beta.ts +1124 -378
package/v1.ts
CHANGED
|
@@ -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
|
*/
|
|
@@ -6171,6 +6201,10 @@ export namespace discoveryengine_v1 {
|
|
|
6171
6201
|
* Optional. Customer policy for the assistant.
|
|
6172
6202
|
*/
|
|
6173
6203
|
customerPolicy?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicy;
|
|
6204
|
+
/**
|
|
6205
|
+
* Optional. This field controls the default web grounding toggle for end users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web grounding enabled by default on UI. If true, grounding toggle will be disabled by default on UI. End users can still enable web grounding in the UI if web grounding is enabled.
|
|
6206
|
+
*/
|
|
6207
|
+
defaultWebGroundingToggleOff?: boolean | null;
|
|
6174
6208
|
/**
|
|
6175
6209
|
* Optional. Description for additional information. Expected to be shown on the configuration UI, not to the users of the assistant.
|
|
6176
6210
|
*/
|
|
@@ -8479,12 +8513,16 @@ export namespace discoveryengine_v1 {
|
|
|
8479
8513
|
* 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
8514
|
*/
|
|
8481
8515
|
regionCode?: string | null;
|
|
8516
|
+
/**
|
|
8517
|
+
* 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.
|
|
8518
|
+
*/
|
|
8519
|
+
relevanceFilterSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec;
|
|
8482
8520
|
/**
|
|
8483
8521
|
* Optional. The specification for returning the relevance score.
|
|
8484
8522
|
*/
|
|
8485
8523
|
relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec;
|
|
8486
8524
|
/**
|
|
8487
|
-
* The relevance threshold of the search results.
|
|
8525
|
+
* 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
8526
|
*/
|
|
8489
8527
|
relevanceThreshold?: string | null;
|
|
8490
8528
|
/**
|
|
@@ -8919,6 +8957,32 @@ export namespace discoveryengine_v1 {
|
|
|
8919
8957
|
*/
|
|
8920
8958
|
pinUnexpandedResults?: boolean | null;
|
|
8921
8959
|
}
|
|
8960
|
+
/**
|
|
8961
|
+
* Relevance filtering specification.
|
|
8962
|
+
*/
|
|
8963
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec {
|
|
8964
|
+
/**
|
|
8965
|
+
* Optional. Relevance filtering threshold specification for keyword search.
|
|
8966
|
+
*/
|
|
8967
|
+
keywordSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
|
|
8968
|
+
/**
|
|
8969
|
+
* Optional. Relevance filtering threshold specification for semantic search.
|
|
8970
|
+
*/
|
|
8971
|
+
semanticSearchThreshold?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec;
|
|
8972
|
+
}
|
|
8973
|
+
/**
|
|
8974
|
+
* Specification for relevance filtering on a specific sub-search.
|
|
8975
|
+
*/
|
|
8976
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec {
|
|
8977
|
+
/**
|
|
8978
|
+
* Pre-defined relevance threshold for the sub-search.
|
|
8979
|
+
*/
|
|
8980
|
+
relevanceThreshold?: string | null;
|
|
8981
|
+
/**
|
|
8982
|
+
* Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].
|
|
8983
|
+
*/
|
|
8984
|
+
semanticRelevanceThreshold?: number | null;
|
|
8985
|
+
}
|
|
8922
8986
|
/**
|
|
8923
8987
|
* The specification for returning the document relevance score.
|
|
8924
8988
|
*/
|
|
@@ -12902,7 +12966,7 @@ export namespace discoveryengine_v1 {
|
|
|
12902
12966
|
*/
|
|
12903
12967
|
relevanceScoreSpec?: Schema$GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec;
|
|
12904
12968
|
/**
|
|
12905
|
-
* The relevance threshold of the search results.
|
|
12969
|
+
* 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.
|
|
12906
12970
|
*/
|
|
12907
12971
|
relevanceThreshold?: string | null;
|
|
12908
12972
|
/**
|
|
@@ -17509,7 +17573,7 @@ export namespace discoveryengine_v1 {
|
|
|
17509
17573
|
* await discoveryengine.projects.locations.collections.updateDataConnector({
|
|
17510
17574
|
* // Output only. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
|
|
17511
17575
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataConnector',
|
|
17512
|
-
* // 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.
|
|
17576
|
+
* // 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.
|
|
17513
17577
|
* updateMask: 'placeholder-value',
|
|
17514
17578
|
*
|
|
17515
17579
|
* // Request body metadata
|
|
@@ -17727,7 +17791,7 @@ export namespace discoveryengine_v1 {
|
|
|
17727
17791
|
*/
|
|
17728
17792
|
name?: string;
|
|
17729
17793
|
/**
|
|
17730
|
-
* 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.
|
|
17794
|
+
* 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.
|
|
17731
17795
|
*/
|
|
17732
17796
|
updateMask?: string;
|
|
17733
17797
|
|
|
@@ -26412,7 +26476,7 @@ export namespace discoveryengine_v1 {
|
|
|
26412
26476
|
}
|
|
26413
26477
|
|
|
26414
26478
|
/**
|
|
26415
|
-
*
|
|
26479
|
+
* 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.
|
|
26416
26480
|
* @example
|
|
26417
26481
|
* ```js
|
|
26418
26482
|
* // Before running the sample:
|
|
@@ -26445,150 +26509,40 @@ export namespace discoveryengine_v1 {
|
|
|
26445
26509
|
*
|
|
26446
26510
|
* // Do the magic
|
|
26447
26511
|
* const res =
|
|
26448
|
-
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.
|
|
26512
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.create(
|
|
26449
26513
|
* {
|
|
26450
|
-
* // Required.
|
|
26451
|
-
*
|
|
26452
|
-
*
|
|
26453
|
-
*
|
|
26454
|
-
*
|
|
26455
|
-
*
|
|
26456
|
-
* // Example response
|
|
26457
|
-
* // {}
|
|
26458
|
-
* }
|
|
26459
|
-
*
|
|
26460
|
-
* main().catch(e => {
|
|
26461
|
-
* console.error(e);
|
|
26462
|
-
* throw e;
|
|
26463
|
-
* });
|
|
26464
|
-
*
|
|
26465
|
-
* ```
|
|
26466
|
-
*
|
|
26467
|
-
* @param params - Parameters for request
|
|
26468
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
26469
|
-
* @param callback - Optional callback that handles the response.
|
|
26470
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
26471
|
-
*/
|
|
26472
|
-
delete(
|
|
26473
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26474
|
-
options: StreamMethodOptions
|
|
26475
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
26476
|
-
delete(
|
|
26477
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26478
|
-
options?: MethodOptions
|
|
26479
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
26480
|
-
delete(
|
|
26481
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26482
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
26483
|
-
callback: BodyResponseCallback<Readable>
|
|
26484
|
-
): void;
|
|
26485
|
-
delete(
|
|
26486
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26487
|
-
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
26488
|
-
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26489
|
-
): void;
|
|
26490
|
-
delete(
|
|
26491
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26492
|
-
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26493
|
-
): void;
|
|
26494
|
-
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
26495
|
-
delete(
|
|
26496
|
-
paramsOrCallback?:
|
|
26497
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete
|
|
26498
|
-
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26499
|
-
| BodyResponseCallback<Readable>,
|
|
26500
|
-
optionsOrCallback?:
|
|
26501
|
-
| MethodOptions
|
|
26502
|
-
| StreamMethodOptions
|
|
26503
|
-
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26504
|
-
| BodyResponseCallback<Readable>,
|
|
26505
|
-
callback?:
|
|
26506
|
-
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26507
|
-
| BodyResponseCallback<Readable>
|
|
26508
|
-
):
|
|
26509
|
-
| void
|
|
26510
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
26511
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
26512
|
-
let params = (paramsOrCallback ||
|
|
26513
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
|
|
26514
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
26515
|
-
|
|
26516
|
-
if (typeof paramsOrCallback === 'function') {
|
|
26517
|
-
callback = paramsOrCallback;
|
|
26518
|
-
params =
|
|
26519
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
|
|
26520
|
-
options = {};
|
|
26521
|
-
}
|
|
26522
|
-
|
|
26523
|
-
if (typeof optionsOrCallback === 'function') {
|
|
26524
|
-
callback = optionsOrCallback;
|
|
26525
|
-
options = {};
|
|
26526
|
-
}
|
|
26527
|
-
|
|
26528
|
-
const rootUrl =
|
|
26529
|
-
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
26530
|
-
const parameters = {
|
|
26531
|
-
options: Object.assign(
|
|
26532
|
-
{
|
|
26533
|
-
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
26534
|
-
method: 'DELETE',
|
|
26535
|
-
apiVersion: '',
|
|
26536
|
-
},
|
|
26537
|
-
options
|
|
26538
|
-
),
|
|
26539
|
-
params,
|
|
26540
|
-
requiredParams: ['name'],
|
|
26541
|
-
pathParams: ['name'],
|
|
26542
|
-
context: this.context,
|
|
26543
|
-
};
|
|
26544
|
-
if (callback) {
|
|
26545
|
-
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
26546
|
-
parameters,
|
|
26547
|
-
callback as BodyResponseCallback<unknown>
|
|
26548
|
-
);
|
|
26549
|
-
} else {
|
|
26550
|
-
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
26551
|
-
}
|
|
26552
|
-
}
|
|
26553
|
-
|
|
26554
|
-
/**
|
|
26555
|
-
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
26556
|
-
* @example
|
|
26557
|
-
* ```js
|
|
26558
|
-
* // Before running the sample:
|
|
26559
|
-
* // - Enable the API at:
|
|
26560
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
26561
|
-
* // - Login into gcloud by running:
|
|
26562
|
-
* // ```sh
|
|
26563
|
-
* // $ gcloud auth application-default login
|
|
26564
|
-
* // ```
|
|
26565
|
-
* // - Install the npm module by running:
|
|
26566
|
-
* // ```sh
|
|
26567
|
-
* // $ npm install googleapis
|
|
26568
|
-
* // ```
|
|
26569
|
-
*
|
|
26570
|
-
* const {google} = require('googleapis');
|
|
26571
|
-
* const discoveryengine = google.discoveryengine('v1');
|
|
26572
|
-
*
|
|
26573
|
-
* async function main() {
|
|
26574
|
-
* const auth = new google.auth.GoogleAuth({
|
|
26575
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
26576
|
-
* scopes: [
|
|
26577
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
26578
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
26579
|
-
* ],
|
|
26580
|
-
* });
|
|
26581
|
-
*
|
|
26582
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
26583
|
-
* const authClient = await auth.getClient();
|
|
26584
|
-
* google.options({auth: authClient});
|
|
26514
|
+
* // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
26515
|
+
* parent:
|
|
26516
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
26517
|
+
* // 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+/.
|
|
26518
|
+
* servingConfigId: 'placeholder-value',
|
|
26585
26519
|
*
|
|
26586
|
-
*
|
|
26587
|
-
*
|
|
26588
|
-
*
|
|
26589
|
-
*
|
|
26590
|
-
*
|
|
26591
|
-
*
|
|
26520
|
+
* // Request body metadata
|
|
26521
|
+
* requestBody: {
|
|
26522
|
+
* // request body parameters
|
|
26523
|
+
* // {
|
|
26524
|
+
* // "answerGenerationSpec": {},
|
|
26525
|
+
* // "boostControlIds": [],
|
|
26526
|
+
* // "createTime": "my_createTime",
|
|
26527
|
+
* // "displayName": "my_displayName",
|
|
26528
|
+
* // "dissociateControlIds": [],
|
|
26529
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
26530
|
+
* // "filterControlIds": [],
|
|
26531
|
+
* // "genericConfig": {},
|
|
26532
|
+
* // "ignoreControlIds": [],
|
|
26533
|
+
* // "mediaConfig": {},
|
|
26534
|
+
* // "modelId": "my_modelId",
|
|
26535
|
+
* // "name": "my_name",
|
|
26536
|
+
* // "onewaySynonymsControlIds": [],
|
|
26537
|
+
* // "promoteControlIds": [],
|
|
26538
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
26539
|
+
* // "redirectControlIds": [],
|
|
26540
|
+
* // "replacementControlIds": [],
|
|
26541
|
+
* // "solutionType": "my_solutionType",
|
|
26542
|
+
* // "synonymsControlIds": [],
|
|
26543
|
+
* // "updateTime": "my_updateTime"
|
|
26544
|
+
* // }
|
|
26545
|
+
* },
|
|
26592
26546
|
* },
|
|
26593
26547
|
* );
|
|
26594
26548
|
* console.log(res.data);
|
|
@@ -26630,38 +26584,38 @@ export namespace discoveryengine_v1 {
|
|
|
26630
26584
|
* @param callback - Optional callback that handles the response.
|
|
26631
26585
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
26632
26586
|
*/
|
|
26633
|
-
|
|
26634
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26587
|
+
create(
|
|
26588
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26635
26589
|
options: StreamMethodOptions
|
|
26636
26590
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
26637
|
-
|
|
26638
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26591
|
+
create(
|
|
26592
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26639
26593
|
options?: MethodOptions
|
|
26640
26594
|
): Promise<
|
|
26641
26595
|
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26642
26596
|
>;
|
|
26643
|
-
|
|
26644
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26597
|
+
create(
|
|
26598
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26645
26599
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
26646
26600
|
callback: BodyResponseCallback<Readable>
|
|
26647
26601
|
): void;
|
|
26648
|
-
|
|
26649
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26602
|
+
create(
|
|
26603
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26650
26604
|
options:
|
|
26651
26605
|
| MethodOptions
|
|
26652
26606
|
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
26653
26607
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26654
26608
|
): void;
|
|
26655
|
-
|
|
26656
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26609
|
+
create(
|
|
26610
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create,
|
|
26657
26611
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26658
26612
|
): void;
|
|
26659
|
-
|
|
26613
|
+
create(
|
|
26660
26614
|
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26661
26615
|
): void;
|
|
26662
|
-
|
|
26616
|
+
create(
|
|
26663
26617
|
paramsOrCallback?:
|
|
26664
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26618
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create
|
|
26665
26619
|
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26666
26620
|
| BodyResponseCallback<Readable>,
|
|
26667
26621
|
optionsOrCallback?:
|
|
@@ -26679,13 +26633,13 @@ export namespace discoveryengine_v1 {
|
|
|
26679
26633
|
>
|
|
26680
26634
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
26681
26635
|
let params = (paramsOrCallback ||
|
|
26682
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26636
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
|
|
26683
26637
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
26684
26638
|
|
|
26685
26639
|
if (typeof paramsOrCallback === 'function') {
|
|
26686
26640
|
callback = paramsOrCallback;
|
|
26687
26641
|
params =
|
|
26688
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26642
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create;
|
|
26689
26643
|
options = {};
|
|
26690
26644
|
}
|
|
26691
26645
|
|
|
@@ -26699,15 +26653,18 @@ export namespace discoveryengine_v1 {
|
|
|
26699
26653
|
const parameters = {
|
|
26700
26654
|
options: Object.assign(
|
|
26701
26655
|
{
|
|
26702
|
-
url: (rootUrl + '/v1/{+
|
|
26703
|
-
|
|
26656
|
+
url: (rootUrl + '/v1/{+parent}/servingConfigs').replace(
|
|
26657
|
+
/([^:]\/)\/+/g,
|
|
26658
|
+
'$1'
|
|
26659
|
+
),
|
|
26660
|
+
method: 'POST',
|
|
26704
26661
|
apiVersion: '',
|
|
26705
26662
|
},
|
|
26706
26663
|
options
|
|
26707
26664
|
),
|
|
26708
26665
|
params,
|
|
26709
|
-
requiredParams: ['
|
|
26710
|
-
pathParams: ['
|
|
26666
|
+
requiredParams: ['parent'],
|
|
26667
|
+
pathParams: ['parent'],
|
|
26711
26668
|
context: this.context,
|
|
26712
26669
|
};
|
|
26713
26670
|
if (callback) {
|
|
@@ -26723,7 +26680,7 @@ export namespace discoveryengine_v1 {
|
|
|
26723
26680
|
}
|
|
26724
26681
|
|
|
26725
26682
|
/**
|
|
26726
|
-
*
|
|
26683
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
26727
26684
|
* @example
|
|
26728
26685
|
* ```js
|
|
26729
26686
|
* // Before running the sample:
|
|
@@ -26756,24 +26713,16 @@ export namespace discoveryengine_v1 {
|
|
|
26756
26713
|
*
|
|
26757
26714
|
* // Do the magic
|
|
26758
26715
|
* const res =
|
|
26759
|
-
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.
|
|
26716
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
|
|
26760
26717
|
* {
|
|
26761
|
-
* //
|
|
26762
|
-
*
|
|
26763
|
-
* // Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
|
|
26764
|
-
* pageToken: 'placeholder-value',
|
|
26765
|
-
* // Required. Full resource name of the parent resource. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
26766
|
-
* parent:
|
|
26767
|
-
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
26718
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
26719
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
26768
26720
|
* },
|
|
26769
26721
|
* );
|
|
26770
26722
|
* console.log(res.data);
|
|
26771
26723
|
*
|
|
26772
26724
|
* // Example response
|
|
26773
|
-
* // {
|
|
26774
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
26775
|
-
* // "servingConfigs": []
|
|
26776
|
-
* // }
|
|
26725
|
+
* // {}
|
|
26777
26726
|
* }
|
|
26778
26727
|
*
|
|
26779
26728
|
* main().catch(e => {
|
|
@@ -26788,62 +26737,54 @@ export namespace discoveryengine_v1 {
|
|
|
26788
26737
|
* @param callback - Optional callback that handles the response.
|
|
26789
26738
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
26790
26739
|
*/
|
|
26791
|
-
|
|
26792
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26740
|
+
delete(
|
|
26741
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26793
26742
|
options: StreamMethodOptions
|
|
26794
26743
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
26795
|
-
|
|
26796
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26744
|
+
delete(
|
|
26745
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26797
26746
|
options?: MethodOptions
|
|
26798
|
-
): Promise<
|
|
26799
|
-
|
|
26800
|
-
|
|
26801
|
-
list(
|
|
26802
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
26747
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
26748
|
+
delete(
|
|
26749
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26803
26750
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
26804
26751
|
callback: BodyResponseCallback<Readable>
|
|
26805
26752
|
): void;
|
|
26806
|
-
|
|
26807
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26808
|
-
options:
|
|
26809
|
-
|
|
26810
|
-
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>,
|
|
26811
|
-
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
26812
|
-
): void;
|
|
26813
|
-
list(
|
|
26814
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
26815
|
-
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
26753
|
+
delete(
|
|
26754
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26755
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
26756
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26816
26757
|
): void;
|
|
26817
|
-
|
|
26818
|
-
|
|
26758
|
+
delete(
|
|
26759
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26760
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26819
26761
|
): void;
|
|
26820
|
-
|
|
26762
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
26763
|
+
delete(
|
|
26821
26764
|
paramsOrCallback?:
|
|
26822
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26823
|
-
| BodyResponseCallback<Schema$
|
|
26765
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete
|
|
26766
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26824
26767
|
| BodyResponseCallback<Readable>,
|
|
26825
26768
|
optionsOrCallback?:
|
|
26826
26769
|
| MethodOptions
|
|
26827
26770
|
| StreamMethodOptions
|
|
26828
|
-
| BodyResponseCallback<Schema$
|
|
26771
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26829
26772
|
| BodyResponseCallback<Readable>,
|
|
26830
26773
|
callback?:
|
|
26831
|
-
| BodyResponseCallback<Schema$
|
|
26774
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26832
26775
|
| BodyResponseCallback<Readable>
|
|
26833
26776
|
):
|
|
26834
26777
|
| void
|
|
26835
|
-
| Promise<
|
|
26836
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
26837
|
-
>
|
|
26778
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
26838
26779
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
26839
26780
|
let params = (paramsOrCallback ||
|
|
26840
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26781
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
|
|
26841
26782
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
26842
26783
|
|
|
26843
26784
|
if (typeof paramsOrCallback === 'function') {
|
|
26844
26785
|
callback = paramsOrCallback;
|
|
26845
26786
|
params =
|
|
26846
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$
|
|
26787
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
|
|
26847
26788
|
options = {};
|
|
26848
26789
|
}
|
|
26849
26790
|
|
|
@@ -26857,34 +26798,361 @@ export namespace discoveryengine_v1 {
|
|
|
26857
26798
|
const parameters = {
|
|
26858
26799
|
options: Object.assign(
|
|
26859
26800
|
{
|
|
26860
|
-
url: (rootUrl + '/v1/{+
|
|
26861
|
-
|
|
26862
|
-
'$1'
|
|
26863
|
-
),
|
|
26864
|
-
method: 'GET',
|
|
26801
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
26802
|
+
method: 'DELETE',
|
|
26865
26803
|
apiVersion: '',
|
|
26866
26804
|
},
|
|
26867
26805
|
options
|
|
26868
26806
|
),
|
|
26869
26807
|
params,
|
|
26870
|
-
requiredParams: ['
|
|
26871
|
-
pathParams: ['
|
|
26808
|
+
requiredParams: ['name'],
|
|
26809
|
+
pathParams: ['name'],
|
|
26872
26810
|
context: this.context,
|
|
26873
26811
|
};
|
|
26874
26812
|
if (callback) {
|
|
26875
|
-
createAPIRequest<Schema$
|
|
26813
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
26876
26814
|
parameters,
|
|
26877
26815
|
callback as BodyResponseCallback<unknown>
|
|
26878
26816
|
);
|
|
26879
26817
|
} else {
|
|
26880
|
-
return createAPIRequest<Schema$
|
|
26881
|
-
parameters
|
|
26882
|
-
);
|
|
26818
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
26883
26819
|
}
|
|
26884
26820
|
}
|
|
26885
26821
|
|
|
26886
26822
|
/**
|
|
26887
|
-
*
|
|
26823
|
+
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
26824
|
+
* @example
|
|
26825
|
+
* ```js
|
|
26826
|
+
* // Before running the sample:
|
|
26827
|
+
* // - Enable the API at:
|
|
26828
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
26829
|
+
* // - Login into gcloud by running:
|
|
26830
|
+
* // ```sh
|
|
26831
|
+
* // $ gcloud auth application-default login
|
|
26832
|
+
* // ```
|
|
26833
|
+
* // - Install the npm module by running:
|
|
26834
|
+
* // ```sh
|
|
26835
|
+
* // $ npm install googleapis
|
|
26836
|
+
* // ```
|
|
26837
|
+
*
|
|
26838
|
+
* const {google} = require('googleapis');
|
|
26839
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
26840
|
+
*
|
|
26841
|
+
* async function main() {
|
|
26842
|
+
* const auth = new google.auth.GoogleAuth({
|
|
26843
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
26844
|
+
* scopes: [
|
|
26845
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
26846
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
26847
|
+
* ],
|
|
26848
|
+
* });
|
|
26849
|
+
*
|
|
26850
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
26851
|
+
* const authClient = await auth.getClient();
|
|
26852
|
+
* google.options({auth: authClient});
|
|
26853
|
+
*
|
|
26854
|
+
* // Do the magic
|
|
26855
|
+
* const res =
|
|
26856
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.get(
|
|
26857
|
+
* {
|
|
26858
|
+
* // Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
26859
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
26860
|
+
* },
|
|
26861
|
+
* );
|
|
26862
|
+
* console.log(res.data);
|
|
26863
|
+
*
|
|
26864
|
+
* // Example response
|
|
26865
|
+
* // {
|
|
26866
|
+
* // "answerGenerationSpec": {},
|
|
26867
|
+
* // "boostControlIds": [],
|
|
26868
|
+
* // "createTime": "my_createTime",
|
|
26869
|
+
* // "displayName": "my_displayName",
|
|
26870
|
+
* // "dissociateControlIds": [],
|
|
26871
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
26872
|
+
* // "filterControlIds": [],
|
|
26873
|
+
* // "genericConfig": {},
|
|
26874
|
+
* // "ignoreControlIds": [],
|
|
26875
|
+
* // "mediaConfig": {},
|
|
26876
|
+
* // "modelId": "my_modelId",
|
|
26877
|
+
* // "name": "my_name",
|
|
26878
|
+
* // "onewaySynonymsControlIds": [],
|
|
26879
|
+
* // "promoteControlIds": [],
|
|
26880
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
26881
|
+
* // "redirectControlIds": [],
|
|
26882
|
+
* // "replacementControlIds": [],
|
|
26883
|
+
* // "solutionType": "my_solutionType",
|
|
26884
|
+
* // "synonymsControlIds": [],
|
|
26885
|
+
* // "updateTime": "my_updateTime"
|
|
26886
|
+
* // }
|
|
26887
|
+
* }
|
|
26888
|
+
*
|
|
26889
|
+
* main().catch(e => {
|
|
26890
|
+
* console.error(e);
|
|
26891
|
+
* throw e;
|
|
26892
|
+
* });
|
|
26893
|
+
*
|
|
26894
|
+
* ```
|
|
26895
|
+
*
|
|
26896
|
+
* @param params - Parameters for request
|
|
26897
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
26898
|
+
* @param callback - Optional callback that handles the response.
|
|
26899
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
26900
|
+
*/
|
|
26901
|
+
get(
|
|
26902
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26903
|
+
options: StreamMethodOptions
|
|
26904
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
26905
|
+
get(
|
|
26906
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26907
|
+
options?: MethodOptions
|
|
26908
|
+
): Promise<
|
|
26909
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26910
|
+
>;
|
|
26911
|
+
get(
|
|
26912
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26913
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
26914
|
+
callback: BodyResponseCallback<Readable>
|
|
26915
|
+
): void;
|
|
26916
|
+
get(
|
|
26917
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26918
|
+
options:
|
|
26919
|
+
| MethodOptions
|
|
26920
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
26921
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26922
|
+
): void;
|
|
26923
|
+
get(
|
|
26924
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get,
|
|
26925
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26926
|
+
): void;
|
|
26927
|
+
get(
|
|
26928
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26929
|
+
): void;
|
|
26930
|
+
get(
|
|
26931
|
+
paramsOrCallback?:
|
|
26932
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get
|
|
26933
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26934
|
+
| BodyResponseCallback<Readable>,
|
|
26935
|
+
optionsOrCallback?:
|
|
26936
|
+
| MethodOptions
|
|
26937
|
+
| StreamMethodOptions
|
|
26938
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26939
|
+
| BodyResponseCallback<Readable>,
|
|
26940
|
+
callback?:
|
|
26941
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26942
|
+
| BodyResponseCallback<Readable>
|
|
26943
|
+
):
|
|
26944
|
+
| void
|
|
26945
|
+
| Promise<
|
|
26946
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
26947
|
+
>
|
|
26948
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
26949
|
+
let params = (paramsOrCallback ||
|
|
26950
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
|
|
26951
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
26952
|
+
|
|
26953
|
+
if (typeof paramsOrCallback === 'function') {
|
|
26954
|
+
callback = paramsOrCallback;
|
|
26955
|
+
params =
|
|
26956
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get;
|
|
26957
|
+
options = {};
|
|
26958
|
+
}
|
|
26959
|
+
|
|
26960
|
+
if (typeof optionsOrCallback === 'function') {
|
|
26961
|
+
callback = optionsOrCallback;
|
|
26962
|
+
options = {};
|
|
26963
|
+
}
|
|
26964
|
+
|
|
26965
|
+
const rootUrl =
|
|
26966
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
26967
|
+
const parameters = {
|
|
26968
|
+
options: Object.assign(
|
|
26969
|
+
{
|
|
26970
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
26971
|
+
method: 'GET',
|
|
26972
|
+
apiVersion: '',
|
|
26973
|
+
},
|
|
26974
|
+
options
|
|
26975
|
+
),
|
|
26976
|
+
params,
|
|
26977
|
+
requiredParams: ['name'],
|
|
26978
|
+
pathParams: ['name'],
|
|
26979
|
+
context: this.context,
|
|
26980
|
+
};
|
|
26981
|
+
if (callback) {
|
|
26982
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
26983
|
+
parameters,
|
|
26984
|
+
callback as BodyResponseCallback<unknown>
|
|
26985
|
+
);
|
|
26986
|
+
} else {
|
|
26987
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
26988
|
+
parameters
|
|
26989
|
+
);
|
|
26990
|
+
}
|
|
26991
|
+
}
|
|
26992
|
+
|
|
26993
|
+
/**
|
|
26994
|
+
* Lists all ServingConfigs linked to this dataStore.
|
|
26995
|
+
* @example
|
|
26996
|
+
* ```js
|
|
26997
|
+
* // Before running the sample:
|
|
26998
|
+
* // - Enable the API at:
|
|
26999
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
27000
|
+
* // - Login into gcloud by running:
|
|
27001
|
+
* // ```sh
|
|
27002
|
+
* // $ gcloud auth application-default login
|
|
27003
|
+
* // ```
|
|
27004
|
+
* // - Install the npm module by running:
|
|
27005
|
+
* // ```sh
|
|
27006
|
+
* // $ npm install googleapis
|
|
27007
|
+
* // ```
|
|
27008
|
+
*
|
|
27009
|
+
* const {google} = require('googleapis');
|
|
27010
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
27011
|
+
*
|
|
27012
|
+
* async function main() {
|
|
27013
|
+
* const auth = new google.auth.GoogleAuth({
|
|
27014
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
27015
|
+
* scopes: [
|
|
27016
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
27017
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
27018
|
+
* ],
|
|
27019
|
+
* });
|
|
27020
|
+
*
|
|
27021
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
27022
|
+
* const authClient = await auth.getClient();
|
|
27023
|
+
* google.options({auth: authClient});
|
|
27024
|
+
*
|
|
27025
|
+
* // Do the magic
|
|
27026
|
+
* const res =
|
|
27027
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.list(
|
|
27028
|
+
* {
|
|
27029
|
+
* // 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.
|
|
27030
|
+
* pageSize: 'placeholder-value',
|
|
27031
|
+
* // Optional. A page token, received from a previous `ListServingConfigs` call. Provide this to retrieve the subsequent page.
|
|
27032
|
+
* pageToken: 'placeholder-value',
|
|
27033
|
+
* // Required. Full resource name of the parent resource. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
27034
|
+
* parent:
|
|
27035
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
27036
|
+
* },
|
|
27037
|
+
* );
|
|
27038
|
+
* console.log(res.data);
|
|
27039
|
+
*
|
|
27040
|
+
* // Example response
|
|
27041
|
+
* // {
|
|
27042
|
+
* // "nextPageToken": "my_nextPageToken",
|
|
27043
|
+
* // "servingConfigs": []
|
|
27044
|
+
* // }
|
|
27045
|
+
* }
|
|
27046
|
+
*
|
|
27047
|
+
* main().catch(e => {
|
|
27048
|
+
* console.error(e);
|
|
27049
|
+
* throw e;
|
|
27050
|
+
* });
|
|
27051
|
+
*
|
|
27052
|
+
* ```
|
|
27053
|
+
*
|
|
27054
|
+
* @param params - Parameters for request
|
|
27055
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
27056
|
+
* @param callback - Optional callback that handles the response.
|
|
27057
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
27058
|
+
*/
|
|
27059
|
+
list(
|
|
27060
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27061
|
+
options: StreamMethodOptions
|
|
27062
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
27063
|
+
list(
|
|
27064
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27065
|
+
options?: MethodOptions
|
|
27066
|
+
): Promise<
|
|
27067
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27068
|
+
>;
|
|
27069
|
+
list(
|
|
27070
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27071
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
27072
|
+
callback: BodyResponseCallback<Readable>
|
|
27073
|
+
): void;
|
|
27074
|
+
list(
|
|
27075
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27076
|
+
options:
|
|
27077
|
+
| MethodOptions
|
|
27078
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>,
|
|
27079
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27080
|
+
): void;
|
|
27081
|
+
list(
|
|
27082
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List,
|
|
27083
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27084
|
+
): void;
|
|
27085
|
+
list(
|
|
27086
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27087
|
+
): void;
|
|
27088
|
+
list(
|
|
27089
|
+
paramsOrCallback?:
|
|
27090
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List
|
|
27091
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27092
|
+
| BodyResponseCallback<Readable>,
|
|
27093
|
+
optionsOrCallback?:
|
|
27094
|
+
| MethodOptions
|
|
27095
|
+
| StreamMethodOptions
|
|
27096
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27097
|
+
| BodyResponseCallback<Readable>,
|
|
27098
|
+
callback?:
|
|
27099
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27100
|
+
| BodyResponseCallback<Readable>
|
|
27101
|
+
):
|
|
27102
|
+
| void
|
|
27103
|
+
| Promise<
|
|
27104
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>
|
|
27105
|
+
>
|
|
27106
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
27107
|
+
let params = (paramsOrCallback ||
|
|
27108
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
|
|
27109
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
27110
|
+
|
|
27111
|
+
if (typeof paramsOrCallback === 'function') {
|
|
27112
|
+
callback = paramsOrCallback;
|
|
27113
|
+
params =
|
|
27114
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$List;
|
|
27115
|
+
options = {};
|
|
27116
|
+
}
|
|
27117
|
+
|
|
27118
|
+
if (typeof optionsOrCallback === 'function') {
|
|
27119
|
+
callback = optionsOrCallback;
|
|
27120
|
+
options = {};
|
|
27121
|
+
}
|
|
27122
|
+
|
|
27123
|
+
const rootUrl =
|
|
27124
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
27125
|
+
const parameters = {
|
|
27126
|
+
options: Object.assign(
|
|
27127
|
+
{
|
|
27128
|
+
url: (rootUrl + '/v1/{+parent}/servingConfigs').replace(
|
|
27129
|
+
/([^:]\/)\/+/g,
|
|
27130
|
+
'$1'
|
|
27131
|
+
),
|
|
27132
|
+
method: 'GET',
|
|
27133
|
+
apiVersion: '',
|
|
27134
|
+
},
|
|
27135
|
+
options
|
|
27136
|
+
),
|
|
27137
|
+
params,
|
|
27138
|
+
requiredParams: ['parent'],
|
|
27139
|
+
pathParams: ['parent'],
|
|
27140
|
+
context: this.context,
|
|
27141
|
+
};
|
|
27142
|
+
if (callback) {
|
|
27143
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>(
|
|
27144
|
+
parameters,
|
|
27145
|
+
callback as BodyResponseCallback<unknown>
|
|
27146
|
+
);
|
|
27147
|
+
} else {
|
|
27148
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ListServingConfigsResponse>(
|
|
27149
|
+
parameters
|
|
27150
|
+
);
|
|
27151
|
+
}
|
|
27152
|
+
}
|
|
27153
|
+
|
|
27154
|
+
/**
|
|
27155
|
+
* Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
26888
27156
|
* @example
|
|
26889
27157
|
* ```js
|
|
26890
27158
|
* // Before running the sample:
|
|
@@ -27860,6 +28128,21 @@ export namespace discoveryengine_v1 {
|
|
|
27860
28128
|
*/
|
|
27861
28129
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
|
|
27862
28130
|
}
|
|
28131
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Create extends StandardParameters {
|
|
28132
|
+
/**
|
|
28133
|
+
* Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
28134
|
+
*/
|
|
28135
|
+
parent?: string;
|
|
28136
|
+
/**
|
|
28137
|
+
* 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+/.
|
|
28138
|
+
*/
|
|
28139
|
+
servingConfigId?: string;
|
|
28140
|
+
|
|
28141
|
+
/**
|
|
28142
|
+
* Request body metadata
|
|
28143
|
+
*/
|
|
28144
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1ServingConfig;
|
|
28145
|
+
}
|
|
27863
28146
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
27864
28147
|
/**
|
|
27865
28148
|
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -34758,6 +35041,7 @@ export namespace discoveryengine_v1 {
|
|
|
34758
35041
|
* // request body parameters
|
|
34759
35042
|
* // {
|
|
34760
35043
|
* // "customerPolicy": {},
|
|
35044
|
+
* // "defaultWebGroundingToggleOff": false,
|
|
34761
35045
|
* // "description": "my_description",
|
|
34762
35046
|
* // "displayName": "my_displayName",
|
|
34763
35047
|
* // "enabledTools": {},
|
|
@@ -34773,6 +35057,7 @@ export namespace discoveryengine_v1 {
|
|
|
34773
35057
|
* // Example response
|
|
34774
35058
|
* // {
|
|
34775
35059
|
* // "customerPolicy": {},
|
|
35060
|
+
* // "defaultWebGroundingToggleOff": false,
|
|
34776
35061
|
* // "description": "my_description",
|
|
34777
35062
|
* // "displayName": "my_displayName",
|
|
34778
35063
|
* // "enabledTools": {},
|
|
@@ -35076,6 +35361,7 @@ export namespace discoveryengine_v1 {
|
|
|
35076
35361
|
* // Example response
|
|
35077
35362
|
* // {
|
|
35078
35363
|
* // "customerPolicy": {},
|
|
35364
|
+
* // "defaultWebGroundingToggleOff": false,
|
|
35079
35365
|
* // "description": "my_description",
|
|
35080
35366
|
* // "displayName": "my_displayName",
|
|
35081
35367
|
* // "enabledTools": {},
|
|
@@ -35398,6 +35684,7 @@ export namespace discoveryengine_v1 {
|
|
|
35398
35684
|
* // request body parameters
|
|
35399
35685
|
* // {
|
|
35400
35686
|
* // "customerPolicy": {},
|
|
35687
|
+
* // "defaultWebGroundingToggleOff": false,
|
|
35401
35688
|
* // "description": "my_description",
|
|
35402
35689
|
* // "displayName": "my_displayName",
|
|
35403
35690
|
* // "enabledTools": {},
|
|
@@ -35413,6 +35700,7 @@ export namespace discoveryengine_v1 {
|
|
|
35413
35700
|
* // Example response
|
|
35414
35701
|
* // {
|
|
35415
35702
|
* // "customerPolicy": {},
|
|
35703
|
+
* // "defaultWebGroundingToggleOff": false,
|
|
35416
35704
|
* // "description": "my_description",
|
|
35417
35705
|
* // "displayName": "my_displayName",
|
|
35418
35706
|
* // "enabledTools": {},
|
|
@@ -38786,6 +39074,210 @@ export namespace discoveryengine_v1 {
|
|
|
38786
39074
|
}
|
|
38787
39075
|
}
|
|
38788
39076
|
|
|
39077
|
+
/**
|
|
39078
|
+
* 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.
|
|
39079
|
+
* @example
|
|
39080
|
+
* ```js
|
|
39081
|
+
* // Before running the sample:
|
|
39082
|
+
* // - Enable the API at:
|
|
39083
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
39084
|
+
* // - Login into gcloud by running:
|
|
39085
|
+
* // ```sh
|
|
39086
|
+
* // $ gcloud auth application-default login
|
|
39087
|
+
* // ```
|
|
39088
|
+
* // - Install the npm module by running:
|
|
39089
|
+
* // ```sh
|
|
39090
|
+
* // $ npm install googleapis
|
|
39091
|
+
* // ```
|
|
39092
|
+
*
|
|
39093
|
+
* const {google} = require('googleapis');
|
|
39094
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
39095
|
+
*
|
|
39096
|
+
* async function main() {
|
|
39097
|
+
* const auth = new google.auth.GoogleAuth({
|
|
39098
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
39099
|
+
* scopes: [
|
|
39100
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
39101
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
39102
|
+
* ],
|
|
39103
|
+
* });
|
|
39104
|
+
*
|
|
39105
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
39106
|
+
* const authClient = await auth.getClient();
|
|
39107
|
+
* google.options({auth: authClient});
|
|
39108
|
+
*
|
|
39109
|
+
* // Do the magic
|
|
39110
|
+
* const res =
|
|
39111
|
+
* await discoveryengine.projects.locations.collections.engines.servingConfigs.create(
|
|
39112
|
+
* {
|
|
39113
|
+
* // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
39114
|
+
* parent:
|
|
39115
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine',
|
|
39116
|
+
* // 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+/.
|
|
39117
|
+
* servingConfigId: 'placeholder-value',
|
|
39118
|
+
*
|
|
39119
|
+
* // Request body metadata
|
|
39120
|
+
* requestBody: {
|
|
39121
|
+
* // request body parameters
|
|
39122
|
+
* // {
|
|
39123
|
+
* // "answerGenerationSpec": {},
|
|
39124
|
+
* // "boostControlIds": [],
|
|
39125
|
+
* // "createTime": "my_createTime",
|
|
39126
|
+
* // "displayName": "my_displayName",
|
|
39127
|
+
* // "dissociateControlIds": [],
|
|
39128
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
39129
|
+
* // "filterControlIds": [],
|
|
39130
|
+
* // "genericConfig": {},
|
|
39131
|
+
* // "ignoreControlIds": [],
|
|
39132
|
+
* // "mediaConfig": {},
|
|
39133
|
+
* // "modelId": "my_modelId",
|
|
39134
|
+
* // "name": "my_name",
|
|
39135
|
+
* // "onewaySynonymsControlIds": [],
|
|
39136
|
+
* // "promoteControlIds": [],
|
|
39137
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
39138
|
+
* // "redirectControlIds": [],
|
|
39139
|
+
* // "replacementControlIds": [],
|
|
39140
|
+
* // "solutionType": "my_solutionType",
|
|
39141
|
+
* // "synonymsControlIds": [],
|
|
39142
|
+
* // "updateTime": "my_updateTime"
|
|
39143
|
+
* // }
|
|
39144
|
+
* },
|
|
39145
|
+
* },
|
|
39146
|
+
* );
|
|
39147
|
+
* console.log(res.data);
|
|
39148
|
+
*
|
|
39149
|
+
* // Example response
|
|
39150
|
+
* // {
|
|
39151
|
+
* // "answerGenerationSpec": {},
|
|
39152
|
+
* // "boostControlIds": [],
|
|
39153
|
+
* // "createTime": "my_createTime",
|
|
39154
|
+
* // "displayName": "my_displayName",
|
|
39155
|
+
* // "dissociateControlIds": [],
|
|
39156
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
39157
|
+
* // "filterControlIds": [],
|
|
39158
|
+
* // "genericConfig": {},
|
|
39159
|
+
* // "ignoreControlIds": [],
|
|
39160
|
+
* // "mediaConfig": {},
|
|
39161
|
+
* // "modelId": "my_modelId",
|
|
39162
|
+
* // "name": "my_name",
|
|
39163
|
+
* // "onewaySynonymsControlIds": [],
|
|
39164
|
+
* // "promoteControlIds": [],
|
|
39165
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
39166
|
+
* // "redirectControlIds": [],
|
|
39167
|
+
* // "replacementControlIds": [],
|
|
39168
|
+
* // "solutionType": "my_solutionType",
|
|
39169
|
+
* // "synonymsControlIds": [],
|
|
39170
|
+
* // "updateTime": "my_updateTime"
|
|
39171
|
+
* // }
|
|
39172
|
+
* }
|
|
39173
|
+
*
|
|
39174
|
+
* main().catch(e => {
|
|
39175
|
+
* console.error(e);
|
|
39176
|
+
* throw e;
|
|
39177
|
+
* });
|
|
39178
|
+
*
|
|
39179
|
+
* ```
|
|
39180
|
+
*
|
|
39181
|
+
* @param params - Parameters for request
|
|
39182
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
39183
|
+
* @param callback - Optional callback that handles the response.
|
|
39184
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
39185
|
+
*/
|
|
39186
|
+
create(
|
|
39187
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
39188
|
+
options: StreamMethodOptions
|
|
39189
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
39190
|
+
create(
|
|
39191
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
39192
|
+
options?: MethodOptions
|
|
39193
|
+
): Promise<
|
|
39194
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
39195
|
+
>;
|
|
39196
|
+
create(
|
|
39197
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
39198
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
39199
|
+
callback: BodyResponseCallback<Readable>
|
|
39200
|
+
): void;
|
|
39201
|
+
create(
|
|
39202
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
39203
|
+
options:
|
|
39204
|
+
| MethodOptions
|
|
39205
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
39206
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
39207
|
+
): void;
|
|
39208
|
+
create(
|
|
39209
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create,
|
|
39210
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
39211
|
+
): void;
|
|
39212
|
+
create(
|
|
39213
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
39214
|
+
): void;
|
|
39215
|
+
create(
|
|
39216
|
+
paramsOrCallback?:
|
|
39217
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create
|
|
39218
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
39219
|
+
| BodyResponseCallback<Readable>,
|
|
39220
|
+
optionsOrCallback?:
|
|
39221
|
+
| MethodOptions
|
|
39222
|
+
| StreamMethodOptions
|
|
39223
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
39224
|
+
| BodyResponseCallback<Readable>,
|
|
39225
|
+
callback?:
|
|
39226
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
39227
|
+
| BodyResponseCallback<Readable>
|
|
39228
|
+
):
|
|
39229
|
+
| void
|
|
39230
|
+
| Promise<
|
|
39231
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
39232
|
+
>
|
|
39233
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
39234
|
+
let params = (paramsOrCallback ||
|
|
39235
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
|
|
39236
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
39237
|
+
|
|
39238
|
+
if (typeof paramsOrCallback === 'function') {
|
|
39239
|
+
callback = paramsOrCallback;
|
|
39240
|
+
params =
|
|
39241
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create;
|
|
39242
|
+
options = {};
|
|
39243
|
+
}
|
|
39244
|
+
|
|
39245
|
+
if (typeof optionsOrCallback === 'function') {
|
|
39246
|
+
callback = optionsOrCallback;
|
|
39247
|
+
options = {};
|
|
39248
|
+
}
|
|
39249
|
+
|
|
39250
|
+
const rootUrl =
|
|
39251
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
39252
|
+
const parameters = {
|
|
39253
|
+
options: Object.assign(
|
|
39254
|
+
{
|
|
39255
|
+
url: (rootUrl + '/v1/{+parent}/servingConfigs').replace(
|
|
39256
|
+
/([^:]\/)\/+/g,
|
|
39257
|
+
'$1'
|
|
39258
|
+
),
|
|
39259
|
+
method: 'POST',
|
|
39260
|
+
apiVersion: '',
|
|
39261
|
+
},
|
|
39262
|
+
options
|
|
39263
|
+
),
|
|
39264
|
+
params,
|
|
39265
|
+
requiredParams: ['parent'],
|
|
39266
|
+
pathParams: ['parent'],
|
|
39267
|
+
context: this.context,
|
|
39268
|
+
};
|
|
39269
|
+
if (callback) {
|
|
39270
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
39271
|
+
parameters,
|
|
39272
|
+
callback as BodyResponseCallback<unknown>
|
|
39273
|
+
);
|
|
39274
|
+
} else {
|
|
39275
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
39276
|
+
parameters
|
|
39277
|
+
);
|
|
39278
|
+
}
|
|
39279
|
+
}
|
|
39280
|
+
|
|
38789
39281
|
/**
|
|
38790
39282
|
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
38791
39283
|
* @example
|
|
@@ -40235,6 +40727,21 @@ export namespace discoveryengine_v1 {
|
|
|
40235
40727
|
*/
|
|
40236
40728
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
|
|
40237
40729
|
}
|
|
40730
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Create extends StandardParameters {
|
|
40731
|
+
/**
|
|
40732
|
+
* Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
40733
|
+
*/
|
|
40734
|
+
parent?: string;
|
|
40735
|
+
/**
|
|
40736
|
+
* 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+/.
|
|
40737
|
+
*/
|
|
40738
|
+
servingConfigId?: string;
|
|
40739
|
+
|
|
40740
|
+
/**
|
|
40741
|
+
* Request body metadata
|
|
40742
|
+
*/
|
|
40743
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1ServingConfig;
|
|
40744
|
+
}
|
|
40238
40745
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
|
|
40239
40746
|
/**
|
|
40240
40747
|
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -49376,33 +49883,263 @@ export namespace discoveryengine_v1 {
|
|
|
49376
49883
|
* google.options({auth: authClient});
|
|
49377
49884
|
*
|
|
49378
49885
|
* // Do the magic
|
|
49379
|
-
* const res = await discoveryengine.projects.locations.dataStores.schemas.patch(
|
|
49380
|
-
* {
|
|
49381
|
-
* // If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
|
|
49382
|
-
* allowMissing: 'placeholder-value',
|
|
49383
|
-
* // 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.
|
|
49384
|
-
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/schemas/my-schema',
|
|
49886
|
+
* const res = await discoveryengine.projects.locations.dataStores.schemas.patch(
|
|
49887
|
+
* {
|
|
49888
|
+
* // If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
|
|
49889
|
+
* allowMissing: 'placeholder-value',
|
|
49890
|
+
* // 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.
|
|
49891
|
+
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/schemas/my-schema',
|
|
49892
|
+
*
|
|
49893
|
+
* // Request body metadata
|
|
49894
|
+
* requestBody: {
|
|
49895
|
+
* // request body parameters
|
|
49896
|
+
* // {
|
|
49897
|
+
* // "jsonSchema": "my_jsonSchema",
|
|
49898
|
+
* // "name": "my_name",
|
|
49899
|
+
* // "structSchema": {}
|
|
49900
|
+
* // }
|
|
49901
|
+
* },
|
|
49902
|
+
* },
|
|
49903
|
+
* );
|
|
49904
|
+
* console.log(res.data);
|
|
49905
|
+
*
|
|
49906
|
+
* // Example response
|
|
49907
|
+
* // {
|
|
49908
|
+
* // "done": false,
|
|
49909
|
+
* // "error": {},
|
|
49910
|
+
* // "metadata": {},
|
|
49911
|
+
* // "name": "my_name",
|
|
49912
|
+
* // "response": {}
|
|
49913
|
+
* // }
|
|
49914
|
+
* }
|
|
49915
|
+
*
|
|
49916
|
+
* main().catch(e => {
|
|
49917
|
+
* console.error(e);
|
|
49918
|
+
* throw e;
|
|
49919
|
+
* });
|
|
49920
|
+
*
|
|
49921
|
+
* ```
|
|
49922
|
+
*
|
|
49923
|
+
* @param params - Parameters for request
|
|
49924
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
49925
|
+
* @param callback - Optional callback that handles the response.
|
|
49926
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
49927
|
+
*/
|
|
49928
|
+
patch(
|
|
49929
|
+
params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49930
|
+
options: StreamMethodOptions
|
|
49931
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
49932
|
+
patch(
|
|
49933
|
+
params?: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49934
|
+
options?: MethodOptions
|
|
49935
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
|
|
49936
|
+
patch(
|
|
49937
|
+
params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49938
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
49939
|
+
callback: BodyResponseCallback<Readable>
|
|
49940
|
+
): void;
|
|
49941
|
+
patch(
|
|
49942
|
+
params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49943
|
+
options:
|
|
49944
|
+
| MethodOptions
|
|
49945
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
49946
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49947
|
+
): void;
|
|
49948
|
+
patch(
|
|
49949
|
+
params: Params$Resource$Projects$Locations$Datastores$Schemas$Patch,
|
|
49950
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49951
|
+
): void;
|
|
49952
|
+
patch(
|
|
49953
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49954
|
+
): void;
|
|
49955
|
+
patch(
|
|
49956
|
+
paramsOrCallback?:
|
|
49957
|
+
| Params$Resource$Projects$Locations$Datastores$Schemas$Patch
|
|
49958
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49959
|
+
| BodyResponseCallback<Readable>,
|
|
49960
|
+
optionsOrCallback?:
|
|
49961
|
+
| MethodOptions
|
|
49962
|
+
| StreamMethodOptions
|
|
49963
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49964
|
+
| BodyResponseCallback<Readable>,
|
|
49965
|
+
callback?:
|
|
49966
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
49967
|
+
| BodyResponseCallback<Readable>
|
|
49968
|
+
):
|
|
49969
|
+
| void
|
|
49970
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
|
|
49971
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
49972
|
+
let params = (paramsOrCallback ||
|
|
49973
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Schemas$Patch;
|
|
49974
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
49975
|
+
|
|
49976
|
+
if (typeof paramsOrCallback === 'function') {
|
|
49977
|
+
callback = paramsOrCallback;
|
|
49978
|
+
params =
|
|
49979
|
+
{} as Params$Resource$Projects$Locations$Datastores$Schemas$Patch;
|
|
49980
|
+
options = {};
|
|
49981
|
+
}
|
|
49982
|
+
|
|
49983
|
+
if (typeof optionsOrCallback === 'function') {
|
|
49984
|
+
callback = optionsOrCallback;
|
|
49985
|
+
options = {};
|
|
49986
|
+
}
|
|
49987
|
+
|
|
49988
|
+
const rootUrl =
|
|
49989
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
49990
|
+
const parameters = {
|
|
49991
|
+
options: Object.assign(
|
|
49992
|
+
{
|
|
49993
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
49994
|
+
method: 'PATCH',
|
|
49995
|
+
apiVersion: '',
|
|
49996
|
+
},
|
|
49997
|
+
options
|
|
49998
|
+
),
|
|
49999
|
+
params,
|
|
50000
|
+
requiredParams: ['name'],
|
|
50001
|
+
pathParams: ['name'],
|
|
50002
|
+
context: this.context,
|
|
50003
|
+
};
|
|
50004
|
+
if (callback) {
|
|
50005
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
50006
|
+
parameters,
|
|
50007
|
+
callback as BodyResponseCallback<unknown>
|
|
50008
|
+
);
|
|
50009
|
+
} else {
|
|
50010
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
50011
|
+
}
|
|
50012
|
+
}
|
|
50013
|
+
}
|
|
50014
|
+
|
|
50015
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Create extends StandardParameters {
|
|
50016
|
+
/**
|
|
50017
|
+
* Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
|
|
50018
|
+
*/
|
|
50019
|
+
parent?: string;
|
|
50020
|
+
/**
|
|
50021
|
+
* 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.
|
|
50022
|
+
*/
|
|
50023
|
+
schemaId?: string;
|
|
50024
|
+
|
|
50025
|
+
/**
|
|
50026
|
+
* Request body metadata
|
|
50027
|
+
*/
|
|
50028
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
50029
|
+
}
|
|
50030
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Delete extends StandardParameters {
|
|
50031
|
+
/**
|
|
50032
|
+
* Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
|
|
50033
|
+
*/
|
|
50034
|
+
name?: string;
|
|
50035
|
+
}
|
|
50036
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Get extends StandardParameters {
|
|
50037
|
+
/**
|
|
50038
|
+
* Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
|
|
50039
|
+
*/
|
|
50040
|
+
name?: string;
|
|
50041
|
+
}
|
|
50042
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$List extends StandardParameters {
|
|
50043
|
+
/**
|
|
50044
|
+
* 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.
|
|
50045
|
+
*/
|
|
50046
|
+
pageSize?: number;
|
|
50047
|
+
/**
|
|
50048
|
+
* 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.
|
|
50049
|
+
*/
|
|
50050
|
+
pageToken?: string;
|
|
50051
|
+
/**
|
|
50052
|
+
* Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
|
|
50053
|
+
*/
|
|
50054
|
+
parent?: string;
|
|
50055
|
+
}
|
|
50056
|
+
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Patch extends StandardParameters {
|
|
50057
|
+
/**
|
|
50058
|
+
* If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
|
|
50059
|
+
*/
|
|
50060
|
+
allowMissing?: boolean;
|
|
50061
|
+
/**
|
|
50062
|
+
* 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.
|
|
50063
|
+
*/
|
|
50064
|
+
name?: string;
|
|
50065
|
+
|
|
50066
|
+
/**
|
|
50067
|
+
* Request body metadata
|
|
50068
|
+
*/
|
|
50069
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
50070
|
+
}
|
|
50071
|
+
|
|
50072
|
+
export class Resource$Projects$Locations$Datastores$Servingconfigs {
|
|
50073
|
+
context: APIRequestContext;
|
|
50074
|
+
constructor(context: APIRequestContext) {
|
|
50075
|
+
this.context = context;
|
|
50076
|
+
}
|
|
50077
|
+
|
|
50078
|
+
/**
|
|
50079
|
+
* Answer query method.
|
|
50080
|
+
* @example
|
|
50081
|
+
* ```js
|
|
50082
|
+
* // Before running the sample:
|
|
50083
|
+
* // - Enable the API at:
|
|
50084
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
50085
|
+
* // - Login into gcloud by running:
|
|
50086
|
+
* // ```sh
|
|
50087
|
+
* // $ gcloud auth application-default login
|
|
50088
|
+
* // ```
|
|
50089
|
+
* // - Install the npm module by running:
|
|
50090
|
+
* // ```sh
|
|
50091
|
+
* // $ npm install googleapis
|
|
50092
|
+
* // ```
|
|
50093
|
+
*
|
|
50094
|
+
* const {google} = require('googleapis');
|
|
50095
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
50096
|
+
*
|
|
50097
|
+
* async function main() {
|
|
50098
|
+
* const auth = new google.auth.GoogleAuth({
|
|
50099
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
50100
|
+
* scopes: [
|
|
50101
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
50102
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
50103
|
+
* ],
|
|
50104
|
+
* });
|
|
50105
|
+
*
|
|
50106
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
50107
|
+
* const authClient = await auth.getClient();
|
|
50108
|
+
* google.options({auth: authClient});
|
|
50109
|
+
*
|
|
50110
|
+
* // Do the magic
|
|
50111
|
+
* const res =
|
|
50112
|
+
* await discoveryengine.projects.locations.dataStores.servingConfigs.answer({
|
|
50113
|
+
* // 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.
|
|
50114
|
+
* servingConfig:
|
|
50115
|
+
* 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
49385
50116
|
*
|
|
49386
50117
|
* // Request body metadata
|
|
49387
50118
|
* requestBody: {
|
|
49388
50119
|
* // request body parameters
|
|
49389
50120
|
* // {
|
|
49390
|
-
* // "
|
|
49391
|
-
* // "
|
|
49392
|
-
* // "
|
|
50121
|
+
* // "answerGenerationSpec": {},
|
|
50122
|
+
* // "asynchronousMode": false,
|
|
50123
|
+
* // "endUserSpec": {},
|
|
50124
|
+
* // "groundingSpec": {},
|
|
50125
|
+
* // "query": {},
|
|
50126
|
+
* // "queryUnderstandingSpec": {},
|
|
50127
|
+
* // "relatedQuestionsSpec": {},
|
|
50128
|
+
* // "safetySpec": {},
|
|
50129
|
+
* // "searchSpec": {},
|
|
50130
|
+
* // "session": "my_session",
|
|
50131
|
+
* // "userLabels": {},
|
|
50132
|
+
* // "userPseudoId": "my_userPseudoId"
|
|
49393
50133
|
* // }
|
|
49394
50134
|
* },
|
|
49395
|
-
* }
|
|
49396
|
-
* );
|
|
50135
|
+
* });
|
|
49397
50136
|
* console.log(res.data);
|
|
49398
50137
|
*
|
|
49399
50138
|
* // Example response
|
|
49400
50139
|
* // {
|
|
49401
|
-
* // "
|
|
49402
|
-
* // "
|
|
49403
|
-
* // "
|
|
49404
|
-
* // "name": "my_name",
|
|
49405
|
-
* // "response": {}
|
|
50140
|
+
* // "answer": {},
|
|
50141
|
+
* // "answerQueryToken": "my_answerQueryToken",
|
|
50142
|
+
* // "session": {}
|
|
49406
50143
|
* // }
|
|
49407
50144
|
* }
|
|
49408
50145
|
*
|
|
@@ -49418,58 +50155,62 @@ export namespace discoveryengine_v1 {
|
|
|
49418
50155
|
* @param callback - Optional callback that handles the response.
|
|
49419
50156
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
49420
50157
|
*/
|
|
49421
|
-
|
|
49422
|
-
params: Params$Resource$Projects$Locations$Datastores$
|
|
50158
|
+
answer(
|
|
50159
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
49423
50160
|
options: StreamMethodOptions
|
|
49424
50161
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
49425
|
-
|
|
49426
|
-
params?: Params$Resource$Projects$Locations$Datastores$
|
|
50162
|
+
answer(
|
|
50163
|
+
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
49427
50164
|
options?: MethodOptions
|
|
49428
|
-
): Promise<
|
|
49429
|
-
|
|
49430
|
-
|
|
50165
|
+
): Promise<
|
|
50166
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50167
|
+
>;
|
|
50168
|
+
answer(
|
|
50169
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
49431
50170
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
49432
50171
|
callback: BodyResponseCallback<Readable>
|
|
49433
50172
|
): void;
|
|
49434
|
-
|
|
49435
|
-
params: Params$Resource$Projects$Locations$Datastores$
|
|
50173
|
+
answer(
|
|
50174
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
49436
50175
|
options:
|
|
49437
50176
|
| MethodOptions
|
|
49438
|
-
| BodyResponseCallback<Schema$
|
|
49439
|
-
callback: BodyResponseCallback<Schema$
|
|
50177
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>,
|
|
50178
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
49440
50179
|
): void;
|
|
49441
|
-
|
|
49442
|
-
params: Params$Resource$Projects$Locations$Datastores$
|
|
49443
|
-
callback: BodyResponseCallback<Schema$
|
|
50180
|
+
answer(
|
|
50181
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer,
|
|
50182
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
49444
50183
|
): void;
|
|
49445
|
-
|
|
49446
|
-
callback: BodyResponseCallback<Schema$
|
|
50184
|
+
answer(
|
|
50185
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
49447
50186
|
): void;
|
|
49448
|
-
|
|
50187
|
+
answer(
|
|
49449
50188
|
paramsOrCallback?:
|
|
49450
|
-
| Params$Resource$Projects$Locations$Datastores$
|
|
49451
|
-
| BodyResponseCallback<Schema$
|
|
50189
|
+
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer
|
|
50190
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
49452
50191
|
| BodyResponseCallback<Readable>,
|
|
49453
50192
|
optionsOrCallback?:
|
|
49454
50193
|
| MethodOptions
|
|
49455
50194
|
| StreamMethodOptions
|
|
49456
|
-
| BodyResponseCallback<Schema$
|
|
50195
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
49457
50196
|
| BodyResponseCallback<Readable>,
|
|
49458
50197
|
callback?:
|
|
49459
|
-
| BodyResponseCallback<Schema$
|
|
50198
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
49460
50199
|
| BodyResponseCallback<Readable>
|
|
49461
50200
|
):
|
|
49462
50201
|
| void
|
|
49463
|
-
| Promise<
|
|
50202
|
+
| Promise<
|
|
50203
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>
|
|
50204
|
+
>
|
|
49464
50205
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
49465
50206
|
let params = (paramsOrCallback ||
|
|
49466
|
-
{}) as Params$Resource$Projects$Locations$Datastores$
|
|
50207
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer;
|
|
49467
50208
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
49468
50209
|
|
|
49469
50210
|
if (typeof paramsOrCallback === 'function') {
|
|
49470
50211
|
callback = paramsOrCallback;
|
|
49471
50212
|
params =
|
|
49472
|
-
{} as Params$Resource$Projects$Locations$Datastores$
|
|
50213
|
+
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer;
|
|
49473
50214
|
options = {};
|
|
49474
50215
|
}
|
|
49475
50216
|
|
|
@@ -49483,93 +50224,34 @@ export namespace discoveryengine_v1 {
|
|
|
49483
50224
|
const parameters = {
|
|
49484
50225
|
options: Object.assign(
|
|
49485
50226
|
{
|
|
49486
|
-
url: (rootUrl + '/v1/{+
|
|
49487
|
-
|
|
50227
|
+
url: (rootUrl + '/v1/{+servingConfig}:answer').replace(
|
|
50228
|
+
/([^:]\/)\/+/g,
|
|
50229
|
+
'$1'
|
|
50230
|
+
),
|
|
50231
|
+
method: 'POST',
|
|
49488
50232
|
apiVersion: '',
|
|
49489
50233
|
},
|
|
49490
50234
|
options
|
|
49491
50235
|
),
|
|
49492
50236
|
params,
|
|
49493
|
-
requiredParams: ['
|
|
49494
|
-
pathParams: ['
|
|
50237
|
+
requiredParams: ['servingConfig'],
|
|
50238
|
+
pathParams: ['servingConfig'],
|
|
49495
50239
|
context: this.context,
|
|
49496
50240
|
};
|
|
49497
50241
|
if (callback) {
|
|
49498
|
-
createAPIRequest<Schema$
|
|
50242
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>(
|
|
49499
50243
|
parameters,
|
|
49500
50244
|
callback as BodyResponseCallback<unknown>
|
|
49501
50245
|
);
|
|
49502
50246
|
} else {
|
|
49503
|
-
return createAPIRequest<Schema$
|
|
50247
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1AnswerQueryResponse>(
|
|
50248
|
+
parameters
|
|
50249
|
+
);
|
|
49504
50250
|
}
|
|
49505
50251
|
}
|
|
49506
|
-
}
|
|
49507
50252
|
|
|
49508
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Create extends StandardParameters {
|
|
49509
50253
|
/**
|
|
49510
|
-
*
|
|
49511
|
-
*/
|
|
49512
|
-
parent?: string;
|
|
49513
|
-
/**
|
|
49514
|
-
* 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.
|
|
49515
|
-
*/
|
|
49516
|
-
schemaId?: string;
|
|
49517
|
-
|
|
49518
|
-
/**
|
|
49519
|
-
* Request body metadata
|
|
49520
|
-
*/
|
|
49521
|
-
requestBody?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
49522
|
-
}
|
|
49523
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Delete extends StandardParameters {
|
|
49524
|
-
/**
|
|
49525
|
-
* Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
|
|
49526
|
-
*/
|
|
49527
|
-
name?: string;
|
|
49528
|
-
}
|
|
49529
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Get extends StandardParameters {
|
|
49530
|
-
/**
|
|
49531
|
-
* Required. The full resource name of the schema, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/schemas/{schema\}`.
|
|
49532
|
-
*/
|
|
49533
|
-
name?: string;
|
|
49534
|
-
}
|
|
49535
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$List extends StandardParameters {
|
|
49536
|
-
/**
|
|
49537
|
-
* 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.
|
|
49538
|
-
*/
|
|
49539
|
-
pageSize?: number;
|
|
49540
|
-
/**
|
|
49541
|
-
* 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.
|
|
49542
|
-
*/
|
|
49543
|
-
pageToken?: string;
|
|
49544
|
-
/**
|
|
49545
|
-
* Required. The parent data store resource name, in the format of `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}`.
|
|
49546
|
-
*/
|
|
49547
|
-
parent?: string;
|
|
49548
|
-
}
|
|
49549
|
-
export interface Params$Resource$Projects$Locations$Datastores$Schemas$Patch extends StandardParameters {
|
|
49550
|
-
/**
|
|
49551
|
-
* If set to true, and the Schema is not found, a new Schema is created. In this situation, `update_mask` is ignored.
|
|
49552
|
-
*/
|
|
49553
|
-
allowMissing?: boolean;
|
|
49554
|
-
/**
|
|
49555
|
-
* 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.
|
|
49556
|
-
*/
|
|
49557
|
-
name?: string;
|
|
49558
|
-
|
|
49559
|
-
/**
|
|
49560
|
-
* Request body metadata
|
|
49561
|
-
*/
|
|
49562
|
-
requestBody?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
49563
|
-
}
|
|
49564
|
-
|
|
49565
|
-
export class Resource$Projects$Locations$Datastores$Servingconfigs {
|
|
49566
|
-
context: APIRequestContext;
|
|
49567
|
-
constructor(context: APIRequestContext) {
|
|
49568
|
-
this.context = context;
|
|
49569
|
-
}
|
|
49570
|
-
|
|
49571
|
-
/**
|
|
49572
|
-
* Answer query method.
|
|
50254
|
+
* 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.
|
|
49573
50255
|
* @example
|
|
49574
50256
|
* ```js
|
|
49575
50257
|
* // Before running the sample:
|
|
@@ -49602,27 +50284,37 @@ export namespace discoveryengine_v1 {
|
|
|
49602
50284
|
*
|
|
49603
50285
|
* // Do the magic
|
|
49604
50286
|
* const res =
|
|
49605
|
-
* await discoveryengine.projects.locations.dataStores.servingConfigs.
|
|
49606
|
-
* // Required.
|
|
49607
|
-
*
|
|
49608
|
-
* 'projects/my-project/locations/my-location/dataStores/my-dataStore
|
|
50287
|
+
* await discoveryengine.projects.locations.dataStores.servingConfigs.create({
|
|
50288
|
+
* // Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
50289
|
+
* parent:
|
|
50290
|
+
* 'projects/my-project/locations/my-location/dataStores/my-dataStore',
|
|
50291
|
+
* // 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+/.
|
|
50292
|
+
* servingConfigId: 'placeholder-value',
|
|
49609
50293
|
*
|
|
49610
50294
|
* // Request body metadata
|
|
49611
50295
|
* requestBody: {
|
|
49612
50296
|
* // request body parameters
|
|
49613
50297
|
* // {
|
|
49614
50298
|
* // "answerGenerationSpec": {},
|
|
49615
|
-
* // "
|
|
49616
|
-
* // "
|
|
49617
|
-
* // "
|
|
49618
|
-
* // "
|
|
49619
|
-
* // "
|
|
49620
|
-
* // "
|
|
49621
|
-
* // "
|
|
49622
|
-
* // "
|
|
49623
|
-
* // "
|
|
49624
|
-
* // "
|
|
49625
|
-
* // "
|
|
50299
|
+
* // "boostControlIds": [],
|
|
50300
|
+
* // "createTime": "my_createTime",
|
|
50301
|
+
* // "displayName": "my_displayName",
|
|
50302
|
+
* // "dissociateControlIds": [],
|
|
50303
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
50304
|
+
* // "filterControlIds": [],
|
|
50305
|
+
* // "genericConfig": {},
|
|
50306
|
+
* // "ignoreControlIds": [],
|
|
50307
|
+
* // "mediaConfig": {},
|
|
50308
|
+
* // "modelId": "my_modelId",
|
|
50309
|
+
* // "name": "my_name",
|
|
50310
|
+
* // "onewaySynonymsControlIds": [],
|
|
50311
|
+
* // "promoteControlIds": [],
|
|
50312
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
50313
|
+
* // "redirectControlIds": [],
|
|
50314
|
+
* // "replacementControlIds": [],
|
|
50315
|
+
* // "solutionType": "my_solutionType",
|
|
50316
|
+
* // "synonymsControlIds": [],
|
|
50317
|
+
* // "updateTime": "my_updateTime"
|
|
49626
50318
|
* // }
|
|
49627
50319
|
* },
|
|
49628
50320
|
* });
|
|
@@ -49630,9 +50322,26 @@ export namespace discoveryengine_v1 {
|
|
|
49630
50322
|
*
|
|
49631
50323
|
* // Example response
|
|
49632
50324
|
* // {
|
|
49633
|
-
* // "
|
|
49634
|
-
* // "
|
|
49635
|
-
* // "
|
|
50325
|
+
* // "answerGenerationSpec": {},
|
|
50326
|
+
* // "boostControlIds": [],
|
|
50327
|
+
* // "createTime": "my_createTime",
|
|
50328
|
+
* // "displayName": "my_displayName",
|
|
50329
|
+
* // "dissociateControlIds": [],
|
|
50330
|
+
* // "diversityLevel": "my_diversityLevel",
|
|
50331
|
+
* // "filterControlIds": [],
|
|
50332
|
+
* // "genericConfig": {},
|
|
50333
|
+
* // "ignoreControlIds": [],
|
|
50334
|
+
* // "mediaConfig": {},
|
|
50335
|
+
* // "modelId": "my_modelId",
|
|
50336
|
+
* // "name": "my_name",
|
|
50337
|
+
* // "onewaySynonymsControlIds": [],
|
|
50338
|
+
* // "promoteControlIds": [],
|
|
50339
|
+
* // "rankingExpression": "my_rankingExpression",
|
|
50340
|
+
* // "redirectControlIds": [],
|
|
50341
|
+
* // "replacementControlIds": [],
|
|
50342
|
+
* // "solutionType": "my_solutionType",
|
|
50343
|
+
* // "synonymsControlIds": [],
|
|
50344
|
+
* // "updateTime": "my_updateTime"
|
|
49636
50345
|
* // }
|
|
49637
50346
|
* }
|
|
49638
50347
|
*
|
|
@@ -49648,62 +50357,62 @@ export namespace discoveryengine_v1 {
|
|
|
49648
50357
|
* @param callback - Optional callback that handles the response.
|
|
49649
50358
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
49650
50359
|
*/
|
|
49651
|
-
|
|
49652
|
-
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50360
|
+
create(
|
|
50361
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
49653
50362
|
options: StreamMethodOptions
|
|
49654
50363
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
49655
|
-
|
|
49656
|
-
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50364
|
+
create(
|
|
50365
|
+
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
49657
50366
|
options?: MethodOptions
|
|
49658
50367
|
): Promise<
|
|
49659
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
50368
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49660
50369
|
>;
|
|
49661
|
-
|
|
49662
|
-
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50370
|
+
create(
|
|
50371
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
49663
50372
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
49664
50373
|
callback: BodyResponseCallback<Readable>
|
|
49665
50374
|
): void;
|
|
49666
|
-
|
|
49667
|
-
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50375
|
+
create(
|
|
50376
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
49668
50377
|
options:
|
|
49669
50378
|
| MethodOptions
|
|
49670
|
-
| BodyResponseCallback<Schema$
|
|
49671
|
-
callback: BodyResponseCallback<Schema$
|
|
50379
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>,
|
|
50380
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49672
50381
|
): void;
|
|
49673
|
-
|
|
49674
|
-
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
49675
|
-
callback: BodyResponseCallback<Schema$
|
|
50382
|
+
create(
|
|
50383
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create,
|
|
50384
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49676
50385
|
): void;
|
|
49677
|
-
|
|
49678
|
-
callback: BodyResponseCallback<Schema$
|
|
50386
|
+
create(
|
|
50387
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49679
50388
|
): void;
|
|
49680
|
-
|
|
50389
|
+
create(
|
|
49681
50390
|
paramsOrCallback?:
|
|
49682
|
-
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
49683
|
-
| BodyResponseCallback<Schema$
|
|
50391
|
+
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create
|
|
50392
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49684
50393
|
| BodyResponseCallback<Readable>,
|
|
49685
50394
|
optionsOrCallback?:
|
|
49686
50395
|
| MethodOptions
|
|
49687
50396
|
| StreamMethodOptions
|
|
49688
|
-
| BodyResponseCallback<Schema$
|
|
50397
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49689
50398
|
| BodyResponseCallback<Readable>,
|
|
49690
50399
|
callback?:
|
|
49691
|
-
| BodyResponseCallback<Schema$
|
|
50400
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49692
50401
|
| BodyResponseCallback<Readable>
|
|
49693
50402
|
):
|
|
49694
50403
|
| void
|
|
49695
50404
|
| Promise<
|
|
49696
|
-
GaxiosResponseWithHTTP2<Schema$
|
|
50405
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1ServingConfig>
|
|
49697
50406
|
>
|
|
49698
50407
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
49699
50408
|
let params = (paramsOrCallback ||
|
|
49700
|
-
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50409
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
|
|
49701
50410
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
49702
50411
|
|
|
49703
50412
|
if (typeof paramsOrCallback === 'function') {
|
|
49704
50413
|
callback = paramsOrCallback;
|
|
49705
50414
|
params =
|
|
49706
|
-
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$
|
|
50415
|
+
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create;
|
|
49707
50416
|
options = {};
|
|
49708
50417
|
}
|
|
49709
50418
|
|
|
@@ -49717,7 +50426,7 @@ export namespace discoveryengine_v1 {
|
|
|
49717
50426
|
const parameters = {
|
|
49718
50427
|
options: Object.assign(
|
|
49719
50428
|
{
|
|
49720
|
-
url: (rootUrl + '/v1/{+
|
|
50429
|
+
url: (rootUrl + '/v1/{+parent}/servingConfigs').replace(
|
|
49721
50430
|
/([^:]\/)\/+/g,
|
|
49722
50431
|
'$1'
|
|
49723
50432
|
),
|
|
@@ -49727,17 +50436,17 @@ export namespace discoveryengine_v1 {
|
|
|
49727
50436
|
options
|
|
49728
50437
|
),
|
|
49729
50438
|
params,
|
|
49730
|
-
requiredParams: ['
|
|
49731
|
-
pathParams: ['
|
|
50439
|
+
requiredParams: ['parent'],
|
|
50440
|
+
pathParams: ['parent'],
|
|
49732
50441
|
context: this.context,
|
|
49733
50442
|
};
|
|
49734
50443
|
if (callback) {
|
|
49735
|
-
createAPIRequest<Schema$
|
|
50444
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
49736
50445
|
parameters,
|
|
49737
50446
|
callback as BodyResponseCallback<unknown>
|
|
49738
50447
|
);
|
|
49739
50448
|
} else {
|
|
49740
|
-
return createAPIRequest<Schema$
|
|
50449
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1ServingConfig>(
|
|
49741
50450
|
parameters
|
|
49742
50451
|
);
|
|
49743
50452
|
}
|
|
@@ -51182,6 +51891,21 @@ export namespace discoveryengine_v1 {
|
|
|
51182
51891
|
*/
|
|
51183
51892
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
|
|
51184
51893
|
}
|
|
51894
|
+
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Create extends StandardParameters {
|
|
51895
|
+
/**
|
|
51896
|
+
* Required. Full resource name of parent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
51897
|
+
*/
|
|
51898
|
+
parent?: string;
|
|
51899
|
+
/**
|
|
51900
|
+
* 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+/.
|
|
51901
|
+
*/
|
|
51902
|
+
servingConfigId?: string;
|
|
51903
|
+
|
|
51904
|
+
/**
|
|
51905
|
+
* Request body metadata
|
|
51906
|
+
*/
|
|
51907
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1ServingConfig;
|
|
51908
|
+
}
|
|
51185
51909
|
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
51186
51910
|
/**
|
|
51187
51911
|
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|