@googleapis/discoveryengine 30.0.0 → 32.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
@@ -302,6 +302,38 @@ var discoveryengine_v1beta;
302
302
  return (0, googleapis_common_1.createAPIRequest)(parameters);
303
303
  }
304
304
  }
305
+ provision(paramsOrCallback, optionsOrCallback, callback) {
306
+ let params = (paramsOrCallback ||
307
+ {});
308
+ let options = (optionsOrCallback || {});
309
+ if (typeof paramsOrCallback === 'function') {
310
+ callback = paramsOrCallback;
311
+ params = {};
312
+ options = {};
313
+ }
314
+ if (typeof optionsOrCallback === 'function') {
315
+ callback = optionsOrCallback;
316
+ options = {};
317
+ }
318
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
319
+ const parameters = {
320
+ options: Object.assign({
321
+ url: (rootUrl + '/v1beta/{+name}:provision').replace(/([^:]\/)\/+/g, '$1'),
322
+ method: 'POST',
323
+ apiVersion: '',
324
+ }, options),
325
+ params,
326
+ requiredParams: ['name'],
327
+ pathParams: ['name'],
328
+ context: this.context,
329
+ };
330
+ if (callback) {
331
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
332
+ }
333
+ else {
334
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
335
+ }
336
+ }
305
337
  removeDedicatedCrawlRate(paramsOrCallback, optionsOrCallback, callback) {
306
338
  let params = (paramsOrCallback ||
307
339
  {});