@googleapis/discoveryengine 1.2.0 → 2.0.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 +22 -0
- package/build/v1alpha.d.ts +625 -10
- package/build/v1alpha.js +275 -0
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +170 -10
- package/build/v1beta.js +72 -0
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1alpha.ts +1436 -119
- package/v1beta.ts +351 -12
package/build/v1beta.d.ts
CHANGED
|
@@ -417,6 +417,78 @@ export declare namespace discoveryengine_v1beta {
|
|
|
417
417
|
*/
|
|
418
418
|
purgeCount?: string | null;
|
|
419
419
|
}
|
|
420
|
+
/**
|
|
421
|
+
* Metadata related to the progress of the SiteSearchEngineService.RecrawlUris operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
422
|
+
*/
|
|
423
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata {
|
|
424
|
+
/**
|
|
425
|
+
* Operation create time.
|
|
426
|
+
*/
|
|
427
|
+
createTime?: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* Unique URIs in the request that don't match any TargetSite in the DataStore, only match TargetSites that haven't been fully indexed, or match a TargetSite with type EXCLUDE.
|
|
430
|
+
*/
|
|
431
|
+
invalidUris?: string[] | null;
|
|
432
|
+
/**
|
|
433
|
+
* Total number of URIs that have yet to be crawled.
|
|
434
|
+
*/
|
|
435
|
+
pendingCount?: number | null;
|
|
436
|
+
/**
|
|
437
|
+
* Total number of URIs that were rejected due to insufficient indexing resources.
|
|
438
|
+
*/
|
|
439
|
+
quotaExceededCount?: number | null;
|
|
440
|
+
/**
|
|
441
|
+
* Total number of URIs that have been crawled so far.
|
|
442
|
+
*/
|
|
443
|
+
successCount?: number | null;
|
|
444
|
+
/**
|
|
445
|
+
* Operation last update time. If the operation is done, this is also the finish time.
|
|
446
|
+
*/
|
|
447
|
+
updateTime?: string | null;
|
|
448
|
+
/**
|
|
449
|
+
* Total number of unique URIs in the request that are not in invalid_uris.
|
|
450
|
+
*/
|
|
451
|
+
validUrisCount?: number | null;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Response message for SiteSearchEngineService.RecrawlUris method.
|
|
455
|
+
*/
|
|
456
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse {
|
|
457
|
+
/**
|
|
458
|
+
* URIs that were not crawled before the LRO terminated.
|
|
459
|
+
*/
|
|
460
|
+
failedUris?: string[] | null;
|
|
461
|
+
/**
|
|
462
|
+
* Details for a sample of up to 10 `failed_uris`.
|
|
463
|
+
*/
|
|
464
|
+
failureSamples?: Schema$GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo[];
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Details about why a particular URI failed to be crawled. Each FailureInfo contains one FailureReason per CorpusType.
|
|
468
|
+
*/
|
|
469
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo {
|
|
470
|
+
/**
|
|
471
|
+
* List of failure reasons by corpus type (e.g. desktop, mobile).
|
|
472
|
+
*/
|
|
473
|
+
failureReasons?: Schema$GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason[];
|
|
474
|
+
/**
|
|
475
|
+
* URI that failed to be crawled.
|
|
476
|
+
*/
|
|
477
|
+
uri?: string | null;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Details about why crawling failed for a particular CorpusType, e.g. DESKTOP and MOBILE crawling may fail for different reasons.
|
|
481
|
+
*/
|
|
482
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason {
|
|
483
|
+
/**
|
|
484
|
+
* DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
|
|
485
|
+
*/
|
|
486
|
+
corpusType?: string | null;
|
|
487
|
+
/**
|
|
488
|
+
* Reason why the URI was not crawled.
|
|
489
|
+
*/
|
|
490
|
+
errorMessage?: string | null;
|
|
491
|
+
}
|
|
420
492
|
/**
|
|
421
493
|
* Defines the structure and layout of a type of document data.
|
|
422
494
|
*/
|
|
@@ -504,10 +576,6 @@ export declare namespace discoveryengine_v1beta {
|
|
|
504
576
|
quotaFailure?: Schema$GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure;
|
|
505
577
|
}
|
|
506
578
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure {
|
|
507
|
-
/**
|
|
508
|
-
* This number is an estimation on how much total quota this project needs to successfully complete indexing.
|
|
509
|
-
*/
|
|
510
|
-
totalRequiredQuota?: string | null;
|
|
511
579
|
}
|
|
512
580
|
/**
|
|
513
581
|
* Metadata for UpdateSchema LRO.
|
|
@@ -571,7 +639,7 @@ export declare namespace discoveryengine_v1beta {
|
|
|
571
639
|
/**
|
|
572
640
|
* The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
|
|
573
641
|
*/
|
|
574
|
-
|
|
642
|
+
completableFieldPaths?: string[] | null;
|
|
575
643
|
/**
|
|
576
644
|
* The suggestion for the query.
|
|
577
645
|
*/
|
|
@@ -669,6 +737,10 @@ export declare namespace discoveryengine_v1beta {
|
|
|
669
737
|
* The resource name of the Serving Config to use. Format: `projects/{project_number\}/locations/{location_id\}/collections/{collection\}/dataStores/{data_store_id\}/servingConfigs/{serving_config_id\}` If this is not set, the default serving config will be used.
|
|
670
738
|
*/
|
|
671
739
|
servingConfig?: string | null;
|
|
740
|
+
/**
|
|
741
|
+
* A specification for configuring the summary returned in the response.
|
|
742
|
+
*/
|
|
743
|
+
summarySpec?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec;
|
|
672
744
|
/**
|
|
673
745
|
* The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
|
|
674
746
|
*/
|
|
@@ -1448,9 +1520,13 @@ export declare namespace discoveryengine_v1beta {
|
|
|
1448
1520
|
*/
|
|
1449
1521
|
maxExtractiveSegmentCount?: number | null;
|
|
1450
1522
|
/**
|
|
1451
|
-
*
|
|
1523
|
+
* Return at most `num_next_segments` segments after each selected segments.
|
|
1524
|
+
*/
|
|
1525
|
+
numNextSegments?: number | null;
|
|
1526
|
+
/**
|
|
1527
|
+
* Specifies whether to also include the adjacent from each selected segments. Return at most `num_previous_segments` segments before each selected segments.
|
|
1452
1528
|
*/
|
|
1453
|
-
|
|
1529
|
+
numPreviousSegments?: number | null;
|
|
1454
1530
|
}
|
|
1455
1531
|
/**
|
|
1456
1532
|
* A specification for configuring snippets in a search response.
|
|
@@ -1486,7 +1562,7 @@ export declare namespace discoveryengine_v1beta {
|
|
|
1486
1562
|
*/
|
|
1487
1563
|
includeCitations?: boolean | null;
|
|
1488
1564
|
/**
|
|
1489
|
-
* Language code for Summary. Use language tags defined by BCP47.
|
|
1565
|
+
* Language code for Summary. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature.
|
|
1490
1566
|
*/
|
|
1491
1567
|
languageCode?: string | null;
|
|
1492
1568
|
/**
|
|
@@ -1621,6 +1697,7 @@ export declare namespace discoveryengine_v1beta {
|
|
|
1621
1697
|
* Results of facets requested by user.
|
|
1622
1698
|
*/
|
|
1623
1699
|
facets?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseFacet[];
|
|
1700
|
+
geoSearchDebugInfo?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo[];
|
|
1624
1701
|
/**
|
|
1625
1702
|
* Guided search result.
|
|
1626
1703
|
*/
|
|
@@ -1684,6 +1761,19 @@ export declare namespace discoveryengine_v1beta {
|
|
|
1684
1761
|
*/
|
|
1685
1762
|
value?: string | null;
|
|
1686
1763
|
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Debug information specifically related to forward geocoding issues arising from Geolocation Search.
|
|
1766
|
+
*/
|
|
1767
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo {
|
|
1768
|
+
/**
|
|
1769
|
+
* The error produced.
|
|
1770
|
+
*/
|
|
1771
|
+
errorMessage?: string | null;
|
|
1772
|
+
/**
|
|
1773
|
+
* The address from which forward geocoding ingestion produced issues.
|
|
1774
|
+
*/
|
|
1775
|
+
originalAddressQuery?: string | null;
|
|
1776
|
+
}
|
|
1687
1777
|
/**
|
|
1688
1778
|
* Guided search result. The guided search helps user to refine the search results and narrow down to the real needs from a broaded search results.
|
|
1689
1779
|
*/
|
|
@@ -1746,6 +1836,10 @@ export declare namespace discoveryengine_v1beta {
|
|
|
1746
1836
|
* Summary of the top N search result specified by the summary spec.
|
|
1747
1837
|
*/
|
|
1748
1838
|
export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummary {
|
|
1839
|
+
/**
|
|
1840
|
+
* A collection of Safety Attribute categories and their associated confidence scores.
|
|
1841
|
+
*/
|
|
1842
|
+
safetyAttributes?: Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes;
|
|
1749
1843
|
/**
|
|
1750
1844
|
* Additional summary-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set.
|
|
1751
1845
|
*/
|
|
@@ -1755,6 +1849,19 @@ export declare namespace discoveryengine_v1beta {
|
|
|
1755
1849
|
*/
|
|
1756
1850
|
summaryText?: string | null;
|
|
1757
1851
|
}
|
|
1852
|
+
/**
|
|
1853
|
+
* Safety Attribute categories and their associated confidence scores.
|
|
1854
|
+
*/
|
|
1855
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes {
|
|
1856
|
+
/**
|
|
1857
|
+
* The display names of Safety Attribute categories associated with the generated content. Order matches the Scores.
|
|
1858
|
+
*/
|
|
1859
|
+
categories?: string[] | null;
|
|
1860
|
+
/**
|
|
1861
|
+
* The confidence scores of the each category, higher value means higher confidence. Order matches the Categories.
|
|
1862
|
+
*/
|
|
1863
|
+
scores?: number[] | null;
|
|
1864
|
+
}
|
|
1758
1865
|
/**
|
|
1759
1866
|
* Defines text input.
|
|
1760
1867
|
*/
|
|
@@ -2222,7 +2329,7 @@ export declare namespace discoveryengine_v1beta {
|
|
|
2222
2329
|
*/
|
|
2223
2330
|
query?: string;
|
|
2224
2331
|
/**
|
|
2225
|
-
* Selects data model of query suggestions for serving. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for
|
|
2332
|
+
* Selects data model of query suggestions for serving. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.
|
|
2226
2333
|
*/
|
|
2227
2334
|
queryModel?: string;
|
|
2228
2335
|
/**
|
|
@@ -3188,6 +3295,7 @@ export declare namespace discoveryengine_v1beta {
|
|
|
3188
3295
|
export class Resource$Projects$Locations$Collections$Engines {
|
|
3189
3296
|
context: APIRequestContext;
|
|
3190
3297
|
operations: Resource$Projects$Locations$Collections$Engines$Operations;
|
|
3298
|
+
servingConfigs: Resource$Projects$Locations$Collections$Engines$Servingconfigs;
|
|
3191
3299
|
constructor(context: APIRequestContext);
|
|
3192
3300
|
}
|
|
3193
3301
|
export class Resource$Projects$Locations$Collections$Engines$Operations {
|
|
@@ -3246,6 +3354,58 @@ export declare namespace discoveryengine_v1beta {
|
|
|
3246
3354
|
*/
|
|
3247
3355
|
pageToken?: string;
|
|
3248
3356
|
}
|
|
3357
|
+
export class Resource$Projects$Locations$Collections$Engines$Servingconfigs {
|
|
3358
|
+
context: APIRequestContext;
|
|
3359
|
+
constructor(context: APIRequestContext);
|
|
3360
|
+
/**
|
|
3361
|
+
* Makes a recommendation, which requires a contextual user event.
|
|
3362
|
+
*
|
|
3363
|
+
* @param params - Parameters for request
|
|
3364
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3365
|
+
* @param callback - Optional callback that handles the response.
|
|
3366
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3367
|
+
*/
|
|
3368
|
+
recommend(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Recommend, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3369
|
+
recommend(params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Recommend, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>;
|
|
3370
|
+
recommend(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Recommend, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3371
|
+
recommend(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Recommend, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>): void;
|
|
3372
|
+
recommend(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Recommend, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>): void;
|
|
3373
|
+
recommend(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaRecommendResponse>): void;
|
|
3374
|
+
/**
|
|
3375
|
+
* Performs a search.
|
|
3376
|
+
*
|
|
3377
|
+
* @param params - Parameters for request
|
|
3378
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
3379
|
+
* @param callback - Optional callback that handles the response.
|
|
3380
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
3381
|
+
*/
|
|
3382
|
+
search(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Search, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
3383
|
+
search(params?: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Search, options?: MethodOptions): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>;
|
|
3384
|
+
search(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Search, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
3385
|
+
search(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Search, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>): void;
|
|
3386
|
+
search(params: Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Search, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>): void;
|
|
3387
|
+
search(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSearchResponse>): void;
|
|
3388
|
+
}
|
|
3389
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Recommend extends StandardParameters {
|
|
3390
|
+
/**
|
|
3391
|
+
* Required. Full resource name of the format: `projects/x/locations/global/collections/x/dataStores/x/servingConfigs/x` Before you can request recommendations from your model, you must create at least one serving config for it.
|
|
3392
|
+
*/
|
|
3393
|
+
servingConfig?: string;
|
|
3394
|
+
/**
|
|
3395
|
+
* Request body metadata
|
|
3396
|
+
*/
|
|
3397
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaRecommendRequest;
|
|
3398
|
+
}
|
|
3399
|
+
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Search extends StandardParameters {
|
|
3400
|
+
/**
|
|
3401
|
+
* Required. The resource name of the Search serving config, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search.
|
|
3402
|
+
*/
|
|
3403
|
+
servingConfig?: string;
|
|
3404
|
+
/**
|
|
3405
|
+
* Request body metadata
|
|
3406
|
+
*/
|
|
3407
|
+
requestBody?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequest;
|
|
3408
|
+
}
|
|
3249
3409
|
export class Resource$Projects$Locations$Collections$Operations {
|
|
3250
3410
|
context: APIRequestContext;
|
|
3251
3411
|
constructor(context: APIRequestContext);
|
|
@@ -3341,7 +3501,7 @@ export declare namespace discoveryengine_v1beta {
|
|
|
3341
3501
|
*/
|
|
3342
3502
|
query?: string;
|
|
3343
3503
|
/**
|
|
3344
|
-
* Selects data model of query suggestions for serving. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for
|
|
3504
|
+
* Selects data model of query suggestions for serving. Currently supported values: * `document` - Using suggestions generated from user-imported documents. * `search-history` - Using suggestions generated from the past history of SearchService.Search API calls. Do not use it when there is no traffic for Search API. * `user-event` - Using suggestions generated from user-imported search events. * `document-completable` - Using suggestions taken directly from user-imported document fields marked as completable. Default values: * `document` is the default model for regular dataStores. * `search-history` is the default model for site search dataStores.
|
|
3345
3505
|
*/
|
|
3346
3506
|
queryModel?: string;
|
|
3347
3507
|
/**
|
package/build/v1beta.js
CHANGED
|
@@ -1351,6 +1351,8 @@ var discoveryengine_v1beta;
|
|
|
1351
1351
|
this.context = context;
|
|
1352
1352
|
this.operations =
|
|
1353
1353
|
new Resource$Projects$Locations$Collections$Engines$Operations(this.context);
|
|
1354
|
+
this.servingConfigs =
|
|
1355
|
+
new Resource$Projects$Locations$Collections$Engines$Servingconfigs(this.context);
|
|
1354
1356
|
}
|
|
1355
1357
|
}
|
|
1356
1358
|
discoveryengine_v1beta.Resource$Projects$Locations$Collections$Engines = Resource$Projects$Locations$Collections$Engines;
|
|
@@ -1424,6 +1426,76 @@ var discoveryengine_v1beta;
|
|
|
1424
1426
|
}
|
|
1425
1427
|
}
|
|
1426
1428
|
discoveryengine_v1beta.Resource$Projects$Locations$Collections$Engines$Operations = Resource$Projects$Locations$Collections$Engines$Operations;
|
|
1429
|
+
class Resource$Projects$Locations$Collections$Engines$Servingconfigs {
|
|
1430
|
+
constructor(context) {
|
|
1431
|
+
this.context = context;
|
|
1432
|
+
}
|
|
1433
|
+
recommend(paramsOrCallback, optionsOrCallback, callback) {
|
|
1434
|
+
let params = (paramsOrCallback ||
|
|
1435
|
+
{});
|
|
1436
|
+
let options = (optionsOrCallback || {});
|
|
1437
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1438
|
+
callback = paramsOrCallback;
|
|
1439
|
+
params =
|
|
1440
|
+
{};
|
|
1441
|
+
options = {};
|
|
1442
|
+
}
|
|
1443
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1444
|
+
callback = optionsOrCallback;
|
|
1445
|
+
options = {};
|
|
1446
|
+
}
|
|
1447
|
+
const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
1448
|
+
const parameters = {
|
|
1449
|
+
options: Object.assign({
|
|
1450
|
+
url: (rootUrl + '/v1beta/{+servingConfig}:recommend').replace(/([^:]\/)\/+/g, '$1'),
|
|
1451
|
+
method: 'POST',
|
|
1452
|
+
}, options),
|
|
1453
|
+
params,
|
|
1454
|
+
requiredParams: ['servingConfig'],
|
|
1455
|
+
pathParams: ['servingConfig'],
|
|
1456
|
+
context: this.context,
|
|
1457
|
+
};
|
|
1458
|
+
if (callback) {
|
|
1459
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1460
|
+
}
|
|
1461
|
+
else {
|
|
1462
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
search(paramsOrCallback, optionsOrCallback, callback) {
|
|
1466
|
+
let params = (paramsOrCallback ||
|
|
1467
|
+
{});
|
|
1468
|
+
let options = (optionsOrCallback || {});
|
|
1469
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1470
|
+
callback = paramsOrCallback;
|
|
1471
|
+
params =
|
|
1472
|
+
{};
|
|
1473
|
+
options = {};
|
|
1474
|
+
}
|
|
1475
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1476
|
+
callback = optionsOrCallback;
|
|
1477
|
+
options = {};
|
|
1478
|
+
}
|
|
1479
|
+
const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
1480
|
+
const parameters = {
|
|
1481
|
+
options: Object.assign({
|
|
1482
|
+
url: (rootUrl + '/v1beta/{+servingConfig}:search').replace(/([^:]\/)\/+/g, '$1'),
|
|
1483
|
+
method: 'POST',
|
|
1484
|
+
}, options),
|
|
1485
|
+
params,
|
|
1486
|
+
requiredParams: ['servingConfig'],
|
|
1487
|
+
pathParams: ['servingConfig'],
|
|
1488
|
+
context: this.context,
|
|
1489
|
+
};
|
|
1490
|
+
if (callback) {
|
|
1491
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1492
|
+
}
|
|
1493
|
+
else {
|
|
1494
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
discoveryengine_v1beta.Resource$Projects$Locations$Collections$Engines$Servingconfigs = Resource$Projects$Locations$Collections$Engines$Servingconfigs;
|
|
1427
1499
|
class Resource$Projects$Locations$Collections$Operations {
|
|
1428
1500
|
constructor(context) {
|
|
1429
1501
|
this.context = context;
|