@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/discoveryengine",
3
- "version": "28.0.0",
3
+ "version": "28.1.0",
4
4
  "description": "discoveryengine",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
package/v1.ts CHANGED
@@ -4281,7 +4281,7 @@ export namespace discoveryengine_v1 {
4281
4281
  */
4282
4282
  orderBy?: string | null;
4283
4283
  /**
4284
- * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
4284
+ * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
4285
4285
  */
4286
4286
  pageCategories?: string[] | null;
4287
4287
  /**
@@ -8440,7 +8440,7 @@ export namespace discoveryengine_v1 {
8440
8440
  */
8441
8441
  orderBy?: string | null;
8442
8442
  /**
8443
- * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
8443
+ * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
8444
8444
  */
8445
8445
  pageCategories?: string[] | null;
8446
8446
  /**
@@ -10564,6 +10564,10 @@ export namespace discoveryengine_v1 {
10564
10564
  * Immutable. Identifier. The full resource name of the data store. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
10565
10565
  */
10566
10566
  name?: string | null;
10567
+ /**
10568
+ * Optional. Configuration for Natural Language Query Understanding.
10569
+ */
10570
+ naturalLanguageQueryUnderstandingConfig?: Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig;
10567
10571
  /**
10568
10572
  * Optional. Stores serving config at DataStore level.
10569
10573
  */
@@ -12150,6 +12154,15 @@ export namespace discoveryengine_v1 {
12150
12154
  */
12151
12155
  mediaProgressPercentage?: number | null;
12152
12156
  }
12157
+ /**
12158
+ * Configuration for Natural Language Query Understanding.
12159
+ */
12160
+ export interface Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig {
12161
+ /**
12162
+ * Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.
12163
+ */
12164
+ mode?: string | null;
12165
+ }
12153
12166
  /**
12154
12167
  * Detailed page information.
12155
12168
  */
@@ -12853,7 +12866,7 @@ export namespace discoveryengine_v1 {
12853
12866
  */
12854
12867
  orderBy?: string | null;
12855
12868
  /**
12856
- * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
12869
+ * Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.PageInfo.page_category. This field is the equivalent of the query for browse (navigation) queries. It's used by the browse model when the query is empty. If the field is empty, it will not be used by the browse model. If the field contains more than one element, only the first element will be used. To represent full path of a category, use '\>' character to separate different hierarchies. If '\>' is part of the category name, replace it with other character(s). For example, `Graphics Cards \> RTX\>4090 \> Founders Edition` where "RTX \> 4090" represents one level, can be rewritten as `Graphics Cards \> RTX_4090 \> Founders Edition`
12857
12870
  */
12858
12871
  pageCategories?: string[] | null;
12859
12872
  /**
@@ -14316,7 +14329,7 @@ export namespace discoveryengine_v1 {
14316
14329
  */
14317
14330
  eventType?: string | null;
14318
14331
  /**
14319
- * The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
14332
+ * Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. One example is for `search` events, the associated SearchRequest may contain a filter expression in SearchRequest.filter conforming to https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events that are generated from a RecommendRequest, this field may be populated directly from RecommendRequest.filter conforming to https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
14320
14333
  */
14321
14334
  filter?: string | null;
14322
14335
  /**
@@ -18404,6 +18417,7 @@ export namespace discoveryengine_v1 {
18404
18417
  * // "isInfobotFaqDataStore": false,
18405
18418
  * // "kmsKeyName": "my_kmsKeyName",
18406
18419
  * // "name": "my_name",
18420
+ * // "naturalLanguageQueryUnderstandingConfig": {},
18407
18421
  * // "servingConfigDataStore": {},
18408
18422
  * // "solutionTypes": [],
18409
18423
  * // "startingSchema": {},
@@ -18731,6 +18745,7 @@ export namespace discoveryengine_v1 {
18731
18745
  * // "isInfobotFaqDataStore": false,
18732
18746
  * // "kmsKeyName": "my_kmsKeyName",
18733
18747
  * // "name": "my_name",
18748
+ * // "naturalLanguageQueryUnderstandingConfig": {},
18734
18749
  * // "servingConfigDataStore": {},
18735
18750
  * // "solutionTypes": [],
18736
18751
  * // "startingSchema": {},
@@ -19216,6 +19231,7 @@ export namespace discoveryengine_v1 {
19216
19231
  * // "isInfobotFaqDataStore": false,
19217
19232
  * // "kmsKeyName": "my_kmsKeyName",
19218
19233
  * // "name": "my_name",
19234
+ * // "naturalLanguageQueryUnderstandingConfig": {},
19219
19235
  * // "servingConfigDataStore": {},
19220
19236
  * // "solutionTypes": [],
19221
19237
  * // "startingSchema": {},
@@ -19244,6 +19260,7 @@ export namespace discoveryengine_v1 {
19244
19260
  * // "isInfobotFaqDataStore": false,
19245
19261
  * // "kmsKeyName": "my_kmsKeyName",
19246
19262
  * // "name": "my_name",
19263
+ * // "naturalLanguageQueryUnderstandingConfig": {},
19247
19264
  * // "servingConfigDataStore": {},
19248
19265
  * // "solutionTypes": [],
19249
19266
  * // "startingSchema": {},
@@ -26394,6 +26411,146 @@ export namespace discoveryengine_v1 {
26394
26411
  }
26395
26412
  }
26396
26413
 
26414
+ /**
26415
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
26416
+ * @example
26417
+ * ```js
26418
+ * // Before running the sample:
26419
+ * // - Enable the API at:
26420
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
26421
+ * // - Login into gcloud by running:
26422
+ * // ```sh
26423
+ * // $ gcloud auth application-default login
26424
+ * // ```
26425
+ * // - Install the npm module by running:
26426
+ * // ```sh
26427
+ * // $ npm install googleapis
26428
+ * // ```
26429
+ *
26430
+ * const {google} = require('googleapis');
26431
+ * const discoveryengine = google.discoveryengine('v1');
26432
+ *
26433
+ * async function main() {
26434
+ * const auth = new google.auth.GoogleAuth({
26435
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
26436
+ * scopes: [
26437
+ * 'https://www.googleapis.com/auth/cloud-platform',
26438
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
26439
+ * ],
26440
+ * });
26441
+ *
26442
+ * // Acquire an auth client, and bind it to all future calls
26443
+ * const authClient = await auth.getClient();
26444
+ * google.options({auth: authClient});
26445
+ *
26446
+ * // Do the magic
26447
+ * const res =
26448
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
26449
+ * {
26450
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
26451
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
26452
+ * },
26453
+ * );
26454
+ * console.log(res.data);
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
+
26397
26554
  /**
26398
26555
  * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
26399
26556
  * @example
@@ -27703,6 +27860,12 @@ export namespace discoveryengine_v1 {
27703
27860
  */
27704
27861
  requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
27705
27862
  }
27863
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
27864
+ /**
27865
+ * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
27866
+ */
27867
+ name?: string;
27868
+ }
27706
27869
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get extends StandardParameters {
27707
27870
  /**
27708
27871
  * Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -38623,6 +38786,146 @@ export namespace discoveryengine_v1 {
38623
38786
  }
38624
38787
  }
38625
38788
 
38789
+ /**
38790
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
38791
+ * @example
38792
+ * ```js
38793
+ * // Before running the sample:
38794
+ * // - Enable the API at:
38795
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
38796
+ * // - Login into gcloud by running:
38797
+ * // ```sh
38798
+ * // $ gcloud auth application-default login
38799
+ * // ```
38800
+ * // - Install the npm module by running:
38801
+ * // ```sh
38802
+ * // $ npm install googleapis
38803
+ * // ```
38804
+ *
38805
+ * const {google} = require('googleapis');
38806
+ * const discoveryengine = google.discoveryengine('v1');
38807
+ *
38808
+ * async function main() {
38809
+ * const auth = new google.auth.GoogleAuth({
38810
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
38811
+ * scopes: [
38812
+ * 'https://www.googleapis.com/auth/cloud-platform',
38813
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
38814
+ * ],
38815
+ * });
38816
+ *
38817
+ * // Acquire an auth client, and bind it to all future calls
38818
+ * const authClient = await auth.getClient();
38819
+ * google.options({auth: authClient});
38820
+ *
38821
+ * // Do the magic
38822
+ * const res =
38823
+ * await discoveryengine.projects.locations.collections.engines.servingConfigs.delete(
38824
+ * {
38825
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
38826
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/servingConfigs/my-servingConfig',
38827
+ * },
38828
+ * );
38829
+ * console.log(res.data);
38830
+ *
38831
+ * // Example response
38832
+ * // {}
38833
+ * }
38834
+ *
38835
+ * main().catch(e => {
38836
+ * console.error(e);
38837
+ * throw e;
38838
+ * });
38839
+ *
38840
+ * ```
38841
+ *
38842
+ * @param params - Parameters for request
38843
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
38844
+ * @param callback - Optional callback that handles the response.
38845
+ * @returns A promise if used with async/await, or void if used with a callback.
38846
+ */
38847
+ delete(
38848
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
38849
+ options: StreamMethodOptions
38850
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
38851
+ delete(
38852
+ params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
38853
+ options?: MethodOptions
38854
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
38855
+ delete(
38856
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
38857
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
38858
+ callback: BodyResponseCallback<Readable>
38859
+ ): void;
38860
+ delete(
38861
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
38862
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
38863
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
38864
+ ): void;
38865
+ delete(
38866
+ params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete,
38867
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
38868
+ ): void;
38869
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
38870
+ delete(
38871
+ paramsOrCallback?:
38872
+ | Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete
38873
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
38874
+ | BodyResponseCallback<Readable>,
38875
+ optionsOrCallback?:
38876
+ | MethodOptions
38877
+ | StreamMethodOptions
38878
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
38879
+ | BodyResponseCallback<Readable>,
38880
+ callback?:
38881
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
38882
+ | BodyResponseCallback<Readable>
38883
+ ):
38884
+ | void
38885
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
38886
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
38887
+ let params = (paramsOrCallback ||
38888
+ {}) as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete;
38889
+ let options = (optionsOrCallback || {}) as MethodOptions;
38890
+
38891
+ if (typeof paramsOrCallback === 'function') {
38892
+ callback = paramsOrCallback;
38893
+ params =
38894
+ {} as Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete;
38895
+ options = {};
38896
+ }
38897
+
38898
+ if (typeof optionsOrCallback === 'function') {
38899
+ callback = optionsOrCallback;
38900
+ options = {};
38901
+ }
38902
+
38903
+ const rootUrl =
38904
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
38905
+ const parameters = {
38906
+ options: Object.assign(
38907
+ {
38908
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
38909
+ method: 'DELETE',
38910
+ apiVersion: '',
38911
+ },
38912
+ options
38913
+ ),
38914
+ params,
38915
+ requiredParams: ['name'],
38916
+ pathParams: ['name'],
38917
+ context: this.context,
38918
+ };
38919
+ if (callback) {
38920
+ createAPIRequest<Schema$GoogleProtobufEmpty>(
38921
+ parameters,
38922
+ callback as BodyResponseCallback<unknown>
38923
+ );
38924
+ } else {
38925
+ return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
38926
+ }
38927
+ }
38928
+
38626
38929
  /**
38627
38930
  * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
38628
38931
  * @example
@@ -39932,6 +40235,12 @@ export namespace discoveryengine_v1 {
39932
40235
  */
39933
40236
  requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
39934
40237
  }
40238
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
40239
+ /**
40240
+ * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
40241
+ */
40242
+ name?: string;
40243
+ }
39935
40244
  export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get extends StandardParameters {
39936
40245
  /**
39937
40246
  * Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -42200,6 +42509,7 @@ export namespace discoveryengine_v1 {
42200
42509
  * // "isInfobotFaqDataStore": false,
42201
42510
  * // "kmsKeyName": "my_kmsKeyName",
42202
42511
  * // "name": "my_name",
42512
+ * // "naturalLanguageQueryUnderstandingConfig": {},
42203
42513
  * // "servingConfigDataStore": {},
42204
42514
  * // "solutionTypes": [],
42205
42515
  * // "startingSchema": {},
@@ -42523,6 +42833,7 @@ export namespace discoveryengine_v1 {
42523
42833
  * // "isInfobotFaqDataStore": false,
42524
42834
  * // "kmsKeyName": "my_kmsKeyName",
42525
42835
  * // "name": "my_name",
42836
+ * // "naturalLanguageQueryUnderstandingConfig": {},
42526
42837
  * // "servingConfigDataStore": {},
42527
42838
  * // "solutionTypes": [],
42528
42839
  * // "startingSchema": {},
@@ -43001,6 +43312,7 @@ export namespace discoveryengine_v1 {
43001
43312
  * // "isInfobotFaqDataStore": false,
43002
43313
  * // "kmsKeyName": "my_kmsKeyName",
43003
43314
  * // "name": "my_name",
43315
+ * // "naturalLanguageQueryUnderstandingConfig": {},
43004
43316
  * // "servingConfigDataStore": {},
43005
43317
  * // "solutionTypes": [],
43006
43318
  * // "startingSchema": {},
@@ -43029,6 +43341,7 @@ export namespace discoveryengine_v1 {
43029
43341
  * // "isInfobotFaqDataStore": false,
43030
43342
  * // "kmsKeyName": "my_kmsKeyName",
43031
43343
  * // "name": "my_name",
43344
+ * // "naturalLanguageQueryUnderstandingConfig": {},
43032
43345
  * // "servingConfigDataStore": {},
43033
43346
  * // "solutionTypes": [],
43034
43347
  * // "startingSchema": {},
@@ -49430,6 +49743,144 @@ export namespace discoveryengine_v1 {
49430
49743
  }
49431
49744
  }
49432
49745
 
49746
+ /**
49747
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
49748
+ * @example
49749
+ * ```js
49750
+ * // Before running the sample:
49751
+ * // - Enable the API at:
49752
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
49753
+ * // - Login into gcloud by running:
49754
+ * // ```sh
49755
+ * // $ gcloud auth application-default login
49756
+ * // ```
49757
+ * // - Install the npm module by running:
49758
+ * // ```sh
49759
+ * // $ npm install googleapis
49760
+ * // ```
49761
+ *
49762
+ * const {google} = require('googleapis');
49763
+ * const discoveryengine = google.discoveryengine('v1');
49764
+ *
49765
+ * async function main() {
49766
+ * const auth = new google.auth.GoogleAuth({
49767
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
49768
+ * scopes: [
49769
+ * 'https://www.googleapis.com/auth/cloud-platform',
49770
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
49771
+ * ],
49772
+ * });
49773
+ *
49774
+ * // Acquire an auth client, and bind it to all future calls
49775
+ * const authClient = await auth.getClient();
49776
+ * google.options({auth: authClient});
49777
+ *
49778
+ * // Do the magic
49779
+ * const res =
49780
+ * await discoveryengine.projects.locations.dataStores.servingConfigs.delete({
49781
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
49782
+ * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
49783
+ * });
49784
+ * console.log(res.data);
49785
+ *
49786
+ * // Example response
49787
+ * // {}
49788
+ * }
49789
+ *
49790
+ * main().catch(e => {
49791
+ * console.error(e);
49792
+ * throw e;
49793
+ * });
49794
+ *
49795
+ * ```
49796
+ *
49797
+ * @param params - Parameters for request
49798
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
49799
+ * @param callback - Optional callback that handles the response.
49800
+ * @returns A promise if used with async/await, or void if used with a callback.
49801
+ */
49802
+ delete(
49803
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
49804
+ options: StreamMethodOptions
49805
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
49806
+ delete(
49807
+ params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
49808
+ options?: MethodOptions
49809
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
49810
+ delete(
49811
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
49812
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
49813
+ callback: BodyResponseCallback<Readable>
49814
+ ): void;
49815
+ delete(
49816
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
49817
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
49818
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
49819
+ ): void;
49820
+ delete(
49821
+ params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete,
49822
+ callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
49823
+ ): void;
49824
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
49825
+ delete(
49826
+ paramsOrCallback?:
49827
+ | Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete
49828
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
49829
+ | BodyResponseCallback<Readable>,
49830
+ optionsOrCallback?:
49831
+ | MethodOptions
49832
+ | StreamMethodOptions
49833
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
49834
+ | BodyResponseCallback<Readable>,
49835
+ callback?:
49836
+ | BodyResponseCallback<Schema$GoogleProtobufEmpty>
49837
+ | BodyResponseCallback<Readable>
49838
+ ):
49839
+ | void
49840
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
49841
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
49842
+ let params = (paramsOrCallback ||
49843
+ {}) as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete;
49844
+ let options = (optionsOrCallback || {}) as MethodOptions;
49845
+
49846
+ if (typeof paramsOrCallback === 'function') {
49847
+ callback = paramsOrCallback;
49848
+ params =
49849
+ {} as Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete;
49850
+ options = {};
49851
+ }
49852
+
49853
+ if (typeof optionsOrCallback === 'function') {
49854
+ callback = optionsOrCallback;
49855
+ options = {};
49856
+ }
49857
+
49858
+ const rootUrl =
49859
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
49860
+ const parameters = {
49861
+ options: Object.assign(
49862
+ {
49863
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
49864
+ method: 'DELETE',
49865
+ apiVersion: '',
49866
+ },
49867
+ options
49868
+ ),
49869
+ params,
49870
+ requiredParams: ['name'],
49871
+ pathParams: ['name'],
49872
+ context: this.context,
49873
+ };
49874
+ if (callback) {
49875
+ createAPIRequest<Schema$GoogleProtobufEmpty>(
49876
+ parameters,
49877
+ callback as BodyResponseCallback<unknown>
49878
+ );
49879
+ } else {
49880
+ return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
49881
+ }
49882
+ }
49883
+
49433
49884
  /**
49434
49885
  * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
49435
49886
  * @example
@@ -50731,6 +51182,12 @@ export namespace discoveryengine_v1 {
50731
51182
  */
50732
51183
  requestBody?: Schema$GoogleCloudDiscoveryengineV1AnswerQueryRequest;
50733
51184
  }
51185
+ export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
51186
+ /**
51187
+ * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
51188
+ */
51189
+ name?: string;
51190
+ }
50734
51191
  export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get extends StandardParameters {
50735
51192
  /**
50736
51193
  * Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`