@googleapis/discoveryengine 33.0.0 → 37.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/CHANGELOG.md +108 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +718 -10
- package/build/v1.js +198 -0
- package/build/v1.js.map +1 -1
- package/build/v1alpha.d.ts +167 -1191
- package/build/v1alpha.js +0 -268
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +489 -3
- package/build/v1beta.js +132 -0
- package/build/v1beta.js.map +1 -1
- package/index.ts +1 -0
- package/package.json +3 -3
- package/v1.ts +1271 -74
- package/v1alpha.ts +167 -1874
- package/v1beta.ts +815 -3
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
|
*/
|
|
@@ -5735,7 +5743,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
5735
5743
|
*/
|
|
5736
5744
|
displayName?: string | null;
|
|
5737
5745
|
/**
|
|
5738
|
-
* 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`
|
|
5739
5747
|
*/
|
|
5740
5748
|
features?: {[key: string]: string} | null;
|
|
5741
5749
|
/**
|
|
@@ -5778,6 +5786,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
5778
5786
|
* Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
|
|
5779
5787
|
*/
|
|
5780
5788
|
searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig;
|
|
5789
|
+
/**
|
|
5790
|
+
* Optional. Non-empty default. Session config for the engine.
|
|
5791
|
+
*/
|
|
5792
|
+
sessionConfig?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig;
|
|
5781
5793
|
/**
|
|
5782
5794
|
* Additional config specs for a `similar-items` engine.
|
|
5783
5795
|
*/
|
|
@@ -10799,6 +10811,28 @@ export namespace discoveryengine_v1alpha {
|
|
|
10799
10811
|
*/
|
|
10800
10812
|
userPseudoId?: string | null;
|
|
10801
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
|
+
}
|
|
10802
10836
|
/**
|
|
10803
10837
|
* Represents a turn, including a query from the user and a answer from service.
|
|
10804
10838
|
*/
|
|
@@ -12069,6 +12103,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
12069
12103
|
* Customer provided configurations.
|
|
12070
12104
|
*/
|
|
12071
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;
|
|
12072
12110
|
/**
|
|
12073
12111
|
* Customer type.
|
|
12074
12112
|
*/
|
|
@@ -12280,7 +12318,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
12280
12318
|
*/
|
|
12281
12319
|
enableVisualContentSummary?: boolean | null;
|
|
12282
12320
|
/**
|
|
12283
|
-
* 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`
|
|
12284
12322
|
*/
|
|
12285
12323
|
features?: {[key: string]: string} | null;
|
|
12286
12324
|
/**
|
|
@@ -12398,6 +12436,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
12398
12436
|
* Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).
|
|
12399
12437
|
*/
|
|
12400
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;
|
|
12401
12443
|
/**
|
|
12402
12444
|
* Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.
|
|
12403
12445
|
*/
|
|
@@ -12584,6 +12626,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
12584
12626
|
* Optional. List of banned phrases.
|
|
12585
12627
|
*/
|
|
12586
12628
|
bannedPhrases?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase[];
|
|
12629
|
+
/**
|
|
12630
|
+
* Optional. Data protection policy to be used for sanitizing file uploads.
|
|
12631
|
+
*/
|
|
12632
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
|
|
12587
12633
|
/**
|
|
12588
12634
|
* Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
|
|
12589
12635
|
*/
|
|
@@ -13171,6 +13217,24 @@ export namespace discoveryengine_v1alpha {
|
|
|
13171
13217
|
*/
|
|
13172
13218
|
updateTime?: string | null;
|
|
13173
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
|
+
}
|
|
13174
13238
|
/**
|
|
13175
13239
|
* DataStore captures global settings and configs at the DataStore level.
|
|
13176
13240
|
*/
|
|
@@ -13207,6 +13271,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
13207
13271
|
* Output only. Timestamp the DataStore was created at.
|
|
13208
13272
|
*/
|
|
13209
13273
|
createTime?: string | null;
|
|
13274
|
+
/**
|
|
13275
|
+
* Optional. Specifies the data protection policy for the data store.
|
|
13276
|
+
*/
|
|
13277
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy;
|
|
13210
13278
|
/**
|
|
13211
13279
|
* Output only. The id of the default Schema associated to this data store.
|
|
13212
13280
|
*/
|
|
@@ -13712,7 +13780,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
13712
13780
|
*/
|
|
13713
13781
|
displayName?: string | null;
|
|
13714
13782
|
/**
|
|
13715
|
-
* 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`
|
|
13716
13784
|
*/
|
|
13717
13785
|
features?: {[key: string]: string} | null;
|
|
13718
13786
|
/**
|
|
@@ -13751,6 +13819,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
13751
13819
|
* Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
|
|
13752
13820
|
*/
|
|
13753
13821
|
searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig;
|
|
13822
|
+
/**
|
|
13823
|
+
* Optional. Non-empty default. Session config for the engine.
|
|
13824
|
+
*/
|
|
13825
|
+
sessionConfig?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfig;
|
|
13754
13826
|
/**
|
|
13755
13827
|
* Required. The solutions of the engine.
|
|
13756
13828
|
*/
|
|
@@ -15447,6 +15519,28 @@ export namespace discoveryengine_v1alpha {
|
|
|
15447
15519
|
*/
|
|
15448
15520
|
mode?: string | null;
|
|
15449
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
|
+
}
|
|
15450
15544
|
/**
|
|
15451
15545
|
* Metadata related to the progress of the CrawlRateManagementService.SetDedicatedCrawlRate operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
15452
15546
|
*/
|
|
@@ -16144,6 +16238,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
16144
16238
|
* Output only. Timestamp the DataConnector was created at.
|
|
16145
16239
|
*/
|
|
16146
16240
|
createTime?: string | null;
|
|
16241
|
+
/**
|
|
16242
|
+
* Optional. Specifies the data protection policy for the connector.
|
|
16243
|
+
*/
|
|
16244
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
|
|
16147
16245
|
/**
|
|
16148
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).
|
|
16149
16247
|
*/
|
|
@@ -16407,6 +16505,24 @@ export namespace discoveryengine_v1alpha {
|
|
|
16407
16505
|
*/
|
|
16408
16506
|
startingSchema?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
16409
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
|
+
}
|
|
16410
16526
|
/**
|
|
16411
16527
|
* DataStore captures global settings and configs at the DataStore level.
|
|
16412
16528
|
*/
|
|
@@ -16443,6 +16559,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
16443
16559
|
* Output only. Timestamp the DataStore was created at.
|
|
16444
16560
|
*/
|
|
16445
16561
|
createTime?: string | null;
|
|
16562
|
+
/**
|
|
16563
|
+
* Optional. Specifies the data protection policy for the data store.
|
|
16564
|
+
*/
|
|
16565
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
|
|
16446
16566
|
/**
|
|
16447
16567
|
* Output only. The id of the default Schema associated to this data store.
|
|
16448
16568
|
*/
|
|
@@ -17004,7 +17124,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
17004
17124
|
*/
|
|
17005
17125
|
displayName?: string | null;
|
|
17006
17126
|
/**
|
|
17007
|
-
* 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`
|
|
17008
17128
|
*/
|
|
17009
17129
|
features?: {[key: string]: string} | null;
|
|
17010
17130
|
/**
|
|
@@ -17043,6 +17163,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
17043
17163
|
* Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
|
|
17044
17164
|
*/
|
|
17045
17165
|
searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig;
|
|
17166
|
+
/**
|
|
17167
|
+
* Optional. Non-empty default. Session config for the engine.
|
|
17168
|
+
*/
|
|
17169
|
+
sessionConfig?: Schema$GoogleCloudDiscoveryengineV1SessionConfig;
|
|
17046
17170
|
/**
|
|
17047
17171
|
* Required. The solutions of the engine.
|
|
17048
17172
|
*/
|
|
@@ -18135,6 +18259,28 @@ export namespace discoveryengine_v1alpha {
|
|
|
18135
18259
|
*/
|
|
18136
18260
|
demotionEventType?: string | null;
|
|
18137
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
|
+
}
|
|
18138
18284
|
/**
|
|
18139
18285
|
* Metadata for DataConnectorService.SetUpDataConnector method.
|
|
18140
18286
|
*/
|
|
@@ -18414,32 +18560,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
18414
18560
|
*/
|
|
18415
18561
|
type?: string | null;
|
|
18416
18562
|
}
|
|
18417
|
-
/**
|
|
18418
|
-
* Account and role information.
|
|
18419
|
-
*/
|
|
18420
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaAccountAndRole {
|
|
18421
|
-
/**
|
|
18422
|
-
* Required. The email address associated with the account.
|
|
18423
|
-
*/
|
|
18424
|
-
email?: string | null;
|
|
18425
|
-
/**
|
|
18426
|
-
* Required. The role in the notebook.
|
|
18427
|
-
*/
|
|
18428
|
-
role?: string | null;
|
|
18429
|
-
}
|
|
18430
|
-
/**
|
|
18431
|
-
* Metadata about an agentspace source.
|
|
18432
|
-
*/
|
|
18433
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata {
|
|
18434
|
-
/**
|
|
18435
|
-
* Output only. The full document name in Agentspace.
|
|
18436
|
-
*/
|
|
18437
|
-
documentName?: string | null;
|
|
18438
|
-
/**
|
|
18439
|
-
* Output only. The title of the document.
|
|
18440
|
-
*/
|
|
18441
|
-
documentTitle?: string | null;
|
|
18442
|
-
}
|
|
18443
18563
|
/**
|
|
18444
18564
|
* An audio overview of a notebook. This is a summary of the notebook in audio format.
|
|
18445
18565
|
*/
|
|
@@ -18486,51 +18606,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
18486
18606
|
*/
|
|
18487
18607
|
sourceIds?: Schema$GoogleCloudNotebooklmV1alphaSourceId[];
|
|
18488
18608
|
}
|
|
18489
|
-
/**
|
|
18490
|
-
* Request for SourceService.BatchCreateSources method.
|
|
18491
|
-
*/
|
|
18492
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest {
|
|
18493
|
-
/**
|
|
18494
|
-
* Required. The UserContents to be uploaded.
|
|
18495
|
-
*/
|
|
18496
|
-
userContents?: Schema$GoogleCloudNotebooklmV1alphaUserContent[];
|
|
18497
|
-
}
|
|
18498
|
-
/**
|
|
18499
|
-
* Response for SourceService.BatchCreateSources method.
|
|
18500
|
-
*/
|
|
18501
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse {
|
|
18502
|
-
/**
|
|
18503
|
-
* The Sources.
|
|
18504
|
-
*/
|
|
18505
|
-
sources?: Schema$GoogleCloudNotebooklmV1alphaSource[];
|
|
18506
|
-
}
|
|
18507
|
-
/**
|
|
18508
|
-
* Request for NotebookService.BatchDeleteNotebooks method.
|
|
18509
|
-
*/
|
|
18510
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest {
|
|
18511
|
-
/**
|
|
18512
|
-
* Required. Full resource names of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
|
|
18513
|
-
*/
|
|
18514
|
-
names?: string[] | null;
|
|
18515
|
-
}
|
|
18516
|
-
/**
|
|
18517
|
-
* Request for BatchDeleteSourcesRequest method.
|
|
18518
|
-
*/
|
|
18519
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest {
|
|
18520
|
-
/**
|
|
18521
|
-
* Required. Names of sources to be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
|
|
18522
|
-
*/
|
|
18523
|
-
names?: string[] | null;
|
|
18524
|
-
}
|
|
18525
|
-
/**
|
|
18526
|
-
* Customer-managed encryption configuration for Notebooks.
|
|
18527
|
-
*/
|
|
18528
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaCmekConfig {
|
|
18529
|
-
/**
|
|
18530
|
-
* Required. KMS key resource name which will be used to encrypt resources `projects/{project\}/locations/{location\}/keyRings/{keyRing\}/cryptoKeys/{keyId\}`.
|
|
18531
|
-
*/
|
|
18532
|
-
kmsKey?: string | null;
|
|
18533
|
-
}
|
|
18534
18609
|
/**
|
|
18535
18610
|
* Request for AudioOverviewService.CreateAudioOverview method.
|
|
18536
18611
|
*/
|
|
@@ -18549,294 +18624,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
18549
18624
|
*/
|
|
18550
18625
|
audioOverview?: Schema$GoogleCloudNotebooklmV1alphaAudioOverview;
|
|
18551
18626
|
}
|
|
18552
|
-
/**
|
|
18553
|
-
* Failure reason containing details about why a source failed to ingest.
|
|
18554
|
-
*/
|
|
18555
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReason {
|
|
18556
|
-
/**
|
|
18557
|
-
* An audio file transcription specific error.
|
|
18558
|
-
*/
|
|
18559
|
-
audioTranscriptionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError;
|
|
18560
|
-
/**
|
|
18561
|
-
* Error if the user tries to add a source from a blocked domain.
|
|
18562
|
-
*/
|
|
18563
|
-
domainBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked;
|
|
18564
|
-
/**
|
|
18565
|
-
* A google drive specific error.
|
|
18566
|
-
*/
|
|
18567
|
-
googleDriveError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError;
|
|
18568
|
-
/**
|
|
18569
|
-
* Indicates an error occurred while ingesting the source.
|
|
18570
|
-
*/
|
|
18571
|
-
ingestionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError;
|
|
18572
|
-
/**
|
|
18573
|
-
* Indicates that the source MIME type is blocked.
|
|
18574
|
-
*/
|
|
18575
|
-
mimeTypeBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked;
|
|
18576
|
-
/**
|
|
18577
|
-
* Indicates that the source is paywalled and cannot be ingested.
|
|
18578
|
-
*/
|
|
18579
|
-
paywallError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError;
|
|
18580
|
-
/**
|
|
18581
|
-
* Indicates that the policy check failed.
|
|
18582
|
-
*/
|
|
18583
|
-
policyCheckFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed;
|
|
18584
|
-
/**
|
|
18585
|
-
* Indicates that the source is empty.
|
|
18586
|
-
*/
|
|
18587
|
-
sourceEmpty?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty;
|
|
18588
|
-
/**
|
|
18589
|
-
* Error if the user tries to update beyond their limits.
|
|
18590
|
-
*/
|
|
18591
|
-
sourceLimitExceeded?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded;
|
|
18592
|
-
/**
|
|
18593
|
-
* Indicates source word count exceeded the user's limit.
|
|
18594
|
-
*/
|
|
18595
|
-
sourceTooLong?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong;
|
|
18596
|
-
/**
|
|
18597
|
-
* Indicates that the source is unreachable.
|
|
18598
|
-
*/
|
|
18599
|
-
sourceUnreachable?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable;
|
|
18600
|
-
/**
|
|
18601
|
-
* Indicates an unknown error occurred.
|
|
18602
|
-
*/
|
|
18603
|
-
unknown?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown;
|
|
18604
|
-
/**
|
|
18605
|
-
* Indicates an error occurred while uploading the source.
|
|
18606
|
-
*/
|
|
18607
|
-
uploadError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError;
|
|
18608
|
-
/**
|
|
18609
|
-
* A youtube specific error.
|
|
18610
|
-
*/
|
|
18611
|
-
youtubeError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError;
|
|
18612
|
-
}
|
|
18613
|
-
/**
|
|
18614
|
-
* An audio file transcription specific error.
|
|
18615
|
-
*/
|
|
18616
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError {
|
|
18617
|
-
/**
|
|
18618
|
-
* Could not detect language of the file (it may not be speech).
|
|
18619
|
-
*/
|
|
18620
|
-
languageDetectionFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed;
|
|
18621
|
-
/**
|
|
18622
|
-
* No audio was detected in the input file (it may have been a video).
|
|
18623
|
-
*/
|
|
18624
|
-
noAudioDetected?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected;
|
|
18625
|
-
}
|
|
18626
|
-
/**
|
|
18627
|
-
* Could not detect language of the file (it may not be speech).
|
|
18628
|
-
*/
|
|
18629
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed {}
|
|
18630
|
-
/**
|
|
18631
|
-
* No audio was detected in the input file.
|
|
18632
|
-
*/
|
|
18633
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected {}
|
|
18634
|
-
/**
|
|
18635
|
-
* Error to indicate that the source was removed because the domain was blocked.
|
|
18636
|
-
*/
|
|
18637
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked {}
|
|
18638
|
-
/**
|
|
18639
|
-
* A google drive specific error.
|
|
18640
|
-
*/
|
|
18641
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError {
|
|
18642
|
-
/**
|
|
18643
|
-
* The user was prevented from downloading the file.
|
|
18644
|
-
*/
|
|
18645
|
-
downloadPrevented?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented;
|
|
18646
|
-
}
|
|
18647
|
-
/**
|
|
18648
|
-
* The user was prevented from downloading the file.
|
|
18649
|
-
*/
|
|
18650
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented {}
|
|
18651
|
-
/**
|
|
18652
|
-
* Indicates an error occurred while ingesting the source.
|
|
18653
|
-
*/
|
|
18654
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError {}
|
|
18655
|
-
/**
|
|
18656
|
-
* Indicates that the source MIME type is blocked.
|
|
18657
|
-
*/
|
|
18658
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked {}
|
|
18659
|
-
/**
|
|
18660
|
-
* Indicates that the source is paywalled and cannot be ingested.
|
|
18661
|
-
*/
|
|
18662
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError {}
|
|
18663
|
-
/**
|
|
18664
|
-
* Indicates that the policy check failed.
|
|
18665
|
-
*/
|
|
18666
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed {}
|
|
18667
|
-
/**
|
|
18668
|
-
* Indicates that the source is empty.
|
|
18669
|
-
*/
|
|
18670
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty {}
|
|
18671
|
-
/**
|
|
18672
|
-
* Indicates that the user does not have space for this source.
|
|
18673
|
-
*/
|
|
18674
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded {}
|
|
18675
|
-
/**
|
|
18676
|
-
* Indicates source word count exceeded the user's limit.
|
|
18677
|
-
*/
|
|
18678
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong {
|
|
18679
|
-
/**
|
|
18680
|
-
* The number of words in the source.
|
|
18681
|
-
*/
|
|
18682
|
-
wordCount?: number | null;
|
|
18683
|
-
/**
|
|
18684
|
-
* The word count limit for the current user at the time of the upload.
|
|
18685
|
-
*/
|
|
18686
|
-
wordLimit?: number | null;
|
|
18687
|
-
}
|
|
18688
|
-
/**
|
|
18689
|
-
* Indicates that the source is unreachable. This is primarily used for sources that are added via URL.
|
|
18690
|
-
*/
|
|
18691
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable {
|
|
18692
|
-
/**
|
|
18693
|
-
* Describes why the source is unreachable.
|
|
18694
|
-
*/
|
|
18695
|
-
errorDetails?: string | null;
|
|
18696
|
-
}
|
|
18697
|
-
/**
|
|
18698
|
-
* Indicates an unknown error occurred.
|
|
18699
|
-
*/
|
|
18700
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown {}
|
|
18701
|
-
/**
|
|
18702
|
-
* Indicates an error occurred while uploading the source.
|
|
18703
|
-
*/
|
|
18704
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError {}
|
|
18705
|
-
/**
|
|
18706
|
-
* A youtube specific error.
|
|
18707
|
-
*/
|
|
18708
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError {
|
|
18709
|
-
/**
|
|
18710
|
-
* Error to indicate that the source was removed because the video was deleted.
|
|
18711
|
-
*/
|
|
18712
|
-
videoDeleted?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted;
|
|
18713
|
-
}
|
|
18714
|
-
/**
|
|
18715
|
-
* Error to indicate that the source was removed because the video was deleted.
|
|
18716
|
-
*/
|
|
18717
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted {}
|
|
18718
|
-
/**
|
|
18719
|
-
* Metadata about a google doc source.
|
|
18720
|
-
*/
|
|
18721
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata {
|
|
18722
|
-
/**
|
|
18723
|
-
* Output only. The document id of the google doc.
|
|
18724
|
-
*/
|
|
18725
|
-
documentId?: string | null;
|
|
18726
|
-
/**
|
|
18727
|
-
* Output only. Revision id for the doc.
|
|
18728
|
-
*/
|
|
18729
|
-
revisionId?: string | null;
|
|
18730
|
-
}
|
|
18731
|
-
/**
|
|
18732
|
-
* Response for NotebookService.ListRecentlyViewedNotebooks method.
|
|
18733
|
-
*/
|
|
18734
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse {
|
|
18735
|
-
/**
|
|
18736
|
-
* The page token, provide this to retrieve the subsequent page.
|
|
18737
|
-
*/
|
|
18738
|
-
nextPageToken?: string | null;
|
|
18739
|
-
/**
|
|
18740
|
-
* The list of recently viewed notebooks.
|
|
18741
|
-
*/
|
|
18742
|
-
notebooks?: Schema$GoogleCloudNotebooklmV1alphaNotebook[];
|
|
18743
|
-
}
|
|
18744
|
-
/**
|
|
18745
|
-
* Notebook is a resource where users can store their content (as sources) and interacts with the content.
|
|
18746
|
-
*/
|
|
18747
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaNotebook {
|
|
18748
|
-
/**
|
|
18749
|
-
* Output only. CMEK-related information for the Notebook.
|
|
18750
|
-
*/
|
|
18751
|
-
cmekConfig?: Schema$GoogleCloudNotebooklmV1alphaCmekConfig;
|
|
18752
|
-
/**
|
|
18753
|
-
* Output only. The emoji of the notebook.
|
|
18754
|
-
*/
|
|
18755
|
-
emoji?: string | null;
|
|
18756
|
-
/**
|
|
18757
|
-
* Output only. The metadata of the notebook.
|
|
18758
|
-
*/
|
|
18759
|
-
metadata?: Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata;
|
|
18760
|
-
/**
|
|
18761
|
-
* Identifier. The identifier of the notebook. Format: `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. This field must be a UTF-8 encoded string.
|
|
18762
|
-
*/
|
|
18763
|
-
name?: string | null;
|
|
18764
|
-
/**
|
|
18765
|
-
* Output only. Notebook id, which is the last segment of the notebook's resource name.
|
|
18766
|
-
*/
|
|
18767
|
-
notebookId?: string | null;
|
|
18768
|
-
/**
|
|
18769
|
-
* Output only. List of sources in the notebook. This is an output only field.
|
|
18770
|
-
*/
|
|
18771
|
-
sources?: Schema$GoogleCloudNotebooklmV1alphaSource[];
|
|
18772
|
-
/**
|
|
18773
|
-
* Optional. The title of the notebook.
|
|
18774
|
-
*/
|
|
18775
|
-
title?: string | null;
|
|
18776
|
-
}
|
|
18777
|
-
/**
|
|
18778
|
-
* Metadata for a notebook.
|
|
18779
|
-
*/
|
|
18780
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata {
|
|
18781
|
-
/**
|
|
18782
|
-
* The time at which this project was created.
|
|
18783
|
-
*/
|
|
18784
|
-
createTime?: string | null;
|
|
18785
|
-
/**
|
|
18786
|
-
* True if the project is shareable.
|
|
18787
|
-
*/
|
|
18788
|
-
isShareable?: boolean | null;
|
|
18789
|
-
/**
|
|
18790
|
-
* True if this project is currently shared with other people, false otherwise.
|
|
18791
|
-
*/
|
|
18792
|
-
isShared?: boolean | null;
|
|
18793
|
-
/**
|
|
18794
|
-
* A timestamp indicating the time that the current in session user has last viewed the project.
|
|
18795
|
-
*/
|
|
18796
|
-
lastViewed?: string | null;
|
|
18797
|
-
}
|
|
18798
|
-
/**
|
|
18799
|
-
* Request for NotebookService.ShareNotebook method.
|
|
18800
|
-
*/
|
|
18801
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest {
|
|
18802
|
-
/**
|
|
18803
|
-
* Required. The list of accounts and roles to share the notebook with.
|
|
18804
|
-
*/
|
|
18805
|
-
accountAndRoles?: Schema$GoogleCloudNotebooklmV1alphaAccountAndRole[];
|
|
18806
|
-
/**
|
|
18807
|
-
* Required. Whether to notify the shared users via email.
|
|
18808
|
-
*/
|
|
18809
|
-
notifyViaEmail?: boolean | null;
|
|
18810
|
-
}
|
|
18811
|
-
/**
|
|
18812
|
-
* Response for NotebookService.ShareNotebook method.
|
|
18813
|
-
*/
|
|
18814
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse {}
|
|
18815
|
-
/**
|
|
18816
|
-
* Source represents a single source of content.
|
|
18817
|
-
*/
|
|
18818
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaSource {
|
|
18819
|
-
/**
|
|
18820
|
-
* Output only. Metadata about the source.
|
|
18821
|
-
*/
|
|
18822
|
-
metadata?: Schema$GoogleCloudNotebooklmV1alphaSourceMetadata;
|
|
18823
|
-
/**
|
|
18824
|
-
* 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.
|
|
18825
|
-
*/
|
|
18826
|
-
name?: string | null;
|
|
18827
|
-
/**
|
|
18828
|
-
* Output only. Status of the source, and any failure reasons.
|
|
18829
|
-
*/
|
|
18830
|
-
settings?: Schema$GoogleCloudNotebooklmV1alphaSourceSettings;
|
|
18831
|
-
/**
|
|
18832
|
-
* Optional. Output only. Source id, which is the last segment of the source's resource name.
|
|
18833
|
-
*/
|
|
18834
|
-
sourceId?: Schema$GoogleCloudNotebooklmV1alphaSourceId;
|
|
18835
|
-
/**
|
|
18836
|
-
* Optional. Title of the source.
|
|
18837
|
-
*/
|
|
18838
|
-
title?: string | null;
|
|
18839
|
-
}
|
|
18840
18627
|
/**
|
|
18841
18628
|
* SourceId is the last segment of the source's resource name.
|
|
18842
18629
|
*/
|
|
@@ -18846,155 +18633,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
18846
18633
|
*/
|
|
18847
18634
|
id?: string | null;
|
|
18848
18635
|
}
|
|
18849
|
-
/**
|
|
18850
|
-
* Represents the metadata of a source and some additional information.
|
|
18851
|
-
*/
|
|
18852
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaSourceMetadata {
|
|
18853
|
-
/**
|
|
18854
|
-
* Metadata for an agentspace source.
|
|
18855
|
-
*/
|
|
18856
|
-
agentspaceMetadata?: Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata;
|
|
18857
|
-
/**
|
|
18858
|
-
* Metadata for a google doc source.
|
|
18859
|
-
*/
|
|
18860
|
-
googleDocsMetadata?: Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata;
|
|
18861
|
-
/**
|
|
18862
|
-
* The timestamp the source was added.
|
|
18863
|
-
*/
|
|
18864
|
-
sourceAddedTimestamp?: string | null;
|
|
18865
|
-
/**
|
|
18866
|
-
* The number of tokens in the source.
|
|
18867
|
-
*/
|
|
18868
|
-
tokenCount?: number | null;
|
|
18869
|
-
/**
|
|
18870
|
-
* The word count of the source.
|
|
18871
|
-
*/
|
|
18872
|
-
wordCount?: number | null;
|
|
18873
|
-
/**
|
|
18874
|
-
* Metadata for a youtube video source.
|
|
18875
|
-
*/
|
|
18876
|
-
youtubeMetadata?: Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata;
|
|
18877
|
-
}
|
|
18878
|
-
/**
|
|
18879
|
-
* Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request).
|
|
18880
|
-
*/
|
|
18881
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaSourceSettings {
|
|
18882
|
-
/**
|
|
18883
|
-
* Failure reason containing details about why a source failed to ingest.
|
|
18884
|
-
*/
|
|
18885
|
-
failureReason?: Schema$GoogleCloudNotebooklmV1alphaFailureReason;
|
|
18886
|
-
/**
|
|
18887
|
-
* Status of the source.
|
|
18888
|
-
*/
|
|
18889
|
-
status?: string | null;
|
|
18890
|
-
}
|
|
18891
|
-
/**
|
|
18892
|
-
* The "Content" messages refer to data the user wants to upload.
|
|
18893
|
-
*/
|
|
18894
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaUserContent {
|
|
18895
|
-
/**
|
|
18896
|
-
* Agentspace content uploaded as source.
|
|
18897
|
-
*/
|
|
18898
|
-
agentspaceContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent;
|
|
18899
|
-
/**
|
|
18900
|
-
* The content from Google Drive.
|
|
18901
|
-
*/
|
|
18902
|
-
googleDriveContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent;
|
|
18903
|
-
/**
|
|
18904
|
-
* The text content uploaded as source.
|
|
18905
|
-
*/
|
|
18906
|
-
textContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent;
|
|
18907
|
-
/**
|
|
18908
|
-
* The video content uploaded as source.
|
|
18909
|
-
*/
|
|
18910
|
-
videoContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent;
|
|
18911
|
-
/**
|
|
18912
|
-
* The web content uploaded as source.
|
|
18913
|
-
*/
|
|
18914
|
-
webContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent;
|
|
18915
|
-
}
|
|
18916
|
-
/**
|
|
18917
|
-
* Agentspace content uploaded as source.
|
|
18918
|
-
*/
|
|
18919
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent {
|
|
18920
|
-
/**
|
|
18921
|
-
* Optional. The full resource name of the Agentspace document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document_id\}`.
|
|
18922
|
-
*/
|
|
18923
|
-
documentName?: string | null;
|
|
18924
|
-
/**
|
|
18925
|
-
* Optional. Engine to verify the permission of the document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`.
|
|
18926
|
-
*/
|
|
18927
|
-
engineName?: string | null;
|
|
18928
|
-
/**
|
|
18929
|
-
* Optional. Resource name of the idea forge instance. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}/ideaForgeInstances/{instance\}`
|
|
18930
|
-
*/
|
|
18931
|
-
ideaforgeIdeaName?: string | null;
|
|
18932
|
-
}
|
|
18933
|
-
/**
|
|
18934
|
-
* The content from Google Drive.
|
|
18935
|
-
*/
|
|
18936
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent {
|
|
18937
|
-
/**
|
|
18938
|
-
* The document id of the selected document.
|
|
18939
|
-
*/
|
|
18940
|
-
documentId?: string | null;
|
|
18941
|
-
/**
|
|
18942
|
-
* 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.
|
|
18943
|
-
*/
|
|
18944
|
-
mimeType?: string | null;
|
|
18945
|
-
/**
|
|
18946
|
-
* The name to be displayed for the source.
|
|
18947
|
-
*/
|
|
18948
|
-
sourceName?: string | null;
|
|
18949
|
-
}
|
|
18950
|
-
/**
|
|
18951
|
-
* The text content uploaded as source.
|
|
18952
|
-
*/
|
|
18953
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent {
|
|
18954
|
-
/**
|
|
18955
|
-
* The name to be displayed for the source.
|
|
18956
|
-
*/
|
|
18957
|
-
content?: string | null;
|
|
18958
|
-
/**
|
|
18959
|
-
* The display name of the text source.
|
|
18960
|
-
*/
|
|
18961
|
-
sourceName?: string | null;
|
|
18962
|
-
}
|
|
18963
|
-
/**
|
|
18964
|
-
* Video content uploaded as source.
|
|
18965
|
-
*/
|
|
18966
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent {
|
|
18967
|
-
/**
|
|
18968
|
-
* The youtube url of the video content.
|
|
18969
|
-
*/
|
|
18970
|
-
youtubeUrl?: string | null;
|
|
18971
|
-
}
|
|
18972
|
-
/**
|
|
18973
|
-
* The web content uploaded as source.
|
|
18974
|
-
*/
|
|
18975
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent {
|
|
18976
|
-
/**
|
|
18977
|
-
* The name to be displayed for the source.
|
|
18978
|
-
*/
|
|
18979
|
-
sourceName?: string | null;
|
|
18980
|
-
/**
|
|
18981
|
-
* If URL is supplied, will fetch the webpage in the backend.
|
|
18982
|
-
*/
|
|
18983
|
-
url?: string | null;
|
|
18984
|
-
}
|
|
18985
|
-
/**
|
|
18986
|
-
* Metadata about a youtube video source.
|
|
18987
|
-
*/
|
|
18988
|
-
export interface Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata {
|
|
18989
|
-
/**
|
|
18990
|
-
* Output only. The channel name of the youtube video.
|
|
18991
|
-
*/
|
|
18992
|
-
channelName?: string | null;
|
|
18993
|
-
/**
|
|
18994
|
-
* Output only. The id of the youtube video.
|
|
18995
|
-
*/
|
|
18996
|
-
videoId?: string | null;
|
|
18997
|
-
}
|
|
18998
18636
|
/**
|
|
18999
18637
|
* Associates `members`, or principals, with a `role`.
|
|
19000
18638
|
*/
|
|
@@ -46262,7 +45900,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
46262
45900
|
* 'placeholder-value',
|
|
46263
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).
|
|
46264
45902
|
* languageCode: 'placeholder-value',
|
|
46265
|
-
* // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
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.
|
|
46266
45904
|
* modelInfoView: 'placeholder-value',
|
|
46267
45905
|
* // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
|
|
46268
45906
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
|
|
@@ -46670,7 +46308,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
46670
46308
|
*/
|
|
46671
46309
|
languageCode?: string;
|
|
46672
46310
|
/**
|
|
46673
|
-
* Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
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.
|
|
46674
46312
|
*/
|
|
46675
46313
|
modelInfoView?: string;
|
|
46676
46314
|
/**
|
|
@@ -46815,6 +46453,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
46815
46453
|
* // "procurementContactEmails": [],
|
|
46816
46454
|
* // "recommendationMetadata": {},
|
|
46817
46455
|
* // "searchEngineConfig": {},
|
|
46456
|
+
* // "sessionConfig": {},
|
|
46818
46457
|
* // "similarDocumentsConfig": {},
|
|
46819
46458
|
* // "solutionType": "my_solutionType",
|
|
46820
46459
|
* // "updateTime": "my_updateTime"
|
|
@@ -47147,6 +46786,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
47147
46786
|
* // "procurementContactEmails": [],
|
|
47148
46787
|
* // "recommendationMetadata": {},
|
|
47149
46788
|
* // "searchEngineConfig": {},
|
|
46789
|
+
* // "sessionConfig": {},
|
|
47150
46790
|
* // "similarDocumentsConfig": {},
|
|
47151
46791
|
* // "solutionType": "my_solutionType",
|
|
47152
46792
|
* // "updateTime": "my_updateTime"
|
|
@@ -47959,6 +47599,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
47959
47599
|
* // "procurementContactEmails": [],
|
|
47960
47600
|
* // "recommendationMetadata": {},
|
|
47961
47601
|
* // "searchEngineConfig": {},
|
|
47602
|
+
* // "sessionConfig": {},
|
|
47962
47603
|
* // "similarDocumentsConfig": {},
|
|
47963
47604
|
* // "solutionType": "my_solutionType",
|
|
47964
47605
|
* // "updateTime": "my_updateTime"
|
|
@@ -47993,6 +47634,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
47993
47634
|
* // "procurementContactEmails": [],
|
|
47994
47635
|
* // "recommendationMetadata": {},
|
|
47995
47636
|
* // "searchEngineConfig": {},
|
|
47637
|
+
* // "sessionConfig": {},
|
|
47996
47638
|
* // "similarDocumentsConfig": {},
|
|
47997
47639
|
* // "solutionType": "my_solutionType",
|
|
47998
47640
|
* // "updateTime": "my_updateTime"
|
|
@@ -48176,6 +47818,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
48176
47818
|
* // "procurementContactEmails": [],
|
|
48177
47819
|
* // "recommendationMetadata": {},
|
|
48178
47820
|
* // "searchEngineConfig": {},
|
|
47821
|
+
* // "sessionConfig": {},
|
|
48179
47822
|
* // "similarDocumentsConfig": {},
|
|
48180
47823
|
* // "solutionType": "my_solutionType",
|
|
48181
47824
|
* // "updateTime": "my_updateTime"
|
|
@@ -48362,6 +48005,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
48362
48005
|
* // "procurementContactEmails": [],
|
|
48363
48006
|
* // "recommendationMetadata": {},
|
|
48364
48007
|
* // "searchEngineConfig": {},
|
|
48008
|
+
* // "sessionConfig": {},
|
|
48365
48009
|
* // "similarDocumentsConfig": {},
|
|
48366
48010
|
* // "solutionType": "my_solutionType",
|
|
48367
48011
|
* // "updateTime": "my_updateTime"
|
|
@@ -49707,6 +49351,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
49707
49351
|
* // "displayName": "my_displayName",
|
|
49708
49352
|
* // "enabledTools": {},
|
|
49709
49353
|
* // "generationConfig": {},
|
|
49354
|
+
* // "knowledgeCatalogEnabled": false,
|
|
49710
49355
|
* // "name": "my_name",
|
|
49711
49356
|
* // "updateTime": "my_updateTime",
|
|
49712
49357
|
* // "webGroundingType": "my_webGroundingType"
|
|
@@ -49726,6 +49371,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
49726
49371
|
* // "displayName": "my_displayName",
|
|
49727
49372
|
* // "enabledTools": {},
|
|
49728
49373
|
* // "generationConfig": {},
|
|
49374
|
+
* // "knowledgeCatalogEnabled": false,
|
|
49729
49375
|
* // "name": "my_name",
|
|
49730
49376
|
* // "updateTime": "my_updateTime",
|
|
49731
49377
|
* // "webGroundingType": "my_webGroundingType"
|
|
@@ -50035,6 +49681,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
50035
49681
|
* // "displayName": "my_displayName",
|
|
50036
49682
|
* // "enabledTools": {},
|
|
50037
49683
|
* // "generationConfig": {},
|
|
49684
|
+
* // "knowledgeCatalogEnabled": false,
|
|
50038
49685
|
* // "name": "my_name",
|
|
50039
49686
|
* // "updateTime": "my_updateTime",
|
|
50040
49687
|
* // "webGroundingType": "my_webGroundingType"
|
|
@@ -50363,6 +50010,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
50363
50010
|
* // "displayName": "my_displayName",
|
|
50364
50011
|
* // "enabledTools": {},
|
|
50365
50012
|
* // "generationConfig": {},
|
|
50013
|
+
* // "knowledgeCatalogEnabled": false,
|
|
50366
50014
|
* // "name": "my_name",
|
|
50367
50015
|
* // "updateTime": "my_updateTime",
|
|
50368
50016
|
* // "webGroundingType": "my_webGroundingType"
|
|
@@ -50382,6 +50030,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
50382
50030
|
* // "displayName": "my_displayName",
|
|
50383
50031
|
* // "enabledTools": {},
|
|
50384
50032
|
* // "generationConfig": {},
|
|
50033
|
+
* // "knowledgeCatalogEnabled": false,
|
|
50385
50034
|
* // "name": "my_name",
|
|
50386
50035
|
* // "updateTime": "my_updateTime",
|
|
50387
50036
|
* // "webGroundingType": "my_webGroundingType"
|
|
@@ -61276,7 +60925,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
61276
60925
|
* 'placeholder-value',
|
|
61277
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).
|
|
61278
60927
|
* languageCode: 'placeholder-value',
|
|
61279
|
-
* // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
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.
|
|
61280
60929
|
* modelInfoView: 'placeholder-value',
|
|
61281
60930
|
* // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
|
|
61282
60931
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/widgetConfigs/my-widgetConfig',
|
|
@@ -61684,7 +61333,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
61684
61333
|
*/
|
|
61685
61334
|
languageCode?: string;
|
|
61686
61335
|
/**
|
|
61687
|
-
* Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
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.
|
|
61688
61337
|
*/
|
|
61689
61338
|
modelInfoView?: string;
|
|
61690
61339
|
/**
|
|
@@ -78383,7 +78032,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
78383
78032
|
* 'placeholder-value',
|
|
78384
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).
|
|
78385
78034
|
* languageCode: 'placeholder-value',
|
|
78386
|
-
* // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
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.
|
|
78387
78036
|
* modelInfoView: 'placeholder-value',
|
|
78388
78037
|
* // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
|
|
78389
78038
|
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
|
|
@@ -78788,7 +78437,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
78788
78437
|
*/
|
|
78789
78438
|
languageCode?: string;
|
|
78790
78439
|
/**
|
|
78791
|
-
* Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
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.
|
|
78792
78441
|
*/
|
|
78793
78442
|
modelInfoView?: string;
|
|
78794
78443
|
/**
|
|
@@ -82185,865 +81834,13 @@ export namespace discoveryengine_v1alpha {
|
|
|
82185
81834
|
export class Resource$Projects$Locations$Notebooks {
|
|
82186
81835
|
context: APIRequestContext;
|
|
82187
81836
|
audioOverviews: Resource$Projects$Locations$Notebooks$Audiooverviews;
|
|
82188
|
-
sources: Resource$Projects$Locations$Notebooks$Sources;
|
|
82189
81837
|
constructor(context: APIRequestContext) {
|
|
82190
81838
|
this.context = context;
|
|
82191
81839
|
this.audioOverviews =
|
|
82192
81840
|
new Resource$Projects$Locations$Notebooks$Audiooverviews(this.context);
|
|
82193
|
-
this.sources = new Resource$Projects$Locations$Notebooks$Sources(
|
|
82194
|
-
this.context
|
|
82195
|
-
);
|
|
82196
|
-
}
|
|
82197
|
-
|
|
82198
|
-
/**
|
|
82199
|
-
* Batch deletes Notebooks.
|
|
82200
|
-
* @example
|
|
82201
|
-
* ```js
|
|
82202
|
-
* // Before running the sample:
|
|
82203
|
-
* // - Enable the API at:
|
|
82204
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
82205
|
-
* // - Login into gcloud by running:
|
|
82206
|
-
* // ```sh
|
|
82207
|
-
* // $ gcloud auth application-default login
|
|
82208
|
-
* // ```
|
|
82209
|
-
* // - Install the npm module by running:
|
|
82210
|
-
* // ```sh
|
|
82211
|
-
* // $ npm install googleapis
|
|
82212
|
-
* // ```
|
|
82213
|
-
*
|
|
82214
|
-
* const {google} = require('googleapis');
|
|
82215
|
-
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
82216
|
-
*
|
|
82217
|
-
* async function main() {
|
|
82218
|
-
* const auth = new google.auth.GoogleAuth({
|
|
82219
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
82220
|
-
* scopes: [
|
|
82221
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
82222
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
82223
|
-
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
82224
|
-
* ],
|
|
82225
|
-
* });
|
|
82226
|
-
*
|
|
82227
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
82228
|
-
* const authClient = await auth.getClient();
|
|
82229
|
-
* google.options({auth: authClient});
|
|
82230
|
-
*
|
|
82231
|
-
* // Do the magic
|
|
82232
|
-
* const res = await discoveryengine.projects.locations.notebooks.batchDelete({
|
|
82233
|
-
* // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
|
|
82234
|
-
* parent: 'projects/my-project/locations/my-location',
|
|
82235
|
-
*
|
|
82236
|
-
* // Request body metadata
|
|
82237
|
-
* requestBody: {
|
|
82238
|
-
* // request body parameters
|
|
82239
|
-
* // {
|
|
82240
|
-
* // "names": []
|
|
82241
|
-
* // }
|
|
82242
|
-
* },
|
|
82243
|
-
* });
|
|
82244
|
-
* console.log(res.data);
|
|
82245
|
-
*
|
|
82246
|
-
* // Example response
|
|
82247
|
-
* // {}
|
|
82248
|
-
* }
|
|
82249
|
-
*
|
|
82250
|
-
* main().catch(e => {
|
|
82251
|
-
* console.error(e);
|
|
82252
|
-
* throw e;
|
|
82253
|
-
* });
|
|
82254
|
-
*
|
|
82255
|
-
* ```
|
|
82256
|
-
*
|
|
82257
|
-
* @param params - Parameters for request
|
|
82258
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
82259
|
-
* @param callback - Optional callback that handles the response.
|
|
82260
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
82261
|
-
*/
|
|
82262
|
-
batchDelete(
|
|
82263
|
-
params: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
|
|
82264
|
-
options: StreamMethodOptions
|
|
82265
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
82266
|
-
batchDelete(
|
|
82267
|
-
params?: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
|
|
82268
|
-
options?: MethodOptions
|
|
82269
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
82270
|
-
batchDelete(
|
|
82271
|
-
params: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
|
|
82272
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
82273
|
-
callback: BodyResponseCallback<Readable>
|
|
82274
|
-
): void;
|
|
82275
|
-
batchDelete(
|
|
82276
|
-
params: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
|
|
82277
|
-
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
82278
|
-
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
82279
|
-
): void;
|
|
82280
|
-
batchDelete(
|
|
82281
|
-
params: Params$Resource$Projects$Locations$Notebooks$Batchdelete,
|
|
82282
|
-
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
82283
|
-
): void;
|
|
82284
|
-
batchDelete(
|
|
82285
|
-
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
82286
|
-
): void;
|
|
82287
|
-
batchDelete(
|
|
82288
|
-
paramsOrCallback?:
|
|
82289
|
-
| Params$Resource$Projects$Locations$Notebooks$Batchdelete
|
|
82290
|
-
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
82291
|
-
| BodyResponseCallback<Readable>,
|
|
82292
|
-
optionsOrCallback?:
|
|
82293
|
-
| MethodOptions
|
|
82294
|
-
| StreamMethodOptions
|
|
82295
|
-
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
82296
|
-
| BodyResponseCallback<Readable>,
|
|
82297
|
-
callback?:
|
|
82298
|
-
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
82299
|
-
| BodyResponseCallback<Readable>
|
|
82300
|
-
):
|
|
82301
|
-
| void
|
|
82302
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
82303
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
82304
|
-
let params = (paramsOrCallback ||
|
|
82305
|
-
{}) as Params$Resource$Projects$Locations$Notebooks$Batchdelete;
|
|
82306
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
82307
|
-
|
|
82308
|
-
if (typeof paramsOrCallback === 'function') {
|
|
82309
|
-
callback = paramsOrCallback;
|
|
82310
|
-
params = {} as Params$Resource$Projects$Locations$Notebooks$Batchdelete;
|
|
82311
|
-
options = {};
|
|
82312
|
-
}
|
|
82313
|
-
|
|
82314
|
-
if (typeof optionsOrCallback === 'function') {
|
|
82315
|
-
callback = optionsOrCallback;
|
|
82316
|
-
options = {};
|
|
82317
|
-
}
|
|
82318
|
-
|
|
82319
|
-
const rootUrl =
|
|
82320
|
-
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
82321
|
-
const parameters = {
|
|
82322
|
-
options: Object.assign(
|
|
82323
|
-
{
|
|
82324
|
-
url: (rootUrl + '/v1alpha/{+parent}/notebooks:batchDelete').replace(
|
|
82325
|
-
/([^:]\/)\/+/g,
|
|
82326
|
-
'$1'
|
|
82327
|
-
),
|
|
82328
|
-
method: 'POST',
|
|
82329
|
-
apiVersion: '',
|
|
82330
|
-
},
|
|
82331
|
-
options
|
|
82332
|
-
),
|
|
82333
|
-
params,
|
|
82334
|
-
requiredParams: ['parent'],
|
|
82335
|
-
pathParams: ['parent'],
|
|
82336
|
-
context: this.context,
|
|
82337
|
-
};
|
|
82338
|
-
if (callback) {
|
|
82339
|
-
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
82340
|
-
parameters,
|
|
82341
|
-
callback as BodyResponseCallback<unknown>
|
|
82342
|
-
);
|
|
82343
|
-
} else {
|
|
82344
|
-
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
82345
|
-
}
|
|
82346
|
-
}
|
|
82347
|
-
|
|
82348
|
-
/**
|
|
82349
|
-
* Creates a notebook.
|
|
82350
|
-
* @example
|
|
82351
|
-
* ```js
|
|
82352
|
-
* // Before running the sample:
|
|
82353
|
-
* // - Enable the API at:
|
|
82354
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
82355
|
-
* // - Login into gcloud by running:
|
|
82356
|
-
* // ```sh
|
|
82357
|
-
* // $ gcloud auth application-default login
|
|
82358
|
-
* // ```
|
|
82359
|
-
* // - Install the npm module by running:
|
|
82360
|
-
* // ```sh
|
|
82361
|
-
* // $ npm install googleapis
|
|
82362
|
-
* // ```
|
|
82363
|
-
*
|
|
82364
|
-
* const {google} = require('googleapis');
|
|
82365
|
-
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
82366
|
-
*
|
|
82367
|
-
* async function main() {
|
|
82368
|
-
* const auth = new google.auth.GoogleAuth({
|
|
82369
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
82370
|
-
* scopes: [
|
|
82371
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
82372
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
82373
|
-
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
82374
|
-
* ],
|
|
82375
|
-
* });
|
|
82376
|
-
*
|
|
82377
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
82378
|
-
* const authClient = await auth.getClient();
|
|
82379
|
-
* google.options({auth: authClient});
|
|
82380
|
-
*
|
|
82381
|
-
* // Do the magic
|
|
82382
|
-
* const res = await discoveryengine.projects.locations.notebooks.create({
|
|
82383
|
-
* // Required. The parent resource name, such as `projects/{project\}/locations/{location\}`.
|
|
82384
|
-
* parent: 'projects/my-project/locations/my-location',
|
|
82385
|
-
*
|
|
82386
|
-
* // Request body metadata
|
|
82387
|
-
* requestBody: {
|
|
82388
|
-
* // request body parameters
|
|
82389
|
-
* // {
|
|
82390
|
-
* // "cmekConfig": {},
|
|
82391
|
-
* // "emoji": "my_emoji",
|
|
82392
|
-
* // "metadata": {},
|
|
82393
|
-
* // "name": "my_name",
|
|
82394
|
-
* // "notebookId": "my_notebookId",
|
|
82395
|
-
* // "sources": [],
|
|
82396
|
-
* // "title": "my_title"
|
|
82397
|
-
* // }
|
|
82398
|
-
* },
|
|
82399
|
-
* });
|
|
82400
|
-
* console.log(res.data);
|
|
82401
|
-
*
|
|
82402
|
-
* // Example response
|
|
82403
|
-
* // {
|
|
82404
|
-
* // "cmekConfig": {},
|
|
82405
|
-
* // "emoji": "my_emoji",
|
|
82406
|
-
* // "metadata": {},
|
|
82407
|
-
* // "name": "my_name",
|
|
82408
|
-
* // "notebookId": "my_notebookId",
|
|
82409
|
-
* // "sources": [],
|
|
82410
|
-
* // "title": "my_title"
|
|
82411
|
-
* // }
|
|
82412
|
-
* }
|
|
82413
|
-
*
|
|
82414
|
-
* main().catch(e => {
|
|
82415
|
-
* console.error(e);
|
|
82416
|
-
* throw e;
|
|
82417
|
-
* });
|
|
82418
|
-
*
|
|
82419
|
-
* ```
|
|
82420
|
-
*
|
|
82421
|
-
* @param params - Parameters for request
|
|
82422
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
82423
|
-
* @param callback - Optional callback that handles the response.
|
|
82424
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
82425
|
-
*/
|
|
82426
|
-
create(
|
|
82427
|
-
params: Params$Resource$Projects$Locations$Notebooks$Create,
|
|
82428
|
-
options: StreamMethodOptions
|
|
82429
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
82430
|
-
create(
|
|
82431
|
-
params?: Params$Resource$Projects$Locations$Notebooks$Create,
|
|
82432
|
-
options?: MethodOptions
|
|
82433
|
-
): Promise<
|
|
82434
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82435
|
-
>;
|
|
82436
|
-
create(
|
|
82437
|
-
params: Params$Resource$Projects$Locations$Notebooks$Create,
|
|
82438
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
82439
|
-
callback: BodyResponseCallback<Readable>
|
|
82440
|
-
): void;
|
|
82441
|
-
create(
|
|
82442
|
-
params: Params$Resource$Projects$Locations$Notebooks$Create,
|
|
82443
|
-
options:
|
|
82444
|
-
| MethodOptions
|
|
82445
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>,
|
|
82446
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82447
|
-
): void;
|
|
82448
|
-
create(
|
|
82449
|
-
params: Params$Resource$Projects$Locations$Notebooks$Create,
|
|
82450
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82451
|
-
): void;
|
|
82452
|
-
create(
|
|
82453
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82454
|
-
): void;
|
|
82455
|
-
create(
|
|
82456
|
-
paramsOrCallback?:
|
|
82457
|
-
| Params$Resource$Projects$Locations$Notebooks$Create
|
|
82458
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82459
|
-
| BodyResponseCallback<Readable>,
|
|
82460
|
-
optionsOrCallback?:
|
|
82461
|
-
| MethodOptions
|
|
82462
|
-
| StreamMethodOptions
|
|
82463
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82464
|
-
| BodyResponseCallback<Readable>,
|
|
82465
|
-
callback?:
|
|
82466
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82467
|
-
| BodyResponseCallback<Readable>
|
|
82468
|
-
):
|
|
82469
|
-
| void
|
|
82470
|
-
| Promise<
|
|
82471
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82472
|
-
>
|
|
82473
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
82474
|
-
let params = (paramsOrCallback ||
|
|
82475
|
-
{}) as Params$Resource$Projects$Locations$Notebooks$Create;
|
|
82476
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
82477
|
-
|
|
82478
|
-
if (typeof paramsOrCallback === 'function') {
|
|
82479
|
-
callback = paramsOrCallback;
|
|
82480
|
-
params = {} as Params$Resource$Projects$Locations$Notebooks$Create;
|
|
82481
|
-
options = {};
|
|
82482
|
-
}
|
|
82483
|
-
|
|
82484
|
-
if (typeof optionsOrCallback === 'function') {
|
|
82485
|
-
callback = optionsOrCallback;
|
|
82486
|
-
options = {};
|
|
82487
|
-
}
|
|
82488
|
-
|
|
82489
|
-
const rootUrl =
|
|
82490
|
-
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
82491
|
-
const parameters = {
|
|
82492
|
-
options: Object.assign(
|
|
82493
|
-
{
|
|
82494
|
-
url: (rootUrl + '/v1alpha/{+parent}/notebooks').replace(
|
|
82495
|
-
/([^:]\/)\/+/g,
|
|
82496
|
-
'$1'
|
|
82497
|
-
),
|
|
82498
|
-
method: 'POST',
|
|
82499
|
-
apiVersion: '',
|
|
82500
|
-
},
|
|
82501
|
-
options
|
|
82502
|
-
),
|
|
82503
|
-
params,
|
|
82504
|
-
requiredParams: ['parent'],
|
|
82505
|
-
pathParams: ['parent'],
|
|
82506
|
-
context: this.context,
|
|
82507
|
-
};
|
|
82508
|
-
if (callback) {
|
|
82509
|
-
createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaNotebook>(
|
|
82510
|
-
parameters,
|
|
82511
|
-
callback as BodyResponseCallback<unknown>
|
|
82512
|
-
);
|
|
82513
|
-
} else {
|
|
82514
|
-
return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaNotebook>(
|
|
82515
|
-
parameters
|
|
82516
|
-
);
|
|
82517
|
-
}
|
|
82518
|
-
}
|
|
82519
|
-
|
|
82520
|
-
/**
|
|
82521
|
-
* Gets a notebook.
|
|
82522
|
-
* @example
|
|
82523
|
-
* ```js
|
|
82524
|
-
* // Before running the sample:
|
|
82525
|
-
* // - Enable the API at:
|
|
82526
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
82527
|
-
* // - Login into gcloud by running:
|
|
82528
|
-
* // ```sh
|
|
82529
|
-
* // $ gcloud auth application-default login
|
|
82530
|
-
* // ```
|
|
82531
|
-
* // - Install the npm module by running:
|
|
82532
|
-
* // ```sh
|
|
82533
|
-
* // $ npm install googleapis
|
|
82534
|
-
* // ```
|
|
82535
|
-
*
|
|
82536
|
-
* const {google} = require('googleapis');
|
|
82537
|
-
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
82538
|
-
*
|
|
82539
|
-
* async function main() {
|
|
82540
|
-
* const auth = new google.auth.GoogleAuth({
|
|
82541
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
82542
|
-
* scopes: [
|
|
82543
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
82544
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
82545
|
-
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
82546
|
-
* ],
|
|
82547
|
-
* });
|
|
82548
|
-
*
|
|
82549
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
82550
|
-
* const authClient = await auth.getClient();
|
|
82551
|
-
* google.options({auth: authClient});
|
|
82552
|
-
*
|
|
82553
|
-
* // Do the magic
|
|
82554
|
-
* const res = await discoveryengine.projects.locations.notebooks.get({
|
|
82555
|
-
* // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
|
|
82556
|
-
* name: 'projects/my-project/locations/my-location/notebooks/my-notebook',
|
|
82557
|
-
* });
|
|
82558
|
-
* console.log(res.data);
|
|
82559
|
-
*
|
|
82560
|
-
* // Example response
|
|
82561
|
-
* // {
|
|
82562
|
-
* // "cmekConfig": {},
|
|
82563
|
-
* // "emoji": "my_emoji",
|
|
82564
|
-
* // "metadata": {},
|
|
82565
|
-
* // "name": "my_name",
|
|
82566
|
-
* // "notebookId": "my_notebookId",
|
|
82567
|
-
* // "sources": [],
|
|
82568
|
-
* // "title": "my_title"
|
|
82569
|
-
* // }
|
|
82570
|
-
* }
|
|
82571
|
-
*
|
|
82572
|
-
* main().catch(e => {
|
|
82573
|
-
* console.error(e);
|
|
82574
|
-
* throw e;
|
|
82575
|
-
* });
|
|
82576
|
-
*
|
|
82577
|
-
* ```
|
|
82578
|
-
*
|
|
82579
|
-
* @param params - Parameters for request
|
|
82580
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
82581
|
-
* @param callback - Optional callback that handles the response.
|
|
82582
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
82583
|
-
*/
|
|
82584
|
-
get(
|
|
82585
|
-
params: Params$Resource$Projects$Locations$Notebooks$Get,
|
|
82586
|
-
options: StreamMethodOptions
|
|
82587
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
82588
|
-
get(
|
|
82589
|
-
params?: Params$Resource$Projects$Locations$Notebooks$Get,
|
|
82590
|
-
options?: MethodOptions
|
|
82591
|
-
): Promise<
|
|
82592
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82593
|
-
>;
|
|
82594
|
-
get(
|
|
82595
|
-
params: Params$Resource$Projects$Locations$Notebooks$Get,
|
|
82596
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
82597
|
-
callback: BodyResponseCallback<Readable>
|
|
82598
|
-
): void;
|
|
82599
|
-
get(
|
|
82600
|
-
params: Params$Resource$Projects$Locations$Notebooks$Get,
|
|
82601
|
-
options:
|
|
82602
|
-
| MethodOptions
|
|
82603
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>,
|
|
82604
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82605
|
-
): void;
|
|
82606
|
-
get(
|
|
82607
|
-
params: Params$Resource$Projects$Locations$Notebooks$Get,
|
|
82608
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82609
|
-
): void;
|
|
82610
|
-
get(
|
|
82611
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82612
|
-
): void;
|
|
82613
|
-
get(
|
|
82614
|
-
paramsOrCallback?:
|
|
82615
|
-
| Params$Resource$Projects$Locations$Notebooks$Get
|
|
82616
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82617
|
-
| BodyResponseCallback<Readable>,
|
|
82618
|
-
optionsOrCallback?:
|
|
82619
|
-
| MethodOptions
|
|
82620
|
-
| StreamMethodOptions
|
|
82621
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82622
|
-
| BodyResponseCallback<Readable>,
|
|
82623
|
-
callback?:
|
|
82624
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82625
|
-
| BodyResponseCallback<Readable>
|
|
82626
|
-
):
|
|
82627
|
-
| void
|
|
82628
|
-
| Promise<
|
|
82629
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>
|
|
82630
|
-
>
|
|
82631
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
82632
|
-
let params = (paramsOrCallback ||
|
|
82633
|
-
{}) as Params$Resource$Projects$Locations$Notebooks$Get;
|
|
82634
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
82635
|
-
|
|
82636
|
-
if (typeof paramsOrCallback === 'function') {
|
|
82637
|
-
callback = paramsOrCallback;
|
|
82638
|
-
params = {} as Params$Resource$Projects$Locations$Notebooks$Get;
|
|
82639
|
-
options = {};
|
|
82640
|
-
}
|
|
82641
|
-
|
|
82642
|
-
if (typeof optionsOrCallback === 'function') {
|
|
82643
|
-
callback = optionsOrCallback;
|
|
82644
|
-
options = {};
|
|
82645
|
-
}
|
|
82646
|
-
|
|
82647
|
-
const rootUrl =
|
|
82648
|
-
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
82649
|
-
const parameters = {
|
|
82650
|
-
options: Object.assign(
|
|
82651
|
-
{
|
|
82652
|
-
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
82653
|
-
method: 'GET',
|
|
82654
|
-
apiVersion: '',
|
|
82655
|
-
},
|
|
82656
|
-
options
|
|
82657
|
-
),
|
|
82658
|
-
params,
|
|
82659
|
-
requiredParams: ['name'],
|
|
82660
|
-
pathParams: ['name'],
|
|
82661
|
-
context: this.context,
|
|
82662
|
-
};
|
|
82663
|
-
if (callback) {
|
|
82664
|
-
createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaNotebook>(
|
|
82665
|
-
parameters,
|
|
82666
|
-
callback as BodyResponseCallback<unknown>
|
|
82667
|
-
);
|
|
82668
|
-
} else {
|
|
82669
|
-
return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaNotebook>(
|
|
82670
|
-
parameters
|
|
82671
|
-
);
|
|
82672
|
-
}
|
|
82673
|
-
}
|
|
82674
|
-
|
|
82675
|
-
/**
|
|
82676
|
-
* Lists the notebooks ordered by last view time.
|
|
82677
|
-
* @example
|
|
82678
|
-
* ```js
|
|
82679
|
-
* // Before running the sample:
|
|
82680
|
-
* // - Enable the API at:
|
|
82681
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
82682
|
-
* // - Login into gcloud by running:
|
|
82683
|
-
* // ```sh
|
|
82684
|
-
* // $ gcloud auth application-default login
|
|
82685
|
-
* // ```
|
|
82686
|
-
* // - Install the npm module by running:
|
|
82687
|
-
* // ```sh
|
|
82688
|
-
* // $ npm install googleapis
|
|
82689
|
-
* // ```
|
|
82690
|
-
*
|
|
82691
|
-
* const {google} = require('googleapis');
|
|
82692
|
-
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
82693
|
-
*
|
|
82694
|
-
* async function main() {
|
|
82695
|
-
* const auth = new google.auth.GoogleAuth({
|
|
82696
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
82697
|
-
* scopes: [
|
|
82698
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
82699
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
82700
|
-
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
82701
|
-
* ],
|
|
82702
|
-
* });
|
|
82703
|
-
*
|
|
82704
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
82705
|
-
* const authClient = await auth.getClient();
|
|
82706
|
-
* google.options({auth: authClient});
|
|
82707
|
-
*
|
|
82708
|
-
* // Do the magic
|
|
82709
|
-
* const res =
|
|
82710
|
-
* await discoveryengine.projects.locations.notebooks.listRecentlyViewed({
|
|
82711
|
-
* // 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.
|
|
82712
|
-
* pageSize: 'placeholder-value',
|
|
82713
|
-
* // Optional. The page token, provide this to retrieve the subsequent page.
|
|
82714
|
-
* pageToken: 'placeholder-value',
|
|
82715
|
-
* // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
|
|
82716
|
-
* parent: 'projects/my-project/locations/my-location',
|
|
82717
|
-
* });
|
|
82718
|
-
* console.log(res.data);
|
|
82719
|
-
*
|
|
82720
|
-
* // Example response
|
|
82721
|
-
* // {
|
|
82722
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
82723
|
-
* // "notebooks": []
|
|
82724
|
-
* // }
|
|
82725
|
-
* }
|
|
82726
|
-
*
|
|
82727
|
-
* main().catch(e => {
|
|
82728
|
-
* console.error(e);
|
|
82729
|
-
* throw e;
|
|
82730
|
-
* });
|
|
82731
|
-
*
|
|
82732
|
-
* ```
|
|
82733
|
-
*
|
|
82734
|
-
* @param params - Parameters for request
|
|
82735
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
82736
|
-
* @param callback - Optional callback that handles the response.
|
|
82737
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
82738
|
-
*/
|
|
82739
|
-
listRecentlyViewed(
|
|
82740
|
-
params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
|
|
82741
|
-
options: StreamMethodOptions
|
|
82742
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
82743
|
-
listRecentlyViewed(
|
|
82744
|
-
params?: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
|
|
82745
|
-
options?: MethodOptions
|
|
82746
|
-
): Promise<
|
|
82747
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
|
|
82748
|
-
>;
|
|
82749
|
-
listRecentlyViewed(
|
|
82750
|
-
params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
|
|
82751
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
82752
|
-
callback: BodyResponseCallback<Readable>
|
|
82753
|
-
): void;
|
|
82754
|
-
listRecentlyViewed(
|
|
82755
|
-
params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
|
|
82756
|
-
options:
|
|
82757
|
-
| MethodOptions
|
|
82758
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>,
|
|
82759
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
|
|
82760
|
-
): void;
|
|
82761
|
-
listRecentlyViewed(
|
|
82762
|
-
params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed,
|
|
82763
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
|
|
82764
|
-
): void;
|
|
82765
|
-
listRecentlyViewed(
|
|
82766
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
|
|
82767
|
-
): void;
|
|
82768
|
-
listRecentlyViewed(
|
|
82769
|
-
paramsOrCallback?:
|
|
82770
|
-
| Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed
|
|
82771
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
|
|
82772
|
-
| BodyResponseCallback<Readable>,
|
|
82773
|
-
optionsOrCallback?:
|
|
82774
|
-
| MethodOptions
|
|
82775
|
-
| StreamMethodOptions
|
|
82776
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
|
|
82777
|
-
| BodyResponseCallback<Readable>,
|
|
82778
|
-
callback?:
|
|
82779
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
|
|
82780
|
-
| BodyResponseCallback<Readable>
|
|
82781
|
-
):
|
|
82782
|
-
| void
|
|
82783
|
-
| Promise<
|
|
82784
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>
|
|
82785
|
-
>
|
|
82786
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
82787
|
-
let params = (paramsOrCallback ||
|
|
82788
|
-
{}) as Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed;
|
|
82789
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
82790
|
-
|
|
82791
|
-
if (typeof paramsOrCallback === 'function') {
|
|
82792
|
-
callback = paramsOrCallback;
|
|
82793
|
-
params =
|
|
82794
|
-
{} as Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed;
|
|
82795
|
-
options = {};
|
|
82796
|
-
}
|
|
82797
|
-
|
|
82798
|
-
if (typeof optionsOrCallback === 'function') {
|
|
82799
|
-
callback = optionsOrCallback;
|
|
82800
|
-
options = {};
|
|
82801
|
-
}
|
|
82802
|
-
|
|
82803
|
-
const rootUrl =
|
|
82804
|
-
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
82805
|
-
const parameters = {
|
|
82806
|
-
options: Object.assign(
|
|
82807
|
-
{
|
|
82808
|
-
url: (
|
|
82809
|
-
rootUrl + '/v1alpha/{+parent}/notebooks:listRecentlyViewed'
|
|
82810
|
-
).replace(/([^:]\/)\/+/g, '$1'),
|
|
82811
|
-
method: 'GET',
|
|
82812
|
-
apiVersion: '',
|
|
82813
|
-
},
|
|
82814
|
-
options
|
|
82815
|
-
),
|
|
82816
|
-
params,
|
|
82817
|
-
requiredParams: ['parent'],
|
|
82818
|
-
pathParams: ['parent'],
|
|
82819
|
-
context: this.context,
|
|
82820
|
-
};
|
|
82821
|
-
if (callback) {
|
|
82822
|
-
createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>(
|
|
82823
|
-
parameters,
|
|
82824
|
-
callback as BodyResponseCallback<unknown>
|
|
82825
|
-
);
|
|
82826
|
-
} else {
|
|
82827
|
-
return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>(
|
|
82828
|
-
parameters
|
|
82829
|
-
);
|
|
82830
|
-
}
|
|
82831
|
-
}
|
|
82832
|
-
|
|
82833
|
-
/**
|
|
82834
|
-
* Shares a notebook to other accounts.
|
|
82835
|
-
* @example
|
|
82836
|
-
* ```js
|
|
82837
|
-
* // Before running the sample:
|
|
82838
|
-
* // - Enable the API at:
|
|
82839
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
82840
|
-
* // - Login into gcloud by running:
|
|
82841
|
-
* // ```sh
|
|
82842
|
-
* // $ gcloud auth application-default login
|
|
82843
|
-
* // ```
|
|
82844
|
-
* // - Install the npm module by running:
|
|
82845
|
-
* // ```sh
|
|
82846
|
-
* // $ npm install googleapis
|
|
82847
|
-
* // ```
|
|
82848
|
-
*
|
|
82849
|
-
* const {google} = require('googleapis');
|
|
82850
|
-
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
82851
|
-
*
|
|
82852
|
-
* async function main() {
|
|
82853
|
-
* const auth = new google.auth.GoogleAuth({
|
|
82854
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
82855
|
-
* scopes: [
|
|
82856
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
82857
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
82858
|
-
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
82859
|
-
* ],
|
|
82860
|
-
* });
|
|
82861
|
-
*
|
|
82862
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
82863
|
-
* const authClient = await auth.getClient();
|
|
82864
|
-
* google.options({auth: authClient});
|
|
82865
|
-
*
|
|
82866
|
-
* // Do the magic
|
|
82867
|
-
* const res = await discoveryengine.projects.locations.notebooks.share({
|
|
82868
|
-
* // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
|
|
82869
|
-
* name: 'projects/my-project/locations/my-location/notebooks/my-notebook',
|
|
82870
|
-
*
|
|
82871
|
-
* // Request body metadata
|
|
82872
|
-
* requestBody: {
|
|
82873
|
-
* // request body parameters
|
|
82874
|
-
* // {
|
|
82875
|
-
* // "accountAndRoles": [],
|
|
82876
|
-
* // "notifyViaEmail": false
|
|
82877
|
-
* // }
|
|
82878
|
-
* },
|
|
82879
|
-
* });
|
|
82880
|
-
* console.log(res.data);
|
|
82881
|
-
*
|
|
82882
|
-
* // Example response
|
|
82883
|
-
* // {}
|
|
82884
|
-
* }
|
|
82885
|
-
*
|
|
82886
|
-
* main().catch(e => {
|
|
82887
|
-
* console.error(e);
|
|
82888
|
-
* throw e;
|
|
82889
|
-
* });
|
|
82890
|
-
*
|
|
82891
|
-
* ```
|
|
82892
|
-
*
|
|
82893
|
-
* @param params - Parameters for request
|
|
82894
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
82895
|
-
* @param callback - Optional callback that handles the response.
|
|
82896
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
82897
|
-
*/
|
|
82898
|
-
share(
|
|
82899
|
-
params: Params$Resource$Projects$Locations$Notebooks$Share,
|
|
82900
|
-
options: StreamMethodOptions
|
|
82901
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
82902
|
-
share(
|
|
82903
|
-
params?: Params$Resource$Projects$Locations$Notebooks$Share,
|
|
82904
|
-
options?: MethodOptions
|
|
82905
|
-
): Promise<
|
|
82906
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
|
|
82907
|
-
>;
|
|
82908
|
-
share(
|
|
82909
|
-
params: Params$Resource$Projects$Locations$Notebooks$Share,
|
|
82910
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
82911
|
-
callback: BodyResponseCallback<Readable>
|
|
82912
|
-
): void;
|
|
82913
|
-
share(
|
|
82914
|
-
params: Params$Resource$Projects$Locations$Notebooks$Share,
|
|
82915
|
-
options:
|
|
82916
|
-
| MethodOptions
|
|
82917
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>,
|
|
82918
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
|
|
82919
|
-
): void;
|
|
82920
|
-
share(
|
|
82921
|
-
params: Params$Resource$Projects$Locations$Notebooks$Share,
|
|
82922
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
|
|
82923
|
-
): void;
|
|
82924
|
-
share(
|
|
82925
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
|
|
82926
|
-
): void;
|
|
82927
|
-
share(
|
|
82928
|
-
paramsOrCallback?:
|
|
82929
|
-
| Params$Resource$Projects$Locations$Notebooks$Share
|
|
82930
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
|
|
82931
|
-
| BodyResponseCallback<Readable>,
|
|
82932
|
-
optionsOrCallback?:
|
|
82933
|
-
| MethodOptions
|
|
82934
|
-
| StreamMethodOptions
|
|
82935
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
|
|
82936
|
-
| BodyResponseCallback<Readable>,
|
|
82937
|
-
callback?:
|
|
82938
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
|
|
82939
|
-
| BodyResponseCallback<Readable>
|
|
82940
|
-
):
|
|
82941
|
-
| void
|
|
82942
|
-
| Promise<
|
|
82943
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>
|
|
82944
|
-
>
|
|
82945
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
82946
|
-
let params = (paramsOrCallback ||
|
|
82947
|
-
{}) as Params$Resource$Projects$Locations$Notebooks$Share;
|
|
82948
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
82949
|
-
|
|
82950
|
-
if (typeof paramsOrCallback === 'function') {
|
|
82951
|
-
callback = paramsOrCallback;
|
|
82952
|
-
params = {} as Params$Resource$Projects$Locations$Notebooks$Share;
|
|
82953
|
-
options = {};
|
|
82954
|
-
}
|
|
82955
|
-
|
|
82956
|
-
if (typeof optionsOrCallback === 'function') {
|
|
82957
|
-
callback = optionsOrCallback;
|
|
82958
|
-
options = {};
|
|
82959
|
-
}
|
|
82960
|
-
|
|
82961
|
-
const rootUrl =
|
|
82962
|
-
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
82963
|
-
const parameters = {
|
|
82964
|
-
options: Object.assign(
|
|
82965
|
-
{
|
|
82966
|
-
url: (rootUrl + '/v1alpha/{+name}:share').replace(
|
|
82967
|
-
/([^:]\/)\/+/g,
|
|
82968
|
-
'$1'
|
|
82969
|
-
),
|
|
82970
|
-
method: 'POST',
|
|
82971
|
-
apiVersion: '',
|
|
82972
|
-
},
|
|
82973
|
-
options
|
|
82974
|
-
),
|
|
82975
|
-
params,
|
|
82976
|
-
requiredParams: ['name'],
|
|
82977
|
-
pathParams: ['name'],
|
|
82978
|
-
context: this.context,
|
|
82979
|
-
};
|
|
82980
|
-
if (callback) {
|
|
82981
|
-
createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>(
|
|
82982
|
-
parameters,
|
|
82983
|
-
callback as BodyResponseCallback<unknown>
|
|
82984
|
-
);
|
|
82985
|
-
} else {
|
|
82986
|
-
return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>(
|
|
82987
|
-
parameters
|
|
82988
|
-
);
|
|
82989
|
-
}
|
|
82990
81841
|
}
|
|
82991
81842
|
}
|
|
82992
81843
|
|
|
82993
|
-
export interface Params$Resource$Projects$Locations$Notebooks$Batchdelete extends StandardParameters {
|
|
82994
|
-
/**
|
|
82995
|
-
* Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
|
|
82996
|
-
*/
|
|
82997
|
-
parent?: string;
|
|
82998
|
-
|
|
82999
|
-
/**
|
|
83000
|
-
* Request body metadata
|
|
83001
|
-
*/
|
|
83002
|
-
requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest;
|
|
83003
|
-
}
|
|
83004
|
-
export interface Params$Resource$Projects$Locations$Notebooks$Create extends StandardParameters {
|
|
83005
|
-
/**
|
|
83006
|
-
* Required. The parent resource name, such as `projects/{project\}/locations/{location\}`.
|
|
83007
|
-
*/
|
|
83008
|
-
parent?: string;
|
|
83009
|
-
|
|
83010
|
-
/**
|
|
83011
|
-
* Request body metadata
|
|
83012
|
-
*/
|
|
83013
|
-
requestBody?: Schema$GoogleCloudNotebooklmV1alphaNotebook;
|
|
83014
|
-
}
|
|
83015
|
-
export interface Params$Resource$Projects$Locations$Notebooks$Get extends StandardParameters {
|
|
83016
|
-
/**
|
|
83017
|
-
* Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
|
|
83018
|
-
*/
|
|
83019
|
-
name?: string;
|
|
83020
|
-
}
|
|
83021
|
-
export interface Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed extends StandardParameters {
|
|
83022
|
-
/**
|
|
83023
|
-
* 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.
|
|
83024
|
-
*/
|
|
83025
|
-
pageSize?: number;
|
|
83026
|
-
/**
|
|
83027
|
-
* Optional. The page token, provide this to retrieve the subsequent page.
|
|
83028
|
-
*/
|
|
83029
|
-
pageToken?: string;
|
|
83030
|
-
/**
|
|
83031
|
-
* Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
|
|
83032
|
-
*/
|
|
83033
|
-
parent?: string;
|
|
83034
|
-
}
|
|
83035
|
-
export interface Params$Resource$Projects$Locations$Notebooks$Share extends StandardParameters {
|
|
83036
|
-
/**
|
|
83037
|
-
* Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
|
|
83038
|
-
*/
|
|
83039
|
-
name?: string;
|
|
83040
|
-
|
|
83041
|
-
/**
|
|
83042
|
-
* Request body metadata
|
|
83043
|
-
*/
|
|
83044
|
-
requestBody?: Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest;
|
|
83045
|
-
}
|
|
83046
|
-
|
|
83047
81844
|
export class Resource$Projects$Locations$Notebooks$Audiooverviews {
|
|
83048
81845
|
context: APIRequestContext;
|
|
83049
81846
|
constructor(context: APIRequestContext) {
|
|
@@ -83370,510 +82167,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
83370
82167
|
name?: string;
|
|
83371
82168
|
}
|
|
83372
82169
|
|
|
83373
|
-
export class Resource$Projects$Locations$Notebooks$Sources {
|
|
83374
|
-
context: APIRequestContext;
|
|
83375
|
-
constructor(context: APIRequestContext) {
|
|
83376
|
-
this.context = context;
|
|
83377
|
-
}
|
|
83378
|
-
|
|
83379
|
-
/**
|
|
83380
|
-
* Creates a list of Sources.
|
|
83381
|
-
* @example
|
|
83382
|
-
* ```js
|
|
83383
|
-
* // Before running the sample:
|
|
83384
|
-
* // - Enable the API at:
|
|
83385
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
83386
|
-
* // - Login into gcloud by running:
|
|
83387
|
-
* // ```sh
|
|
83388
|
-
* // $ gcloud auth application-default login
|
|
83389
|
-
* // ```
|
|
83390
|
-
* // - Install the npm module by running:
|
|
83391
|
-
* // ```sh
|
|
83392
|
-
* // $ npm install googleapis
|
|
83393
|
-
* // ```
|
|
83394
|
-
*
|
|
83395
|
-
* const {google} = require('googleapis');
|
|
83396
|
-
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
83397
|
-
*
|
|
83398
|
-
* async function main() {
|
|
83399
|
-
* const auth = new google.auth.GoogleAuth({
|
|
83400
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
83401
|
-
* scopes: [
|
|
83402
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
83403
|
-
* 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
|
|
83404
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
83405
|
-
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
83406
|
-
* ],
|
|
83407
|
-
* });
|
|
83408
|
-
*
|
|
83409
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
83410
|
-
* const authClient = await auth.getClient();
|
|
83411
|
-
* google.options({auth: authClient});
|
|
83412
|
-
*
|
|
83413
|
-
* // Do the magic
|
|
83414
|
-
* const res =
|
|
83415
|
-
* await discoveryengine.projects.locations.notebooks.sources.batchCreate({
|
|
83416
|
-
* // Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
|
|
83417
|
-
* parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
|
|
83418
|
-
*
|
|
83419
|
-
* // Request body metadata
|
|
83420
|
-
* requestBody: {
|
|
83421
|
-
* // request body parameters
|
|
83422
|
-
* // {
|
|
83423
|
-
* // "userContents": []
|
|
83424
|
-
* // }
|
|
83425
|
-
* },
|
|
83426
|
-
* });
|
|
83427
|
-
* console.log(res.data);
|
|
83428
|
-
*
|
|
83429
|
-
* // Example response
|
|
83430
|
-
* // {
|
|
83431
|
-
* // "sources": []
|
|
83432
|
-
* // }
|
|
83433
|
-
* }
|
|
83434
|
-
*
|
|
83435
|
-
* main().catch(e => {
|
|
83436
|
-
* console.error(e);
|
|
83437
|
-
* throw e;
|
|
83438
|
-
* });
|
|
83439
|
-
*
|
|
83440
|
-
* ```
|
|
83441
|
-
*
|
|
83442
|
-
* @param params - Parameters for request
|
|
83443
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
83444
|
-
* @param callback - Optional callback that handles the response.
|
|
83445
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
83446
|
-
*/
|
|
83447
|
-
batchCreate(
|
|
83448
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
|
|
83449
|
-
options: StreamMethodOptions
|
|
83450
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
83451
|
-
batchCreate(
|
|
83452
|
-
params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
|
|
83453
|
-
options?: MethodOptions
|
|
83454
|
-
): Promise<
|
|
83455
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
|
|
83456
|
-
>;
|
|
83457
|
-
batchCreate(
|
|
83458
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
|
|
83459
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
83460
|
-
callback: BodyResponseCallback<Readable>
|
|
83461
|
-
): void;
|
|
83462
|
-
batchCreate(
|
|
83463
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
|
|
83464
|
-
options:
|
|
83465
|
-
| MethodOptions
|
|
83466
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>,
|
|
83467
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
|
|
83468
|
-
): void;
|
|
83469
|
-
batchCreate(
|
|
83470
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate,
|
|
83471
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
|
|
83472
|
-
): void;
|
|
83473
|
-
batchCreate(
|
|
83474
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
|
|
83475
|
-
): void;
|
|
83476
|
-
batchCreate(
|
|
83477
|
-
paramsOrCallback?:
|
|
83478
|
-
| Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate
|
|
83479
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
|
|
83480
|
-
| BodyResponseCallback<Readable>,
|
|
83481
|
-
optionsOrCallback?:
|
|
83482
|
-
| MethodOptions
|
|
83483
|
-
| StreamMethodOptions
|
|
83484
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
|
|
83485
|
-
| BodyResponseCallback<Readable>,
|
|
83486
|
-
callback?:
|
|
83487
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
|
|
83488
|
-
| BodyResponseCallback<Readable>
|
|
83489
|
-
):
|
|
83490
|
-
| void
|
|
83491
|
-
| Promise<
|
|
83492
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>
|
|
83493
|
-
>
|
|
83494
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
83495
|
-
let params = (paramsOrCallback ||
|
|
83496
|
-
{}) as Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate;
|
|
83497
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
83498
|
-
|
|
83499
|
-
if (typeof paramsOrCallback === 'function') {
|
|
83500
|
-
callback = paramsOrCallback;
|
|
83501
|
-
params =
|
|
83502
|
-
{} as Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate;
|
|
83503
|
-
options = {};
|
|
83504
|
-
}
|
|
83505
|
-
|
|
83506
|
-
if (typeof optionsOrCallback === 'function') {
|
|
83507
|
-
callback = optionsOrCallback;
|
|
83508
|
-
options = {};
|
|
83509
|
-
}
|
|
83510
|
-
|
|
83511
|
-
const rootUrl =
|
|
83512
|
-
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
83513
|
-
const parameters = {
|
|
83514
|
-
options: Object.assign(
|
|
83515
|
-
{
|
|
83516
|
-
url: (rootUrl + '/v1alpha/{+parent}/sources:batchCreate').replace(
|
|
83517
|
-
/([^:]\/)\/+/g,
|
|
83518
|
-
'$1'
|
|
83519
|
-
),
|
|
83520
|
-
method: 'POST',
|
|
83521
|
-
apiVersion: '',
|
|
83522
|
-
},
|
|
83523
|
-
options
|
|
83524
|
-
),
|
|
83525
|
-
params,
|
|
83526
|
-
requiredParams: ['parent'],
|
|
83527
|
-
pathParams: ['parent'],
|
|
83528
|
-
context: this.context,
|
|
83529
|
-
};
|
|
83530
|
-
if (callback) {
|
|
83531
|
-
createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>(
|
|
83532
|
-
parameters,
|
|
83533
|
-
callback as BodyResponseCallback<unknown>
|
|
83534
|
-
);
|
|
83535
|
-
} else {
|
|
83536
|
-
return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>(
|
|
83537
|
-
parameters
|
|
83538
|
-
);
|
|
83539
|
-
}
|
|
83540
|
-
}
|
|
83541
|
-
|
|
83542
|
-
/**
|
|
83543
|
-
* Deletes multiple sources
|
|
83544
|
-
* @example
|
|
83545
|
-
* ```js
|
|
83546
|
-
* // Before running the sample:
|
|
83547
|
-
* // - Enable the API at:
|
|
83548
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
83549
|
-
* // - Login into gcloud by running:
|
|
83550
|
-
* // ```sh
|
|
83551
|
-
* // $ gcloud auth application-default login
|
|
83552
|
-
* // ```
|
|
83553
|
-
* // - Install the npm module by running:
|
|
83554
|
-
* // ```sh
|
|
83555
|
-
* // $ npm install googleapis
|
|
83556
|
-
* // ```
|
|
83557
|
-
*
|
|
83558
|
-
* const {google} = require('googleapis');
|
|
83559
|
-
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
83560
|
-
*
|
|
83561
|
-
* async function main() {
|
|
83562
|
-
* const auth = new google.auth.GoogleAuth({
|
|
83563
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
83564
|
-
* scopes: [
|
|
83565
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
83566
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
83567
|
-
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
83568
|
-
* ],
|
|
83569
|
-
* });
|
|
83570
|
-
*
|
|
83571
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
83572
|
-
* const authClient = await auth.getClient();
|
|
83573
|
-
* google.options({auth: authClient});
|
|
83574
|
-
*
|
|
83575
|
-
* // Do the magic
|
|
83576
|
-
* const res =
|
|
83577
|
-
* await discoveryengine.projects.locations.notebooks.sources.batchDelete({
|
|
83578
|
-
* // Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
|
|
83579
|
-
* parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
|
|
83580
|
-
*
|
|
83581
|
-
* // Request body metadata
|
|
83582
|
-
* requestBody: {
|
|
83583
|
-
* // request body parameters
|
|
83584
|
-
* // {
|
|
83585
|
-
* // "names": []
|
|
83586
|
-
* // }
|
|
83587
|
-
* },
|
|
83588
|
-
* });
|
|
83589
|
-
* console.log(res.data);
|
|
83590
|
-
*
|
|
83591
|
-
* // Example response
|
|
83592
|
-
* // {}
|
|
83593
|
-
* }
|
|
83594
|
-
*
|
|
83595
|
-
* main().catch(e => {
|
|
83596
|
-
* console.error(e);
|
|
83597
|
-
* throw e;
|
|
83598
|
-
* });
|
|
83599
|
-
*
|
|
83600
|
-
* ```
|
|
83601
|
-
*
|
|
83602
|
-
* @param params - Parameters for request
|
|
83603
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
83604
|
-
* @param callback - Optional callback that handles the response.
|
|
83605
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
83606
|
-
*/
|
|
83607
|
-
batchDelete(
|
|
83608
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
|
|
83609
|
-
options: StreamMethodOptions
|
|
83610
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
83611
|
-
batchDelete(
|
|
83612
|
-
params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
|
|
83613
|
-
options?: MethodOptions
|
|
83614
|
-
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
|
|
83615
|
-
batchDelete(
|
|
83616
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
|
|
83617
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
83618
|
-
callback: BodyResponseCallback<Readable>
|
|
83619
|
-
): void;
|
|
83620
|
-
batchDelete(
|
|
83621
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
|
|
83622
|
-
options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>,
|
|
83623
|
-
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
83624
|
-
): void;
|
|
83625
|
-
batchDelete(
|
|
83626
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete,
|
|
83627
|
-
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
83628
|
-
): void;
|
|
83629
|
-
batchDelete(
|
|
83630
|
-
callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
83631
|
-
): void;
|
|
83632
|
-
batchDelete(
|
|
83633
|
-
paramsOrCallback?:
|
|
83634
|
-
| Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete
|
|
83635
|
-
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
83636
|
-
| BodyResponseCallback<Readable>,
|
|
83637
|
-
optionsOrCallback?:
|
|
83638
|
-
| MethodOptions
|
|
83639
|
-
| StreamMethodOptions
|
|
83640
|
-
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
83641
|
-
| BodyResponseCallback<Readable>,
|
|
83642
|
-
callback?:
|
|
83643
|
-
| BodyResponseCallback<Schema$GoogleProtobufEmpty>
|
|
83644
|
-
| BodyResponseCallback<Readable>
|
|
83645
|
-
):
|
|
83646
|
-
| void
|
|
83647
|
-
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>
|
|
83648
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
83649
|
-
let params = (paramsOrCallback ||
|
|
83650
|
-
{}) as Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete;
|
|
83651
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
83652
|
-
|
|
83653
|
-
if (typeof paramsOrCallback === 'function') {
|
|
83654
|
-
callback = paramsOrCallback;
|
|
83655
|
-
params =
|
|
83656
|
-
{} as Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete;
|
|
83657
|
-
options = {};
|
|
83658
|
-
}
|
|
83659
|
-
|
|
83660
|
-
if (typeof optionsOrCallback === 'function') {
|
|
83661
|
-
callback = optionsOrCallback;
|
|
83662
|
-
options = {};
|
|
83663
|
-
}
|
|
83664
|
-
|
|
83665
|
-
const rootUrl =
|
|
83666
|
-
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
83667
|
-
const parameters = {
|
|
83668
|
-
options: Object.assign(
|
|
83669
|
-
{
|
|
83670
|
-
url: (rootUrl + '/v1alpha/{+parent}/sources:batchDelete').replace(
|
|
83671
|
-
/([^:]\/)\/+/g,
|
|
83672
|
-
'$1'
|
|
83673
|
-
),
|
|
83674
|
-
method: 'POST',
|
|
83675
|
-
apiVersion: '',
|
|
83676
|
-
},
|
|
83677
|
-
options
|
|
83678
|
-
),
|
|
83679
|
-
params,
|
|
83680
|
-
requiredParams: ['parent'],
|
|
83681
|
-
pathParams: ['parent'],
|
|
83682
|
-
context: this.context,
|
|
83683
|
-
};
|
|
83684
|
-
if (callback) {
|
|
83685
|
-
createAPIRequest<Schema$GoogleProtobufEmpty>(
|
|
83686
|
-
parameters,
|
|
83687
|
-
callback as BodyResponseCallback<unknown>
|
|
83688
|
-
);
|
|
83689
|
-
} else {
|
|
83690
|
-
return createAPIRequest<Schema$GoogleProtobufEmpty>(parameters);
|
|
83691
|
-
}
|
|
83692
|
-
}
|
|
83693
|
-
|
|
83694
|
-
/**
|
|
83695
|
-
* Gets a Source.
|
|
83696
|
-
* @example
|
|
83697
|
-
* ```js
|
|
83698
|
-
* // Before running the sample:
|
|
83699
|
-
* // - Enable the API at:
|
|
83700
|
-
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
83701
|
-
* // - Login into gcloud by running:
|
|
83702
|
-
* // ```sh
|
|
83703
|
-
* // $ gcloud auth application-default login
|
|
83704
|
-
* // ```
|
|
83705
|
-
* // - Install the npm module by running:
|
|
83706
|
-
* // ```sh
|
|
83707
|
-
* // $ npm install googleapis
|
|
83708
|
-
* // ```
|
|
83709
|
-
*
|
|
83710
|
-
* const {google} = require('googleapis');
|
|
83711
|
-
* const discoveryengine = google.discoveryengine('v1alpha');
|
|
83712
|
-
*
|
|
83713
|
-
* async function main() {
|
|
83714
|
-
* const auth = new google.auth.GoogleAuth({
|
|
83715
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
83716
|
-
* scopes: [
|
|
83717
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
83718
|
-
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
83719
|
-
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
83720
|
-
* ],
|
|
83721
|
-
* });
|
|
83722
|
-
*
|
|
83723
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
83724
|
-
* const authClient = await auth.getClient();
|
|
83725
|
-
* google.options({auth: authClient});
|
|
83726
|
-
*
|
|
83727
|
-
* // Do the magic
|
|
83728
|
-
* const res = await discoveryengine.projects.locations.notebooks.sources.get({
|
|
83729
|
-
* // Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
|
|
83730
|
-
* name: 'projects/my-project/locations/my-location/notebooks/my-notebook/sources/my-source',
|
|
83731
|
-
* });
|
|
83732
|
-
* console.log(res.data);
|
|
83733
|
-
*
|
|
83734
|
-
* // Example response
|
|
83735
|
-
* // {
|
|
83736
|
-
* // "metadata": {},
|
|
83737
|
-
* // "name": "my_name",
|
|
83738
|
-
* // "settings": {},
|
|
83739
|
-
* // "sourceId": {},
|
|
83740
|
-
* // "title": "my_title"
|
|
83741
|
-
* // }
|
|
83742
|
-
* }
|
|
83743
|
-
*
|
|
83744
|
-
* main().catch(e => {
|
|
83745
|
-
* console.error(e);
|
|
83746
|
-
* throw e;
|
|
83747
|
-
* });
|
|
83748
|
-
*
|
|
83749
|
-
* ```
|
|
83750
|
-
*
|
|
83751
|
-
* @param params - Parameters for request
|
|
83752
|
-
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
83753
|
-
* @param callback - Optional callback that handles the response.
|
|
83754
|
-
* @returns A promise if used with async/await, or void if used with a callback.
|
|
83755
|
-
*/
|
|
83756
|
-
get(
|
|
83757
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
|
|
83758
|
-
options: StreamMethodOptions
|
|
83759
|
-
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
83760
|
-
get(
|
|
83761
|
-
params?: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
|
|
83762
|
-
options?: MethodOptions
|
|
83763
|
-
): Promise<
|
|
83764
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaSource>
|
|
83765
|
-
>;
|
|
83766
|
-
get(
|
|
83767
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
|
|
83768
|
-
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
83769
|
-
callback: BodyResponseCallback<Readable>
|
|
83770
|
-
): void;
|
|
83771
|
-
get(
|
|
83772
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
|
|
83773
|
-
options:
|
|
83774
|
-
| MethodOptions
|
|
83775
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>,
|
|
83776
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
|
|
83777
|
-
): void;
|
|
83778
|
-
get(
|
|
83779
|
-
params: Params$Resource$Projects$Locations$Notebooks$Sources$Get,
|
|
83780
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
|
|
83781
|
-
): void;
|
|
83782
|
-
get(
|
|
83783
|
-
callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
|
|
83784
|
-
): void;
|
|
83785
|
-
get(
|
|
83786
|
-
paramsOrCallback?:
|
|
83787
|
-
| Params$Resource$Projects$Locations$Notebooks$Sources$Get
|
|
83788
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
|
|
83789
|
-
| BodyResponseCallback<Readable>,
|
|
83790
|
-
optionsOrCallback?:
|
|
83791
|
-
| MethodOptions
|
|
83792
|
-
| StreamMethodOptions
|
|
83793
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
|
|
83794
|
-
| BodyResponseCallback<Readable>,
|
|
83795
|
-
callback?:
|
|
83796
|
-
| BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>
|
|
83797
|
-
| BodyResponseCallback<Readable>
|
|
83798
|
-
):
|
|
83799
|
-
| void
|
|
83800
|
-
| Promise<
|
|
83801
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaSource>
|
|
83802
|
-
>
|
|
83803
|
-
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
83804
|
-
let params = (paramsOrCallback ||
|
|
83805
|
-
{}) as Params$Resource$Projects$Locations$Notebooks$Sources$Get;
|
|
83806
|
-
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
83807
|
-
|
|
83808
|
-
if (typeof paramsOrCallback === 'function') {
|
|
83809
|
-
callback = paramsOrCallback;
|
|
83810
|
-
params = {} as Params$Resource$Projects$Locations$Notebooks$Sources$Get;
|
|
83811
|
-
options = {};
|
|
83812
|
-
}
|
|
83813
|
-
|
|
83814
|
-
if (typeof optionsOrCallback === 'function') {
|
|
83815
|
-
callback = optionsOrCallback;
|
|
83816
|
-
options = {};
|
|
83817
|
-
}
|
|
83818
|
-
|
|
83819
|
-
const rootUrl =
|
|
83820
|
-
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
83821
|
-
const parameters = {
|
|
83822
|
-
options: Object.assign(
|
|
83823
|
-
{
|
|
83824
|
-
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
83825
|
-
method: 'GET',
|
|
83826
|
-
apiVersion: '',
|
|
83827
|
-
},
|
|
83828
|
-
options
|
|
83829
|
-
),
|
|
83830
|
-
params,
|
|
83831
|
-
requiredParams: ['name'],
|
|
83832
|
-
pathParams: ['name'],
|
|
83833
|
-
context: this.context,
|
|
83834
|
-
};
|
|
83835
|
-
if (callback) {
|
|
83836
|
-
createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaSource>(
|
|
83837
|
-
parameters,
|
|
83838
|
-
callback as BodyResponseCallback<unknown>
|
|
83839
|
-
);
|
|
83840
|
-
} else {
|
|
83841
|
-
return createAPIRequest<Schema$GoogleCloudNotebooklmV1alphaSource>(
|
|
83842
|
-
parameters
|
|
83843
|
-
);
|
|
83844
|
-
}
|
|
83845
|
-
}
|
|
83846
|
-
}
|
|
83847
|
-
|
|
83848
|
-
export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate extends StandardParameters {
|
|
83849
|
-
/**
|
|
83850
|
-
* Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
|
|
83851
|
-
*/
|
|
83852
|
-
parent?: string;
|
|
83853
|
-
|
|
83854
|
-
/**
|
|
83855
|
-
* Request body metadata
|
|
83856
|
-
*/
|
|
83857
|
-
requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest;
|
|
83858
|
-
}
|
|
83859
|
-
export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete extends StandardParameters {
|
|
83860
|
-
/**
|
|
83861
|
-
* Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
|
|
83862
|
-
*/
|
|
83863
|
-
parent?: string;
|
|
83864
|
-
|
|
83865
|
-
/**
|
|
83866
|
-
* Request body metadata
|
|
83867
|
-
*/
|
|
83868
|
-
requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest;
|
|
83869
|
-
}
|
|
83870
|
-
export interface Params$Resource$Projects$Locations$Notebooks$Sources$Get extends StandardParameters {
|
|
83871
|
-
/**
|
|
83872
|
-
* Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
|
|
83873
|
-
*/
|
|
83874
|
-
name?: string;
|
|
83875
|
-
}
|
|
83876
|
-
|
|
83877
82170
|
export class Resource$Projects$Locations$Operations {
|
|
83878
82171
|
context: APIRequestContext;
|
|
83879
82172
|
constructor(context: APIRequestContext) {
|