Skip to content

Commit adaf666

Browse files
feat: Automated regeneration of DiscoveryEngine client (googleapis#12254)
Auto-created at 2024-10-02 13:17:40 +0000 using the toys pull request generator.
1 parent 6d384db commit adaf666

23 files changed

+238
-4
lines changed

clients/discovery_engine/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_discovery_engine, "~> 0.17"}]
14+
[{:google_api_discovery_engine, "~> 0.18"}]
1515
end
1616
```
1717

clients/discovery_engine/lib/google_api/discovery_engine/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.DiscoveryEngine.V1 do
2020
API client metadata for GoogleApi.DiscoveryEngine.V1.
2121
"""
2222

23-
@discovery_revision "20240920"
23+
@discovery_revision "20240930"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_custom_tuning_model.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CustomT
2323
2424
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp the Model was created at.
2525
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the model.
26+
* `errorMessage` (*type:* `String.t`, *default:* `nil`) - Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
2627
* `metrics` (*type:* `map()`, *default:* `nil`) - The metrics of the trained model.
2728
* `modelState` (*type:* `String.t`, *default:* `nil`) - The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
2829
* `modelVersion` (*type:* `String.t`, *default:* `nil`) - The version of the model.
@@ -35,6 +36,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CustomT
3536
@type t :: %__MODULE__{
3637
:createTime => DateTime.t() | nil,
3738
:displayName => String.t() | nil,
39+
:errorMessage => String.t() | nil,
3840
:metrics => map() | nil,
3941
:modelState => String.t() | nil,
4042
:modelVersion => String.t() | nil,
@@ -44,6 +46,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CustomT
4446

4547
field(:createTime, as: DateTime)
4648
field(:displayName)
49+
field(:errorMessage)
4750
field(:metrics, type: :map)
4851
field(:modelState)
4952
field(:modelVersion)

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_engine.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Engine
2626
* `commonConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1EngineCommonConfig.t`, *default:* `nil`) - Common config spec that specifies the metadata of the engine.
2727
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp the Recommendation Engine was created at.
2828
* `dataStoreIds` (*type:* `list(String.t)`, *default:* `nil`) - The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.
29+
* `disableAnalytics` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to disable analytics for searches performed on this engine.
2930
* `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.
3031
* `industryVertical` (*type:* `String.t`, *default:* `nil`) - The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: If unspecified, default to `GENERIC`. Vertical on Engine has to match vertical of the DataStore linked to the engine.
3132
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
@@ -48,6 +49,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Engine
4849
| nil,
4950
:createTime => DateTime.t() | nil,
5051
:dataStoreIds => list(String.t()) | nil,
52+
:disableAnalytics => boolean() | nil,
5153
:displayName => String.t() | nil,
5254
:industryVertical => String.t() | nil,
5355
:name => String.t() | nil,
@@ -72,6 +74,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Engine
7274

7375
field(:createTime, as: DateTime)
7476
field(:dataStoreIds, type: :list)
77+
field(:disableAnalytics)
7578
field(:displayName)
7679
field(:industryVertical)
7780
field(:name)

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1_workspace_config.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,23 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Workspa
2222
## Attributes
2323
2424
* `dasherCustomerId` (*type:* `String.t`, *default:* `nil`) - Obfuscated Dasher customer ID.
25+
* `superAdminEmailAddress` (*type:* `String.t`, *default:* `nil`) - Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.
26+
* `superAdminServiceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.
2527
* `type` (*type:* `String.t`, *default:* `nil`) - The Google Workspace data source.
2628
"""
2729

2830
use GoogleApi.Gax.ModelBase
2931

3032
@type t :: %__MODULE__{
3133
:dasherCustomerId => String.t() | nil,
34+
:superAdminEmailAddress => String.t() | nil,
35+
:superAdminServiceAccount => String.t() | nil,
3236
:type => String.t() | nil
3337
}
3438

3539
field(:dasherCustomerId)
40+
field(:superAdminEmailAddress)
41+
field(:superAdminServiceAccount)
3642
field(:type)
3743
end
3844

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1alpha_custom_tuning_model.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaCu
2323
2424
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp the Model was created at.
2525
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the model.
26+
* `errorMessage` (*type:* `String.t`, *default:* `nil`) - Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
2627
* `metrics` (*type:* `map()`, *default:* `nil`) - The metrics of the trained model.
2728
* `modelState` (*type:* `String.t`, *default:* `nil`) - The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
2829
* `modelVersion` (*type:* `String.t`, *default:* `nil`) - The version of the model.
@@ -35,6 +36,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaCu
3536
@type t :: %__MODULE__{
3637
:createTime => DateTime.t() | nil,
3738
:displayName => String.t() | nil,
39+
:errorMessage => String.t() | nil,
3840
:metrics => map() | nil,
3941
:modelState => String.t() | nil,
4042
:modelVersion => String.t() | nil,
@@ -44,6 +46,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaCu
4446

4547
field(:createTime, as: DateTime)
4648
field(:displayName)
49+
field(:errorMessage)
4750
field(:metrics, type: :map)
4851
field(:modelState)
4952
field(:modelVersion)

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1alpha_engine.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaEn
2626
* `commonConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaEngineCommonConfig.t`, *default:* `nil`) - Common config spec that specifies the metadata of the engine.
2727
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp the Recommendation Engine was created at.
2828
* `dataStoreIds` (*type:* `list(String.t)`, *default:* `nil`) - The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.
29+
* `disableAnalytics` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to disable analytics for searches performed on this engine.
2930
* `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.
3031
* `industryVertical` (*type:* `String.t`, *default:* `nil`) - The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: If unspecified, default to `GENERIC`. Vertical on Engine has to match vertical of the DataStore linked to the engine.
3132
* `mediaRecommendationEngineConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig.t`, *default:* `nil`) - Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
@@ -51,6 +52,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaEn
5152
| nil,
5253
:createTime => DateTime.t() | nil,
5354
:dataStoreIds => list(String.t()) | nil,
55+
:disableAnalytics => boolean() | nil,
5456
:displayName => String.t() | nil,
5557
:industryVertical => String.t() | nil,
5658
:mediaRecommendationEngineConfig =>
@@ -85,6 +87,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaEn
8587

8688
field(:createTime, as: DateTime)
8789
field(:dataStoreIds, type: :list)
90+
field(:disableAnalytics)
8891
field(:displayName)
8992
field(:industryVertical)
9093

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1alpha_workspace_config.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,23 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1alphaWo
2222
## Attributes
2323
2424
* `dasherCustomerId` (*type:* `String.t`, *default:* `nil`) - Obfuscated Dasher customer ID.
25+
* `superAdminEmailAddress` (*type:* `String.t`, *default:* `nil`) - Optional. The super admin email address for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.
26+
* `superAdminServiceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. The super admin service account for the workspace that will be used for access token generation. For now we only use it for Native Google Drive connector data ingestion.
2527
* `type` (*type:* `String.t`, *default:* `nil`) - The Google Workspace data source.
2628
"""
2729

2830
use GoogleApi.Gax.ModelBase
2931

3032
@type t :: %__MODULE__{
3133
:dasherCustomerId => String.t() | nil,
34+
:superAdminEmailAddress => String.t() | nil,
35+
:superAdminServiceAccount => String.t() | nil,
3236
:type => String.t() | nil
3337
}
3438

3539
field(:dasherCustomerId)
40+
field(:superAdminEmailAddress)
41+
field(:superAdminServiceAccount)
3642
field(:type)
3743
end
3844

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1beta_custom_tuning_model.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaCus
2323
2424
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Timestamp the Model was created at.
2525
* `displayName` (*type:* `String.t`, *default:* `nil`) - The display name of the model.
26+
* `errorMessage` (*type:* `String.t`, *default:* `nil`) - Currently this is only populated if the model state is `INPUT_VALIDATION_FAILED`.
2627
* `metrics` (*type:* `map()`, *default:* `nil`) - The metrics of the trained model.
2728
* `modelState` (*type:* `String.t`, *default:* `nil`) - The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).
2829
* `modelVersion` (*type:* `String.t`, *default:* `nil`) - The version of the model.
@@ -35,6 +36,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaCus
3536
@type t :: %__MODULE__{
3637
:createTime => DateTime.t() | nil,
3738
:displayName => String.t() | nil,
39+
:errorMessage => String.t() | nil,
3840
:metrics => map() | nil,
3941
:modelState => String.t() | nil,
4042
:modelVersion => String.t() | nil,
@@ -44,6 +46,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaCus
4446

4547
field(:createTime, as: DateTime)
4648
field(:displayName)
49+
field(:errorMessage)
4750
field(:metrics, type: :map)
4851
field(:modelState)
4952
field(:modelVersion)

clients/discovery_engine/lib/google_api/discovery_engine/v1/model/google_cloud_discoveryengine_v1beta_engine.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaEng
2626
* `commonConfig` (*type:* `GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaEngineCommonConfig.t`, *default:* `nil`) - Common config spec that specifies the metadata of the engine.
2727
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Timestamp the Recommendation Engine was created at.
2828
* `dataStoreIds` (*type:* `list(String.t)`, *default:* `nil`) - The data stores associated with this engine. For SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they can only associate with at most one data store. If solution_type is SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be associated here. Note that when used in CreateEngineRequest, one DataStore id must be provided as the system will use it for necessary initializations.
29+
* `disableAnalytics` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to disable analytics for searches performed on this engine.
2930
* `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The display name of the engine. Should be human readable. UTF-8 encoded string with limit of 1024 characters.
3031
* `industryVertical` (*type:* `String.t`, *default:* `nil`) - The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: If unspecified, default to `GENERIC`. Vertical on Engine has to match vertical of the DataStore linked to the engine.
3132
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
@@ -48,6 +49,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaEng
4849
| nil,
4950
:createTime => DateTime.t() | nil,
5051
:dataStoreIds => list(String.t()) | nil,
52+
:disableAnalytics => boolean() | nil,
5153
:displayName => String.t() | nil,
5254
:industryVertical => String.t() | nil,
5355
:name => String.t() | nil,
@@ -73,6 +75,7 @@ defmodule GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1betaEng
7375

7476
field(:createTime, as: DateTime)
7577
field(:dataStoreIds, type: :list)
78+
field(:disableAnalytics)
7679
field(:displayName)
7780
field(:industryVertical)
7881
field(:name)

0 commit comments

Comments
 (0)