@googleapis/discoveryengine 28.0.0 → 28.1.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 +7 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +233 -4
- package/build/v1.js +99 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha.d.ts +241 -3
- package/build/v1alpha.js +99 -0
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +224 -3
- package/build/v1beta.js +99 -0
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +461 -4
- package/v1alpha.ts +468 -3
- package/v1beta.ts +452 -3
package/v1beta.ts
CHANGED
|
@@ -4047,7 +4047,7 @@ export namespace discoveryengine_v1beta {
|
|
|
4047
4047
|
*/
|
|
4048
4048
|
orderBy?: string | null;
|
|
4049
4049
|
/**
|
|
4050
|
-
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
4050
|
+
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
4051
4051
|
*/
|
|
4052
4052
|
pageCategories?: string[] | null;
|
|
4053
4053
|
/**
|
|
@@ -10693,7 +10693,7 @@ export namespace discoveryengine_v1beta {
|
|
|
10693
10693
|
*/
|
|
10694
10694
|
orderBy?: string | null;
|
|
10695
10695
|
/**
|
|
10696
|
-
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
10696
|
+
* Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
|
|
10697
10697
|
*/
|
|
10698
10698
|
pageCategories?: string[] | null;
|
|
10699
10699
|
/**
|
|
@@ -12497,7 +12497,7 @@ export namespace discoveryengine_v1beta {
|
|
|
12497
12497
|
*/
|
|
12498
12498
|
eventType?: string | null;
|
|
12499
12499
|
/**
|
|
12500
|
-
* The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
12500
|
+
* Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
12501
12501
|
*/
|
|
12502
12502
|
filter?: string | null;
|
|
12503
12503
|
/**
|
|
@@ -13289,6 +13289,10 @@ export namespace discoveryengine_v1beta {
|
|
|
13289
13289
|
* Immutable. Identifier. The full resource name of the data store. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
|
|
13290
13290
|
*/
|
|
13291
13291
|
name?: string | null;
|
|
13292
|
+
/**
|
|
13293
|
+
* Optional. Configuration for Natural Language Query Understanding.
|
|
13294
|
+
*/
|
|
13295
|
+
naturalLanguageQueryUnderstandingConfig?: Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig;
|
|
13292
13296
|
/**
|
|
13293
13297
|
* Optional. Stores serving config at DataStore level.
|
|
13294
13298
|
*/
|
|
@@ -14125,6 +14129,15 @@ export namespace discoveryengine_v1beta {
|
|
|
14125
14129
|
*/
|
|
14126
14130
|
subscriptionTier?: string | null;
|
|
14127
14131
|
}
|
|
14132
|
+
/**
|
|
14133
|
+
* Configuration for Natural Language Query Understanding.
|
|
14134
|
+
*/
|
|
14135
|
+
export interface Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig {
|
|
14136
|
+
/**
|
|
14137
|
+
* Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.
|
|
14138
|
+
*/
|
|
14139
|
+
mode?: string | null;
|
|
14140
|
+
}
|
|
14128
14141
|
/**
|
|
14129
14142
|
* Metadata and configurations for a Google Cloud project in the service.
|
|
14130
14143
|
*/
|
|
@@ -25909,6 +25922,146 @@ export namespace discoveryengine_v1beta {
|
|
|
25909
25922
|
}
|
|
25910
25923
|
}
|
|
25911
25924
|
|
|
25925
|
+
/**
|
|
25926
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
25927
|
+
* @example
|
|
25928
|
+
* ```js
|
|
25929
|
+
* // Before running the sample:
|
|
25930
|
+
* // - Enable the API at:
|
|
25931
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
25932
|
+
* // - Login into gcloud by running:
|
|
25933
|
+
* // ```sh
|
|
25934
|
+
* // $ gcloud auth application-default login
|
|
25935
|
+
* // ```
|
|
25936
|
+
* // - Install the npm module by running:
|
|
25937
|
+
* // ```sh
|
|
25938
|
+
* // $ npm install googleapis
|
|
25939
|
+
* // ```
|
|
25940
|
+
*
|
|
25941
|
+
* const {google} = require('googleapis');
|
|
25942
|
+
* const discoveryengine = google.discoveryengine('v1beta');
|
|
25943
|
+
*
|
|
25944
|
+
* async function main() {
|
|
25945
|
+
* const auth = new google.auth.GoogleAuth({
|
|
25946
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
25947
|
+
* scopes: [
|
|
25948
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
25949
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
25950
|
+
* ],
|
|
25951
|
+
* });
|
|
25952
|
+
*
|
|
25953
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
25954
|
+
* const authClient = await auth.getClient();
|
|
25955
|
+
* google.options({auth: authClient});
|
|
25956
|
+
*
|
|
25957
|
+
* // Do the magic
|
|
25958
|
+
* const res =
|
|
25959
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
|
|
25960
|
+
* {
|
|
25961
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
25962
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
25963
|
+
* },
|
|
25964
|
+
* );
|
|
25965
|
+
* console.log(res.data);
|
|
25966
|
+
*
|
|
25967
|
+
* // Example response
|
|
25968
|
+
* // {}
|
|
25969
|
+
* }
|
|
25970
|
+
*
|
|
25971
|
+
* main().catch(e => {
|
|
25972
|
+
* console.error(e);
|
|
25973
|
+
* throw e;
|
|
25974
|
+
* });
|
|
25975
|
+
*
|
|
25976
|
+
* ```
|
|
25977
|
+
*
|
|
25978
|
+
* @param params - Parameters for request
|
|
25979
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
25980
|
+
* @param callback - Optional callback that handles the response.
|
|
25981
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
25982
|
+
*/
|
|
25983
|
+
delete(
|
|
25984
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
25985
|
+
options: StreamMethodOptions
|
|
25986
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
25987
|
+
delete(
|
|
25988
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
25989
|
+
options?: MethodOptions
|
|
25990
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
25991
|
+
delete(
|
|
25992
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
25993
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
25994
|
+
callback: BodyResponseCallback<Readable>
|
|
25995
|
+
): void;
|
|
25996
|
+
delete(
|
|
25997
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
25998
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
25999
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26000
|
+
): void;
|
|
26001
|
+
delete(
|
|
26002
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete,
|
|
26003
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26004
|
+
): void;
|
|
26005
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
26006
|
+
delete(
|
|
26007
|
+
paramsOrCallback?:
|
|
26008
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete
|
|
26009
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26010
|
+
| BodyResponseCallback<Readable>,
|
|
26011
|
+
optionsOrCallback?:
|
|
26012
|
+
| MethodOptions
|
|
26013
|
+
| StreamMethodOptions
|
|
26014
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26015
|
+
| BodyResponseCallback<Readable>,
|
|
26016
|
+
callback?:
|
|
26017
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
26018
|
+
| BodyResponseCallback<Readable>
|
|
26019
|
+
):
|
|
26020
|
+
| void
|
|
26021
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
26022
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
26023
|
+
let params = (paramsOrCallback ||
|
|
26024
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
|
|
26025
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
26026
|
+
|
|
26027
|
+
if (typeof paramsOrCallback === 'function') {
|
|
26028
|
+
callback = paramsOrCallback;
|
|
26029
|
+
params =
|
|
26030
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete;
|
|
26031
|
+
options = {};
|
|
26032
|
+
}
|
|
26033
|
+
|
|
26034
|
+
if (typeof optionsOrCallback === 'function') {
|
|
26035
|
+
callback = optionsOrCallback;
|
|
26036
|
+
options = {};
|
|
26037
|
+
}
|
|
26038
|
+
|
|
26039
|
+
const rootUrl =
|
|
26040
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
26041
|
+
const parameters = {
|
|
26042
|
+
options: Object.assign(
|
|
26043
|
+
{
|
|
26044
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
26045
|
+
method: 'DELETE',
|
|
26046
|
+
apiVersion: '',
|
|
26047
|
+
},
|
|
26048
|
+
options
|
|
26049
|
+
),
|
|
26050
|
+
params,
|
|
26051
|
+
requiredParams: ['name'],
|
|
26052
|
+
pathParams: ['name'],
|
|
26053
|
+
context: this.context,
|
|
26054
|
+
};
|
|
26055
|
+
if (callback) {
|
|
26056
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
26057
|
+
parameters,
|
|
26058
|
+
callback as BodyResponseCallback<unknown>
|
|
26059
|
+
);
|
|
26060
|
+
} else {
|
|
26061
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
26062
|
+
}
|
|
26063
|
+
}
|
|
26064
|
+
|
|
25912
26065
|
/**
|
|
25913
26066
|
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
25914
26067
|
* @example
|
|
@@ -27246,6 +27399,12 @@ export namespace discoveryengine_v1beta {
|
|
|
27246
27399
|
*/
|
|
27247
27400
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
|
|
27248
27401
|
}
|
|
27402
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
27403
|
+
/**
|
|
27404
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
27405
|
+
*/
|
|
27406
|
+
name?: string;
|
|
27407
|
+
}
|
|
27249
27408
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get extends StandardParameters {
|
|
27250
27409
|
/**
|
|
27251
27410
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -38262,6 +38421,146 @@ export namespace discoveryengine_v1beta {
|
|
|
38262
38421
|
}
|
|
38263
38422
|
}
|
|
38264
38423
|
|
|
38424
|
+
/**
|
|
38425
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
38426
|
+
* @example
|
|
38427
|
+
* ```js
|
|
38428
|
+
* // Before running the sample:
|
|
38429
|
+
* // - Enable the API at:
|
|
38430
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
38431
|
+
* // - Login into gcloud by running:
|
|
38432
|
+
* // ```sh
|
|
38433
|
+
* // $ gcloud auth application-default login
|
|
38434
|
+
* // ```
|
|
38435
|
+
* // - Install the npm module by running:
|
|
38436
|
+
* // ```sh
|
|
38437
|
+
* // $ npm install googleapis
|
|
38438
|
+
* // ```
|
|
38439
|
+
*
|
|
38440
|
+
* const {google} = require('googleapis');
|
|
38441
|
+
* const discoveryengine = google.discoveryengine('v1beta');
|
|
38442
|
+
*
|
|
38443
|
+
* async function main() {
|
|
38444
|
+
* const auth = new google.auth.GoogleAuth({
|
|
38445
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
38446
|
+
* scopes: [
|
|
38447
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
38448
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
38449
|
+
* ],
|
|
38450
|
+
* });
|
|
38451
|
+
*
|
|
38452
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
38453
|
+
* const authClient = await auth.getClient();
|
|
38454
|
+
* google.options({auth: authClient});
|
|
38455
|
+
*
|
|
38456
|
+
* // Do the magic
|
|
38457
|
+
* const res =
|
|
38458
|
+
* await discoveryengine.projects.locations.collections.engines.servingConfigs.delete(
|
|
38459
|
+
* {
|
|
38460
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
38461
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/servingConfigs/my-servingConfig',
|
|
38462
|
+
* },
|
|
38463
|
+
* );
|
|
38464
|
+
* console.log(res.data);
|
|
38465
|
+
*
|
|
38466
|
+
* // Example response
|
|
38467
|
+
* // {}
|
|
38468
|
+
* }
|
|
38469
|
+
*
|
|
38470
|
+
* main().catch(e => {
|
|
38471
|
+
* console.error(e);
|
|
38472
|
+
* throw e;
|
|
38473
|
+
* });
|
|
38474
|
+
*
|
|
38475
|
+
* ```
|
|
38476
|
+
*
|
|
38477
|
+
* @param params - Parameters for request
|
|
38478
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
38479
|
+
* @param callback - Optional callback that handles the response.
|
|
38480
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
38481
|
+
*/
|
|
38482
|
+
delete(
|
|
38483
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
38484
|
+
options: StreamMethodOptions
|
|
38485
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
38486
|
+
delete(
|
|
38487
|
+
params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
38488
|
+
options?: MethodOptions
|
|
38489
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
38490
|
+
delete(
|
|
38491
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
38492
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
38493
|
+
callback: BodyResponseCallback<Readable>
|
|
38494
|
+
): void;
|
|
38495
|
+
delete(
|
|
38496
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
38497
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
38498
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
38499
|
+
): void;
|
|
38500
|
+
delete(
|
|
38501
|
+
params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
|
|
38502
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
38503
|
+
): void;
|
|
38504
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
38505
|
+
delete(
|
|
38506
|
+
paramsOrCallback?:
|
|
38507
|
+
| Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete
|
|
38508
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
38509
|
+
| BodyResponseCallback<Readable>,
|
|
38510
|
+
optionsOrCallback?:
|
|
38511
|
+
| MethodOptions
|
|
38512
|
+
| StreamMethodOptions
|
|
38513
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
38514
|
+
| BodyResponseCallback<Readable>,
|
|
38515
|
+
callback?:
|
|
38516
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
38517
|
+
| BodyResponseCallback<Readable>
|
|
38518
|
+
):
|
|
38519
|
+
| void
|
|
38520
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
38521
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
38522
|
+
let params = (paramsOrCallback ||
|
|
38523
|
+
{}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete;
|
|
38524
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
38525
|
+
|
|
38526
|
+
if (typeof paramsOrCallback === 'function') {
|
|
38527
|
+
callback = paramsOrCallback;
|
|
38528
|
+
params =
|
|
38529
|
+
{} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete;
|
|
38530
|
+
options = {};
|
|
38531
|
+
}
|
|
38532
|
+
|
|
38533
|
+
if (typeof optionsOrCallback === 'function') {
|
|
38534
|
+
callback = optionsOrCallback;
|
|
38535
|
+
options = {};
|
|
38536
|
+
}
|
|
38537
|
+
|
|
38538
|
+
const rootUrl =
|
|
38539
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
38540
|
+
const parameters = {
|
|
38541
|
+
options: Object.assign(
|
|
38542
|
+
{
|
|
38543
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
38544
|
+
method: 'DELETE',
|
|
38545
|
+
apiVersion: '',
|
|
38546
|
+
},
|
|
38547
|
+
options
|
|
38548
|
+
),
|
|
38549
|
+
params,
|
|
38550
|
+
requiredParams: ['name'],
|
|
38551
|
+
pathParams: ['name'],
|
|
38552
|
+
context: this.context,
|
|
38553
|
+
};
|
|
38554
|
+
if (callback) {
|
|
38555
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
38556
|
+
parameters,
|
|
38557
|
+
callback as BodyResponseCallback<unknown>
|
|
38558
|
+
);
|
|
38559
|
+
} else {
|
|
38560
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
38561
|
+
}
|
|
38562
|
+
}
|
|
38563
|
+
|
|
38265
38564
|
/**
|
|
38266
38565
|
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
38267
38566
|
* @example
|
|
@@ -39599,6 +39898,12 @@ export namespace discoveryengine_v1beta {
|
|
|
39599
39898
|
*/
|
|
39600
39899
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
|
|
39601
39900
|
}
|
|
39901
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
|
|
39902
|
+
/**
|
|
39903
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
39904
|
+
*/
|
|
39905
|
+
name?: string;
|
|
39906
|
+
}
|
|
39602
39907
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get extends StandardParameters {
|
|
39603
39908
|
/**
|
|
39604
39909
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -48642,6 +48947,144 @@ export namespace discoveryengine_v1beta {
|
|
|
48642
48947
|
}
|
|
48643
48948
|
}
|
|
48644
48949
|
|
|
48950
|
+
/**
|
|
48951
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
48952
|
+
* @example
|
|
48953
|
+
* ```js
|
|
48954
|
+
* // Before running the sample:
|
|
48955
|
+
* // - Enable the API at:
|
|
48956
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
48957
|
+
* // - Login into gcloud by running:
|
|
48958
|
+
* // ```sh
|
|
48959
|
+
* // $ gcloud auth application-default login
|
|
48960
|
+
* // ```
|
|
48961
|
+
* // - Install the npm module by running:
|
|
48962
|
+
* // ```sh
|
|
48963
|
+
* // $ npm install googleapis
|
|
48964
|
+
* // ```
|
|
48965
|
+
*
|
|
48966
|
+
* const {google} = require('googleapis');
|
|
48967
|
+
* const discoveryengine = google.discoveryengine('v1beta');
|
|
48968
|
+
*
|
|
48969
|
+
* async function main() {
|
|
48970
|
+
* const auth = new google.auth.GoogleAuth({
|
|
48971
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
48972
|
+
* scopes: [
|
|
48973
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
48974
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
48975
|
+
* ],
|
|
48976
|
+
* });
|
|
48977
|
+
*
|
|
48978
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
48979
|
+
* const authClient = await auth.getClient();
|
|
48980
|
+
* google.options({auth: authClient});
|
|
48981
|
+
*
|
|
48982
|
+
* // Do the magic
|
|
48983
|
+
* const res =
|
|
48984
|
+
* await discoveryengine.projects.locations.dataStores.servingConfigs.delete({
|
|
48985
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
48986
|
+
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
48987
|
+
* });
|
|
48988
|
+
* console.log(res.data);
|
|
48989
|
+
*
|
|
48990
|
+
* // Example response
|
|
48991
|
+
* // {}
|
|
48992
|
+
* }
|
|
48993
|
+
*
|
|
48994
|
+
* main().catch(e => {
|
|
48995
|
+
* console.error(e);
|
|
48996
|
+
* throw e;
|
|
48997
|
+
* });
|
|
48998
|
+
*
|
|
48999
|
+
* ```
|
|
49000
|
+
*
|
|
49001
|
+
* @param params - Parameters for request
|
|
49002
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
49003
|
+
* @param callback - Optional callback that handles the response.
|
|
49004
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
49005
|
+
*/
|
|
49006
|
+
delete(
|
|
49007
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
49008
|
+
options: StreamMethodOptions
|
|
49009
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
49010
|
+
delete(
|
|
49011
|
+
params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
49012
|
+
options?: MethodOptions
|
|
49013
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
49014
|
+
delete(
|
|
49015
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
49016
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
49017
|
+
callback: BodyResponseCallback<Readable>
|
|
49018
|
+
): void;
|
|
49019
|
+
delete(
|
|
49020
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
49021
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
49022
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49023
|
+
): void;
|
|
49024
|
+
delete(
|
|
49025
|
+
params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
|
|
49026
|
+
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49027
|
+
): void;
|
|
49028
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
49029
|
+
delete(
|
|
49030
|
+
paramsOrCallback?:
|
|
49031
|
+
| Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete
|
|
49032
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49033
|
+
| BodyResponseCallback<Readable>,
|
|
49034
|
+
optionsOrCallback?:
|
|
49035
|
+
| MethodOptions
|
|
49036
|
+
| StreamMethodOptions
|
|
49037
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49038
|
+
| BodyResponseCallback<Readable>,
|
|
49039
|
+
callback?:
|
|
49040
|
+
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
49041
|
+
| BodyResponseCallback<Readable>
|
|
49042
|
+
):
|
|
49043
|
+
| void
|
|
49044
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
49045
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
49046
|
+
let params = (paramsOrCallback ||
|
|
49047
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete;
|
|
49048
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
49049
|
+
|
|
49050
|
+
if (typeof paramsOrCallback === 'function') {
|
|
49051
|
+
callback = paramsOrCallback;
|
|
49052
|
+
params =
|
|
49053
|
+
{} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete;
|
|
49054
|
+
options = {};
|
|
49055
|
+
}
|
|
49056
|
+
|
|
49057
|
+
if (typeof optionsOrCallback === 'function') {
|
|
49058
|
+
callback = optionsOrCallback;
|
|
49059
|
+
options = {};
|
|
49060
|
+
}
|
|
49061
|
+
|
|
49062
|
+
const rootUrl =
|
|
49063
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
49064
|
+
const parameters = {
|
|
49065
|
+
options: Object.assign(
|
|
49066
|
+
{
|
|
49067
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
49068
|
+
method: 'DELETE',
|
|
49069
|
+
apiVersion: '',
|
|
49070
|
+
},
|
|
49071
|
+
options
|
|
49072
|
+
),
|
|
49073
|
+
params,
|
|
49074
|
+
requiredParams: ['name'],
|
|
49075
|
+
pathParams: ['name'],
|
|
49076
|
+
context: this.context,
|
|
49077
|
+
};
|
|
49078
|
+
if (callback) {
|
|
49079
|
+
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
49080
|
+
parameters,
|
|
49081
|
+
callback as BodyResponseCallback<unknown>
|
|
49082
|
+
);
|
|
49083
|
+
} else {
|
|
49084
|
+
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
49085
|
+
}
|
|
49086
|
+
}
|
|
49087
|
+
|
|
48645
49088
|
/**
|
|
48646
49089
|
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
48647
49090
|
* @example
|
|
@@ -49971,6 +50414,12 @@ export namespace discoveryengine_v1beta {
|
|
|
49971
50414
|
*/
|
|
49972
50415
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
|
|
49973
50416
|
}
|
|
50417
|
+
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
50418
|
+
/**
|
|
50419
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
50420
|
+
*/
|
|
50421
|
+
name?: string;
|
|
50422
|
+
}
|
|
49974
50423
|
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get extends StandardParameters {
|
|
49975
50424
|
/**
|
|
49976
50425
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|