@googleapis/discoveryengine 31.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/v1beta.ts CHANGED
@@ -2493,13 +2493,9 @@ export namespace discoveryengine_v1beta {
2493
2493
  vpcscEnabled?: boolean | null;
2494
2494
  }
2495
2495
  /**
2496
- * User-facing metadata for the connector, shown on the connector detail page (title, description, short_description, author, authenticated_account, note).
2496
+ * User-facing metadata for the connector, shown on the connector detail page (title, description, short_description, author, note).
2497
2497
  */
2498
2498
  export interface Schema$GoogleCloudDiscoveryengineV1alphaDataConnectorConnectorMetadata {
2499
- /**
2500
- * Optional. The end user's account as authenticated to the connector, so the end user can see which account is connected. May be an email, a username, or any identifier the connector/third party provides.
2501
- */
2502
- authenticatedAccount?: string | null;
2503
2499
  /**
2504
2500
  * Optional. The party that authored the connector, e.g. "Google" or a third-party provider name. Lets end users see who authored a connector (future: third-party-authored connectors).
2505
2501
  */
@@ -3322,7 +3318,7 @@ export namespace discoveryengine_v1beta {
3322
3318
  */
3323
3319
  displayName?: string | null;
3324
3320
  /**
3325
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence`
3321
+ * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
3326
3322
  */
3327
3323
  features?: {[key: string]: string} | null;
3328
3324
  /**
@@ -8126,7 +8122,7 @@ export namespace discoveryengine_v1beta {
8126
8122
  */
8127
8123
  deleteUnassignedUserLicenses?: boolean | null;
8128
8124
  /**
8129
- * The inline source for the input content for document embeddings.
8125
+ * The inline source for the input content for license assignment.
8130
8126
  */
8131
8127
  inlineSource?: Schema$GoogleCloudDiscoveryengineV1betaBatchUpdateUserLicensesRequestInlineSource;
8132
8128
  }
@@ -9848,7 +9844,7 @@ export namespace discoveryengine_v1beta {
9848
9844
  */
9849
9845
  displayName?: string | null;
9850
9846
  /**
9851
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence`
9847
+ * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
9852
9848
  */
9853
9849
  features?: {[key: string]: string} | null;
9854
9850
  /**
@@ -14895,13 +14891,9 @@ export namespace discoveryengine_v1beta {
14895
14891
  vpcscEnabled?: boolean | null;
14896
14892
  }
14897
14893
  /**
14898
- * User-facing metadata for the connector, shown on the connector detail page (title, description, short_description, author, authenticated_account, note).
14894
+ * User-facing metadata for the connector, shown on the connector detail page (title, description, short_description, author, note).
14899
14895
  */
14900
14896
  export interface Schema$GoogleCloudDiscoveryengineV1DataConnectorConnectorMetadata {
14901
- /**
14902
- * Optional. The end user's account as authenticated to the connector, so the end user can see which account is connected. May be an email, a username, or any identifier the connector/third party provides.
14903
- */
14904
- authenticatedAccount?: string | null;
14905
14897
  /**
14906
14898
  * Optional. The party that authored the connector, e.g. "Google" or a third-party provider name. Lets end users see who authored a connector (future: third-party-authored connectors).
14907
14899
  */
@@ -15621,7 +15613,7 @@ export namespace discoveryengine_v1beta {
15621
15613
  */
15622
15614
  displayName?: string | null;
15623
15615
  /**
15624
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `disable-skills` * `disable-projects` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence`
15616
+ * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
15625
15617
  */
15626
15618
  features?: {[key: string]: string} | null;
15627
15619
  /**
@@ -18416,6 +18408,165 @@ export namespace discoveryengine_v1beta {
18416
18408
  }
18417
18409
  }
18418
18410
 
18411
+ /**
18412
+ * Provisions the project resource. During the process, related systems will get prepared and initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-use-terms), and optionally specify in request to provide consent to that service terms.
18413
+ * @example
18414
+ * ```js
18415
+ * // Before running the sample:
18416
+ * // - Enable the API at:
18417
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
18418
+ * // - Login into gcloud by running:
18419
+ * // ```sh
18420
+ * // $ gcloud auth application-default login
18421
+ * // ```
18422
+ * // - Install the npm module by running:
18423
+ * // ```sh
18424
+ * // $ npm install googleapis
18425
+ * // ```
18426
+ *
18427
+ * const {google} = require('googleapis');
18428
+ * const discoveryengine = google.discoveryengine('v1beta');
18429
+ *
18430
+ * async function main() {
18431
+ * const auth = new google.auth.GoogleAuth({
18432
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
18433
+ * scopes: [
18434
+ * 'https://www.googleapis.com/auth/cloud-platform',
18435
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
18436
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
18437
+ * ],
18438
+ * });
18439
+ *
18440
+ * // Acquire an auth client, and bind it to all future calls
18441
+ * const authClient = await auth.getClient();
18442
+ * google.options({auth: authClient});
18443
+ *
18444
+ * // Do the magic
18445
+ * const res = await discoveryengine.projects.locations.provision({
18446
+ * // Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
18447
+ * name: 'projects/my-project/locations/my-location',
18448
+ *
18449
+ * // Request body metadata
18450
+ * requestBody: {
18451
+ * // request body parameters
18452
+ * // {
18453
+ * // "acceptDataUseTerms": false,
18454
+ * // "dataUseTermsVersion": "my_dataUseTermsVersion",
18455
+ * // "saasParams": {}
18456
+ * // }
18457
+ * },
18458
+ * });
18459
+ * console.log(res.data);
18460
+ *
18461
+ * // Example response
18462
+ * // {
18463
+ * // "done": false,
18464
+ * // "error": {},
18465
+ * // "metadata": {},
18466
+ * // "name": "my_name",
18467
+ * // "response": {}
18468
+ * // }
18469
+ * }
18470
+ *
18471
+ * main().catch(e => {
18472
+ * console.error(e);
18473
+ * throw e;
18474
+ * });
18475
+ *
18476
+ * ```
18477
+ *
18478
+ * @param params - Parameters for request
18479
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
18480
+ * @param callback - Optional callback that handles the response.
18481
+ * @returns A promise if used with async/await, or void if used with a callback.
18482
+ */
18483
+ provision(
18484
+ params: Params$Resource$Projects$Locations$Provision,
18485
+ options: StreamMethodOptions
18486
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
18487
+ provision(
18488
+ params?: Params$Resource$Projects$Locations$Provision,
18489
+ options?: MethodOptions
18490
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
18491
+ provision(
18492
+ params: Params$Resource$Projects$Locations$Provision,
18493
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
18494
+ callback: BodyResponseCallback<Readable>
18495
+ ): void;
18496
+ provision(
18497
+ params: Params$Resource$Projects$Locations$Provision,
18498
+ options:
18499
+ MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>,
18500
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
18501
+ ): void;
18502
+ provision(
18503
+ params: Params$Resource$Projects$Locations$Provision,
18504
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
18505
+ ): void;
18506
+ provision(
18507
+ callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
18508
+ ): void;
18509
+ provision(
18510
+ paramsOrCallback?:
18511
+ | Params$Resource$Projects$Locations$Provision
18512
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
18513
+ | BodyResponseCallback<Readable>,
18514
+ optionsOrCallback?:
18515
+ | MethodOptions
18516
+ | StreamMethodOptions
18517
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
18518
+ | BodyResponseCallback<Readable>,
18519
+ callback?:
18520
+ | BodyResponseCallback<Schema$GoogleLongrunningOperation>
18521
+ | BodyResponseCallback<Readable>
18522
+ ):
18523
+ | void
18524
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>
18525
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
18526
+ let params = (paramsOrCallback ||
18527
+ {}) as Params$Resource$Projects$Locations$Provision;
18528
+ let options = (optionsOrCallback || {}) as MethodOptions;
18529
+
18530
+ if (typeof paramsOrCallback === 'function') {
18531
+ callback = paramsOrCallback;
18532
+ params = {} as Params$Resource$Projects$Locations$Provision;
18533
+ options = {};
18534
+ }
18535
+
18536
+ if (typeof optionsOrCallback === 'function') {
18537
+ callback = optionsOrCallback;
18538
+ options = {};
18539
+ }
18540
+
18541
+ const rootUrl =
18542
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
18543
+ const parameters = {
18544
+ options: Object.assign(
18545
+ {
18546
+ url: (rootUrl + '/v1beta/{+name}:provision').replace(
18547
+ /([^:]\/)\/+/g,
18548
+ '$1'
18549
+ ),
18550
+ method: 'POST',
18551
+ apiVersion: '',
18552
+ },
18553
+ options
18554
+ ),
18555
+ params,
18556
+ requiredParams: ['name'],
18557
+ pathParams: ['name'],
18558
+ context: this.context,
18559
+ };
18560
+ if (callback) {
18561
+ createAPIRequest<Schema$GoogleLongrunningOperation>(
18562
+ parameters,
18563
+ callback as BodyResponseCallback<unknown>
18564
+ );
18565
+ } else {
18566
+ return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
18567
+ }
18568
+ }
18569
+
18419
18570
  /**
18420
18571
  * Removes the dedicated crawl rate for a craw_rate_scope. If the dedicated crawl rate was set, this will disable vertex AI's crawl bot from using the dedicated crawl rate for crawling. If the dedicated crawl rate was not set, this is a no-op.
18421
18572
  * @example
@@ -19080,6 +19231,17 @@ export namespace discoveryengine_v1beta {
19080
19231
  */
19081
19232
  requestBody?: Schema$GoogleCloudDiscoveryengineV1betaObtainCrawlRateRequest;
19082
19233
  }
19234
+ export interface Params$Resource$Projects$Locations$Provision extends StandardParameters {
19235
+ /**
19236
+ * Required. Full resource name of a Project, such as `projects/{project_id_or_number\}`.
19237
+ */
19238
+ name?: string;
19239
+
19240
+ /**
19241
+ * Request body metadata
19242
+ */
19243
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1betaProvisionProjectRequest;
19244
+ }
19083
19245
  export interface Params$Resource$Projects$Locations$Removededicatedcrawlrate extends StandardParameters {
19084
19246
  /**
19085
19247
  * Required. The location resource where crawl rate management will be performed. Format: `projects/{project\}/locations/{location\}`