@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/v1.ts
CHANGED
|
@@ -1750,6 +1750,10 @@ export namespace discoveryengine_v1 {
|
|
|
1750
1750
|
* Required. Model name (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). See `model_mixture` for the list of allowed models.
|
|
1751
1751
|
*/
|
|
1752
1752
|
name?: string | null;
|
|
1753
|
+
/**
|
|
1754
|
+
* Optional. Sent as Vertex `ThinkingConfig.thinking_level`.
|
|
1755
|
+
*/
|
|
1756
|
+
thinkingLevel?: string | null;
|
|
1753
1757
|
/**
|
|
1754
1758
|
* 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.
|
|
1755
1759
|
*/
|
|
@@ -4197,7 +4201,7 @@ export namespace discoveryengine_v1 {
|
|
|
4197
4201
|
*/
|
|
4198
4202
|
displayName?: string | null;
|
|
4199
4203
|
/**
|
|
4200
|
-
* 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`
|
|
4204
|
+
* 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`
|
|
4201
4205
|
*/
|
|
4202
4206
|
features?: {[key: string]: string} | null;
|
|
4203
4207
|
/**
|
|
@@ -4240,6 +4244,10 @@ export namespace discoveryengine_v1 {
|
|
|
4240
4244
|
* Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
|
|
4241
4245
|
*/
|
|
4242
4246
|
searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig;
|
|
4247
|
+
/**
|
|
4248
|
+
* Optional. Non-empty default. Session config for the engine.
|
|
4249
|
+
*/
|
|
4250
|
+
sessionConfig?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig;
|
|
4243
4251
|
/**
|
|
4244
4252
|
* Additional config specs for a `similar-items` engine.
|
|
4245
4253
|
*/
|
|
@@ -6579,6 +6587,28 @@ export namespace discoveryengine_v1 {
|
|
|
6579
6587
|
*/
|
|
6580
6588
|
userPseudoId?: string | null;
|
|
6581
6589
|
}
|
|
6590
|
+
/**
|
|
6591
|
+
* Configuration for the session.
|
|
6592
|
+
*/
|
|
6593
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig {
|
|
6594
|
+
/**
|
|
6595
|
+
* Optional. Session management policy that defines who will manage the session.
|
|
6596
|
+
*/
|
|
6597
|
+
sessionManagementPolicy?: string | null;
|
|
6598
|
+
/**
|
|
6599
|
+
* Optional. The TTL for the session. If unset, the default value is 60 days.
|
|
6600
|
+
*/
|
|
6601
|
+
sessionTtl?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl;
|
|
6602
|
+
}
|
|
6603
|
+
/**
|
|
6604
|
+
* Defines the TTL for sessions.
|
|
6605
|
+
*/
|
|
6606
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl {
|
|
6607
|
+
/**
|
|
6608
|
+
* Defines the number of days for session TTL.
|
|
6609
|
+
*/
|
|
6610
|
+
days?: number | null;
|
|
6611
|
+
}
|
|
6582
6612
|
/**
|
|
6583
6613
|
* Represents a turn, including a query from the user and a answer from service.
|
|
6584
6614
|
*/
|
|
@@ -8067,6 +8097,10 @@ export namespace discoveryengine_v1 {
|
|
|
8067
8097
|
* Optional. List of banned phrases.
|
|
8068
8098
|
*/
|
|
8069
8099
|
bannedPhrases?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase[];
|
|
8100
|
+
/**
|
|
8101
|
+
* Optional. Data protection policy to be used for sanitizing file uploads.
|
|
8102
|
+
*/
|
|
8103
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
|
|
8070
8104
|
/**
|
|
8071
8105
|
* Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
|
|
8072
8106
|
*/
|
|
@@ -8872,6 +8906,24 @@ export namespace discoveryengine_v1 {
|
|
|
8872
8906
|
*/
|
|
8873
8907
|
updateTime?: string | null;
|
|
8874
8908
|
}
|
|
8909
|
+
/**
|
|
8910
|
+
* Contains the data protection policy config for a DataStore or a connector.
|
|
8911
|
+
*/
|
|
8912
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy {
|
|
8913
|
+
/**
|
|
8914
|
+
* Optional. Specifies the sensitive data protection policy for the connector source.
|
|
8915
|
+
*/
|
|
8916
|
+
sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy;
|
|
8917
|
+
}
|
|
8918
|
+
/**
|
|
8919
|
+
* Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
|
|
8920
|
+
*/
|
|
8921
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy {
|
|
8922
|
+
/**
|
|
8923
|
+
* Optional. Specifies the resource name of the Sensitive Data Protection content policy.
|
|
8924
|
+
*/
|
|
8925
|
+
policy?: string | null;
|
|
8926
|
+
}
|
|
8875
8927
|
/**
|
|
8876
8928
|
* DataStore captures global settings and configs at the DataStore level.
|
|
8877
8929
|
*/
|
|
@@ -8908,6 +8960,10 @@ export namespace discoveryengine_v1 {
|
|
|
8908
8960
|
* Output only. Timestamp the DataStore was created at.
|
|
8909
8961
|
*/
|
|
8910
8962
|
createTime?: string | null;
|
|
8963
|
+
/**
|
|
8964
|
+
* Optional. Specifies the data protection policy for the data store.
|
|
8965
|
+
*/
|
|
8966
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy;
|
|
8911
8967
|
/**
|
|
8912
8968
|
* Output only. The id of the default Schema associated to this data store.
|
|
8913
8969
|
*/
|
|
@@ -9413,7 +9469,7 @@ export namespace discoveryengine_v1 {
|
|
|
9413
9469
|
*/
|
|
9414
9470
|
displayName?: string | null;
|
|
9415
9471
|
/**
|
|
9416
|
-
* 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`
|
|
9472
|
+
* 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`
|
|
9417
9473
|
*/
|
|
9418
9474
|
features?: {[key: string]: string} | null;
|
|
9419
9475
|
/**
|
|
@@ -9452,6 +9508,10 @@ export namespace discoveryengine_v1 {
|
|
|
9452
9508
|
* Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
|
|
9453
9509
|
*/
|
|
9454
9510
|
searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig;
|
|
9511
|
+
/**
|
|
9512
|
+
* Optional. Non-empty default. Session config for the engine.
|
|
9513
|
+
*/
|
|
9514
|
+
sessionConfig?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfig;
|
|
9455
9515
|
/**
|
|
9456
9516
|
* Required. The solutions of the engine.
|
|
9457
9517
|
*/
|
|
@@ -11148,6 +11208,28 @@ export namespace discoveryengine_v1 {
|
|
|
11148
11208
|
*/
|
|
11149
11209
|
mode?: string | null;
|
|
11150
11210
|
}
|
|
11211
|
+
/**
|
|
11212
|
+
* Configuration for the session.
|
|
11213
|
+
*/
|
|
11214
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfig {
|
|
11215
|
+
/**
|
|
11216
|
+
* Optional. Session management policy that defines who will manage the session.
|
|
11217
|
+
*/
|
|
11218
|
+
sessionManagementPolicy?: string | null;
|
|
11219
|
+
/**
|
|
11220
|
+
* Optional. The TTL for the session. If unset, the default value is 60 days.
|
|
11221
|
+
*/
|
|
11222
|
+
sessionTtl?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl;
|
|
11223
|
+
}
|
|
11224
|
+
/**
|
|
11225
|
+
* Defines the TTL for sessions.
|
|
11226
|
+
*/
|
|
11227
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl {
|
|
11228
|
+
/**
|
|
11229
|
+
* Defines the number of days for session TTL.
|
|
11230
|
+
*/
|
|
11231
|
+
days?: number | null;
|
|
11232
|
+
}
|
|
11151
11233
|
/**
|
|
11152
11234
|
* Metadata related to the progress of the CrawlRateManagementService.SetDedicatedCrawlRate operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
11153
11235
|
*/
|
|
@@ -12484,6 +12566,10 @@ export namespace discoveryengine_v1 {
|
|
|
12484
12566
|
* Output only. Timestamp the DataConnector was created at.
|
|
12485
12567
|
*/
|
|
12486
12568
|
createTime?: string | null;
|
|
12569
|
+
/**
|
|
12570
|
+
* Optional. Specifies the data protection policy for the connector.
|
|
12571
|
+
*/
|
|
12572
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
|
|
12487
12573
|
/**
|
|
12488
12574
|
* 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).
|
|
12489
12575
|
*/
|
|
@@ -12747,6 +12833,24 @@ export namespace discoveryengine_v1 {
|
|
|
12747
12833
|
*/
|
|
12748
12834
|
startingSchema?: Schema$GoogleCloudDiscoveryengineV1Schema;
|
|
12749
12835
|
}
|
|
12836
|
+
/**
|
|
12837
|
+
* Contains the data protection policy config for a DataStore or a connector.
|
|
12838
|
+
*/
|
|
12839
|
+
export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy {
|
|
12840
|
+
/**
|
|
12841
|
+
* Optional. Specifies the sensitive data protection policy for the connector source.
|
|
12842
|
+
*/
|
|
12843
|
+
sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy;
|
|
12844
|
+
}
|
|
12845
|
+
/**
|
|
12846
|
+
* Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
|
|
12847
|
+
*/
|
|
12848
|
+
export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy {
|
|
12849
|
+
/**
|
|
12850
|
+
* Optional. Specifies the resource name of the Sensitive Data Protection content policy.
|
|
12851
|
+
*/
|
|
12852
|
+
policy?: string | null;
|
|
12853
|
+
}
|
|
12750
12854
|
/**
|
|
12751
12855
|
* DataStore captures global settings and configs at the DataStore level.
|
|
12752
12856
|
*/
|
|
@@ -12783,6 +12887,10 @@ export namespace discoveryengine_v1 {
|
|
|
12783
12887
|
* Output only. Timestamp the DataStore was created at.
|
|
12784
12888
|
*/
|
|
12785
12889
|
createTime?: string | null;
|
|
12890
|
+
/**
|
|
12891
|
+
* Optional. Specifies the data protection policy for the data store.
|
|
12892
|
+
*/
|
|
12893
|
+
dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
|
|
12786
12894
|
/**
|
|
12787
12895
|
* Output only. The id of the default Schema associated to this data store.
|
|
12788
12896
|
*/
|
|
@@ -13529,7 +13637,7 @@ export namespace discoveryengine_v1 {
|
|
|
13529
13637
|
*/
|
|
13530
13638
|
displayName?: string | null;
|
|
13531
13639
|
/**
|
|
13532
|
-
* 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`
|
|
13640
|
+
* 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`
|
|
13533
13641
|
*/
|
|
13534
13642
|
features?: {[key: string]: string} | null;
|
|
13535
13643
|
/**
|
|
@@ -13568,6 +13676,10 @@ export namespace discoveryengine_v1 {
|
|
|
13568
13676
|
* Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
|
|
13569
13677
|
*/
|
|
13570
13678
|
searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig;
|
|
13679
|
+
/**
|
|
13680
|
+
* Optional. Non-empty default. Session config for the engine.
|
|
13681
|
+
*/
|
|
13682
|
+
sessionConfig?: Schema$GoogleCloudDiscoveryengineV1SessionConfig;
|
|
13571
13683
|
/**
|
|
13572
13684
|
* Required. The solutions of the engine.
|
|
13573
13685
|
*/
|
|
@@ -15608,6 +15720,10 @@ export namespace discoveryengine_v1 {
|
|
|
15608
15720
|
* Whether to turn on safe search. This is only supported for website search.
|
|
15609
15721
|
*/
|
|
15610
15722
|
safeSearch?: boolean | null;
|
|
15723
|
+
/**
|
|
15724
|
+
* Optional. SearchAddonSpec is used to disable add-ons for search as per new repricing model. This field is only supported for search requests.
|
|
15725
|
+
*/
|
|
15726
|
+
searchAddonSpec?: Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAddonSpec;
|
|
15611
15727
|
/**
|
|
15612
15728
|
* Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical.
|
|
15613
15729
|
*/
|
|
@@ -16032,6 +16148,23 @@ export namespace discoveryengine_v1 {
|
|
|
16032
16148
|
*/
|
|
16033
16149
|
returnRelevanceScore?: boolean | null;
|
|
16034
16150
|
}
|
|
16151
|
+
/**
|
|
16152
|
+
* 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.
|
|
16153
|
+
*/
|
|
16154
|
+
export interface Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAddonSpec {
|
|
16155
|
+
/**
|
|
16156
|
+
* Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
|
|
16157
|
+
*/
|
|
16158
|
+
disableGenerativeAnswerAddOn?: boolean | null;
|
|
16159
|
+
/**
|
|
16160
|
+
* Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
|
|
16161
|
+
*/
|
|
16162
|
+
disableKpiPersonalizationAddOn?: boolean | null;
|
|
16163
|
+
/**
|
|
16164
|
+
* Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
|
|
16165
|
+
*/
|
|
16166
|
+
disableSemanticAddOn?: boolean | null;
|
|
16167
|
+
}
|
|
16035
16168
|
/**
|
|
16036
16169
|
* Specification for search as you type in search requests.
|
|
16037
16170
|
*/
|
|
@@ -16706,6 +16839,28 @@ export namespace discoveryengine_v1 {
|
|
|
16706
16839
|
*/
|
|
16707
16840
|
userPseudoId?: string | null;
|
|
16708
16841
|
}
|
|
16842
|
+
/**
|
|
16843
|
+
* Configuration for the session.
|
|
16844
|
+
*/
|
|
16845
|
+
export interface Schema$GoogleCloudDiscoveryengineV1SessionConfig {
|
|
16846
|
+
/**
|
|
16847
|
+
* Optional. Session management policy that defines who will manage the session.
|
|
16848
|
+
*/
|
|
16849
|
+
sessionManagementPolicy?: string | null;
|
|
16850
|
+
/**
|
|
16851
|
+
* Optional. The TTL for the session. If unset, the default value is 60 days.
|
|
16852
|
+
*/
|
|
16853
|
+
sessionTtl?: Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl;
|
|
16854
|
+
}
|
|
16855
|
+
/**
|
|
16856
|
+
* Defines the TTL for sessions.
|
|
16857
|
+
*/
|
|
16858
|
+
export interface Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl {
|
|
16859
|
+
/**
|
|
16860
|
+
* Defines the number of days for session TTL.
|
|
16861
|
+
*/
|
|
16862
|
+
days?: number | null;
|
|
16863
|
+
}
|
|
16709
16864
|
/**
|
|
16710
16865
|
* Represents a turn, including a query from the user and a answer from service.
|
|
16711
16866
|
*/
|
|
@@ -17742,6 +17897,10 @@ export namespace discoveryengine_v1 {
|
|
|
17742
17897
|
* Customer provided configurations.
|
|
17743
17898
|
*/
|
|
17744
17899
|
export interface Schema$GoogleCloudDiscoveryengineV1WidgetConfigCustomerProvidedConfig {
|
|
17900
|
+
/**
|
|
17901
|
+
* 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.
|
|
17902
|
+
*/
|
|
17903
|
+
complianceLevel?: string | null;
|
|
17745
17904
|
/**
|
|
17746
17905
|
* Customer type.
|
|
17747
17906
|
*/
|
|
@@ -17945,7 +18104,7 @@ export namespace discoveryengine_v1 {
|
|
|
17945
18104
|
*/
|
|
17946
18105
|
enableVisualContentSummary?: boolean | null;
|
|
17947
18106
|
/**
|
|
17948
|
-
* 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`
|
|
18107
|
+
* 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`
|
|
17949
18108
|
*/
|
|
17950
18109
|
features?: {[key: string]: string} | null;
|
|
17951
18110
|
/**
|
|
@@ -17976,6 +18135,10 @@ export namespace discoveryengine_v1 {
|
|
|
17976
18135
|
* Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified.
|
|
17977
18136
|
*/
|
|
17978
18137
|
resultDescriptionType?: string | null;
|
|
18138
|
+
/**
|
|
18139
|
+
* Optional. SearchAddonSpec is used to disable add-ons for search. This field is only supported for search requests.
|
|
18140
|
+
*/
|
|
18141
|
+
searchAddonSpec?: Schema$GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsSearchAddonSpec;
|
|
17979
18142
|
/**
|
|
17980
18143
|
* 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.
|
|
17981
18144
|
*/
|
|
@@ -18059,6 +18222,10 @@ export namespace discoveryengine_v1 {
|
|
|
18059
18222
|
* Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).
|
|
18060
18223
|
*/
|
|
18061
18224
|
icon?: string | null;
|
|
18225
|
+
/**
|
|
18226
|
+
* 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.
|
|
18227
|
+
*/
|
|
18228
|
+
iconUrl?: string | null;
|
|
18062
18229
|
/**
|
|
18063
18230
|
* Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.
|
|
18064
18231
|
*/
|
|
@@ -18093,6 +18260,23 @@ export namespace discoveryengine_v1 {
|
|
|
18093
18260
|
*/
|
|
18094
18261
|
regions?: string[] | null;
|
|
18095
18262
|
}
|
|
18263
|
+
/**
|
|
18264
|
+
* SearchAddonSpec is used to disable add-ons for search. By default, if this field is not specified, add-ons are enabled wherever applicable.
|
|
18265
|
+
*/
|
|
18266
|
+
export interface Schema$GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsSearchAddonSpec {
|
|
18267
|
+
/**
|
|
18268
|
+
* Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
|
|
18269
|
+
*/
|
|
18270
|
+
generativeAnswerAddOnDisabled?: boolean | null;
|
|
18271
|
+
/**
|
|
18272
|
+
* Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
|
|
18273
|
+
*/
|
|
18274
|
+
kpiPersonalizationAddOnDisabled?: boolean | null;
|
|
18275
|
+
/**
|
|
18276
|
+
* Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
|
|
18277
|
+
*/
|
|
18278
|
+
semanticAddOnDisabled?: boolean | null;
|
|
18279
|
+
}
|
|
18096
18280
|
/**
|
|
18097
18281
|
* Config to store data store type configuration for workspace data
|
|
18098
18282
|
*/
|
|
@@ -19707,6 +19891,7 @@ export namespace discoveryengine_v1 {
|
|
|
19707
19891
|
* // "connectorType": "my_connectorType",
|
|
19708
19892
|
* // "createEuaSaas": false,
|
|
19709
19893
|
* // "createTime": "my_createTime",
|
|
19894
|
+
* // "dataProtectionPolicy": {},
|
|
19710
19895
|
* // "dataSource": "my_dataSource",
|
|
19711
19896
|
* // "destinationConfigs": [],
|
|
19712
19897
|
* // "dynamicTools": [],
|
|
@@ -21140,6 +21325,7 @@ export namespace discoveryengine_v1 {
|
|
|
21140
21325
|
* // "connectorType": "my_connectorType",
|
|
21141
21326
|
* // "createEuaSaas": false,
|
|
21142
21327
|
* // "createTime": "my_createTime",
|
|
21328
|
+
* // "dataProtectionPolicy": {},
|
|
21143
21329
|
* // "dataSource": "my_dataSource",
|
|
21144
21330
|
* // "destinationConfigs": [],
|
|
21145
21331
|
* // "dynamicTools": [],
|
|
@@ -21281,6 +21467,316 @@ export namespace discoveryengine_v1 {
|
|
|
21281
21467
|
}
|
|
21282
21468
|
}
|
|
21283
21469
|
|
|
21470
|
+
/**
|
|
21471
|
+
* 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.
|
|
21472
|
+
* @example
|
|
21473
|
+
* ```js
|
|
21474
|
+
* // Before running the sample:
|
|
21475
|
+
* // - Enable the API at:
|
|
21476
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
21477
|
+
* // - Login into gcloud by running:
|
|
21478
|
+
* // ```sh
|
|
21479
|
+
* // $ gcloud auth application-default login
|
|
21480
|
+
* // ```
|
|
21481
|
+
* // - Install the npm module by running:
|
|
21482
|
+
* // ```sh
|
|
21483
|
+
* // $ npm install googleapis
|
|
21484
|
+
* // ```
|
|
21485
|
+
*
|
|
21486
|
+
* const {google} = require('googleapis');
|
|
21487
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
21488
|
+
*
|
|
21489
|
+
* async function main() {
|
|
21490
|
+
* const auth = new google.auth.GoogleAuth({
|
|
21491
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
21492
|
+
* scopes: [
|
|
21493
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
21494
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
21495
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
21496
|
+
* ],
|
|
21497
|
+
* });
|
|
21498
|
+
*
|
|
21499
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
21500
|
+
* const authClient = await auth.getClient();
|
|
21501
|
+
* google.options({auth: authClient});
|
|
21502
|
+
*
|
|
21503
|
+
* // Do the magic
|
|
21504
|
+
* const res = await discoveryengine.projects.locations.collections.getIamPolicy(
|
|
21505
|
+
* {
|
|
21506
|
+
* // 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).
|
|
21507
|
+
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
21508
|
+
* // 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.
|
|
21509
|
+
* resource:
|
|
21510
|
+
* 'projects/my-project/locations/my-location/collections/my-collection',
|
|
21511
|
+
* },
|
|
21512
|
+
* );
|
|
21513
|
+
* console.log(res.data);
|
|
21514
|
+
*
|
|
21515
|
+
* // Example response
|
|
21516
|
+
* // {
|
|
21517
|
+
* // "bindings": [],
|
|
21518
|
+
* // "etag": "my_etag",
|
|
21519
|
+
* // "version": 0
|
|
21520
|
+
* // }
|
|
21521
|
+
* }
|
|
21522
|
+
*
|
|
21523
|
+
* main().catch(e => {
|
|
21524
|
+
* console.error(e);
|
|
21525
|
+
* throw e;
|
|
21526
|
+
* });
|
|
21527
|
+
*
|
|
21528
|
+
* ```
|
|
21529
|
+
*
|
|
21530
|
+
* @param params - Parameters for request
|
|
21531
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
21532
|
+
* @param callback - Optional callback that handles the response.
|
|
21533
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
21534
|
+
*/
|
|
21535
|
+
getIamPolicy(
|
|
21536
|
+
params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
|
|
21537
|
+
options: StreamMethodOptions
|
|
21538
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
21539
|
+
getIamPolicy(
|
|
21540
|
+
params?: Params$Resource$Projects$Locations$Collections$Getiampolicy,
|
|
21541
|
+
options?: MethodOptions
|
|
21542
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
21543
|
+
getIamPolicy(
|
|
21544
|
+
params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
|
|
21545
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
21546
|
+
callback: BodyResponseCallback<Readable>
|
|
21547
|
+
): void;
|
|
21548
|
+
getIamPolicy(
|
|
21549
|
+
params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
|
|
21550
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
|
|
21551
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21552
|
+
): void;
|
|
21553
|
+
getIamPolicy(
|
|
21554
|
+
params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
|
|
21555
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21556
|
+
): void;
|
|
21557
|
+
getIamPolicy(
|
|
21558
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21559
|
+
): void;
|
|
21560
|
+
getIamPolicy(
|
|
21561
|
+
paramsOrCallback?:
|
|
21562
|
+
| Params$Resource$Projects$Locations$Collections$Getiampolicy
|
|
21563
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21564
|
+
| BodyResponseCallback<Readable>,
|
|
21565
|
+
optionsOrCallback?:
|
|
21566
|
+
| MethodOptions
|
|
21567
|
+
| StreamMethodOptions
|
|
21568
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21569
|
+
| BodyResponseCallback<Readable>,
|
|
21570
|
+
callback?:
|
|
21571
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21572
|
+
| BodyResponseCallback<Readable>
|
|
21573
|
+
):
|
|
21574
|
+
| void
|
|
21575
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
|
|
21576
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
21577
|
+
let params = (paramsOrCallback ||
|
|
21578
|
+
{}) as Params$Resource$Projects$Locations$Collections$Getiampolicy;
|
|
21579
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
21580
|
+
|
|
21581
|
+
if (typeof paramsOrCallback === 'function') {
|
|
21582
|
+
callback = paramsOrCallback;
|
|
21583
|
+
params =
|
|
21584
|
+
{} as Params$Resource$Projects$Locations$Collections$Getiampolicy;
|
|
21585
|
+
options = {};
|
|
21586
|
+
}
|
|
21587
|
+
|
|
21588
|
+
if (typeof optionsOrCallback === 'function') {
|
|
21589
|
+
callback = optionsOrCallback;
|
|
21590
|
+
options = {};
|
|
21591
|
+
}
|
|
21592
|
+
|
|
21593
|
+
const rootUrl =
|
|
21594
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
21595
|
+
const parameters = {
|
|
21596
|
+
options: Object.assign(
|
|
21597
|
+
{
|
|
21598
|
+
url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(
|
|
21599
|
+
/([^:]\/)\/+/g,
|
|
21600
|
+
'$1'
|
|
21601
|
+
),
|
|
21602
|
+
method: 'GET',
|
|
21603
|
+
apiVersion: '',
|
|
21604
|
+
},
|
|
21605
|
+
options
|
|
21606
|
+
),
|
|
21607
|
+
params,
|
|
21608
|
+
requiredParams: ['resource'],
|
|
21609
|
+
pathParams: ['resource'],
|
|
21610
|
+
context: this.context,
|
|
21611
|
+
};
|
|
21612
|
+
if (callback) {
|
|
21613
|
+
createAPIRequest<Schema$GoogleIamV1Policy>(
|
|
21614
|
+
parameters,
|
|
21615
|
+
callback as BodyResponseCallback<unknown>
|
|
21616
|
+
);
|
|
21617
|
+
} else {
|
|
21618
|
+
return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
|
|
21619
|
+
}
|
|
21620
|
+
}
|
|
21621
|
+
|
|
21622
|
+
/**
|
|
21623
|
+
* 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.
|
|
21624
|
+
* @example
|
|
21625
|
+
* ```js
|
|
21626
|
+
* // Before running the sample:
|
|
21627
|
+
* // - Enable the API at:
|
|
21628
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
21629
|
+
* // - Login into gcloud by running:
|
|
21630
|
+
* // ```sh
|
|
21631
|
+
* // $ gcloud auth application-default login
|
|
21632
|
+
* // ```
|
|
21633
|
+
* // - Install the npm module by running:
|
|
21634
|
+
* // ```sh
|
|
21635
|
+
* // $ npm install googleapis
|
|
21636
|
+
* // ```
|
|
21637
|
+
*
|
|
21638
|
+
* const {google} = require('googleapis');
|
|
21639
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
21640
|
+
*
|
|
21641
|
+
* async function main() {
|
|
21642
|
+
* const auth = new google.auth.GoogleAuth({
|
|
21643
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
21644
|
+
* scopes: [
|
|
21645
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
21646
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
21647
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
21648
|
+
* ],
|
|
21649
|
+
* });
|
|
21650
|
+
*
|
|
21651
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
21652
|
+
* const authClient = await auth.getClient();
|
|
21653
|
+
* google.options({auth: authClient});
|
|
21654
|
+
*
|
|
21655
|
+
* // Do the magic
|
|
21656
|
+
* const res = await discoveryengine.projects.locations.collections.setIamPolicy(
|
|
21657
|
+
* {
|
|
21658
|
+
* // 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.
|
|
21659
|
+
* resource:
|
|
21660
|
+
* 'projects/my-project/locations/my-location/collections/my-collection',
|
|
21661
|
+
*
|
|
21662
|
+
* // Request body metadata
|
|
21663
|
+
* requestBody: {
|
|
21664
|
+
* // request body parameters
|
|
21665
|
+
* // {
|
|
21666
|
+
* // "policy": {}
|
|
21667
|
+
* // }
|
|
21668
|
+
* },
|
|
21669
|
+
* },
|
|
21670
|
+
* );
|
|
21671
|
+
* console.log(res.data);
|
|
21672
|
+
*
|
|
21673
|
+
* // Example response
|
|
21674
|
+
* // {
|
|
21675
|
+
* // "bindings": [],
|
|
21676
|
+
* // "etag": "my_etag",
|
|
21677
|
+
* // "version": 0
|
|
21678
|
+
* // }
|
|
21679
|
+
* }
|
|
21680
|
+
*
|
|
21681
|
+
* main().catch(e => {
|
|
21682
|
+
* console.error(e);
|
|
21683
|
+
* throw e;
|
|
21684
|
+
* });
|
|
21685
|
+
*
|
|
21686
|
+
* ```
|
|
21687
|
+
*
|
|
21688
|
+
* @param params - Parameters for request
|
|
21689
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
21690
|
+
* @param callback - Optional callback that handles the response.
|
|
21691
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
21692
|
+
*/
|
|
21693
|
+
setIamPolicy(
|
|
21694
|
+
params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
|
|
21695
|
+
options: StreamMethodOptions
|
|
21696
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
21697
|
+
setIamPolicy(
|
|
21698
|
+
params?: Params$Resource$Projects$Locations$Collections$Setiampolicy,
|
|
21699
|
+
options?: MethodOptions
|
|
21700
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
21701
|
+
setIamPolicy(
|
|
21702
|
+
params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
|
|
21703
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
21704
|
+
callback: BodyResponseCallback<Readable>
|
|
21705
|
+
): void;
|
|
21706
|
+
setIamPolicy(
|
|
21707
|
+
params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
|
|
21708
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
|
|
21709
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21710
|
+
): void;
|
|
21711
|
+
setIamPolicy(
|
|
21712
|
+
params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
|
|
21713
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21714
|
+
): void;
|
|
21715
|
+
setIamPolicy(
|
|
21716
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21717
|
+
): void;
|
|
21718
|
+
setIamPolicy(
|
|
21719
|
+
paramsOrCallback?:
|
|
21720
|
+
| Params$Resource$Projects$Locations$Collections$Setiampolicy
|
|
21721
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21722
|
+
| BodyResponseCallback<Readable>,
|
|
21723
|
+
optionsOrCallback?:
|
|
21724
|
+
| MethodOptions
|
|
21725
|
+
| StreamMethodOptions
|
|
21726
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21727
|
+
| BodyResponseCallback<Readable>,
|
|
21728
|
+
callback?:
|
|
21729
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
21730
|
+
| BodyResponseCallback<Readable>
|
|
21731
|
+
):
|
|
21732
|
+
| void
|
|
21733
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
|
|
21734
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
21735
|
+
let params = (paramsOrCallback ||
|
|
21736
|
+
{}) as Params$Resource$Projects$Locations$Collections$Setiampolicy;
|
|
21737
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
21738
|
+
|
|
21739
|
+
if (typeof paramsOrCallback === 'function') {
|
|
21740
|
+
callback = paramsOrCallback;
|
|
21741
|
+
params =
|
|
21742
|
+
{} as Params$Resource$Projects$Locations$Collections$Setiampolicy;
|
|
21743
|
+
options = {};
|
|
21744
|
+
}
|
|
21745
|
+
|
|
21746
|
+
if (typeof optionsOrCallback === 'function') {
|
|
21747
|
+
callback = optionsOrCallback;
|
|
21748
|
+
options = {};
|
|
21749
|
+
}
|
|
21750
|
+
|
|
21751
|
+
const rootUrl =
|
|
21752
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
21753
|
+
const parameters = {
|
|
21754
|
+
options: Object.assign(
|
|
21755
|
+
{
|
|
21756
|
+
url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(
|
|
21757
|
+
/([^:]\/)\/+/g,
|
|
21758
|
+
'$1'
|
|
21759
|
+
),
|
|
21760
|
+
method: 'POST',
|
|
21761
|
+
apiVersion: '',
|
|
21762
|
+
},
|
|
21763
|
+
options
|
|
21764
|
+
),
|
|
21765
|
+
params,
|
|
21766
|
+
requiredParams: ['resource'],
|
|
21767
|
+
pathParams: ['resource'],
|
|
21768
|
+
context: this.context,
|
|
21769
|
+
};
|
|
21770
|
+
if (callback) {
|
|
21771
|
+
createAPIRequest<Schema$GoogleIamV1Policy>(
|
|
21772
|
+
parameters,
|
|
21773
|
+
callback as BodyResponseCallback<unknown>
|
|
21774
|
+
);
|
|
21775
|
+
} else {
|
|
21776
|
+
return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
|
|
21777
|
+
}
|
|
21778
|
+
}
|
|
21779
|
+
|
|
21284
21780
|
/**
|
|
21285
21781
|
* Updates a DataConnector.
|
|
21286
21782
|
* @example
|
|
@@ -21340,6 +21836,7 @@ export namespace discoveryengine_v1 {
|
|
|
21340
21836
|
* // "connectorType": "my_connectorType",
|
|
21341
21837
|
* // "createEuaSaas": false,
|
|
21342
21838
|
* // "createTime": "my_createTime",
|
|
21839
|
+
* // "dataProtectionPolicy": {},
|
|
21343
21840
|
* // "dataSource": "my_dataSource",
|
|
21344
21841
|
* // "destinationConfigs": [],
|
|
21345
21842
|
* // "dynamicTools": [],
|
|
@@ -21394,6 +21891,7 @@ export namespace discoveryengine_v1 {
|
|
|
21394
21891
|
* // "connectorType": "my_connectorType",
|
|
21395
21892
|
* // "createEuaSaas": false,
|
|
21396
21893
|
* // "createTime": "my_createTime",
|
|
21894
|
+
* // "dataProtectionPolicy": {},
|
|
21397
21895
|
* // "dataSource": "my_dataSource",
|
|
21398
21896
|
* // "destinationConfigs": [],
|
|
21399
21897
|
* // "dynamicTools": [],
|
|
@@ -21548,6 +22046,27 @@ export namespace discoveryengine_v1 {
|
|
|
21548
22046
|
*/
|
|
21549
22047
|
name?: string;
|
|
21550
22048
|
}
|
|
22049
|
+
export interface Params$Resource$Projects$Locations$Collections$Getiampolicy extends StandardParameters {
|
|
22050
|
+
/**
|
|
22051
|
+
* 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).
|
|
22052
|
+
*/
|
|
22053
|
+
'options.requestedPolicyVersion'?: number;
|
|
22054
|
+
/**
|
|
22055
|
+
* 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.
|
|
22056
|
+
*/
|
|
22057
|
+
resource?: string;
|
|
22058
|
+
}
|
|
22059
|
+
export interface Params$Resource$Projects$Locations$Collections$Setiampolicy extends StandardParameters {
|
|
22060
|
+
/**
|
|
22061
|
+
* 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.
|
|
22062
|
+
*/
|
|
22063
|
+
resource?: string;
|
|
22064
|
+
|
|
22065
|
+
/**
|
|
22066
|
+
* Request body metadata
|
|
22067
|
+
*/
|
|
22068
|
+
requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
|
|
22069
|
+
}
|
|
21551
22070
|
export interface Params$Resource$Projects$Locations$Collections$Updatedataconnector extends StandardParameters {
|
|
21552
22071
|
/**
|
|
21553
22072
|
* Identifier. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
|
|
@@ -22420,6 +22939,7 @@ export namespace discoveryengine_v1 {
|
|
|
22420
22939
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
22421
22940
|
* // "contentConfig": "my_contentConfig",
|
|
22422
22941
|
* // "createTime": "my_createTime",
|
|
22942
|
+
* // "dataProtectionPolicy": {},
|
|
22423
22943
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
22424
22944
|
* // "displayName": "my_displayName",
|
|
22425
22945
|
* // "documentProcessingConfig": {},
|
|
@@ -22733,37 +23253,196 @@ export namespace discoveryengine_v1 {
|
|
|
22733
23253
|
*
|
|
22734
23254
|
* // Do the magic
|
|
22735
23255
|
* const res =
|
|
22736
|
-
* await discoveryengine.projects.locations.collections.dataStores.get({
|
|
22737
|
-
* // Required. Full resource name of DataStore, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. If the caller does not have permission to access the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested DataStore does not exist, a NOT_FOUND error is returned.
|
|
22738
|
-
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
22739
|
-
* });
|
|
23256
|
+
* await discoveryengine.projects.locations.collections.dataStores.get({
|
|
23257
|
+
* // Required. Full resource name of DataStore, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. If the caller does not have permission to access the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested DataStore does not exist, a NOT_FOUND error is returned.
|
|
23258
|
+
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
23259
|
+
* });
|
|
23260
|
+
* console.log(res.data);
|
|
23261
|
+
*
|
|
23262
|
+
* // Example response
|
|
23263
|
+
* // {
|
|
23264
|
+
* // "aclEnabled": false,
|
|
23265
|
+
* // "advancedSiteSearchConfig": {},
|
|
23266
|
+
* // "billingEstimation": {},
|
|
23267
|
+
* // "cmekConfig": {},
|
|
23268
|
+
* // "configurableBillingApproach": "my_configurableBillingApproach",
|
|
23269
|
+
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
23270
|
+
* // "contentConfig": "my_contentConfig",
|
|
23271
|
+
* // "createTime": "my_createTime",
|
|
23272
|
+
* // "dataProtectionPolicy": {},
|
|
23273
|
+
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
23274
|
+
* // "displayName": "my_displayName",
|
|
23275
|
+
* // "documentProcessingConfig": {},
|
|
23276
|
+
* // "federatedSearchConfig": {},
|
|
23277
|
+
* // "healthcareFhirConfig": {},
|
|
23278
|
+
* // "identityMappingStore": "my_identityMappingStore",
|
|
23279
|
+
* // "industryVertical": "my_industryVertical",
|
|
23280
|
+
* // "isInfobotFaqDataStore": false,
|
|
23281
|
+
* // "kmsKeyName": "my_kmsKeyName",
|
|
23282
|
+
* // "name": "my_name",
|
|
23283
|
+
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
23284
|
+
* // "servingConfigDataStore": {},
|
|
23285
|
+
* // "solutionTypes": [],
|
|
23286
|
+
* // "startingSchema": {},
|
|
23287
|
+
* // "workspaceConfig": {}
|
|
23288
|
+
* // }
|
|
23289
|
+
* }
|
|
23290
|
+
*
|
|
23291
|
+
* main().catch(e => {
|
|
23292
|
+
* console.error(e);
|
|
23293
|
+
* throw e;
|
|
23294
|
+
* });
|
|
23295
|
+
*
|
|
23296
|
+
* ```
|
|
23297
|
+
*
|
|
23298
|
+
* @param params - Parameters for request
|
|
23299
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
23300
|
+
* @param callback - Optional callback that handles the response.
|
|
23301
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
23302
|
+
*/
|
|
23303
|
+
get(
|
|
23304
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
|
|
23305
|
+
options: StreamMethodOptions
|
|
23306
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
23307
|
+
get(
|
|
23308
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Get,
|
|
23309
|
+
options?: MethodOptions
|
|
23310
|
+
): Promise<
|
|
23311
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
23312
|
+
>;
|
|
23313
|
+
get(
|
|
23314
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
|
|
23315
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
23316
|
+
callback: BodyResponseCallback<Readable>
|
|
23317
|
+
): void;
|
|
23318
|
+
get(
|
|
23319
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
|
|
23320
|
+
options:
|
|
23321
|
+
| MethodOptions
|
|
23322
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>,
|
|
23323
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
23324
|
+
): void;
|
|
23325
|
+
get(
|
|
23326
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
|
|
23327
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
23328
|
+
): void;
|
|
23329
|
+
get(
|
|
23330
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
23331
|
+
): void;
|
|
23332
|
+
get(
|
|
23333
|
+
paramsOrCallback?:
|
|
23334
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Get
|
|
23335
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
23336
|
+
| BodyResponseCallback<Readable>,
|
|
23337
|
+
optionsOrCallback?:
|
|
23338
|
+
| MethodOptions
|
|
23339
|
+
| StreamMethodOptions
|
|
23340
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
23341
|
+
| BodyResponseCallback<Readable>,
|
|
23342
|
+
callback?:
|
|
23343
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
23344
|
+
| BodyResponseCallback<Readable>
|
|
23345
|
+
):
|
|
23346
|
+
| void
|
|
23347
|
+
| Promise<
|
|
23348
|
+
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
23349
|
+
>
|
|
23350
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
23351
|
+
let params = (paramsOrCallback ||
|
|
23352
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Get;
|
|
23353
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
23354
|
+
|
|
23355
|
+
if (typeof paramsOrCallback === 'function') {
|
|
23356
|
+
callback = paramsOrCallback;
|
|
23357
|
+
params =
|
|
23358
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Get;
|
|
23359
|
+
options = {};
|
|
23360
|
+
}
|
|
23361
|
+
|
|
23362
|
+
if (typeof optionsOrCallback === 'function') {
|
|
23363
|
+
callback = optionsOrCallback;
|
|
23364
|
+
options = {};
|
|
23365
|
+
}
|
|
23366
|
+
|
|
23367
|
+
const rootUrl =
|
|
23368
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
23369
|
+
const parameters = {
|
|
23370
|
+
options: Object.assign(
|
|
23371
|
+
{
|
|
23372
|
+
url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
23373
|
+
method: 'GET',
|
|
23374
|
+
apiVersion: '',
|
|
23375
|
+
},
|
|
23376
|
+
options
|
|
23377
|
+
),
|
|
23378
|
+
params,
|
|
23379
|
+
requiredParams: ['name'],
|
|
23380
|
+
pathParams: ['name'],
|
|
23381
|
+
context: this.context,
|
|
23382
|
+
};
|
|
23383
|
+
if (callback) {
|
|
23384
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1DataStore>(
|
|
23385
|
+
parameters,
|
|
23386
|
+
callback as BodyResponseCallback<unknown>
|
|
23387
|
+
);
|
|
23388
|
+
} else {
|
|
23389
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1DataStore>(
|
|
23390
|
+
parameters
|
|
23391
|
+
);
|
|
23392
|
+
}
|
|
23393
|
+
}
|
|
23394
|
+
|
|
23395
|
+
/**
|
|
23396
|
+
* 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.
|
|
23397
|
+
* @example
|
|
23398
|
+
* ```js
|
|
23399
|
+
* // Before running the sample:
|
|
23400
|
+
* // - Enable the API at:
|
|
23401
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
23402
|
+
* // - Login into gcloud by running:
|
|
23403
|
+
* // ```sh
|
|
23404
|
+
* // $ gcloud auth application-default login
|
|
23405
|
+
* // ```
|
|
23406
|
+
* // - Install the npm module by running:
|
|
23407
|
+
* // ```sh
|
|
23408
|
+
* // $ npm install googleapis
|
|
23409
|
+
* // ```
|
|
23410
|
+
*
|
|
23411
|
+
* const {google} = require('googleapis');
|
|
23412
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
23413
|
+
*
|
|
23414
|
+
* async function main() {
|
|
23415
|
+
* const auth = new google.auth.GoogleAuth({
|
|
23416
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
23417
|
+
* scopes: [
|
|
23418
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
23419
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
23420
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
23421
|
+
* ],
|
|
23422
|
+
* });
|
|
23423
|
+
*
|
|
23424
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
23425
|
+
* const authClient = await auth.getClient();
|
|
23426
|
+
* google.options({auth: authClient});
|
|
23427
|
+
*
|
|
23428
|
+
* // Do the magic
|
|
23429
|
+
* const res =
|
|
23430
|
+
* await discoveryengine.projects.locations.collections.dataStores.getIamPolicy(
|
|
23431
|
+
* {
|
|
23432
|
+
* // 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).
|
|
23433
|
+
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
23434
|
+
* // 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.
|
|
23435
|
+
* resource:
|
|
23436
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
23437
|
+
* },
|
|
23438
|
+
* );
|
|
22740
23439
|
* console.log(res.data);
|
|
22741
23440
|
*
|
|
22742
23441
|
* // Example response
|
|
22743
23442
|
* // {
|
|
22744
|
-
* // "
|
|
22745
|
-
* // "
|
|
22746
|
-
* // "
|
|
22747
|
-
* // "cmekConfig": {},
|
|
22748
|
-
* // "configurableBillingApproach": "my_configurableBillingApproach",
|
|
22749
|
-
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
22750
|
-
* // "contentConfig": "my_contentConfig",
|
|
22751
|
-
* // "createTime": "my_createTime",
|
|
22752
|
-
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
22753
|
-
* // "displayName": "my_displayName",
|
|
22754
|
-
* // "documentProcessingConfig": {},
|
|
22755
|
-
* // "federatedSearchConfig": {},
|
|
22756
|
-
* // "healthcareFhirConfig": {},
|
|
22757
|
-
* // "identityMappingStore": "my_identityMappingStore",
|
|
22758
|
-
* // "industryVertical": "my_industryVertical",
|
|
22759
|
-
* // "isInfobotFaqDataStore": false,
|
|
22760
|
-
* // "kmsKeyName": "my_kmsKeyName",
|
|
22761
|
-
* // "name": "my_name",
|
|
22762
|
-
* // "naturalLanguageQueryUnderstandingConfig": {},
|
|
22763
|
-
* // "servingConfigDataStore": {},
|
|
22764
|
-
* // "solutionTypes": [],
|
|
22765
|
-
* // "startingSchema": {},
|
|
22766
|
-
* // "workspaceConfig": {}
|
|
23443
|
+
* // "bindings": [],
|
|
23444
|
+
* // "etag": "my_etag",
|
|
23445
|
+
* // "version": 0
|
|
22767
23446
|
* // }
|
|
22768
23447
|
* }
|
|
22769
23448
|
*
|
|
@@ -22779,62 +23458,56 @@ export namespace discoveryengine_v1 {
|
|
|
22779
23458
|
* @param callback - Optional callback that handles the response.
|
|
22780
23459
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
22781
23460
|
*/
|
|
22782
|
-
|
|
22783
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
23461
|
+
getIamPolicy(
|
|
23462
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
|
|
22784
23463
|
options: StreamMethodOptions
|
|
22785
23464
|
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
22786
|
-
|
|
22787
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
23465
|
+
getIamPolicy(
|
|
23466
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
|
|
22788
23467
|
options?: MethodOptions
|
|
22789
|
-
): Promise<
|
|
22790
|
-
|
|
22791
|
-
|
|
22792
|
-
get(
|
|
22793
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
|
|
23468
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
23469
|
+
getIamPolicy(
|
|
23470
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
|
|
22794
23471
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
22795
23472
|
callback: BodyResponseCallback<Readable>
|
|
22796
23473
|
): void;
|
|
22797
|
-
|
|
22798
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
22799
|
-
options:
|
|
22800
|
-
|
|
22801
|
-
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>,
|
|
22802
|
-
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
23474
|
+
getIamPolicy(
|
|
23475
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
|
|
23476
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
|
|
23477
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
22803
23478
|
): void;
|
|
22804
|
-
|
|
22805
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
22806
|
-
callback: BodyResponseCallback<Schema$
|
|
23479
|
+
getIamPolicy(
|
|
23480
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
|
|
23481
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
22807
23482
|
): void;
|
|
22808
|
-
|
|
22809
|
-
callback: BodyResponseCallback<Schema$
|
|
23483
|
+
getIamPolicy(
|
|
23484
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
22810
23485
|
): void;
|
|
22811
|
-
|
|
23486
|
+
getIamPolicy(
|
|
22812
23487
|
paramsOrCallback?:
|
|
22813
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$
|
|
22814
|
-
| BodyResponseCallback<Schema$
|
|
23488
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy
|
|
23489
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
22815
23490
|
| BodyResponseCallback<Readable>,
|
|
22816
23491
|
optionsOrCallback?:
|
|
22817
23492
|
| MethodOptions
|
|
22818
23493
|
| StreamMethodOptions
|
|
22819
|
-
| BodyResponseCallback<Schema$
|
|
23494
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
22820
23495
|
| BodyResponseCallback<Readable>,
|
|
22821
23496
|
callback?:
|
|
22822
|
-
| BodyResponseCallback<Schema$
|
|
23497
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
22823
23498
|
| BodyResponseCallback<Readable>
|
|
22824
23499
|
):
|
|
22825
23500
|
| void
|
|
22826
|
-
| Promise<
|
|
22827
|
-
GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1DataStore>
|
|
22828
|
-
>
|
|
23501
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
|
|
22829
23502
|
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
22830
23503
|
let params = (paramsOrCallback ||
|
|
22831
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$
|
|
23504
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy;
|
|
22832
23505
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
22833
23506
|
|
|
22834
23507
|
if (typeof paramsOrCallback === 'function') {
|
|
22835
23508
|
callback = paramsOrCallback;
|
|
22836
23509
|
params =
|
|
22837
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$
|
|
23510
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy;
|
|
22838
23511
|
options = {};
|
|
22839
23512
|
}
|
|
22840
23513
|
|
|
@@ -22848,26 +23521,27 @@ export namespace discoveryengine_v1 {
|
|
|
22848
23521
|
const parameters = {
|
|
22849
23522
|
options: Object.assign(
|
|
22850
23523
|
{
|
|
22851
|
-
url: (rootUrl + '/v1/{+
|
|
23524
|
+
url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(
|
|
23525
|
+
/([^:]\/)\/+/g,
|
|
23526
|
+
'$1'
|
|
23527
|
+
),
|
|
22852
23528
|
method: 'GET',
|
|
22853
23529
|
apiVersion: '',
|
|
22854
23530
|
},
|
|
22855
23531
|
options
|
|
22856
23532
|
),
|
|
22857
23533
|
params,
|
|
22858
|
-
requiredParams: ['
|
|
22859
|
-
pathParams: ['
|
|
23534
|
+
requiredParams: ['resource'],
|
|
23535
|
+
pathParams: ['resource'],
|
|
22860
23536
|
context: this.context,
|
|
22861
23537
|
};
|
|
22862
23538
|
if (callback) {
|
|
22863
|
-
createAPIRequest<Schema$
|
|
23539
|
+
createAPIRequest<Schema$GoogleIamV1Policy>(
|
|
22864
23540
|
parameters,
|
|
22865
23541
|
callback as BodyResponseCallback<unknown>
|
|
22866
23542
|
);
|
|
22867
23543
|
} else {
|
|
22868
|
-
return createAPIRequest<Schema$
|
|
22869
|
-
parameters
|
|
22870
|
-
);
|
|
23544
|
+
return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
|
|
22871
23545
|
}
|
|
22872
23546
|
}
|
|
22873
23547
|
|
|
@@ -23239,6 +23913,7 @@ export namespace discoveryengine_v1 {
|
|
|
23239
23913
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
23240
23914
|
* // "contentConfig": "my_contentConfig",
|
|
23241
23915
|
* // "createTime": "my_createTime",
|
|
23916
|
+
* // "dataProtectionPolicy": {},
|
|
23242
23917
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
23243
23918
|
* // "displayName": "my_displayName",
|
|
23244
23919
|
* // "documentProcessingConfig": {},
|
|
@@ -23269,6 +23944,7 @@ export namespace discoveryengine_v1 {
|
|
|
23269
23944
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
23270
23945
|
* // "contentConfig": "my_contentConfig",
|
|
23271
23946
|
* // "createTime": "my_createTime",
|
|
23947
|
+
* // "dataProtectionPolicy": {},
|
|
23272
23948
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
23273
23949
|
* // "displayName": "my_displayName",
|
|
23274
23950
|
* // "documentProcessingConfig": {},
|
|
@@ -23391,6 +24067,165 @@ export namespace discoveryengine_v1 {
|
|
|
23391
24067
|
}
|
|
23392
24068
|
}
|
|
23393
24069
|
|
|
24070
|
+
/**
|
|
24071
|
+
* 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.
|
|
24072
|
+
* @example
|
|
24073
|
+
* ```js
|
|
24074
|
+
* // Before running the sample:
|
|
24075
|
+
* // - Enable the API at:
|
|
24076
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
24077
|
+
* // - Login into gcloud by running:
|
|
24078
|
+
* // ```sh
|
|
24079
|
+
* // $ gcloud auth application-default login
|
|
24080
|
+
* // ```
|
|
24081
|
+
* // - Install the npm module by running:
|
|
24082
|
+
* // ```sh
|
|
24083
|
+
* // $ npm install googleapis
|
|
24084
|
+
* // ```
|
|
24085
|
+
*
|
|
24086
|
+
* const {google} = require('googleapis');
|
|
24087
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
24088
|
+
*
|
|
24089
|
+
* async function main() {
|
|
24090
|
+
* const auth = new google.auth.GoogleAuth({
|
|
24091
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
24092
|
+
* scopes: [
|
|
24093
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
24094
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
24095
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
24096
|
+
* ],
|
|
24097
|
+
* });
|
|
24098
|
+
*
|
|
24099
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
24100
|
+
* const authClient = await auth.getClient();
|
|
24101
|
+
* google.options({auth: authClient});
|
|
24102
|
+
*
|
|
24103
|
+
* // Do the magic
|
|
24104
|
+
* const res =
|
|
24105
|
+
* await discoveryengine.projects.locations.collections.dataStores.setIamPolicy(
|
|
24106
|
+
* {
|
|
24107
|
+
* // 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.
|
|
24108
|
+
* resource:
|
|
24109
|
+
* 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
|
|
24110
|
+
*
|
|
24111
|
+
* // Request body metadata
|
|
24112
|
+
* requestBody: {
|
|
24113
|
+
* // request body parameters
|
|
24114
|
+
* // {
|
|
24115
|
+
* // "policy": {}
|
|
24116
|
+
* // }
|
|
24117
|
+
* },
|
|
24118
|
+
* },
|
|
24119
|
+
* );
|
|
24120
|
+
* console.log(res.data);
|
|
24121
|
+
*
|
|
24122
|
+
* // Example response
|
|
24123
|
+
* // {
|
|
24124
|
+
* // "bindings": [],
|
|
24125
|
+
* // "etag": "my_etag",
|
|
24126
|
+
* // "version": 0
|
|
24127
|
+
* // }
|
|
24128
|
+
* }
|
|
24129
|
+
*
|
|
24130
|
+
* main().catch(e => {
|
|
24131
|
+
* console.error(e);
|
|
24132
|
+
* throw e;
|
|
24133
|
+
* });
|
|
24134
|
+
*
|
|
24135
|
+
* ```
|
|
24136
|
+
*
|
|
24137
|
+
* @param params - Parameters for request
|
|
24138
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
24139
|
+
* @param callback - Optional callback that handles the response.
|
|
24140
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
24141
|
+
*/
|
|
24142
|
+
setIamPolicy(
|
|
24143
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
|
|
24144
|
+
options: StreamMethodOptions
|
|
24145
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
24146
|
+
setIamPolicy(
|
|
24147
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
|
|
24148
|
+
options?: MethodOptions
|
|
24149
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
24150
|
+
setIamPolicy(
|
|
24151
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
|
|
24152
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
24153
|
+
callback: BodyResponseCallback<Readable>
|
|
24154
|
+
): void;
|
|
24155
|
+
setIamPolicy(
|
|
24156
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
|
|
24157
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
|
|
24158
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
24159
|
+
): void;
|
|
24160
|
+
setIamPolicy(
|
|
24161
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
|
|
24162
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
24163
|
+
): void;
|
|
24164
|
+
setIamPolicy(
|
|
24165
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
24166
|
+
): void;
|
|
24167
|
+
setIamPolicy(
|
|
24168
|
+
paramsOrCallback?:
|
|
24169
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy
|
|
24170
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
24171
|
+
| BodyResponseCallback<Readable>,
|
|
24172
|
+
optionsOrCallback?:
|
|
24173
|
+
| MethodOptions
|
|
24174
|
+
| StreamMethodOptions
|
|
24175
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
24176
|
+
| BodyResponseCallback<Readable>,
|
|
24177
|
+
callback?:
|
|
24178
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
24179
|
+
| BodyResponseCallback<Readable>
|
|
24180
|
+
):
|
|
24181
|
+
| void
|
|
24182
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
|
|
24183
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
24184
|
+
let params = (paramsOrCallback ||
|
|
24185
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy;
|
|
24186
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
24187
|
+
|
|
24188
|
+
if (typeof paramsOrCallback === 'function') {
|
|
24189
|
+
callback = paramsOrCallback;
|
|
24190
|
+
params =
|
|
24191
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy;
|
|
24192
|
+
options = {};
|
|
24193
|
+
}
|
|
24194
|
+
|
|
24195
|
+
if (typeof optionsOrCallback === 'function') {
|
|
24196
|
+
callback = optionsOrCallback;
|
|
24197
|
+
options = {};
|
|
24198
|
+
}
|
|
24199
|
+
|
|
24200
|
+
const rootUrl =
|
|
24201
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
24202
|
+
const parameters = {
|
|
24203
|
+
options: Object.assign(
|
|
24204
|
+
{
|
|
24205
|
+
url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(
|
|
24206
|
+
/([^:]\/)\/+/g,
|
|
24207
|
+
'$1'
|
|
24208
|
+
),
|
|
24209
|
+
method: 'POST',
|
|
24210
|
+
apiVersion: '',
|
|
24211
|
+
},
|
|
24212
|
+
options
|
|
24213
|
+
),
|
|
24214
|
+
params,
|
|
24215
|
+
requiredParams: ['resource'],
|
|
24216
|
+
pathParams: ['resource'],
|
|
24217
|
+
context: this.context,
|
|
24218
|
+
};
|
|
24219
|
+
if (callback) {
|
|
24220
|
+
createAPIRequest<Schema$GoogleIamV1Policy>(
|
|
24221
|
+
parameters,
|
|
24222
|
+
callback as BodyResponseCallback<unknown>
|
|
24223
|
+
);
|
|
24224
|
+
} else {
|
|
24225
|
+
return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
|
|
24226
|
+
}
|
|
24227
|
+
}
|
|
24228
|
+
|
|
23394
24229
|
/**
|
|
23395
24230
|
* Trains a custom model.
|
|
23396
24231
|
* @example
|
|
@@ -23622,6 +24457,16 @@ export namespace discoveryengine_v1 {
|
|
|
23622
24457
|
*/
|
|
23623
24458
|
name?: string;
|
|
23624
24459
|
}
|
|
24460
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy extends StandardParameters {
|
|
24461
|
+
/**
|
|
24462
|
+
* 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).
|
|
24463
|
+
*/
|
|
24464
|
+
'options.requestedPolicyVersion'?: number;
|
|
24465
|
+
/**
|
|
24466
|
+
* 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.
|
|
24467
|
+
*/
|
|
24468
|
+
resource?: string;
|
|
24469
|
+
}
|
|
23625
24470
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine extends StandardParameters {
|
|
23626
24471
|
/**
|
|
23627
24472
|
* 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.
|
|
@@ -23661,6 +24506,17 @@ export namespace discoveryengine_v1 {
|
|
|
23661
24506
|
*/
|
|
23662
24507
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1DataStore;
|
|
23663
24508
|
}
|
|
24509
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy extends StandardParameters {
|
|
24510
|
+
/**
|
|
24511
|
+
* 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.
|
|
24512
|
+
*/
|
|
24513
|
+
resource?: string;
|
|
24514
|
+
|
|
24515
|
+
/**
|
|
24516
|
+
* Request body metadata
|
|
24517
|
+
*/
|
|
24518
|
+
requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
|
|
24519
|
+
}
|
|
23664
24520
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Traincustommodel extends StandardParameters {
|
|
23665
24521
|
/**
|
|
23666
24522
|
* 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.
|
|
@@ -31587,6 +32443,7 @@ export namespace discoveryengine_v1 {
|
|
|
31587
32443
|
* // "relevanceScoreSpec": {},
|
|
31588
32444
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
31589
32445
|
* // "safeSearch": false,
|
|
32446
|
+
* // "searchAddonSpec": {},
|
|
31590
32447
|
* // "searchAsYouTypeSpec": {},
|
|
31591
32448
|
* // "session": "my_session",
|
|
31592
32449
|
* // "sessionSpec": {},
|
|
@@ -31802,6 +32659,7 @@ export namespace discoveryengine_v1 {
|
|
|
31802
32659
|
* // "relevanceScoreSpec": {},
|
|
31803
32660
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
31804
32661
|
* // "safeSearch": false,
|
|
32662
|
+
* // "searchAddonSpec": {},
|
|
31805
32663
|
* // "searchAsYouTypeSpec": {},
|
|
31806
32664
|
* // "session": "my_session",
|
|
31807
32665
|
* // "sessionSpec": {},
|
|
@@ -37645,7 +38503,7 @@ export namespace discoveryengine_v1 {
|
|
|
37645
38503
|
* 'placeholder-value',
|
|
37646
38504
|
* // 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).
|
|
37647
38505
|
* languageCode: 'placeholder-value',
|
|
37648
|
-
* // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
38506
|
+
* // 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.
|
|
37649
38507
|
* modelInfoView: 'placeholder-value',
|
|
37650
38508
|
* // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
|
|
37651
38509
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
|
|
@@ -38053,7 +38911,7 @@ export namespace discoveryengine_v1 {
|
|
|
38053
38911
|
*/
|
|
38054
38912
|
languageCode?: string;
|
|
38055
38913
|
/**
|
|
38056
|
-
* Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
38914
|
+
* 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.
|
|
38057
38915
|
*/
|
|
38058
38916
|
modelInfoView?: string;
|
|
38059
38917
|
/**
|
|
@@ -38192,6 +39050,7 @@ export namespace discoveryengine_v1 {
|
|
|
38192
39050
|
* // "observabilityConfig": {},
|
|
38193
39051
|
* // "procurementContactEmails": [],
|
|
38194
39052
|
* // "searchEngineConfig": {},
|
|
39053
|
+
* // "sessionConfig": {},
|
|
38195
39054
|
* // "solutionType": "my_solutionType",
|
|
38196
39055
|
* // "updateTime": "my_updateTime"
|
|
38197
39056
|
* // }
|
|
@@ -38522,6 +39381,7 @@ export namespace discoveryengine_v1 {
|
|
|
38522
39381
|
* // "observabilityConfig": {},
|
|
38523
39382
|
* // "procurementContactEmails": [],
|
|
38524
39383
|
* // "searchEngineConfig": {},
|
|
39384
|
+
* // "sessionConfig": {},
|
|
38525
39385
|
* // "solutionType": "my_solutionType",
|
|
38526
39386
|
* // "updateTime": "my_updateTime"
|
|
38527
39387
|
* // }
|
|
@@ -39013,6 +39873,7 @@ export namespace discoveryengine_v1 {
|
|
|
39013
39873
|
* // "observabilityConfig": {},
|
|
39014
39874
|
* // "procurementContactEmails": [],
|
|
39015
39875
|
* // "searchEngineConfig": {},
|
|
39876
|
+
* // "sessionConfig": {},
|
|
39016
39877
|
* // "solutionType": "my_solutionType",
|
|
39017
39878
|
* // "updateTime": "my_updateTime"
|
|
39018
39879
|
* // }
|
|
@@ -39045,6 +39906,7 @@ export namespace discoveryengine_v1 {
|
|
|
39045
39906
|
* // "observabilityConfig": {},
|
|
39046
39907
|
* // "procurementContactEmails": [],
|
|
39047
39908
|
* // "searchEngineConfig": {},
|
|
39909
|
+
* // "sessionConfig": {},
|
|
39048
39910
|
* // "solutionType": "my_solutionType",
|
|
39049
39911
|
* // "updateTime": "my_updateTime"
|
|
39050
39912
|
* // }
|
|
@@ -46420,6 +47282,7 @@ export namespace discoveryengine_v1 {
|
|
|
46420
47282
|
* // "relevanceScoreSpec": {},
|
|
46421
47283
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
46422
47284
|
* // "safeSearch": false,
|
|
47285
|
+
* // "searchAddonSpec": {},
|
|
46423
47286
|
* // "searchAsYouTypeSpec": {},
|
|
46424
47287
|
* // "session": "my_session",
|
|
46425
47288
|
* // "sessionSpec": {},
|
|
@@ -46635,6 +47498,7 @@ export namespace discoveryengine_v1 {
|
|
|
46635
47498
|
* // "relevanceScoreSpec": {},
|
|
46636
47499
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
46637
47500
|
* // "safeSearch": false,
|
|
47501
|
+
* // "searchAddonSpec": {},
|
|
46638
47502
|
* // "searchAsYouTypeSpec": {},
|
|
46639
47503
|
* // "session": "my_session",
|
|
46640
47504
|
* // "sessionSpec": {},
|
|
@@ -48215,7 +49079,7 @@ export namespace discoveryengine_v1 {
|
|
|
48215
49079
|
* 'placeholder-value',
|
|
48216
49080
|
* // 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).
|
|
48217
49081
|
* languageCode: 'placeholder-value',
|
|
48218
|
-
* // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
49082
|
+
* // 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.
|
|
48219
49083
|
* modelInfoView: 'placeholder-value',
|
|
48220
49084
|
* // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
|
|
48221
49085
|
* name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/widgetConfigs/my-widgetConfig',
|
|
@@ -48623,7 +49487,7 @@ export namespace discoveryengine_v1 {
|
|
|
48623
49487
|
*/
|
|
48624
49488
|
languageCode?: string;
|
|
48625
49489
|
/**
|
|
48626
|
-
* Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
49490
|
+
* 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.
|
|
48627
49491
|
*/
|
|
48628
49492
|
modelInfoView?: string;
|
|
48629
49493
|
/**
|
|
@@ -49284,6 +50148,7 @@ export namespace discoveryengine_v1 {
|
|
|
49284
50148
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
49285
50149
|
* // "contentConfig": "my_contentConfig",
|
|
49286
50150
|
* // "createTime": "my_createTime",
|
|
50151
|
+
* // "dataProtectionPolicy": {},
|
|
49287
50152
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
49288
50153
|
* // "displayName": "my_displayName",
|
|
49289
50154
|
* // "documentProcessingConfig": {},
|
|
@@ -49609,6 +50474,7 @@ export namespace discoveryengine_v1 {
|
|
|
49609
50474
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
49610
50475
|
* // "contentConfig": "my_contentConfig",
|
|
49611
50476
|
* // "createTime": "my_createTime",
|
|
50477
|
+
* // "dataProtectionPolicy": {},
|
|
49612
50478
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
49613
50479
|
* // "displayName": "my_displayName",
|
|
49614
50480
|
* // "documentProcessingConfig": {},
|
|
@@ -49730,6 +50596,156 @@ export namespace discoveryengine_v1 {
|
|
|
49730
50596
|
}
|
|
49731
50597
|
}
|
|
49732
50598
|
|
|
50599
|
+
/**
|
|
50600
|
+
* 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.
|
|
50601
|
+
* @example
|
|
50602
|
+
* ```js
|
|
50603
|
+
* // Before running the sample:
|
|
50604
|
+
* // - Enable the API at:
|
|
50605
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
50606
|
+
* // - Login into gcloud by running:
|
|
50607
|
+
* // ```sh
|
|
50608
|
+
* // $ gcloud auth application-default login
|
|
50609
|
+
* // ```
|
|
50610
|
+
* // - Install the npm module by running:
|
|
50611
|
+
* // ```sh
|
|
50612
|
+
* // $ npm install googleapis
|
|
50613
|
+
* // ```
|
|
50614
|
+
*
|
|
50615
|
+
* const {google} = require('googleapis');
|
|
50616
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
50617
|
+
*
|
|
50618
|
+
* async function main() {
|
|
50619
|
+
* const auth = new google.auth.GoogleAuth({
|
|
50620
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
50621
|
+
* scopes: [
|
|
50622
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
50623
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
50624
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
50625
|
+
* ],
|
|
50626
|
+
* });
|
|
50627
|
+
*
|
|
50628
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
50629
|
+
* const authClient = await auth.getClient();
|
|
50630
|
+
* google.options({auth: authClient});
|
|
50631
|
+
*
|
|
50632
|
+
* // Do the magic
|
|
50633
|
+
* const res = await discoveryengine.projects.locations.dataStores.getIamPolicy({
|
|
50634
|
+
* // 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).
|
|
50635
|
+
* 'options.requestedPolicyVersion': 'placeholder-value',
|
|
50636
|
+
* // 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.
|
|
50637
|
+
* resource:
|
|
50638
|
+
* 'projects/my-project/locations/my-location/dataStores/my-dataStore',
|
|
50639
|
+
* });
|
|
50640
|
+
* console.log(res.data);
|
|
50641
|
+
*
|
|
50642
|
+
* // Example response
|
|
50643
|
+
* // {
|
|
50644
|
+
* // "bindings": [],
|
|
50645
|
+
* // "etag": "my_etag",
|
|
50646
|
+
* // "version": 0
|
|
50647
|
+
* // }
|
|
50648
|
+
* }
|
|
50649
|
+
*
|
|
50650
|
+
* main().catch(e => {
|
|
50651
|
+
* console.error(e);
|
|
50652
|
+
* throw e;
|
|
50653
|
+
* });
|
|
50654
|
+
*
|
|
50655
|
+
* ```
|
|
50656
|
+
*
|
|
50657
|
+
* @param params - Parameters for request
|
|
50658
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
50659
|
+
* @param callback - Optional callback that handles the response.
|
|
50660
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
50661
|
+
*/
|
|
50662
|
+
getIamPolicy(
|
|
50663
|
+
params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
|
|
50664
|
+
options: StreamMethodOptions
|
|
50665
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
50666
|
+
getIamPolicy(
|
|
50667
|
+
params?: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
|
|
50668
|
+
options?: MethodOptions
|
|
50669
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
50670
|
+
getIamPolicy(
|
|
50671
|
+
params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
|
|
50672
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
50673
|
+
callback: BodyResponseCallback<Readable>
|
|
50674
|
+
): void;
|
|
50675
|
+
getIamPolicy(
|
|
50676
|
+
params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
|
|
50677
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
|
|
50678
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
50679
|
+
): void;
|
|
50680
|
+
getIamPolicy(
|
|
50681
|
+
params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
|
|
50682
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
50683
|
+
): void;
|
|
50684
|
+
getIamPolicy(
|
|
50685
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
50686
|
+
): void;
|
|
50687
|
+
getIamPolicy(
|
|
50688
|
+
paramsOrCallback?:
|
|
50689
|
+
| Params$Resource$Projects$Locations$Datastores$Getiampolicy
|
|
50690
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
50691
|
+
| BodyResponseCallback<Readable>,
|
|
50692
|
+
optionsOrCallback?:
|
|
50693
|
+
| MethodOptions
|
|
50694
|
+
| StreamMethodOptions
|
|
50695
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
50696
|
+
| BodyResponseCallback<Readable>,
|
|
50697
|
+
callback?:
|
|
50698
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
50699
|
+
| BodyResponseCallback<Readable>
|
|
50700
|
+
):
|
|
50701
|
+
| void
|
|
50702
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
|
|
50703
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
50704
|
+
let params = (paramsOrCallback ||
|
|
50705
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Getiampolicy;
|
|
50706
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
50707
|
+
|
|
50708
|
+
if (typeof paramsOrCallback === 'function') {
|
|
50709
|
+
callback = paramsOrCallback;
|
|
50710
|
+
params =
|
|
50711
|
+
{} as Params$Resource$Projects$Locations$Datastores$Getiampolicy;
|
|
50712
|
+
options = {};
|
|
50713
|
+
}
|
|
50714
|
+
|
|
50715
|
+
if (typeof optionsOrCallback === 'function') {
|
|
50716
|
+
callback = optionsOrCallback;
|
|
50717
|
+
options = {};
|
|
50718
|
+
}
|
|
50719
|
+
|
|
50720
|
+
const rootUrl =
|
|
50721
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
50722
|
+
const parameters = {
|
|
50723
|
+
options: Object.assign(
|
|
50724
|
+
{
|
|
50725
|
+
url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(
|
|
50726
|
+
/([^:]\/)\/+/g,
|
|
50727
|
+
'$1'
|
|
50728
|
+
),
|
|
50729
|
+
method: 'GET',
|
|
50730
|
+
apiVersion: '',
|
|
50731
|
+
},
|
|
50732
|
+
options
|
|
50733
|
+
),
|
|
50734
|
+
params,
|
|
50735
|
+
requiredParams: ['resource'],
|
|
50736
|
+
pathParams: ['resource'],
|
|
50737
|
+
context: this.context,
|
|
50738
|
+
};
|
|
50739
|
+
if (callback) {
|
|
50740
|
+
createAPIRequest<Schema$GoogleIamV1Policy>(
|
|
50741
|
+
parameters,
|
|
50742
|
+
callback as BodyResponseCallback<unknown>
|
|
50743
|
+
);
|
|
50744
|
+
} else {
|
|
50745
|
+
return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
|
|
50746
|
+
}
|
|
50747
|
+
}
|
|
50748
|
+
|
|
49733
50749
|
/**
|
|
49734
50750
|
* Gets the SiteSearchEngine.
|
|
49735
50751
|
* @example
|
|
@@ -50092,6 +51108,7 @@ export namespace discoveryengine_v1 {
|
|
|
50092
51108
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
50093
51109
|
* // "contentConfig": "my_contentConfig",
|
|
50094
51110
|
* // "createTime": "my_createTime",
|
|
51111
|
+
* // "dataProtectionPolicy": {},
|
|
50095
51112
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
50096
51113
|
* // "displayName": "my_displayName",
|
|
50097
51114
|
* // "documentProcessingConfig": {},
|
|
@@ -50122,6 +51139,7 @@ export namespace discoveryengine_v1 {
|
|
|
50122
51139
|
* // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
|
|
50123
51140
|
* // "contentConfig": "my_contentConfig",
|
|
50124
51141
|
* // "createTime": "my_createTime",
|
|
51142
|
+
* // "dataProtectionPolicy": {},
|
|
50125
51143
|
* // "defaultSchemaId": "my_defaultSchemaId",
|
|
50126
51144
|
* // "displayName": "my_displayName",
|
|
50127
51145
|
* // "documentProcessingConfig": {},
|
|
@@ -50242,6 +51260,162 @@ export namespace discoveryengine_v1 {
|
|
|
50242
51260
|
);
|
|
50243
51261
|
}
|
|
50244
51262
|
}
|
|
51263
|
+
|
|
51264
|
+
/**
|
|
51265
|
+
* 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.
|
|
51266
|
+
* @example
|
|
51267
|
+
* ```js
|
|
51268
|
+
* // Before running the sample:
|
|
51269
|
+
* // - Enable the API at:
|
|
51270
|
+
* // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
|
|
51271
|
+
* // - Login into gcloud by running:
|
|
51272
|
+
* // ```sh
|
|
51273
|
+
* // $ gcloud auth application-default login
|
|
51274
|
+
* // ```
|
|
51275
|
+
* // - Install the npm module by running:
|
|
51276
|
+
* // ```sh
|
|
51277
|
+
* // $ npm install googleapis
|
|
51278
|
+
* // ```
|
|
51279
|
+
*
|
|
51280
|
+
* const {google} = require('googleapis');
|
|
51281
|
+
* const discoveryengine = google.discoveryengine('v1');
|
|
51282
|
+
*
|
|
51283
|
+
* async function main() {
|
|
51284
|
+
* const auth = new google.auth.GoogleAuth({
|
|
51285
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
51286
|
+
* scopes: [
|
|
51287
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
51288
|
+
* 'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
51289
|
+
* 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
51290
|
+
* ],
|
|
51291
|
+
* });
|
|
51292
|
+
*
|
|
51293
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
51294
|
+
* const authClient = await auth.getClient();
|
|
51295
|
+
* google.options({auth: authClient});
|
|
51296
|
+
*
|
|
51297
|
+
* // Do the magic
|
|
51298
|
+
* const res = await discoveryengine.projects.locations.dataStores.setIamPolicy({
|
|
51299
|
+
* // 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.
|
|
51300
|
+
* resource:
|
|
51301
|
+
* 'projects/my-project/locations/my-location/dataStores/my-dataStore',
|
|
51302
|
+
*
|
|
51303
|
+
* // Request body metadata
|
|
51304
|
+
* requestBody: {
|
|
51305
|
+
* // request body parameters
|
|
51306
|
+
* // {
|
|
51307
|
+
* // "policy": {}
|
|
51308
|
+
* // }
|
|
51309
|
+
* },
|
|
51310
|
+
* });
|
|
51311
|
+
* console.log(res.data);
|
|
51312
|
+
*
|
|
51313
|
+
* // Example response
|
|
51314
|
+
* // {
|
|
51315
|
+
* // "bindings": [],
|
|
51316
|
+
* // "etag": "my_etag",
|
|
51317
|
+
* // "version": 0
|
|
51318
|
+
* // }
|
|
51319
|
+
* }
|
|
51320
|
+
*
|
|
51321
|
+
* main().catch(e => {
|
|
51322
|
+
* console.error(e);
|
|
51323
|
+
* throw e;
|
|
51324
|
+
* });
|
|
51325
|
+
*
|
|
51326
|
+
* ```
|
|
51327
|
+
*
|
|
51328
|
+
* @param params - Parameters for request
|
|
51329
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
51330
|
+
* @param callback - Optional callback that handles the response.
|
|
51331
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
51332
|
+
*/
|
|
51333
|
+
setIamPolicy(
|
|
51334
|
+
params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
|
|
51335
|
+
options: StreamMethodOptions
|
|
51336
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
51337
|
+
setIamPolicy(
|
|
51338
|
+
params?: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
|
|
51339
|
+
options?: MethodOptions
|
|
51340
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
|
|
51341
|
+
setIamPolicy(
|
|
51342
|
+
params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
|
|
51343
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
51344
|
+
callback: BodyResponseCallback<Readable>
|
|
51345
|
+
): void;
|
|
51346
|
+
setIamPolicy(
|
|
51347
|
+
params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
|
|
51348
|
+
options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
|
|
51349
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
51350
|
+
): void;
|
|
51351
|
+
setIamPolicy(
|
|
51352
|
+
params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
|
|
51353
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
51354
|
+
): void;
|
|
51355
|
+
setIamPolicy(
|
|
51356
|
+
callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
51357
|
+
): void;
|
|
51358
|
+
setIamPolicy(
|
|
51359
|
+
paramsOrCallback?:
|
|
51360
|
+
| Params$Resource$Projects$Locations$Datastores$Setiampolicy
|
|
51361
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
51362
|
+
| BodyResponseCallback<Readable>,
|
|
51363
|
+
optionsOrCallback?:
|
|
51364
|
+
| MethodOptions
|
|
51365
|
+
| StreamMethodOptions
|
|
51366
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
51367
|
+
| BodyResponseCallback<Readable>,
|
|
51368
|
+
callback?:
|
|
51369
|
+
| BodyResponseCallback<Schema$GoogleIamV1Policy>
|
|
51370
|
+
| BodyResponseCallback<Readable>
|
|
51371
|
+
):
|
|
51372
|
+
| void
|
|
51373
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
|
|
51374
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
51375
|
+
let params = (paramsOrCallback ||
|
|
51376
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Setiampolicy;
|
|
51377
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
51378
|
+
|
|
51379
|
+
if (typeof paramsOrCallback === 'function') {
|
|
51380
|
+
callback = paramsOrCallback;
|
|
51381
|
+
params =
|
|
51382
|
+
{} as Params$Resource$Projects$Locations$Datastores$Setiampolicy;
|
|
51383
|
+
options = {};
|
|
51384
|
+
}
|
|
51385
|
+
|
|
51386
|
+
if (typeof optionsOrCallback === 'function') {
|
|
51387
|
+
callback = optionsOrCallback;
|
|
51388
|
+
options = {};
|
|
51389
|
+
}
|
|
51390
|
+
|
|
51391
|
+
const rootUrl =
|
|
51392
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
51393
|
+
const parameters = {
|
|
51394
|
+
options: Object.assign(
|
|
51395
|
+
{
|
|
51396
|
+
url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(
|
|
51397
|
+
/([^:]\/)\/+/g,
|
|
51398
|
+
'$1'
|
|
51399
|
+
),
|
|
51400
|
+
method: 'POST',
|
|
51401
|
+
apiVersion: '',
|
|
51402
|
+
},
|
|
51403
|
+
options
|
|
51404
|
+
),
|
|
51405
|
+
params,
|
|
51406
|
+
requiredParams: ['resource'],
|
|
51407
|
+
pathParams: ['resource'],
|
|
51408
|
+
context: this.context,
|
|
51409
|
+
};
|
|
51410
|
+
if (callback) {
|
|
51411
|
+
createAPIRequest<Schema$GoogleIamV1Policy>(
|
|
51412
|
+
parameters,
|
|
51413
|
+
callback as BodyResponseCallback<unknown>
|
|
51414
|
+
);
|
|
51415
|
+
} else {
|
|
51416
|
+
return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
|
|
51417
|
+
}
|
|
51418
|
+
}
|
|
50245
51419
|
}
|
|
50246
51420
|
|
|
50247
51421
|
export interface Params$Resource$Projects$Locations$Datastores$Completequery extends StandardParameters {
|
|
@@ -50309,6 +51483,16 @@ export namespace discoveryengine_v1 {
|
|
|
50309
51483
|
*/
|
|
50310
51484
|
name?: string;
|
|
50311
51485
|
}
|
|
51486
|
+
export interface Params$Resource$Projects$Locations$Datastores$Getiampolicy extends StandardParameters {
|
|
51487
|
+
/**
|
|
51488
|
+
* 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).
|
|
51489
|
+
*/
|
|
51490
|
+
'options.requestedPolicyVersion'?: number;
|
|
51491
|
+
/**
|
|
51492
|
+
* 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.
|
|
51493
|
+
*/
|
|
51494
|
+
resource?: string;
|
|
51495
|
+
}
|
|
50312
51496
|
export interface Params$Resource$Projects$Locations$Datastores$Getsitesearchengine extends StandardParameters {
|
|
50313
51497
|
/**
|
|
50314
51498
|
* 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.
|
|
@@ -50348,6 +51532,17 @@ export namespace discoveryengine_v1 {
|
|
|
50348
51532
|
*/
|
|
50349
51533
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1DataStore;
|
|
50350
51534
|
}
|
|
51535
|
+
export interface Params$Resource$Projects$Locations$Datastores$Setiampolicy extends StandardParameters {
|
|
51536
|
+
/**
|
|
51537
|
+
* 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.
|
|
51538
|
+
*/
|
|
51539
|
+
resource?: string;
|
|
51540
|
+
|
|
51541
|
+
/**
|
|
51542
|
+
* Request body metadata
|
|
51543
|
+
*/
|
|
51544
|
+
requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
|
|
51545
|
+
}
|
|
50351
51546
|
|
|
50352
51547
|
export class Resource$Projects$Locations$Datastores$Branches {
|
|
50353
51548
|
context: APIRequestContext;
|
|
@@ -57678,6 +58873,7 @@ export namespace discoveryengine_v1 {
|
|
|
57678
58873
|
* // "relevanceScoreSpec": {},
|
|
57679
58874
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
57680
58875
|
* // "safeSearch": false,
|
|
58876
|
+
* // "searchAddonSpec": {},
|
|
57681
58877
|
* // "searchAsYouTypeSpec": {},
|
|
57682
58878
|
* // "session": "my_session",
|
|
57683
58879
|
* // "sessionSpec": {},
|
|
@@ -57892,6 +59088,7 @@ export namespace discoveryengine_v1 {
|
|
|
57892
59088
|
* // "relevanceScoreSpec": {},
|
|
57893
59089
|
* // "relevanceThreshold": "my_relevanceThreshold",
|
|
57894
59090
|
* // "safeSearch": false,
|
|
59091
|
+
* // "searchAddonSpec": {},
|
|
57895
59092
|
* // "searchAsYouTypeSpec": {},
|
|
57896
59093
|
* // "session": "my_session",
|
|
57897
59094
|
* // "sessionSpec": {},
|
|
@@ -62652,7 +63849,7 @@ export namespace discoveryengine_v1 {
|
|
|
62652
63849
|
* 'placeholder-value',
|
|
62653
63850
|
* // 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).
|
|
62654
63851
|
* languageCode: 'placeholder-value',
|
|
62655
|
-
* // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
63852
|
+
* // 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.
|
|
62656
63853
|
* modelInfoView: 'placeholder-value',
|
|
62657
63854
|
* // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
|
|
62658
63855
|
* name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
|
|
@@ -63057,7 +64254,7 @@ export namespace discoveryengine_v1 {
|
|
|
63057
64254
|
*/
|
|
63058
64255
|
languageCode?: string;
|
|
63059
64256
|
/**
|
|
63060
|
-
* Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `
|
|
64257
|
+
* 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.
|
|
63061
64258
|
*/
|
|
63062
64259
|
modelInfoView?: string;
|
|
63063
64260
|
/**
|