@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/build/v1.d.ts
CHANGED
|
@@ -1748,6 +1748,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
1748
1748
|
* Required. Model name (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). See `model_mixture` for the list of allowed models.
|
|
1749
1749
|
*/
|
|
1750
1750
|
name?: string | null;
|
|
1751
|
+
/**
|
|
1752
|
+
* Optional. Sent as Vertex `ThinkingConfig.thinking_level`.
|
|
1753
|
+
*/
|
|
1754
|
+
thinkingLevel?: string | null;
|
|
1751
1755
|
/**
|
|
1752
1756
|
* 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.
|
|
1753
1757
|
*/
|
|
@@ -4227,7 +4231,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
4227
4231
|
*/
|
|
4228
4232
|
displayName?: string | null;
|
|
4229
4233
|
/**
|
|
4230
|
-
* 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`
|
|
4234
|
+
* 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`
|
|
4231
4235
|
*/
|
|
4232
4236
|
features?: {
|
|
4233
4237
|
[key: string]: string;
|
|
@@ -4274,6 +4278,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
4274
4278
|
* Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
|
|
4275
4279
|
*/
|
|
4276
4280
|
searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig;
|
|
4281
|
+
/**
|
|
4282
|
+
* Optional. Non-empty default. Session config for the engine.
|
|
4283
|
+
*/
|
|
4284
|
+
sessionConfig?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig;
|
|
4277
4285
|
/**
|
|
4278
4286
|
* Additional config specs for a `similar-items` engine.
|
|
4279
4287
|
*/
|
|
@@ -6624,6 +6632,28 @@ export declare namespace discoveryengine_v1 {
|
|
|
6624
6632
|
*/
|
|
6625
6633
|
userPseudoId?: string | null;
|
|
6626
6634
|
}
|
|
6635
|
+
/**
|
|
6636
|
+
* Configuration for the session.
|
|
6637
|
+
*/
|
|
6638
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig {
|
|
6639
|
+
/**
|
|
6640
|
+
* Optional. Session management policy that defines who will manage the session.
|
|
6641
|
+
*/
|
|
6642
|
+
sessionManagementPolicy?: string | null;
|
|
6643
|
+
/**
|
|
6644
|
+
* Optional. The TTL for the session. If unset, the default value is 60 days.
|
|
6645
|
+
*/
|
|
6646
|
+
sessionTtl?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl;
|
|
6647
|
+
}
|
|
6648
|
+
/**
|
|
6649
|
+
* Defines the TTL for sessions.
|
|
6650
|
+
*/
|
|
6651
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl {
|
|
6652
|
+
/**
|
|
6653
|
+
* Defines the number of days for session TTL.
|
|
6654
|
+
*/
|
|
6655
|
+
days?: number | null;
|
|
6656
|
+
}
|
|
6627
6657
|
/**
|
|
6628
6658
|
* Represents a turn, including a query from the user and a answer from service.
|
|
6629
6659
|
*/
|
|
@@ -8129,6 +8159,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
8129
8159
|
* Optional. List of banned phrases.
|
|
8130
8160
|
*/
|
|
8131
8161
|
bannedPhrases?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase[];
|
|
8162
|
+
/**
|
|
8163
|
+
* Optional. Data protection policy to be used for sanitizing file uploads.
|
|
8164
|
+
*/
|
|
8165
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
|
|
8132
8166
|
/**
|
|
8133
8167
|
* Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
|
|
8134
8168
|
*/
|
|
@@ -8940,6 +8974,24 @@ export declare namespace discoveryengine_v1 {
|
|
|
8940
8974
|
*/
|
|
8941
8975
|
updateTime?: string | null;
|
|
8942
8976
|
}
|
|
8977
|
+
/**
|
|
8978
|
+
* Contains the data protection policy config for a DataStore or a connector.
|
|
8979
|
+
*/
|
|
8980
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy {
|
|
8981
|
+
/**
|
|
8982
|
+
* Optional. Specifies the sensitive data protection policy for the connector source.
|
|
8983
|
+
*/
|
|
8984
|
+
sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy;
|
|
8985
|
+
}
|
|
8986
|
+
/**
|
|
8987
|
+
* Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
|
|
8988
|
+
*/
|
|
8989
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy {
|
|
8990
|
+
/**
|
|
8991
|
+
* Optional. Specifies the resource name of the Sensitive Data Protection content policy.
|
|
8992
|
+
*/
|
|
8993
|
+
policy?: string | null;
|
|
8994
|
+
}
|
|
8943
8995
|
/**
|
|
8944
8996
|
* DataStore captures global settings and configs at the DataStore level.
|
|
8945
8997
|
*/
|
|
@@ -8976,6 +9028,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
8976
9028
|
* Output only. Timestamp the DataStore was created at.
|
|
8977
9029
|
*/
|
|
8978
9030
|
createTime?: string | null;
|
|
9031
|
+
/**
|
|
9032
|
+
* Optional. Specifies the data protection policy for the data store.
|
|
9033
|
+
*/
|
|
9034
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy;
|
|
8979
9035
|
/**
|
|
8980
9036
|
* Output only. The id of the default Schema associated to this data store.
|
|
8981
9037
|
*/
|
|
@@ -9484,7 +9540,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
9484
9540
|
*/
|
|
9485
9541
|
displayName?: string | null;
|
|
9486
9542
|
/**
|
|
9487
|
-
* 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`
|
|
9543
|
+
* 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`
|
|
9488
9544
|
*/
|
|
9489
9545
|
features?: {
|
|
9490
9546
|
[key: string]: string;
|
|
@@ -9527,6 +9583,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
9527
9583
|
* Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
|
|
9528
9584
|
*/
|
|
9529
9585
|
searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig;
|
|
9586
|
+
/**
|
|
9587
|
+
* Optional. Non-empty default. Session config for the engine.
|
|
9588
|
+
*/
|
|
9589
|
+
sessionConfig?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfig;
|
|
9530
9590
|
/**
|
|
9531
9591
|
* Required. The solutions of the engine.
|
|
9532
9592
|
*/
|
|
@@ -11230,6 +11290,28 @@ export declare namespace discoveryengine_v1 {
|
|
|
11230
11290
|
*/
|
|
11231
11291
|
mode?: string | null;
|
|
11232
11292
|
}
|
|
11293
|
+
/**
|
|
11294
|
+
* Configuration for the session.
|
|
11295
|
+
*/
|
|
11296
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfig {
|
|
11297
|
+
/**
|
|
11298
|
+
* Optional. Session management policy that defines who will manage the session.
|
|
11299
|
+
*/
|
|
11300
|
+
sessionManagementPolicy?: string | null;
|
|
11301
|
+
/**
|
|
11302
|
+
* Optional. The TTL for the session. If unset, the default value is 60 days.
|
|
11303
|
+
*/
|
|
11304
|
+
sessionTtl?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl;
|
|
11305
|
+
}
|
|
11306
|
+
/**
|
|
11307
|
+
* Defines the TTL for sessions.
|
|
11308
|
+
*/
|
|
11309
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl {
|
|
11310
|
+
/**
|
|
11311
|
+
* Defines the number of days for session TTL.
|
|
11312
|
+
*/
|
|
11313
|
+
days?: number | null;
|
|
11314
|
+
}
|
|
11233
11315
|
/**
|
|
11234
11316
|
* Metadata related to the progress of the CrawlRateManagementService.SetDedicatedCrawlRate operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
11235
11317
|
*/
|
|
@@ -12577,6 +12659,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
12577
12659
|
* Output only. Timestamp the DataConnector was created at.
|
|
12578
12660
|
*/
|
|
12579
12661
|
createTime?: string | null;
|
|
12662
|
+
/**
|
|
12663
|
+
* Optional. Specifies the data protection policy for the connector.
|
|
12664
|
+
*/
|
|
12665
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
|
|
12580
12666
|
/**
|
|
12581
12667
|
* 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).
|
|
12582
12668
|
*/
|
|
@@ -12854,6 +12940,24 @@ export declare namespace discoveryengine_v1 {
|
|
|
12854
12940
|
*/
|
|
12855
12941
|
startingSchema?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
12856
12942
|
}
|
|
12943
|
+
/**
|
|
12944
|
+
* Contains the data protection policy config for a DataStore or a connector.
|
|
12945
|
+
*/
|
|
12946
|
+
export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy {
|
|
12947
|
+
/**
|
|
12948
|
+
* Optional. Specifies the sensitive data protection policy for the connector source.
|
|
12949
|
+
*/
|
|
12950
|
+
sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy;
|
|
12951
|
+
}
|
|
12952
|
+
/**
|
|
12953
|
+
* Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
|
|
12954
|
+
*/
|
|
12955
|
+
export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy {
|
|
12956
|
+
/**
|
|
12957
|
+
* Optional. Specifies the resource name of the Sensitive Data Protection content policy.
|
|
12958
|
+
*/
|
|
12959
|
+
policy?: string | null;
|
|
12960
|
+
}
|
|
12857
12961
|
/**
|
|
12858
12962
|
* DataStore captures global settings and configs at the DataStore level.
|
|
12859
12963
|
*/
|
|
@@ -12890,6 +12994,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
12890
12994
|
* Output only. Timestamp the DataStore was created at.
|
|
12891
12995
|
*/
|
|
12892
12996
|
createTime?: string | null;
|
|
12997
|
+
/**
|
|
12998
|
+
* Optional. Specifies the data protection policy for the data store.
|
|
12999
|
+
*/
|
|
13000
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
|
|
12893
13001
|
/**
|
|
12894
13002
|
* Output only. The id of the default Schema associated to this data store.
|
|
12895
13003
|
*/
|
|
@@ -13647,7 +13755,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
13647
13755
|
*/
|
|
13648
13756
|
displayName?: string | null;
|
|
13649
13757
|
/**
|
|
13650
|
-
* 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`
|
|
13758
|
+
* 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`
|
|
13651
13759
|
*/
|
|
13652
13760
|
features?: {
|
|
13653
13761
|
[key: string]: string;
|
|
@@ -13690,6 +13798,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
13690
13798
|
* Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
|
|
13691
13799
|
*/
|
|
13692
13800
|
searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig;
|
|
13801
|
+
/**
|
|
13802
|
+
* Optional. Non-empty default. Session config for the engine.
|
|
13803
|
+
*/
|
|
13804
|
+
sessionConfig?: Schema$GoogleCloudDiscoveryengineV1SessionConfig;
|
|
13693
13805
|
/**
|
|
13694
13806
|
* Required. The solutions of the engine.
|
|
13695
13807
|
*/
|
|
@@ -15749,6 +15861,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
15749
15861
|
* Whether to turn on safe search. This is only supported for website search.
|
|
15750
15862
|
*/
|
|
15751
15863
|
safeSearch?: boolean | null;
|
|
15864
|
+
/**
|
|
15865
|
+
* Optional. SearchAddonSpec is used to disable add-ons for search as per new repricing model. This field is only supported for search requests.
|
|
15866
|
+
*/
|
|
15867
|
+
searchAddonSpec?: Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAddonSpec;
|
|
15752
15868
|
/**
|
|
15753
15869
|
* Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical.
|
|
15754
15870
|
*/
|
|
@@ -16175,6 +16291,23 @@ export declare namespace discoveryengine_v1 {
|
|
|
16175
16291
|
*/
|
|
16176
16292
|
returnRelevanceScore?: boolean | null;
|
|
16177
16293
|
}
|
|
16294
|
+
/**
|
|
16295
|
+
* SearchAddonSpec is used to disable add-ons for search as per new repricing model. By default if the SearchAddonSpec is not specified, we consider that the customer wants to enable them wherever applicable.
|
|
16296
|
+
*/
|
|
16297
|
+
export interface Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAddonSpec {
|
|
16298
|
+
/**
|
|
16299
|
+
* Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
|
|
16300
|
+
*/
|
|
16301
|
+
disableGenerativeAnswerAddOn?: boolean | null;
|
|
16302
|
+
/**
|
|
16303
|
+
* Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
|
|
16304
|
+
*/
|
|
16305
|
+
disableKpiPersonalizationAddOn?: boolean | null;
|
|
16306
|
+
/**
|
|
16307
|
+
* Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
|
|
16308
|
+
*/
|
|
16309
|
+
disableSemanticAddOn?: boolean | null;
|
|
16310
|
+
}
|
|
16178
16311
|
/**
|
|
16179
16312
|
* Specification for search as you type in search requests.
|
|
16180
16313
|
*/
|
|
@@ -16849,6 +16982,28 @@ export declare namespace discoveryengine_v1 {
|
|
|
16849
16982
|
*/
|
|
16850
16983
|
userPseudoId?: string | null;
|
|
16851
16984
|
}
|
|
16985
|
+
/**
|
|
16986
|
+
* Configuration for the session.
|
|
16987
|
+
*/
|
|
16988
|
+
export interface Schema$GoogleCloudDiscoveryengineV1SessionConfig {
|
|
16989
|
+
/**
|
|
16990
|
+
* Optional. Session management policy that defines who will manage the session.
|
|
16991
|
+
*/
|
|
16992
|
+
sessionManagementPolicy?: string | null;
|
|
16993
|
+
/**
|
|
16994
|
+
* Optional. The TTL for the session. If unset, the default value is 60 days.
|
|
16995
|
+
*/
|
|
16996
|
+
sessionTtl?: Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl;
|
|
16997
|
+
}
|
|
16998
|
+
/**
|
|
16999
|
+
* Defines the TTL for sessions.
|
|
17000
|
+
*/
|
|
17001
|
+
export interface Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl {
|
|
17002
|
+
/**
|
|
17003
|
+
* Defines the number of days for session TTL.
|
|
17004
|
+
*/
|
|
17005
|
+
days?: number | null;
|
|
17006
|
+
}
|
|
16852
17007
|
/**
|
|
16853
17008
|
* Represents a turn, including a query from the user and a answer from service.
|
|
16854
17009
|
*/
|
|
@@ -17891,6 +18046,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
17891
18046
|
* Customer provided configurations.
|
|
17892
18047
|
*/
|
|
17893
18048
|
export interface Schema$GoogleCloudDiscoveryengineV1WidgetConfigCustomerProvidedConfig {
|
|
18049
|
+
/**
|
|
18050
|
+
* 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.
|
|
18051
|
+
*/
|
|
18052
|
+
complianceLevel?: string | null;
|
|
17894
18053
|
/**
|
|
17895
18054
|
* Customer type.
|
|
17896
18055
|
*/
|
|
@@ -18096,7 +18255,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
18096
18255
|
*/
|
|
18097
18256
|
enableVisualContentSummary?: boolean | null;
|
|
18098
18257
|
/**
|
|
18099
|
-
* 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`
|
|
18258
|
+
* 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`
|
|
18100
18259
|
*/
|
|
18101
18260
|
features?: {
|
|
18102
18261
|
[key: string]: string;
|
|
@@ -18131,6 +18290,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
18131
18290
|
* Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified.
|
|
18132
18291
|
*/
|
|
18133
18292
|
resultDescriptionType?: string | null;
|
|
18293
|
+
/**
|
|
18294
|
+
* Optional. SearchAddonSpec is used to disable add-ons for search. This field is only supported for search requests.
|
|
18295
|
+
*/
|
|
18296
|
+
searchAddonSpec?: Schema$GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsSearchAddonSpec;
|
|
18134
18297
|
/**
|
|
18135
18298
|
* Optional. Whether to show the admin-configured display name for data connectors in the widget sources UI (instead of the connector kind). Opt-in; defaults to false.
|
|
18136
18299
|
*/
|
|
@@ -18214,6 +18377,10 @@ export declare namespace discoveryengine_v1 {
|
|
|
18214
18377
|
* Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).
|
|
18215
18378
|
*/
|
|
18216
18379
|
icon?: string | null;
|
|
18380
|
+
/**
|
|
18381
|
+
* 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.
|
|
18382
|
+
*/
|
|
18383
|
+
iconUrl?: string | null;
|
|
18217
18384
|
/**
|
|
18218
18385
|
* Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.
|
|
18219
18386
|
*/
|
|
@@ -18248,6 +18415,23 @@ export declare namespace discoveryengine_v1 {
|
|
|
18248
18415
|
*/
|
|
18249
18416
|
regions?: string[] | null;
|
|
18250
18417
|
}
|
|
18418
|
+
/**
|
|
18419
|
+
* SearchAddonSpec is used to disable add-ons for search. By default, if this field is not specified, add-ons are enabled wherever applicable.
|
|
18420
|
+
*/
|
|
18421
|
+
export interface Schema$GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsSearchAddonSpec {
|
|
18422
|
+
/**
|
|
18423
|
+
* Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
|
|
18424
|
+
*/
|
|
18425
|
+
generativeAnswerAddOnDisabled?: boolean | null;
|
|
18426
|
+
/**
|
|
18427
|
+
* Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
|
|
18428
|
+
*/
|
|
18429
|
+
kpiPersonalizationAddOnDisabled?: boolean | null;
|
|
18430
|
+
/**
|
|
18431
|
+
* Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
|
|
18432
|
+
*/
|
|
18433
|
+
semanticAddOnDisabled?: boolean | null;
|
|
18434
|
+
}
|
|
18251
18435
|
/**
|
|
18252
18436
|
* Config to store data store type configuration for workspace data
|
|
18253
18437
|
*/
|
|
@@ -19227,6 +19411,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
19227
19411
|
* // "connectorType": "my_connectorType",
|
|
19228
19412
|
* // "createEuaSaas": false,
|
|
19229
19413
|
* // "createTime": "my_createTime",
|
|
19414
|
+
* // "dataProtectionPolicy": {},
|
|
19230
19415
|
* // "dataSource": "my_dataSource",
|
|
19231
19416
|
* // "destinationConfigs": [],
|
|
19232
19417
|
* // "dynamicTools": [],
|
|
@@ -19984,6 +20169,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
19984
20169
|
* // "connectorType": "my_connectorType",
|
|
19985
20170
|
* // "createEuaSaas": false,
|
|
19986
20171
|
* // "createTime": "my_createTime",
|
|
20172
|
+
* // "dataProtectionPolicy": {},
|
|
19987
20173
|
* // "dataSource": "my_dataSource",
|
|
19988
20174
|
* // "destinationConfigs": [],
|
|
19989
20175
|
* // "dynamicTools": [],
|
|
@@ -20039,6 +20225,154 @@ export declare namespace discoveryengine_v1 {
|
|
|
20039
20225
|
getDataConnector(params: Params$Resource$Projects$Locations$Collections$Getdataconnector, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataConnector>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataConnector>): void;
|
|
20040
20226
|
getDataConnector(params: Params$Resource$Projects$Locations$Collections$Getdataconnector, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataConnector>): void;
|
|
20041
20227
|
getDataConnector(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataConnector>): void;
|
|
20228
|
+
/**
|
|
20229
|
+
* Gets the IAM access control policy for a Collection. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
|
|
20230
|
+
* @example
|
|
20231
|
+
* ```js
|
|
20232
|
+
* // Before running the sample:
|
|
20233
|
+
* // - Enable the API at:
|
|
20234
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
20235
|
+
* // - Login into gcloud by running:
|
|
20236
|
+
* // ```sh
|
|
20237
|
+
* // $ gcloud auth application-default login
|
|
20238
|
+
* // ```
|
|
20239
|
+
* // - Install the npm module by running:
|
|
20240
|
+
* // ```sh
|
|
20241
|
+
* // $ npm install googleapis
|
|
20242
|
+
* // ```
|
|
20243
|
+
*
|
|
20244
|
+
* const {google} = require('googleapis');
|
|
20245
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
20246
|
+
*
|
|
20247
|
+
* async function main() {
|
|
20248
|
+
* const auth = new google.auth.GoogleAuth({
|
|
20249
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
20250
|
+
* scopes: [
|
|
20251
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
20252
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
20253
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
20254
|
+
* ],
|
|
20255
|
+
* });
|
|
20256
|
+
*
|
|
20257
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
20258
|
+
* const authClient = await auth.getClient();
|
|
20259
|
+
* google.options({auth: authClient});
|
|
20260
|
+
*
|
|
20261
|
+
* // Do the magic
|
|
20262
|
+
* const res = await discoveryengine.projects.locations.collections.getIamPolicy(
|
|
20263
|
+
* {
|
|
20264
|
+
* // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
20265
|
+
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
20266
|
+
* // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
20267
|
+
* resource:
|
|
20268
|
+
* 'projects/my-project/locations/my-location/collections/my-collection',
|
|
20269
|
+
* },
|
|
20270
|
+
* );
|
|
20271
|
+
* console.log(res.data);
|
|
20272
|
+
*
|
|
20273
|
+
* // Example response
|
|
20274
|
+
* // {
|
|
20275
|
+
* // "bindings": [],
|
|
20276
|
+
* // "etag": "my_etag",
|
|
20277
|
+
* // "version": 0
|
|
20278
|
+
* // }
|
|
20279
|
+
* }
|
|
20280
|
+
*
|
|
20281
|
+
* main().catch(e => {
|
|
20282
|
+
* console.error(e);
|
|
20283
|
+
* throw e;
|
|
20284
|
+
* });
|
|
20285
|
+
*
|
|
20286
|
+
* ```
|
|
20287
|
+
*
|
|
20288
|
+
* @param params - Parameters for request
|
|
20289
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
20290
|
+
* @param callback - Optional callback that handles the response.
|
|
20291
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
20292
|
+
*/
|
|
20293
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
20294
|
+
getIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
20295
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
20296
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
20297
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
20298
|
+
getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
20299
|
+
/**
|
|
20300
|
+
* Sets the IAM access control policy for a Collection. A `NOT_FOUND` error is returned if the resource does not exist. **Important:** When setting a policy directly on a Collection resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.
|
|
20301
|
+
* @example
|
|
20302
|
+
* ```js
|
|
20303
|
+
* // Before running the sample:
|
|
20304
|
+
* // - Enable the API at:
|
|
20305
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
20306
|
+
* // - Login into gcloud by running:
|
|
20307
|
+
* // ```sh
|
|
20308
|
+
* // $ gcloud auth application-default login
|
|
20309
|
+
* // ```
|
|
20310
|
+
* // - Install the npm module by running:
|
|
20311
|
+
* // ```sh
|
|
20312
|
+
* // $ npm install googleapis
|
|
20313
|
+
* // ```
|
|
20314
|
+
*
|
|
20315
|
+
* const {google} = require('googleapis');
|
|
20316
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
20317
|
+
*
|
|
20318
|
+
* async function main() {
|
|
20319
|
+
* const auth = new google.auth.GoogleAuth({
|
|
20320
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
20321
|
+
* scopes: [
|
|
20322
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
20323
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
20324
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
20325
|
+
* ],
|
|
20326
|
+
* });
|
|
20327
|
+
*
|
|
20328
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
20329
|
+
* const authClient = await auth.getClient();
|
|
20330
|
+
* google.options({auth: authClient});
|
|
20331
|
+
*
|
|
20332
|
+
* // Do the magic
|
|
20333
|
+
* const res = await discoveryengine.projects.locations.collections.setIamPolicy(
|
|
20334
|
+
* {
|
|
20335
|
+
* // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
20336
|
+
* resource:
|
|
20337
|
+
* 'projects/my-project/locations/my-location/collections/my-collection',
|
|
20338
|
+
*
|
|
20339
|
+
* // Request body metadata
|
|
20340
|
+
* requestBody: {
|
|
20341
|
+
* // request body parameters
|
|
20342
|
+
* // {
|
|
20343
|
+
* // "policy": {}
|
|
20344
|
+
* // }
|
|
20345
|
+
* },
|
|
20346
|
+
* },
|
|
20347
|
+
* );
|
|
20348
|
+
* console.log(res.data);
|
|
20349
|
+
*
|
|
20350
|
+
* // Example response
|
|
20351
|
+
* // {
|
|
20352
|
+
* // "bindings": [],
|
|
20353
|
+
* // "etag": "my_etag",
|
|
20354
|
+
* // "version": 0
|
|
20355
|
+
* // }
|
|
20356
|
+
* }
|
|
20357
|
+
*
|
|
20358
|
+
* main().catch(e => {
|
|
20359
|
+
* console.error(e);
|
|
20360
|
+
* throw e;
|
|
20361
|
+
* });
|
|
20362
|
+
*
|
|
20363
|
+
* ```
|
|
20364
|
+
*
|
|
20365
|
+
* @param params - Parameters for request
|
|
20366
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
20367
|
+
* @param callback - Optional callback that handles the response.
|
|
20368
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
20369
|
+
*/
|
|
20370
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
20371
|
+
setIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
20372
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
20373
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
20374
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
20375
|
+
setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
20042
20376
|
/**
|
|
20043
20377
|
* Updates a DataConnector.
|
|
20044
20378
|
* @example
|
|
@@ -20098,6 +20432,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
20098
20432
|
* // "connectorType": "my_connectorType",
|
|
20099
20433
|
* // "createEuaSaas": false,
|
|
20100
20434
|
* // "createTime": "my_createTime",
|
|
20435
|
+
* // "dataProtectionPolicy": {},
|
|
20101
20436
|
* // "dataSource": "my_dataSource",
|
|
20102
20437
|
* // "destinationConfigs": [],
|
|
20103
20438
|
* // "dynamicTools": [],
|
|
@@ -20152,6 +20487,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
20152
20487
|
* // "connectorType": "my_connectorType",
|
|
20153
20488
|
* // "createEuaSaas": false,
|
|
20154
20489
|
* // "createTime": "my_createTime",
|
|
20490
|
+
* // "dataProtectionPolicy": {},
|
|
20155
20491
|
* // "dataSource": "my_dataSource",
|
|
20156
20492
|
* // "destinationConfigs": [],
|
|
20157
20493
|
* // "dynamicTools": [],
|
|
@@ -20220,6 +20556,26 @@ export declare namespace discoveryengine_v1 {
|
|
|
20220
20556
|
*/
|
|
20221
20557
|
name?: string;
|
|
20222
20558
|
}
|
|
20559
|
+
export interface Params$Resource$Projects$Locations$Collections$Getiampolicy extends StandardParameters {
|
|
20560
|
+
/**
|
|
20561
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
20562
|
+
*/
|
|
20563
|
+
'options.requestedPolicyVersion'?: number;
|
|
20564
|
+
/**
|
|
20565
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
20566
|
+
*/
|
|
20567
|
+
resource?: string;
|
|
20568
|
+
}
|
|
20569
|
+
export interface Params$Resource$Projects$Locations$Collections$Setiampolicy extends StandardParameters {
|
|
20570
|
+
/**
|
|
20571
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
20572
|
+
*/
|
|
20573
|
+
resource?: string;
|
|
20574
|
+
/**
|
|
20575
|
+
* Request body metadata
|
|
20576
|
+
*/
|
|
20577
|
+
requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
|
|
20578
|
+
}
|
|
20223
20579
|
export interface Params$Resource$Projects$Locations$Collections$Updatedataconnector extends StandardParameters {
|
|
20224
20580
|
/**
|
|
20225
20581
|
* Identifier. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
|
|
@@ -20681,6 +21037,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
20681
21037
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
20682
21038
|
* // "contentConfig": "my_contentConfig",
|
|
20683
21039
|
* // "createTime": "my_createTime",
|
|
21040
|
+
* // "dataProtectionPolicy": {},
|
|
20684
21041
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
20685
21042
|
* // "displayName": "my_displayName",
|
|
20686
21043
|
* // "documentProcessingConfig": {},
|
|
@@ -20849,6 +21206,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
20849
21206
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
20850
21207
|
* // "contentConfig": "my_contentConfig",
|
|
20851
21208
|
* // "createTime": "my_createTime",
|
|
21209
|
+
* // "dataProtectionPolicy": {},
|
|
20852
21210
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
20853
21211
|
* // "displayName": "my_displayName",
|
|
20854
21212
|
* // "documentProcessingConfig": {},
|
|
@@ -20885,6 +21243,78 @@ export declare namespace discoveryengine_v1 {
|
|
|
20885
21243
|
get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
20886
21244
|
get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
20887
21245
|
get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
21246
|
+
/**
|
|
21247
|
+
* Gets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
|
|
21248
|
+
* @example
|
|
21249
|
+
* ```js
|
|
21250
|
+
* // Before running the sample:
|
|
21251
|
+
* // - Enable the API at:
|
|
21252
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
21253
|
+
* // - Login into gcloud by running:
|
|
21254
|
+
* // ```sh
|
|
21255
|
+
* // $ gcloud auth application-default login
|
|
21256
|
+
* // ```
|
|
21257
|
+
* // - Install the npm module by running:
|
|
21258
|
+
* // ```sh
|
|
21259
|
+
* // $ npm install googleapis
|
|
21260
|
+
* // ```
|
|
21261
|
+
*
|
|
21262
|
+
* const {google} = require('googleapis');
|
|
21263
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
21264
|
+
*
|
|
21265
|
+
* async function main() {
|
|
21266
|
+
* const auth = new google.auth.GoogleAuth({
|
|
21267
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
21268
|
+
* scopes: [
|
|
21269
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
21270
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
21271
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
21272
|
+
* ],
|
|
21273
|
+
* });
|
|
21274
|
+
*
|
|
21275
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
21276
|
+
* const authClient = await auth.getClient();
|
|
21277
|
+
* google.options({auth: authClient});
|
|
21278
|
+
*
|
|
21279
|
+
* // Do the magic
|
|
21280
|
+
* const res =
|
|
21281
|
+
* await discoveryengine.projects.locations.collections.dataStores.getIamPolicy(
|
|
21282
|
+
* {
|
|
21283
|
+
* // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
21284
|
+
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
21285
|
+
* // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
21286
|
+
* resource:
|
|
21287
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
21288
|
+
* },
|
|
21289
|
+
* );
|
|
21290
|
+
* console.log(res.data);
|
|
21291
|
+
*
|
|
21292
|
+
* // Example response
|
|
21293
|
+
* // {
|
|
21294
|
+
* // "bindings": [],
|
|
21295
|
+
* // "etag": "my_etag",
|
|
21296
|
+
* // "version": 0
|
|
21297
|
+
* // }
|
|
21298
|
+
* }
|
|
21299
|
+
*
|
|
21300
|
+
* main().catch(e => {
|
|
21301
|
+
* console.error(e);
|
|
21302
|
+
* throw e;
|
|
21303
|
+
* });
|
|
21304
|
+
*
|
|
21305
|
+
* ```
|
|
21306
|
+
*
|
|
21307
|
+
* @param params - Parameters for request
|
|
21308
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
21309
|
+
* @param callback - Optional callback that handles the response.
|
|
21310
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
21311
|
+
*/
|
|
21312
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
21313
|
+
getIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
21314
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
21315
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
21316
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
21317
|
+
getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
20888
21318
|
/**
|
|
20889
21319
|
* Gets the SiteSearchEngine.
|
|
20890
21320
|
* @example
|
|
@@ -21078,6 +21508,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
21078
21508
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
21079
21509
|
* // "contentConfig": "my_contentConfig",
|
|
21080
21510
|
* // "createTime": "my_createTime",
|
|
21511
|
+
* // "dataProtectionPolicy": {},
|
|
21081
21512
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
21082
21513
|
* // "displayName": "my_displayName",
|
|
21083
21514
|
* // "documentProcessingConfig": {},
|
|
@@ -21108,6 +21539,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
21108
21539
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
21109
21540
|
* // "contentConfig": "my_contentConfig",
|
|
21110
21541
|
* // "createTime": "my_createTime",
|
|
21542
|
+
* // "dataProtectionPolicy": {},
|
|
21111
21543
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
21112
21544
|
* // "displayName": "my_displayName",
|
|
21113
21545
|
* // "documentProcessingConfig": {},
|
|
@@ -21144,6 +21576,84 @@ export declare namespace discoveryengine_v1 {
|
|
|
21144
21576
|
patch(params: Params$Resource$Projects$Locations$Collections$Datastores$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
21145
21577
|
patch(params: Params$Resource$Projects$Locations$Collections$Datastores$Patch, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
21146
21578
|
patch(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
21579
|
+
/**
|
|
21580
|
+
* Sets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. **Important:** When setting a policy directly on a DataStore resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.
|
|
21581
|
+
* @example
|
|
21582
|
+
* ```js
|
|
21583
|
+
* // Before running the sample:
|
|
21584
|
+
* // - Enable the API at:
|
|
21585
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
21586
|
+
* // - Login into gcloud by running:
|
|
21587
|
+
* // ```sh
|
|
21588
|
+
* // $ gcloud auth application-default login
|
|
21589
|
+
* // ```
|
|
21590
|
+
* // - Install the npm module by running:
|
|
21591
|
+
* // ```sh
|
|
21592
|
+
* // $ npm install googleapis
|
|
21593
|
+
* // ```
|
|
21594
|
+
*
|
|
21595
|
+
* const {google} = require('googleapis');
|
|
21596
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
21597
|
+
*
|
|
21598
|
+
* async function main() {
|
|
21599
|
+
* const auth = new google.auth.GoogleAuth({
|
|
21600
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
21601
|
+
* scopes: [
|
|
21602
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
21603
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
21604
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
21605
|
+
* ],
|
|
21606
|
+
* });
|
|
21607
|
+
*
|
|
21608
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
21609
|
+
* const authClient = await auth.getClient();
|
|
21610
|
+
* google.options({auth: authClient});
|
|
21611
|
+
*
|
|
21612
|
+
* // Do the magic
|
|
21613
|
+
* const res =
|
|
21614
|
+
* await discoveryengine.projects.locations.collections.dataStores.setIamPolicy(
|
|
21615
|
+
* {
|
|
21616
|
+
* // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
21617
|
+
* resource:
|
|
21618
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
21619
|
+
*
|
|
21620
|
+
* // Request body metadata
|
|
21621
|
+
* requestBody: {
|
|
21622
|
+
* // request body parameters
|
|
21623
|
+
* // {
|
|
21624
|
+
* // "policy": {}
|
|
21625
|
+
* // }
|
|
21626
|
+
* },
|
|
21627
|
+
* },
|
|
21628
|
+
* );
|
|
21629
|
+
* console.log(res.data);
|
|
21630
|
+
*
|
|
21631
|
+
* // Example response
|
|
21632
|
+
* // {
|
|
21633
|
+
* // "bindings": [],
|
|
21634
|
+
* // "etag": "my_etag",
|
|
21635
|
+
* // "version": 0
|
|
21636
|
+
* // }
|
|
21637
|
+
* }
|
|
21638
|
+
*
|
|
21639
|
+
* main().catch(e => {
|
|
21640
|
+
* console.error(e);
|
|
21641
|
+
* throw e;
|
|
21642
|
+
* });
|
|
21643
|
+
*
|
|
21644
|
+
* ```
|
|
21645
|
+
*
|
|
21646
|
+
* @param params - Parameters for request
|
|
21647
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
21648
|
+
* @param callback - Optional callback that handles the response.
|
|
21649
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
21650
|
+
*/
|
|
21651
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
21652
|
+
setIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
21653
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
21654
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
21655
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
21656
|
+
setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
21147
21657
|
/**
|
|
21148
21658
|
* Trains a custom model.
|
|
21149
21659
|
* @example
|
|
@@ -21292,6 +21802,16 @@ export declare namespace discoveryengine_v1 {
|
|
|
21292
21802
|
*/
|
|
21293
21803
|
name?: string;
|
|
21294
21804
|
}
|
|
21805
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy extends StandardParameters {
|
|
21806
|
+
/**
|
|
21807
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
21808
|
+
*/
|
|
21809
|
+
'options.requestedPolicyVersion'?: number;
|
|
21810
|
+
/**
|
|
21811
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
21812
|
+
*/
|
|
21813
|
+
resource?: string;
|
|
21814
|
+
}
|
|
21295
21815
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine extends StandardParameters {
|
|
21296
21816
|
/**
|
|
21297
21817
|
* Required. Resource name of SiteSearchEngine, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/siteSearchEngine`. If the caller does not have permission to access the [SiteSearchEngine], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
|
|
@@ -21330,6 +21850,16 @@ export declare namespace discoveryengine_v1 {
|
|
|
21330
21850
|
*/
|
|
21331
21851
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1DataStore;
|
|
21332
21852
|
}
|
|
21853
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy extends StandardParameters {
|
|
21854
|
+
/**
|
|
21855
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
21856
|
+
*/
|
|
21857
|
+
resource?: string;
|
|
21858
|
+
/**
|
|
21859
|
+
* Request body metadata
|
|
21860
|
+
*/
|
|
21861
|
+
requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
|
|
21862
|
+
}
|
|
21333
21863
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Traincustommodel extends StandardParameters {
|
|
21334
21864
|
/**
|
|
21335
21865
|
* Required. The resource name of the Data Store, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models.
|
|
@@ -25442,6 +25972,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
25442
25972
|
* // "relevanceScoreSpec": {},
|
|
25443
25973
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
25444
25974
|
* // "safeSearch": false,
|
|
25975
|
+
* // "searchAddonSpec": {},
|
|
25445
25976
|
* // "searchAsYouTypeSpec": {},
|
|
25446
25977
|
* // "session": "my_session",
|
|
25447
25978
|
* // "sessionSpec": {},
|
|
@@ -25568,6 +26099,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
25568
26099
|
* // "relevanceScoreSpec": {},
|
|
25569
26100
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
25570
26101
|
* // "safeSearch": false,
|
|
26102
|
+
* // "searchAddonSpec": {},
|
|
25571
26103
|
* // "searchAsYouTypeSpec": {},
|
|
25572
26104
|
* // "session": "my_session",
|
|
25573
26105
|
* // "sessionSpec": {},
|
|
@@ -28648,7 +29180,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
28648
29180
|
* 'placeholder-value',
|
|
28649
29181
|
* // 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).
|
|
28650
29182
|
* languageCode: 'placeholder-value',
|
|
28651
|
-
* // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
29183
|
+
* // 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.
|
|
28652
29184
|
* modelInfoView: 'placeholder-value',
|
|
28653
29185
|
* // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
|
|
28654
29186
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
|
|
@@ -28884,7 +29416,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
28884
29416
|
*/
|
|
28885
29417
|
languageCode?: string;
|
|
28886
29418
|
/**
|
|
28887
|
-
* Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
29419
|
+
* 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.
|
|
28888
29420
|
*/
|
|
28889
29421
|
modelInfoView?: string;
|
|
28890
29422
|
/**
|
|
@@ -28986,6 +29518,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
28986
29518
|
* // "observabilityConfig": {},
|
|
28987
29519
|
* // "procurementContactEmails": [],
|
|
28988
29520
|
* // "searchEngineConfig": {},
|
|
29521
|
+
* // "sessionConfig": {},
|
|
28989
29522
|
* // "solutionType": "my_solutionType",
|
|
28990
29523
|
* // "updateTime": "my_updateTime"
|
|
28991
29524
|
* // }
|
|
@@ -29155,6 +29688,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
29155
29688
|
* // "observabilityConfig": {},
|
|
29156
29689
|
* // "procurementContactEmails": [],
|
|
29157
29690
|
* // "searchEngineConfig": {},
|
|
29691
|
+
* // "sessionConfig": {},
|
|
29158
29692
|
* // "solutionType": "my_solutionType",
|
|
29159
29693
|
* // "updateTime": "my_updateTime"
|
|
29160
29694
|
* // }
|
|
@@ -29390,6 +29924,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
29390
29924
|
* // "observabilityConfig": {},
|
|
29391
29925
|
* // "procurementContactEmails": [],
|
|
29392
29926
|
* // "searchEngineConfig": {},
|
|
29927
|
+
* // "sessionConfig": {},
|
|
29393
29928
|
* // "solutionType": "my_solutionType",
|
|
29394
29929
|
* // "updateTime": "my_updateTime"
|
|
29395
29930
|
* // }
|
|
@@ -29422,6 +29957,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
29422
29957
|
* // "observabilityConfig": {},
|
|
29423
29958
|
* // "procurementContactEmails": [],
|
|
29424
29959
|
* // "searchEngineConfig": {},
|
|
29960
|
+
* // "sessionConfig": {},
|
|
29425
29961
|
* // "solutionType": "my_solutionType",
|
|
29426
29962
|
* // "updateTime": "my_updateTime"
|
|
29427
29963
|
* // }
|
|
@@ -33253,6 +33789,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
33253
33789
|
* // "relevanceScoreSpec": {},
|
|
33254
33790
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
33255
33791
|
* // "safeSearch": false,
|
|
33792
|
+
* // "searchAddonSpec": {},
|
|
33256
33793
|
* // "searchAsYouTypeSpec": {},
|
|
33257
33794
|
* // "session": "my_session",
|
|
33258
33795
|
* // "sessionSpec": {},
|
|
@@ -33379,6 +33916,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
33379
33916
|
* // "relevanceScoreSpec": {},
|
|
33380
33917
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
33381
33918
|
* // "safeSearch": false,
|
|
33919
|
+
* // "searchAddonSpec": {},
|
|
33382
33920
|
* // "searchAsYouTypeSpec": {},
|
|
33383
33921
|
* // "session": "my_session",
|
|
33384
33922
|
* // "sessionSpec": {},
|
|
@@ -34244,7 +34782,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
34244
34782
|
* 'placeholder-value',
|
|
34245
34783
|
* // 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).
|
|
34246
34784
|
* languageCode: 'placeholder-value',
|
|
34247
|
-
* // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
34785
|
+
* // 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.
|
|
34248
34786
|
* modelInfoView: 'placeholder-value',
|
|
34249
34787
|
* // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
|
|
34250
34788
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/widgetConfigs/my-widgetConfig',
|
|
@@ -34480,7 +35018,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
34480
35018
|
*/
|
|
34481
35019
|
languageCode?: string;
|
|
34482
35020
|
/**
|
|
34483
|
-
* Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
35021
|
+
* 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.
|
|
34484
35022
|
*/
|
|
34485
35023
|
modelInfoView?: string;
|
|
34486
35024
|
/**
|
|
@@ -34832,6 +35370,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
34832
35370
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
34833
35371
|
* // "contentConfig": "my_contentConfig",
|
|
34834
35372
|
* // "createTime": "my_createTime",
|
|
35373
|
+
* // "dataProtectionPolicy": {},
|
|
34835
35374
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
34836
35375
|
* // "displayName": "my_displayName",
|
|
34837
35376
|
* // "documentProcessingConfig": {},
|
|
@@ -34998,6 +35537,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
34998
35537
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
34999
35538
|
* // "contentConfig": "my_contentConfig",
|
|
35000
35539
|
* // "createTime": "my_createTime",
|
|
35540
|
+
* // "dataProtectionPolicy": {},
|
|
35001
35541
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
35002
35542
|
* // "displayName": "my_displayName",
|
|
35003
35543
|
* // "documentProcessingConfig": {},
|
|
@@ -35034,6 +35574,75 @@ export declare namespace discoveryengine_v1 {
|
|
|
35034
35574
|
get(params: Params$Resource$Projects$Locations$Datastores$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
35035
35575
|
get(params: Params$Resource$Projects$Locations$Datastores$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
35036
35576
|
get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
35577
|
+
/**
|
|
35578
|
+
* Gets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
|
|
35579
|
+
* @example
|
|
35580
|
+
* ```js
|
|
35581
|
+
* // Before running the sample:
|
|
35582
|
+
* // - Enable the API at:
|
|
35583
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
35584
|
+
* // - Login into gcloud by running:
|
|
35585
|
+
* // ```sh
|
|
35586
|
+
* // $ gcloud auth application-default login
|
|
35587
|
+
* // ```
|
|
35588
|
+
* // - Install the npm module by running:
|
|
35589
|
+
* // ```sh
|
|
35590
|
+
* // $ npm install googleapis
|
|
35591
|
+
* // ```
|
|
35592
|
+
*
|
|
35593
|
+
* const {google} = require('googleapis');
|
|
35594
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
35595
|
+
*
|
|
35596
|
+
* async function main() {
|
|
35597
|
+
* const auth = new google.auth.GoogleAuth({
|
|
35598
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
35599
|
+
* scopes: [
|
|
35600
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
35601
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
35602
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
35603
|
+
* ],
|
|
35604
|
+
* });
|
|
35605
|
+
*
|
|
35606
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
35607
|
+
* const authClient = await auth.getClient();
|
|
35608
|
+
* google.options({auth: authClient});
|
|
35609
|
+
*
|
|
35610
|
+
* // Do the magic
|
|
35611
|
+
* const res = await discoveryengine.projects.locations.dataStores.getIamPolicy({
|
|
35612
|
+
* // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
35613
|
+
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
35614
|
+
* // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
35615
|
+
* resource:
|
|
35616
|
+
* 'projects/my-project/locations/my-location/dataStores/my-dataStore',
|
|
35617
|
+
* });
|
|
35618
|
+
* console.log(res.data);
|
|
35619
|
+
*
|
|
35620
|
+
* // Example response
|
|
35621
|
+
* // {
|
|
35622
|
+
* // "bindings": [],
|
|
35623
|
+
* // "etag": "my_etag",
|
|
35624
|
+
* // "version": 0
|
|
35625
|
+
* // }
|
|
35626
|
+
* }
|
|
35627
|
+
*
|
|
35628
|
+
* main().catch(e => {
|
|
35629
|
+
* console.error(e);
|
|
35630
|
+
* throw e;
|
|
35631
|
+
* });
|
|
35632
|
+
*
|
|
35633
|
+
* ```
|
|
35634
|
+
*
|
|
35635
|
+
* @param params - Parameters for request
|
|
35636
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
35637
|
+
* @param callback - Optional callback that handles the response.
|
|
35638
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
35639
|
+
*/
|
|
35640
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
35641
|
+
getIamPolicy(params?: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
35642
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
35643
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
35644
|
+
getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
35645
|
+
getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
35037
35646
|
/**
|
|
35038
35647
|
* Gets the SiteSearchEngine.
|
|
35039
35648
|
* @example
|
|
@@ -35222,6 +35831,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
35222
35831
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
35223
35832
|
* // "contentConfig": "my_contentConfig",
|
|
35224
35833
|
* // "createTime": "my_createTime",
|
|
35834
|
+
* // "dataProtectionPolicy": {},
|
|
35225
35835
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
35226
35836
|
* // "displayName": "my_displayName",
|
|
35227
35837
|
* // "documentProcessingConfig": {},
|
|
@@ -35252,6 +35862,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
35252
35862
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
35253
35863
|
* // "contentConfig": "my_contentConfig",
|
|
35254
35864
|
* // "createTime": "my_createTime",
|
|
35865
|
+
* // "dataProtectionPolicy": {},
|
|
35255
35866
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
35256
35867
|
* // "displayName": "my_displayName",
|
|
35257
35868
|
* // "documentProcessingConfig": {},
|
|
@@ -35288,6 +35899,81 @@ export declare namespace discoveryengine_v1 {
|
|
|
35288
35899
|
patch(params: Params$Resource$Projects$Locations$Datastores$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
35289
35900
|
patch(params: Params$Resource$Projects$Locations$Datastores$Patch, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
35290
35901
|
patch(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
|
|
35902
|
+
/**
|
|
35903
|
+
* Sets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. **Important:** When setting a policy directly on a DataStore resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.
|
|
35904
|
+
* @example
|
|
35905
|
+
* ```js
|
|
35906
|
+
* // Before running the sample:
|
|
35907
|
+
* // - Enable the API at:
|
|
35908
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
35909
|
+
* // - Login into gcloud by running:
|
|
35910
|
+
* // ```sh
|
|
35911
|
+
* // $ gcloud auth application-default login
|
|
35912
|
+
* // ```
|
|
35913
|
+
* // - Install the npm module by running:
|
|
35914
|
+
* // ```sh
|
|
35915
|
+
* // $ npm install googleapis
|
|
35916
|
+
* // ```
|
|
35917
|
+
*
|
|
35918
|
+
* const {google} = require('googleapis');
|
|
35919
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
35920
|
+
*
|
|
35921
|
+
* async function main() {
|
|
35922
|
+
* const auth = new google.auth.GoogleAuth({
|
|
35923
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
35924
|
+
* scopes: [
|
|
35925
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
35926
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
35927
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
35928
|
+
* ],
|
|
35929
|
+
* });
|
|
35930
|
+
*
|
|
35931
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
35932
|
+
* const authClient = await auth.getClient();
|
|
35933
|
+
* google.options({auth: authClient});
|
|
35934
|
+
*
|
|
35935
|
+
* // Do the magic
|
|
35936
|
+
* const res = await discoveryengine.projects.locations.dataStores.setIamPolicy({
|
|
35937
|
+
* // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
35938
|
+
* resource:
|
|
35939
|
+
* 'projects/my-project/locations/my-location/dataStores/my-dataStore',
|
|
35940
|
+
*
|
|
35941
|
+
* // Request body metadata
|
|
35942
|
+
* requestBody: {
|
|
35943
|
+
* // request body parameters
|
|
35944
|
+
* // {
|
|
35945
|
+
* // "policy": {}
|
|
35946
|
+
* // }
|
|
35947
|
+
* },
|
|
35948
|
+
* });
|
|
35949
|
+
* console.log(res.data);
|
|
35950
|
+
*
|
|
35951
|
+
* // Example response
|
|
35952
|
+
* // {
|
|
35953
|
+
* // "bindings": [],
|
|
35954
|
+
* // "etag": "my_etag",
|
|
35955
|
+
* // "version": 0
|
|
35956
|
+
* // }
|
|
35957
|
+
* }
|
|
35958
|
+
*
|
|
35959
|
+
* main().catch(e => {
|
|
35960
|
+
* console.error(e);
|
|
35961
|
+
* throw e;
|
|
35962
|
+
* });
|
|
35963
|
+
*
|
|
35964
|
+
* ```
|
|
35965
|
+
*
|
|
35966
|
+
* @param params - Parameters for request
|
|
35967
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
35968
|
+
* @param callback - Optional callback that handles the response.
|
|
35969
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
35970
|
+
*/
|
|
35971
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
35972
|
+
setIamPolicy(params?: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
35973
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
35974
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
35975
|
+
setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
35976
|
+
setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
|
|
35291
35977
|
}
|
|
35292
35978
|
export interface Params$Resource$Projects$Locations$Datastores$Completequery extends StandardParameters {
|
|
35293
35979
|
/**
|
|
@@ -35353,6 +36039,16 @@ export declare namespace discoveryengine_v1 {
|
|
|
35353
36039
|
*/
|
|
35354
36040
|
name?: string;
|
|
35355
36041
|
}
|
|
36042
|
+
export interface Params$Resource$Projects$Locations$Datastores$Getiampolicy extends StandardParameters {
|
|
36043
|
+
/**
|
|
36044
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
36045
|
+
*/
|
|
36046
|
+
'options.requestedPolicyVersion'?: number;
|
|
36047
|
+
/**
|
|
36048
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
36049
|
+
*/
|
|
36050
|
+
resource?: string;
|
|
36051
|
+
}
|
|
35356
36052
|
export interface Params$Resource$Projects$Locations$Datastores$Getsitesearchengine extends StandardParameters {
|
|
35357
36053
|
/**
|
|
35358
36054
|
* Required. Resource name of SiteSearchEngine, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/siteSearchEngine`. If the caller does not have permission to access the [SiteSearchEngine], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
|
|
@@ -35391,6 +36087,16 @@ export declare namespace discoveryengine_v1 {
|
|
|
35391
36087
|
*/
|
|
35392
36088
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1DataStore;
|
|
35393
36089
|
}
|
|
36090
|
+
export interface Params$Resource$Projects$Locations$Datastores$Setiampolicy extends StandardParameters {
|
|
36091
|
+
/**
|
|
36092
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
|
|
36093
|
+
*/
|
|
36094
|
+
resource?: string;
|
|
36095
|
+
/**
|
|
36096
|
+
* Request body metadata
|
|
36097
|
+
*/
|
|
36098
|
+
requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
|
|
36099
|
+
}
|
|
35394
36100
|
export class Resource$Projects$Locations$Datastores$Branches {
|
|
35395
36101
|
context: APIRequestContext;
|
|
35396
36102
|
documents: Resource$Projects$Locations$Datastores$Branches$Documents;
|
|
@@ -39177,6 +39883,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
39177
39883
|
* // "relevanceScoreSpec": {},
|
|
39178
39884
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
39179
39885
|
* // "safeSearch": false,
|
|
39886
|
+
* // "searchAddonSpec": {},
|
|
39180
39887
|
* // "searchAsYouTypeSpec": {},
|
|
39181
39888
|
* // "session": "my_session",
|
|
39182
39889
|
* // "sessionSpec": {},
|
|
@@ -39302,6 +40009,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
39302
40009
|
* // "relevanceScoreSpec": {},
|
|
39303
40010
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
39304
40011
|
* // "safeSearch": false,
|
|
40012
|
+
* // "searchAddonSpec": {},
|
|
39305
40013
|
* // "searchAsYouTypeSpec": {},
|
|
39306
40014
|
* // "session": "my_session",
|
|
39307
40015
|
* // "sessionSpec": {},
|
|
@@ -41822,7 +42530,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
41822
42530
|
* 'placeholder-value',
|
|
41823
42531
|
* // 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).
|
|
41824
42532
|
* languageCode: 'placeholder-value',
|
|
41825
|
-
* // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
42533
|
+
* // 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.
|
|
41826
42534
|
* modelInfoView: 'placeholder-value',
|
|
41827
42535
|
* // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
|
|
41828
42536
|
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
|
|
@@ -42055,7 +42763,7 @@ export declare namespace discoveryengine_v1 {
|
|
|
42055
42763
|
*/
|
|
42056
42764
|
languageCode?: string;
|
|
42057
42765
|
/**
|
|
42058
|
-
* Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
42766
|
+
* 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.
|
|
42059
42767
|
*/
|
|
42060
42768
|
modelInfoView?: string;
|
|
42061
42769
|
/**
|