@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/build/v1beta.d.ts
CHANGED
|
@@ -4052,7 +4052,7 @@ export declare namespace discoveryengine_v1beta {
|
|
|
4052
4052
|
*/
|
|
4053
4053
|
orderBy?: string | null;
|
|
4054
4054
|
/**
|
|
4055
|
-
* 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`
|
|
4055
|
+
* 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`
|
|
4056
4056
|
*/
|
|
4057
4057
|
pageCategories?: string[] | null;
|
|
4058
4058
|
/**
|
|
@@ -10760,7 +10760,7 @@ export declare namespace discoveryengine_v1beta {
|
|
|
10760
10760
|
*/
|
|
10761
10761
|
orderBy?: string | null;
|
|
10762
10762
|
/**
|
|
10763
|
-
* 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`
|
|
10763
|
+
* 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`
|
|
10764
10764
|
*/
|
|
10765
10765
|
pageCategories?: string[] | null;
|
|
10766
10766
|
/**
|
|
@@ -12577,7 +12577,7 @@ export declare namespace discoveryengine_v1beta {
|
|
|
12577
12577
|
*/
|
|
12578
12578
|
eventType?: string | null;
|
|
12579
12579
|
/**
|
|
12580
|
-
* 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.
|
|
12580
|
+
* 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.
|
|
12581
12581
|
*/
|
|
12582
12582
|
filter?: string | null;
|
|
12583
12583
|
/**
|
|
@@ -13383,6 +13383,10 @@ export declare namespace discoveryengine_v1beta {
|
|
|
13383
13383
|
* 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.
|
|
13384
13384
|
*/
|
|
13385
13385
|
name?: string | null;
|
|
13386
|
+
/**
|
|
13387
|
+
* Optional. Configuration for Natural Language Query Understanding.
|
|
13388
|
+
*/
|
|
13389
|
+
naturalLanguageQueryUnderstandingConfig?: Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig;
|
|
13386
13390
|
/**
|
|
13387
13391
|
* Optional. Stores serving config at DataStore level.
|
|
13388
13392
|
*/
|
|
@@ -14226,6 +14230,15 @@ export declare namespace discoveryengine_v1beta {
|
|
|
14226
14230
|
*/
|
|
14227
14231
|
subscriptionTier?: string | null;
|
|
14228
14232
|
}
|
|
14233
|
+
/**
|
|
14234
|
+
* Configuration for Natural Language Query Understanding.
|
|
14235
|
+
*/
|
|
14236
|
+
export interface Schema$GoogleCloudDiscoveryengineV1NaturalLanguageQueryUnderstandingConfig {
|
|
14237
|
+
/**
|
|
14238
|
+
* Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED.
|
|
14239
|
+
*/
|
|
14240
|
+
mode?: string | null;
|
|
14241
|
+
}
|
|
14229
14242
|
/**
|
|
14230
14243
|
* Metadata and configurations for a Google Cloud project in the service.
|
|
14231
14244
|
*/
|
|
@@ -20720,6 +20733,70 @@ export declare namespace discoveryengine_v1beta {
|
|
|
20720
20733
|
answer(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>): void;
|
|
20721
20734
|
answer(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>): void;
|
|
20722
20735
|
answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>): void;
|
|
20736
|
+
/**
|
|
20737
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
20738
|
+
* @example
|
|
20739
|
+
* ```js
|
|
20740
|
+
* // Before running the sample:
|
|
20741
|
+
* // - Enable the API at:
|
|
20742
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
20743
|
+
* // - Login into gcloud by running:
|
|
20744
|
+
* // ```sh
|
|
20745
|
+
* // $ gcloud auth application-default login
|
|
20746
|
+
* // ```
|
|
20747
|
+
* // - Install the npm module by running:
|
|
20748
|
+
* // ```sh
|
|
20749
|
+
* // $ npm install googleapis
|
|
20750
|
+
* // ```
|
|
20751
|
+
*
|
|
20752
|
+
* const {google} = require('googleapis');
|
|
20753
|
+
* const discoveryengine = google.discoveryengine('v1beta');
|
|
20754
|
+
*
|
|
20755
|
+
* async function main() {
|
|
20756
|
+
* const auth = new google.auth.GoogleAuth({
|
|
20757
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
20758
|
+
* scopes: [
|
|
20759
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
20760
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
20761
|
+
* ],
|
|
20762
|
+
* });
|
|
20763
|
+
*
|
|
20764
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
20765
|
+
* const authClient = await auth.getClient();
|
|
20766
|
+
* google.options({auth: authClient});
|
|
20767
|
+
*
|
|
20768
|
+
* // Do the magic
|
|
20769
|
+
* const res =
|
|
20770
|
+
* await discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete(
|
|
20771
|
+
* {
|
|
20772
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
20773
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
20774
|
+
* },
|
|
20775
|
+
* );
|
|
20776
|
+
* console.log(res.data);
|
|
20777
|
+
*
|
|
20778
|
+
* // Example response
|
|
20779
|
+
* // {}
|
|
20780
|
+
* }
|
|
20781
|
+
*
|
|
20782
|
+
* main().catch(e => {
|
|
20783
|
+
* console.error(e);
|
|
20784
|
+
* throw e;
|
|
20785
|
+
* });
|
|
20786
|
+
*
|
|
20787
|
+
* ```
|
|
20788
|
+
*
|
|
20789
|
+
* @param params - Parameters for request
|
|
20790
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
20791
|
+
* @param callback - Optional callback that handles the response.
|
|
20792
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
20793
|
+
*/
|
|
20794
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
20795
|
+
delete(params?: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
20796
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
20797
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
20798
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
20799
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
20723
20800
|
/**
|
|
20724
20801
|
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
20725
20802
|
* @example
|
|
@@ -21439,6 +21516,12 @@ export declare namespace discoveryengine_v1beta {
|
|
|
21439
21516
|
*/
|
|
21440
21517
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
|
|
21441
21518
|
}
|
|
21519
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
21520
|
+
/**
|
|
21521
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
21522
|
+
*/
|
|
21523
|
+
name?: string;
|
|
21524
|
+
}
|
|
21442
21525
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get extends StandardParameters {
|
|
21443
21526
|
/**
|
|
21444
21527
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -27119,6 +27202,70 @@ export declare namespace discoveryengine_v1beta {
|
|
|
27119
27202
|
answer(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>): void;
|
|
27120
27203
|
answer(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>): void;
|
|
27121
27204
|
answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>): void;
|
|
27205
|
+
/**
|
|
27206
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
27207
|
+
* @example
|
|
27208
|
+
* ```js
|
|
27209
|
+
* // Before running the sample:
|
|
27210
|
+
* // - Enable the API at:
|
|
27211
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
27212
|
+
* // - Login into gcloud by running:
|
|
27213
|
+
* // ```sh
|
|
27214
|
+
* // $ gcloud auth application-default login
|
|
27215
|
+
* // ```
|
|
27216
|
+
* // - Install the npm module by running:
|
|
27217
|
+
* // ```sh
|
|
27218
|
+
* // $ npm install googleapis
|
|
27219
|
+
* // ```
|
|
27220
|
+
*
|
|
27221
|
+
* const {google} = require('googleapis');
|
|
27222
|
+
* const discoveryengine = google.discoveryengine('v1beta');
|
|
27223
|
+
*
|
|
27224
|
+
* async function main() {
|
|
27225
|
+
* const auth = new google.auth.GoogleAuth({
|
|
27226
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
27227
|
+
* scopes: [
|
|
27228
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
27229
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
27230
|
+
* ],
|
|
27231
|
+
* });
|
|
27232
|
+
*
|
|
27233
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
27234
|
+
* const authClient = await auth.getClient();
|
|
27235
|
+
* google.options({auth: authClient});
|
|
27236
|
+
*
|
|
27237
|
+
* // Do the magic
|
|
27238
|
+
* const res =
|
|
27239
|
+
* await discoveryengine.projects.locations.collections.engines.servingConfigs.delete(
|
|
27240
|
+
* {
|
|
27241
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
27242
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/servingConfigs/my-servingConfig',
|
|
27243
|
+
* },
|
|
27244
|
+
* );
|
|
27245
|
+
* console.log(res.data);
|
|
27246
|
+
*
|
|
27247
|
+
* // Example response
|
|
27248
|
+
* // {}
|
|
27249
|
+
* }
|
|
27250
|
+
*
|
|
27251
|
+
* main().catch(e => {
|
|
27252
|
+
* console.error(e);
|
|
27253
|
+
* throw e;
|
|
27254
|
+
* });
|
|
27255
|
+
*
|
|
27256
|
+
* ```
|
|
27257
|
+
*
|
|
27258
|
+
* @param params - Parameters for request
|
|
27259
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
27260
|
+
* @param callback - Optional callback that handles the response.
|
|
27261
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
27262
|
+
*/
|
|
27263
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
27264
|
+
delete(params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
27265
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
27266
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
27267
|
+
delete(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
27268
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
27122
27269
|
/**
|
|
27123
27270
|
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
27124
27271
|
* @example
|
|
@@ -27838,6 +27985,12 @@ export declare namespace discoveryengine_v1beta {
|
|
|
27838
27985
|
*/
|
|
27839
27986
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
|
|
27840
27987
|
}
|
|
27988
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Delete extends StandardParameters {
|
|
27989
|
+
/**
|
|
27990
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
27991
|
+
*/
|
|
27992
|
+
name?: string;
|
|
27993
|
+
}
|
|
27841
27994
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get extends StandardParameters {
|
|
27842
27995
|
/**
|
|
27843
27996
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
@@ -32496,6 +32649,68 @@ export declare namespace discoveryengine_v1beta {
|
|
|
32496
32649
|
answer(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>): void;
|
|
32497
32650
|
answer(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Answer, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>): void;
|
|
32498
32651
|
answer(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>): void;
|
|
32652
|
+
/**
|
|
32653
|
+
* Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.
|
|
32654
|
+
* @example
|
|
32655
|
+
* ```js
|
|
32656
|
+
* // Before running the sample:
|
|
32657
|
+
* // - Enable the API at:
|
|
32658
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
32659
|
+
* // - Login into gcloud by running:
|
|
32660
|
+
* // ```sh
|
|
32661
|
+
* // $ gcloud auth application-default login
|
|
32662
|
+
* // ```
|
|
32663
|
+
* // - Install the npm module by running:
|
|
32664
|
+
* // ```sh
|
|
32665
|
+
* // $ npm install googleapis
|
|
32666
|
+
* // ```
|
|
32667
|
+
*
|
|
32668
|
+
* const {google} = require('googleapis');
|
|
32669
|
+
* const discoveryengine = google.discoveryengine('v1beta');
|
|
32670
|
+
*
|
|
32671
|
+
* async function main() {
|
|
32672
|
+
* const auth = new google.auth.GoogleAuth({
|
|
32673
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
32674
|
+
* scopes: [
|
|
32675
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
32676
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
32677
|
+
* ],
|
|
32678
|
+
* });
|
|
32679
|
+
*
|
|
32680
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
32681
|
+
* const authClient = await auth.getClient();
|
|
32682
|
+
* google.options({auth: authClient});
|
|
32683
|
+
*
|
|
32684
|
+
* // Do the magic
|
|
32685
|
+
* const res =
|
|
32686
|
+
* await discoveryengine.projects.locations.dataStores.servingConfigs.delete({
|
|
32687
|
+
* // Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
32688
|
+
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/servingConfigs/my-servingConfig',
|
|
32689
|
+
* });
|
|
32690
|
+
* console.log(res.data);
|
|
32691
|
+
*
|
|
32692
|
+
* // Example response
|
|
32693
|
+
* // {}
|
|
32694
|
+
* }
|
|
32695
|
+
*
|
|
32696
|
+
* main().catch(e => {
|
|
32697
|
+
* console.error(e);
|
|
32698
|
+
* throw e;
|
|
32699
|
+
* });
|
|
32700
|
+
*
|
|
32701
|
+
* ```
|
|
32702
|
+
*
|
|
32703
|
+
* @param params - Parameters for request
|
|
32704
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
32705
|
+
* @param callback - Optional callback that handles the response.
|
|
32706
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
32707
|
+
*/
|
|
32708
|
+
delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
32709
|
+
delete(params?: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
32710
|
+
delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
32711
|
+
delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
32712
|
+
delete(params: Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
32713
|
+
delete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
|
|
32499
32714
|
/**
|
|
32500
32715
|
* Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.
|
|
32501
32716
|
* @example
|
|
@@ -33207,6 +33422,12 @@ export declare namespace discoveryengine_v1beta {
|
|
|
33207
33422
|
*/
|
|
33208
33423
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
|
|
33209
33424
|
}
|
|
33425
|
+
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Delete extends StandardParameters {
|
|
33426
|
+
/**
|
|
33427
|
+
* Required. The resource name of the ServingConfig to delete. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
33428
|
+
*/
|
|
33429
|
+
name?: string;
|
|
33430
|
+
}
|
|
33210
33431
|
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get extends StandardParameters {
|
|
33211
33432
|
/**
|
|
33212
33433
|
* Required. The resource name of the ServingConfig to get. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
package/build/v1beta.js
CHANGED
|
@@ -2255,6 +2255,39 @@ var discoveryengine_v1beta;
|
|
|
2255
2255
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
2256
2256
|
}
|
|
2257
2257
|
}
|
|
2258
|
+
delete(paramsOrCallback, optionsOrCallback, callback) {
|
|
2259
|
+
let params = (paramsOrCallback ||
|
|
2260
|
+
{});
|
|
2261
|
+
let options = (optionsOrCallback || {});
|
|
2262
|
+
if (typeof paramsOrCallback === 'function') {
|
|
2263
|
+
callback = paramsOrCallback;
|
|
2264
|
+
params =
|
|
2265
|
+
{};
|
|
2266
|
+
options = {};
|
|
2267
|
+
}
|
|
2268
|
+
if (typeof optionsOrCallback === 'function') {
|
|
2269
|
+
callback = optionsOrCallback;
|
|
2270
|
+
options = {};
|
|
2271
|
+
}
|
|
2272
|
+
const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
2273
|
+
const parameters = {
|
|
2274
|
+
options: Object.assign({
|
|
2275
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
2276
|
+
method: 'DELETE',
|
|
2277
|
+
apiVersion: '',
|
|
2278
|
+
}, options),
|
|
2279
|
+
params,
|
|
2280
|
+
requiredParams: ['name'],
|
|
2281
|
+
pathParams: ['name'],
|
|
2282
|
+
context: this.context,
|
|
2283
|
+
};
|
|
2284
|
+
if (callback) {
|
|
2285
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
2286
|
+
}
|
|
2287
|
+
else {
|
|
2288
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2258
2291
|
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
2259
2292
|
let params = (paramsOrCallback ||
|
|
2260
2293
|
{});
|
|
@@ -4668,6 +4701,39 @@ var discoveryengine_v1beta;
|
|
|
4668
4701
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
4669
4702
|
}
|
|
4670
4703
|
}
|
|
4704
|
+
delete(paramsOrCallback, optionsOrCallback, callback) {
|
|
4705
|
+
let params = (paramsOrCallback ||
|
|
4706
|
+
{});
|
|
4707
|
+
let options = (optionsOrCallback || {});
|
|
4708
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4709
|
+
callback = paramsOrCallback;
|
|
4710
|
+
params =
|
|
4711
|
+
{};
|
|
4712
|
+
options = {};
|
|
4713
|
+
}
|
|
4714
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4715
|
+
callback = optionsOrCallback;
|
|
4716
|
+
options = {};
|
|
4717
|
+
}
|
|
4718
|
+
const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
4719
|
+
const parameters = {
|
|
4720
|
+
options: Object.assign({
|
|
4721
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
4722
|
+
method: 'DELETE',
|
|
4723
|
+
apiVersion: '',
|
|
4724
|
+
}, options),
|
|
4725
|
+
params,
|
|
4726
|
+
requiredParams: ['name'],
|
|
4727
|
+
pathParams: ['name'],
|
|
4728
|
+
context: this.context,
|
|
4729
|
+
};
|
|
4730
|
+
if (callback) {
|
|
4731
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
4732
|
+
}
|
|
4733
|
+
else {
|
|
4734
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
4735
|
+
}
|
|
4736
|
+
}
|
|
4671
4737
|
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
4672
4738
|
let params = (paramsOrCallback ||
|
|
4673
4739
|
{});
|
|
@@ -6700,6 +6766,39 @@ var discoveryengine_v1beta;
|
|
|
6700
6766
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
6701
6767
|
}
|
|
6702
6768
|
}
|
|
6769
|
+
delete(paramsOrCallback, optionsOrCallback, callback) {
|
|
6770
|
+
let params = (paramsOrCallback ||
|
|
6771
|
+
{});
|
|
6772
|
+
let options = (optionsOrCallback || {});
|
|
6773
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6774
|
+
callback = paramsOrCallback;
|
|
6775
|
+
params =
|
|
6776
|
+
{};
|
|
6777
|
+
options = {};
|
|
6778
|
+
}
|
|
6779
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6780
|
+
callback = optionsOrCallback;
|
|
6781
|
+
options = {};
|
|
6782
|
+
}
|
|
6783
|
+
const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
6784
|
+
const parameters = {
|
|
6785
|
+
options: Object.assign({
|
|
6786
|
+
url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
6787
|
+
method: 'DELETE',
|
|
6788
|
+
apiVersion: '',
|
|
6789
|
+
}, options),
|
|
6790
|
+
params,
|
|
6791
|
+
requiredParams: ['name'],
|
|
6792
|
+
pathParams: ['name'],
|
|
6793
|
+
context: this.context,
|
|
6794
|
+
};
|
|
6795
|
+
if (callback) {
|
|
6796
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
6797
|
+
}
|
|
6798
|
+
else {
|
|
6799
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
6800
|
+
}
|
|
6801
|
+
}
|
|
6703
6802
|
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
6704
6803
|
let params = (paramsOrCallback ||
|
|
6705
6804
|
{});
|