@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.
@@ -831,6 +831,10 @@ export declare namespace discoveryengine_v1alpha {
831
831
  * Optional. The code of the language of the text in the description, display_name and starter_prompts fields.
832
832
  */
833
833
  languageCode?: string | null;
834
+ /**
835
+ * Optional. The behavior of the Google managed agent.
836
+ */
837
+ managedAgentDefinition?: Schema$GoogleCloudDiscoveryengineV1alphaManagedAgentDefinition;
834
838
  /**
835
839
  * Identifier. Resource name of the agent. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}/agents/{agent\}`
836
840
  */
@@ -6855,6 +6859,11 @@ export declare namespace discoveryengine_v1alpha {
6855
6859
  */
6856
6860
  userLicenses?: Schema$GoogleCloudDiscoveryengineV1alphaUserLicense[];
6857
6861
  }
6862
+ /**
6863
+ * Stores the definition of a Google managed agent.
6864
+ */
6865
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaManagedAgentDefinition {
6866
+ }
6858
6867
  /**
6859
6868
  * Media-specific user event information.
6860
6869
  */
@@ -8214,7 +8223,7 @@ export declare namespace discoveryengine_v1alpha {
8214
8223
  */
8215
8224
  orderBy?: string | null;
8216
8225
  /**
8217
- * 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`
8226
+ * 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`
8218
8227
  */
8219
8228
  pageCategories?: string[] | null;
8220
8229
  /**
@@ -10200,7 +10209,7 @@ export declare namespace discoveryengine_v1alpha {
10200
10209
  */
10201
10210
  eventType?: string | null;
10202
10211
  /**
10203
- * 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.
10212
+ * 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.
10204
10213
  */
10205
10214
  filter?: string | null;
10206
10215
  /**
@@ -12953,7 +12962,7 @@ export declare namespace discoveryengine_v1alpha {
12953
12962
  */
12954
12963
  orderBy?: string | null;
12955
12964
  /**
12956
- * 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`
12965
+ * 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`
12957
12966
  */
12958
12967
  pageCategories?: string[] | null;
12959
12968
  /**
@@ -14459,6 +14468,10 @@ export declare namespace discoveryengine_v1alpha {
14459
14468
  * 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.
14460
14469
  */
14461
14470
  name?: string | null;
14471
+ /**
14472
+ * Optional. Configuration for Natural Language Query Understanding.
14473
+ */
14474
+ naturalLanguageQueryUnderstandingConfig?: Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig;
14462
14475
  /**
14463
14476
  * Optional. Stores serving config at DataStore level.
14464
14477
  */
@@ -15302,6 +15315,15 @@ export declare namespace discoveryengine_v1alpha {
15302
15315
  */
15303
15316
  subscriptionTier?: string | null;
15304
15317
  }
15318
+ /**
15319
+ * Configuration for Natural Language Query Understanding.
15320
+ */
15321
+ export interface Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig {
15322
+ /**
15323
+ * Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.
15324
+ */
15325
+ mode?: string | null;
15326
+ }
15305
15327
  /**
15306
15328
  * Metadata and configurations for a Google Cloud project in the service.
15307
15329
  */
@@ -25518,6 +25540,70 @@ export declare namespace discoveryengine_v1alpha {
25518
25540
  answer(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
25519
25541
  answer(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
25520
25542
  answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
25543
+ /**
25544
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
25545
+ * @example
25546
+ * ```js
25547
+ * // Before running the sample:
25548
+ * // - Enable the API at:
25549
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
25550
+ * // - Login into gcloud by running:
25551
+ * // ```sh
25552
+ * // $ gcloud auth application-default login
25553
+ * // ```
25554
+ * // - Install the npm module by running:
25555
+ * // ```sh
25556
+ * // $ npm install googleapis
25557
+ * // ```
25558
+ *
25559
+ * const {google} = require('googleapis');
25560
+ * const discoveryengine = google.discoveryengine('v1alpha');
25561
+ *
25562
+ * async function main() {
25563
+ * const auth = new google.auth.GoogleAuth({
25564
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
25565
+ * scopes: [
25566
+ * 'https://www.googleapis.com/auth/cloud-platform',
25567
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
25568
+ * ],
25569
+ * });
25570
+ *
25571
+ * // Acquire an auth client, and bind it to all future calls
25572
+ * const authClient = await auth.getClient();
25573
+ * google.options({auth: authClient});
25574
+ *
25575
+ * // Do the magic
25576
+ * const res =
25577
+ * await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
25578
+ * {
25579
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
25580
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
25581
+ * },
25582
+ * );
25583
+ * console.log(res.data);
25584
+ *
25585
+ * // Example response
25586
+ * // {}
25587
+ * }
25588
+ *
25589
+ * main().catch(e => {
25590
+ * console.error(e);
25591
+ * throw e;
25592
+ * });
25593
+ *
25594
+ * ```
25595
+ *
25596
+ * @param params - Parameters for request
25597
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
25598
+ * @param callback - Optional callback that handles the response.
25599
+ * @returns A promise if used with async/await, or void if used with a callback.
25600
+ */
25601
+ delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
25602
+ delete(params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
25603
+ delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
25604
+ delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
25605
+ delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
25606
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
25521
25607
  /**
25522
25608
  * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
25523
25609
  * @example
@@ -26248,6 +26334,12 @@ export declare namespace discoveryengine_v1alpha {
26248
26334
  */
26249
26335
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
26250
26336
  }
26337
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
26338
+ /**
26339
+ * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
26340
+ */
26341
+ name?: string;
26342
+ }
26251
26343
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get extends StandardParameters {
26252
26344
  /**
26253
26345
  * Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -31199,6 +31291,7 @@ export declare namespace discoveryengine_v1alpha {
31199
31291
  * // "displayName": "my_displayName",
31200
31292
  * // "icon": {},
31201
31293
  * // "languageCode": "my_languageCode",
31294
+ * // "managedAgentDefinition": {},
31202
31295
  * // "name": "my_name",
31203
31296
  * // "rejectionReason": "my_rejectionReason",
31204
31297
  * // "sharingConfig": {},
@@ -31225,6 +31318,7 @@ export declare namespace discoveryengine_v1alpha {
31225
31318
  * // "displayName": "my_displayName",
31226
31319
  * // "icon": {},
31227
31320
  * // "languageCode": "my_languageCode",
31321
+ * // "managedAgentDefinition": {},
31228
31322
  * // "name": "my_name",
31229
31323
  * // "rejectionReason": "my_rejectionReason",
31230
31324
  * // "sharingConfig": {},
@@ -31380,6 +31474,7 @@ export declare namespace discoveryengine_v1alpha {
31380
31474
  * // "displayName": "my_displayName",
31381
31475
  * // "icon": {},
31382
31476
  * // "languageCode": "my_languageCode",
31477
+ * // "managedAgentDefinition": {},
31383
31478
  * // "name": "my_name",
31384
31479
  * // "rejectionReason": "my_rejectionReason",
31385
31480
  * // "sharingConfig": {},
@@ -31464,6 +31559,7 @@ export declare namespace discoveryengine_v1alpha {
31464
31559
  * // "displayName": "my_displayName",
31465
31560
  * // "icon": {},
31466
31561
  * // "languageCode": "my_languageCode",
31562
+ * // "managedAgentDefinition": {},
31467
31563
  * // "name": "my_name",
31468
31564
  * // "rejectionReason": "my_rejectionReason",
31469
31565
  * // "sharingConfig": {},
@@ -31548,6 +31644,7 @@ export declare namespace discoveryengine_v1alpha {
31548
31644
  * // "displayName": "my_displayName",
31549
31645
  * // "icon": {},
31550
31646
  * // "languageCode": "my_languageCode",
31647
+ * // "managedAgentDefinition": {},
31551
31648
  * // "name": "my_name",
31552
31649
  * // "rejectionReason": "my_rejectionReason",
31553
31650
  * // "sharingConfig": {},
@@ -31853,6 +31950,7 @@ export declare namespace discoveryengine_v1alpha {
31853
31950
  * // "displayName": "my_displayName",
31854
31951
  * // "icon": {},
31855
31952
  * // "languageCode": "my_languageCode",
31953
+ * // "managedAgentDefinition": {},
31856
31954
  * // "name": "my_name",
31857
31955
  * // "rejectionReason": "my_rejectionReason",
31858
31956
  * // "sharingConfig": {},
@@ -31879,6 +31977,7 @@ export declare namespace discoveryengine_v1alpha {
31879
31977
  * // "displayName": "my_displayName",
31880
31978
  * // "icon": {},
31881
31979
  * // "languageCode": "my_languageCode",
31980
+ * // "managedAgentDefinition": {},
31882
31981
  * // "name": "my_name",
31883
31982
  * // "rejectionReason": "my_rejectionReason",
31884
31983
  * // "sharingConfig": {},
@@ -32043,6 +32142,7 @@ export declare namespace discoveryengine_v1alpha {
32043
32142
  * // "displayName": "my_displayName",
32044
32143
  * // "icon": {},
32045
32144
  * // "languageCode": "my_languageCode",
32145
+ * // "managedAgentDefinition": {},
32046
32146
  * // "name": "my_name",
32047
32147
  * // "rejectionReason": "my_rejectionReason",
32048
32148
  * // "sharingConfig": {},
@@ -34275,6 +34375,70 @@ export declare namespace discoveryengine_v1alpha {
34275
34375
  answer(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
34276
34376
  answer(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
34277
34377
  answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
34378
+ /**
34379
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
34380
+ * @example
34381
+ * ```js
34382
+ * // Before running the sample:
34383
+ * // - Enable the API at:
34384
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
34385
+ * // - Login into gcloud by running:
34386
+ * // ```sh
34387
+ * // $ gcloud auth application-default login
34388
+ * // ```
34389
+ * // - Install the npm module by running:
34390
+ * // ```sh
34391
+ * // $ npm install googleapis
34392
+ * // ```
34393
+ *
34394
+ * const {google} = require('googleapis');
34395
+ * const discoveryengine = google.discoveryengine('v1alpha');
34396
+ *
34397
+ * async function main() {
34398
+ * const auth = new google.auth.GoogleAuth({
34399
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
34400
+ * scopes: [
34401
+ * 'https://www.googleapis.com/auth/cloud-platform',
34402
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
34403
+ * ],
34404
+ * });
34405
+ *
34406
+ * // Acquire an auth client, and bind it to all future calls
34407
+ * const authClient = await auth.getClient();
34408
+ * google.options({auth: authClient});
34409
+ *
34410
+ * // Do the magic
34411
+ * const res =
34412
+ * await discoveryengine.projects.locations.collections.engines.servingConfigs.delete(
34413
+ * {
34414
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
34415
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/servingConfigs/my-servingConfig',
34416
+ * },
34417
+ * );
34418
+ * console.log(res.data);
34419
+ *
34420
+ * // Example response
34421
+ * // {}
34422
+ * }
34423
+ *
34424
+ * main().catch(e => {
34425
+ * console.error(e);
34426
+ * throw e;
34427
+ * });
34428
+ *
34429
+ * ```
34430
+ *
34431
+ * @param params - Parameters for request
34432
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
34433
+ * @param callback - Optional callback that handles the response.
34434
+ * @returns A promise if used with async/await, or void if used with a callback.
34435
+ */
34436
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
34437
+ delete(params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
34438
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
34439
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
34440
+ delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
34441
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
34278
34442
  /**
34279
34443
  * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
34280
34444
  * @example
@@ -35005,6 +35169,12 @@ export declare namespace discoveryengine_v1alpha {
35005
35169
  */
35006
35170
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
35007
35171
  }
35172
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
35173
+ /**
35174
+ * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
35175
+ */
35176
+ name?: string;
35177
+ }
35008
35178
  export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get extends StandardParameters {
35009
35179
  /**
35010
35180
  * Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
@@ -40824,6 +40994,68 @@ export declare namespace discoveryengine_v1alpha {
40824
40994
  answer(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
40825
40995
  answer(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
40826
40996
  answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse>): void;
40997
+ /**
40998
+ * Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
40999
+ * @example
41000
+ * ```js
41001
+ * // Before running the sample:
41002
+ * // - Enable the API at:
41003
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
41004
+ * // - Login into gcloud by running:
41005
+ * // ```sh
41006
+ * // $ gcloud auth application-default login
41007
+ * // ```
41008
+ * // - Install the npm module by running:
41009
+ * // ```sh
41010
+ * // $ npm install googleapis
41011
+ * // ```
41012
+ *
41013
+ * const {google} = require('googleapis');
41014
+ * const discoveryengine = google.discoveryengine('v1alpha');
41015
+ *
41016
+ * async function main() {
41017
+ * const auth = new google.auth.GoogleAuth({
41018
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
41019
+ * scopes: [
41020
+ * 'https://www.googleapis.com/auth/cloud-platform',
41021
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
41022
+ * ],
41023
+ * });
41024
+ *
41025
+ * // Acquire an auth client, and bind it to all future calls
41026
+ * const authClient = await auth.getClient();
41027
+ * google.options({auth: authClient});
41028
+ *
41029
+ * // Do the magic
41030
+ * const res =
41031
+ * await discoveryengine.projects.locations.dataStores.servingConfigs.delete({
41032
+ * // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
41033
+ * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
41034
+ * });
41035
+ * console.log(res.data);
41036
+ *
41037
+ * // Example response
41038
+ * // {}
41039
+ * }
41040
+ *
41041
+ * main().catch(e => {
41042
+ * console.error(e);
41043
+ * throw e;
41044
+ * });
41045
+ *
41046
+ * ```
41047
+ *
41048
+ * @param params - Parameters for request
41049
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
41050
+ * @param callback - Optional callback that handles the response.
41051
+ * @returns A promise if used with async/await, or void if used with a callback.
41052
+ */
41053
+ delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
41054
+ delete(params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
41055
+ delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
41056
+ delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
41057
+ delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
41058
+ delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
40827
41059
  /**
40828
41060
  * Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
40829
41061
  * @example
@@ -41546,6 +41778,12 @@ export declare namespace discoveryengine_v1alpha {
41546
41778
  */
41547
41779
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest;
41548
41780
  }
41781
+ export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
41782
+ /**
41783
+ * Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
41784
+ */
41785
+ name?: string;
41786
+ }
41549
41787
  export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get extends StandardParameters {
41550
41788
  /**
41551
41789
  * Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
package/build/v1alpha.js CHANGED
@@ -3418,6 +3418,39 @@ var discoveryengine_v1alpha;
3418
3418
  return (0, googleapis_common_1.createAPIRequest)(parameters);
3419
3419
  }
3420
3420
  }
3421
+ delete(paramsOrCallback, optionsOrCallback, callback) {
3422
+ let params = (paramsOrCallback ||
3423
+ {});
3424
+ let options = (optionsOrCallback || {});
3425
+ if (typeof paramsOrCallback === 'function') {
3426
+ callback = paramsOrCallback;
3427
+ params =
3428
+ {};
3429
+ options = {};
3430
+ }
3431
+ if (typeof optionsOrCallback === 'function') {
3432
+ callback = optionsOrCallback;
3433
+ options = {};
3434
+ }
3435
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
3436
+ const parameters = {
3437
+ options: Object.assign({
3438
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3439
+ method: 'DELETE',
3440
+ apiVersion: '',
3441
+ }, options),
3442
+ params,
3443
+ requiredParams: ['name'],
3444
+ pathParams: ['name'],
3445
+ context: this.context,
3446
+ };
3447
+ if (callback) {
3448
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
3449
+ }
3450
+ else {
3451
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
3452
+ }
3453
+ }
3421
3454
  get(paramsOrCallback, optionsOrCallback, callback) {
3422
3455
  let params = (paramsOrCallback ||
3423
3456
  {});
@@ -6663,6 +6696,39 @@ var discoveryengine_v1alpha;
6663
6696
  return (0, googleapis_common_1.createAPIRequest)(parameters);
6664
6697
  }
6665
6698
  }
6699
+ delete(paramsOrCallback, optionsOrCallback, callback) {
6700
+ let params = (paramsOrCallback ||
6701
+ {});
6702
+ let options = (optionsOrCallback || {});
6703
+ if (typeof paramsOrCallback === 'function') {
6704
+ callback = paramsOrCallback;
6705
+ params =
6706
+ {};
6707
+ options = {};
6708
+ }
6709
+ if (typeof optionsOrCallback === 'function') {
6710
+ callback = optionsOrCallback;
6711
+ options = {};
6712
+ }
6713
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
6714
+ const parameters = {
6715
+ options: Object.assign({
6716
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
6717
+ method: 'DELETE',
6718
+ apiVersion: '',
6719
+ }, options),
6720
+ params,
6721
+ requiredParams: ['name'],
6722
+ pathParams: ['name'],
6723
+ context: this.context,
6724
+ };
6725
+ if (callback) {
6726
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
6727
+ }
6728
+ else {
6729
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
6730
+ }
6731
+ }
6666
6732
  get(paramsOrCallback, optionsOrCallback, callback) {
6667
6733
  let params = (paramsOrCallback ||
6668
6734
  {});
@@ -9151,6 +9217,39 @@ var discoveryengine_v1alpha;
9151
9217
  return (0, googleapis_common_1.createAPIRequest)(parameters);
9152
9218
  }
9153
9219
  }
9220
+ delete(paramsOrCallback, optionsOrCallback, callback) {
9221
+ let params = (paramsOrCallback ||
9222
+ {});
9223
+ let options = (optionsOrCallback || {});
9224
+ if (typeof paramsOrCallback === 'function') {
9225
+ callback = paramsOrCallback;
9226
+ params =
9227
+ {};
9228
+ options = {};
9229
+ }
9230
+ if (typeof optionsOrCallback === 'function') {
9231
+ callback = optionsOrCallback;
9232
+ options = {};
9233
+ }
9234
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
9235
+ const parameters = {
9236
+ options: Object.assign({
9237
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
9238
+ method: 'DELETE',
9239
+ apiVersion: '',
9240
+ }, options),
9241
+ params,
9242
+ requiredParams: ['name'],
9243
+ pathParams: ['name'],
9244
+ context: this.context,
9245
+ };
9246
+ if (callback) {
9247
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
9248
+ }
9249
+ else {
9250
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
9251
+ }
9252
+ }
9154
9253
  get(paramsOrCallback, optionsOrCallback, callback) {
9155
9254
  let params = (paramsOrCallback ||
9156
9255
  {});