@googleapis/discoveryengine 5.0.0 → 6.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/build/v1alpha.js CHANGED
@@ -327,6 +327,8 @@ var discoveryengine_v1alpha;
327
327
  new Resource$Projects$Locations$Collections$Datastores$Servingconfigs(this.context);
328
328
  this.siteSearchEngine =
329
329
  new Resource$Projects$Locations$Collections$Datastores$Sitesearchengine(this.context);
330
+ this.suggestionDenyListEntries =
331
+ new Resource$Projects$Locations$Collections$Datastores$Suggestiondenylistentries(this.context);
330
332
  this.userEvents =
331
333
  new Resource$Projects$Locations$Collections$Datastores$Userevents(this.context);
332
334
  }
@@ -1550,6 +1552,102 @@ var discoveryengine_v1alpha;
1550
1552
  constructor(context) {
1551
1553
  this.context = context;
1552
1554
  }
1555
+ get(paramsOrCallback, optionsOrCallback, callback) {
1556
+ let params = (paramsOrCallback ||
1557
+ {});
1558
+ let options = (optionsOrCallback || {});
1559
+ if (typeof paramsOrCallback === 'function') {
1560
+ callback = paramsOrCallback;
1561
+ params =
1562
+ {};
1563
+ options = {};
1564
+ }
1565
+ if (typeof optionsOrCallback === 'function') {
1566
+ callback = optionsOrCallback;
1567
+ options = {};
1568
+ }
1569
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
1570
+ const parameters = {
1571
+ options: Object.assign({
1572
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1573
+ method: 'GET',
1574
+ }, options),
1575
+ params,
1576
+ requiredParams: ['name'],
1577
+ pathParams: ['name'],
1578
+ context: this.context,
1579
+ };
1580
+ if (callback) {
1581
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1582
+ }
1583
+ else {
1584
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1585
+ }
1586
+ }
1587
+ list(paramsOrCallback, optionsOrCallback, callback) {
1588
+ let params = (paramsOrCallback ||
1589
+ {});
1590
+ let options = (optionsOrCallback || {});
1591
+ if (typeof paramsOrCallback === 'function') {
1592
+ callback = paramsOrCallback;
1593
+ params =
1594
+ {};
1595
+ options = {};
1596
+ }
1597
+ if (typeof optionsOrCallback === 'function') {
1598
+ callback = optionsOrCallback;
1599
+ options = {};
1600
+ }
1601
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
1602
+ const parameters = {
1603
+ options: Object.assign({
1604
+ url: (rootUrl + '/v1alpha/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'),
1605
+ method: 'GET',
1606
+ }, options),
1607
+ params,
1608
+ requiredParams: ['parent'],
1609
+ pathParams: ['parent'],
1610
+ context: this.context,
1611
+ };
1612
+ if (callback) {
1613
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1614
+ }
1615
+ else {
1616
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1617
+ }
1618
+ }
1619
+ patch(paramsOrCallback, optionsOrCallback, callback) {
1620
+ let params = (paramsOrCallback ||
1621
+ {});
1622
+ let options = (optionsOrCallback || {});
1623
+ if (typeof paramsOrCallback === 'function') {
1624
+ callback = paramsOrCallback;
1625
+ params =
1626
+ {};
1627
+ options = {};
1628
+ }
1629
+ if (typeof optionsOrCallback === 'function') {
1630
+ callback = optionsOrCallback;
1631
+ options = {};
1632
+ }
1633
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
1634
+ const parameters = {
1635
+ options: Object.assign({
1636
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
1637
+ method: 'PATCH',
1638
+ }, options),
1639
+ params,
1640
+ requiredParams: ['name'],
1641
+ pathParams: ['name'],
1642
+ context: this.context,
1643
+ };
1644
+ if (callback) {
1645
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1646
+ }
1647
+ else {
1648
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1649
+ }
1650
+ }
1553
1651
  recommend(paramsOrCallback, optionsOrCallback, callback) {
1554
1652
  let params = (paramsOrCallback ||
1555
1653
  {});
@@ -2127,6 +2225,76 @@ var discoveryengine_v1alpha;
2127
2225
  }
2128
2226
  }
2129
2227
  discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Targetsites$Operations = Resource$Projects$Locations$Collections$Datastores$Sitesearchengine$Targetsites$Operations;
2228
+ class Resource$Projects$Locations$Collections$Datastores$Suggestiondenylistentries {
2229
+ constructor(context) {
2230
+ this.context = context;
2231
+ }
2232
+ import(paramsOrCallback, optionsOrCallback, callback) {
2233
+ let params = (paramsOrCallback ||
2234
+ {});
2235
+ let options = (optionsOrCallback || {});
2236
+ if (typeof paramsOrCallback === 'function') {
2237
+ callback = paramsOrCallback;
2238
+ params =
2239
+ {};
2240
+ options = {};
2241
+ }
2242
+ if (typeof optionsOrCallback === 'function') {
2243
+ callback = optionsOrCallback;
2244
+ options = {};
2245
+ }
2246
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
2247
+ const parameters = {
2248
+ options: Object.assign({
2249
+ url: (rootUrl + '/v1alpha/{+parent}/suggestionDenyListEntries:import').replace(/([^:]\/)\/+/g, '$1'),
2250
+ method: 'POST',
2251
+ }, options),
2252
+ params,
2253
+ requiredParams: ['parent'],
2254
+ pathParams: ['parent'],
2255
+ context: this.context,
2256
+ };
2257
+ if (callback) {
2258
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2259
+ }
2260
+ else {
2261
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2262
+ }
2263
+ }
2264
+ purge(paramsOrCallback, optionsOrCallback, callback) {
2265
+ let params = (paramsOrCallback ||
2266
+ {});
2267
+ let options = (optionsOrCallback || {});
2268
+ if (typeof paramsOrCallback === 'function') {
2269
+ callback = paramsOrCallback;
2270
+ params =
2271
+ {};
2272
+ options = {};
2273
+ }
2274
+ if (typeof optionsOrCallback === 'function') {
2275
+ callback = optionsOrCallback;
2276
+ options = {};
2277
+ }
2278
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
2279
+ const parameters = {
2280
+ options: Object.assign({
2281
+ url: (rootUrl + '/v1alpha/{+parent}/suggestionDenyListEntries:purge').replace(/([^:]\/)\/+/g, '$1'),
2282
+ method: 'POST',
2283
+ }, options),
2284
+ params,
2285
+ requiredParams: ['parent'],
2286
+ pathParams: ['parent'],
2287
+ context: this.context,
2288
+ };
2289
+ if (callback) {
2290
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2291
+ }
2292
+ else {
2293
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
2294
+ }
2295
+ }
2296
+ }
2297
+ discoveryengine_v1alpha.Resource$Projects$Locations$Collections$Datastores$Suggestiondenylistentries = Resource$Projects$Locations$Collections$Datastores$Suggestiondenylistentries;
2130
2298
  class Resource$Projects$Locations$Collections$Datastores$Userevents {
2131
2299
  constructor(context) {
2132
2300
  this.context = context;
@@ -2801,6 +2969,102 @@ var discoveryengine_v1alpha;
2801
2969
  constructor(context) {
2802
2970
  this.context = context;
2803
2971
  }
2972
+ get(paramsOrCallback, optionsOrCallback, callback) {
2973
+ let params = (paramsOrCallback ||
2974
+ {});
2975
+ let options = (optionsOrCallback || {});
2976
+ if (typeof paramsOrCallback === 'function') {
2977
+ callback = paramsOrCallback;
2978
+ params =
2979
+ {};
2980
+ options = {};
2981
+ }
2982
+ if (typeof optionsOrCallback === 'function') {
2983
+ callback = optionsOrCallback;
2984
+ options = {};
2985
+ }
2986
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
2987
+ const parameters = {
2988
+ options: Object.assign({
2989
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
2990
+ method: 'GET',
2991
+ }, options),
2992
+ params,
2993
+ requiredParams: ['name'],
2994
+ pathParams: ['name'],
2995
+ context: this.context,
2996
+ };
2997
+ if (callback) {
2998
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
2999
+ }
3000
+ else {
3001
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
3002
+ }
3003
+ }
3004
+ list(paramsOrCallback, optionsOrCallback, callback) {
3005
+ let params = (paramsOrCallback ||
3006
+ {});
3007
+ let options = (optionsOrCallback || {});
3008
+ if (typeof paramsOrCallback === 'function') {
3009
+ callback = paramsOrCallback;
3010
+ params =
3011
+ {};
3012
+ options = {};
3013
+ }
3014
+ if (typeof optionsOrCallback === 'function') {
3015
+ callback = optionsOrCallback;
3016
+ options = {};
3017
+ }
3018
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
3019
+ const parameters = {
3020
+ options: Object.assign({
3021
+ url: (rootUrl + '/v1alpha/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'),
3022
+ method: 'GET',
3023
+ }, options),
3024
+ params,
3025
+ requiredParams: ['parent'],
3026
+ pathParams: ['parent'],
3027
+ context: this.context,
3028
+ };
3029
+ if (callback) {
3030
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
3031
+ }
3032
+ else {
3033
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
3034
+ }
3035
+ }
3036
+ patch(paramsOrCallback, optionsOrCallback, callback) {
3037
+ let params = (paramsOrCallback ||
3038
+ {});
3039
+ let options = (optionsOrCallback || {});
3040
+ if (typeof paramsOrCallback === 'function') {
3041
+ callback = paramsOrCallback;
3042
+ params =
3043
+ {};
3044
+ options = {};
3045
+ }
3046
+ if (typeof optionsOrCallback === 'function') {
3047
+ callback = optionsOrCallback;
3048
+ options = {};
3049
+ }
3050
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
3051
+ const parameters = {
3052
+ options: Object.assign({
3053
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
3054
+ method: 'PATCH',
3055
+ }, options),
3056
+ params,
3057
+ requiredParams: ['name'],
3058
+ pathParams: ['name'],
3059
+ context: this.context,
3060
+ };
3061
+ if (callback) {
3062
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
3063
+ }
3064
+ else {
3065
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
3066
+ }
3067
+ }
2804
3068
  recommend(paramsOrCallback, optionsOrCallback, callback) {
2805
3069
  let params = (paramsOrCallback ||
2806
3070
  {});
@@ -2950,6 +3214,8 @@ var discoveryengine_v1alpha;
2950
3214
  new Resource$Projects$Locations$Datastores$Servingconfigs(this.context);
2951
3215
  this.siteSearchEngine =
2952
3216
  new Resource$Projects$Locations$Datastores$Sitesearchengine(this.context);
3217
+ this.suggestionDenyListEntries =
3218
+ new Resource$Projects$Locations$Datastores$Suggestiondenylistentries(this.context);
2953
3219
  this.userEvents = new Resource$Projects$Locations$Datastores$Userevents(this.context);
2954
3220
  }
2955
3221
  completeQuery(paramsOrCallback, optionsOrCallback, callback) {
@@ -4063,6 +4329,102 @@ var discoveryengine_v1alpha;
4063
4329
  constructor(context) {
4064
4330
  this.context = context;
4065
4331
  }
4332
+ get(paramsOrCallback, optionsOrCallback, callback) {
4333
+ let params = (paramsOrCallback ||
4334
+ {});
4335
+ let options = (optionsOrCallback || {});
4336
+ if (typeof paramsOrCallback === 'function') {
4337
+ callback = paramsOrCallback;
4338
+ params =
4339
+ {};
4340
+ options = {};
4341
+ }
4342
+ if (typeof optionsOrCallback === 'function') {
4343
+ callback = optionsOrCallback;
4344
+ options = {};
4345
+ }
4346
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
4347
+ const parameters = {
4348
+ options: Object.assign({
4349
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
4350
+ method: 'GET',
4351
+ }, options),
4352
+ params,
4353
+ requiredParams: ['name'],
4354
+ pathParams: ['name'],
4355
+ context: this.context,
4356
+ };
4357
+ if (callback) {
4358
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
4359
+ }
4360
+ else {
4361
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
4362
+ }
4363
+ }
4364
+ list(paramsOrCallback, optionsOrCallback, callback) {
4365
+ let params = (paramsOrCallback ||
4366
+ {});
4367
+ let options = (optionsOrCallback || {});
4368
+ if (typeof paramsOrCallback === 'function') {
4369
+ callback = paramsOrCallback;
4370
+ params =
4371
+ {};
4372
+ options = {};
4373
+ }
4374
+ if (typeof optionsOrCallback === 'function') {
4375
+ callback = optionsOrCallback;
4376
+ options = {};
4377
+ }
4378
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
4379
+ const parameters = {
4380
+ options: Object.assign({
4381
+ url: (rootUrl + '/v1alpha/{+parent}/servingConfigs').replace(/([^:]\/)\/+/g, '$1'),
4382
+ method: 'GET',
4383
+ }, options),
4384
+ params,
4385
+ requiredParams: ['parent'],
4386
+ pathParams: ['parent'],
4387
+ context: this.context,
4388
+ };
4389
+ if (callback) {
4390
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
4391
+ }
4392
+ else {
4393
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
4394
+ }
4395
+ }
4396
+ patch(paramsOrCallback, optionsOrCallback, callback) {
4397
+ let params = (paramsOrCallback ||
4398
+ {});
4399
+ let options = (optionsOrCallback || {});
4400
+ if (typeof paramsOrCallback === 'function') {
4401
+ callback = paramsOrCallback;
4402
+ params =
4403
+ {};
4404
+ options = {};
4405
+ }
4406
+ if (typeof optionsOrCallback === 'function') {
4407
+ callback = optionsOrCallback;
4408
+ options = {};
4409
+ }
4410
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
4411
+ const parameters = {
4412
+ options: Object.assign({
4413
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
4414
+ method: 'PATCH',
4415
+ }, options),
4416
+ params,
4417
+ requiredParams: ['name'],
4418
+ pathParams: ['name'],
4419
+ context: this.context,
4420
+ };
4421
+ if (callback) {
4422
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
4423
+ }
4424
+ else {
4425
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
4426
+ }
4427
+ }
4066
4428
  recommend(paramsOrCallback, optionsOrCallback, callback) {
4067
4429
  let params = (paramsOrCallback ||
4068
4430
  {});
@@ -4431,6 +4793,76 @@ var discoveryengine_v1alpha;
4431
4793
  }
4432
4794
  }
4433
4795
  discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Sitesearchengine$Targetsites = Resource$Projects$Locations$Datastores$Sitesearchengine$Targetsites;
4796
+ class Resource$Projects$Locations$Datastores$Suggestiondenylistentries {
4797
+ constructor(context) {
4798
+ this.context = context;
4799
+ }
4800
+ import(paramsOrCallback, optionsOrCallback, callback) {
4801
+ let params = (paramsOrCallback ||
4802
+ {});
4803
+ let options = (optionsOrCallback || {});
4804
+ if (typeof paramsOrCallback === 'function') {
4805
+ callback = paramsOrCallback;
4806
+ params =
4807
+ {};
4808
+ options = {};
4809
+ }
4810
+ if (typeof optionsOrCallback === 'function') {
4811
+ callback = optionsOrCallback;
4812
+ options = {};
4813
+ }
4814
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
4815
+ const parameters = {
4816
+ options: Object.assign({
4817
+ url: (rootUrl + '/v1alpha/{+parent}/suggestionDenyListEntries:import').replace(/([^:]\/)\/+/g, '$1'),
4818
+ method: 'POST',
4819
+ }, options),
4820
+ params,
4821
+ requiredParams: ['parent'],
4822
+ pathParams: ['parent'],
4823
+ context: this.context,
4824
+ };
4825
+ if (callback) {
4826
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
4827
+ }
4828
+ else {
4829
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
4830
+ }
4831
+ }
4832
+ purge(paramsOrCallback, optionsOrCallback, callback) {
4833
+ let params = (paramsOrCallback ||
4834
+ {});
4835
+ let options = (optionsOrCallback || {});
4836
+ if (typeof paramsOrCallback === 'function') {
4837
+ callback = paramsOrCallback;
4838
+ params =
4839
+ {};
4840
+ options = {};
4841
+ }
4842
+ if (typeof optionsOrCallback === 'function') {
4843
+ callback = optionsOrCallback;
4844
+ options = {};
4845
+ }
4846
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
4847
+ const parameters = {
4848
+ options: Object.assign({
4849
+ url: (rootUrl + '/v1alpha/{+parent}/suggestionDenyListEntries:purge').replace(/([^:]\/)\/+/g, '$1'),
4850
+ method: 'POST',
4851
+ }, options),
4852
+ params,
4853
+ requiredParams: ['parent'],
4854
+ pathParams: ['parent'],
4855
+ context: this.context,
4856
+ };
4857
+ if (callback) {
4858
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
4859
+ }
4860
+ else {
4861
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
4862
+ }
4863
+ }
4864
+ }
4865
+ discoveryengine_v1alpha.Resource$Projects$Locations$Datastores$Suggestiondenylistentries = Resource$Projects$Locations$Datastores$Suggestiondenylistentries;
4434
4866
  class Resource$Projects$Locations$Datastores$Userevents {
4435
4867
  constructor(context) {
4436
4868
  this.context = context;