@googleapis/discoveryengine 32.1.0 → 36.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/v1alpha.ts CHANGED
@@ -1338,6 +1338,10 @@ export namespace discoveryengine_v1alpha {
1338
1338
  * Required. Model name (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). See `model_mixture` for the list of allowed models.
1339
1339
  */
1340
1340
  name?: string | null;
1341
+ /**
1342
+ * Optional. Sent as Vertex `ThinkingConfig.thinking_level`.
1343
+ */
1344
+ thinkingLevel?: string | null;
1341
1345
  /**
1342
1346
  * Optional. Relative weight for this model in the mixture. Must be a finite, strictly positive value. Weights across all entries are normalized server-side, so they need not sum to 1.0. Defaults to 1.0 when unset, which is convenient when configuring a single model or an even mixture. Some Pro-tier models are capped at most 50% of the total weight; requests violating that cap are rejected with INVALID_ARGUMENT.
1343
1347
  */
@@ -2523,6 +2527,10 @@ export namespace discoveryengine_v1alpha {
2523
2527
  * Optional. Configuration for the generation of the assistant response.
2524
2528
  */
2525
2529
  generationConfig?: Schema$GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfig;
2530
+ /**
2531
+ * Optional. Indicates whether Knowledge Catalog is enabled for this specific assistant. When enabled, it powers discovery context using organizational data.
2532
+ */
2533
+ knowledgeCatalogEnabled?: boolean | null;
2526
2534
  /**
2527
2535
  * Immutable. Resource name of the assistant. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}` It must be a UTF-8 encoded string with a length limit of 1024 characters.
2528
2536
  */
@@ -2736,6 +2744,10 @@ export namespace discoveryengine_v1alpha {
2736
2744
  * Referenced content and related document metadata.
2737
2745
  */
2738
2746
  export interface Schema$GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference {
2747
+ /**
2748
+ * Output only. Generic structured chunk metadata from upstream data source connectors.
2749
+ */
2750
+ chunkMetadata?: {[key: string]: any} | null;
2739
2751
  /**
2740
2752
  * Chunk of code snippet from the referenced document.
2741
2753
  */
@@ -3861,7 +3873,7 @@ export namespace discoveryengine_v1alpha {
3861
3873
  */
3862
3874
  numUniqueUsersThreshold?: number | null;
3863
3875
  /**
3864
- * This field is only meaningful for suggestions generated from user events or search history. If a query shows up less than this threshold, it may indicate that the query is rarely searched and thus will not be generated as a suggestion. This is field can be helpful for preventing PII queries becoming suggestions, as those queries are usually uniquely searched. If not set, the default value is 3 used in the generation pipeline.
3876
+ * This field is only meaningful for suggestions generated from user events or search history. If a query shows up less than this threshold, it may indicate that the query is rarely searched and thus will not be generated as a suggestion. This is field can be helpful for preventing PII queries becoming suggestions, as those queries are usually uniquely searched. If not set, the default value is 8 used in the generation pipeline.
3865
3877
  */
3866
3878
  queryFrequencyThreshold?: number | null;
3867
3879
  /**
@@ -5731,7 +5743,7 @@ export namespace discoveryengine_v1alpha {
5731
5743
  */
5732
5744
  displayName?: string | null;
5733
5745
  /**
5734
- * 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` * `speech-to-text` * `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`
5746
+ * 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` * `speech-to-text` * `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` * `canvas-app-builder` * `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`
5735
5747
  */
5736
5748
  features?: {[key: string]: string} | null;
5737
5749
  /**
@@ -5774,6 +5786,10 @@ export namespace discoveryengine_v1alpha {
5774
5786
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
5775
5787
  */
5776
5788
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig;
5789
+ /**
5790
+ * Optional. Non-empty default. Session config for the engine.
5791
+ */
5792
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig;
5777
5793
  /**
5778
5794
  * Additional config specs for a `similar-items` engine.
5779
5795
  */
@@ -7225,6 +7241,40 @@ export namespace discoveryengine_v1alpha {
7225
7241
  */
7226
7242
  minimum?: number | null;
7227
7243
  }
7244
+ /**
7245
+ * Request message for making a call to an MCP connector. It carries the connector name, the method to invoke, and optional parameters.
7246
+ */
7247
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpRequest {
7248
+ /**
7249
+ * Optional. The engine resource name (e.g. "projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}"). Used as the search engine id when invoking tool registry tools that issue Discovery Search Service requests.
7250
+ */
7251
+ engine?: string | null;
7252
+ /**
7253
+ * Required. The method to invoke (e.g. "tools/list", "tools/call", "resources/read", "prompts/get", etc.).
7254
+ */
7255
+ method?: string | null;
7256
+ /**
7257
+ * Optional. Arbitrary structured parameters for the method. Using google.protobuf.Struct keeps the payload schema-flexible, matching JSON-RPC's free-form `params` field.
7258
+ */
7259
+ params?: {[key: string]: any} | null;
7260
+ /**
7261
+ * Optional. The tool spec version to resolve the connector's tool surface against. This corresponds to the connector's BAP tool spec file name (e.g. "v2", "v5.2"). When unset, the server uses its default (latest) tool spec for the connector. Applies to all methods (e.g. "tools/list" and "tools/call").
7262
+ */
7263
+ toolSpecVersion?: string | null;
7264
+ }
7265
+ /**
7266
+ * Response message returning the result of an MCP connector invocation. It contains either a successful result payload or error details.
7267
+ */
7268
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse {
7269
+ /**
7270
+ * Error details when the call fails.
7271
+ */
7272
+ error?: Schema$GoogleCloudDiscoveryengineV1alphaMcpError;
7273
+ /**
7274
+ * Successful result — arbitrary structured data.
7275
+ */
7276
+ result?: any | null;
7277
+ }
7228
7278
  /**
7229
7279
  * Language info for DataStore.
7230
7280
  */
@@ -7766,6 +7816,23 @@ export namespace discoveryengine_v1alpha {
7766
7816
  * Stores the definition of a Google managed agent.
7767
7817
  */
7768
7818
  export interface Schema$GoogleCloudDiscoveryengineV1alphaManagedAgentDefinition {}
7819
+ /**
7820
+ * McpError represents error details when an MCP call fails. This structure follows the JSON-RPC 2.0 error object shape.
7821
+ */
7822
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaMcpError {
7823
+ /**
7824
+ * Numeric error code.
7825
+ */
7826
+ code?: number | null;
7827
+ /**
7828
+ * Optional structured data with additional error context.
7829
+ */
7830
+ data?: any | null;
7831
+ /**
7832
+ * Short, human-readable description of the error.
7833
+ */
7834
+ message?: string | null;
7835
+ }
7769
7836
  /**
7770
7837
  * Media-specific user event information.
7771
7838
  */
@@ -10744,6 +10811,28 @@ export namespace discoveryengine_v1alpha {
10744
10811
  */
10745
10812
  userPseudoId?: string | null;
10746
10813
  }
10814
+ /**
10815
+ * Configuration for the session.
10816
+ */
10817
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig {
10818
+ /**
10819
+ * Optional. Session management policy that defines who will manage the session.
10820
+ */
10821
+ sessionManagementPolicy?: string | null;
10822
+ /**
10823
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
10824
+ */
10825
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl;
10826
+ }
10827
+ /**
10828
+ * Defines the TTL for sessions.
10829
+ */
10830
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl {
10831
+ /**
10832
+ * Defines the number of days for session TTL.
10833
+ */
10834
+ days?: number | null;
10835
+ }
10747
10836
  /**
10748
10837
  * Represents a turn, including a query from the user and a answer from service.
10749
10838
  */
@@ -11003,6 +11092,10 @@ export namespace discoveryengine_v1alpha {
11003
11092
  * Optional. Specification of actions for the request.
11004
11093
  */
11005
11094
  actionSpec?: Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec;
11095
+ /**
11096
+ * Optional. Specification of agents that are used to serve the request.
11097
+ */
11098
+ agentsSpec?: Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpec;
11006
11099
  /**
11007
11100
  * Optional. Specification of the generation configuration for the request.
11008
11101
  */
@@ -11033,6 +11126,24 @@ export namespace discoveryengine_v1alpha {
11033
11126
  */
11034
11127
  actionDisabled?: boolean | null;
11035
11128
  }
11129
+ /**
11130
+ * Specification of agents that are used to serve the request.
11131
+ */
11132
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpec {
11133
+ /**
11134
+ * Optional. Specification of agents that are used to serve the request.
11135
+ */
11136
+ agentSpecs?: Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpecAgentSpec[];
11137
+ }
11138
+ /**
11139
+ * Specification of an agent.
11140
+ */
11141
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpecAgentSpec {
11142
+ /**
11143
+ * Required. ID to identify the agent resource serving the request. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.
11144
+ */
11145
+ agentId?: string | null;
11146
+ }
11036
11147
  /**
11037
11148
  * Assistant generation specification for the request. This allows to override the default generation configuration at the engine level.
11038
11149
  */
@@ -11959,7 +12070,7 @@ export namespace discoveryengine_v1alpha {
11959
12070
  */
11960
12071
  id?: string | null;
11961
12072
  /**
11962
- * Output only. Whether this is a first-party (Google-owned) connector, as opposed to a third-party connector. Used by the frontend to group 1P vs 3P connectors. Sourced from `ConnectorSource.is_first_party` once that field is universally populated (b/534727761); until then derived from `ConnectorSource.connector_type == FIRST_PARTY`.
12073
+ * Output only. Whether this is a first-party (Google-owned) connector, as opposed to a third-party connector. Used by the frontend to group 1P vs 3P connectors.
11963
12074
  */
11964
12075
  isFirstParty?: boolean | null;
11965
12076
  /**
@@ -11992,6 +12103,10 @@ export namespace discoveryengine_v1alpha {
11992
12103
  * Customer provided configurations.
11993
12104
  */
11994
12105
  export interface Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigCustomerProvidedConfig {
12106
+ /**
12107
+ * Output only. The customer's Assured Workloads compliance level. `customer_type` collapses every compliance level into a single `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one specific level rather than on government status as a whole must read this field instead.
12108
+ */
12109
+ complianceLevel?: string | null;
11995
12110
  /**
11996
12111
  * Customer type.
11997
12112
  */
@@ -12203,7 +12318,7 @@ export namespace discoveryengine_v1alpha {
12203
12318
  */
12204
12319
  enableVisualContentSummary?: boolean | null;
12205
12320
  /**
12206
- * Output only. Feature config for the engine to opt in or opt out of features. Supported keys: * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `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`
12321
+ * Output only. Feature config for the engine to opt in or opt out of features. Supported keys: * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `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` * `canvas-app-builder` * `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`
12207
12322
  */
12208
12323
  features?: {[key: string]: string} | null;
12209
12324
  /**
@@ -12321,6 +12436,10 @@ export namespace discoveryengine_v1alpha {
12321
12436
  * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).
12322
12437
  */
12323
12438
  icon?: string | null;
12439
+ /**
12440
+ * Output only. Absolute URL of a brand mark to render instead of `icon`, for models whose vendor logo is not a GM3 glyph. `icon` stays populated as the fallback, so a client that does not render images, or that fails to fetch this one, shows the glyph instead of nothing.
12441
+ */
12442
+ iconUrl?: string | null;
12324
12443
  /**
12325
12444
  * Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.
12326
12445
  */
@@ -12333,6 +12452,10 @@ export namespace discoveryengine_v1alpha {
12333
12452
  * Output only. Unique identifier of the model (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). This is the same identifier that clients pass back to the assistant service to select this model. Virtual / "pseudo" models (e.g. `gemini-fast`) are also valid values here; they are resolved to the underlying concrete model on the backend.
12334
12453
  */
12335
12454
  modelId?: string | null;
12455
+ /**
12456
+ * Output only. Whether this model should be promoted in the GE chat homepage banner.
12457
+ */
12458
+ promoted?: boolean | null;
12336
12459
  }
12337
12460
  /**
12338
12461
  * Admin-surface metadata. Populated only when the request originates from the Cloud Console admin "Feature Control" page; left unset for end-user surfaces (Web, Mobile). Lets the admin page render its toggle table directly from the backend instead of a hardcoded client-side registry.
@@ -12503,6 +12626,10 @@ export namespace discoveryengine_v1alpha {
12503
12626
  * Optional. List of banned phrases.
12504
12627
  */
12505
12628
  bannedPhrases?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase[];
12629
+ /**
12630
+ * Optional. Data protection policy to be used for sanitizing file uploads.
12631
+ */
12632
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
12506
12633
  /**
12507
12634
  * Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
12508
12635
  */
@@ -13090,6 +13217,24 @@ export namespace discoveryengine_v1alpha {
13090
13217
  */
13091
13218
  updateTime?: string | null;
13092
13219
  }
13220
+ /**
13221
+ * Contains the data protection policy config for a DataStore or a connector.
13222
+ */
13223
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy {
13224
+ /**
13225
+ * Optional. Specifies the sensitive data protection policy for the connector source.
13226
+ */
13227
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy;
13228
+ }
13229
+ /**
13230
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
13231
+ */
13232
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy {
13233
+ /**
13234
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
13235
+ */
13236
+ policy?: string | null;
13237
+ }
13093
13238
  /**
13094
13239
  * DataStore captures global settings and configs at the DataStore level.
13095
13240
  */
@@ -13126,6 +13271,10 @@ export namespace discoveryengine_v1alpha {
13126
13271
  * Output only. Timestamp the DataStore was created at.
13127
13272
  */
13128
13273
  createTime?: string | null;
13274
+ /**
13275
+ * Optional. Specifies the data protection policy for the data store.
13276
+ */
13277
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy;
13129
13278
  /**
13130
13279
  * Output only. The id of the default Schema associated to this data store.
13131
13280
  */
@@ -13631,7 +13780,7 @@ export namespace discoveryengine_v1alpha {
13631
13780
  */
13632
13781
  displayName?: string | null;
13633
13782
  /**
13634
- * 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` * `speech-to-text` * `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`
13783
+ * 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` * `speech-to-text` * `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` * `canvas-app-builder` * `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`
13635
13784
  */
13636
13785
  features?: {[key: string]: string} | null;
13637
13786
  /**
@@ -13670,6 +13819,10 @@ export namespace discoveryengine_v1alpha {
13670
13819
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
13671
13820
  */
13672
13821
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig;
13822
+ /**
13823
+ * Optional. Non-empty default. Session config for the engine.
13824
+ */
13825
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfig;
13673
13826
  /**
13674
13827
  * Required. The solutions of the engine.
13675
13828
  */
@@ -15366,6 +15519,28 @@ export namespace discoveryengine_v1alpha {
15366
15519
  */
15367
15520
  mode?: string | null;
15368
15521
  }
15522
+ /**
15523
+ * Configuration for the session.
15524
+ */
15525
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfig {
15526
+ /**
15527
+ * Optional. Session management policy that defines who will manage the session.
15528
+ */
15529
+ sessionManagementPolicy?: string | null;
15530
+ /**
15531
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
15532
+ */
15533
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl;
15534
+ }
15535
+ /**
15536
+ * Defines the TTL for sessions.
15537
+ */
15538
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl {
15539
+ /**
15540
+ * Defines the number of days for session TTL.
15541
+ */
15542
+ days?: number | null;
15543
+ }
15369
15544
  /**
15370
15545
  * Metadata related to the progress of the CrawlRateManagementService.SetDedicatedCrawlRate operation. This will be returned by the google.longrunning.Operation.metadata field.
15371
15546
  */
@@ -16063,6 +16238,10 @@ export namespace discoveryengine_v1alpha {
16063
16238
  * Output only. Timestamp the DataConnector was created at.
16064
16239
  */
16065
16240
  createTime?: string | null;
16241
+ /**
16242
+ * Optional. Specifies the data protection policy for the connector.
16243
+ */
16244
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
16066
16245
  /**
16067
16246
  * Required. The identifier for the data source. For the full, up-to-date list of supported connectors and their values, see [Connect a third-party data source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
16068
16247
  */
@@ -16326,6 +16505,24 @@ export namespace discoveryengine_v1alpha {
16326
16505
  */
16327
16506
  startingSchema?: Schema$GoogleCloudDiscoveryengineV1Schema;
16328
16507
  }
16508
+ /**
16509
+ * Contains the data protection policy config for a DataStore or a connector.
16510
+ */
16511
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy {
16512
+ /**
16513
+ * Optional. Specifies the sensitive data protection policy for the connector source.
16514
+ */
16515
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy;
16516
+ }
16517
+ /**
16518
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
16519
+ */
16520
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy {
16521
+ /**
16522
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
16523
+ */
16524
+ policy?: string | null;
16525
+ }
16329
16526
  /**
16330
16527
  * DataStore captures global settings and configs at the DataStore level.
16331
16528
  */
@@ -16362,6 +16559,10 @@ export namespace discoveryengine_v1alpha {
16362
16559
  * Output only. Timestamp the DataStore was created at.
16363
16560
  */
16364
16561
  createTime?: string | null;
16562
+ /**
16563
+ * Optional. Specifies the data protection policy for the data store.
16564
+ */
16565
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
16365
16566
  /**
16366
16567
  * Output only. The id of the default Schema associated to this data store.
16367
16568
  */
@@ -16923,7 +17124,7 @@ export namespace discoveryengine_v1alpha {
16923
17124
  */
16924
17125
  displayName?: string | null;
16925
17126
  /**
16926
- * 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` * `speech-to-text` * `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`
17127
+ * 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` * `speech-to-text` * `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` * `canvas-app-builder` * `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`
16927
17128
  */
16928
17129
  features?: {[key: string]: string} | null;
16929
17130
  /**
@@ -16962,6 +17163,10 @@ export namespace discoveryengine_v1alpha {
16962
17163
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
16963
17164
  */
16964
17165
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig;
17166
+ /**
17167
+ * Optional. Non-empty default. Session config for the engine.
17168
+ */
17169
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1SessionConfig;
16965
17170
  /**
16966
17171
  * Required. The solutions of the engine.
16967
17172
  */
@@ -18054,6 +18259,28 @@ export namespace discoveryengine_v1alpha {
18054
18259
  */
18055
18260
  demotionEventType?: string | null;
18056
18261
  }
18262
+ /**
18263
+ * Configuration for the session.
18264
+ */
18265
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfig {
18266
+ /**
18267
+ * Optional. Session management policy that defines who will manage the session.
18268
+ */
18269
+ sessionManagementPolicy?: string | null;
18270
+ /**
18271
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
18272
+ */
18273
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl;
18274
+ }
18275
+ /**
18276
+ * Defines the TTL for sessions.
18277
+ */
18278
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl {
18279
+ /**
18280
+ * Defines the number of days for session TTL.
18281
+ */
18282
+ days?: number | null;
18283
+ }
18057
18284
  /**
18058
18285
  * Metadata for DataConnectorService.SetUpDataConnector method.
18059
18286
  */
@@ -18333,32 +18560,6 @@ export namespace discoveryengine_v1alpha {
18333
18560
  */
18334
18561
  type?: string | null;
18335
18562
  }
18336
- /**
18337
- * Account and role information.
18338
- */
18339
- export interface Schema$GoogleCloudNotebooklmV1alphaAccountAndRole {
18340
- /**
18341
- * Required. The email address associated with the account.
18342
- */
18343
- email?: string | null;
18344
- /**
18345
- * Required. The role in the notebook.
18346
- */
18347
- role?: string | null;
18348
- }
18349
- /**
18350
- * Metadata about an agentspace source.
18351
- */
18352
- export interface Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata {
18353
- /**
18354
- * Output only. The full document name in Agentspace.
18355
- */
18356
- documentName?: string | null;
18357
- /**
18358
- * Output only. The title of the document.
18359
- */
18360
- documentTitle?: string | null;
18361
- }
18362
18563
  /**
18363
18564
  * An audio overview of a notebook. This is a summary of the notebook in audio format.
18364
18565
  */
@@ -18405,51 +18606,6 @@ export namespace discoveryengine_v1alpha {
18405
18606
  */
18406
18607
  sourceIds?: Schema$GoogleCloudNotebooklmV1alphaSourceId[];
18407
18608
  }
18408
- /**
18409
- * Request for SourceService.BatchCreateSources method.
18410
- */
18411
- export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest {
18412
- /**
18413
- * Required. The UserContents to be uploaded.
18414
- */
18415
- userContents?: Schema$GoogleCloudNotebooklmV1alphaUserContent[];
18416
- }
18417
- /**
18418
- * Response for SourceService.BatchCreateSources method.
18419
- */
18420
- export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse {
18421
- /**
18422
- * The Sources.
18423
- */
18424
- sources?: Schema$GoogleCloudNotebooklmV1alphaSource[];
18425
- }
18426
- /**
18427
- * Request for NotebookService.BatchDeleteNotebooks method.
18428
- */
18429
- export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest {
18430
- /**
18431
- * Required. Full resource names of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
18432
- */
18433
- names?: string[] | null;
18434
- }
18435
- /**
18436
- * Request for BatchDeleteSourcesRequest method.
18437
- */
18438
- export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest {
18439
- /**
18440
- * Required. Names of sources to be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
18441
- */
18442
- names?: string[] | null;
18443
- }
18444
- /**
18445
- * Customer-managed encryption configuration for Notebooks.
18446
- */
18447
- export interface Schema$GoogleCloudNotebooklmV1alphaCmekConfig {
18448
- /**
18449
- * Required. KMS key resource name which will be used to encrypt resources `projects/{project\}/locations/{location\}/keyRings/{keyRing\}/cryptoKeys/{keyId\}`.
18450
- */
18451
- kmsKey?: string | null;
18452
- }
18453
18609
  /**
18454
18610
  * Request for AudioOverviewService.CreateAudioOverview method.
18455
18611
  */
@@ -18468,294 +18624,6 @@ export namespace discoveryengine_v1alpha {
18468
18624
  */
18469
18625
  audioOverview?: Schema$GoogleCloudNotebooklmV1alphaAudioOverview;
18470
18626
  }
18471
- /**
18472
- * Failure reason containing details about why a source failed to ingest.
18473
- */
18474
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReason {
18475
- /**
18476
- * An audio file transcription specific error.
18477
- */
18478
- audioTranscriptionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError;
18479
- /**
18480
- * Error if the user tries to add a source from a blocked domain.
18481
- */
18482
- domainBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked;
18483
- /**
18484
- * A google drive specific error.
18485
- */
18486
- googleDriveError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError;
18487
- /**
18488
- * Indicates an error occurred while ingesting the source.
18489
- */
18490
- ingestionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError;
18491
- /**
18492
- * Indicates that the source MIME type is blocked.
18493
- */
18494
- mimeTypeBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked;
18495
- /**
18496
- * Indicates that the source is paywalled and cannot be ingested.
18497
- */
18498
- paywallError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError;
18499
- /**
18500
- * Indicates that the policy check failed.
18501
- */
18502
- policyCheckFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed;
18503
- /**
18504
- * Indicates that the source is empty.
18505
- */
18506
- sourceEmpty?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty;
18507
- /**
18508
- * Error if the user tries to update beyond their limits.
18509
- */
18510
- sourceLimitExceeded?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded;
18511
- /**
18512
- * Indicates source word count exceeded the user's limit.
18513
- */
18514
- sourceTooLong?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong;
18515
- /**
18516
- * Indicates that the source is unreachable.
18517
- */
18518
- sourceUnreachable?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable;
18519
- /**
18520
- * Indicates an unknown error occurred.
18521
- */
18522
- unknown?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown;
18523
- /**
18524
- * Indicates an error occurred while uploading the source.
18525
- */
18526
- uploadError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError;
18527
- /**
18528
- * A youtube specific error.
18529
- */
18530
- youtubeError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError;
18531
- }
18532
- /**
18533
- * An audio file transcription specific error.
18534
- */
18535
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError {
18536
- /**
18537
- * Could not detect language of the file (it may not be speech).
18538
- */
18539
- languageDetectionFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed;
18540
- /**
18541
- * No audio was detected in the input file (it may have been a video).
18542
- */
18543
- noAudioDetected?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected;
18544
- }
18545
- /**
18546
- * Could not detect language of the file (it may not be speech).
18547
- */
18548
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed {}
18549
- /**
18550
- * No audio was detected in the input file.
18551
- */
18552
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected {}
18553
- /**
18554
- * Error to indicate that the source was removed because the domain was blocked.
18555
- */
18556
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked {}
18557
- /**
18558
- * A google drive specific error.
18559
- */
18560
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError {
18561
- /**
18562
- * The user was prevented from downloading the file.
18563
- */
18564
- downloadPrevented?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented;
18565
- }
18566
- /**
18567
- * The user was prevented from downloading the file.
18568
- */
18569
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented {}
18570
- /**
18571
- * Indicates an error occurred while ingesting the source.
18572
- */
18573
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError {}
18574
- /**
18575
- * Indicates that the source MIME type is blocked.
18576
- */
18577
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked {}
18578
- /**
18579
- * Indicates that the source is paywalled and cannot be ingested.
18580
- */
18581
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError {}
18582
- /**
18583
- * Indicates that the policy check failed.
18584
- */
18585
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed {}
18586
- /**
18587
- * Indicates that the source is empty.
18588
- */
18589
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty {}
18590
- /**
18591
- * Indicates that the user does not have space for this source.
18592
- */
18593
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded {}
18594
- /**
18595
- * Indicates source word count exceeded the user's limit.
18596
- */
18597
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong {
18598
- /**
18599
- * The number of words in the source.
18600
- */
18601
- wordCount?: number | null;
18602
- /**
18603
- * The word count limit for the current user at the time of the upload.
18604
- */
18605
- wordLimit?: number | null;
18606
- }
18607
- /**
18608
- * Indicates that the source is unreachable. This is primarily used for sources that are added via URL.
18609
- */
18610
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable {
18611
- /**
18612
- * Describes why the source is unreachable.
18613
- */
18614
- errorDetails?: string | null;
18615
- }
18616
- /**
18617
- * Indicates an unknown error occurred.
18618
- */
18619
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown {}
18620
- /**
18621
- * Indicates an error occurred while uploading the source.
18622
- */
18623
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError {}
18624
- /**
18625
- * A youtube specific error.
18626
- */
18627
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError {
18628
- /**
18629
- * Error to indicate that the source was removed because the video was deleted.
18630
- */
18631
- videoDeleted?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted;
18632
- }
18633
- /**
18634
- * Error to indicate that the source was removed because the video was deleted.
18635
- */
18636
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted {}
18637
- /**
18638
- * Metadata about a google doc source.
18639
- */
18640
- export interface Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata {
18641
- /**
18642
- * Output only. The document id of the google doc.
18643
- */
18644
- documentId?: string | null;
18645
- /**
18646
- * Output only. Revision id for the doc.
18647
- */
18648
- revisionId?: string | null;
18649
- }
18650
- /**
18651
- * Response for NotebookService.ListRecentlyViewedNotebooks method.
18652
- */
18653
- export interface Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse {
18654
- /**
18655
- * The page token, provide this to retrieve the subsequent page.
18656
- */
18657
- nextPageToken?: string | null;
18658
- /**
18659
- * The list of recently viewed notebooks.
18660
- */
18661
- notebooks?: Schema$GoogleCloudNotebooklmV1alphaNotebook[];
18662
- }
18663
- /**
18664
- * Notebook is a resource where users can store their content (as sources) and interacts with the content.
18665
- */
18666
- export interface Schema$GoogleCloudNotebooklmV1alphaNotebook {
18667
- /**
18668
- * Output only. CMEK-related information for the Notebook.
18669
- */
18670
- cmekConfig?: Schema$GoogleCloudNotebooklmV1alphaCmekConfig;
18671
- /**
18672
- * Output only. The emoji of the notebook.
18673
- */
18674
- emoji?: string | null;
18675
- /**
18676
- * Output only. The metadata of the notebook.
18677
- */
18678
- metadata?: Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata;
18679
- /**
18680
- * Identifier. The identifier of the notebook. Format: `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. This field must be a UTF-8 encoded string.
18681
- */
18682
- name?: string | null;
18683
- /**
18684
- * Output only. Notebook id, which is the last segment of the notebook's resource name.
18685
- */
18686
- notebookId?: string | null;
18687
- /**
18688
- * Output only. List of sources in the notebook. This is an output only field.
18689
- */
18690
- sources?: Schema$GoogleCloudNotebooklmV1alphaSource[];
18691
- /**
18692
- * Optional. The title of the notebook.
18693
- */
18694
- title?: string | null;
18695
- }
18696
- /**
18697
- * Metadata for a notebook.
18698
- */
18699
- export interface Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata {
18700
- /**
18701
- * The time at which this project was created.
18702
- */
18703
- createTime?: string | null;
18704
- /**
18705
- * True if the project is shareable.
18706
- */
18707
- isShareable?: boolean | null;
18708
- /**
18709
- * True if this project is currently shared with other people, false otherwise.
18710
- */
18711
- isShared?: boolean | null;
18712
- /**
18713
- * A timestamp indicating the time that the current in session user has last viewed the project.
18714
- */
18715
- lastViewed?: string | null;
18716
- }
18717
- /**
18718
- * Request for NotebookService.ShareNotebook method.
18719
- */
18720
- export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest {
18721
- /**
18722
- * Required. The list of accounts and roles to share the notebook with.
18723
- */
18724
- accountAndRoles?: Schema$GoogleCloudNotebooklmV1alphaAccountAndRole[];
18725
- /**
18726
- * Required. Whether to notify the shared users via email.
18727
- */
18728
- notifyViaEmail?: boolean | null;
18729
- }
18730
- /**
18731
- * Response for NotebookService.ShareNotebook method.
18732
- */
18733
- export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse {}
18734
- /**
18735
- * Source represents a single source of content.
18736
- */
18737
- export interface Schema$GoogleCloudNotebooklmV1alphaSource {
18738
- /**
18739
- * Output only. Metadata about the source.
18740
- */
18741
- metadata?: Schema$GoogleCloudNotebooklmV1alphaSourceMetadata;
18742
- /**
18743
- * Identifier. The full resource name of the source. Format: `projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
18744
- */
18745
- name?: string | null;
18746
- /**
18747
- * Output only. Status of the source, and any failure reasons.
18748
- */
18749
- settings?: Schema$GoogleCloudNotebooklmV1alphaSourceSettings;
18750
- /**
18751
- * Optional. Output only. Source id, which is the last segment of the source's resource name.
18752
- */
18753
- sourceId?: Schema$GoogleCloudNotebooklmV1alphaSourceId;
18754
- /**
18755
- * Optional. Title of the source.
18756
- */
18757
- title?: string | null;
18758
- }
18759
18627
  /**
18760
18628
  * SourceId is the last segment of the source's resource name.
18761
18629
  */
@@ -18765,155 +18633,6 @@ export namespace discoveryengine_v1alpha {
18765
18633
  */
18766
18634
  id?: string | null;
18767
18635
  }
18768
- /**
18769
- * Represents the metadata of a source and some additional information.
18770
- */
18771
- export interface Schema$GoogleCloudNotebooklmV1alphaSourceMetadata {
18772
- /**
18773
- * Metadata for an agentspace source.
18774
- */
18775
- agentspaceMetadata?: Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata;
18776
- /**
18777
- * Metadata for a google doc source.
18778
- */
18779
- googleDocsMetadata?: Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata;
18780
- /**
18781
- * The timestamp the source was added.
18782
- */
18783
- sourceAddedTimestamp?: string | null;
18784
- /**
18785
- * The number of tokens in the source.
18786
- */
18787
- tokenCount?: number | null;
18788
- /**
18789
- * The word count of the source.
18790
- */
18791
- wordCount?: number | null;
18792
- /**
18793
- * Metadata for a youtube video source.
18794
- */
18795
- youtubeMetadata?: Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata;
18796
- }
18797
- /**
18798
- * Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request).
18799
- */
18800
- export interface Schema$GoogleCloudNotebooklmV1alphaSourceSettings {
18801
- /**
18802
- * Failure reason containing details about why a source failed to ingest.
18803
- */
18804
- failureReason?: Schema$GoogleCloudNotebooklmV1alphaFailureReason;
18805
- /**
18806
- * Status of the source.
18807
- */
18808
- status?: string | null;
18809
- }
18810
- /**
18811
- * The "Content" messages refer to data the user wants to upload.
18812
- */
18813
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContent {
18814
- /**
18815
- * Agentspace content uploaded as source.
18816
- */
18817
- agentspaceContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent;
18818
- /**
18819
- * The content from Google Drive.
18820
- */
18821
- googleDriveContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent;
18822
- /**
18823
- * The text content uploaded as source.
18824
- */
18825
- textContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent;
18826
- /**
18827
- * The video content uploaded as source.
18828
- */
18829
- videoContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent;
18830
- /**
18831
- * The web content uploaded as source.
18832
- */
18833
- webContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent;
18834
- }
18835
- /**
18836
- * Agentspace content uploaded as source.
18837
- */
18838
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent {
18839
- /**
18840
- * Optional. The full resource name of the Agentspace document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document_id\}`.
18841
- */
18842
- documentName?: string | null;
18843
- /**
18844
- * Optional. Engine to verify the permission of the document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`.
18845
- */
18846
- engineName?: string | null;
18847
- /**
18848
- * Optional. Resource name of the idea forge instance. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}/ideaForgeInstances/{instance\}`
18849
- */
18850
- ideaforgeIdeaName?: string | null;
18851
- }
18852
- /**
18853
- * The content from Google Drive.
18854
- */
18855
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent {
18856
- /**
18857
- * The document id of the selected document.
18858
- */
18859
- documentId?: string | null;
18860
- /**
18861
- * The mime type of the selected document. This can be used to differentiate type of content selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or application/vnd.google-apps.presentation for Google Slides.
18862
- */
18863
- mimeType?: string | null;
18864
- /**
18865
- * The name to be displayed for the source.
18866
- */
18867
- sourceName?: string | null;
18868
- }
18869
- /**
18870
- * The text content uploaded as source.
18871
- */
18872
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent {
18873
- /**
18874
- * The name to be displayed for the source.
18875
- */
18876
- content?: string | null;
18877
- /**
18878
- * The display name of the text source.
18879
- */
18880
- sourceName?: string | null;
18881
- }
18882
- /**
18883
- * Video content uploaded as source.
18884
- */
18885
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent {
18886
- /**
18887
- * The youtube url of the video content.
18888
- */
18889
- youtubeUrl?: string | null;
18890
- }
18891
- /**
18892
- * The web content uploaded as source.
18893
- */
18894
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent {
18895
- /**
18896
- * The name to be displayed for the source.
18897
- */
18898
- sourceName?: string | null;
18899
- /**
18900
- * If URL is supplied, will fetch the webpage in the backend.
18901
- */
18902
- url?: string | null;
18903
- }
18904
- /**
18905
- * Metadata about a youtube video source.
18906
- */
18907
- export interface Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata {
18908
- /**
18909
- * Output only. The channel name of the youtube video.
18910
- */
18911
- channelName?: string | null;
18912
- /**
18913
- * Output only. The id of the youtube video.
18914
- */
18915
- videoId?: string | null;
18916
- }
18917
18636
  /**
18918
18637
  * Associates `members`, or principals, with a `role`.
18919
18638
  */
@@ -25031,6 +24750,158 @@ export namespace discoveryengine_v1alpha {
25031
24750
  }
25032
24751
  }
25033
24752
 
24753
+ /**
24754
+ * Gets the IAM access control policy for a Collection. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
24755
+ * @example
24756
+ * ```js
24757
+ * // Before running the sample:
24758
+ * // - Enable the API at:
24759
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
24760
+ * // - Login into gcloud by running:
24761
+ * // ```sh
24762
+ * // $ gcloud auth application-default login
24763
+ * // ```
24764
+ * // - Install the npm module by running:
24765
+ * // ```sh
24766
+ * // $ npm install googleapis
24767
+ * // ```
24768
+ *
24769
+ * const {google} = require('googleapis');
24770
+ * const discoveryengine = google.discoveryengine('v1alpha');
24771
+ *
24772
+ * async function main() {
24773
+ * const auth = new google.auth.GoogleAuth({
24774
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
24775
+ * scopes: [
24776
+ * 'https://www.googleapis.com/auth/cloud-platform',
24777
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
24778
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
24779
+ * ],
24780
+ * });
24781
+ *
24782
+ * // Acquire an auth client, and bind it to all future calls
24783
+ * const authClient = await auth.getClient();
24784
+ * google.options({auth: authClient});
24785
+ *
24786
+ * // Do the magic
24787
+ * const res = await discoveryengine.projects.locations.collections.getIamPolicy(
24788
+ * {
24789
+ * // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
24790
+ * 'options.requestedPolicyVersion': 'placeholder-value',
24791
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
24792
+ * resource:
24793
+ * 'projects/my-project/locations/my-location/collections/my-collection',
24794
+ * },
24795
+ * );
24796
+ * console.log(res.data);
24797
+ *
24798
+ * // Example response
24799
+ * // {
24800
+ * // "bindings": [],
24801
+ * // "etag": "my_etag",
24802
+ * // "version": 0
24803
+ * // }
24804
+ * }
24805
+ *
24806
+ * main().catch(e => {
24807
+ * console.error(e);
24808
+ * throw e;
24809
+ * });
24810
+ *
24811
+ * ```
24812
+ *
24813
+ * @param params - Parameters for request
24814
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
24815
+ * @param callback - Optional callback that handles the response.
24816
+ * @returns A promise if used with async/await, or void if used with a callback.
24817
+ */
24818
+ getIamPolicy(
24819
+ params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
24820
+ options: StreamMethodOptions
24821
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
24822
+ getIamPolicy(
24823
+ params?: Params$Resource$Projects$Locations$Collections$Getiampolicy,
24824
+ options?: MethodOptions
24825
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
24826
+ getIamPolicy(
24827
+ params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
24828
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
24829
+ callback: BodyResponseCallback<Readable>
24830
+ ): void;
24831
+ getIamPolicy(
24832
+ params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
24833
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
24834
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
24835
+ ): void;
24836
+ getIamPolicy(
24837
+ params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
24838
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
24839
+ ): void;
24840
+ getIamPolicy(
24841
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
24842
+ ): void;
24843
+ getIamPolicy(
24844
+ paramsOrCallback?:
24845
+ | Params$Resource$Projects$Locations$Collections$Getiampolicy
24846
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
24847
+ | BodyResponseCallback<Readable>,
24848
+ optionsOrCallback?:
24849
+ | MethodOptions
24850
+ | StreamMethodOptions
24851
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
24852
+ | BodyResponseCallback<Readable>,
24853
+ callback?:
24854
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
24855
+ | BodyResponseCallback<Readable>
24856
+ ):
24857
+ | void
24858
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
24859
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
24860
+ let params = (paramsOrCallback ||
24861
+ {}) as Params$Resource$Projects$Locations$Collections$Getiampolicy;
24862
+ let options = (optionsOrCallback || {}) as MethodOptions;
24863
+
24864
+ if (typeof paramsOrCallback === 'function') {
24865
+ callback = paramsOrCallback;
24866
+ params =
24867
+ {} as Params$Resource$Projects$Locations$Collections$Getiampolicy;
24868
+ options = {};
24869
+ }
24870
+
24871
+ if (typeof optionsOrCallback === 'function') {
24872
+ callback = optionsOrCallback;
24873
+ options = {};
24874
+ }
24875
+
24876
+ const rootUrl =
24877
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
24878
+ const parameters = {
24879
+ options: Object.assign(
24880
+ {
24881
+ url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(
24882
+ /([^:]\/)\/+/g,
24883
+ '$1'
24884
+ ),
24885
+ method: 'GET',
24886
+ apiVersion: '',
24887
+ },
24888
+ options
24889
+ ),
24890
+ params,
24891
+ requiredParams: ['resource'],
24892
+ pathParams: ['resource'],
24893
+ context: this.context,
24894
+ };
24895
+ if (callback) {
24896
+ createAPIRequest<Schema$GoogleIamV1Policy>(
24897
+ parameters,
24898
+ callback as BodyResponseCallback<unknown>
24899
+ );
24900
+ } else {
24901
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
24902
+ }
24903
+ }
24904
+
25034
24905
  /**
25035
24906
  * Gets a list of Collections.
25036
24907
  * @example
@@ -25349,6 +25220,164 @@ export namespace discoveryengine_v1alpha {
25349
25220
  }
25350
25221
  }
25351
25222
 
25223
+ /**
25224
+ * Sets the IAM access control policy for a Collection. A `NOT_FOUND` error is returned if the resource does not exist. **Important:** When setting a policy directly on a Collection resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.
25225
+ * @example
25226
+ * ```js
25227
+ * // Before running the sample:
25228
+ * // - Enable the API at:
25229
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
25230
+ * // - Login into gcloud by running:
25231
+ * // ```sh
25232
+ * // $ gcloud auth application-default login
25233
+ * // ```
25234
+ * // - Install the npm module by running:
25235
+ * // ```sh
25236
+ * // $ npm install googleapis
25237
+ * // ```
25238
+ *
25239
+ * const {google} = require('googleapis');
25240
+ * const discoveryengine = google.discoveryengine('v1alpha');
25241
+ *
25242
+ * async function main() {
25243
+ * const auth = new google.auth.GoogleAuth({
25244
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
25245
+ * scopes: [
25246
+ * 'https://www.googleapis.com/auth/cloud-platform',
25247
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
25248
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
25249
+ * ],
25250
+ * });
25251
+ *
25252
+ * // Acquire an auth client, and bind it to all future calls
25253
+ * const authClient = await auth.getClient();
25254
+ * google.options({auth: authClient});
25255
+ *
25256
+ * // Do the magic
25257
+ * const res = await discoveryengine.projects.locations.collections.setIamPolicy(
25258
+ * {
25259
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
25260
+ * resource:
25261
+ * 'projects/my-project/locations/my-location/collections/my-collection',
25262
+ *
25263
+ * // Request body metadata
25264
+ * requestBody: {
25265
+ * // request body parameters
25266
+ * // {
25267
+ * // "policy": {}
25268
+ * // }
25269
+ * },
25270
+ * },
25271
+ * );
25272
+ * console.log(res.data);
25273
+ *
25274
+ * // Example response
25275
+ * // {
25276
+ * // "bindings": [],
25277
+ * // "etag": "my_etag",
25278
+ * // "version": 0
25279
+ * // }
25280
+ * }
25281
+ *
25282
+ * main().catch(e => {
25283
+ * console.error(e);
25284
+ * throw e;
25285
+ * });
25286
+ *
25287
+ * ```
25288
+ *
25289
+ * @param params - Parameters for request
25290
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
25291
+ * @param callback - Optional callback that handles the response.
25292
+ * @returns A promise if used with async/await, or void if used with a callback.
25293
+ */
25294
+ setIamPolicy(
25295
+ params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
25296
+ options: StreamMethodOptions
25297
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
25298
+ setIamPolicy(
25299
+ params?: Params$Resource$Projects$Locations$Collections$Setiampolicy,
25300
+ options?: MethodOptions
25301
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
25302
+ setIamPolicy(
25303
+ params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
25304
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
25305
+ callback: BodyResponseCallback<Readable>
25306
+ ): void;
25307
+ setIamPolicy(
25308
+ params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
25309
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
25310
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
25311
+ ): void;
25312
+ setIamPolicy(
25313
+ params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
25314
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
25315
+ ): void;
25316
+ setIamPolicy(
25317
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
25318
+ ): void;
25319
+ setIamPolicy(
25320
+ paramsOrCallback?:
25321
+ | Params$Resource$Projects$Locations$Collections$Setiampolicy
25322
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
25323
+ | BodyResponseCallback<Readable>,
25324
+ optionsOrCallback?:
25325
+ | MethodOptions
25326
+ | StreamMethodOptions
25327
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
25328
+ | BodyResponseCallback<Readable>,
25329
+ callback?:
25330
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
25331
+ | BodyResponseCallback<Readable>
25332
+ ):
25333
+ | void
25334
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
25335
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
25336
+ let params = (paramsOrCallback ||
25337
+ {}) as Params$Resource$Projects$Locations$Collections$Setiampolicy;
25338
+ let options = (optionsOrCallback || {}) as MethodOptions;
25339
+
25340
+ if (typeof paramsOrCallback === 'function') {
25341
+ callback = paramsOrCallback;
25342
+ params =
25343
+ {} as Params$Resource$Projects$Locations$Collections$Setiampolicy;
25344
+ options = {};
25345
+ }
25346
+
25347
+ if (typeof optionsOrCallback === 'function') {
25348
+ callback = optionsOrCallback;
25349
+ options = {};
25350
+ }
25351
+
25352
+ const rootUrl =
25353
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
25354
+ const parameters = {
25355
+ options: Object.assign(
25356
+ {
25357
+ url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(
25358
+ /([^:]\/)\/+/g,
25359
+ '$1'
25360
+ ),
25361
+ method: 'POST',
25362
+ apiVersion: '',
25363
+ },
25364
+ options
25365
+ ),
25366
+ params,
25367
+ requiredParams: ['resource'],
25368
+ pathParams: ['resource'],
25369
+ context: this.context,
25370
+ };
25371
+ if (callback) {
25372
+ createAPIRequest<Schema$GoogleIamV1Policy>(
25373
+ parameters,
25374
+ callback as BodyResponseCallback<unknown>
25375
+ );
25376
+ } else {
25377
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
25378
+ }
25379
+ }
25380
+
25352
25381
  /**
25353
25382
  * Updates a DataConnector.
25354
25383
  * @example
@@ -25624,6 +25653,16 @@ export namespace discoveryengine_v1alpha {
25624
25653
  */
25625
25654
  name?: string;
25626
25655
  }
25656
+ export interface Params$Resource$Projects$Locations$Collections$Getiampolicy extends StandardParameters {
25657
+ /**
25658
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
25659
+ */
25660
+ 'options.requestedPolicyVersion'?: number;
25661
+ /**
25662
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
25663
+ */
25664
+ resource?: string;
25665
+ }
25627
25666
  export interface Params$Resource$Projects$Locations$Collections$List extends StandardParameters {
25628
25667
  /**
25629
25668
  * Filter returned collections by associated data connector data sources. For example: `filter = 'data_source:jira confluence'`. If the filter is empty, we return all collections under a project and location.
@@ -25657,6 +25696,17 @@ export namespace discoveryengine_v1alpha {
25657
25696
  */
25658
25697
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaCollection;
25659
25698
  }
25699
+ export interface Params$Resource$Projects$Locations$Collections$Setiampolicy extends StandardParameters {
25700
+ /**
25701
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
25702
+ */
25703
+ resource?: string;
25704
+
25705
+ /**
25706
+ * Request body metadata
25707
+ */
25708
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
25709
+ }
25660
25710
  export interface Params$Resource$Projects$Locations$Collections$Updatedataconnector extends StandardParameters {
25661
25711
  /**
25662
25712
  * Identifier. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
@@ -26176,7 +26226,7 @@ export namespace discoveryengine_v1alpha {
26176
26226
  }
26177
26227
 
26178
26228
  /**
26179
- * ServeMcpDeleteRequest serves a MCP DELETE request.
26229
+ * Makes a call to an MCP connector.
26180
26230
  * @example
26181
26231
  * ```js
26182
26232
  * // Before running the sample:
@@ -26199,6 +26249,7 @@ export namespace discoveryengine_v1alpha {
26199
26249
  * // Scopes can be specified either as an array or as a single, space-delimited string.
26200
26250
  * scopes: [
26201
26251
  * 'https://www.googleapis.com/auth/cloud-platform',
26252
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
26202
26253
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
26203
26254
  * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
26204
26255
  * ],
@@ -26210,26 +26261,29 @@ export namespace discoveryengine_v1alpha {
26210
26261
  *
26211
26262
  * // Do the magic
26212
26263
  * const res =
26213
- * await discoveryengine.projects.locations.collections.dataConnector.mcp({
26214
- * collectionsId: 'placeholder-value',
26215
- * // The HTTP Content-Type header value specifying the content type of the body.
26216
- * contentType: 'placeholder-value',
26217
- * // The HTTP request/response body as raw binary.
26218
- * data: 'placeholder-value',
26219
- * // Application specific response metadata. Must be set in the first response for streaming APIs.
26220
- * extensions: 'placeholder-value',
26221
- *
26222
- * locationsId: 'placeholder-value',
26264
+ * await discoveryengine.projects.locations.collections.dataConnector.invokeConnectorMcp(
26265
+ * {
26266
+ * // Required. DataConnector resource. The data connector used for making the MCP call.
26267
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataConnector',
26223
26268
  *
26224
- * projectsId: 'placeholder-value',
26225
- * });
26269
+ * // Request body metadata
26270
+ * requestBody: {
26271
+ * // request body parameters
26272
+ * // {
26273
+ * // "engine": "my_engine",
26274
+ * // "method": "my_method",
26275
+ * // "params": {},
26276
+ * // "toolSpecVersion": "my_toolSpecVersion"
26277
+ * // }
26278
+ * },
26279
+ * },
26280
+ * );
26226
26281
  * console.log(res.data);
26227
26282
  *
26228
26283
  * // Example response
26229
26284
  * // {
26230
- * // "contentType": "my_contentType",
26231
- * // "data": "my_data",
26232
- * // "extensions": []
26285
+ * // "error": {},
26286
+ * // "result": {}
26233
26287
  * // }
26234
26288
  * }
26235
26289
  *
@@ -26245,54 +26299,62 @@ export namespace discoveryengine_v1alpha {
26245
26299
  * @param callback - Optional callback that handles the response.
26246
26300
  * @returns A promise if used with async/await, or void if used with a callback.
26247
26301
  */
26248
- mcp(
26249
- params: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26302
+ invokeConnectorMcp(
26303
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp,
26250
26304
  options: StreamMethodOptions
26251
26305
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
26252
- mcp(
26253
- params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26306
+ invokeConnectorMcp(
26307
+ params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp,
26254
26308
  options?: MethodOptions
26255
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiHttpBody>>;
26256
- mcp(
26257
- params: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26309
+ ): Promise<
26310
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>
26311
+ >;
26312
+ invokeConnectorMcp(
26313
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp,
26258
26314
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
26259
26315
  callback: BodyResponseCallback<Readable>
26260
26316
  ): void;
26261
- mcp(
26262
- params: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26263
- options: MethodOptions | BodyResponseCallback<Schema$GoogleApiHttpBody>,
26264
- callback: BodyResponseCallback<Schema$GoogleApiHttpBody>
26317
+ invokeConnectorMcp(
26318
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp,
26319
+ options:
26320
+ | MethodOptions
26321
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>,
26322
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>
26265
26323
  ): void;
26266
- mcp(
26267
- params: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26268
- callback: BodyResponseCallback<Schema$GoogleApiHttpBody>
26324
+ invokeConnectorMcp(
26325
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp,
26326
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>
26269
26327
  ): void;
26270
- mcp(callback: BodyResponseCallback<Schema$GoogleApiHttpBody>): void;
26271
- mcp(
26328
+ invokeConnectorMcp(
26329
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>
26330
+ ): void;
26331
+ invokeConnectorMcp(
26272
26332
  paramsOrCallback?:
26273
- | Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp
26274
- | BodyResponseCallback<Schema$GoogleApiHttpBody>
26333
+ | Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp
26334
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>
26275
26335
  | BodyResponseCallback<Readable>,
26276
26336
  optionsOrCallback?:
26277
26337
  | MethodOptions
26278
26338
  | StreamMethodOptions
26279
- | BodyResponseCallback<Schema$GoogleApiHttpBody>
26339
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>
26280
26340
  | BodyResponseCallback<Readable>,
26281
26341
  callback?:
26282
- | BodyResponseCallback<Schema$GoogleApiHttpBody>
26342
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>
26283
26343
  | BodyResponseCallback<Readable>
26284
26344
  ):
26285
26345
  | void
26286
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiHttpBody>>
26346
+ | Promise<
26347
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>
26348
+ >
26287
26349
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
26288
26350
  let params = (paramsOrCallback ||
26289
- {}) as Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp;
26351
+ {}) as Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp;
26290
26352
  let options = (optionsOrCallback || {}) as MethodOptions;
26291
26353
 
26292
26354
  if (typeof paramsOrCallback === 'function') {
26293
26355
  callback = paramsOrCallback;
26294
26356
  params =
26295
- {} as Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp;
26357
+ {} as Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp;
26296
26358
  options = {};
26297
26359
  }
26298
26360
 
@@ -26306,32 +26368,34 @@ export namespace discoveryengine_v1alpha {
26306
26368
  const parameters = {
26307
26369
  options: Object.assign(
26308
26370
  {
26309
- url: (
26310
- rootUrl +
26311
- '/v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataConnector/mcp'
26312
- ).replace(/([^:]\/)\/+/g, '$1'),
26313
- method: 'DELETE',
26371
+ url: (rootUrl + '/v1alpha/{+name}:invokeConnectorMcp').replace(
26372
+ /([^:]\/)\/+/g,
26373
+ '$1'
26374
+ ),
26375
+ method: 'POST',
26314
26376
  apiVersion: '',
26315
26377
  },
26316
26378
  options
26317
26379
  ),
26318
26380
  params,
26319
- requiredParams: ['projectsId', 'locationsId', 'collectionsId'],
26320
- pathParams: ['collectionsId', 'locationsId', 'projectsId'],
26381
+ requiredParams: ['name'],
26382
+ pathParams: ['name'],
26321
26383
  context: this.context,
26322
26384
  };
26323
26385
  if (callback) {
26324
- createAPIRequest<Schema$GoogleApiHttpBody>(
26386
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>(
26325
26387
  parameters,
26326
26388
  callback as BodyResponseCallback<unknown>
26327
26389
  );
26328
26390
  } else {
26329
- return createAPIRequest<Schema$GoogleApiHttpBody>(parameters);
26391
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>(
26392
+ parameters
26393
+ );
26330
26394
  }
26331
26395
  }
26332
26396
 
26333
26397
  /**
26334
- * Starts an immediate synchronization process for a DataConnector. Third Party Connector Users must specify which entities should be synced. FHIR Connectors must provide a timestamp to indicate the point in time from which data should be synced.
26398
+ * ServeMcpDeleteRequest serves a MCP DELETE request.
26335
26399
  * @example
26336
26400
  * ```js
26337
26401
  * // Before running the sample:
@@ -26354,7 +26418,6 @@ export namespace discoveryengine_v1alpha {
26354
26418
  * // Scopes can be specified either as an array or as a single, space-delimited string.
26355
26419
  * scopes: [
26356
26420
  * 'https://www.googleapis.com/auth/cloud-platform',
26357
- * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
26358
26421
  * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
26359
26422
  * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
26360
26423
  * ],
@@ -26366,38 +26429,26 @@ export namespace discoveryengine_v1alpha {
26366
26429
  *
26367
26430
  * // Do the magic
26368
26431
  * const res =
26369
- * await discoveryengine.projects.locations.collections.dataConnector.startConnectorRun(
26370
- * {
26371
- * // Required. Connector name of the form `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataConnector`
26372
- * parent:
26373
- * 'projects/my-project/locations/my-location/collections/my-collection/dataConnector',
26432
+ * await discoveryengine.projects.locations.collections.dataConnector.mcp({
26433
+ * collectionsId: 'placeholder-value',
26434
+ * // The HTTP Content-Type header value specifying the content type of the body.
26435
+ * contentType: 'placeholder-value',
26436
+ * // The HTTP request/response body as raw binary.
26437
+ * data: 'placeholder-value',
26438
+ * // Application specific response metadata. Must be set in the first response for streaming APIs.
26439
+ * extensions: 'placeholder-value',
26374
26440
  *
26375
- * // Request body metadata
26376
- * requestBody: {
26377
- * // request body parameters
26378
- * // {
26379
- * // "entities": [],
26380
- * // "forceRefreshContent": false,
26381
- * // "healthcareFhirResourceTypes": [],
26382
- * // "syncIdentity": false,
26383
- * // "syncSinceTimestamp": "my_syncSinceTimestamp"
26384
- * // }
26385
- * },
26386
- * },
26387
- * );
26441
+ * locationsId: 'placeholder-value',
26442
+ *
26443
+ * projectsId: 'placeholder-value',
26444
+ * });
26388
26445
  * console.log(res.data);
26389
26446
  *
26390
26447
  * // Example response
26391
26448
  * // {
26392
- * // "endTime": "my_endTime",
26393
- * // "entityRuns": [],
26394
- * // "errors": [],
26395
- * // "latestPauseTime": "my_latestPauseTime",
26396
- * // "name": "my_name",
26397
- * // "startTime": "my_startTime",
26398
- * // "state": "my_state",
26399
- * // "stateUpdateTime": "my_stateUpdateTime",
26400
- * // "trigger": "my_trigger"
26449
+ * // "contentType": "my_contentType",
26450
+ * // "data": "my_data",
26451
+ * // "extensions": []
26401
26452
  * // }
26402
26453
  * }
26403
26454
  *
@@ -26413,62 +26464,54 @@ export namespace discoveryengine_v1alpha {
26413
26464
  * @param callback - Optional callback that handles the response.
26414
26465
  * @returns A promise if used with async/await, or void if used with a callback.
26415
26466
  */
26416
- startConnectorRun(
26417
- params: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26467
+ mcp(
26468
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26418
26469
  options: StreamMethodOptions
26419
26470
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
26420
- startConnectorRun(
26421
- params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26471
+ mcp(
26472
+ params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26422
26473
  options?: MethodOptions
26423
- ): Promise<
26424
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26425
- >;
26426
- startConnectorRun(
26427
- params: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26474
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiHttpBody>>;
26475
+ mcp(
26476
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26428
26477
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
26429
26478
  callback: BodyResponseCallback<Readable>
26430
26479
  ): void;
26431
- startConnectorRun(
26432
- params: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26433
- options:
26434
- | MethodOptions
26435
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>,
26436
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26437
- ): void;
26438
- startConnectorRun(
26439
- params: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26440
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26480
+ mcp(
26481
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26482
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleApiHttpBody>,
26483
+ callback: BodyResponseCallback<Schema$GoogleApiHttpBody>
26441
26484
  ): void;
26442
- startConnectorRun(
26443
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26485
+ mcp(
26486
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp,
26487
+ callback: BodyResponseCallback<Schema$GoogleApiHttpBody>
26444
26488
  ): void;
26445
- startConnectorRun(
26489
+ mcp(callback: BodyResponseCallback<Schema$GoogleApiHttpBody>): void;
26490
+ mcp(
26446
26491
  paramsOrCallback?:
26447
- | Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun
26448
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26492
+ | Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp
26493
+ | BodyResponseCallback<Schema$GoogleApiHttpBody>
26449
26494
  | BodyResponseCallback<Readable>,
26450
26495
  optionsOrCallback?:
26451
26496
  | MethodOptions
26452
26497
  | StreamMethodOptions
26453
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26498
+ | BodyResponseCallback<Schema$GoogleApiHttpBody>
26454
26499
  | BodyResponseCallback<Readable>,
26455
26500
  callback?:
26456
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26501
+ | BodyResponseCallback<Schema$GoogleApiHttpBody>
26457
26502
  | BodyResponseCallback<Readable>
26458
26503
  ):
26459
26504
  | void
26460
- | Promise<
26461
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26462
- >
26505
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleApiHttpBody>>
26463
26506
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
26464
26507
  let params = (paramsOrCallback ||
26465
- {}) as Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun;
26508
+ {}) as Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp;
26466
26509
  let options = (optionsOrCallback || {}) as MethodOptions;
26467
26510
 
26468
26511
  if (typeof paramsOrCallback === 'function') {
26469
26512
  callback = paramsOrCallback;
26470
26513
  params =
26471
- {} as Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun;
26514
+ {} as Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp;
26472
26515
  options = {};
26473
26516
  }
26474
26517
 
@@ -26482,102 +26525,289 @@ export namespace discoveryengine_v1alpha {
26482
26525
  const parameters = {
26483
26526
  options: Object.assign(
26484
26527
  {
26485
- url: (rootUrl + '/v1alpha/{+parent}:startConnectorRun').replace(
26486
- /([^:]\/)\/+/g,
26487
- '$1'
26488
- ),
26489
- method: 'POST',
26528
+ url: (
26529
+ rootUrl +
26530
+ '/v1alpha/projects/{projectsId}/locations/{locationsId}/collections/{collectionsId}/dataConnector/mcp'
26531
+ ).replace(/([^:]\/)\/+/g, '$1'),
26532
+ method: 'DELETE',
26490
26533
  apiVersion: '',
26491
26534
  },
26492
26535
  options
26493
26536
  ),
26494
26537
  params,
26495
- requiredParams: ['parent'],
26496
- pathParams: ['parent'],
26538
+ requiredParams: ['projectsId', 'locationsId', 'collectionsId'],
26539
+ pathParams: ['collectionsId', 'locationsId', 'projectsId'],
26497
26540
  context: this.context,
26498
26541
  };
26499
26542
  if (callback) {
26500
- createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>(
26543
+ createAPIRequest<Schema$GoogleApiHttpBody>(
26501
26544
  parameters,
26502
26545
  callback as BodyResponseCallback<unknown>
26503
26546
  );
26504
26547
  } else {
26505
- return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>(
26506
- parameters
26507
- );
26548
+ return createAPIRequest<Schema$GoogleApiHttpBody>(parameters);
26508
26549
  }
26509
26550
  }
26510
- }
26511
26551
 
26512
- export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Acquireaccesstoken extends StandardParameters {
26513
- /**
26514
- * Required. The resource name of the connector for which a token is queried.
26515
- */
26516
- name?: string;
26517
-
26518
- /**
26519
- * Request body metadata
26520
- */
26521
- requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenRequest;
26522
- }
26523
- export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken extends StandardParameters {
26524
- /**
26525
- * Required. The resource name of the connector for which a token is queried.
26526
- */
26527
- name?: string;
26528
- }
26529
- export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Getconnectorsecret extends StandardParameters {
26530
- /**
26531
- * Required. The full resource name of the associated data connector.
26532
- */
26533
- name?: string;
26534
- }
26535
- export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp extends StandardParameters {
26536
- /**
26537
- *
26538
- */
26539
- collectionsId?: string;
26540
26552
  /**
26541
- * The HTTP Content-Type header value specifying the content type of the body.
26542
- */
26543
- contentType?: string;
26544
- /**
26545
- * The HTTP request/response body as raw binary.
26546
- */
26547
- data?: string;
26548
- /**
26549
- * Application specific response metadata. Must be set in the first response for streaming APIs.
26550
- */
26551
- extensions?: {[key: string]: any}[];
26552
- /**
26553
- *
26554
- */
26555
- locationsId?: string;
26556
- /**
26557
- *
26558
- */
26559
- projectsId?: string;
26560
- }
26561
- export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun extends StandardParameters {
26562
- /**
26563
- * Required. Connector name of the form `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataConnector`
26564
- */
26565
- parent?: string;
26566
-
26567
- /**
26568
- * Request body metadata
26569
- */
26570
- requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaStartConnectorRunRequest;
26571
- }
26572
-
26573
- export class Resource$Projects$Locations$Collections$Dataconnector$Connectorruns {
26574
- context: APIRequestContext;
26575
- constructor(context: APIRequestContext) {
26576
- this.context = context;
26577
- }
26578
-
26579
- /**
26580
- * Lists the ConnectorRuns of a DataConnector.
26553
+ * Starts an immediate synchronization process for a DataConnector. Third Party Connector Users must specify which entities should be synced. FHIR Connectors must provide a timestamp to indicate the point in time from which data should be synced.
26554
+ * @example
26555
+ * ```js
26556
+ * // Before running the sample:
26557
+ * // - Enable the API at:
26558
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
26559
+ * // - Login into gcloud by running:
26560
+ * // ```sh
26561
+ * // $ gcloud auth application-default login
26562
+ * // ```
26563
+ * // - Install the npm module by running:
26564
+ * // ```sh
26565
+ * // $ npm install googleapis
26566
+ * // ```
26567
+ *
26568
+ * const {google} = require('googleapis');
26569
+ * const discoveryengine = google.discoveryengine('v1alpha');
26570
+ *
26571
+ * async function main() {
26572
+ * const auth = new google.auth.GoogleAuth({
26573
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
26574
+ * scopes: [
26575
+ * 'https://www.googleapis.com/auth/cloud-platform',
26576
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
26577
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
26578
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
26579
+ * ],
26580
+ * });
26581
+ *
26582
+ * // Acquire an auth client, and bind it to all future calls
26583
+ * const authClient = await auth.getClient();
26584
+ * google.options({auth: authClient});
26585
+ *
26586
+ * // Do the magic
26587
+ * const res =
26588
+ * await discoveryengine.projects.locations.collections.dataConnector.startConnectorRun(
26589
+ * {
26590
+ * // Required. Connector name of the form `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataConnector`
26591
+ * parent:
26592
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataConnector',
26593
+ *
26594
+ * // Request body metadata
26595
+ * requestBody: {
26596
+ * // request body parameters
26597
+ * // {
26598
+ * // "entities": [],
26599
+ * // "forceRefreshContent": false,
26600
+ * // "healthcareFhirResourceTypes": [],
26601
+ * // "syncIdentity": false,
26602
+ * // "syncSinceTimestamp": "my_syncSinceTimestamp"
26603
+ * // }
26604
+ * },
26605
+ * },
26606
+ * );
26607
+ * console.log(res.data);
26608
+ *
26609
+ * // Example response
26610
+ * // {
26611
+ * // "endTime": "my_endTime",
26612
+ * // "entityRuns": [],
26613
+ * // "errors": [],
26614
+ * // "latestPauseTime": "my_latestPauseTime",
26615
+ * // "name": "my_name",
26616
+ * // "startTime": "my_startTime",
26617
+ * // "state": "my_state",
26618
+ * // "stateUpdateTime": "my_stateUpdateTime",
26619
+ * // "trigger": "my_trigger"
26620
+ * // }
26621
+ * }
26622
+ *
26623
+ * main().catch(e => {
26624
+ * console.error(e);
26625
+ * throw e;
26626
+ * });
26627
+ *
26628
+ * ```
26629
+ *
26630
+ * @param params - Parameters for request
26631
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
26632
+ * @param callback - Optional callback that handles the response.
26633
+ * @returns A promise if used with async/await, or void if used with a callback.
26634
+ */
26635
+ startConnectorRun(
26636
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26637
+ options: StreamMethodOptions
26638
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
26639
+ startConnectorRun(
26640
+ params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26641
+ options?: MethodOptions
26642
+ ): Promise<
26643
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26644
+ >;
26645
+ startConnectorRun(
26646
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26647
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
26648
+ callback: BodyResponseCallback<Readable>
26649
+ ): void;
26650
+ startConnectorRun(
26651
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26652
+ options:
26653
+ | MethodOptions
26654
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>,
26655
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26656
+ ): void;
26657
+ startConnectorRun(
26658
+ params: Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun,
26659
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26660
+ ): void;
26661
+ startConnectorRun(
26662
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26663
+ ): void;
26664
+ startConnectorRun(
26665
+ paramsOrCallback?:
26666
+ | Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun
26667
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26668
+ | BodyResponseCallback<Readable>,
26669
+ optionsOrCallback?:
26670
+ | MethodOptions
26671
+ | StreamMethodOptions
26672
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26673
+ | BodyResponseCallback<Readable>,
26674
+ callback?:
26675
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26676
+ | BodyResponseCallback<Readable>
26677
+ ):
26678
+ | void
26679
+ | Promise<
26680
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>
26681
+ >
26682
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
26683
+ let params = (paramsOrCallback ||
26684
+ {}) as Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun;
26685
+ let options = (optionsOrCallback || {}) as MethodOptions;
26686
+
26687
+ if (typeof paramsOrCallback === 'function') {
26688
+ callback = paramsOrCallback;
26689
+ params =
26690
+ {} as Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun;
26691
+ options = {};
26692
+ }
26693
+
26694
+ if (typeof optionsOrCallback === 'function') {
26695
+ callback = optionsOrCallback;
26696
+ options = {};
26697
+ }
26698
+
26699
+ const rootUrl =
26700
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
26701
+ const parameters = {
26702
+ options: Object.assign(
26703
+ {
26704
+ url: (rootUrl + '/v1alpha/{+parent}:startConnectorRun').replace(
26705
+ /([^:]\/)\/+/g,
26706
+ '$1'
26707
+ ),
26708
+ method: 'POST',
26709
+ apiVersion: '',
26710
+ },
26711
+ options
26712
+ ),
26713
+ params,
26714
+ requiredParams: ['parent'],
26715
+ pathParams: ['parent'],
26716
+ context: this.context,
26717
+ };
26718
+ if (callback) {
26719
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>(
26720
+ parameters,
26721
+ callback as BodyResponseCallback<unknown>
26722
+ );
26723
+ } else {
26724
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaConnectorRun>(
26725
+ parameters
26726
+ );
26727
+ }
26728
+ }
26729
+ }
26730
+
26731
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Acquireaccesstoken extends StandardParameters {
26732
+ /**
26733
+ * Required. The resource name of the connector for which a token is queried.
26734
+ */
26735
+ name?: string;
26736
+
26737
+ /**
26738
+ * Request body metadata
26739
+ */
26740
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaAcquireAccessTokenRequest;
26741
+ }
26742
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Checkrefreshtoken extends StandardParameters {
26743
+ /**
26744
+ * Required. The resource name of the connector for which a token is queried.
26745
+ */
26746
+ name?: string;
26747
+ }
26748
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Getconnectorsecret extends StandardParameters {
26749
+ /**
26750
+ * Required. The full resource name of the associated data connector.
26751
+ */
26752
+ name?: string;
26753
+ }
26754
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp extends StandardParameters {
26755
+ /**
26756
+ * Required. DataConnector resource. The data connector used for making the MCP call.
26757
+ */
26758
+ name?: string;
26759
+
26760
+ /**
26761
+ * Request body metadata
26762
+ */
26763
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpRequest;
26764
+ }
26765
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp extends StandardParameters {
26766
+ /**
26767
+ *
26768
+ */
26769
+ collectionsId?: string;
26770
+ /**
26771
+ * The HTTP Content-Type header value specifying the content type of the body.
26772
+ */
26773
+ contentType?: string;
26774
+ /**
26775
+ * The HTTP request/response body as raw binary.
26776
+ */
26777
+ data?: string;
26778
+ /**
26779
+ * Application specific response metadata. Must be set in the first response for streaming APIs.
26780
+ */
26781
+ extensions?: {[key: string]: any}[];
26782
+ /**
26783
+ *
26784
+ */
26785
+ locationsId?: string;
26786
+ /**
26787
+ *
26788
+ */
26789
+ projectsId?: string;
26790
+ }
26791
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Startconnectorrun extends StandardParameters {
26792
+ /**
26793
+ * Required. Connector name of the form `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataConnector`
26794
+ */
26795
+ parent?: string;
26796
+
26797
+ /**
26798
+ * Request body metadata
26799
+ */
26800
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaStartConnectorRunRequest;
26801
+ }
26802
+
26803
+ export class Resource$Projects$Locations$Collections$Dataconnector$Connectorruns {
26804
+ context: APIRequestContext;
26805
+ constructor(context: APIRequestContext) {
26806
+ this.context = context;
26807
+ }
26808
+
26809
+ /**
26810
+ * Lists the ConnectorRuns of a DataConnector.
26581
26811
  * @example
26582
26812
  * ```js
26583
26813
  * // Before running the sample:
@@ -28524,7 +28754,7 @@ export namespace discoveryengine_v1alpha {
28524
28754
  }
28525
28755
 
28526
28756
  /**
28527
- * Gets the SiteSearchEngine.
28757
+ * Gets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
28528
28758
  * @example
28529
28759
  * ```js
28530
28760
  * // Before running the sample:
@@ -28558,17 +28788,22 @@ export namespace discoveryengine_v1alpha {
28558
28788
  *
28559
28789
  * // Do the magic
28560
28790
  * const res =
28561
- * await discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine(
28791
+ * await discoveryengine.projects.locations.collections.dataStores.getIamPolicy(
28562
28792
  * {
28563
- * // Required. Resource name of SiteSearchEngine, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/siteSearchEngine`. If the caller does not have permission to access the [SiteSearchEngine], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
28564
- * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/siteSearchEngine',
28793
+ * // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
28794
+ * 'options.requestedPolicyVersion': 'placeholder-value',
28795
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
28796
+ * resource:
28797
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
28565
28798
  * },
28566
28799
  * );
28567
28800
  * console.log(res.data);
28568
28801
  *
28569
28802
  * // Example response
28570
28803
  * // {
28571
- * // "name": "my_name"
28804
+ * // "bindings": [],
28805
+ * // "etag": "my_etag",
28806
+ * // "version": 0
28572
28807
  * // }
28573
28808
  * }
28574
28809
  *
@@ -28584,62 +28819,56 @@ export namespace discoveryengine_v1alpha {
28584
28819
  * @param callback - Optional callback that handles the response.
28585
28820
  * @returns A promise if used with async/await, or void if used with a callback.
28586
28821
  */
28587
- getSiteSearchEngine(
28588
- params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28822
+ getIamPolicy(
28823
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
28589
28824
  options: StreamMethodOptions
28590
28825
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
28591
- getSiteSearchEngine(
28592
- params?: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28826
+ getIamPolicy(
28827
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
28593
28828
  options?: MethodOptions
28594
- ): Promise<
28595
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28596
- >;
28597
- getSiteSearchEngine(
28598
- params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28829
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
28830
+ getIamPolicy(
28831
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
28599
28832
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
28600
28833
  callback: BodyResponseCallback<Readable>
28601
28834
  ): void;
28602
- getSiteSearchEngine(
28603
- params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28604
- options:
28605
- | MethodOptions
28606
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>,
28607
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28835
+ getIamPolicy(
28836
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
28837
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
28838
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
28608
28839
  ): void;
28609
- getSiteSearchEngine(
28610
- params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28611
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28840
+ getIamPolicy(
28841
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
28842
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
28612
28843
  ): void;
28613
- getSiteSearchEngine(
28614
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28844
+ getIamPolicy(
28845
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
28615
28846
  ): void;
28616
- getSiteSearchEngine(
28847
+ getIamPolicy(
28617
28848
  paramsOrCallback?:
28618
- | Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine
28619
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28849
+ | Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy
28850
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
28620
28851
  | BodyResponseCallback<Readable>,
28621
28852
  optionsOrCallback?:
28622
28853
  | MethodOptions
28623
28854
  | StreamMethodOptions
28624
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28855
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
28625
28856
  | BodyResponseCallback<Readable>,
28626
28857
  callback?:
28627
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28858
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
28628
28859
  | BodyResponseCallback<Readable>
28629
28860
  ):
28630
28861
  | void
28631
- | Promise<
28632
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28633
- >
28862
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
28634
28863
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
28635
28864
  let params = (paramsOrCallback ||
28636
- {}) as Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine;
28865
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy;
28637
28866
  let options = (optionsOrCallback || {}) as MethodOptions;
28638
28867
 
28639
28868
  if (typeof paramsOrCallback === 'function') {
28640
28869
  callback = paramsOrCallback;
28641
28870
  params =
28642
- {} as Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine;
28871
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy;
28643
28872
  options = {};
28644
28873
  }
28645
28874
 
@@ -28653,31 +28882,185 @@ export namespace discoveryengine_v1alpha {
28653
28882
  const parameters = {
28654
28883
  options: Object.assign(
28655
28884
  {
28656
- url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
28885
+ url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(
28886
+ /([^:]\/)\/+/g,
28887
+ '$1'
28888
+ ),
28657
28889
  method: 'GET',
28658
28890
  apiVersion: '',
28659
28891
  },
28660
28892
  options
28661
28893
  ),
28662
28894
  params,
28663
- requiredParams: ['name'],
28664
- pathParams: ['name'],
28895
+ requiredParams: ['resource'],
28896
+ pathParams: ['resource'],
28665
28897
  context: this.context,
28666
28898
  };
28667
28899
  if (callback) {
28668
- createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>(
28900
+ createAPIRequest<Schema$GoogleIamV1Policy>(
28669
28901
  parameters,
28670
28902
  callback as BodyResponseCallback<unknown>
28671
28903
  );
28672
28904
  } else {
28673
- return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>(
28674
- parameters
28675
- );
28905
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
28676
28906
  }
28677
28907
  }
28678
28908
 
28679
28909
  /**
28680
- * Lists all the DataStores associated with the project.
28910
+ * Gets the SiteSearchEngine.
28911
+ * @example
28912
+ * ```js
28913
+ * // Before running the sample:
28914
+ * // - Enable the API at:
28915
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
28916
+ * // - Login into gcloud by running:
28917
+ * // ```sh
28918
+ * // $ gcloud auth application-default login
28919
+ * // ```
28920
+ * // - Install the npm module by running:
28921
+ * // ```sh
28922
+ * // $ npm install googleapis
28923
+ * // ```
28924
+ *
28925
+ * const {google} = require('googleapis');
28926
+ * const discoveryengine = google.discoveryengine('v1alpha');
28927
+ *
28928
+ * async function main() {
28929
+ * const auth = new google.auth.GoogleAuth({
28930
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
28931
+ * scopes: [
28932
+ * 'https://www.googleapis.com/auth/cloud-platform',
28933
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
28934
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
28935
+ * ],
28936
+ * });
28937
+ *
28938
+ * // Acquire an auth client, and bind it to all future calls
28939
+ * const authClient = await auth.getClient();
28940
+ * google.options({auth: authClient});
28941
+ *
28942
+ * // Do the magic
28943
+ * const res =
28944
+ * await discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine(
28945
+ * {
28946
+ * // Required. Resource name of SiteSearchEngine, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/siteSearchEngine`. If the caller does not have permission to access the [SiteSearchEngine], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
28947
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/siteSearchEngine',
28948
+ * },
28949
+ * );
28950
+ * console.log(res.data);
28951
+ *
28952
+ * // Example response
28953
+ * // {
28954
+ * // "name": "my_name"
28955
+ * // }
28956
+ * }
28957
+ *
28958
+ * main().catch(e => {
28959
+ * console.error(e);
28960
+ * throw e;
28961
+ * });
28962
+ *
28963
+ * ```
28964
+ *
28965
+ * @param params - Parameters for request
28966
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
28967
+ * @param callback - Optional callback that handles the response.
28968
+ * @returns A promise if used with async/await, or void if used with a callback.
28969
+ */
28970
+ getSiteSearchEngine(
28971
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28972
+ options: StreamMethodOptions
28973
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
28974
+ getSiteSearchEngine(
28975
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28976
+ options?: MethodOptions
28977
+ ): Promise<
28978
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28979
+ >;
28980
+ getSiteSearchEngine(
28981
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28982
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
28983
+ callback: BodyResponseCallback<Readable>
28984
+ ): void;
28985
+ getSiteSearchEngine(
28986
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28987
+ options:
28988
+ | MethodOptions
28989
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>,
28990
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28991
+ ): void;
28992
+ getSiteSearchEngine(
28993
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
28994
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28995
+ ): void;
28996
+ getSiteSearchEngine(
28997
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
28998
+ ): void;
28999
+ getSiteSearchEngine(
29000
+ paramsOrCallback?:
29001
+ | Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine
29002
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
29003
+ | BodyResponseCallback<Readable>,
29004
+ optionsOrCallback?:
29005
+ | MethodOptions
29006
+ | StreamMethodOptions
29007
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
29008
+ | BodyResponseCallback<Readable>,
29009
+ callback?:
29010
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
29011
+ | BodyResponseCallback<Readable>
29012
+ ):
29013
+ | void
29014
+ | Promise<
29015
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>
29016
+ >
29017
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
29018
+ let params = (paramsOrCallback ||
29019
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine;
29020
+ let options = (optionsOrCallback || {}) as MethodOptions;
29021
+
29022
+ if (typeof paramsOrCallback === 'function') {
29023
+ callback = paramsOrCallback;
29024
+ params =
29025
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine;
29026
+ options = {};
29027
+ }
29028
+
29029
+ if (typeof optionsOrCallback === 'function') {
29030
+ callback = optionsOrCallback;
29031
+ options = {};
29032
+ }
29033
+
29034
+ const rootUrl =
29035
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
29036
+ const parameters = {
29037
+ options: Object.assign(
29038
+ {
29039
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
29040
+ method: 'GET',
29041
+ apiVersion: '',
29042
+ },
29043
+ options
29044
+ ),
29045
+ params,
29046
+ requiredParams: ['name'],
29047
+ pathParams: ['name'],
29048
+ context: this.context,
29049
+ };
29050
+ if (callback) {
29051
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>(
29052
+ parameters,
29053
+ callback as BodyResponseCallback<unknown>
29054
+ );
29055
+ } else {
29056
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>(
29057
+ parameters
29058
+ );
29059
+ }
29060
+ }
29061
+
29062
+ /**
29063
+ * Lists all the DataStores associated with the project.
28681
29064
  * @example
28682
29065
  * ```js
28683
29066
  * // Before running the sample:
@@ -29377,6 +29760,165 @@ export namespace discoveryengine_v1alpha {
29377
29760
  }
29378
29761
  }
29379
29762
 
29763
+ /**
29764
+ * Sets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. **Important:** When setting a policy directly on a DataStore resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.
29765
+ * @example
29766
+ * ```js
29767
+ * // Before running the sample:
29768
+ * // - Enable the API at:
29769
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
29770
+ * // - Login into gcloud by running:
29771
+ * // ```sh
29772
+ * // $ gcloud auth application-default login
29773
+ * // ```
29774
+ * // - Install the npm module by running:
29775
+ * // ```sh
29776
+ * // $ npm install googleapis
29777
+ * // ```
29778
+ *
29779
+ * const {google} = require('googleapis');
29780
+ * const discoveryengine = google.discoveryengine('v1alpha');
29781
+ *
29782
+ * async function main() {
29783
+ * const auth = new google.auth.GoogleAuth({
29784
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
29785
+ * scopes: [
29786
+ * 'https://www.googleapis.com/auth/cloud-platform',
29787
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
29788
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
29789
+ * ],
29790
+ * });
29791
+ *
29792
+ * // Acquire an auth client, and bind it to all future calls
29793
+ * const authClient = await auth.getClient();
29794
+ * google.options({auth: authClient});
29795
+ *
29796
+ * // Do the magic
29797
+ * const res =
29798
+ * await discoveryengine.projects.locations.collections.dataStores.setIamPolicy(
29799
+ * {
29800
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
29801
+ * resource:
29802
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
29803
+ *
29804
+ * // Request body metadata
29805
+ * requestBody: {
29806
+ * // request body parameters
29807
+ * // {
29808
+ * // "policy": {}
29809
+ * // }
29810
+ * },
29811
+ * },
29812
+ * );
29813
+ * console.log(res.data);
29814
+ *
29815
+ * // Example response
29816
+ * // {
29817
+ * // "bindings": [],
29818
+ * // "etag": "my_etag",
29819
+ * // "version": 0
29820
+ * // }
29821
+ * }
29822
+ *
29823
+ * main().catch(e => {
29824
+ * console.error(e);
29825
+ * throw e;
29826
+ * });
29827
+ *
29828
+ * ```
29829
+ *
29830
+ * @param params - Parameters for request
29831
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
29832
+ * @param callback - Optional callback that handles the response.
29833
+ * @returns A promise if used with async/await, or void if used with a callback.
29834
+ */
29835
+ setIamPolicy(
29836
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
29837
+ options: StreamMethodOptions
29838
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
29839
+ setIamPolicy(
29840
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
29841
+ options?: MethodOptions
29842
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
29843
+ setIamPolicy(
29844
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
29845
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
29846
+ callback: BodyResponseCallback<Readable>
29847
+ ): void;
29848
+ setIamPolicy(
29849
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
29850
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
29851
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
29852
+ ): void;
29853
+ setIamPolicy(
29854
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
29855
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
29856
+ ): void;
29857
+ setIamPolicy(
29858
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
29859
+ ): void;
29860
+ setIamPolicy(
29861
+ paramsOrCallback?:
29862
+ | Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy
29863
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
29864
+ | BodyResponseCallback<Readable>,
29865
+ optionsOrCallback?:
29866
+ | MethodOptions
29867
+ | StreamMethodOptions
29868
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
29869
+ | BodyResponseCallback<Readable>,
29870
+ callback?:
29871
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
29872
+ | BodyResponseCallback<Readable>
29873
+ ):
29874
+ | void
29875
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
29876
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
29877
+ let params = (paramsOrCallback ||
29878
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy;
29879
+ let options = (optionsOrCallback || {}) as MethodOptions;
29880
+
29881
+ if (typeof paramsOrCallback === 'function') {
29882
+ callback = paramsOrCallback;
29883
+ params =
29884
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy;
29885
+ options = {};
29886
+ }
29887
+
29888
+ if (typeof optionsOrCallback === 'function') {
29889
+ callback = optionsOrCallback;
29890
+ options = {};
29891
+ }
29892
+
29893
+ const rootUrl =
29894
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
29895
+ const parameters = {
29896
+ options: Object.assign(
29897
+ {
29898
+ url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(
29899
+ /([^:]\/)\/+/g,
29900
+ '$1'
29901
+ ),
29902
+ method: 'POST',
29903
+ apiVersion: '',
29904
+ },
29905
+ options
29906
+ ),
29907
+ params,
29908
+ requiredParams: ['resource'],
29909
+ pathParams: ['resource'],
29910
+ context: this.context,
29911
+ };
29912
+ if (callback) {
29913
+ createAPIRequest<Schema$GoogleIamV1Policy>(
29914
+ parameters,
29915
+ callback as BodyResponseCallback<unknown>
29916
+ );
29917
+ } else {
29918
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
29919
+ }
29920
+ }
29921
+
29380
29922
  /**
29381
29923
  * Trains a custom model.
29382
29924
  * @example
@@ -29996,6 +30538,16 @@ export namespace discoveryengine_v1alpha {
29996
30538
  */
29997
30539
  name?: string;
29998
30540
  }
30541
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy extends StandardParameters {
30542
+ /**
30543
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
30544
+ */
30545
+ 'options.requestedPolicyVersion'?: number;
30546
+ /**
30547
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
30548
+ */
30549
+ resource?: string;
30550
+ }
29999
30551
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine extends StandardParameters {
30000
30552
  /**
30001
30553
  * Required. Resource name of SiteSearchEngine, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/siteSearchEngine`. If the caller does not have permission to access the [SiteSearchEngine], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
@@ -30061,6 +30613,17 @@ export namespace discoveryengine_v1alpha {
30061
30613
  */
30062
30614
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaReplacePatientFilterRequest;
30063
30615
  }
30616
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy extends StandardParameters {
30617
+ /**
30618
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
30619
+ */
30620
+ resource?: string;
30621
+
30622
+ /**
30623
+ * Request body metadata
30624
+ */
30625
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
30626
+ }
30064
30627
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Traincustommodel extends StandardParameters {
30065
30628
  /**
30066
30629
  * Required. The resource name of the Data Store, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models.
@@ -45337,7 +45900,7 @@ export namespace discoveryengine_v1alpha {
45337
45900
  * 'placeholder-value',
45338
45901
  * // Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector `display_name` / `description` on `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to the default language (English).
45339
45902
  * languageCode: 'placeholder-value',
45340
- * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
45903
+ * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
45341
45904
  * modelInfoView: 'placeholder-value',
45342
45905
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
45343
45906
  * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
@@ -45745,7 +46308,7 @@ export namespace discoveryengine_v1alpha {
45745
46308
  */
45746
46309
  languageCode?: string;
45747
46310
  /**
45748
- * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
46311
+ * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
45749
46312
  */
45750
46313
  modelInfoView?: string;
45751
46314
  /**
@@ -45890,6 +46453,7 @@ export namespace discoveryengine_v1alpha {
45890
46453
  * // "procurementContactEmails": [],
45891
46454
  * // "recommendationMetadata": {},
45892
46455
  * // "searchEngineConfig": {},
46456
+ * // "sessionConfig": {},
45893
46457
  * // "similarDocumentsConfig": {},
45894
46458
  * // "solutionType": "my_solutionType",
45895
46459
  * // "updateTime": "my_updateTime"
@@ -46222,6 +46786,7 @@ export namespace discoveryengine_v1alpha {
46222
46786
  * // "procurementContactEmails": [],
46223
46787
  * // "recommendationMetadata": {},
46224
46788
  * // "searchEngineConfig": {},
46789
+ * // "sessionConfig": {},
46225
46790
  * // "similarDocumentsConfig": {},
46226
46791
  * // "solutionType": "my_solutionType",
46227
46792
  * // "updateTime": "my_updateTime"
@@ -47034,6 +47599,7 @@ export namespace discoveryengine_v1alpha {
47034
47599
  * // "procurementContactEmails": [],
47035
47600
  * // "recommendationMetadata": {},
47036
47601
  * // "searchEngineConfig": {},
47602
+ * // "sessionConfig": {},
47037
47603
  * // "similarDocumentsConfig": {},
47038
47604
  * // "solutionType": "my_solutionType",
47039
47605
  * // "updateTime": "my_updateTime"
@@ -47068,6 +47634,7 @@ export namespace discoveryengine_v1alpha {
47068
47634
  * // "procurementContactEmails": [],
47069
47635
  * // "recommendationMetadata": {},
47070
47636
  * // "searchEngineConfig": {},
47637
+ * // "sessionConfig": {},
47071
47638
  * // "similarDocumentsConfig": {},
47072
47639
  * // "solutionType": "my_solutionType",
47073
47640
  * // "updateTime": "my_updateTime"
@@ -47251,6 +47818,7 @@ export namespace discoveryengine_v1alpha {
47251
47818
  * // "procurementContactEmails": [],
47252
47819
  * // "recommendationMetadata": {},
47253
47820
  * // "searchEngineConfig": {},
47821
+ * // "sessionConfig": {},
47254
47822
  * // "similarDocumentsConfig": {},
47255
47823
  * // "solutionType": "my_solutionType",
47256
47824
  * // "updateTime": "my_updateTime"
@@ -47437,6 +48005,7 @@ export namespace discoveryengine_v1alpha {
47437
48005
  * // "procurementContactEmails": [],
47438
48006
  * // "recommendationMetadata": {},
47439
48007
  * // "searchEngineConfig": {},
48008
+ * // "sessionConfig": {},
47440
48009
  * // "similarDocumentsConfig": {},
47441
48010
  * // "solutionType": "my_solutionType",
47442
48011
  * // "updateTime": "my_updateTime"
@@ -48782,6 +49351,7 @@ export namespace discoveryengine_v1alpha {
48782
49351
  * // "displayName": "my_displayName",
48783
49352
  * // "enabledTools": {},
48784
49353
  * // "generationConfig": {},
49354
+ * // "knowledgeCatalogEnabled": false,
48785
49355
  * // "name": "my_name",
48786
49356
  * // "updateTime": "my_updateTime",
48787
49357
  * // "webGroundingType": "my_webGroundingType"
@@ -48801,6 +49371,7 @@ export namespace discoveryengine_v1alpha {
48801
49371
  * // "displayName": "my_displayName",
48802
49372
  * // "enabledTools": {},
48803
49373
  * // "generationConfig": {},
49374
+ * // "knowledgeCatalogEnabled": false,
48804
49375
  * // "name": "my_name",
48805
49376
  * // "updateTime": "my_updateTime",
48806
49377
  * // "webGroundingType": "my_webGroundingType"
@@ -49110,6 +49681,7 @@ export namespace discoveryengine_v1alpha {
49110
49681
  * // "displayName": "my_displayName",
49111
49682
  * // "enabledTools": {},
49112
49683
  * // "generationConfig": {},
49684
+ * // "knowledgeCatalogEnabled": false,
49113
49685
  * // "name": "my_name",
49114
49686
  * // "updateTime": "my_updateTime",
49115
49687
  * // "webGroundingType": "my_webGroundingType"
@@ -49438,6 +50010,7 @@ export namespace discoveryengine_v1alpha {
49438
50010
  * // "displayName": "my_displayName",
49439
50011
  * // "enabledTools": {},
49440
50012
  * // "generationConfig": {},
50013
+ * // "knowledgeCatalogEnabled": false,
49441
50014
  * // "name": "my_name",
49442
50015
  * // "updateTime": "my_updateTime",
49443
50016
  * // "webGroundingType": "my_webGroundingType"
@@ -49457,6 +50030,7 @@ export namespace discoveryengine_v1alpha {
49457
50030
  * // "displayName": "my_displayName",
49458
50031
  * // "enabledTools": {},
49459
50032
  * // "generationConfig": {},
50033
+ * // "knowledgeCatalogEnabled": false,
49460
50034
  * // "name": "my_name",
49461
50035
  * // "updateTime": "my_updateTime",
49462
50036
  * // "webGroundingType": "my_webGroundingType"
@@ -49613,6 +50187,7 @@ export namespace discoveryengine_v1alpha {
49613
50187
  * // request body parameters
49614
50188
  * // {
49615
50189
  * // "actionSpec": {},
50190
+ * // "agentsSpec": {},
49616
50191
  * // "generationSpec": {},
49617
50192
  * // "query": {},
49618
50193
  * // "session": "my_session",
@@ -60350,7 +60925,7 @@ export namespace discoveryengine_v1alpha {
60350
60925
  * 'placeholder-value',
60351
60926
  * // Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector `display_name` / `description` on `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to the default language (English).
60352
60927
  * languageCode: 'placeholder-value',
60353
- * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
60928
+ * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
60354
60929
  * modelInfoView: 'placeholder-value',
60355
60930
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
60356
60931
  * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/widgetConfigs/my-widgetConfig',
@@ -60758,7 +61333,7 @@ export namespace discoveryengine_v1alpha {
60758
61333
  */
60759
61334
  languageCode?: string;
60760
61335
  /**
60761
- * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
61336
+ * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
60762
61337
  */
60763
61338
  modelInfoView?: string;
60764
61339
  /**
@@ -62514,6 +63089,156 @@ export namespace discoveryengine_v1alpha {
62514
63089
  }
62515
63090
  }
62516
63091
 
63092
+ /**
63093
+ * Gets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
63094
+ * @example
63095
+ * ```js
63096
+ * // Before running the sample:
63097
+ * // - Enable the API at:
63098
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
63099
+ * // - Login into gcloud by running:
63100
+ * // ```sh
63101
+ * // $ gcloud auth application-default login
63102
+ * // ```
63103
+ * // - Install the npm module by running:
63104
+ * // ```sh
63105
+ * // $ npm install googleapis
63106
+ * // ```
63107
+ *
63108
+ * const {google} = require('googleapis');
63109
+ * const discoveryengine = google.discoveryengine('v1alpha');
63110
+ *
63111
+ * async function main() {
63112
+ * const auth = new google.auth.GoogleAuth({
63113
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
63114
+ * scopes: [
63115
+ * 'https://www.googleapis.com/auth/cloud-platform',
63116
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
63117
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
63118
+ * ],
63119
+ * });
63120
+ *
63121
+ * // Acquire an auth client, and bind it to all future calls
63122
+ * const authClient = await auth.getClient();
63123
+ * google.options({auth: authClient});
63124
+ *
63125
+ * // Do the magic
63126
+ * const res = await discoveryengine.projects.locations.dataStores.getIamPolicy({
63127
+ * // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
63128
+ * 'options.requestedPolicyVersion': 'placeholder-value',
63129
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
63130
+ * resource:
63131
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
63132
+ * });
63133
+ * console.log(res.data);
63134
+ *
63135
+ * // Example response
63136
+ * // {
63137
+ * // "bindings": [],
63138
+ * // "etag": "my_etag",
63139
+ * // "version": 0
63140
+ * // }
63141
+ * }
63142
+ *
63143
+ * main().catch(e => {
63144
+ * console.error(e);
63145
+ * throw e;
63146
+ * });
63147
+ *
63148
+ * ```
63149
+ *
63150
+ * @param params - Parameters for request
63151
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
63152
+ * @param callback - Optional callback that handles the response.
63153
+ * @returns A promise if used with async/await, or void if used with a callback.
63154
+ */
63155
+ getIamPolicy(
63156
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
63157
+ options: StreamMethodOptions
63158
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
63159
+ getIamPolicy(
63160
+ params?: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
63161
+ options?: MethodOptions
63162
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
63163
+ getIamPolicy(
63164
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
63165
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
63166
+ callback: BodyResponseCallback<Readable>
63167
+ ): void;
63168
+ getIamPolicy(
63169
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
63170
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
63171
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
63172
+ ): void;
63173
+ getIamPolicy(
63174
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
63175
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
63176
+ ): void;
63177
+ getIamPolicy(
63178
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
63179
+ ): void;
63180
+ getIamPolicy(
63181
+ paramsOrCallback?:
63182
+ | Params$Resource$Projects$Locations$Datastores$Getiampolicy
63183
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
63184
+ | BodyResponseCallback<Readable>,
63185
+ optionsOrCallback?:
63186
+ | MethodOptions
63187
+ | StreamMethodOptions
63188
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
63189
+ | BodyResponseCallback<Readable>,
63190
+ callback?:
63191
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
63192
+ | BodyResponseCallback<Readable>
63193
+ ):
63194
+ | void
63195
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
63196
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
63197
+ let params = (paramsOrCallback ||
63198
+ {}) as Params$Resource$Projects$Locations$Datastores$Getiampolicy;
63199
+ let options = (optionsOrCallback || {}) as MethodOptions;
63200
+
63201
+ if (typeof paramsOrCallback === 'function') {
63202
+ callback = paramsOrCallback;
63203
+ params =
63204
+ {} as Params$Resource$Projects$Locations$Datastores$Getiampolicy;
63205
+ options = {};
63206
+ }
63207
+
63208
+ if (typeof optionsOrCallback === 'function') {
63209
+ callback = optionsOrCallback;
63210
+ options = {};
63211
+ }
63212
+
63213
+ const rootUrl =
63214
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
63215
+ const parameters = {
63216
+ options: Object.assign(
63217
+ {
63218
+ url: (rootUrl + '/v1alpha/{+resource}:getIamPolicy').replace(
63219
+ /([^:]\/)\/+/g,
63220
+ '$1'
63221
+ ),
63222
+ method: 'GET',
63223
+ apiVersion: '',
63224
+ },
63225
+ options
63226
+ ),
63227
+ params,
63228
+ requiredParams: ['resource'],
63229
+ pathParams: ['resource'],
63230
+ context: this.context,
63231
+ };
63232
+ if (callback) {
63233
+ createAPIRequest<Schema$GoogleIamV1Policy>(
63234
+ parameters,
63235
+ callback as BodyResponseCallback<unknown>
63236
+ );
63237
+ } else {
63238
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
63239
+ }
63240
+ }
63241
+
62517
63242
  /**
62518
63243
  * Gets the SiteSearchEngine.
62519
63244
  * @example
@@ -63358,7 +64083,7 @@ export namespace discoveryengine_v1alpha {
63358
64083
  }
63359
64084
 
63360
64085
  /**
63361
- * Updates the CompletionConfigs.
64086
+ * Sets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. **Important:** When setting a policy directly on a DataStore resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.
63362
64087
  * @example
63363
64088
  * ```js
63364
64089
  * // Before running the sample:
@@ -63391,44 +64116,26 @@ export namespace discoveryengine_v1alpha {
63391
64116
  * google.options({auth: authClient});
63392
64117
  *
63393
64118
  * // Do the magic
63394
- * const res =
63395
- * await discoveryengine.projects.locations.dataStores.updateCompletionConfig({
63396
- * // Required. Immutable. Fully qualified name `projects/x/locations/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/engines/x/completionConfig`
63397
- * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/completionConfig',
63398
- * // Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.query_model * CompletionConfig.enable_mode * CompletionConfig.query_frequency_threshold * CompletionConfig.num_unique_users_threshold * CompletionConfig.should_serve_content_suggestions * CompletionConfig.filter_pii_suggestions_using_dlp If not set, all supported fields are updated.
63399
- * updateMask: 'placeholder-value',
64119
+ * const res = await discoveryengine.projects.locations.dataStores.setIamPolicy({
64120
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
64121
+ * resource:
64122
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
63400
64123
  *
63401
- * // Request body metadata
63402
- * requestBody: {
63403
- * // request body parameters
63404
- * // {
63405
- * // "enableMode": "my_enableMode",
63406
- * // "filterPiiSuggestionsUsingDlp": false,
63407
- * // "matchingOrder": "my_matchingOrder",
63408
- * // "maxSuggestions": 0,
63409
- * // "minPrefixLength": 0,
63410
- * // "name": "my_name",
63411
- * // "numUniqueUsersThreshold": 0,
63412
- * // "queryFrequencyThreshold": 0,
63413
- * // "queryModel": "my_queryModel",
63414
- * // "shouldServeContentSuggestions": false
63415
- * // }
63416
- * },
63417
- * });
64124
+ * // Request body metadata
64125
+ * requestBody: {
64126
+ * // request body parameters
64127
+ * // {
64128
+ * // "policy": {}
64129
+ * // }
64130
+ * },
64131
+ * });
63418
64132
  * console.log(res.data);
63419
64133
  *
63420
64134
  * // Example response
63421
64135
  * // {
63422
- * // "enableMode": "my_enableMode",
63423
- * // "filterPiiSuggestionsUsingDlp": false,
63424
- * // "matchingOrder": "my_matchingOrder",
63425
- * // "maxSuggestions": 0,
63426
- * // "minPrefixLength": 0,
63427
- * // "name": "my_name",
63428
- * // "numUniqueUsersThreshold": 0,
63429
- * // "queryFrequencyThreshold": 0,
63430
- * // "queryModel": "my_queryModel",
63431
- * // "shouldServeContentSuggestions": false
64136
+ * // "bindings": [],
64137
+ * // "etag": "my_etag",
64138
+ * // "version": 0
63432
64139
  * // }
63433
64140
  * }
63434
64141
  *
@@ -63444,62 +64151,56 @@ export namespace discoveryengine_v1alpha {
63444
64151
  * @param callback - Optional callback that handles the response.
63445
64152
  * @returns A promise if used with async/await, or void if used with a callback.
63446
64153
  */
63447
- updateCompletionConfig(
63448
- params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
64154
+ setIamPolicy(
64155
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
63449
64156
  options: StreamMethodOptions
63450
64157
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
63451
- updateCompletionConfig(
63452
- params?: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
64158
+ setIamPolicy(
64159
+ params?: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
63453
64160
  options?: MethodOptions
63454
- ): Promise<
63455
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
63456
- >;
63457
- updateCompletionConfig(
63458
- params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
64161
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
64162
+ setIamPolicy(
64163
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
63459
64164
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
63460
64165
  callback: BodyResponseCallback<Readable>
63461
64166
  ): void;
63462
- updateCompletionConfig(
63463
- params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
63464
- options:
63465
- | MethodOptions
63466
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>,
63467
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64167
+ setIamPolicy(
64168
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
64169
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
64170
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
63468
64171
  ): void;
63469
- updateCompletionConfig(
63470
- params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
63471
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64172
+ setIamPolicy(
64173
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
64174
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
63472
64175
  ): void;
63473
- updateCompletionConfig(
63474
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64176
+ setIamPolicy(
64177
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
63475
64178
  ): void;
63476
- updateCompletionConfig(
64179
+ setIamPolicy(
63477
64180
  paramsOrCallback?:
63478
- | Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig
63479
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64181
+ | Params$Resource$Projects$Locations$Datastores$Setiampolicy
64182
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
63480
64183
  | BodyResponseCallback<Readable>,
63481
64184
  optionsOrCallback?:
63482
64185
  | MethodOptions
63483
64186
  | StreamMethodOptions
63484
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64187
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
63485
64188
  | BodyResponseCallback<Readable>,
63486
64189
  callback?:
63487
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64190
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
63488
64191
  | BodyResponseCallback<Readable>
63489
64192
  ):
63490
64193
  | void
63491
- | Promise<
63492
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
63493
- >
64194
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
63494
64195
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
63495
64196
  let params = (paramsOrCallback ||
63496
- {}) as Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig;
64197
+ {}) as Params$Resource$Projects$Locations$Datastores$Setiampolicy;
63497
64198
  let options = (optionsOrCallback || {}) as MethodOptions;
63498
64199
 
63499
64200
  if (typeof paramsOrCallback === 'function') {
63500
64201
  callback = paramsOrCallback;
63501
64202
  params =
63502
- {} as Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig;
64203
+ {} as Params$Resource$Projects$Locations$Datastores$Setiampolicy;
63503
64204
  options = {};
63504
64205
  }
63505
64206
 
@@ -63513,31 +64214,211 @@ export namespace discoveryengine_v1alpha {
63513
64214
  const parameters = {
63514
64215
  options: Object.assign(
63515
64216
  {
63516
- url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
63517
- method: 'PATCH',
64217
+ url: (rootUrl + '/v1alpha/{+resource}:setIamPolicy').replace(
64218
+ /([^:]\/)\/+/g,
64219
+ '$1'
64220
+ ),
64221
+ method: 'POST',
63518
64222
  apiVersion: '',
63519
64223
  },
63520
64224
  options
63521
64225
  ),
63522
64226
  params,
63523
- requiredParams: ['name'],
63524
- pathParams: ['name'],
64227
+ requiredParams: ['resource'],
64228
+ pathParams: ['resource'],
63525
64229
  context: this.context,
63526
64230
  };
63527
64231
  if (callback) {
63528
- createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>(
64232
+ createAPIRequest<Schema$GoogleIamV1Policy>(
63529
64233
  parameters,
63530
64234
  callback as BodyResponseCallback<unknown>
63531
64235
  );
63532
64236
  } else {
63533
- return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>(
63534
- parameters
63535
- );
64237
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
63536
64238
  }
63537
64239
  }
63538
64240
 
63539
64241
  /**
63540
- * Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleton resource of DataStore. It's empty when DataStore is created. The first call to this method will set up DocumentProcessingConfig. The `update_mask` query parameter is not supported; if it is set the request returns an error. To update mutable fields, omit `update_mask` and send the full DocumentProcessingConfig as the request body. The entire resource is overwritten, so include all values you want to retain. For example, to update the layout parser, set DocumentProcessingConfig.default_parsing_config (or DocumentProcessingConfig.parsing_config_overrides) and omit `update_mask`. Some fields, such as DocumentProcessingConfig.chunking_config, are immutable and return an error if changed.
64242
+ * Updates the CompletionConfigs.
64243
+ * @example
64244
+ * ```js
64245
+ * // Before running the sample:
64246
+ * // - Enable the API at:
64247
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
64248
+ * // - Login into gcloud by running:
64249
+ * // ```sh
64250
+ * // $ gcloud auth application-default login
64251
+ * // ```
64252
+ * // - Install the npm module by running:
64253
+ * // ```sh
64254
+ * // $ npm install googleapis
64255
+ * // ```
64256
+ *
64257
+ * const {google} = require('googleapis');
64258
+ * const discoveryengine = google.discoveryengine('v1alpha');
64259
+ *
64260
+ * async function main() {
64261
+ * const auth = new google.auth.GoogleAuth({
64262
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
64263
+ * scopes: [
64264
+ * 'https://www.googleapis.com/auth/cloud-platform',
64265
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
64266
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
64267
+ * ],
64268
+ * });
64269
+ *
64270
+ * // Acquire an auth client, and bind it to all future calls
64271
+ * const authClient = await auth.getClient();
64272
+ * google.options({auth: authClient});
64273
+ *
64274
+ * // Do the magic
64275
+ * const res =
64276
+ * await discoveryengine.projects.locations.dataStores.updateCompletionConfig({
64277
+ * // Required. Immutable. Fully qualified name `projects/x/locations/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/engines/x/completionConfig`
64278
+ * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/completionConfig',
64279
+ * // Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.query_model * CompletionConfig.enable_mode * CompletionConfig.query_frequency_threshold * CompletionConfig.num_unique_users_threshold * CompletionConfig.should_serve_content_suggestions * CompletionConfig.filter_pii_suggestions_using_dlp If not set, all supported fields are updated.
64280
+ * updateMask: 'placeholder-value',
64281
+ *
64282
+ * // Request body metadata
64283
+ * requestBody: {
64284
+ * // request body parameters
64285
+ * // {
64286
+ * // "enableMode": "my_enableMode",
64287
+ * // "filterPiiSuggestionsUsingDlp": false,
64288
+ * // "matchingOrder": "my_matchingOrder",
64289
+ * // "maxSuggestions": 0,
64290
+ * // "minPrefixLength": 0,
64291
+ * // "name": "my_name",
64292
+ * // "numUniqueUsersThreshold": 0,
64293
+ * // "queryFrequencyThreshold": 0,
64294
+ * // "queryModel": "my_queryModel",
64295
+ * // "shouldServeContentSuggestions": false
64296
+ * // }
64297
+ * },
64298
+ * });
64299
+ * console.log(res.data);
64300
+ *
64301
+ * // Example response
64302
+ * // {
64303
+ * // "enableMode": "my_enableMode",
64304
+ * // "filterPiiSuggestionsUsingDlp": false,
64305
+ * // "matchingOrder": "my_matchingOrder",
64306
+ * // "maxSuggestions": 0,
64307
+ * // "minPrefixLength": 0,
64308
+ * // "name": "my_name",
64309
+ * // "numUniqueUsersThreshold": 0,
64310
+ * // "queryFrequencyThreshold": 0,
64311
+ * // "queryModel": "my_queryModel",
64312
+ * // "shouldServeContentSuggestions": false
64313
+ * // }
64314
+ * }
64315
+ *
64316
+ * main().catch(e => {
64317
+ * console.error(e);
64318
+ * throw e;
64319
+ * });
64320
+ *
64321
+ * ```
64322
+ *
64323
+ * @param params - Parameters for request
64324
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
64325
+ * @param callback - Optional callback that handles the response.
64326
+ * @returns A promise if used with async/await, or void if used with a callback.
64327
+ */
64328
+ updateCompletionConfig(
64329
+ params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
64330
+ options: StreamMethodOptions
64331
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
64332
+ updateCompletionConfig(
64333
+ params?: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
64334
+ options?: MethodOptions
64335
+ ): Promise<
64336
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64337
+ >;
64338
+ updateCompletionConfig(
64339
+ params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
64340
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
64341
+ callback: BodyResponseCallback<Readable>
64342
+ ): void;
64343
+ updateCompletionConfig(
64344
+ params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
64345
+ options:
64346
+ | MethodOptions
64347
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>,
64348
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64349
+ ): void;
64350
+ updateCompletionConfig(
64351
+ params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig,
64352
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64353
+ ): void;
64354
+ updateCompletionConfig(
64355
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64356
+ ): void;
64357
+ updateCompletionConfig(
64358
+ paramsOrCallback?:
64359
+ | Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig
64360
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64361
+ | BodyResponseCallback<Readable>,
64362
+ optionsOrCallback?:
64363
+ | MethodOptions
64364
+ | StreamMethodOptions
64365
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64366
+ | BodyResponseCallback<Readable>,
64367
+ callback?:
64368
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64369
+ | BodyResponseCallback<Readable>
64370
+ ):
64371
+ | void
64372
+ | Promise<
64373
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>
64374
+ >
64375
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
64376
+ let params = (paramsOrCallback ||
64377
+ {}) as Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig;
64378
+ let options = (optionsOrCallback || {}) as MethodOptions;
64379
+
64380
+ if (typeof paramsOrCallback === 'function') {
64381
+ callback = paramsOrCallback;
64382
+ params =
64383
+ {} as Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig;
64384
+ options = {};
64385
+ }
64386
+
64387
+ if (typeof optionsOrCallback === 'function') {
64388
+ callback = optionsOrCallback;
64389
+ options = {};
64390
+ }
64391
+
64392
+ const rootUrl =
64393
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
64394
+ const parameters = {
64395
+ options: Object.assign(
64396
+ {
64397
+ url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
64398
+ method: 'PATCH',
64399
+ apiVersion: '',
64400
+ },
64401
+ options
64402
+ ),
64403
+ params,
64404
+ requiredParams: ['name'],
64405
+ pathParams: ['name'],
64406
+ context: this.context,
64407
+ };
64408
+ if (callback) {
64409
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>(
64410
+ parameters,
64411
+ callback as BodyResponseCallback<unknown>
64412
+ );
64413
+ } else {
64414
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>(
64415
+ parameters
64416
+ );
64417
+ }
64418
+ }
64419
+
64420
+ /**
64421
+ * Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleton resource of DataStore. It's empty when DataStore is created. The first call to this method will set up DocumentProcessingConfig. The `update_mask` query parameter is not supported; if it is set the request returns an error. To update mutable fields, omit `update_mask` and send the full DocumentProcessingConfig as the request body. The entire resource is overwritten, so include all values you want to retain. For example, to update the layout parser, set DocumentProcessingConfig.default_parsing_config (or DocumentProcessingConfig.parsing_config_overrides) and omit `update_mask`. Some fields, such as DocumentProcessingConfig.chunking_config, are immutable and return an error if changed.
63541
64422
  * @example
63542
64423
  * ```js
63543
64424
  * // Before running the sample:
@@ -63809,6 +64690,16 @@ export namespace discoveryengine_v1alpha {
63809
64690
  */
63810
64691
  name?: string;
63811
64692
  }
64693
+ export interface Params$Resource$Projects$Locations$Datastores$Getiampolicy extends StandardParameters {
64694
+ /**
64695
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
64696
+ */
64697
+ 'options.requestedPolicyVersion'?: number;
64698
+ /**
64699
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
64700
+ */
64701
+ resource?: string;
64702
+ }
63812
64703
  export interface Params$Resource$Projects$Locations$Datastores$Getsitesearchengine extends StandardParameters {
63813
64704
  /**
63814
64705
  * Required. Resource name of SiteSearchEngine, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/siteSearchEngine`. If the caller does not have permission to access the [SiteSearchEngine], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
@@ -63874,6 +64765,17 @@ export namespace discoveryengine_v1alpha {
63874
64765
  */
63875
64766
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaReplacePatientFilterRequest;
63876
64767
  }
64768
+ export interface Params$Resource$Projects$Locations$Datastores$Setiampolicy extends StandardParameters {
64769
+ /**
64770
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
64771
+ */
64772
+ resource?: string;
64773
+
64774
+ /**
64775
+ * Request body metadata
64776
+ */
64777
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
64778
+ }
63877
64779
  export interface Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig extends StandardParameters {
63878
64780
  /**
63879
64781
  * Required. Immutable. Fully qualified name `projects/x/locations/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/engines/x/completionConfig`
@@ -77130,7 +78032,7 @@ export namespace discoveryengine_v1alpha {
77130
78032
  * 'placeholder-value',
77131
78033
  * // Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector `display_name` / `description` on `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to the default language (English).
77132
78034
  * languageCode: 'placeholder-value',
77133
- * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
78035
+ * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
77134
78036
  * modelInfoView: 'placeholder-value',
77135
78037
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
77136
78038
  * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
@@ -77535,7 +78437,7 @@ export namespace discoveryengine_v1alpha {
77535
78437
  */
77536
78438
  languageCode?: string;
77537
78439
  /**
77538
- * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
78440
+ * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
77539
78441
  */
77540
78442
  modelInfoView?: string;
77541
78443
  /**
@@ -80932,18 +81834,21 @@ export namespace discoveryengine_v1alpha {
80932
81834
  export class Resource$Projects$Locations$Notebooks {
80933
81835
  context: APIRequestContext;
80934
81836
  audioOverviews: Resource$Projects$Locations$Notebooks$Audiooverviews;
80935
- sources: Resource$Projects$Locations$Notebooks$Sources;
80936
81837
  constructor(context: APIRequestContext) {
80937
81838
  this.context = context;
80938
81839
  this.audioOverviews =
80939
81840
  new Resource$Projects$Locations$Notebooks$Audiooverviews(this.context);
80940
- this.sources = new Resource$Projects$Locations$Notebooks$Sources(
80941
- this.context
80942
- );
81841
+ }
81842
+ }
81843
+
81844
+ export class Resource$Projects$Locations$Notebooks$Audiooverviews {
81845
+ context: APIRequestContext;
81846
+ constructor(context: APIRequestContext) {
81847
+ this.context = context;
80943
81848
  }
80944
81849
 
80945
81850
  /**
80946
- * Batch deletes Notebooks.
81851
+ * Generates a new audio overview.
80947
81852
  * @example
80948
81853
  * ```js
80949
81854
  * // Before running the sample:
@@ -80976,22 +81881,25 @@ export namespace discoveryengine_v1alpha {
80976
81881
  * google.options({auth: authClient});
80977
81882
  *
80978
81883
  * // Do the magic
80979
- * const res = await discoveryengine.projects.locations.notebooks.batchDelete({
80980
- * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
80981
- * parent: 'projects/my-project/locations/my-location',
81884
+ * const res =
81885
+ * await discoveryengine.projects.locations.notebooks.audioOverviews.create({
81886
+ * // Required. The parent resource where this notebook will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
81887
+ * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
80982
81888
  *
80983
- * // Request body metadata
80984
- * requestBody: {
80985
- * // request body parameters
80986
- * // {
80987
- * // "names": []
80988
- * // }
80989
- * },
80990
- * });
81889
+ * // Request body metadata
81890
+ * requestBody: {
81891
+ * // request body parameters
81892
+ * // {
81893
+ * // "generationOptions": {}
81894
+ * // }
81895
+ * },
81896
+ * });
80991
81897
  * console.log(res.data);
80992
81898
  *
80993
81899
  * // Example response
80994
- * // {}
81900
+ * // {
81901
+ * // "audioOverview": {}
81902
+ * // }
80995
81903
  * }
80996
81904
  *
80997
81905
  * main().catch(e => {
@@ -81006,55 +81914,62 @@ export namespace discoveryengine_v1alpha {
81006
81914
  * @param callback - Optional callback that handles the response.
81007
81915
  * @returns A promise if used with async/await, or void if used with a callback.
81008
81916
  */
81009
- batchDelete(
81010
- params: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
81917
+ create(
81918
+ params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81011
81919
  options: StreamMethodOptions
81012
81920
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
81013
- batchDelete(
81014
- params?: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
81921
+ create(
81922
+ params?: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81015
81923
  options?: MethodOptions
81016
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
81017
- batchDelete(
81018
- params: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
81924
+ ): Promise<
81925
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81926
+ >;
81927
+ create(
81928
+ params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81019
81929
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
81020
81930
  callback: BodyResponseCallback<Readable>
81021
81931
  ): void;
81022
- batchDelete(
81023
- params: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
81024
- options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
81025
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
81932
+ create(
81933
+ params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81934
+ options:
81935
+ | MethodOptions
81936
+ | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>,
81937
+ callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81026
81938
  ): void;
81027
- batchDelete(
81028
- params: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
81029
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
81939
+ create(
81940
+ params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81941
+ callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81030
81942
  ): void;
81031
- batchDelete(
81032
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
81943
+ create(
81944
+ callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81033
81945
  ): void;
81034
- batchDelete(
81946
+ create(
81035
81947
  paramsOrCallback?:
81036
- | Params$Resource$Projects$Locations$Notebooks$Batchdelete
81037
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
81948
+ | Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create
81949
+ | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81038
81950
  | BodyResponseCallback<Readable>,
81039
81951
  optionsOrCallback?:
81040
81952
  | MethodOptions
81041
81953
  | StreamMethodOptions
81042
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
81954
+ | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81043
81955
  | BodyResponseCallback<Readable>,
81044
81956
  callback?:
81045
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
81957
+ | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81046
81958
  | BodyResponseCallback<Readable>
81047
81959
  ):
81048
81960
  | void
81049
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
81961
+ | Promise<
81962
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81963
+ >
81050
81964
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
81051
81965
  let params = (paramsOrCallback ||
81052
- {}) as Params$Resource$Projects$Locations$Notebooks$Batchdelete;
81966
+ {}) as Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create;
81053
81967
  let options = (optionsOrCallback || {}) as MethodOptions;
81054
81968
 
81055
81969
  if (typeof paramsOrCallback === 'function') {
81056
81970
  callback = paramsOrCallback;
81057
- params = {} as Params$Resource$Projects$Locations$Notebooks$Batchdelete;
81971
+ params =
81972
+ {} as Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create;
81058
81973
  options = {};
81059
81974
  }
81060
81975
 
@@ -81068,7 +81983,7 @@ export namespace discoveryengine_v1alpha {
81068
81983
  const parameters = {
81069
81984
  options: Object.assign(
81070
81985
  {
81071
- url: (rootUrl + '/v1alpha/{+parent}/notebooks:batchDelete').replace(
81986
+ url: (rootUrl + '/v1alpha/{+parent}/audioOverviews').replace(
81072
81987
  /([^:]\/)\/+/g,
81073
81988
  '$1'
81074
81989
  ),
@@ -81083,884 +81998,19 @@ export namespace discoveryengine_v1alpha {
81083
81998
  context: this.context,
81084
81999
  };
81085
82000
  if (callback) {
81086
- createAPIRequest<Schema$GoogleProtobufEmpty>(
82001
+ createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>(
81087
82002
  parameters,
81088
82003
  callback as BodyResponseCallback<unknown>
81089
82004
  );
81090
82005
  } else {
81091
- return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
82006
+ return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>(
82007
+ parameters
82008
+ );
81092
82009
  }
81093
82010
  }
81094
82011
 
81095
82012
  /**
81096
- * Creates a notebook.
81097
- * @example
81098
- * ```js
81099
- * // Before running the sample:
81100
- * // - Enable the API at:
81101
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
81102
- * // - Login into gcloud by running:
81103
- * // ```sh
81104
- * // $ gcloud auth application-default login
81105
- * // ```
81106
- * // - Install the npm module by running:
81107
- * // ```sh
81108
- * // $ npm install googleapis
81109
- * // ```
81110
- *
81111
- * const {google} = require('googleapis');
81112
- * const discoveryengine = google.discoveryengine('v1alpha');
81113
- *
81114
- * async function main() {
81115
- * const auth = new google.auth.GoogleAuth({
81116
- * // Scopes can be specified either as an array or as a single, space-delimited string.
81117
- * scopes: [
81118
- * 'https://www.googleapis.com/auth/cloud-platform',
81119
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
81120
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
81121
- * ],
81122
- * });
81123
- *
81124
- * // Acquire an auth client, and bind it to all future calls
81125
- * const authClient = await auth.getClient();
81126
- * google.options({auth: authClient});
81127
- *
81128
- * // Do the magic
81129
- * const res = await discoveryengine.projects.locations.notebooks.create({
81130
- * // Required. The parent resource name, such as `projects/{project\}/locations/{location\}`.
81131
- * parent: 'projects/my-project/locations/my-location',
81132
- *
81133
- * // Request body metadata
81134
- * requestBody: {
81135
- * // request body parameters
81136
- * // {
81137
- * // "cmekConfig": {},
81138
- * // "emoji": "my_emoji",
81139
- * // "metadata": {},
81140
- * // "name": "my_name",
81141
- * // "notebookId": "my_notebookId",
81142
- * // "sources": [],
81143
- * // "title": "my_title"
81144
- * // }
81145
- * },
81146
- * });
81147
- * console.log(res.data);
81148
- *
81149
- * // Example response
81150
- * // {
81151
- * // "cmekConfig": {},
81152
- * // "emoji": "my_emoji",
81153
- * // "metadata": {},
81154
- * // "name": "my_name",
81155
- * // "notebookId": "my_notebookId",
81156
- * // "sources": [],
81157
- * // "title": "my_title"
81158
- * // }
81159
- * }
81160
- *
81161
- * main().catch(e => {
81162
- * console.error(e);
81163
- * throw e;
81164
- * });
81165
- *
81166
- * ```
81167
- *
81168
- * @param params - Parameters for request
81169
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
81170
- * @param callback - Optional callback that handles the response.
81171
- * @returns A promise if used with async/await, or void if used with a callback.
81172
- */
81173
- create(
81174
- params: Params$Resource$Projects$Locations$Notebooks$Create,
81175
- options: StreamMethodOptions
81176
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
81177
- create(
81178
- params?: Params$Resource$Projects$Locations$Notebooks$Create,
81179
- options?: MethodOptions
81180
- ): Promise<
81181
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81182
- >;
81183
- create(
81184
- params: Params$Resource$Projects$Locations$Notebooks$Create,
81185
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
81186
- callback: BodyResponseCallback<Readable>
81187
- ): void;
81188
- create(
81189
- params: Params$Resource$Projects$Locations$Notebooks$Create,
81190
- options:
81191
- | MethodOptions
81192
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>,
81193
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81194
- ): void;
81195
- create(
81196
- params: Params$Resource$Projects$Locations$Notebooks$Create,
81197
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81198
- ): void;
81199
- create(
81200
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81201
- ): void;
81202
- create(
81203
- paramsOrCallback?:
81204
- | Params$Resource$Projects$Locations$Notebooks$Create
81205
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81206
- | BodyResponseCallback<Readable>,
81207
- optionsOrCallback?:
81208
- | MethodOptions
81209
- | StreamMethodOptions
81210
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81211
- | BodyResponseCallback<Readable>,
81212
- callback?:
81213
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81214
- | BodyResponseCallback<Readable>
81215
- ):
81216
- | void
81217
- | Promise<
81218
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81219
- >
81220
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
81221
- let params = (paramsOrCallback ||
81222
- {}) as Params$Resource$Projects$Locations$Notebooks$Create;
81223
- let options = (optionsOrCallback || {}) as MethodOptions;
81224
-
81225
- if (typeof paramsOrCallback === 'function') {
81226
- callback = paramsOrCallback;
81227
- params = {} as Params$Resource$Projects$Locations$Notebooks$Create;
81228
- options = {};
81229
- }
81230
-
81231
- if (typeof optionsOrCallback === 'function') {
81232
- callback = optionsOrCallback;
81233
- options = {};
81234
- }
81235
-
81236
- const rootUrl =
81237
- options.rootUrl || 'https://discoveryengine.googleapis.com/';
81238
- const parameters = {
81239
- options: Object.assign(
81240
- {
81241
- url: (rootUrl + '/v1alpha/{+parent}/notebooks').replace(
81242
- /([^:]\/)\/+/g,
81243
- '$1'
81244
- ),
81245
- method: 'POST',
81246
- apiVersion: '',
81247
- },
81248
- options
81249
- ),
81250
- params,
81251
- requiredParams: ['parent'],
81252
- pathParams: ['parent'],
81253
- context: this.context,
81254
- };
81255
- if (callback) {
81256
- createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaNotebook>(
81257
- parameters,
81258
- callback as BodyResponseCallback<unknown>
81259
- );
81260
- } else {
81261
- return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaNotebook>(
81262
- parameters
81263
- );
81264
- }
81265
- }
81266
-
81267
- /**
81268
- * Gets a notebook.
81269
- * @example
81270
- * ```js
81271
- * // Before running the sample:
81272
- * // - Enable the API at:
81273
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
81274
- * // - Login into gcloud by running:
81275
- * // ```sh
81276
- * // $ gcloud auth application-default login
81277
- * // ```
81278
- * // - Install the npm module by running:
81279
- * // ```sh
81280
- * // $ npm install googleapis
81281
- * // ```
81282
- *
81283
- * const {google} = require('googleapis');
81284
- * const discoveryengine = google.discoveryengine('v1alpha');
81285
- *
81286
- * async function main() {
81287
- * const auth = new google.auth.GoogleAuth({
81288
- * // Scopes can be specified either as an array or as a single, space-delimited string.
81289
- * scopes: [
81290
- * 'https://www.googleapis.com/auth/cloud-platform',
81291
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
81292
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
81293
- * ],
81294
- * });
81295
- *
81296
- * // Acquire an auth client, and bind it to all future calls
81297
- * const authClient = await auth.getClient();
81298
- * google.options({auth: authClient});
81299
- *
81300
- * // Do the magic
81301
- * const res = await discoveryengine.projects.locations.notebooks.get({
81302
- * // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
81303
- * name: 'projects/my-project/locations/my-location/notebooks/my-notebook',
81304
- * });
81305
- * console.log(res.data);
81306
- *
81307
- * // Example response
81308
- * // {
81309
- * // "cmekConfig": {},
81310
- * // "emoji": "my_emoji",
81311
- * // "metadata": {},
81312
- * // "name": "my_name",
81313
- * // "notebookId": "my_notebookId",
81314
- * // "sources": [],
81315
- * // "title": "my_title"
81316
- * // }
81317
- * }
81318
- *
81319
- * main().catch(e => {
81320
- * console.error(e);
81321
- * throw e;
81322
- * });
81323
- *
81324
- * ```
81325
- *
81326
- * @param params - Parameters for request
81327
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
81328
- * @param callback - Optional callback that handles the response.
81329
- * @returns A promise if used with async/await, or void if used with a callback.
81330
- */
81331
- get(
81332
- params: Params$Resource$Projects$Locations$Notebooks$Get,
81333
- options: StreamMethodOptions
81334
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
81335
- get(
81336
- params?: Params$Resource$Projects$Locations$Notebooks$Get,
81337
- options?: MethodOptions
81338
- ): Promise<
81339
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81340
- >;
81341
- get(
81342
- params: Params$Resource$Projects$Locations$Notebooks$Get,
81343
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
81344
- callback: BodyResponseCallback<Readable>
81345
- ): void;
81346
- get(
81347
- params: Params$Resource$Projects$Locations$Notebooks$Get,
81348
- options:
81349
- | MethodOptions
81350
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>,
81351
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81352
- ): void;
81353
- get(
81354
- params: Params$Resource$Projects$Locations$Notebooks$Get,
81355
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81356
- ): void;
81357
- get(
81358
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81359
- ): void;
81360
- get(
81361
- paramsOrCallback?:
81362
- | Params$Resource$Projects$Locations$Notebooks$Get
81363
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81364
- | BodyResponseCallback<Readable>,
81365
- optionsOrCallback?:
81366
- | MethodOptions
81367
- | StreamMethodOptions
81368
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81369
- | BodyResponseCallback<Readable>,
81370
- callback?:
81371
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81372
- | BodyResponseCallback<Readable>
81373
- ):
81374
- | void
81375
- | Promise<
81376
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>
81377
- >
81378
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
81379
- let params = (paramsOrCallback ||
81380
- {}) as Params$Resource$Projects$Locations$Notebooks$Get;
81381
- let options = (optionsOrCallback || {}) as MethodOptions;
81382
-
81383
- if (typeof paramsOrCallback === 'function') {
81384
- callback = paramsOrCallback;
81385
- params = {} as Params$Resource$Projects$Locations$Notebooks$Get;
81386
- options = {};
81387
- }
81388
-
81389
- if (typeof optionsOrCallback === 'function') {
81390
- callback = optionsOrCallback;
81391
- options = {};
81392
- }
81393
-
81394
- const rootUrl =
81395
- options.rootUrl || 'https://discoveryengine.googleapis.com/';
81396
- const parameters = {
81397
- options: Object.assign(
81398
- {
81399
- url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
81400
- method: 'GET',
81401
- apiVersion: '',
81402
- },
81403
- options
81404
- ),
81405
- params,
81406
- requiredParams: ['name'],
81407
- pathParams: ['name'],
81408
- context: this.context,
81409
- };
81410
- if (callback) {
81411
- createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaNotebook>(
81412
- parameters,
81413
- callback as BodyResponseCallback<unknown>
81414
- );
81415
- } else {
81416
- return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaNotebook>(
81417
- parameters
81418
- );
81419
- }
81420
- }
81421
-
81422
- /**
81423
- * Lists the notebooks ordered by last view time.
81424
- * @example
81425
- * ```js
81426
- * // Before running the sample:
81427
- * // - Enable the API at:
81428
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
81429
- * // - Login into gcloud by running:
81430
- * // ```sh
81431
- * // $ gcloud auth application-default login
81432
- * // ```
81433
- * // - Install the npm module by running:
81434
- * // ```sh
81435
- * // $ npm install googleapis
81436
- * // ```
81437
- *
81438
- * const {google} = require('googleapis');
81439
- * const discoveryengine = google.discoveryengine('v1alpha');
81440
- *
81441
- * async function main() {
81442
- * const auth = new google.auth.GoogleAuth({
81443
- * // Scopes can be specified either as an array or as a single, space-delimited string.
81444
- * scopes: [
81445
- * 'https://www.googleapis.com/auth/cloud-platform',
81446
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
81447
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
81448
- * ],
81449
- * });
81450
- *
81451
- * // Acquire an auth client, and bind it to all future calls
81452
- * const authClient = await auth.getClient();
81453
- * google.options({auth: authClient});
81454
- *
81455
- * // Do the magic
81456
- * const res =
81457
- * await discoveryengine.projects.locations.notebooks.listRecentlyViewed({
81458
- * // Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The maximum allowed value is "500". If this field is negative, will use the default value.
81459
- * pageSize: 'placeholder-value',
81460
- * // Optional. The page token, provide this to retrieve the subsequent page.
81461
- * pageToken: 'placeholder-value',
81462
- * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
81463
- * parent: 'projects/my-project/locations/my-location',
81464
- * });
81465
- * console.log(res.data);
81466
- *
81467
- * // Example response
81468
- * // {
81469
- * // "nextPageToken": "my_nextPageToken",
81470
- * // "notebooks": []
81471
- * // }
81472
- * }
81473
- *
81474
- * main().catch(e => {
81475
- * console.error(e);
81476
- * throw e;
81477
- * });
81478
- *
81479
- * ```
81480
- *
81481
- * @param params - Parameters for request
81482
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
81483
- * @param callback - Optional callback that handles the response.
81484
- * @returns A promise if used with async/await, or void if used with a callback.
81485
- */
81486
- listRecentlyViewed(
81487
- params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
81488
- options: StreamMethodOptions
81489
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
81490
- listRecentlyViewed(
81491
- params?: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
81492
- options?: MethodOptions
81493
- ): Promise<
81494
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
81495
- >;
81496
- listRecentlyViewed(
81497
- params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
81498
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
81499
- callback: BodyResponseCallback<Readable>
81500
- ): void;
81501
- listRecentlyViewed(
81502
- params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
81503
- options:
81504
- | MethodOptions
81505
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>,
81506
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
81507
- ): void;
81508
- listRecentlyViewed(
81509
- params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
81510
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
81511
- ): void;
81512
- listRecentlyViewed(
81513
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
81514
- ): void;
81515
- listRecentlyViewed(
81516
- paramsOrCallback?:
81517
- | Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed
81518
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
81519
- | BodyResponseCallback<Readable>,
81520
- optionsOrCallback?:
81521
- | MethodOptions
81522
- | StreamMethodOptions
81523
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
81524
- | BodyResponseCallback<Readable>,
81525
- callback?:
81526
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
81527
- | BodyResponseCallback<Readable>
81528
- ):
81529
- | void
81530
- | Promise<
81531
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
81532
- >
81533
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
81534
- let params = (paramsOrCallback ||
81535
- {}) as Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed;
81536
- let options = (optionsOrCallback || {}) as MethodOptions;
81537
-
81538
- if (typeof paramsOrCallback === 'function') {
81539
- callback = paramsOrCallback;
81540
- params =
81541
- {} as Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed;
81542
- options = {};
81543
- }
81544
-
81545
- if (typeof optionsOrCallback === 'function') {
81546
- callback = optionsOrCallback;
81547
- options = {};
81548
- }
81549
-
81550
- const rootUrl =
81551
- options.rootUrl || 'https://discoveryengine.googleapis.com/';
81552
- const parameters = {
81553
- options: Object.assign(
81554
- {
81555
- url: (
81556
- rootUrl + '/v1alpha/{+parent}/notebooks:listRecentlyViewed'
81557
- ).replace(/([^:]\/)\/+/g, '$1'),
81558
- method: 'GET',
81559
- apiVersion: '',
81560
- },
81561
- options
81562
- ),
81563
- params,
81564
- requiredParams: ['parent'],
81565
- pathParams: ['parent'],
81566
- context: this.context,
81567
- };
81568
- if (callback) {
81569
- createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>(
81570
- parameters,
81571
- callback as BodyResponseCallback<unknown>
81572
- );
81573
- } else {
81574
- return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>(
81575
- parameters
81576
- );
81577
- }
81578
- }
81579
-
81580
- /**
81581
- * Shares a notebook to other accounts.
81582
- * @example
81583
- * ```js
81584
- * // Before running the sample:
81585
- * // - Enable the API at:
81586
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
81587
- * // - Login into gcloud by running:
81588
- * // ```sh
81589
- * // $ gcloud auth application-default login
81590
- * // ```
81591
- * // - Install the npm module by running:
81592
- * // ```sh
81593
- * // $ npm install googleapis
81594
- * // ```
81595
- *
81596
- * const {google} = require('googleapis');
81597
- * const discoveryengine = google.discoveryengine('v1alpha');
81598
- *
81599
- * async function main() {
81600
- * const auth = new google.auth.GoogleAuth({
81601
- * // Scopes can be specified either as an array or as a single, space-delimited string.
81602
- * scopes: [
81603
- * 'https://www.googleapis.com/auth/cloud-platform',
81604
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
81605
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
81606
- * ],
81607
- * });
81608
- *
81609
- * // Acquire an auth client, and bind it to all future calls
81610
- * const authClient = await auth.getClient();
81611
- * google.options({auth: authClient});
81612
- *
81613
- * // Do the magic
81614
- * const res = await discoveryengine.projects.locations.notebooks.share({
81615
- * // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
81616
- * name: 'projects/my-project/locations/my-location/notebooks/my-notebook',
81617
- *
81618
- * // Request body metadata
81619
- * requestBody: {
81620
- * // request body parameters
81621
- * // {
81622
- * // "accountAndRoles": [],
81623
- * // "notifyViaEmail": false
81624
- * // }
81625
- * },
81626
- * });
81627
- * console.log(res.data);
81628
- *
81629
- * // Example response
81630
- * // {}
81631
- * }
81632
- *
81633
- * main().catch(e => {
81634
- * console.error(e);
81635
- * throw e;
81636
- * });
81637
- *
81638
- * ```
81639
- *
81640
- * @param params - Parameters for request
81641
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
81642
- * @param callback - Optional callback that handles the response.
81643
- * @returns A promise if used with async/await, or void if used with a callback.
81644
- */
81645
- share(
81646
- params: Params$Resource$Projects$Locations$Notebooks$Share,
81647
- options: StreamMethodOptions
81648
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
81649
- share(
81650
- params?: Params$Resource$Projects$Locations$Notebooks$Share,
81651
- options?: MethodOptions
81652
- ): Promise<
81653
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
81654
- >;
81655
- share(
81656
- params: Params$Resource$Projects$Locations$Notebooks$Share,
81657
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
81658
- callback: BodyResponseCallback<Readable>
81659
- ): void;
81660
- share(
81661
- params: Params$Resource$Projects$Locations$Notebooks$Share,
81662
- options:
81663
- | MethodOptions
81664
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>,
81665
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
81666
- ): void;
81667
- share(
81668
- params: Params$Resource$Projects$Locations$Notebooks$Share,
81669
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
81670
- ): void;
81671
- share(
81672
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
81673
- ): void;
81674
- share(
81675
- paramsOrCallback?:
81676
- | Params$Resource$Projects$Locations$Notebooks$Share
81677
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
81678
- | BodyResponseCallback<Readable>,
81679
- optionsOrCallback?:
81680
- | MethodOptions
81681
- | StreamMethodOptions
81682
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
81683
- | BodyResponseCallback<Readable>,
81684
- callback?:
81685
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
81686
- | BodyResponseCallback<Readable>
81687
- ):
81688
- | void
81689
- | Promise<
81690
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
81691
- >
81692
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
81693
- let params = (paramsOrCallback ||
81694
- {}) as Params$Resource$Projects$Locations$Notebooks$Share;
81695
- let options = (optionsOrCallback || {}) as MethodOptions;
81696
-
81697
- if (typeof paramsOrCallback === 'function') {
81698
- callback = paramsOrCallback;
81699
- params = {} as Params$Resource$Projects$Locations$Notebooks$Share;
81700
- options = {};
81701
- }
81702
-
81703
- if (typeof optionsOrCallback === 'function') {
81704
- callback = optionsOrCallback;
81705
- options = {};
81706
- }
81707
-
81708
- const rootUrl =
81709
- options.rootUrl || 'https://discoveryengine.googleapis.com/';
81710
- const parameters = {
81711
- options: Object.assign(
81712
- {
81713
- url: (rootUrl + '/v1alpha/{+name}:share').replace(
81714
- /([^:]\/)\/+/g,
81715
- '$1'
81716
- ),
81717
- method: 'POST',
81718
- apiVersion: '',
81719
- },
81720
- options
81721
- ),
81722
- params,
81723
- requiredParams: ['name'],
81724
- pathParams: ['name'],
81725
- context: this.context,
81726
- };
81727
- if (callback) {
81728
- createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>(
81729
- parameters,
81730
- callback as BodyResponseCallback<unknown>
81731
- );
81732
- } else {
81733
- return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>(
81734
- parameters
81735
- );
81736
- }
81737
- }
81738
- }
81739
-
81740
- export interface Params$Resource$Projects$Locations$Notebooks$Batchdelete extends StandardParameters {
81741
- /**
81742
- * Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
81743
- */
81744
- parent?: string;
81745
-
81746
- /**
81747
- * Request body metadata
81748
- */
81749
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest;
81750
- }
81751
- export interface Params$Resource$Projects$Locations$Notebooks$Create extends StandardParameters {
81752
- /**
81753
- * Required. The parent resource name, such as `projects/{project\}/locations/{location\}`.
81754
- */
81755
- parent?: string;
81756
-
81757
- /**
81758
- * Request body metadata
81759
- */
81760
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaNotebook;
81761
- }
81762
- export interface Params$Resource$Projects$Locations$Notebooks$Get extends StandardParameters {
81763
- /**
81764
- * Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
81765
- */
81766
- name?: string;
81767
- }
81768
- export interface Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed extends StandardParameters {
81769
- /**
81770
- * Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The maximum allowed value is "500". If this field is negative, will use the default value.
81771
- */
81772
- pageSize?: number;
81773
- /**
81774
- * Optional. The page token, provide this to retrieve the subsequent page.
81775
- */
81776
- pageToken?: string;
81777
- /**
81778
- * Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
81779
- */
81780
- parent?: string;
81781
- }
81782
- export interface Params$Resource$Projects$Locations$Notebooks$Share extends StandardParameters {
81783
- /**
81784
- * Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
81785
- */
81786
- name?: string;
81787
-
81788
- /**
81789
- * Request body metadata
81790
- */
81791
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest;
81792
- }
81793
-
81794
- export class Resource$Projects$Locations$Notebooks$Audiooverviews {
81795
- context: APIRequestContext;
81796
- constructor(context: APIRequestContext) {
81797
- this.context = context;
81798
- }
81799
-
81800
- /**
81801
- * Generates a new audio overview.
81802
- * @example
81803
- * ```js
81804
- * // Before running the sample:
81805
- * // - Enable the API at:
81806
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
81807
- * // - Login into gcloud by running:
81808
- * // ```sh
81809
- * // $ gcloud auth application-default login
81810
- * // ```
81811
- * // - Install the npm module by running:
81812
- * // ```sh
81813
- * // $ npm install googleapis
81814
- * // ```
81815
- *
81816
- * const {google} = require('googleapis');
81817
- * const discoveryengine = google.discoveryengine('v1alpha');
81818
- *
81819
- * async function main() {
81820
- * const auth = new google.auth.GoogleAuth({
81821
- * // Scopes can be specified either as an array or as a single, space-delimited string.
81822
- * scopes: [
81823
- * 'https://www.googleapis.com/auth/cloud-platform',
81824
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
81825
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
81826
- * ],
81827
- * });
81828
- *
81829
- * // Acquire an auth client, and bind it to all future calls
81830
- * const authClient = await auth.getClient();
81831
- * google.options({auth: authClient});
81832
- *
81833
- * // Do the magic
81834
- * const res =
81835
- * await discoveryengine.projects.locations.notebooks.audioOverviews.create({
81836
- * // Required. The parent resource where this notebook will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
81837
- * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
81838
- *
81839
- * // Request body metadata
81840
- * requestBody: {
81841
- * // request body parameters
81842
- * // {
81843
- * // "generationOptions": {}
81844
- * // }
81845
- * },
81846
- * });
81847
- * console.log(res.data);
81848
- *
81849
- * // Example response
81850
- * // {
81851
- * // "audioOverview": {}
81852
- * // }
81853
- * }
81854
- *
81855
- * main().catch(e => {
81856
- * console.error(e);
81857
- * throw e;
81858
- * });
81859
- *
81860
- * ```
81861
- *
81862
- * @param params - Parameters for request
81863
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
81864
- * @param callback - Optional callback that handles the response.
81865
- * @returns A promise if used with async/await, or void if used with a callback.
81866
- */
81867
- create(
81868
- params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81869
- options: StreamMethodOptions
81870
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
81871
- create(
81872
- params?: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81873
- options?: MethodOptions
81874
- ): Promise<
81875
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81876
- >;
81877
- create(
81878
- params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81879
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
81880
- callback: BodyResponseCallback<Readable>
81881
- ): void;
81882
- create(
81883
- params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81884
- options:
81885
- | MethodOptions
81886
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>,
81887
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81888
- ): void;
81889
- create(
81890
- params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create,
81891
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81892
- ): void;
81893
- create(
81894
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81895
- ): void;
81896
- create(
81897
- paramsOrCallback?:
81898
- | Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create
81899
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81900
- | BodyResponseCallback<Readable>,
81901
- optionsOrCallback?:
81902
- | MethodOptions
81903
- | StreamMethodOptions
81904
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81905
- | BodyResponseCallback<Readable>,
81906
- callback?:
81907
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81908
- | BodyResponseCallback<Readable>
81909
- ):
81910
- | void
81911
- | Promise<
81912
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>
81913
- >
81914
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
81915
- let params = (paramsOrCallback ||
81916
- {}) as Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create;
81917
- let options = (optionsOrCallback || {}) as MethodOptions;
81918
-
81919
- if (typeof paramsOrCallback === 'function') {
81920
- callback = paramsOrCallback;
81921
- params =
81922
- {} as Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create;
81923
- options = {};
81924
- }
81925
-
81926
- if (typeof optionsOrCallback === 'function') {
81927
- callback = optionsOrCallback;
81928
- options = {};
81929
- }
81930
-
81931
- const rootUrl =
81932
- options.rootUrl || 'https://discoveryengine.googleapis.com/';
81933
- const parameters = {
81934
- options: Object.assign(
81935
- {
81936
- url: (rootUrl + '/v1alpha/{+parent}/audioOverviews').replace(
81937
- /([^:]\/)\/+/g,
81938
- '$1'
81939
- ),
81940
- method: 'POST',
81941
- apiVersion: '',
81942
- },
81943
- options
81944
- ),
81945
- params,
81946
- requiredParams: ['parent'],
81947
- pathParams: ['parent'],
81948
- context: this.context,
81949
- };
81950
- if (callback) {
81951
- createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>(
81952
- parameters,
81953
- callback as BodyResponseCallback<unknown>
81954
- );
81955
- } else {
81956
- return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>(
81957
- parameters
81958
- );
81959
- }
81960
- }
81961
-
81962
- /**
81963
- * Deletes an audio overview.
82013
+ * Deletes an audio overview.
81964
82014
  * @example
81965
82015
  * ```js
81966
82016
  * // Before running the sample:
@@ -82117,510 +82167,6 @@ export namespace discoveryengine_v1alpha {
82117
82167
  name?: string;
82118
82168
  }
82119
82169
 
82120
- export class Resource$Projects$Locations$Notebooks$Sources {
82121
- context: APIRequestContext;
82122
- constructor(context: APIRequestContext) {
82123
- this.context = context;
82124
- }
82125
-
82126
- /**
82127
- * Creates a list of Sources.
82128
- * @example
82129
- * ```js
82130
- * // Before running the sample:
82131
- * // - Enable the API at:
82132
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
82133
- * // - Login into gcloud by running:
82134
- * // ```sh
82135
- * // $ gcloud auth application-default login
82136
- * // ```
82137
- * // - Install the npm module by running:
82138
- * // ```sh
82139
- * // $ npm install googleapis
82140
- * // ```
82141
- *
82142
- * const {google} = require('googleapis');
82143
- * const discoveryengine = google.discoveryengine('v1alpha');
82144
- *
82145
- * async function main() {
82146
- * const auth = new google.auth.GoogleAuth({
82147
- * // Scopes can be specified either as an array or as a single, space-delimited string.
82148
- * scopes: [
82149
- * 'https://www.googleapis.com/auth/cloud-platform',
82150
- * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
82151
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
82152
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
82153
- * ],
82154
- * });
82155
- *
82156
- * // Acquire an auth client, and bind it to all future calls
82157
- * const authClient = await auth.getClient();
82158
- * google.options({auth: authClient});
82159
- *
82160
- * // Do the magic
82161
- * const res =
82162
- * await discoveryengine.projects.locations.notebooks.sources.batchCreate({
82163
- * // Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
82164
- * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
82165
- *
82166
- * // Request body metadata
82167
- * requestBody: {
82168
- * // request body parameters
82169
- * // {
82170
- * // "userContents": []
82171
- * // }
82172
- * },
82173
- * });
82174
- * console.log(res.data);
82175
- *
82176
- * // Example response
82177
- * // {
82178
- * // "sources": []
82179
- * // }
82180
- * }
82181
- *
82182
- * main().catch(e => {
82183
- * console.error(e);
82184
- * throw e;
82185
- * });
82186
- *
82187
- * ```
82188
- *
82189
- * @param params - Parameters for request
82190
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
82191
- * @param callback - Optional callback that handles the response.
82192
- * @returns A promise if used with async/await, or void if used with a callback.
82193
- */
82194
- batchCreate(
82195
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
82196
- options: StreamMethodOptions
82197
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
82198
- batchCreate(
82199
- params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
82200
- options?: MethodOptions
82201
- ): Promise<
82202
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
82203
- >;
82204
- batchCreate(
82205
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
82206
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
82207
- callback: BodyResponseCallback<Readable>
82208
- ): void;
82209
- batchCreate(
82210
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
82211
- options:
82212
- | MethodOptions
82213
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>,
82214
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
82215
- ): void;
82216
- batchCreate(
82217
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
82218
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
82219
- ): void;
82220
- batchCreate(
82221
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
82222
- ): void;
82223
- batchCreate(
82224
- paramsOrCallback?:
82225
- | Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate
82226
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
82227
- | BodyResponseCallback<Readable>,
82228
- optionsOrCallback?:
82229
- | MethodOptions
82230
- | StreamMethodOptions
82231
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
82232
- | BodyResponseCallback<Readable>,
82233
- callback?:
82234
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
82235
- | BodyResponseCallback<Readable>
82236
- ):
82237
- | void
82238
- | Promise<
82239
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
82240
- >
82241
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
82242
- let params = (paramsOrCallback ||
82243
- {}) as Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate;
82244
- let options = (optionsOrCallback || {}) as MethodOptions;
82245
-
82246
- if (typeof paramsOrCallback === 'function') {
82247
- callback = paramsOrCallback;
82248
- params =
82249
- {} as Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate;
82250
- options = {};
82251
- }
82252
-
82253
- if (typeof optionsOrCallback === 'function') {
82254
- callback = optionsOrCallback;
82255
- options = {};
82256
- }
82257
-
82258
- const rootUrl =
82259
- options.rootUrl || 'https://discoveryengine.googleapis.com/';
82260
- const parameters = {
82261
- options: Object.assign(
82262
- {
82263
- url: (rootUrl + '/v1alpha/{+parent}/sources:batchCreate').replace(
82264
- /([^:]\/)\/+/g,
82265
- '$1'
82266
- ),
82267
- method: 'POST',
82268
- apiVersion: '',
82269
- },
82270
- options
82271
- ),
82272
- params,
82273
- requiredParams: ['parent'],
82274
- pathParams: ['parent'],
82275
- context: this.context,
82276
- };
82277
- if (callback) {
82278
- createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>(
82279
- parameters,
82280
- callback as BodyResponseCallback<unknown>
82281
- );
82282
- } else {
82283
- return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>(
82284
- parameters
82285
- );
82286
- }
82287
- }
82288
-
82289
- /**
82290
- * Deletes multiple sources
82291
- * @example
82292
- * ```js
82293
- * // Before running the sample:
82294
- * // - Enable the API at:
82295
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
82296
- * // - Login into gcloud by running:
82297
- * // ```sh
82298
- * // $ gcloud auth application-default login
82299
- * // ```
82300
- * // - Install the npm module by running:
82301
- * // ```sh
82302
- * // $ npm install googleapis
82303
- * // ```
82304
- *
82305
- * const {google} = require('googleapis');
82306
- * const discoveryengine = google.discoveryengine('v1alpha');
82307
- *
82308
- * async function main() {
82309
- * const auth = new google.auth.GoogleAuth({
82310
- * // Scopes can be specified either as an array or as a single, space-delimited string.
82311
- * scopes: [
82312
- * 'https://www.googleapis.com/auth/cloud-platform',
82313
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
82314
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
82315
- * ],
82316
- * });
82317
- *
82318
- * // Acquire an auth client, and bind it to all future calls
82319
- * const authClient = await auth.getClient();
82320
- * google.options({auth: authClient});
82321
- *
82322
- * // Do the magic
82323
- * const res =
82324
- * await discoveryengine.projects.locations.notebooks.sources.batchDelete({
82325
- * // Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
82326
- * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
82327
- *
82328
- * // Request body metadata
82329
- * requestBody: {
82330
- * // request body parameters
82331
- * // {
82332
- * // "names": []
82333
- * // }
82334
- * },
82335
- * });
82336
- * console.log(res.data);
82337
- *
82338
- * // Example response
82339
- * // {}
82340
- * }
82341
- *
82342
- * main().catch(e => {
82343
- * console.error(e);
82344
- * throw e;
82345
- * });
82346
- *
82347
- * ```
82348
- *
82349
- * @param params - Parameters for request
82350
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
82351
- * @param callback - Optional callback that handles the response.
82352
- * @returns A promise if used with async/await, or void if used with a callback.
82353
- */
82354
- batchDelete(
82355
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
82356
- options: StreamMethodOptions
82357
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
82358
- batchDelete(
82359
- params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
82360
- options?: MethodOptions
82361
- ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
82362
- batchDelete(
82363
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
82364
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
82365
- callback: BodyResponseCallback<Readable>
82366
- ): void;
82367
- batchDelete(
82368
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
82369
- options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
82370
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
82371
- ): void;
82372
- batchDelete(
82373
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
82374
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
82375
- ): void;
82376
- batchDelete(
82377
- callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
82378
- ): void;
82379
- batchDelete(
82380
- paramsOrCallback?:
82381
- | Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete
82382
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
82383
- | BodyResponseCallback<Readable>,
82384
- optionsOrCallback?:
82385
- | MethodOptions
82386
- | StreamMethodOptions
82387
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
82388
- | BodyResponseCallback<Readable>,
82389
- callback?:
82390
- | BodyResponseCallback<Schema$GoogleProtobufEmpty>
82391
- | BodyResponseCallback<Readable>
82392
- ):
82393
- | void
82394
- | Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
82395
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
82396
- let params = (paramsOrCallback ||
82397
- {}) as Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete;
82398
- let options = (optionsOrCallback || {}) as MethodOptions;
82399
-
82400
- if (typeof paramsOrCallback === 'function') {
82401
- callback = paramsOrCallback;
82402
- params =
82403
- {} as Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete;
82404
- options = {};
82405
- }
82406
-
82407
- if (typeof optionsOrCallback === 'function') {
82408
- callback = optionsOrCallback;
82409
- options = {};
82410
- }
82411
-
82412
- const rootUrl =
82413
- options.rootUrl || 'https://discoveryengine.googleapis.com/';
82414
- const parameters = {
82415
- options: Object.assign(
82416
- {
82417
- url: (rootUrl + '/v1alpha/{+parent}/sources:batchDelete').replace(
82418
- /([^:]\/)\/+/g,
82419
- '$1'
82420
- ),
82421
- method: 'POST',
82422
- apiVersion: '',
82423
- },
82424
- options
82425
- ),
82426
- params,
82427
- requiredParams: ['parent'],
82428
- pathParams: ['parent'],
82429
- context: this.context,
82430
- };
82431
- if (callback) {
82432
- createAPIRequest<Schema$GoogleProtobufEmpty>(
82433
- parameters,
82434
- callback as BodyResponseCallback<unknown>
82435
- );
82436
- } else {
82437
- return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
82438
- }
82439
- }
82440
-
82441
- /**
82442
- * Gets a Source.
82443
- * @example
82444
- * ```js
82445
- * // Before running the sample:
82446
- * // - Enable the API at:
82447
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
82448
- * // - Login into gcloud by running:
82449
- * // ```sh
82450
- * // $ gcloud auth application-default login
82451
- * // ```
82452
- * // - Install the npm module by running:
82453
- * // ```sh
82454
- * // $ npm install googleapis
82455
- * // ```
82456
- *
82457
- * const {google} = require('googleapis');
82458
- * const discoveryengine = google.discoveryengine('v1alpha');
82459
- *
82460
- * async function main() {
82461
- * const auth = new google.auth.GoogleAuth({
82462
- * // Scopes can be specified either as an array or as a single, space-delimited string.
82463
- * scopes: [
82464
- * 'https://www.googleapis.com/auth/cloud-platform',
82465
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
82466
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
82467
- * ],
82468
- * });
82469
- *
82470
- * // Acquire an auth client, and bind it to all future calls
82471
- * const authClient = await auth.getClient();
82472
- * google.options({auth: authClient});
82473
- *
82474
- * // Do the magic
82475
- * const res = await discoveryengine.projects.locations.notebooks.sources.get({
82476
- * // Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
82477
- * name: 'projects/my-project/locations/my-location/notebooks/my-notebook/sources/my-source',
82478
- * });
82479
- * console.log(res.data);
82480
- *
82481
- * // Example response
82482
- * // {
82483
- * // "metadata": {},
82484
- * // "name": "my_name",
82485
- * // "settings": {},
82486
- * // "sourceId": {},
82487
- * // "title": "my_title"
82488
- * // }
82489
- * }
82490
- *
82491
- * main().catch(e => {
82492
- * console.error(e);
82493
- * throw e;
82494
- * });
82495
- *
82496
- * ```
82497
- *
82498
- * @param params - Parameters for request
82499
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
82500
- * @param callback - Optional callback that handles the response.
82501
- * @returns A promise if used with async/await, or void if used with a callback.
82502
- */
82503
- get(
82504
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
82505
- options: StreamMethodOptions
82506
- ): Promise<GaxiosResponseWithHTTP2<Readable>>;
82507
- get(
82508
- params?: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
82509
- options?: MethodOptions
82510
- ): Promise<
82511
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaSource>
82512
- >;
82513
- get(
82514
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
82515
- options: StreamMethodOptions | BodyResponseCallback<Readable>,
82516
- callback: BodyResponseCallback<Readable>
82517
- ): void;
82518
- get(
82519
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
82520
- options:
82521
- | MethodOptions
82522
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>,
82523
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
82524
- ): void;
82525
- get(
82526
- params: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
82527
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
82528
- ): void;
82529
- get(
82530
- callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
82531
- ): void;
82532
- get(
82533
- paramsOrCallback?:
82534
- | Params$Resource$Projects$Locations$Notebooks$Sources$Get
82535
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
82536
- | BodyResponseCallback<Readable>,
82537
- optionsOrCallback?:
82538
- | MethodOptions
82539
- | StreamMethodOptions
82540
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
82541
- | BodyResponseCallback<Readable>,
82542
- callback?:
82543
- | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
82544
- | BodyResponseCallback<Readable>
82545
- ):
82546
- | void
82547
- | Promise<
82548
- GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaSource>
82549
- >
82550
- | Promise<GaxiosResponseWithHTTP2<Readable>> {
82551
- let params = (paramsOrCallback ||
82552
- {}) as Params$Resource$Projects$Locations$Notebooks$Sources$Get;
82553
- let options = (optionsOrCallback || {}) as MethodOptions;
82554
-
82555
- if (typeof paramsOrCallback === 'function') {
82556
- callback = paramsOrCallback;
82557
- params = {} as Params$Resource$Projects$Locations$Notebooks$Sources$Get;
82558
- options = {};
82559
- }
82560
-
82561
- if (typeof optionsOrCallback === 'function') {
82562
- callback = optionsOrCallback;
82563
- options = {};
82564
- }
82565
-
82566
- const rootUrl =
82567
- options.rootUrl || 'https://discoveryengine.googleapis.com/';
82568
- const parameters = {
82569
- options: Object.assign(
82570
- {
82571
- url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
82572
- method: 'GET',
82573
- apiVersion: '',
82574
- },
82575
- options
82576
- ),
82577
- params,
82578
- requiredParams: ['name'],
82579
- pathParams: ['name'],
82580
- context: this.context,
82581
- };
82582
- if (callback) {
82583
- createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaSource>(
82584
- parameters,
82585
- callback as BodyResponseCallback<unknown>
82586
- );
82587
- } else {
82588
- return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaSource>(
82589
- parameters
82590
- );
82591
- }
82592
- }
82593
- }
82594
-
82595
- export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate extends StandardParameters {
82596
- /**
82597
- * Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
82598
- */
82599
- parent?: string;
82600
-
82601
- /**
82602
- * Request body metadata
82603
- */
82604
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest;
82605
- }
82606
- export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete extends StandardParameters {
82607
- /**
82608
- * Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
82609
- */
82610
- parent?: string;
82611
-
82612
- /**
82613
- * Request body metadata
82614
- */
82615
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest;
82616
- }
82617
- export interface Params$Resource$Projects$Locations$Notebooks$Sources$Get extends StandardParameters {
82618
- /**
82619
- * Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
82620
- */
82621
- name?: string;
82622
- }
82623
-
82624
82170
  export class Resource$Projects$Locations$Operations {
82625
82171
  context: APIRequestContext;
82626
82172
  constructor(context: APIRequestContext) {