@googleapis/discoveryengine 32.1.0 → 36.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1beta.ts CHANGED
@@ -879,6 +879,10 @@ export namespace discoveryengine_v1beta {
879
879
  * Required. Model name (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). See `model_mixture` for the list of allowed models.
880
880
  */
881
881
  name?: string | null;
882
+ /**
883
+ * Optional. Sent as Vertex `ThinkingConfig.thinking_level`.
884
+ */
885
+ thinkingLevel?: string | null;
882
886
  /**
883
887
  * 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.
884
888
  */
@@ -1621,6 +1625,10 @@ export namespace discoveryengine_v1beta {
1621
1625
  * Referenced content and related document metadata.
1622
1626
  */
1623
1627
  export interface Schema$GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference {
1628
+ /**
1629
+ * Output only. Generic structured chunk metadata from upstream data source connectors.
1630
+ */
1631
+ chunkMetadata?: {[key: string]: any} | null;
1624
1632
  /**
1625
1633
  * Chunk of code snippet from the referenced document.
1626
1634
  */
@@ -3322,7 +3330,7 @@ export namespace discoveryengine_v1beta {
3322
3330
  */
3323
3331
  displayName?: string | null;
3324
3332
  /**
3325
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `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`
3333
+ * 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`
3326
3334
  */
3327
3335
  features?: {[key: string]: string} | null;
3328
3336
  /**
@@ -3365,6 +3373,10 @@ export namespace discoveryengine_v1beta {
3365
3373
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
3366
3374
  */
3367
3375
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig;
3376
+ /**
3377
+ * Optional. Non-empty default. Session config for the engine.
3378
+ */
3379
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig;
3368
3380
  /**
3369
3381
  * Additional config specs for a `similar-items` engine.
3370
3382
  */
@@ -5704,6 +5716,28 @@ export namespace discoveryengine_v1beta {
5704
5716
  */
5705
5717
  userPseudoId?: string | null;
5706
5718
  }
5719
+ /**
5720
+ * Configuration for the session.
5721
+ */
5722
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig {
5723
+ /**
5724
+ * Optional. Session management policy that defines who will manage the session.
5725
+ */
5726
+ sessionManagementPolicy?: string | null;
5727
+ /**
5728
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
5729
+ */
5730
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl;
5731
+ }
5732
+ /**
5733
+ * Defines the TTL for sessions.
5734
+ */
5735
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl {
5736
+ /**
5737
+ * Defines the number of days for session TTL.
5738
+ */
5739
+ days?: number | null;
5740
+ }
5707
5741
  /**
5708
5742
  * Represents a turn, including a query from the user and a answer from service.
5709
5743
  */
@@ -6226,6 +6260,10 @@ export namespace discoveryengine_v1beta {
6226
6260
  * Optional. List of banned phrases.
6227
6261
  */
6228
6262
  bannedPhrases?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase[];
6263
+ /**
6264
+ * Optional. Data protection policy to be used for sanitizing file uploads.
6265
+ */
6266
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
6229
6267
  /**
6230
6268
  * Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
6231
6269
  */
@@ -7803,6 +7841,10 @@ export namespace discoveryengine_v1beta {
7803
7841
  * Optional. List of banned phrases.
7804
7842
  */
7805
7843
  bannedPhrases?: Schema$GoogleCloudDiscoveryengineV1betaAssistantCustomerPolicyBannedPhrase[];
7844
+ /**
7845
+ * Optional. Data protection policy to be used for sanitizing file uploads.
7846
+ */
7847
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy;
7806
7848
  /**
7807
7849
  * Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
7808
7850
  */
@@ -7910,6 +7952,10 @@ export namespace discoveryengine_v1beta {
7910
7952
  * Referenced content and related document metadata.
7911
7953
  */
7912
7954
  export interface Schema$GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadataReference {
7955
+ /**
7956
+ * Output only. Generic structured chunk metadata from upstream data source connectors.
7957
+ */
7958
+ chunkMetadata?: {[key: string]: any} | null;
7913
7959
  /**
7914
7960
  * Chunk of code snippet from the referenced document.
7915
7961
  */
@@ -9117,6 +9163,24 @@ export namespace discoveryengine_v1beta {
9117
9163
  */
9118
9164
  trainingStartTime?: string | null;
9119
9165
  }
9166
+ /**
9167
+ * Contains the data protection policy config for a DataStore or a connector.
9168
+ */
9169
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy {
9170
+ /**
9171
+ * Optional. Specifies the sensitive data protection policy for the connector source.
9172
+ */
9173
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy;
9174
+ }
9175
+ /**
9176
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
9177
+ */
9178
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy {
9179
+ /**
9180
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
9181
+ */
9182
+ policy?: string | null;
9183
+ }
9120
9184
  /**
9121
9185
  * DataStore captures global settings and configs at the DataStore level.
9122
9186
  */
@@ -9153,6 +9217,10 @@ export namespace discoveryengine_v1beta {
9153
9217
  * Output only. Timestamp the DataStore was created at.
9154
9218
  */
9155
9219
  createTime?: string | null;
9220
+ /**
9221
+ * Optional. Specifies the data protection policy for the data store.
9222
+ */
9223
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy;
9156
9224
  /**
9157
9225
  * Output only. The id of the default Schema associated to this data store.
9158
9226
  */
@@ -9852,7 +9920,7 @@ export namespace discoveryengine_v1beta {
9852
9920
  */
9853
9921
  displayName?: string | null;
9854
9922
  /**
9855
- * 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`
9923
+ * 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`
9856
9924
  */
9857
9925
  features?: {[key: string]: string} | null;
9858
9926
  /**
@@ -9891,6 +9959,10 @@ export namespace discoveryengine_v1beta {
9891
9959
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
9892
9960
  */
9893
9961
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig;
9962
+ /**
9963
+ * Optional. Non-empty default. Session config for the engine.
9964
+ */
9965
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfig;
9894
9966
  /**
9895
9967
  * Required. The solutions of the engine.
9896
9968
  */
@@ -13649,6 +13721,28 @@ export namespace discoveryengine_v1beta {
13649
13721
  */
13650
13722
  userPseudoId?: string | null;
13651
13723
  }
13724
+ /**
13725
+ * Configuration for the session.
13726
+ */
13727
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfig {
13728
+ /**
13729
+ * Optional. Session management policy that defines who will manage the session.
13730
+ */
13731
+ sessionManagementPolicy?: string | null;
13732
+ /**
13733
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
13734
+ */
13735
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl;
13736
+ }
13737
+ /**
13738
+ * Defines the TTL for sessions.
13739
+ */
13740
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl {
13741
+ /**
13742
+ * Defines the number of days for session TTL.
13743
+ */
13744
+ days?: number | null;
13745
+ }
13652
13746
  /**
13653
13747
  * Represents a turn, including a query from the user and a answer from service.
13654
13748
  */
@@ -13802,6 +13896,10 @@ export namespace discoveryengine_v1beta {
13802
13896
  * Request for the AssistantService.StreamAssist method.
13803
13897
  */
13804
13898
  export interface Schema$GoogleCloudDiscoveryengineV1betaStreamAssistRequest {
13899
+ /**
13900
+ * Optional. Specification of agents that are used to serve the request.
13901
+ */
13902
+ agentsSpec?: Schema$GoogleCloudDiscoveryengineV1betaStreamAssistRequestAgentsSpec;
13805
13903
  /**
13806
13904
  * Optional. Specification of the generation configuration for the request.
13807
13905
  */
@@ -13823,6 +13921,24 @@ export namespace discoveryengine_v1beta {
13823
13921
  */
13824
13922
  userMetadata?: Schema$GoogleCloudDiscoveryengineV1betaAssistUserMetadata;
13825
13923
  }
13924
+ /**
13925
+ * Specification of agents that are used to serve the request.
13926
+ */
13927
+ export interface Schema$GoogleCloudDiscoveryengineV1betaStreamAssistRequestAgentsSpec {
13928
+ /**
13929
+ * Optional. Specification of agents that are used to serve the request.
13930
+ */
13931
+ agentSpecs?: Schema$GoogleCloudDiscoveryengineV1betaStreamAssistRequestAgentsSpecAgentSpec[];
13932
+ }
13933
+ /**
13934
+ * Specification of an agent.
13935
+ */
13936
+ export interface Schema$GoogleCloudDiscoveryengineV1betaStreamAssistRequestAgentsSpecAgentSpec {
13937
+ /**
13938
+ * Required. ID to identify the agent resource serving the request. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.
13939
+ */
13940
+ agentId?: string | null;
13941
+ }
13826
13942
  /**
13827
13943
  * Assistant generation specification for the request. This allows to override the default generation configuration at the engine level.
13828
13944
  */
@@ -14778,6 +14894,10 @@ export namespace discoveryengine_v1beta {
14778
14894
  * Output only. Timestamp the DataConnector was created at.
14779
14895
  */
14780
14896
  createTime?: string | null;
14897
+ /**
14898
+ * Optional. Specifies the data protection policy for the connector.
14899
+ */
14900
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
14781
14901
  /**
14782
14902
  * 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).
14783
14903
  */
@@ -15041,6 +15161,24 @@ export namespace discoveryengine_v1beta {
15041
15161
  */
15042
15162
  startingSchema?: Schema$GoogleCloudDiscoveryengineV1Schema;
15043
15163
  }
15164
+ /**
15165
+ * Contains the data protection policy config for a DataStore or a connector.
15166
+ */
15167
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy {
15168
+ /**
15169
+ * Optional. Specifies the sensitive data protection policy for the connector source.
15170
+ */
15171
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy;
15172
+ }
15173
+ /**
15174
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
15175
+ */
15176
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy {
15177
+ /**
15178
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
15179
+ */
15180
+ policy?: string | null;
15181
+ }
15044
15182
  /**
15045
15183
  * DataStore captures global settings and configs at the DataStore level.
15046
15184
  */
@@ -15077,6 +15215,10 @@ export namespace discoveryengine_v1beta {
15077
15215
  * Output only. Timestamp the DataStore was created at.
15078
15216
  */
15079
15217
  createTime?: string | null;
15218
+ /**
15219
+ * Optional. Specifies the data protection policy for the data store.
15220
+ */
15221
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
15080
15222
  /**
15081
15223
  * Output only. The id of the default Schema associated to this data store.
15082
15224
  */
@@ -15638,7 +15780,7 @@ export namespace discoveryengine_v1beta {
15638
15780
  */
15639
15781
  displayName?: string | null;
15640
15782
  /**
15641
- * 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`
15783
+ * 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`
15642
15784
  */
15643
15785
  features?: {[key: string]: string} | null;
15644
15786
  /**
@@ -15677,6 +15819,10 @@ export namespace discoveryengine_v1beta {
15677
15819
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
15678
15820
  */
15679
15821
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig;
15822
+ /**
15823
+ * Optional. Non-empty default. Session config for the engine.
15824
+ */
15825
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1SessionConfig;
15680
15826
  /**
15681
15827
  * Required. The solutions of the engine.
15682
15828
  */
@@ -16769,6 +16915,28 @@ export namespace discoveryengine_v1beta {
16769
16915
  */
16770
16916
  demotionEventType?: string | null;
16771
16917
  }
16918
+ /**
16919
+ * Configuration for the session.
16920
+ */
16921
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfig {
16922
+ /**
16923
+ * Optional. Session management policy that defines who will manage the session.
16924
+ */
16925
+ sessionManagementPolicy?: string | null;
16926
+ /**
16927
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
16928
+ */
16929
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl;
16930
+ }
16931
+ /**
16932
+ * Defines the TTL for sessions.
16933
+ */
16934
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl {
16935
+ /**
16936
+ * Defines the number of days for session TTL.
16937
+ */
16938
+ days?: number | null;
16939
+ }
16772
16940
  /**
16773
16941
  * Metadata for DataConnectorService.SetUpDataConnector method.
16774
16942
  */
@@ -20665,6 +20833,7 @@ export namespace discoveryengine_v1beta {
20665
20833
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
20666
20834
  * // "contentConfig": "my_contentConfig",
20667
20835
  * // "createTime": "my_createTime",
20836
+ * // "dataProtectionPolicy": {},
20668
20837
  * // "defaultSchemaId": "my_defaultSchemaId",
20669
20838
  * // "displayName": "my_displayName",
20670
20839
  * // "documentProcessingConfig": {},
@@ -20995,6 +21164,7 @@ export namespace discoveryengine_v1beta {
20995
21164
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
20996
21165
  * // "contentConfig": "my_contentConfig",
20997
21166
  * // "createTime": "my_createTime",
21167
+ * // "dataProtectionPolicy": {},
20998
21168
  * // "defaultSchemaId": "my_defaultSchemaId",
20999
21169
  * // "displayName": "my_displayName",
21000
21170
  * // "documentProcessingConfig": {},
@@ -21119,7 +21289,7 @@ export namespace discoveryengine_v1beta {
21119
21289
  }
21120
21290
 
21121
21291
  /**
21122
- * Gets the SiteSearchEngine.
21292
+ * 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.
21123
21293
  * @example
21124
21294
  * ```js
21125
21295
  * // Before running the sample:
@@ -21153,17 +21323,22 @@ export namespace discoveryengine_v1beta {
21153
21323
  *
21154
21324
  * // Do the magic
21155
21325
  * const res =
21156
- * await discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine(
21326
+ * await discoveryengine.projects.locations.collections.dataStores.getIamPolicy(
21157
21327
  * {
21158
- * // 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.
21159
- * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/siteSearchEngine',
21328
+ * // 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).
21329
+ * 'options.requestedPolicyVersion': 'placeholder-value',
21330
+ * // 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.
21331
+ * resource:
21332
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
21160
21333
  * },
21161
21334
  * );
21162
21335
  * console.log(res.data);
21163
21336
  *
21164
21337
  * // Example response
21165
21338
  * // {
21166
- * // "name": "my_name"
21339
+ * // "bindings": [],
21340
+ * // "etag": "my_etag",
21341
+ * // "version": 0
21167
21342
  * // }
21168
21343
  * }
21169
21344
  *
@@ -21179,62 +21354,56 @@ export namespace discoveryengine_v1beta {
21179
21354
  * @param callback - Optional callback that handles the response.
21180
21355
  * @returns A promise if used with async/await, or void if used with a callback.
21181
21356
  */
21182
- getSiteSearchEngine(
21183
- params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21357
+ getIamPolicy(
21358
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
21184
21359
  options: StreamMethodOptions
21185
21360
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
21186
- getSiteSearchEngine(
21187
- params?: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21361
+ getIamPolicy(
21362
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
21188
21363
  options?: MethodOptions
21189
- ): Promise<
21190
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21191
- >;
21192
- getSiteSearchEngine(
21193
- params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21364
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
21365
+ getIamPolicy(
21366
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
21194
21367
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
21195
21368
  callback: BodyResponseCallback<Readable>
21196
21369
  ): void;
21197
- getSiteSearchEngine(
21198
- params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21199
- options:
21200
- | MethodOptions
21201
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>,
21202
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21370
+ getIamPolicy(
21371
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
21372
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
21373
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
21203
21374
  ): void;
21204
- getSiteSearchEngine(
21205
- params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21206
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21375
+ getIamPolicy(
21376
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
21377
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
21207
21378
  ): void;
21208
- getSiteSearchEngine(
21209
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21379
+ getIamPolicy(
21380
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
21210
21381
  ): void;
21211
- getSiteSearchEngine(
21382
+ getIamPolicy(
21212
21383
  paramsOrCallback?:
21213
- | Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine
21214
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21384
+ | Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy
21385
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
21215
21386
  | BodyResponseCallback<Readable>,
21216
21387
  optionsOrCallback?:
21217
21388
  | MethodOptions
21218
21389
  | StreamMethodOptions
21219
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21390
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
21220
21391
  | BodyResponseCallback<Readable>,
21221
21392
  callback?:
21222
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21393
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
21223
21394
  | BodyResponseCallback<Readable>
21224
21395
  ):
21225
21396
  | void
21226
- | Promise<
21227
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21228
- >
21397
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
21229
21398
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
21230
21399
  let params = (paramsOrCallback ||
21231
- {}) as Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine;
21400
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy;
21232
21401
  let options = (optionsOrCallback || {}) as MethodOptions;
21233
21402
 
21234
21403
  if (typeof paramsOrCallback === 'function') {
21235
21404
  callback = paramsOrCallback;
21236
21405
  params =
21237
- {} as Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine;
21406
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy;
21238
21407
  options = {};
21239
21408
  }
21240
21409
 
@@ -21248,31 +21417,32 @@ export namespace discoveryengine_v1beta {
21248
21417
  const parameters = {
21249
21418
  options: Object.assign(
21250
21419
  {
21251
- url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
21420
+ url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(
21421
+ /([^:]\/)\/+/g,
21422
+ '$1'
21423
+ ),
21252
21424
  method: 'GET',
21253
21425
  apiVersion: '',
21254
21426
  },
21255
21427
  options
21256
21428
  ),
21257
21429
  params,
21258
- requiredParams: ['name'],
21259
- pathParams: ['name'],
21430
+ requiredParams: ['resource'],
21431
+ pathParams: ['resource'],
21260
21432
  context: this.context,
21261
21433
  };
21262
21434
  if (callback) {
21263
- createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>(
21435
+ createAPIRequest<Schema$GoogleIamV1Policy>(
21264
21436
  parameters,
21265
21437
  callback as BodyResponseCallback<unknown>
21266
21438
  );
21267
21439
  } else {
21268
- return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>(
21269
- parameters
21270
- );
21440
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
21271
21441
  }
21272
21442
  }
21273
21443
 
21274
21444
  /**
21275
- * Lists all the DataStores associated with the project.
21445
+ * Gets the SiteSearchEngine.
21276
21446
  * @example
21277
21447
  * ```js
21278
21448
  * // Before running the sample:
@@ -21306,23 +21476,17 @@ export namespace discoveryengine_v1beta {
21306
21476
  *
21307
21477
  * // Do the magic
21308
21478
  * const res =
21309
- * await discoveryengine.projects.locations.collections.dataStores.list({
21310
- * // Filter by solution type . For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
21311
- * filter: 'placeholder-value',
21312
- * // Maximum number of DataStores to return. If unspecified, defaults to 10. The maximum allowed value is 50. Values above 50 will be coerced to 50. If this field is negative, an INVALID_ARGUMENT is returned.
21313
- * pageSize: 'placeholder-value',
21314
- * // A page token ListDataStoresResponse.next_page_token, received from a previous DataStoreService.ListDataStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to DataStoreService.ListDataStores must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.
21315
- * pageToken: 'placeholder-value',
21316
- * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}`. If the caller does not have permission to list DataStores under this location, regardless of whether or not this data store exists, a PERMISSION_DENIED error is returned.
21317
- * parent:
21318
- * 'projects/my-project/locations/my-location/collections/my-collection',
21319
- * });
21479
+ * await discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine(
21480
+ * {
21481
+ * // 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.
21482
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/siteSearchEngine',
21483
+ * },
21484
+ * );
21320
21485
  * console.log(res.data);
21321
21486
  *
21322
21487
  * // Example response
21323
21488
  * // {
21324
- * // "dataStores": [],
21325
- * // "nextPageToken": "my_nextPageToken"
21489
+ * // "name": "my_name"
21326
21490
  * // }
21327
21491
  * }
21328
21492
  *
@@ -21338,62 +21502,62 @@ export namespace discoveryengine_v1beta {
21338
21502
  * @param callback - Optional callback that handles the response.
21339
21503
  * @returns A promise if used with async/await, or void if used with a callback.
21340
21504
  */
21341
- list(
21342
- params: Params$Resource$Projects$Locations$Collections$Datastores$List,
21505
+ getSiteSearchEngine(
21506
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21343
21507
  options: StreamMethodOptions
21344
21508
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
21345
- list(
21346
- params?: Params$Resource$Projects$Locations$Collections$Datastores$List,
21509
+ getSiteSearchEngine(
21510
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21347
21511
  options?: MethodOptions
21348
21512
  ): Promise<
21349
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21513
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21350
21514
  >;
21351
- list(
21352
- params: Params$Resource$Projects$Locations$Collections$Datastores$List,
21515
+ getSiteSearchEngine(
21516
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21353
21517
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
21354
21518
  callback: BodyResponseCallback<Readable>
21355
21519
  ): void;
21356
- list(
21357
- params: Params$Resource$Projects$Locations$Collections$Datastores$List,
21520
+ getSiteSearchEngine(
21521
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21358
21522
  options:
21359
21523
  | MethodOptions
21360
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>,
21361
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21524
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>,
21525
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21362
21526
  ): void;
21363
- list(
21364
- params: Params$Resource$Projects$Locations$Collections$Datastores$List,
21365
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21527
+ getSiteSearchEngine(
21528
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine,
21529
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21366
21530
  ): void;
21367
- list(
21368
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21531
+ getSiteSearchEngine(
21532
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21369
21533
  ): void;
21370
- list(
21534
+ getSiteSearchEngine(
21371
21535
  paramsOrCallback?:
21372
- | Params$Resource$Projects$Locations$Collections$Datastores$List
21373
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21536
+ | Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine
21537
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21374
21538
  | BodyResponseCallback<Readable>,
21375
21539
  optionsOrCallback?:
21376
21540
  | MethodOptions
21377
21541
  | StreamMethodOptions
21378
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21542
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21379
21543
  | BodyResponseCallback<Readable>,
21380
21544
  callback?:
21381
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21545
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21382
21546
  | BodyResponseCallback<Readable>
21383
21547
  ):
21384
21548
  | void
21385
21549
  | Promise<
21386
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21550
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>
21387
21551
  >
21388
21552
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
21389
21553
  let params = (paramsOrCallback ||
21390
- {}) as Params$Resource$Projects$Locations$Collections$Datastores$List;
21554
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine;
21391
21555
  let options = (optionsOrCallback || {}) as MethodOptions;
21392
21556
 
21393
21557
  if (typeof paramsOrCallback === 'function') {
21394
21558
  callback = paramsOrCallback;
21395
21559
  params =
21396
- {} as Params$Resource$Projects$Locations$Collections$Datastores$List;
21560
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine;
21397
21561
  options = {};
21398
21562
  }
21399
21563
 
@@ -21407,34 +21571,193 @@ export namespace discoveryengine_v1beta {
21407
21571
  const parameters = {
21408
21572
  options: Object.assign(
21409
21573
  {
21410
- url: (rootUrl + '/v1beta/{+parent}/dataStores').replace(
21411
- /([^:]\/)\/+/g,
21412
- '$1'
21413
- ),
21574
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
21414
21575
  method: 'GET',
21415
21576
  apiVersion: '',
21416
21577
  },
21417
21578
  options
21418
21579
  ),
21419
21580
  params,
21420
- requiredParams: ['parent'],
21421
- pathParams: ['parent'],
21581
+ requiredParams: ['name'],
21582
+ pathParams: ['name'],
21422
21583
  context: this.context,
21423
21584
  };
21424
21585
  if (callback) {
21425
- createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>(
21586
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>(
21426
21587
  parameters,
21427
21588
  callback as BodyResponseCallback<unknown>
21428
21589
  );
21429
21590
  } else {
21430
- return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>(
21591
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaSiteSearchEngine>(
21431
21592
  parameters
21432
21593
  );
21433
21594
  }
21434
21595
  }
21435
21596
 
21436
21597
  /**
21437
- * Updates a DataStore
21598
+ * Lists all the DataStores associated with the project.
21599
+ * @example
21600
+ * ```js
21601
+ * // Before running the sample:
21602
+ * // - Enable the API at:
21603
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
21604
+ * // - Login into gcloud by running:
21605
+ * // ```sh
21606
+ * // $ gcloud auth application-default login
21607
+ * // ```
21608
+ * // - Install the npm module by running:
21609
+ * // ```sh
21610
+ * // $ npm install googleapis
21611
+ * // ```
21612
+ *
21613
+ * const {google} = require('googleapis');
21614
+ * const discoveryengine = google.discoveryengine('v1beta');
21615
+ *
21616
+ * async function main() {
21617
+ * const auth = new google.auth.GoogleAuth({
21618
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
21619
+ * scopes: [
21620
+ * 'https://www.googleapis.com/auth/cloud-platform',
21621
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21622
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
21623
+ * ],
21624
+ * });
21625
+ *
21626
+ * // Acquire an auth client, and bind it to all future calls
21627
+ * const authClient = await auth.getClient();
21628
+ * google.options({auth: authClient});
21629
+ *
21630
+ * // Do the magic
21631
+ * const res =
21632
+ * await discoveryengine.projects.locations.collections.dataStores.list({
21633
+ * // Filter by solution type . For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
21634
+ * filter: 'placeholder-value',
21635
+ * // Maximum number of DataStores to return. If unspecified, defaults to 10. The maximum allowed value is 50. Values above 50 will be coerced to 50. If this field is negative, an INVALID_ARGUMENT is returned.
21636
+ * pageSize: 'placeholder-value',
21637
+ * // A page token ListDataStoresResponse.next_page_token, received from a previous DataStoreService.ListDataStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to DataStoreService.ListDataStores must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.
21638
+ * pageToken: 'placeholder-value',
21639
+ * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}`. If the caller does not have permission to list DataStores under this location, regardless of whether or not this data store exists, a PERMISSION_DENIED error is returned.
21640
+ * parent:
21641
+ * 'projects/my-project/locations/my-location/collections/my-collection',
21642
+ * });
21643
+ * console.log(res.data);
21644
+ *
21645
+ * // Example response
21646
+ * // {
21647
+ * // "dataStores": [],
21648
+ * // "nextPageToken": "my_nextPageToken"
21649
+ * // }
21650
+ * }
21651
+ *
21652
+ * main().catch(e => {
21653
+ * console.error(e);
21654
+ * throw e;
21655
+ * });
21656
+ *
21657
+ * ```
21658
+ *
21659
+ * @param params - Parameters for request
21660
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
21661
+ * @param callback - Optional callback that handles the response.
21662
+ * @returns A promise if used with async/await, or void if used with a callback.
21663
+ */
21664
+ list(
21665
+ params: Params$Resource$Projects$Locations$Collections$Datastores$List,
21666
+ options: StreamMethodOptions
21667
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
21668
+ list(
21669
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$List,
21670
+ options?: MethodOptions
21671
+ ): Promise<
21672
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21673
+ >;
21674
+ list(
21675
+ params: Params$Resource$Projects$Locations$Collections$Datastores$List,
21676
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
21677
+ callback: BodyResponseCallback<Readable>
21678
+ ): void;
21679
+ list(
21680
+ params: Params$Resource$Projects$Locations$Collections$Datastores$List,
21681
+ options:
21682
+ | MethodOptions
21683
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>,
21684
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21685
+ ): void;
21686
+ list(
21687
+ params: Params$Resource$Projects$Locations$Collections$Datastores$List,
21688
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21689
+ ): void;
21690
+ list(
21691
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21692
+ ): void;
21693
+ list(
21694
+ paramsOrCallback?:
21695
+ | Params$Resource$Projects$Locations$Collections$Datastores$List
21696
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21697
+ | BodyResponseCallback<Readable>,
21698
+ optionsOrCallback?:
21699
+ | MethodOptions
21700
+ | StreamMethodOptions
21701
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21702
+ | BodyResponseCallback<Readable>,
21703
+ callback?:
21704
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21705
+ | BodyResponseCallback<Readable>
21706
+ ):
21707
+ | void
21708
+ | Promise<
21709
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>
21710
+ >
21711
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
21712
+ let params = (paramsOrCallback ||
21713
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$List;
21714
+ let options = (optionsOrCallback || {}) as MethodOptions;
21715
+
21716
+ if (typeof paramsOrCallback === 'function') {
21717
+ callback = paramsOrCallback;
21718
+ params =
21719
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$List;
21720
+ options = {};
21721
+ }
21722
+
21723
+ if (typeof optionsOrCallback === 'function') {
21724
+ callback = optionsOrCallback;
21725
+ options = {};
21726
+ }
21727
+
21728
+ const rootUrl =
21729
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
21730
+ const parameters = {
21731
+ options: Object.assign(
21732
+ {
21733
+ url: (rootUrl + '/v1beta/{+parent}/dataStores').replace(
21734
+ /([^:]\/)\/+/g,
21735
+ '$1'
21736
+ ),
21737
+ method: 'GET',
21738
+ apiVersion: '',
21739
+ },
21740
+ options
21741
+ ),
21742
+ params,
21743
+ requiredParams: ['parent'],
21744
+ pathParams: ['parent'],
21745
+ context: this.context,
21746
+ };
21747
+ if (callback) {
21748
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>(
21749
+ parameters,
21750
+ callback as BodyResponseCallback<unknown>
21751
+ );
21752
+ } else {
21753
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1betaListDataStoresResponse>(
21754
+ parameters
21755
+ );
21756
+ }
21757
+ }
21758
+
21759
+ /**
21760
+ * Updates a DataStore
21438
21761
  * @example
21439
21762
  * ```js
21440
21763
  * // Before running the sample:
@@ -21486,6 +21809,7 @@ export namespace discoveryengine_v1beta {
21486
21809
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
21487
21810
  * // "contentConfig": "my_contentConfig",
21488
21811
  * // "createTime": "my_createTime",
21812
+ * // "dataProtectionPolicy": {},
21489
21813
  * // "defaultSchemaId": "my_defaultSchemaId",
21490
21814
  * // "displayName": "my_displayName",
21491
21815
  * // "documentProcessingConfig": {},
@@ -21517,6 +21841,7 @@ export namespace discoveryengine_v1beta {
21517
21841
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
21518
21842
  * // "contentConfig": "my_contentConfig",
21519
21843
  * // "createTime": "my_createTime",
21844
+ * // "dataProtectionPolicy": {},
21520
21845
  * // "defaultSchemaId": "my_defaultSchemaId",
21521
21846
  * // "displayName": "my_displayName",
21522
21847
  * // "documentProcessingConfig": {},
@@ -21640,6 +21965,165 @@ export namespace discoveryengine_v1beta {
21640
21965
  }
21641
21966
  }
21642
21967
 
21968
+ /**
21969
+ * 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.
21970
+ * @example
21971
+ * ```js
21972
+ * // Before running the sample:
21973
+ * // - Enable the API at:
21974
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
21975
+ * // - Login into gcloud by running:
21976
+ * // ```sh
21977
+ * // $ gcloud auth application-default login
21978
+ * // ```
21979
+ * // - Install the npm module by running:
21980
+ * // ```sh
21981
+ * // $ npm install googleapis
21982
+ * // ```
21983
+ *
21984
+ * const {google} = require('googleapis');
21985
+ * const discoveryengine = google.discoveryengine('v1beta');
21986
+ *
21987
+ * async function main() {
21988
+ * const auth = new google.auth.GoogleAuth({
21989
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
21990
+ * scopes: [
21991
+ * 'https://www.googleapis.com/auth/cloud-platform',
21992
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21993
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
21994
+ * ],
21995
+ * });
21996
+ *
21997
+ * // Acquire an auth client, and bind it to all future calls
21998
+ * const authClient = await auth.getClient();
21999
+ * google.options({auth: authClient});
22000
+ *
22001
+ * // Do the magic
22002
+ * const res =
22003
+ * await discoveryengine.projects.locations.collections.dataStores.setIamPolicy(
22004
+ * {
22005
+ * // 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.
22006
+ * resource:
22007
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
22008
+ *
22009
+ * // Request body metadata
22010
+ * requestBody: {
22011
+ * // request body parameters
22012
+ * // {
22013
+ * // "policy": {}
22014
+ * // }
22015
+ * },
22016
+ * },
22017
+ * );
22018
+ * console.log(res.data);
22019
+ *
22020
+ * // Example response
22021
+ * // {
22022
+ * // "bindings": [],
22023
+ * // "etag": "my_etag",
22024
+ * // "version": 0
22025
+ * // }
22026
+ * }
22027
+ *
22028
+ * main().catch(e => {
22029
+ * console.error(e);
22030
+ * throw e;
22031
+ * });
22032
+ *
22033
+ * ```
22034
+ *
22035
+ * @param params - Parameters for request
22036
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
22037
+ * @param callback - Optional callback that handles the response.
22038
+ * @returns A promise if used with async/await, or void if used with a callback.
22039
+ */
22040
+ setIamPolicy(
22041
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
22042
+ options: StreamMethodOptions
22043
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
22044
+ setIamPolicy(
22045
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
22046
+ options?: MethodOptions
22047
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
22048
+ setIamPolicy(
22049
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
22050
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
22051
+ callback: BodyResponseCallback<Readable>
22052
+ ): void;
22053
+ setIamPolicy(
22054
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
22055
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
22056
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
22057
+ ): void;
22058
+ setIamPolicy(
22059
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
22060
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
22061
+ ): void;
22062
+ setIamPolicy(
22063
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
22064
+ ): void;
22065
+ setIamPolicy(
22066
+ paramsOrCallback?:
22067
+ | Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy
22068
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
22069
+ | BodyResponseCallback<Readable>,
22070
+ optionsOrCallback?:
22071
+ | MethodOptions
22072
+ | StreamMethodOptions
22073
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
22074
+ | BodyResponseCallback<Readable>,
22075
+ callback?:
22076
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
22077
+ | BodyResponseCallback<Readable>
22078
+ ):
22079
+ | void
22080
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
22081
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
22082
+ let params = (paramsOrCallback ||
22083
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy;
22084
+ let options = (optionsOrCallback || {}) as MethodOptions;
22085
+
22086
+ if (typeof paramsOrCallback === 'function') {
22087
+ callback = paramsOrCallback;
22088
+ params =
22089
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy;
22090
+ options = {};
22091
+ }
22092
+
22093
+ if (typeof optionsOrCallback === 'function') {
22094
+ callback = optionsOrCallback;
22095
+ options = {};
22096
+ }
22097
+
22098
+ const rootUrl =
22099
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
22100
+ const parameters = {
22101
+ options: Object.assign(
22102
+ {
22103
+ url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(
22104
+ /([^:]\/)\/+/g,
22105
+ '$1'
22106
+ ),
22107
+ method: 'POST',
22108
+ apiVersion: '',
22109
+ },
22110
+ options
22111
+ ),
22112
+ params,
22113
+ requiredParams: ['resource'],
22114
+ pathParams: ['resource'],
22115
+ context: this.context,
22116
+ };
22117
+ if (callback) {
22118
+ createAPIRequest<Schema$GoogleIamV1Policy>(
22119
+ parameters,
22120
+ callback as BodyResponseCallback<unknown>
22121
+ );
22122
+ } else {
22123
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
22124
+ }
22125
+ }
22126
+
21643
22127
  /**
21644
22128
  * Trains a custom model.
21645
22129
  * @example
@@ -21871,6 +22355,16 @@ export namespace discoveryengine_v1beta {
21871
22355
  */
21872
22356
  name?: string;
21873
22357
  }
22358
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy extends StandardParameters {
22359
+ /**
22360
+ * 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).
22361
+ */
22362
+ 'options.requestedPolicyVersion'?: number;
22363
+ /**
22364
+ * 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.
22365
+ */
22366
+ resource?: string;
22367
+ }
21874
22368
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine extends StandardParameters {
21875
22369
  /**
21876
22370
  * 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.
@@ -21910,6 +22404,17 @@ export namespace discoveryengine_v1beta {
21910
22404
  */
21911
22405
  requestBody?: Schema$GoogleCloudDiscoveryengineV1betaDataStore;
21912
22406
  }
22407
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy extends StandardParameters {
22408
+ /**
22409
+ * 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.
22410
+ */
22411
+ resource?: string;
22412
+
22413
+ /**
22414
+ * Request body metadata
22415
+ */
22416
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
22417
+ }
21913
22418
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Traincustommodel extends StandardParameters {
21914
22419
  /**
21915
22420
  * 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.
@@ -35984,6 +36489,7 @@ export namespace discoveryengine_v1beta {
35984
36489
  * // "observabilityConfig": {},
35985
36490
  * // "procurementContactEmails": [],
35986
36491
  * // "searchEngineConfig": {},
36492
+ * // "sessionConfig": {},
35987
36493
  * // "solutionType": "my_solutionType",
35988
36494
  * // "updateTime": "my_updateTime"
35989
36495
  * // }
@@ -36314,6 +36820,7 @@ export namespace discoveryengine_v1beta {
36314
36820
  * // "observabilityConfig": {},
36315
36821
  * // "procurementContactEmails": [],
36316
36822
  * // "searchEngineConfig": {},
36823
+ * // "sessionConfig": {},
36317
36824
  * // "solutionType": "my_solutionType",
36318
36825
  * // "updateTime": "my_updateTime"
36319
36826
  * // }
@@ -36805,6 +37312,7 @@ export namespace discoveryengine_v1beta {
36805
37312
  * // "observabilityConfig": {},
36806
37313
  * // "procurementContactEmails": [],
36807
37314
  * // "searchEngineConfig": {},
37315
+ * // "sessionConfig": {},
36808
37316
  * // "solutionType": "my_solutionType",
36809
37317
  * // "updateTime": "my_updateTime"
36810
37318
  * // }
@@ -36837,6 +37345,7 @@ export namespace discoveryengine_v1beta {
36837
37345
  * // "observabilityConfig": {},
36838
37346
  * // "procurementContactEmails": [],
36839
37347
  * // "searchEngineConfig": {},
37348
+ * // "sessionConfig": {},
36840
37349
  * // "solutionType": "my_solutionType",
36841
37350
  * // "updateTime": "my_updateTime"
36842
37351
  * // }
@@ -37018,6 +37527,7 @@ export namespace discoveryengine_v1beta {
37018
37527
  * // "observabilityConfig": {},
37019
37528
  * // "procurementContactEmails": [],
37020
37529
  * // "searchEngineConfig": {},
37530
+ * // "sessionConfig": {},
37021
37531
  * // "solutionType": "my_solutionType",
37022
37532
  * // "updateTime": "my_updateTime"
37023
37533
  * // }
@@ -37202,6 +37712,7 @@ export namespace discoveryengine_v1beta {
37202
37712
  * // "observabilityConfig": {},
37203
37713
  * // "procurementContactEmails": [],
37204
37714
  * // "searchEngineConfig": {},
37715
+ * // "sessionConfig": {},
37205
37716
  * // "solutionType": "my_solutionType",
37206
37717
  * // "updateTime": "my_updateTime"
37207
37718
  * // }
@@ -38637,6 +39148,7 @@ export namespace discoveryengine_v1beta {
38637
39148
  * requestBody: {
38638
39149
  * // request body parameters
38639
39150
  * // {
39151
+ * // "agentsSpec": {},
38640
39152
  * // "generationSpec": {},
38641
39153
  * // "query": {},
38642
39154
  * // "session": "my_session",
@@ -45427,6 +45939,7 @@ export namespace discoveryengine_v1beta {
45427
45939
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
45428
45940
  * // "contentConfig": "my_contentConfig",
45429
45941
  * // "createTime": "my_createTime",
45942
+ * // "dataProtectionPolicy": {},
45430
45943
  * // "defaultSchemaId": "my_defaultSchemaId",
45431
45944
  * // "displayName": "my_displayName",
45432
45945
  * // "documentProcessingConfig": {},
@@ -45753,6 +46266,7 @@ export namespace discoveryengine_v1beta {
45753
46266
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
45754
46267
  * // "contentConfig": "my_contentConfig",
45755
46268
  * // "createTime": "my_createTime",
46269
+ * // "dataProtectionPolicy": {},
45756
46270
  * // "defaultSchemaId": "my_defaultSchemaId",
45757
46271
  * // "displayName": "my_displayName",
45758
46272
  * // "documentProcessingConfig": {},
@@ -45875,6 +46389,156 @@ export namespace discoveryengine_v1beta {
45875
46389
  }
45876
46390
  }
45877
46391
 
46392
+ /**
46393
+ * 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.
46394
+ * @example
46395
+ * ```js
46396
+ * // Before running the sample:
46397
+ * // - Enable the API at:
46398
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
46399
+ * // - Login into gcloud by running:
46400
+ * // ```sh
46401
+ * // $ gcloud auth application-default login
46402
+ * // ```
46403
+ * // - Install the npm module by running:
46404
+ * // ```sh
46405
+ * // $ npm install googleapis
46406
+ * // ```
46407
+ *
46408
+ * const {google} = require('googleapis');
46409
+ * const discoveryengine = google.discoveryengine('v1beta');
46410
+ *
46411
+ * async function main() {
46412
+ * const auth = new google.auth.GoogleAuth({
46413
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
46414
+ * scopes: [
46415
+ * 'https://www.googleapis.com/auth/cloud-platform',
46416
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
46417
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
46418
+ * ],
46419
+ * });
46420
+ *
46421
+ * // Acquire an auth client, and bind it to all future calls
46422
+ * const authClient = await auth.getClient();
46423
+ * google.options({auth: authClient});
46424
+ *
46425
+ * // Do the magic
46426
+ * const res = await discoveryengine.projects.locations.dataStores.getIamPolicy({
46427
+ * // 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).
46428
+ * 'options.requestedPolicyVersion': 'placeholder-value',
46429
+ * // 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.
46430
+ * resource:
46431
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
46432
+ * });
46433
+ * console.log(res.data);
46434
+ *
46435
+ * // Example response
46436
+ * // {
46437
+ * // "bindings": [],
46438
+ * // "etag": "my_etag",
46439
+ * // "version": 0
46440
+ * // }
46441
+ * }
46442
+ *
46443
+ * main().catch(e => {
46444
+ * console.error(e);
46445
+ * throw e;
46446
+ * });
46447
+ *
46448
+ * ```
46449
+ *
46450
+ * @param params - Parameters for request
46451
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
46452
+ * @param callback - Optional callback that handles the response.
46453
+ * @returns A promise if used with async/await, or void if used with a callback.
46454
+ */
46455
+ getIamPolicy(
46456
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
46457
+ options: StreamMethodOptions
46458
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
46459
+ getIamPolicy(
46460
+ params?: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
46461
+ options?: MethodOptions
46462
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
46463
+ getIamPolicy(
46464
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
46465
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
46466
+ callback: BodyResponseCallback<Readable>
46467
+ ): void;
46468
+ getIamPolicy(
46469
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
46470
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
46471
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
46472
+ ): void;
46473
+ getIamPolicy(
46474
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
46475
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
46476
+ ): void;
46477
+ getIamPolicy(
46478
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
46479
+ ): void;
46480
+ getIamPolicy(
46481
+ paramsOrCallback?:
46482
+ | Params$Resource$Projects$Locations$Datastores$Getiampolicy
46483
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
46484
+ | BodyResponseCallback<Readable>,
46485
+ optionsOrCallback?:
46486
+ | MethodOptions
46487
+ | StreamMethodOptions
46488
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
46489
+ | BodyResponseCallback<Readable>,
46490
+ callback?:
46491
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
46492
+ | BodyResponseCallback<Readable>
46493
+ ):
46494
+ | void
46495
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
46496
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
46497
+ let params = (paramsOrCallback ||
46498
+ {}) as Params$Resource$Projects$Locations$Datastores$Getiampolicy;
46499
+ let options = (optionsOrCallback || {}) as MethodOptions;
46500
+
46501
+ if (typeof paramsOrCallback === 'function') {
46502
+ callback = paramsOrCallback;
46503
+ params =
46504
+ {} as Params$Resource$Projects$Locations$Datastores$Getiampolicy;
46505
+ options = {};
46506
+ }
46507
+
46508
+ if (typeof optionsOrCallback === 'function') {
46509
+ callback = optionsOrCallback;
46510
+ options = {};
46511
+ }
46512
+
46513
+ const rootUrl =
46514
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
46515
+ const parameters = {
46516
+ options: Object.assign(
46517
+ {
46518
+ url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(
46519
+ /([^:]\/)\/+/g,
46520
+ '$1'
46521
+ ),
46522
+ method: 'GET',
46523
+ apiVersion: '',
46524
+ },
46525
+ options
46526
+ ),
46527
+ params,
46528
+ requiredParams: ['resource'],
46529
+ pathParams: ['resource'],
46530
+ context: this.context,
46531
+ };
46532
+ if (callback) {
46533
+ createAPIRequest<Schema$GoogleIamV1Policy>(
46534
+ parameters,
46535
+ callback as BodyResponseCallback<unknown>
46536
+ );
46537
+ } else {
46538
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
46539
+ }
46540
+ }
46541
+
45878
46542
  /**
45879
46543
  * Gets the SiteSearchEngine.
45880
46544
  * @example
@@ -46237,6 +46901,7 @@ export namespace discoveryengine_v1beta {
46237
46901
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
46238
46902
  * // "contentConfig": "my_contentConfig",
46239
46903
  * // "createTime": "my_createTime",
46904
+ * // "dataProtectionPolicy": {},
46240
46905
  * // "defaultSchemaId": "my_defaultSchemaId",
46241
46906
  * // "displayName": "my_displayName",
46242
46907
  * // "documentProcessingConfig": {},
@@ -46268,6 +46933,7 @@ export namespace discoveryengine_v1beta {
46268
46933
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
46269
46934
  * // "contentConfig": "my_contentConfig",
46270
46935
  * // "createTime": "my_createTime",
46936
+ * // "dataProtectionPolicy": {},
46271
46937
  * // "defaultSchemaId": "my_defaultSchemaId",
46272
46938
  * // "displayName": "my_displayName",
46273
46939
  * // "documentProcessingConfig": {},
@@ -46389,6 +47055,162 @@ export namespace discoveryengine_v1beta {
46389
47055
  );
46390
47056
  }
46391
47057
  }
47058
+
47059
+ /**
47060
+ * 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.
47061
+ * @example
47062
+ * ```js
47063
+ * // Before running the sample:
47064
+ * // - Enable the API at:
47065
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
47066
+ * // - Login into gcloud by running:
47067
+ * // ```sh
47068
+ * // $ gcloud auth application-default login
47069
+ * // ```
47070
+ * // - Install the npm module by running:
47071
+ * // ```sh
47072
+ * // $ npm install googleapis
47073
+ * // ```
47074
+ *
47075
+ * const {google} = require('googleapis');
47076
+ * const discoveryengine = google.discoveryengine('v1beta');
47077
+ *
47078
+ * async function main() {
47079
+ * const auth = new google.auth.GoogleAuth({
47080
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
47081
+ * scopes: [
47082
+ * 'https://www.googleapis.com/auth/cloud-platform',
47083
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
47084
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
47085
+ * ],
47086
+ * });
47087
+ *
47088
+ * // Acquire an auth client, and bind it to all future calls
47089
+ * const authClient = await auth.getClient();
47090
+ * google.options({auth: authClient});
47091
+ *
47092
+ * // Do the magic
47093
+ * const res = await discoveryengine.projects.locations.dataStores.setIamPolicy({
47094
+ * // 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.
47095
+ * resource:
47096
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
47097
+ *
47098
+ * // Request body metadata
47099
+ * requestBody: {
47100
+ * // request body parameters
47101
+ * // {
47102
+ * // "policy": {}
47103
+ * // }
47104
+ * },
47105
+ * });
47106
+ * console.log(res.data);
47107
+ *
47108
+ * // Example response
47109
+ * // {
47110
+ * // "bindings": [],
47111
+ * // "etag": "my_etag",
47112
+ * // "version": 0
47113
+ * // }
47114
+ * }
47115
+ *
47116
+ * main().catch(e => {
47117
+ * console.error(e);
47118
+ * throw e;
47119
+ * });
47120
+ *
47121
+ * ```
47122
+ *
47123
+ * @param params - Parameters for request
47124
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
47125
+ * @param callback - Optional callback that handles the response.
47126
+ * @returns A promise if used with async/await, or void if used with a callback.
47127
+ */
47128
+ setIamPolicy(
47129
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
47130
+ options: StreamMethodOptions
47131
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
47132
+ setIamPolicy(
47133
+ params?: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
47134
+ options?: MethodOptions
47135
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
47136
+ setIamPolicy(
47137
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
47138
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
47139
+ callback: BodyResponseCallback<Readable>
47140
+ ): void;
47141
+ setIamPolicy(
47142
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
47143
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
47144
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
47145
+ ): void;
47146
+ setIamPolicy(
47147
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
47148
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
47149
+ ): void;
47150
+ setIamPolicy(
47151
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
47152
+ ): void;
47153
+ setIamPolicy(
47154
+ paramsOrCallback?:
47155
+ | Params$Resource$Projects$Locations$Datastores$Setiampolicy
47156
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
47157
+ | BodyResponseCallback<Readable>,
47158
+ optionsOrCallback?:
47159
+ | MethodOptions
47160
+ | StreamMethodOptions
47161
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
47162
+ | BodyResponseCallback<Readable>,
47163
+ callback?:
47164
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
47165
+ | BodyResponseCallback<Readable>
47166
+ ):
47167
+ | void
47168
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
47169
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
47170
+ let params = (paramsOrCallback ||
47171
+ {}) as Params$Resource$Projects$Locations$Datastores$Setiampolicy;
47172
+ let options = (optionsOrCallback || {}) as MethodOptions;
47173
+
47174
+ if (typeof paramsOrCallback === 'function') {
47175
+ callback = paramsOrCallback;
47176
+ params =
47177
+ {} as Params$Resource$Projects$Locations$Datastores$Setiampolicy;
47178
+ options = {};
47179
+ }
47180
+
47181
+ if (typeof optionsOrCallback === 'function') {
47182
+ callback = optionsOrCallback;
47183
+ options = {};
47184
+ }
47185
+
47186
+ const rootUrl =
47187
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
47188
+ const parameters = {
47189
+ options: Object.assign(
47190
+ {
47191
+ url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(
47192
+ /([^:]\/)\/+/g,
47193
+ '$1'
47194
+ ),
47195
+ method: 'POST',
47196
+ apiVersion: '',
47197
+ },
47198
+ options
47199
+ ),
47200
+ params,
47201
+ requiredParams: ['resource'],
47202
+ pathParams: ['resource'],
47203
+ context: this.context,
47204
+ };
47205
+ if (callback) {
47206
+ createAPIRequest<Schema$GoogleIamV1Policy>(
47207
+ parameters,
47208
+ callback as BodyResponseCallback<unknown>
47209
+ );
47210
+ } else {
47211
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
47212
+ }
47213
+ }
46392
47214
  }
46393
47215
 
46394
47216
  export interface Params$Resource$Projects$Locations$Datastores$Completequery extends StandardParameters {
@@ -46456,6 +47278,16 @@ export namespace discoveryengine_v1beta {
46456
47278
  */
46457
47279
  name?: string;
46458
47280
  }
47281
+ export interface Params$Resource$Projects$Locations$Datastores$Getiampolicy extends StandardParameters {
47282
+ /**
47283
+ * 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).
47284
+ */
47285
+ 'options.requestedPolicyVersion'?: number;
47286
+ /**
47287
+ * 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.
47288
+ */
47289
+ resource?: string;
47290
+ }
46459
47291
  export interface Params$Resource$Projects$Locations$Datastores$Getsitesearchengine extends StandardParameters {
46460
47292
  /**
46461
47293
  * 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.
@@ -46495,6 +47327,17 @@ export namespace discoveryengine_v1beta {
46495
47327
  */
46496
47328
  requestBody?: Schema$GoogleCloudDiscoveryengineV1betaDataStore;
46497
47329
  }
47330
+ export interface Params$Resource$Projects$Locations$Datastores$Setiampolicy extends StandardParameters {
47331
+ /**
47332
+ * 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.
47333
+ */
47334
+ resource?: string;
47335
+
47336
+ /**
47337
+ * Request body metadata
47338
+ */
47339
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
47340
+ }
46498
47341
 
46499
47342
  export class Resource$Projects$Locations$Datastores$Branches {
46500
47343
  context: APIRequestContext;