@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/v1.js CHANGED
@@ -266,6 +266,38 @@ var discoveryengine_v1;
266
266
  return (0, googleapis_common_1.createAPIRequest)(parameters);
267
267
  }
268
268
  }
269
+ provision(paramsOrCallback, optionsOrCallback, callback) {
270
+ let params = (paramsOrCallback ||
271
+ {});
272
+ let options = (optionsOrCallback || {});
273
+ if (typeof paramsOrCallback === 'function') {
274
+ callback = paramsOrCallback;
275
+ params = {};
276
+ options = {};
277
+ }
278
+ if (typeof optionsOrCallback === 'function') {
279
+ callback = optionsOrCallback;
280
+ options = {};
281
+ }
282
+ const rootUrl = options.rootUrl || 'https://discoveryengine.googleapis.com/';
283
+ const parameters = {
284
+ options: Object.assign({
285
+ url: (rootUrl + '/v1/{+name}:provision').replace(/([^:]\/)\/+/g, '$1'),
286
+ method: 'POST',
287
+ apiVersion: '',
288
+ }, options),
289
+ params,
290
+ requiredParams: ['name'],
291
+ pathParams: ['name'],
292
+ context: this.context,
293
+ };
294
+ if (callback) {
295
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
296
+ }
297
+ else {
298
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
299
+ }
300
+ }
269
301
  setUpDataConnector(paramsOrCallback, optionsOrCallback, callback) {
270
302
  let params = (paramsOrCallback ||
271
303
  {});