@googleapis/discoveryengine 6.1.0 → 8.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/build/v1beta.js CHANGED
@@ -394,6 +394,38 @@ var discoveryengine_v1beta;
394
394
  return (0, googleapis_common_1.createAPIRequest)(parameters);
395
395
  }
396
396
  }
397
+ trainCustomModel(paramsOrCallback, optionsOrCallback, callback) {
398
+ let params = (paramsOrCallback ||
399
+ {});
400
+ let options = (optionsOrCallback || {});
401
+ if (typeof paramsOrCallback === 'function') {
402
+ callback = paramsOrCallback;
403
+ params =
404
+ {};
405
+ options = {};
406
+ }
407
+ if (typeof optionsOrCallback === 'function') {
408
+ callback = optionsOrCallback;
409
+ options = {};
410
+ }
411
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
412
+ const parameters = {
413
+ options: Object.assign({
414
+ url: (rootUrl + '/v1beta/{+dataStore}:trainCustomModel').replace(/([^:]\/)\/+/g, '$1'),
415
+ method: 'POST',
416
+ }, options),
417
+ params,
418
+ requiredParams: ['dataStore'],
419
+ pathParams: ['dataStore'],
420
+ context: this.context,
421
+ };
422
+ if (callback) {
423
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
424
+ }
425
+ else {
426
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
427
+ }
428
+ }
397
429
  }
398
430
  discoveryengine_v1beta.Resource$Projects$Locations$Collections$Datastores = Resource$Projects$Locations$Collections$Datastores;
399
431
  class Resource$Projects$Locations$Collections$Datastores$Branches {